query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
listlengths 3
101
| negative_scores
listlengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
Retrieves the current user in session. | public static void getMe(final Context context, final OnLoginListener onLoginListener)
{
HttpClientHelper client = new HttpClientHelper(Endpoints.User.me, context);
Network.newRequest(client, Network.GET, Network.WITH_COOKIE, new Delegate()
{
@Override
public void requestResults(Network.Status status)
{
User user = null;
boolean err = false;
if(status.hasInternet)
{
if(status.response.getStatusLine().getStatusCode() == 200)
{
try
{
user = new User(status.result.getJSONObject("data"));
}
catch (JSONException e)
{
err = true;
e.printStackTrace();
}
}
else
{
err = true;
}
}
onLoginListener.onLogin(user, status, err);
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic UtenteBase getSessionUser() {\n\t\tUtenteBase user = (UtenteBase) getThreadLocalRequest().getSession().getAttribute(\"user\");\n\t\treturn user;\n\t}",
"public static User get() {\n User currentUser = (User) getCurrentRequest().getWrappedSession()\n .getAttribute(CURRENT_USER_DETAILS_ATTRIBUTE_KEY);\n if (currentUser == null) {\n return null;\n } else {\n return currentUser;\n }\n }",
"private User getUser() {\r\n\t\tUserService userService = UserServiceFactory.getUserService();\r\n\t\treturn userService.getCurrentUser();\r\n\t}",
"User getCurrentLoggedInUser();",
"public static User getCurrentUser() {\n\t\treturn ApplicationContext.getInstance().getCurrentUser();\n\t}",
"public User getCurrentUser() {\n\t\tString id = contextHolder.getUserId();\r\n\t\treturn userRepository.get(id);\r\n\t}",
"@Override\n\tpublic User getCurrentUser() {\n\t\tint id = sessionService.getCurrentUserId();\n\t\treturn userDao.findById(id);\n\t}",
"private User getCurrentUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n String username = auth.getName();\n return userService.findByUsername(username);\n }",
"public UserDetails getLoggedInUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n if (auth != null && auth.isAuthenticated()\n && !(SecurityContextHolder.getContext().getAuthentication() instanceof AnonymousAuthenticationToken)) {\n return (UserDetails) auth.getPrincipal();\n } else {\n LOGGER.debug(\"Tried getting a logged in user, but none was available.\");\n return null;\n }\n }",
"LoggedUser getLoggedUser();",
"public User getSession(){\n\t\treturn this.session;\n\t}",
"public UserCredential getCurrentUser() {\n return this.currentUser;\n }",
"protected User getUser(HttpSession session) {\r\n\t\t// get the user form from the session\r\n\t\treturn (User) session.getAttribute(Constants.USER_KEY);\r\n\t}",
"private UserID getCurrentUser()\n\t{\n\t return (UserID)request.getSession().getAttribute(\"userID\");\n\t}",
"public User getLoggedUser();",
"public User getLoggedInUser() {\n Realm realm = (mRealm == null) ? Realm.getDefaultInstance() : mRealm;\n User retval = null;\n User managedUser = realm.where(User.class).equalTo(\"IsLoggedIn\", true).findFirst();\n if (managedUser != null) {\n retval = realm.copyFromRealm(managedUser);\n } else {\n retval = realm.copyFromRealm(realm.where(User.class).equalTo(\"UserId\", \"anonymous\").findFirst());\n }\n\n if (mRealm == null)\n realm.close();\n\n return retval;\n }",
"public User getCurrentUser() {\n return currentUser;\n }",
"private String getLoggedInUser() {\r\n\t\tOptional<Authentication> authentication = Optional\r\n\t\t\t\t.ofNullable(SecurityContextHolder.getContext().getAuthentication());\r\n\t\treturn authentication.map(Authentication::getPrincipal).map(obj -> (UserDetails) obj)\r\n\t\t\t\t.map(UserDetails::getUsername).orElse(null);\r\n\t}",
"@Override\r\n\tpublic User getCurrentUser() {\r\n\t\tString currentUserName = this.getCurrentUserName();\r\n\t\tUser userdetails = this.getByUsername(currentUserName);\r\n\t\treturn userdetails;\r\n\t}",
"public User getUser(){\n\t\treturn currentUser;\n\t}",
"public User findCurrentUser() {\n String username = SecurityContextHolder.getContext().getAuthentication().getName();\n return userRepository.findByUsername(username);\n }",
"public static User getCurrentUser() {\n return sInstance == null ? null : sInstance.mCurrentUser;\n }",
"public static User getCurrentUser() {\n return CURRENT_USER;\n }",
"public User getUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n return userRepository.findByEmail(auth.getName()).get();\n }",
"public static String getCurrentUser(HttpServletRequest req) {\n HttpSession session = req.getSession();\n Cookie[] cookies = req.getCookies();\n //TODO: Make a decent check\n String user = (String)session.getAttribute(\"user\");\n if(user == null){\n for(Cookie c : cookies) {\n if(c.getName().equals(\"user\")) {\n user = c.getValue();\n session.setAttribute(\"user\", c.getValue());\n break;\n }\n }\n }\n return user;\n }",
"@Override\r\n\tpublic User getAuthenticatedUser()\r\n\t{\n\t\treturn userWpJauRestClientImpl.getUser().getUser();\r\n\t}",
"private AuthenticatedUser getUser(AuthenticationContext context) {\n StepConfig stepConfig = context.getSequenceConfig().getStepMap().get(context.getCurrentStep() - 1);\n return stepConfig.getAuthenticatedUser();\n }",
"protected AuthenticatedUser getCurrentUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n\n if (auth.getPrincipal() instanceof AuthenticatedUser) {\n return (AuthenticatedUser) auth.getPrincipal();\n }\n\n return null;\n }",
"public String getLoggedInUser() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic User getCurrentUser() {\n\t\treturn currentUser;\n\t}",
"public String getCurrentUser() {\n return currentUser;\n }",
"public User getCurrentUser() {\n\t\treturn users.get(userTurn);\n\t}",
"public String getCurrentUser() {\r\n return SecurityContextHolder.getContext().getAuthentication().getName();\r\n }",
"public final User getUser() {\t\r\n\t\treturn this.user;\r\n\t}",
"@RequestMapping(value=\"get_current_user.do\",method= RequestMethod.POST)\r\n @ResponseBody\r\n public ServerResponse<User> getCurrentUser(HttpSession session){\r\n User user = (User) session.getAttribute(Constant.CURRENT_USER);\r\n if(user != null){\r\n return ServerResponse.createBySuccessData(user);\r\n }\r\n return ServerResponse.createByErrorMsg(\"User has not logged in.\");\r\n }",
"public static String getUser() {\n return user;\n }",
"public static UserSession getUserSession(HttpServletRequest request) {\n return (UserSession) request.getSession().getAttribute(Constants.USER_SESSION_KEY);\n }",
"public static String getLoggedUser() {\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\treturn auth.getName();\n\t}",
"public static String getUser() {\r\n return user;\r\n }",
"public static int getCurrentUserId() {\n return session.get().getUserId();\n }",
"public String getAuthUserId() {\n return (String) session.getAttribute(\"userId\");\n }",
"ApplicationUser getUser();",
"private EndUser getCurrentLoggedUserDetails() {\n\n\t\tEndUser endUser = endUserDAOImpl.findByUsername(getCurrentLoggedUserName()).getSingleResult();\n\n\t\treturn endUser;\n\n\t}",
"public User getUser() {\n\t\treturn this.user;\n\t}",
"public User getUser() {\n\t\treturn this.user;\n\t}",
"public static User getLoggedUser(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(\"loggedUserPrefs\", 0);\n User user = (new Gson()).fromJson(prefs.getString(\"user\", null), User.class);\n return user;\n }",
"public AVUser getCurrentUser() {\n return this.currentUser;\n }",
"@GET\n @Path(\"Current\")\n public User getCurrentUser() {\n return userFacade.getCurrentUser();\n }",
"@RequestMapping(\"/currentuser\")\n\tpublic User getCurrentlyLoggedInUser() throws NoLoginInfoFoundException, URISyntaxException {\n\t\tUser currentUser = null;\n\t\tString username = loginService.getCurrentUsername();\n\t\tif (username != null) {\n\t\t\tList<User> allUsers = myUserDetailsService.getAllUsers();\n\t\t\tfor (User user : allUsers) {\n\t\t\t\tif (user.getEmail().equals(username)) {\n\t\t\t\t\tcurrentUser = user;\n\t\t\t\t\tURI uri = new URI(Constants.orderBaseurl + Constants.orderGetUserUrl);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tResponseEntity<User> response = restTemplate.postForEntity(uri, currentUser, User.class);\n\t\t\t\t\t\tSystem.out.println(response.getBody());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new NoLoginInfoFoundException(\"Please login to continue\");\n\t\t}\n\n\t\treturn currentUser;\n\t}",
"public String getUser() {\n\t\treturn user;\n\t}",
"public String getUser() {\n\t\t\treturn user;\n\t\t}",
"UserDetails getCurrentUser();",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser(){\n return this.getAccountController().getUser();\n }",
"public String getUser() {\r\n\t\treturn user;\r\n\t}",
"public String getUser() {\r\n\t\treturn user;\r\n\t}",
"public String getUser() {\r\n \t\treturn properties.getProperty(KEY_USER);\r\n \t}",
"public User getUser() {\r\n\t\treturn user;\r\n\t}",
"public User getUser() {\r\n\t\treturn user;\r\n\t}",
"public User getUser() {\r\n\t\treturn user;\r\n\t}",
"public String getUser() {\n return user;\n }",
"public String getUser() {\n return user;\n }",
"public String getUser() {\n return user;\n }",
"public User getLoggedUser(){\n\t\treturn loggedUser;\n\t}",
"public String getUser() {\r\n return user;\r\n }",
"public abstract User getLoggedInUser();",
"public java.lang.String getUser() {\n return user;\n }",
"public static User getCurrentUser() {\n if (cacheUser != null)\n return cacheUser;\n\n User user;\n String jsonData = getSharedPreferences().getString(PREF_KEY_USER_INFO, \"\");\n\n //Convert back to User data model\n try {\n user = (new Gson()).fromJson(jsonData, User.class);\n } catch (Exception e) {\n String message = \"null\";\n if (e != null) {\n message = e.getMessage();\n }\n LogUtils.logInDebug(LOG_TAG, \"getCurrentUserInfo error: \" + message);\n user = null;\n }\n\n cacheUser = user;\n\n if (user != null)\n cacheAccessToken = user.secret;\n\n return cacheUser;\n }",
"@Nullable\n User getCurrentUser() {return currentUser;}",
"public UserModel getUser() {\n return localUser;\n }",
"public UserModel getUser() {\n return localUser;\n }",
"public UserModel getUser() {\n return localUser;\n }",
"public String getUserAccount() {\n return sessionData.getUserAccount();\n }",
"private String getLoggedUser() {\n\t\torg.springframework.security.core.userdetails.User user2 = \n\t\t\t\t(org.springframework.security.core.userdetails.User) \n\t\t\t\tSecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\tString name = user2.getUsername();\n\t\treturn name;\n\t}",
"public String getUser() {\n return this.user;\n }",
"@PermitAll\n @Override\n public User getCurrentUser() {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_WHERE_PART, User.QUERY_WHERE_USERNAME);\n params.put(User.PARAM_USERNAME, this.getUserName());\n return getRepository().getEntity(User.class, params);\n }",
"public SimpleUser getUser() {\n return user;\n }",
"public User getLoggedInUser() throws NoUserLoggedInException{\r\n\t\tif(this.user != null){\r\n\t\t\treturn this.user;\r\n\t\t}//-if\r\n\t\telse{\r\n\t\t\tthrow new NoUserLoggedInException(ExceptionType.ERROR);\r\n\t\t}//-else\r\n\t}",
"public User getUserEntity() {\n Authentication authentication = getAuthentication();\n if(authentication == null) {\n throw new AuthenticationCredentialsNotFoundException(\"No user is currently logged in.\");\n }\n return userDAO.getById(getUserInfo().getId());\n }",
"public User getAuthenticatedUser() {\n\t\tif(SecurityContextHolder.getContext().getAuthentication().getPrincipal().equals(\"anonymousUser\"))\n\t\t\treturn null;\n\t\treturn ((UserAuthorization) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getUser();\n\t}",
"public User getUser(){\n\t\treturn this.user;\n\t}",
"public User getUser(){\r\n\t\treturn this.user;\r\n\t}",
"public String getUser() {\r\n\t\treturn _userName;\r\n\t}",
"public String getUserName() {\n return sessionData.getUserName();\n }",
"public User getUser() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n String userJson = sharedPreferences.getString(KEY_USER, null);\n User user = new Gson().fromJson(userJson, new TypeToken<User>(){}.getType());\n return user;\n }",
"synchronized public String getUser()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getUserID();\n\t\t\t\n\t\treturn null;\n\t}",
"public String getUser()\n {\n return this.user;\n }",
"public String getUser()\n {\n return this.user;\n }",
"public String getUser()\n {\n return this.user;\n }",
"User current_user(String name);",
"public User getUser() {\n\t\treturn mUser;\n\t}",
"public User getUserLogged() {\n return userLogged;\n }",
"public User getUser() {\n\treturn user;\n }",
"public UserLogueado getUser() {\r\n SharedPreferences sharedPreferences = ctx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\r\n return new UserLogueado(\r\n sharedPreferences.getString(KEY_EMAIL, null),\r\n sharedPreferences.getString(KEY_TOKEN, null)\r\n );\r\n }",
"public String getRemoteUser() {\r\n return context.getExternalContext().getRemoteUser();\r\n }",
"public LocalUser getLoginUser(){\n\t\treturn new Select().from(LocalUser.class).executeSingle();\n\t}"
]
| [
"0.7764474",
"0.77084947",
"0.7657185",
"0.7656192",
"0.76283216",
"0.7594907",
"0.75534296",
"0.7505619",
"0.7292973",
"0.72669613",
"0.7265743",
"0.7238735",
"0.72271603",
"0.72213787",
"0.7214059",
"0.71975017",
"0.71632844",
"0.716315",
"0.7148002",
"0.71094525",
"0.7103237",
"0.70849496",
"0.70568335",
"0.7027312",
"0.7023209",
"0.70212054",
"0.70085317",
"0.70044065",
"0.7003999",
"0.7002922",
"0.69727224",
"0.69698393",
"0.69528633",
"0.6946933",
"0.6938722",
"0.69365156",
"0.69216996",
"0.69126517",
"0.6897043",
"0.68792695",
"0.6879164",
"0.6878761",
"0.687787",
"0.68553215",
"0.68553215",
"0.68453616",
"0.68247044",
"0.67986876",
"0.67969847",
"0.6781085",
"0.6779706",
"0.6777348",
"0.67616975",
"0.67616975",
"0.67616975",
"0.67616975",
"0.67616975",
"0.67616975",
"0.67615",
"0.6760465",
"0.6760465",
"0.6758548",
"0.6758026",
"0.6758026",
"0.6758026",
"0.67458904",
"0.67458904",
"0.67458904",
"0.6738813",
"0.67222965",
"0.66894925",
"0.6688383",
"0.6687223",
"0.66843736",
"0.6677723",
"0.6677723",
"0.6677723",
"0.66649634",
"0.6661722",
"0.6658486",
"0.66581064",
"0.66569996",
"0.6639473",
"0.66239846",
"0.6622058",
"0.6618319",
"0.6612382",
"0.6609676",
"0.6608216",
"0.66056126",
"0.6577941",
"0.6572669",
"0.6572669",
"0.6572669",
"0.6566337",
"0.65499866",
"0.65416205",
"0.64934367",
"0.64908916",
"0.64873904",
"0.6473605"
]
| 0.0 | -1 |
is mouse being clicked? | public CStage() {
keysDown = new HashSet<Integer>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isMouseClicked() {\n\t\treturn input.isMouseClicked();\n\t}",
"public boolean isMouseClicked(){\n\t\treturn mouseClick;\n\t}",
"public boolean isClicked() {\n\t\tif(GameMouse.getInstance().getX() < x || GameMouse.getInstance().getX() > x + width) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\tif(GameMouse.getInstance().getY() < y || GameMouse.getInstance().getY() > y + height) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\treturn GameMouse.getInstance().isClicked(GameMouse.LEFT_BUTTON);\n\t}",
"public boolean isClicked() { return clicked; }",
"public boolean getMouseClicked() {\r\n\t\treturn mouseClicked;\r\n\t}",
"public boolean isClicked() {\n\n// Cycles through all menu cursors\n for (MenuCursor cursor : Main.cursors) {\n\n// If the cursor has a controller and the select button is clicked, return true\n if (cursor.controller != null) {\n if (Main.contains(Main.recentButtons.get(cursor.controller), ControllerButtons.A)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n\n// Otherwise, if the cursor is using a keyboard and the select button is pressed, return true\n } else {\n if (Gdx.input.isKeyJustPressed(Keys.MENU_SELECT)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n }\n }\n// If none of these events occur, return false\n return false;\n }",
"public boolean isClicked() {\n\t\treturn clicked;\n\t}",
"public boolean mouseClicked(MouseEvent e)\r\n {\r\n double x = e.getX();\r\n double y = e.getY();\r\n \r\n //find if coordinates are in a \"button\"\r\n for (int i = 0; i < towerButtons.length; i++)\r\n {\r\n if (towerButtons[i].contains(x,y))\r\n {\r\n display.setUnit(dummyList.get(i));\r\n selectedIndex = i;\r\n }\r\n }\r\n \r\n //within bounds\r\n if ((new Rectangle2D.Double(initX, 0, width, height)).contains(x,y))\r\n return true;\r\n return false;\r\n }",
"public boolean getMouseClick () {\r\n return myMouseClick;\r\n }",
"public boolean isClicked(int mouseX, int mouseY) {\t\t\t\t\n\t\t\n\t\tif(mouseX >= x && mouseX < (x + 64)) {\n\t\t\tif(mouseY >= y && mouseY < (y + 64)) {\n\t\t\t\tSystem.out.println(\"Clicked tile at \" + x + \", \" + y);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean wasClicked(int mouseX, int mouseY) {\n\t\t// If this is the blank piece, we leave immediately\n\t\t// because it can't be swapped\n\t\tif(num == 1) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Checks to see if the user's click location is within the \n\t\t// square location of this Piece\n\t\tif(mouseX > x && mouseX < (x + size) && mouseY > y && mouseY < (y + size)) {\n\t\t\treturn true;\n\t\t} \n\t\t\n\t\treturn false;\n\t}",
"@Override\n public void mouseClicked(MouseEvent e) {\n clicked = true;\n }",
"public void mouseClicked(int mouseX, int mouseY, int mouse) {}",
"public void mousePressed() {\n\t\tif(detectCollision(this.p.mouseX,this.p.mouseY)) {\n\t\t\tthis.isPressed = true;\n\t\t\tclick();\n\t\t}\n\t}",
"boolean _mousePressed(MouseEvent ev) {\n\t\treturn false;\n\t}",
"public void mousePressed(){\n\n if(mouseX >= rectX4 && mouseX <= rectX4 + rectWidth && mouseY >= rectY4 && mouseY <= rectY4 + rectHeight){\n println(\"Button 4\");\n }\n \n}",
"public boolean getIsClick() {return isClick;}",
"void mouseClicked(MouseEvent mouseEvent);",
"public void mouseClicked(MouseEvent event){}",
"public boolean getClicked(){\n return this.isPressed;\n }",
"public void mouseClicked(MouseEvent e) {}",
"public void mouseClicked(MouseEvent e) {}",
"public void mouseClicked(MouseEvent e) {}",
"public void mouseClicked(MouseEvent e) {}",
"public boolean isHovered();",
"public void mouseClicked( MouseEvent event ){}",
"public void mousePressed(MouseEvent event){\n\t\t// We recognized pressing the mouse with a flag\n\t\tclickflag = true;\t\t\n\t}",
"public boolean mouseClicked(gb gui, int mousex, int mousey, int button) {\n/* 233 */ if (button == 0)\n/* 234 */ return transferRect(gui, false); \n/* 235 */ if (button == 1) {\n/* 236 */ return transferRect(gui, true);\n/* */ }\n/* 238 */ return false;\n/* */ }",
"void onMouseClicked(MouseEventContext mouseEvent);",
"public abstract void mouseClicked(MouseEvent e);",
"void mouseClicked(double x, double y, MouseEvent e );",
"boolean onLeftClick(double mouseX, double mouseY);",
"private void checkMouseClick()\n {\n MouseInfo userClick = Greenfoot.getMouseInfo();\n \n int columnNum;\n int rowNum;\n \n if( Greenfoot.mouseClicked(this) )\n {\n columnNum = userClick.getX() / ( getWidth() / 3 );\n rowNum = userClick.getY() / ( getHeight() / 3 );\n \n if( board[rowNum][columnNum] == \"\" )\n {\n if( PlayerOneTurn == true )\n {\n board[rowNum][columnNum] = \"X\";\n \n PlayerOneTurn = false;\n messageShown = false;\n }\n else\n {\n board[rowNum][columnNum] = \"O\";\n \n PlayerOneTurn = true;\n messageShown = false;\n }\n }\n else\n {\n JOptionPane.showMessageDialog( null, \"you should select a different spot.\", \"Wrong step\", JOptionPane.PLAIN_MESSAGE );\n }\n }\n \n }",
"public void mouseClicked(MouseEvent arg0) {\n }",
"public void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"public void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"public void mouseClicked(MouseEvent e) {\n \t\t\r\n \t}",
"public void mouseClicked(MouseEvent e)\n {}",
"public void checkClickedArea(int xMouse,int yMouse)\n {\n\n isSelected=false;\n if(targetable==true&&(xMouse>=xBeginMap+15&&xMouse<=xEndMap-15\n &&yMouse>=yBeginMap+15&&yMouse<=yEndMap-15))\n {\n\n isSelected=true;\n }\n\n }",
"public void mouseClicked(MouseEvent e) { \r\n }",
"private boolean isDoubleClickedElement(MouseEvent evt) {\n\t\tif (evt.getButton() == Constants.LEFT_MOUSE_BUTTON && !aufzugschacht.mainFrameIsAnyButtonSelected) {\n\t\t\tCalendar thisTime = Calendar.getInstance();\n\t\t\tif (clicked) {\n\t\t\t\tlong millis = thisTime.getTimeInMillis();\n\t\t\t\tif (millis - oldTime.getTimeInMillis() < 300) {\n\t\t\t\t\tclicked = false;\n\t\t\t\t\toldTime = thisTime;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\toldTime = thisTime;\n\t\t\t} else {\n\t\t\t\tclicked = true;\n\t\t\t\toldTime = thisTime;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public void mouseClicked(MouseEvent evt) {\n }",
"public void mouseClicked(MouseEvent evt) {\r\n }",
"public void mousePressed(MouseEvent e) {}",
"public void mousePressed(MouseEvent e) {}",
"public void mousePressed(MouseEvent e) {}",
"public void mouseClicked() {\n\t\tswitch(screen) {\n\t\t\n\t\t// Pantalla Home\n\t\tcase 0:\n\t\t\tif((mouseX > 529 && mouseY > 691) && (mouseX < 966 & mouseY < 867)) {\n\t\t\t\t//si hace click adentro del boton de jugar\n\t\t\t\tscreen = 1;\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Instrucciones\n\t\tcase 1:\n\t\t\t//si hace click adentro de la pantalla\n\t\t\tscreen = 2;\n\t\t\tbreak;\n\t\t}\n\t}",
"public void mouseClicked(MouseEvent e) {\n\n }",
"public void mousePressed() {\n }",
"boolean hasClickView();",
"public void mouseClicked(MouseEvent e) {\n\t\t\n\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\n\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}",
"public void mouseClicked(MouseEvent event) { \n\t\t\n\t}",
"public void mouseClicked(int ex, int ey, int button) {\r\n\t}",
"public abstract void mouseClicked(MouseClickedEvent event);",
"public abstract boolean mouseOver( int x, int y );",
"public void mouseClicked(MouseEvent mouseClick)\r\n\t{\r\n\t\tmouseClickX = mouseClick.getX();\r\n\t\tmouseClickY = mouseClick.getY();\r\n\t\tmouseClickedFlag = true;\r\n\t\tmouseClickedFlagForWeapon = true;\r\n\t\tmouseClickCount = mouseClick.getClickCount();\r\n\t\tmouseButtonNumber = mouseClick.getButton();\r\n\t\t//System.out.println(\"MouseClickX: \" + mouseClickX);\r\n\t\t//System.out.println(\"MouseClickY: \" + mouseClickY);\r\n\t\t\r\n\t\t\r\n\t}",
"void mousePressed(double x, double y, MouseEvent e );",
"public void mousePressed (MouseEvent event) {}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"public void mouseClicked(MouseEvent e) {\r\n\t}",
"void mousePressed(MouseEvent mouseEvent);",
"public boolean isMouseOver(){\n\t\treturn this.contains(Main.camera.getMousePos());\n\t}",
"@Override\r\n public boolean mousePressed(MouseEvent e) {\r\n state = 2;\r\n return true;\r\n }",
"public boolean acceptsMouse() \n{\n // If hover shape, return false\n if(RMShapeUtils.getHoverShape()==this) return false;\n \n // Return true if there is a URL, Hover or MouseListener\n return getURL()!=null || getHover()!=null || getListenerCount(RMShapeMouseListener.class)>0;\n}",
"boolean wasHit();",
"boolean isHighlighted();",
"public void mouseClicked(MouseEvent e) {\n\t}",
"public void mouseClicked(MouseEvent e) {\n\t}",
"public void mouseClicked(MouseEvent e) {\n\t}",
"public void mouseClicked(MouseEvent e) {\n\r\n\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void mousePressed( MouseEvent event ){}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}",
"public void mousePressed(MouseEvent e)\n { }",
"public void checkMouse(){\n if(Greenfoot.mouseMoved(null)){\n mouseOver = Greenfoot.mouseMoved(this);\n }\n //Si esta encima se volvera transparente el boton en el que se encuentra\n if(mouseOver){\n adjTrans(MAX_TRANS/2);\n }\n else{\n adjTrans(MAX_TRANS);\n }\n \n }",
"public void mousePressed(MouseEvent e) {\r\n }",
"public void mousePressed(MouseEvent arg0) {\n\n }",
"public void mousePressed(MouseEvent arg0) {\n\n }",
"public void mousePressed(MouseEvent event)\r\n {\n }",
"public void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tif(this.chance==1)\r\n\t\t{\r\n\t\t\tmouseX = arg0.getX();\r\n\t\t\tmouseY= arg0.getY();\r\n\t\t\tclick=1;\r\n\t\t}\r\n\t}",
"@Override\r\n public void mouseClicked(MouseEvent event) {\r\n System.out.println(\"clicked\");\r\n\r\n }",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}"
]
| [
"0.8580193",
"0.84695476",
"0.7973241",
"0.77893203",
"0.77000517",
"0.7647431",
"0.75715166",
"0.75555694",
"0.7503322",
"0.7492239",
"0.74248236",
"0.72634697",
"0.726153",
"0.71702874",
"0.7132248",
"0.71292627",
"0.7126003",
"0.7121877",
"0.70973825",
"0.7052143",
"0.7043905",
"0.7043905",
"0.7043905",
"0.7043905",
"0.70397115",
"0.70272493",
"0.6995468",
"0.69798666",
"0.69640887",
"0.69368124",
"0.6933819",
"0.6932255",
"0.6900618",
"0.68947005",
"0.6877972",
"0.6877972",
"0.68761206",
"0.6870314",
"0.68686783",
"0.685459",
"0.68543285",
"0.6844269",
"0.68407476",
"0.6840674",
"0.6840674",
"0.6840674",
"0.68342066",
"0.68156743",
"0.68147767",
"0.6814554",
"0.6811103",
"0.6811103",
"0.68081653",
"0.68081653",
"0.68023014",
"0.6781856",
"0.6778916",
"0.6771188",
"0.6765372",
"0.67579234",
"0.67577964",
"0.6752464",
"0.6741245",
"0.6736901",
"0.67355746",
"0.6729556",
"0.6705997",
"0.67036307",
"0.6700413",
"0.6695393",
"0.6695393",
"0.6695393",
"0.6688753",
"0.66841125",
"0.66841125",
"0.66841125",
"0.66825813",
"0.66777825",
"0.66752577",
"0.6670864",
"0.6661161",
"0.6655355",
"0.6655355",
"0.66461223",
"0.6645657",
"0.6643476",
"0.6643476",
"0.6639748",
"0.6637795",
"0.66307354",
"0.66307354",
"0.66307354",
"0.66307354",
"0.66307354",
"0.66307354",
"0.66307354",
"0.66307354",
"0.66307354",
"0.66307354",
"0.66307354",
"0.66307354"
]
| 0.0 | -1 |
prints out what "button" is, left is 0, right is 1, mouse scroll is 2 MyUtils.DrawText("Mouse button: " + button, true, new Vector2(4,5), 30); prints out where user has clicked TODO: figure out why clicks are not going through MyUtils.DrawText("Mouse location: " + "(" + screenX + ", " + screenY + ")", true, new Vector2(4,6), 30); gets location of mouse | @Override
public boolean touchDown(int screenX, int screenY, int pointer, int button) {
mousePosition.x = screenX / LovePirates.TILESIZE;
mousePosition.y = screenY / LovePirates.TILESIZE;
isClicking = true;
return super.touchDown(screenX, screenY, pointer, button);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void mousePressed(MouseEvent event ) {\n\t\t\r\n\t\tint whichButton =event.getButton();\r\n\t\tmsg=\"\";\r\n\t\tmsg =\"You Pressed Mouse \" ;\r\n\t\t\r\n\t\tif(whichButton==MouseEvent.BUTTON1)\r\n\t\t\tmsg+=\" BUTTON 1\";\r\n\t\telse if(whichButton==MouseEvent.BUTTON2)\r\n\t\t\tmsg+=\"Button 2\";\r\n\t\telse\r\n\t\t\tmsg+=\"Button 3\";\r\n\t\t\r\n\t\tmsg+=\"You are at position \"+\"<X \"+event.getX()+\" Y \"+event.getY()+\">\";\r\n\t\t\r\n\t\tif(event.getClickCount()==2)\r\n\t\t{\r\n\t\t\tmsg+=\" You double Clicked\";\r\n\t\t}\r\n\t\telse\r\n\t\t\tmsg+=\" You singel-Clicked\";\r\n\t\t\r\n\t\tlabel.setText(msg);\r\n\t\t\r\n\t}",
"public void mousePressed(){\n\n if(mouseX >= rectX4 && mouseX <= rectX4 + rectWidth && mouseY >= rectY4 && mouseY <= rectY4 + rectHeight){\n println(\"Button 4\");\n }\n \n}",
"@Override\n\t\tpublic void renderButton(int mouseX, int mouseY){\n\t\t}",
"public void mouseClicked(int mouseX, int mouseY, int mouse) {}",
"@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tint x = e.getX();\n\t\tint y = e.getY();\n\t\tSystem.out.println(x);\n\t\tSystem.out.println(y);\n\t}",
"public void drawButton(Minecraft mc, int mouseX, int mouseY) {\n/* 20 */ if (this.visible) {\n/* */ \n/* 22 */ mc.getTextureManager().bindTexture(GuiButton.buttonTextures);\n/* 23 */ GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n/* 24 */ boolean var4 = (mouseX >= this.xPosition && mouseY >= this.yPosition && mouseX < this.xPosition + this.width && mouseY < this.yPosition + this.height);\n/* 25 */ int var5 = 106;\n/* */ \n/* 27 */ if (var4)\n/* */ {\n/* 29 */ var5 += this.height;\n/* */ }\n/* */ \n/* 32 */ drawTexturedModalRect(this.xPosition, this.yPosition, 0, var5, this.width, this.height);\n/* */ } \n/* */ }",
"@Override\n public void mouseClicked(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n System.out.println(\" Mouse: Click \" + boton ); \n }",
"static void setTextMousePoint(int i,int j){tmpx=i;tmpy=j;}",
"public boolean mouseClicked(gb gui, int mousex, int mousey, int button) {\n/* 233 */ if (button == 0)\n/* 234 */ return transferRect(gui, false); \n/* 235 */ if (button == 1) {\n/* 236 */ return transferRect(gui, true);\n/* */ }\n/* 238 */ return false;\n/* */ }",
"@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }",
"@Override\npublic void mouseClicked(MouseEvent e)\n{\n\tSystem.out.println(e.getX() + \" :: \" + e.getY());\n}",
"@Override\r\n public void mouseClicked(MouseEvent e) {\n System.out.println(e.getButton());\r\n\r\n // MouseEvent.BUTTON3 es el boton derecho\r\n }",
"@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }",
"@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }",
"@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }",
"void mousePressed(double x, double y, MouseEvent e );",
"private void drawButton(String s, int X, int Y, int margin, Graphics2D g2) {\n Color preColor=g2.getColor();\n // If the button data arrays doesn't already contain a button with the same name, then add it to the data arrays\n if(!buttonNames.contains(s.substring(0, 2))) {\n buttonNames.add(s.substring(0, 2));\n buttonBounds.add(new Rectangle(X, Y, 150, 50 - margin * 2));\n buttonVisibilities.add(true);\n }\n // Set the button visibility to true so it can be clicked\n buttonVisibilities.set(buttonNames.indexOf(s.substring(0, 2)), true);\n\n // Check if the latest mouse coordinates overlapped with the button's bounding box\n Rectangle r=new Rectangle(X, Y, 150, 50-margin*2);\n if(r.contains(mX, mY)) {\n // If the mouse isn't pressed, just show the hover color\n if(!mDown) g2.setColor(Color.LIGHT_GRAY);\n // If it is pressed, show the pressed color\n else g2.setColor(Color.GRAY);\n // Draw the actual background\n g2.fillRect((int)r.getX(), (int)r.getY(), (int)r.getWidth(), (int)r.getHeight());\n }\n g2.setColor(Color.BLACK);\n // Draw the outline for the button\n g2.drawRect((int)r.getX(), (int)r.getY(), (int)r.getWidth(), (int)r.getHeight());\n // Draw the button label\n drawCenteredString(s, X+75, Y+(50-margin*2)/2, STANDARD_FONT, g2);\n\n // Set the graphic's color to what is was before the calling of this method\n g2.setColor(preColor);\n }",
"private void drawPanelMousePressed(java.awt.event.MouseEvent evt) {\n \n clicks = evt.getPoint();\n \n clicks = getClosedPoint(clicks);\n //System.out.print(ClickSX + \", \" + ClickSY + \",\\n \" );\n \n }",
"void onLeftMouseButtonReleased(double mouseX, double mouseY);",
"void mouseClicked(double x, double y, MouseEvent e );",
"@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\tint mx= e.getX();\r\n\t\tint my= e.getY();\r\n\t\t\r\n\t\tSystem.out.println(\"X: \"+mx +\"Y: \"+my);\r\n\r\n\t\t// playButton\r\n\t\tif (mx >= Frame.width / 2 - 95 && mx <= Frame.width / 2 + 295) {\r\n\t\t\tif (my >= 450 && my <= 560 && state == STATE.MENU) {\r\n\t\t\t\tstate = STATE.GAME;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// quitButton\r\n\t\tif (mx >= Frame.width / 2 - 95 && mx <= Frame.width / 2 + 295) {\r\n\t\t\tif (my >= 650 && my <= 770 && state == STATE.MENU) {\r\n\t\t\t\tSystem.exit(1);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// MenuButton\r\n\t\tif (mx >= Frame.width / 2 - 95 && mx <= Frame.width / 2 + 295) {\r\n\t\t\tif (my >= 450 && my <= 560 && state == STATE.GOVER) {\r\n\t\t\t\tstate = STATE.MENU;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// quitButton\r\n\t\tif (mx >= Frame.width / 2 - 95 && mx <= Frame.width / 2 + 295) {\r\n\t\t\tif (my >= 650 && my <= 770 && state == STATE.GOVER) {\r\n\t\t\t\tSystem.exit(1);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\tl1.setText(\"You pressed the mouse\");\r\n\t}",
"public void drawButton(Minecraft mc, int mouseX, int mouseY)\n {\n if (visible)\n {\n mc.getTextureManager().bindTexture(GuiButton.buttonTextures);\n GlStateManager.color(1.0F, 1.0F, 1.0F, alpha);\n GlStateManager.enableBlend();\n GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0);\n GlStateManager.blendFunc(770, 771);\n\n boolean flag = mouseX >= xPosition && mouseY >= yPosition && mouseX < xPosition + width && mouseY < yPosition + height;\n\n drawTexturedModalRect(xPosition, yPosition, texX, texY + (!forceEnabled ? 0 : (flag ? height : 0)), width, height);\n }\n }",
"public void mousePressed(MouseEvent e) {\n mDown=true;\n int i=0;\n // Iterate through each button bounding box\n for(Rectangle r : buttonBounds) {\n // Check if the click point intersects with the rectangle's area\n if(r.contains(e.getPoint())) {\n // If it does, call the buttonCallback with the appropriate button display text\n buttonCallback(buttonNames.get(i));\n }\n i++;\n }\n }",
"public void mouseClicked( MouseEvent e )\n {\n x = e.getX(); y = e.getY();\n System.out.println(\"click at x=\"+x+\" y=\"+y);\n repaint();\n }",
"public void mousePressed(MouseEvent e)\n\t{\n\t\tint x = e.getX();\n\t\tint y = e.getY();\n\t\tlabel.setText(\"mouse Pressed at (\"+x+\", \"+y+\")\");\n\t}",
"public void mouseClicked() {\n\t\tswitch(screen) {\n\t\t\n\t\t// Pantalla Home\n\t\tcase 0:\n\t\t\tif((mouseX > 529 && mouseY > 691) && (mouseX < 966 & mouseY < 867)) {\n\t\t\t\t//si hace click adentro del boton de jugar\n\t\t\t\tscreen = 1;\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Instrucciones\n\t\tcase 1:\n\t\t\t//si hace click adentro de la pantalla\n\t\t\tscreen = 2;\n\t\t\tbreak;\n\t\t}\n\t}",
"public void mouseClicked(int ex, int ey, int button) {\r\n\t}",
"public void drawButton(Minecraft mc, int mouseX, int mouseY) {\n if(this.visible) {\n this.hovered = mouseX >= this.xPosition && mouseY >= this.yPosition && mouseX < this.xPosition + getButtonWidth() && mouseY < this.yPosition + this.height;\n GlStateManager.enableAlpha();\n GL11.glColor4d(1, 1, 1, 0);\n GuiUtils.drawGradientRect(30, this.xPosition - 2, this.yPosition - 2, this.xPosition + getBackgroundSize(), this.yPosition + height + 2, 0x9F100010, 0x9F100010);\n GlStateManager.disableAlpha();\n GuiUtils.drawContinuousTexturedBox(BUTTON_TEXTURES, this.xPosition, this.yPosition, 0, 46, 11, this.height, 200, 20, 2, 3, 2, 2, this.zLevel);\n this.mouseDragged(mc, mouseX, mouseY);\n int color = 14737632;\n\n if(packedFGColour != 0) {\n color = packedFGColour;\n } else if(!this.enabled) {\n color = 10526880;\n }\n\n if(this.isChecked()) {\n this.drawGradientRect(this.xPosition + 2, this.yPosition + 2, this.xPosition + 11 - 2, this.yPosition + height - 2, Color.cyan.darker().getRGB(), Color.cyan.darker().getRGB());\n }\n\n this.drawString(mc.fontRendererObj, displayString, xPosition + 11 + 2, yPosition + 2, color);\n }\n }",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tdraw = e.getButton();\n\t\t\t\tString s=\"\";\n\t\t\t\tif (e.getButton() == 2) {\n\t\t\t\t\tfor (int i = 0; i < wall.length; i++) {\n\t\t\t\t\t\ts =\"\";\n\t\t\t\t\t\tfor (int j = 0; j < wall[i].length; j++) {\n\t\t\t\t\t\t\tif (j == wall.length-1) {\n\t\t\t\t\t\t\t\ts = s+wall[i][j];\t\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\ts = s+wall[i][j] +\",\";\n\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\tSystem.out.println(\"{\" + s +\"},\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void clicked(InputEvent e, float x, float y) {\n }",
"@Override\n public void mousePressed(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n //System.out.println(\"->Mouse: Presionando Click \" + boton );\n }",
"public void drawButton(Minecraft mc, int mouseX, int mouseY, float partialTicks)\n {\n if (this.visible)\n {\n mc.getTextureManager().bindTexture(buttonTexture);\n GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n boolean flag = mouseX >= this.x && mouseY >= this.y && mouseX < this.x + this.width && mouseY < this.y + this.height;\n int i = 106;\n\n if (flag)\n {\n i += this.height;\n }\n\n this.drawTexturedModalRect(this.x, this.y, 0, i, this.width, this.height);\n }\n }",
"@Override\n public void renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta) {\n }",
"@Override\n\tpublic void drawButton(Minecraft par1Minecraft, int par2, int par3)\n {\n if (this.drawButton)\n {\n boolean var4 = par2 >= this.xPosition && par3 >= this.yPosition && par2 < this.xPosition + this.width && par3 < this.yPosition + this.height;\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n par1Minecraft.renderEngine.bindTexture(par1Minecraft.renderEngine.getTexture(\"/gui/book.png\"));\n int var5 = 0;\n int var6 = 192;\n\n if (var4)\n {\n var5 += 23;\n }\n\n if (!this.nextPage)\n {\n var6 += 13;\n }\n\n this.drawTexturedModalRect(this.xPosition, this.yPosition, var5, var6, 23, 13);\n }\n }",
"@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tl1.setText(\"You cliked the mouse\");\r\n\t}",
"public void drawButton(Minecraft p_146112_1_, int p_146112_2_, int p_146112_3_)\n {\n if (this.visible)\n {\n FontRenderer fontrenderer = p_146112_1_.fontRendererObj;\n p_146112_1_.getTextureManager().bindTexture(ThemeRegistry.curTheme().guiTexture());\n GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n this.hovered = p_146112_2_ >= this.xPosition && p_146112_3_ >= this.yPosition && p_146112_2_ < this.xPosition + this.width && p_146112_3_ < this.yPosition + this.height;\n int k = this.getHoverState(this.hovered);\n GlStateManager.enableBlend();\n GlStateManager.tryBlendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO);\n GlStateManager.blendFunc(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA);\n \n GlStateManager.pushMatrix();\n float sh = height/20F;\n float sw = width >= 196? width/200F : 1F;\n float py = yPosition/sh;\n float px = xPosition/sw;\n GlStateManager.scale(sw, sh, 1F);\n \n if(width > 200) // Could use 396 but limiting it to 200 this makes things look nicer\n {\n \tGlStateManager.translate(px, py, 0F); // Fixes floating point errors related to position\n \tthis.drawTexturedModalRect(0, 0, 48, k * 20, 200, 20);\n } else\n {\n \tthis.drawTexturedModalRect((int)px, (int)py, 48, k * 20, this.width / 2, 20);\n \tthis.drawTexturedModalRect((int)px + width / 2, (int)py, 248 - this.width / 2, k * 20, this.width / 2, 20);\n }\n \n GlStateManager.popMatrix();\n \n this.mouseDragged(p_146112_1_, p_146112_2_, p_146112_3_);\n int l = 14737632;\n\n if (packedFGColour != 0)\n {\n l = packedFGColour;\n }\n else if (!this.enabled)\n {\n l = 10526880;\n }\n else if (this.hovered)\n {\n l = 16777120;\n }\n \n String txt = this.displayString;\n \n if(fontrenderer.getStringWidth(txt) > width) // Auto crop text to keep things tidy\n {\n \tint dotWidth = fontrenderer.getStringWidth(\"...\");\n \ttxt = fontrenderer.trimStringToWidth(txt, width - dotWidth) + \"...\";\n }\n \n this.drawCenteredString(fontrenderer, txt, this.xPosition + this.width / 2, this.yPosition + (this.height - 8) / 2, l);\n }\n }",
"@Override\r\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\tx = e.getX();\r\n\t\t\ty = e.getY();\r\n\r\n\t\t\tsetTitle(\"x=\" + x + \",y=\" + y);\r\n\r\n\t\t\trepaint(); // paint()를 호출\r\n\t\t}",
"public int checkMenuButtons() {\n\n // computing the coordinates of the cursor\n\n mouseX = (float) ((currentPos.x * 1.0f - window.getWidth() / 2f) / (window.getWidth() / 2f));\n mouseY = (float) ((currentPos.y * 1.0f - window.getHeight() / 2f) / (window.getHeight() / 2f));\n\n float checkX = ((2f - 0.4f * boxRatio) / 2) - 1;\n int checkButton = 0;\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > -0.24f && mouseY < -0.157f) {\n checkButton = 11;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > -0.24f && mouseY < -0.157f && isLeftButtonPressed()) {\n checkButton = 12;\n }\n\n\n // coordinates of the 2nd button\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > -0.098f && mouseY < -0.0098f) {\n checkButton = 21;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > -0.098f && mouseY < -0.0098f && isLeftButtonPressed()) {\n checkButton = 22;\n }\n\n\n // coordinates of the 3rd button\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.05f && mouseY < 0.144f) {\n checkButton = 31;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.05f && mouseY < 0.144f && isLeftButtonPressed()) {\n checkButton = 32;\n }\n\n // coordinates of the 1st button\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.2f && mouseY < 0.29f) {\n checkButton = 41;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.2f && mouseY < 0.29f && isLeftButtonPressed()) {\n checkButton = 42;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.35f && mouseY < 0.44f) {\n checkButton = 51;\n }\n\n if (checkX < mouseX && mouseX < (checkX + 0.4f * boxRatio) && mouseY > 0.35f && mouseY < 0.44f && isLeftButtonPressed()) {\n checkButton = 52;\n }\n\n return checkButton;\n }",
"public void drawButtons() {\n\t\tfill(color(221, 221, 221));\n\t\tfor (int i = 0; i < NUM_BUTTONS; i++) {\n\t\t\trect(BUTTON_LEFT_OFFSET + i * (BUTTON_WIDTH + 12), BUTTON_TOP_OFFSET, BUTTON_WIDTH, BUTTON_HEIGHT);\n\t\t}\n\n\t\t// set text color on the buttons to blue\n\t\tfill(color(0, 0, 255));\n\n\t\ttext(\"Add Cards\", BUTTON_LEFT_OFFSET + 18, BUTTON_TOP_OFFSET + 22);\n\t\ttext(\" Find Set\", BUTTON_LEFT_OFFSET + 18 + BUTTON_WIDTH + 12, BUTTON_TOP_OFFSET + 22);\n\t\ttext(\"New Game\", BUTTON_LEFT_OFFSET + 18 + 2 * (BUTTON_WIDTH + 12), BUTTON_TOP_OFFSET + 22);\n\t\tif (state == State.PAUSED) {\n\t\t\ttext(\"Resume\", BUTTON_LEFT_OFFSET + 45 + 3 * (BUTTON_WIDTH + 12), BUTTON_TOP_OFFSET + 22);\n\t\t} else {\n\t\t\ttext(\"Pause\", BUTTON_LEFT_OFFSET + 54 + 3 * (BUTTON_WIDTH + 12), BUTTON_TOP_OFFSET + 22);\n\t\t}\n\t}",
"void onMouseClicked(MouseEventContext mouseEvent);",
"@Override\n\tpublic void drawButton(Minecraft par1Minecraft, int par2, int par3)\n {\n if (this.drawButton)\n {\n boolean var4 = par2 >= this.xPosition && par3 >= this.yPosition && par2 < this.xPosition + this.width && par3 < this.yPosition + this.height;\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n par1Minecraft.renderEngine.bindTexture(par1Minecraft.renderEngine.getTexture(SteamCraft.guiLocation + \"researchpaper.png\"));\n int var5 = 209;\n int var6 = 13;\n\n if (this.nextPage)\n {\n var6 += 91;\n var5 += 13;\n }\n\n this.drawTexturedModalRect(this.xPosition, this.yPosition, var5, 0, 10, var6);\n }\n }",
"void onRightClick(double mouseX, double mouseY);",
"private void button1MousePressed(MouseEvent e) {\n }",
"public synchronized void mousePressed(MouseEvent event) {\n int x = event.getX(), y = event.getY();\n String loc = location(x, y);\n if (loc.equals(\"waste\")) {\n _pressedCard = _game.topWaste();\n fr = \"waste\";\n } else if (loc.equals(\"reserve\")) {\n _pressedCard = _game.topReserve();\n fr = \"reserve\";\n } else {\n char[] lochar = new char[2];\n loc.getChars(0, loc.length(), lochar, 0);\n if (lochar[0] == new Character('f')) {\n _pressedCard = _game.topFoundation(lochar[1] - MAGICNUMBER);\n fr = \"foundation\";\n index = lochar[1] - MAGICNUMBER;\n }\n if (lochar[0] == new Character('t')) {\n _pressedCard = _game.topTableau(lochar[1] - MAGICNUMBER);\n fr = \"tableau\";\n index = lochar[1] - MAGICNUMBER;\n }\n }\n _display.repaint();\n }",
"public void mouseInput(Main main, float x, float y) {\n\t\t\n\t\t// loop through buttons array list\n\t\tfor (Button button: buttons) {\n\t\t\t\t\t\n\t\t\t// check if this button was clicked\n\t\t\tif (button.getAabb().intersects(x, y)) {\n\t\t\t\t\t\t\n\t\t\t\t// check which button\n\t\t\t\tif (button.equals(menuButton))\n\t\t\t\t\tmain.setCurrScreen(0);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"void click(int x, int y, Keys... modifiers);",
"protected void mouseClicked(int par1, int par2, int par3)\n {\n if (this.buttonId >= 0)\n {\n \t// no setting minimap keybinds to mouse button. Can do so if wanted if I change ZanMinimap to not send every input to Keyboard for processing. Check if it's mouse first\n // this.options.setKeyBinding(this.buttonId, -100 + par3);\n // ((GuiButton)this.controlList.get(this.buttonId)).displayString = this.options.getOptionDisplayString(this.buttonId);\n this.buttonId = -1;\n // KeyBinding.resetKeyBindingArrayAndHash();\n }\n else\n {\n super.mouseClicked(par1, par2, par3);\n }\n }",
"public boolean mouseClicked(MouseEvent e)\r\n {\r\n double x = e.getX();\r\n double y = e.getY();\r\n \r\n //find if coordinates are in a \"button\"\r\n for (int i = 0; i < towerButtons.length; i++)\r\n {\r\n if (towerButtons[i].contains(x,y))\r\n {\r\n display.setUnit(dummyList.get(i));\r\n selectedIndex = i;\r\n }\r\n }\r\n \r\n //within bounds\r\n if ((new Rectangle2D.Double(initX, 0, width, height)).contains(x,y))\r\n return true;\r\n return false;\r\n }",
"public void mousePressed(MouseEvent e) {\n mouseX = e.getX();\n mouseY = e.getY();\n\n lastClicked = canvas.getElementAt(new GPoint(e.getPoint()));\n\n }",
"void mouseClicked(MouseEvent mouseEvent);",
"@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tpvo3 = getPosition(e.getPoint());\n\t\t// System.out.println(pvo1.getX()+\",\"+pvo1.getY());\n\t}",
"@Override\n\tpublic void mousePressed(MouseEvent e) {\n\n\t\tLabel_Selected((JLabel) e.getComponent());\n\t\t\n\t\tnow_x = e.getXOnScreen() - e.getComponent().getX();\n\t\tnow_y = e.getYOnScreen() - e.getComponent().getY();\n\t\tnow_w = e.getComponent().getWidth();\n\t\tnow_h = e.getComponent().getHeight();\n\t\tnow_L = e.getComponent().getX()+e.getComponent().getWidth();\n\t\tnow_D = e.getComponent().getY()+e.getComponent().getHeight();\n\t\t\n\t\tif(e.getX() > e.getComponent().getWidth()-5 && e.getX() < e.getComponent().getWidth() + 5) {\n\t\t\tnow_X = 'R';\n\t\t} else if(e.getX() > -5 && e.getX() < 5) {\n\t\t\tnow_X = 'L';\n\t\t}\n\t\tif(e.getY() > e.getComponent().getHeight()-5 && e.getY() < e.getComponent().getHeight() + 5) {\n\t\t\tnow_Y = 'D';\n\t\t} else if(e.getY() > -5 && e.getY() < 5) {\n\t\t\tnow_Y = 'U';\n\t\t}\n\t\t\n\t\tText_Set();\n\t}",
"@Override\n\t\t\tpublic void mouseMove(MouseEvent e) {\n\t\t\t\tint x = e.x;\n\t\t\t\tint y = e.y;\n\t\t\t\t\n\t\t\t\tgc.setFont(new Font(mainFrame.getDisplay(),\"楷体\",40,SWT.BOLD));\n\t\t\t\tgc.setAlpha(255);\n\t\t\t\tgc.setForeground(new Color(mainFrame.getDisplay(),255,255,255));\n\t\t\t\t\n\t\t\t\tif(settingRect.contains(x,y)) {\n\t\t\t\t\t gc.drawString(\"设置选项\", 342, 285,true);\n\t\t\t\t\t changeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(helpRect.contains(x,y)) {\n\t\t\t\t\t\tgc.drawString(\"帮助信息\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(aboutRect.contains(x,y)) {\n\t\t\t\t\t\tgc.drawString(\"关于游戏\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(exitRect.contains(x,y)) {\n\t\t\t\t\t\tgc.drawString(\"退出游戏\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\telse if(onButton(classicP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"经典模式\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\t\n\t\t\t\t}\n\t\t\t\telse if(onButton(timeP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"时间模式\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(onButton(levelP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"冒险闯关\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\t\n\t\t\t\t}\n\t\t\t\telse if(onButton(onlineP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"联网对战\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcanvas.redraw();\n\t\t\t\t\tchangeCursor(false);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}",
"public void mouseClicked( MouseEvent event ){}",
"public static void mouseClick (Console c){\r\n\t\t//wait for mouse click\r\n\t\tc.addMouseListener(new MouseAdapter() { \r\n \t\t\tpublic void mousePressed(MouseEvent me) {\r\n \t\t\t\tx = me.getX();\r\n \t\t\t\ty = me.getY();\r\n \t\t\t} \r\n \t\t});\r\n\t\t\r\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tif(e.getX()>46&&e.getX()<151){\n\t\t\tif(e.getY()<362&&e.getY()>321){\n\t\t\t\trunner.exitAction();\n\t\t\t\tSystem.out.println(\"dsd\");\n\t\t\t}\n\t\t\telse if(e.getY()<311&&e.getY()>270){\n\t\t\t\trunner.meanStartyAction();\n\t\t\t\tSystem.out.println(\"dssd\");\n\t\t\t}\n\t\t\telse if(e.getY()>219&&e.getY()<260){\n\t\t\t\trunner.meanOrderAction();\n\t\t\t\tSystem.out.println(\"dsssd\");\n\t\t\t}\n\t\t\telse if(e.getY()>168&&e.getY()<209){\n\t\t\t\trunner.meanInfoAction();\n\t\t\t\tSystem.out.println(\"dsdd\");\n\t\t\t}\n\t\t\telse if(e.getY()<158&&e.getY()>58){\n\t\t\t\trunner.showWelcome();\n\t\t\t\tSystem.out.println(\"d欢迎\");\n\t\t\t}\n\t\t}\n\t\telse if(e.getX()>580&&e.getX()<615&&e.getY()>70&&e.getY()<105){\n\t\t\trunner.getQuickHotel(hotelFrame.name.getText());\n\t\t}\n\t\telse if(e.getX()>190&&e.getX()<366&&e.getY()>125&&e.getY()<285){\n\t\t\trunner.getQuickHotel(\"北京\");\n\t\t}\n\t\telse if(e.getX()>375&&e.getX()<645&&e.getY()>125&&e.getY()<285){\n\t\t\trunner.getQuickHotel(\"南京\");\n\t\t}\n\t\telse if(e.getX()>190&&e.getX()<460&&e.getY()>290&&e.getY()<450){\n\t\t\trunner.getQuickHotel(\"香港\");\n\t\t}\n\t\telse if(e.getX()>465&&e.getX()<735&&e.getY()>290&&e.getY()<450){\n\t\t\trunner.getQuickHotel(\"上海\");\n\t\t}\n\t}",
"private void button1MouseClicked(MouseEvent e) {\n\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(e.getButton()==MouseEvent.BUTTON1)\n\t\t\t\t{\n\t\t\t\t\tif(Conf.isbegin==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isbegin=0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isbegin=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(e.getButton()==MouseEvent.BUTTON3)\n\t\t\t\t{\n\t\t\t\t\tif(Conf.isreplay==1)\t\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isreplay=0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isreplay=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tpublic void mousePressed(MouseEvent me) {\r\n\t\tbuttonType = me.getButton();\r\n\t\tselect(me.getX(), me.getY());\r\n\t}",
"private void button1MouseClicked(MouseEvent e) {\n }",
"@Override\n\tpublic void handleMouseClicked(MouseEvent event) {\n\t\tif(this.isHovering(event.getX(), event.getY()))\n\t\t\t//Executes the onclick with the button as argument\n\t\t\tthis.text = this.onclick.apply(event.getButton());\n\t}",
"public void mousePressed( MouseEvent event ){}",
"public void click_on(){\n float x = mouseX;\n float y = mouseY;\n //if(dela>0)dela--;\n if(overRect(x, y, 570, 50, btn_ext.width, btn_ext.height)){sfx(4);\n clicked(btn_ext.get(), 570, 50, btn_ext.width, btn_ext.height, INVERT);\n qq = -1;\n }else if(overRect(x, y, 190, 50, btn_tip.width, btn_tip.height)&&!level_pick){sfx(4);\n sm = k;\n sp = 5;\n qq = 6;\n qqTmp = 2;\n }else if(level_pick){\n if(overRect(x, y, 190, 50, btn_back.width, btn_back.height)){sfx(4);\n clicked(btn_back.get(), 190, 50, btn_back.width, btn_back.height, INVERT);\n level_pick = false;\n }else{\n for(int i=0;i<7;i++){\n float xx = 252.5f;\n float yy = 130;\n if(i>3){\n xx = -45;\n yy = 215;\n }\n if(User.getInt((char)('A'+k)+str(i+1))!=-1){\n if(overRect(x, y, xx+85*i, yy, level_on.width, level_on.height)){sfx(4);\n sl = i;\n _1.setLevel();\n _1.initGame();\n pp = 1;qq = -1;\n }\n }\n }\n }\n }else{\n if(overRect(x, y, 540, height/2, btn_next.width, btn_next.height)){sfx(4);\n clicked(btn_next.get(), 540, height/2, btn_next.width, btn_next.height, INVERT);\n k=(k+1)%3;\n }\n else if(overRect(x, y, 220, height/2, btn_prev.width, btn_prev.height)){sfx(4);\n clicked(btn_prev.get(), 220, height/2, btn_prev.width, btn_prev.height, INVERT);\n k--;\n if(k<0)k=2;\n }else if(overRect(x, y, width/2, height/2, latar[k].width, latar[k].height)){sfx(4);\n level_pick = true;\n sm = k;\n }\n }\n }",
"public void onMouseEvent(int button,int action, int mods){\n\t\tcurrentPos = Game.ui.getMouseLocation();\n\t\t//Converting mouse screen location to mouse world location\n\t\tint[] mouseLocation = {(chara.getX() + currentPos.x-screenWidth/2), (currentPos.y + chara.getY())-screenHeight/2};\n\t\t//System.out.println(mouseLocation[0]+\",\"+mouseLocation[1]);\n\t\tif(button == 0 && action == 1){\n\t\t\tspells.add(chara.castSpell(mouseLocation, currentWalls, enemies, true));\n\t\t} else if (button == 1 && action == 1){\n\t\t\tspells.add(chara.castSpell(mouseLocation, currentWalls, enemies, false));\n\t\t}\n\t}",
"Point userClickPoint();",
"@Override\n public void mousePressed(MouseEvent me) {\n mouse_x = me.getX();\n mouse_y = me.getY();\n super.mousePressed(me);\n }",
"String getKbmouseTarget();",
"public void mouseClicked() {\n\t\tif(gameState==0 && mouseX >= 580 && mouseX <=580+140 && mouseY>=650 && mouseY<=700){\r\n\t\t\tLOGGER.info(\"Detected click on Play, sending over to gameDriver\");\r\n\t\t\t//Changes the game state from start menu to running\r\n\t\t\tgameState = 1;\r\n\t\t\t\r\n\t\t}\t\t\r\n\t\t\r\n\t\t//if on menu n click instructions\r\n\t\tif(gameState==0 && mouseX >= 100 && mouseX <=450 && mouseY>=650 && mouseY<=700){\r\n\t\t\tLOGGER.info(\"Detected click on Instructions, sending over to gameDriver\");\r\n\t\t\t//Changes the game state from start menu to instructions\r\n\t\t\tgameState = 3 ;\r\n\t\t}\r\n\t\t\r\n\t\t//if user clicks on back change game state while on map select or instructions\r\n\t\tif((gameState == 3||gameState == 1)&& mouseX >= 50 && mouseX <=50+125 && mouseY>=650 && mouseY<=700 )\r\n\t\t\tgameState = 0;\r\n\t\t\r\n\t\t\r\n\t\t//if they are on mapSelect and they click\r\n\t\tif(gameState==1 && mouseX > 70 && mouseX <420 && mouseY> 100 && mouseY<470){\r\n\t\t\tLOGGER.info(\"selected map1, sending over to game driver\");\r\n\t\t\tmapSelected=1;\r\n\t\t\tMAP=new Map(this, mapSelected);\r\n\t\t\tgame = new gameDriver(this, MAP);\r\n\t\t\tgameState=2;\r\n\t\t}\r\n\t\t\r\n\t\t//if they click quit while on the main menu\r\n\t\tif(gameState==0 && mouseX >= 950 && mouseX <=950+130 && mouseY>=650 && mouseY<=700 ){\r\n\t\t\tLOGGER.info(\"Detected quit button, now closing window\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\t//if they click on play agagin button while at the game overscrren\r\n\t\tif(gameState==4 && mouseX>680 && mouseX<1200 && mouseY>520 && mouseY<630){\r\n\t\t\t//send them to the select menu screen\r\n\t\t\tgameState=1;\r\n\t\t}\r\n\t\t\r\n\t\t//displays rgb color values when click, no matter the screen\r\n//\t\tprintln(\"Red: \"+red(get().pixels[mouseX + mouseY * width]));\r\n// println(\"Green: \"+green(get().pixels[mouseX + mouseY * width]));\r\n// println(\"Blue: \"+blue(get().pixels[mouseX + mouseY * width]));\r\n//\t\tprintln();\r\n\t}",
"public void mouseClicked (MouseEvent m) {\r\n \t//System.out.println(\"mouseClicked..\");\t\r\n }",
"boolean onLeftClick(double mouseX, double mouseY);",
"void mousePressed(MouseEvent mouseEvent);",
"public void mouseClicked(MouseEvent event){}",
"public void mousePressed (MouseEvent event) {}",
"public void drawButton(Minecraft par1Minecraft, int par2, int par3) {\r\n\t\tif(this.visible) {\r\n\t\t\tRenderUtils.bindTexture(texture);\r\n\t\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\t\tint posX = 176;\r\n\t\t\tint posY = 10;\r\n\t\t\t\r\n\t\t\tif(this.enabled) {\r\n\t\t\t\tposY = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(!this.field_73749_j) {\r\n\t\t\t\tposX += 15;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.drawTexturedModalRect(this.xPosition, this.yPosition, posX, posY, this.width, this.height);\r\n\t\t}\r\n\t}",
"abstract void onRightClick(int x, int y, boolean down);",
"public void mouseClicked(MouseEvent e) {\r\n\r\n\t\t\tPoint2D origin = computeLayoutOrigin();\r\n\r\n\t\t\t// Compute the mouse click location relative to\r\n\t\t\t// textLayout's origin.\r\n\t\t\tfloat clickX = (float) (e.getX() - origin.getX());\r\n\t\t\tfloat clickY = (float) (e.getY() - origin.getY());\r\n\r\n\t\t\t// Get the character position of the mouse click.\r\n\t\t\tTextHitInfo currentHit = textLayout.hitTestChar(clickX, clickY);\r\n\t\t\tint i = currentHit.getCharIndex();\r\n\t\t\t\r\n\t\t\tSelectionTree.Subelement stm;\r\n\t\t\tif (i >= start0 && i <= end0) {\r\n\t\t\t\tlevel++;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tlevel--;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tstm = term.getSubelement(i, level);\r\n\t\t\tstart0 = stm.start;\r\n\t\t\tend0 = stm.end;\r\n\t\t\tlevel = stm.level;\r\n\t\t\t\r\n\t\t\tselectedTerm.setText(level + \": \" + Printer.print(stm.element).toString());\r\n\t\t\tmouseMoved(e);\r\n\t\t\t\r\n\t\t\trepaint();\r\n\t\t}",
"public void mouseClicked(MouseEvent e) {\n System.out.println(e.getX()+\" \"+e.getY());\n \n switch(state){\n case DEFAULT:\n if(e.isMetaDown()){\n String info = \"\";\n \n }\n break;\n \n case ROAD_BUILDING:\n //TODO\n break;\n \n case SETTLEMENT_BUILDING:\n //TODO\n break;\n \n case CITY_BUILDING:\n //TODO\n break;\n \n case ROBBER:\n int[] coordinates = new int[2];\n //coordinates[0]\n break;\n }\n }",
"private void formMousePressed(java.awt.event.MouseEvent evt) {\n xx=evt.getX();\n xy=evt.getY();\n \n }",
"private void formMousePressed(java.awt.event.MouseEvent evt) {\n xx=evt.getX();\n xy=evt.getY();\n \n }",
"public boolean isClicked() {\n\t\tif(GameMouse.getInstance().getX() < x || GameMouse.getInstance().getX() > x + width) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\tif(GameMouse.getInstance().getY() < y || GameMouse.getInstance().getY() > y + height) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\treturn GameMouse.getInstance().isClicked(GameMouse.LEFT_BUTTON);\n\t}",
"@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\tPoint point = new Point();\r\n\t\tpoint.x = e.getX();\r\n\t\tpoint.y = e.getY();\r\n\r\n\t switch (shape) {\r\n\t \r\n\t case LINE :\r\n\r\n\t \tthis.clicksforLine.add(point);\r\n\t \tbreak;\r\n\t case CIRCLE:\r\n\r\n\t \tthis.clicksforCircle.add(point);\r\n\t \tbreak;\r\n\t case POLYGON:\r\n\r\n\t \tthis.clicksforPoly.add(point);\r\n\t \tbreak;\r\n\t case CURVE:\r\n\r\n\t \tthis.clicksforCurve.add(point);\r\n\t \tbreak;\r\n\t case CLEAR:\r\n\t {\r\n\t }\r\n\t \tbreak;\r\n\t default:\r\n\t \tbreak;\r\n\t }\r\n \r\n\t\tSystem.out.println(point.x+ \",\"+point.y);\r\n repaint();\r\n\t\t\r\n\t}",
"public void mousePressed(MouseEvent e) {\n pX = e.getX();\n pY = e.getY();\n }",
"public void mousePressed(MouseEvent e) {}",
"public void mousePressed(MouseEvent e) {}",
"public void mousePressed(MouseEvent e) {}",
"public void mousePressed(MouseEvent e) {\n if (gameover)\n return;// if game is over, do nothing\n\n if ((e.getModifiersEx() == 5120)) // Both left and right buttons\n // are pressed\n watchAroundCell(x, y);\n else if ((e.getModifiersEx() == 1024)) // Left button is pressed\n if (fieldManager.isCellOpenable(x, y))\n fieldInerface.putBlankButton(x, y);\n }",
"@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\t\n\t\tif(e.getSource()==b) {\n\t\t\ty = Double.parseDouble(tf.getText());\n\t\t\ty = (5.0/9.0)*(y-32.0);\n\t\t\tx = Double.toString(y);\n\t\t\tl1.setText(x);\n\t\t}\n\t\t\n\t\t\n\t}",
"public void mousePressed() {\n }",
"public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n isRightPressed = true;\n }\n }",
"@Override\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tx=e.x;\r\n\t\t\t\ty=e.y;\t\t\t\t\r\n\r\n\t\t\t}",
"public boolean isClicked(int mouseX, int mouseY) {\t\t\t\t\n\t\t\n\t\tif(mouseX >= x && mouseX < (x + 64)) {\n\t\t\tif(mouseY >= y && mouseY < (y + 64)) {\n\t\t\t\tSystem.out.println(\"Clicked tile at \" + x + \", \" + y);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public void mouseClicked(MouseEvent e) {}",
"public void mouseClicked(MouseEvent e) {}",
"public void mouseClicked(MouseEvent e) {}",
"public void mouseClicked(MouseEvent e) {}",
"@FXML\r\n private void displayPostion(MouseEvent event) {\r\n status.setText(\"X = \" + event.getX() + \". Y = \" + event.getY() + \".\");\r\n }",
"@Override\n public void mouseClicked(MouseEvent e) {\n System.out.println(\"Evento click ratón\");\n }",
"public static void main(String[] args) throws AWTException {\n\n\nPointerInfo a = MouseInfo.getPointerInfo();\nPoint b = a.getLocation();\nint x = (int) b.getX();\nint y = (int) b.getY();\nSystem.out.print(y + \"jjjjjjjjj\");\nSystem.out.print(x);\nRobot r = new Robot();\nr.mouseMove(x, y - 50);\n\n\n\t}",
"@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tclickPoint = e.getPoint();\r\n\t\t\t\tselectionBounds = null;\r\n//\t\t\t\tSystem.out.println(\"Bac dau\" + e.getPoint().toString());\r\n\t\t\t\tbacdauX = (int) e.getPoint().getX();\r\n\t\t\t\tbacdauY = (int) e.getPoint().getY();\r\n\t\t\t}"
]
| [
"0.70372427",
"0.666991",
"0.6526164",
"0.64766157",
"0.6467717",
"0.645512",
"0.64210325",
"0.6413383",
"0.6311853",
"0.62648517",
"0.6214114",
"0.6206058",
"0.62056124",
"0.62056124",
"0.62056124",
"0.6195198",
"0.61912763",
"0.61759967",
"0.61706084",
"0.6166909",
"0.6163588",
"0.61608297",
"0.615984",
"0.61360675",
"0.6135041",
"0.6087507",
"0.60614824",
"0.6059336",
"0.60150534",
"0.60125875",
"0.6009025",
"0.59761137",
"0.59704477",
"0.5959606",
"0.59545296",
"0.5941327",
"0.58933294",
"0.5878928",
"0.5871086",
"0.5869743",
"0.5849955",
"0.5842794",
"0.5841847",
"0.5835597",
"0.5823134",
"0.58147067",
"0.58132726",
"0.5812636",
"0.58122295",
"0.57911634",
"0.5779861",
"0.57754755",
"0.577449",
"0.577285",
"0.5769878",
"0.5768086",
"0.5765815",
"0.5748832",
"0.5742606",
"0.57290465",
"0.5726218",
"0.57024133",
"0.5698431",
"0.5698024",
"0.5697161",
"0.56896704",
"0.56836736",
"0.5678492",
"0.5677936",
"0.5666554",
"0.56648463",
"0.5664671",
"0.5649477",
"0.5648721",
"0.564806",
"0.5646415",
"0.5641154",
"0.56405777",
"0.5627643",
"0.5627643",
"0.5627326",
"0.56266934",
"0.5625517",
"0.56246364",
"0.56246364",
"0.56246364",
"0.5609518",
"0.56086814",
"0.56046784",
"0.5604676",
"0.55931944",
"0.55807143",
"0.5575932",
"0.5575932",
"0.5575932",
"0.5575932",
"0.5575922",
"0.55754036",
"0.5565162",
"0.556474"
]
| 0.6083664 | 26 |
Create a Stack with default values. Stack starts empty with maximum possible size | public MyStack() {
topNode = null;
MAX_SIZE = Integer.MAX_VALUE;
nodeCount = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MyStack() {\r\n\t\tthis(DEFAULT_CAPACITY);\r\n\t}",
"public MyStack() {\n bottom = new Node(Integer.MAX_VALUE);\n top = bottom;\n size = 0;\n }",
"public FixedSizeArrayStack() {\r\n\t\tthis(CAPACITY);\r\n\t}",
"public ArrayStack() {\n this( DEFAULT_CAPACITY );\n }",
"public CustomStack() {\n this.myCustomStack = new Object[10]; //array starts with 10 spaces, all empty\n numElements = 0; //stack starts with zero elements\n\n }",
"public Stack() {\r\n\t\tthis(capacity);\r\n\t}",
"public Stack(int size) {\n stack = new Object[size];\n minStackSize = size;\n top = -1;\n }",
"public MyStack() {\n @SuppressWarnings(\"unchecked\")\n T[] newStack = (T[]) new Object[DEFAULT_STACK_SIZE];\n stackArray = newStack;\n stackSize = 0;\n }",
"public ArrayStack(){\r\n\t\tstack= new Object[DEFAULT_SIZE];\r\n\t\t}",
"public MaxStack() {\n stack = new Stack();\n maxes = new MaxList();\n }",
"public MinStack()\n\t{\n\t\tindex = -1;\n\t\tsize = 50;\n\t\tdata = new int[size];\n\t}",
"public MinStack() {\n size = 0;\n }",
"public MaxStack() {\n maxHeap = new PriorityQueue<>(new MaxHeapComparator());\n map = new HashMap<Integer, Stack<Node>>();\n head = null;\n }",
"public MyStack(int size) {\n\t\ttopNode = null;\n\t\tMAX_SIZE = size;\n\t\tnodeCount = 0;\n\t}",
"public Stack() {\n stack = new Object[1];\n minStackSize = 1;\n top = -1;\n }",
"public Stack() {\r\n this(20);\r\n }",
"public _30_min_stack() {\n data = new Stack<>();\n help = new Stack<>();\n }",
"public stackTesting(int size){\n\t\tMaxSize = size;\n\t\tStack = new int[MaxSize];\n\t\tStackTop = -1;\n\t}",
"public ArrayStack() {\n this(INITIAL_CAPACITY);\n }",
"public StackClass() {\n \tsize=0;\n\t}",
"public IntStack(int maxsize) {\n ar = new int[maxsize];\n }",
"public Stacked(int size){\n this.size = size;\n count = 0;\n expand = 5;\n stackArray = (E[]) new Object[size];\n }",
"public ArrayStack() {\n\t\ttop = 0;\t\t\t\t\t\t\t\t\t\t// points to the first element. Since empty, points 0\n\t\tstack = (T[]) (new Object[DEFAULT_CAPACITY]);\t// Casting to whatever is our desired element.\n\t}",
"public Stack() {}",
"public ArrayStack()\r\n {\r\n top = 0;\r\n stack = (T[])(new Object[DEFAULT_CAPACITY]);\r\n }",
"public MinStack() {\n st = new Stack<>();\n }",
"public MinStack() {\n data = new ArrayDeque<>();\n helper = new ArrayDeque<>();\n }",
"public MinStack() {\n dataStack=new Stack<>();\n minStack=new Stack<>();\n }",
"Stack(int sizeYouWantYourDataStuctureToBe){\n stackArray = new int [sizeYouWantYourDataStuctureToBe];\n }",
"@SubL(source = \"cycl/stacks.lisp\", position = 1818) \n public static final SubLObject create_stack() {\n return clear_stack(make_stack(UNPROVIDED));\n }",
"public ArrayStack(int initialCapacity) {\n\t\ttop = 0;\n\t\tstack = (T[]) (new Object[initialCapacity]);\n\t}",
"public NavStack(int size) {\n super();\n maxSize = size;\n }",
"public void setMaxStack(int maxStack);",
"public Stack() {\r\n first = null;\r\n N = 0;\r\n }",
"public MinStack1() {\r\n stack = new Stack<>();\r\n }",
"public MinValueStack(){\r\n stack1 = new Stack<T>();\r\n stack2 = new Stack<T>();\r\n size = 0;\r\n }",
"public MinStack() {\n min = Integer.MIN_VALUE;\n stack = new Stack();\n }",
"public MyStack(int capacity) {\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tT[] arr = (T[])new Object[capacity];\r\n\t\tstack = arr;\r\n\t\ttopIndex = -1;\r\n\t}",
"public ArrayStack (int initialCapacity)\r\n {\r\n top = 0;\r\n stack = (T[]) (new Object[initialCapacity]);\r\n }",
"public MyStack(int size) {\n this.size = size;\n this.stackArray = (T[]) new Object[size];\n this.top = -1;\n }",
"public MinStack() {\n s1 = new ArrayDeque<>();\n s2 = new ArrayDeque<>();\n min = Integer.MAX_VALUE;\n }",
"public Stack() {\r\n\t\tthis.items = new ArrayList<>();\t\r\n\t}",
"public MinStack() {\n in = new Stack();\n out = new Stack();\n min = Integer.MAX_VALUE;\n out.push(min);\n }",
"public MyStack(T data, int size) {\n\t\t//Wrap the data in a Node\n\t\tNode newNode = new Node(data);\n\t\t\n\t\t//Enter the Node into the stack\n\t\ttopNode = newNode;\n\t\tnodeCount = 1;\n\t\tMAX_SIZE = size;\n\t}",
"public MinStack() {\n data = new Stack();\n min = new Stack();\n }",
"public MinStack() {\n stack = new Stack<Integer>();\n minStack = new Stack<Integer>();\n }",
"public MinStack() {\r\n stk = new Stack<>();\r\n stk1 = new Stack<>();\r\n }",
"ArrayStack() {\r\n\t\tstack = new int[10];\r\n\t\ttop = 0;\r\n\t}",
"public MinStack() {\n sort = new Stack<>();\n stack = new Stack<>();\n }",
"public OperandStack(final int initialSize)\n {\n super();\n this.stack = new Object[initialSize];\n }",
"public MinStack_155() {\n\t\tmin= new Stack<Integer>();\n\t\tstack= new Stack<Integer>();\n\t}",
"public No155MinStack() {\n stack = new Stack<>();\n }",
"public MinStack() {\n this.capacity = CAPACITY;\n this.objects = new Object[capacity];\n }",
"public MyStack(){\n\ta = new String[10];\n\ttop = -1;\n }",
"public Stack() {\n \tstack = new ArrayList<T>();\n }",
"public MinStack() {\r\n stack=new Stack<>();\r\n minstack=new Stack<>();\r\n map=new HashMap<>();\r\n }",
"public MinStack() {\n minList = new LinkedList<>();\n numStack = new Stack<>();\n }",
"public CarStackImpl() {\n carStack = new int[MAX_SIZE];\n top = -1;\n }",
"public Stack() {\n stack = new LinkedList();\n }",
"public Heap() {\r\n\t\tthis(DEFAULT_INITIAL_CAPACITY, null);\r\n\t}",
"public MinStack() {\n stackList = new ArrayList<>();\n minList = new ArrayList<>();\n size = 0;\n }",
"public MinStack() {\n stack = new Stack<>();\n minStack = new Stack<>();\n }",
"public MinStack() {\r\n\t\t}",
"public MinStack() {\n mainstack = new Stack<Integer>();\n secondaryminstack = new Stack<Integer>();\n }",
"public MinStack() {\n capacity = 1 << 4;\n nums = new int[capacity];\n mins = new int[capacity];\n }",
"public Stack() {\n /*\n * Constructor\n * This function is an initializer for this class.\n */\n top = null;\n sz = 0;\n }",
"public MyStack(T data) {\n\t\t//Wrap the data in a Node\n\t\tNode newNode = new Node(data);\n\t\t\n\t\t//Enter the Node into the stack\n\t\ttopNode = newNode;\n\t\tnodeCount = 1;\n\t\tMAX_SIZE = Integer.MAX_VALUE;\n\t\t\n\t\t\n\t}",
"public Stack()\n\t{\n\t\tlist = new LinkedList<T>();\n\t}",
"public MinStack() {\n stack = new Stack<IntMinPair>();\n }",
"public ArrayStack(int initialCapacity) {\n size = 0;\n this.backing = (T[]) new Object[initialCapacity];\n }",
"public MyStack() {\n\n }",
"public MinStack() {\n sdata = new Stack<Integer>();\n smin = new Stack<Integer>();\n }",
"public MyStack() {\n\t q=new LinkedList<Integer>();\n\t }",
"public DefaultRenderStack(DefaultRenderStack prototype) {\n stack = new ArrayDeque<>(requireNonNull(prototype).stack);\n }",
"public DoubleElementMinStack() {\n stack = new Stack<>();\n }",
"public NotationStack() {\r\n\t\tstack = new ArrayList<T>(1000);\r\n\t\tsize = 1000;\r\n\t}",
"public MyStack() {\n queue = new ArrayDeque<>();\n }",
"public MyDynamicStack() {\r\n items = new LinkedList<>();\r\n }",
"public MinStack() {\n\n }",
"public MyStack() {\r\n stack = new LinkedList<>();\r\n }",
"Stack(Recycler<T> parent, Thread thread, int maxCapacity, int maxSharedCapacityFactor, int ratioMask, int maxDelayedQueues)\r\n/* 408: */ {\r\n/* 409:440 */ this.parent = parent;\r\n/* 410:441 */ this.threadRef = new WeakReference(thread);\r\n/* 411:442 */ this.maxCapacity = maxCapacity;\r\n/* 412:443 */ this.availableSharedCapacity = new AtomicInteger(Math.max(maxCapacity / maxSharedCapacityFactor, Recycler.LINK_CAPACITY));\r\n/* 413:444 */ this.elements = new Recycler.DefaultHandle[Math.min(Recycler.INITIAL_CAPACITY, maxCapacity)];\r\n/* 414:445 */ this.ratioMask = ratioMask;\r\n/* 415:446 */ this.maxDelayedQueues = maxDelayedQueues;\r\n/* 416: */ }",
"public MinStack() {\r\n list = new LinkedList();\r\n }",
"Stack<Integer> createStack() {\n\t\tStack<Integer> my_stack = new Stack<Integer>();\n\t\t\n\t\t// Add all numbers in linkedlist to stack one by one\n\t\tNode curr = head;\n\t\twhile (curr != null) {\n\t\t\tmy_stack.push(curr.data);\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn my_stack;\n\t}",
"public StackImpl() {\r\n\t\t\r\n\t}",
"public LC155_MinStack2() {\n\t\tdata = new Stack<Long>();\n\t}",
"public Stack() {\n\t\t \n\t\ttop = null;\n\t}",
"public MyStack() {\n this.queue=new LinkedList<Integer>();\n }",
"public MyStack() {\n\n }",
"public IntStack() {\n theStack = new int[IntStack.theCapacity];\n nextPushLocation = 0;\n }",
"public myStackUsingDynamicArray(){\n A = new dynamicArray();\n top=-1;\n bottom=-1;\n localSize=0;\n //Othe initializations to be done by student\n }",
"public MyQueue() {\n pushStack = new Stack<>();\n popStack = new Stack<>();\n }",
"public Stacked(){\n count = 0;\n stackArray = (E[]) new Object[START_CAP];\n }",
"public MyStack() {\n \tlist = new ArrayList<Integer>();\n }",
"public MinStack() {\n }",
"public HeapPriorityQueue () \n\t{\n\t\tthis(DEFAULT_SIZE);\n\t}",
"public GetMinStack() {\n stackData = new Stack<>();\n stackMin = new Stack<>();\n }",
"public Stack(int capacity) {\r\n\t\tstack = (E[]) new Object[capacity];\r\n\t\tthis.capacity = capacity;\r\n\t}",
"public LinkStack() {\n size = 0;\n top = null;\n }",
"public BasicStack()\n\t{\n\t\tlist = new LinkedList<T>();\n\t}",
"public MyStack() {\n root=new ListNode(0);\n p =root;\n }"
]
| [
"0.75560457",
"0.7258837",
"0.7080878",
"0.7078916",
"0.7074991",
"0.7035187",
"0.69394886",
"0.69135493",
"0.6906982",
"0.68635297",
"0.68426424",
"0.67852026",
"0.67704505",
"0.67168736",
"0.6703089",
"0.6667511",
"0.66609895",
"0.6650019",
"0.6638135",
"0.65528214",
"0.6539824",
"0.6531166",
"0.653025",
"0.6527393",
"0.65048546",
"0.6474319",
"0.6455751",
"0.64548683",
"0.6442965",
"0.64121485",
"0.6398146",
"0.6395668",
"0.63848513",
"0.63782394",
"0.63663155",
"0.6360209",
"0.63544005",
"0.6345854",
"0.6342143",
"0.633504",
"0.63039356",
"0.6295589",
"0.62827617",
"0.62824076",
"0.62783784",
"0.62762445",
"0.62702966",
"0.6268817",
"0.62672126",
"0.62608546",
"0.6254641",
"0.6248159",
"0.62480634",
"0.6242097",
"0.6232437",
"0.6227604",
"0.62227094",
"0.6216232",
"0.620904",
"0.6193103",
"0.61881405",
"0.618602",
"0.6181757",
"0.61680996",
"0.61647195",
"0.6158262",
"0.61439633",
"0.6114339",
"0.61008006",
"0.60975856",
"0.6092132",
"0.60913754",
"0.6090255",
"0.60857767",
"0.6075824",
"0.6075131",
"0.60739356",
"0.6064422",
"0.6057459",
"0.6053086",
"0.60244256",
"0.60062706",
"0.59954345",
"0.5992544",
"0.59923935",
"0.5972425",
"0.5966396",
"0.59493023",
"0.5938162",
"0.59296113",
"0.59237075",
"0.59207994",
"0.5908838",
"0.59001505",
"0.5895597",
"0.5894386",
"0.5890859",
"0.5878046",
"0.5871039",
"0.58633703"
]
| 0.7030805 | 6 |
Create a Stack with default values and a predetermined maximum size | public MyStack(int size) {
topNode = null;
MAX_SIZE = size;
nodeCount = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMaxStack(int maxStack);",
"public FixedSizeArrayStack() {\r\n\t\tthis(CAPACITY);\r\n\t}",
"public IntStack(int maxsize) {\n ar = new int[maxsize];\n }",
"public MyStack() {\r\n\t\tthis(DEFAULT_CAPACITY);\r\n\t}",
"public MyStack() {\n bottom = new Node(Integer.MAX_VALUE);\n top = bottom;\n size = 0;\n }",
"public Stack(int size) {\n stack = new Object[size];\n minStackSize = size;\n top = -1;\n }",
"public stackTesting(int size){\n\t\tMaxSize = size;\n\t\tStack = new int[MaxSize];\n\t\tStackTop = -1;\n\t}",
"public MaxStack() {\n stack = new Stack();\n maxes = new MaxList();\n }",
"public CustomStack() {\n this.myCustomStack = new Object[10]; //array starts with 10 spaces, all empty\n numElements = 0; //stack starts with zero elements\n\n }",
"Stack(int sizeYouWantYourDataStuctureToBe){\n stackArray = new int [sizeYouWantYourDataStuctureToBe];\n }",
"public NavStack(int size) {\n super();\n maxSize = size;\n }",
"public MaxStack() {\n maxHeap = new PriorityQueue<>(new MaxHeapComparator());\n map = new HashMap<Integer, Stack<Node>>();\n head = null;\n }",
"public Stacked(int size){\n this.size = size;\n count = 0;\n expand = 5;\n stackArray = (E[]) new Object[size];\n }",
"public MinStack()\n\t{\n\t\tindex = -1;\n\t\tsize = 50;\n\t\tdata = new int[size];\n\t}",
"public ArrayStack(){\r\n\t\tstack= new Object[DEFAULT_SIZE];\r\n\t\t}",
"public MyStack() {\n\t\ttopNode = null;\n\t\tMAX_SIZE = Integer.MAX_VALUE;\n\t\tnodeCount = 0;\n\t}",
"public _30_min_stack() {\n data = new Stack<>();\n help = new Stack<>();\n }",
"Stack(Recycler<T> parent, Thread thread, int maxCapacity, int maxSharedCapacityFactor, int ratioMask, int maxDelayedQueues)\r\n/* 408: */ {\r\n/* 409:440 */ this.parent = parent;\r\n/* 410:441 */ this.threadRef = new WeakReference(thread);\r\n/* 411:442 */ this.maxCapacity = maxCapacity;\r\n/* 412:443 */ this.availableSharedCapacity = new AtomicInteger(Math.max(maxCapacity / maxSharedCapacityFactor, Recycler.LINK_CAPACITY));\r\n/* 413:444 */ this.elements = new Recycler.DefaultHandle[Math.min(Recycler.INITIAL_CAPACITY, maxCapacity)];\r\n/* 414:445 */ this.ratioMask = ratioMask;\r\n/* 415:446 */ this.maxDelayedQueues = maxDelayedQueues;\r\n/* 416: */ }",
"public MyStack(T data, int size) {\n\t\t//Wrap the data in a Node\n\t\tNode newNode = new Node(data);\n\t\t\n\t\t//Enter the Node into the stack\n\t\ttopNode = newNode;\n\t\tnodeCount = 1;\n\t\tMAX_SIZE = size;\n\t}",
"public MinStack() {\n size = 0;\n }",
"public OperandStack(final int initialSize)\n {\n super();\n this.stack = new Object[initialSize];\n }",
"public Stack() {\r\n\t\tthis(capacity);\r\n\t}",
"public ArrayStack() {\n this( DEFAULT_CAPACITY );\n }",
"public MyStack(int size) {\n this.size = size;\n this.stackArray = (T[]) new Object[size];\n this.top = -1;\n }",
"public MinValueStack(){\r\n stack1 = new Stack<T>();\r\n stack2 = new Stack<T>();\r\n size = 0;\r\n }",
"public MyStack() {\n @SuppressWarnings(\"unchecked\")\n T[] newStack = (T[]) new Object[DEFAULT_STACK_SIZE];\n stackArray = newStack;\n stackSize = 0;\n }",
"public int maxStack();",
"public static void main(String args[]) {\n MaxStack maxStack = new MaxStack();\n maxStack.push(5);\n maxStack.push(1);\n maxStack.push(5);\n System.out.println(\"Expected: 5, actual: \" + maxStack.top());\n System.out.println(\"Expected: 5, actual: \" + maxStack.popMax());\n System.out.println(\"Expected: 1, actual: \" + maxStack.top());\n System.out.println(\"Expected: 5, actual: \" + maxStack.peekMax());\n System.out.println(\"Expected: 1, actual: \" + maxStack.pop());\n System.out.println(\"Expected: 5, actual: \" + maxStack.top());\n }",
"public ArrayStack(int initialCapacity) {\n\t\ttop = 0;\n\t\tstack = (T[]) (new Object[initialCapacity]);\n\t}",
"public MinStack() {\n in = new Stack();\n out = new Stack();\n min = Integer.MAX_VALUE;\n out.push(min);\n }",
"public ArrayStack (int initialCapacity)\r\n {\r\n top = 0;\r\n stack = (T[]) (new Object[initialCapacity]);\r\n }",
"public Stack() {\r\n this(20);\r\n }",
"public MyStack(int capacity) {\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tT[] arr = (T[])new Object[capacity];\r\n\t\tstack = arr;\r\n\t\ttopIndex = -1;\r\n\t}",
"public Stack() {\n stack = new Object[1];\n minStackSize = 1;\n top = -1;\n }",
"public myStackUsingDynamicArray(){\n A = new dynamicArray();\n top=-1;\n bottom=-1;\n localSize=0;\n //Othe initializations to be done by student\n }",
"public MinStack() {\n this.capacity = CAPACITY;\n this.objects = new Object[capacity];\n }",
"public MyStack(T data) {\n\t\t//Wrap the data in a Node\n\t\tNode newNode = new Node(data);\n\t\t\n\t\t//Enter the Node into the stack\n\t\ttopNode = newNode;\n\t\tnodeCount = 1;\n\t\tMAX_SIZE = Integer.MAX_VALUE;\n\t\t\n\t\t\n\t}",
"public MinStack() {\n dataStack=new Stack<>();\n minStack=new Stack<>();\n }",
"public MinStack_155() {\n\t\tmin= new Stack<Integer>();\n\t\tstack= new Stack<Integer>();\n\t}",
"public MinStack() {\n s1 = new ArrayDeque<>();\n s2 = new ArrayDeque<>();\n min = Integer.MAX_VALUE;\n }",
"public StackClass() {\n \tsize=0;\n\t}",
"public MinStack() {\n min = Integer.MIN_VALUE;\n stack = new Stack();\n }",
"public Heap12( boolean isMaxHeap)\n {\n arrayList = new ArrayList<E>(5);\n size = 0;\n isMax = isMaxHeap;\n cap = 5;\n }",
"public MyStack(){\n\ta = new String[10];\n\ttop = -1;\n }",
"public MinStack() {\n capacity = 1 << 4;\n nums = new int[capacity];\n mins = new int[capacity];\n }",
"@SubL(source = \"cycl/stacks.lisp\", position = 1818) \n public static final SubLObject create_stack() {\n return clear_stack(make_stack(UNPROVIDED));\n }",
"public MinStack() {\n st = new Stack<>();\n }",
"public LC155_MinStack2() {\n\t\tdata = new Stack<Long>();\n\t}",
"public MinStack() {\n data = new ArrayDeque<>();\n helper = new ArrayDeque<>();\n }",
"public ArrayStack() {\n\t\ttop = 0;\t\t\t\t\t\t\t\t\t\t// points to the first element. Since empty, points 0\n\t\tstack = (T[]) (new Object[DEFAULT_CAPACITY]);\t// Casting to whatever is our desired element.\n\t}",
"public ArrayStack() {\n this(INITIAL_CAPACITY);\n }",
"public MinStack() {\n data = new Stack();\n min = new Stack();\n }",
"public MinStack() {\n stack = new Stack<Integer>();\n minStack = new Stack<Integer>();\n }",
"public MinStack() {\n mainstack = new Stack<Integer>();\n secondaryminstack = new Stack<Integer>();\n }",
"public MinStack() {\r\n stk = new Stack<>();\r\n stk1 = new Stack<>();\r\n }",
"public ArrayStack()\r\n {\r\n top = 0;\r\n stack = (T[])(new Object[DEFAULT_CAPACITY]);\r\n }",
"public MaxHeap() {\n this(64);\n }",
"public MinStack1() {\r\n stack = new Stack<>();\r\n }",
"public MinStack() {\n sort = new Stack<>();\n stack = new Stack<>();\n }",
"public NotationStack(int size) {\r\n\t\tstack = new ArrayList<T>(size);\r\n\t\tthis.size = size;\r\n\t}",
"public MinStack() {\n minList = new LinkedList<>();\n numStack = new Stack<>();\n }",
"public DoubleElementMinStack() {\n stack = new Stack<>();\n }",
"Stack<Integer> createStack() {\n\t\tStack<Integer> my_stack = new Stack<Integer>();\n\t\t\n\t\t// Add all numbers in linkedlist to stack one by one\n\t\tNode curr = head;\n\t\twhile (curr != null) {\n\t\t\tmy_stack.push(curr.data);\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn my_stack;\n\t}",
"public MinStack() {\n sdata = new Stack<Integer>();\n smin = new Stack<Integer>();\n }",
"public ArrayStack(int initialCapacity) {\n size = 0;\n this.backing = (T[]) new Object[initialCapacity];\n }",
"public MinStack() {\n stack = new Stack<IntMinPair>();\n }",
"public MinStack() {\n stack = new Stack<>();\n minStack = new Stack<>();\n }",
"@WithName(\"max.queue.size\")\n @WithDefault(\"2048\")\n Integer maxQueueSize();",
"public void testMyStack() {\n\t\tMyStack<String> s = new MyStack<String>();\n\t\ts.push(\"1\");\n\t\ts.push(\"2\");\n\t\ts.push(\"3\");\n\t\ts.pop();\n\t\ts.push(\"4\");\n\t\ts.toString();\n\t\tSystem.out.println(\"MyStack size is: \" + s.size());\n\t}",
"public No155MinStack() {\n stack = new Stack<>();\n }",
"public MinStack() {\n stackList = new ArrayList<>();\n minList = new ArrayList<>();\n size = 0;\n }",
"public Heap12()\n {\n arrayList = new ArrayList<E>(5);\n size = 0;\n isMax = false;\n cap = 5;\n }",
"public Stack() {}",
"public NotationStack() {\r\n\t\tstack = new ArrayList<T>(1000);\r\n\t\tsize = 1000;\r\n\t}",
"public MyDynamicStack() {\r\n items = new LinkedList<>();\r\n }",
"public void setStackSize(int stackSize) {\n\t\tthis.stackSize = stackSize;\n\t}",
"ArrayStack() {\r\n\t\tstack = new int[10];\r\n\t\ttop = 0;\r\n\t}",
"public static void main(String[] args) throws Exception {\n StackUsingArrays stack=new StackUsingArrays(5);\n \n for(int i=1;i<=5;i++) {\n \tstack.push(i*10);\n \tstack.display();\n }\n \n System.out.println(stack.size());\n \n //stack.push(60);\n System.out.println(stack.top());\n \n// while(!stack.isEmpty()) {\n// \tstack.display();\n// \tstack.pop();\n// \t\n// }\n// \n// stack.pop();\n\t}",
"public MinStack() {\r\n\t\t}",
"public Stack(int capacity) {\r\n\t\tstack = (E[]) new Object[capacity];\r\n\t\tthis.capacity = capacity;\r\n\t}",
"@Nonnull\n default FluidStack getFluidStack(int size) {\n return new FluidStack(getFluid(), size);\n }",
"public static void push(Integer num) {\n mainStack.push(num);\n if (maxStack.isEmpty() || maxStack.peek() < num){\n maxStack.push(num);\n }\n }",
"public Heap() {\r\n\t\tthis(DEFAULT_INITIAL_CAPACITY, null);\r\n\t}",
"public MinStack() {\r\n stack=new Stack<>();\r\n minstack=new Stack<>();\r\n map=new HashMap<>();\r\n }",
"public int getSlotStackLimit()\n {\n return 1;\n }",
"public int getSlotStackLimit()\n {\n return 1;\n }",
"public CarStackImpl() {\n carStack = new int[MAX_SIZE];\n top = -1;\n }",
"public MinStack2() {\r\n\t\t\tdata = new Stack<>();\r\n\t\t\thelper = new Stack<>();\r\n\t\t}",
"void push(T value) {\n if (stackSize == stackArray.length) {\n resizeArray();\n }\n stackArray[stackSize++] = value;\n }",
"public ArrayStackTest(int capacity){\n\t\tstore = (E[]) new Object[capacity];\n\t\ttop = -1;\n\t}",
"public Stack(int capacity) {\r\n// elements = new int[capacity];\r\n characters = new char[capacity];\r\n }",
"public Stacked(){\n count = 0;\n stackArray = (E[]) new Object[START_CAP];\n }",
"public void StackTest() {\n\tSystem.out.println( \"\\nQuestion (8) Stack Test\" );\n\tSystem.out.println( \"-----------------------\");\n\tStack s = new Stack(3);\n\tSystem.out.println( \"push 0\");\n\ts.push(0);\n\tSystem.out.println( \"push 1\");\n\ts.push(1);\n\tSystem.out.println( \"push 2\");\n\ts.push(2);\n\tSystem.out.println( \"try to push 3\");\n\ts.push(3); // error here pushing beyond stack depth, will print error messgae\n\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() ); \n\tSystem.out.println( \"try to pop \" ); // error here poping off empty stack\n\ts.pop();\n }",
"public void add(T val){\n myCustomStack[numElements] = val; // myCustomStack[0] = new value, using numElements as index of next open space\n numElements++; //increase numElements by one each time a value is added to the stack, numElements will always be one more than number of elements in stack\n resize(); //call resize to check if array needs resizing\n }",
"public MinStack2() {\n stack = new Stack<>();\n minStack = new Stack<>();\n }",
"public void push(int val) {\n if (size == capacity)\n resize(2*capacity);\n if (size == 0)\n max = val;\n else {\n if (val > max)\n max = val;\n }\n data[size] = val;\n size++;\n }",
"public Heap(boolean isMin, Collection<ValueType> data) {\r\n // TODO\r\n }",
"private BackstepStack(int capacity) {\r\n\t\t\tthis.capacity = capacity;\r\n\t\t\tthis.size = 0;\r\n\t\t\tthis.top = -1;\r\n\t\t\tthis.stack = new BackStep[capacity];\r\n\t\t\tfor (int i = 0; i < capacity; i++) {\r\n\t\t\t\tthis.stack[i] = new BackStep();\r\n\t\t\t}\r\n\t\t}",
"public interface Stack<T>\n{\n\t/**\n\t * This method initializes an empty stack with a max size of n.\n\t *\n\t * @param n The maximum capacity of the stack.\n\t */\n\tvoid init(int n);\n\n\t/**\n\t * This method pushes the specified element onto the stack.\n\t *\n\t * @param x The element to be pushed.\n\t */\n\tvoid push(T x);\n\n\t/**\n\t * This method pops the top LIFO element off the stack.\n\t *\n\t * @return The top element removed from the stack.\n\t */\n\tT pop();\n\n\t/**\n\t * This method returns the element on the top of the stack.\n\t *\n\t * @return The top element removed from the stack.\n\t */\n\tT peek();\n\n\t/**\n\t * This method returns the current depth of the stack.\n\t *\n\t * @return |this| - count(empty, this);\n\t */\n\tint depth();\n\n\t/**\n\t * This method returns the maximum capacity of the stack.\n\t *\n\t * @return |this|;\n\t */\n\tint maxDepth();\n\n\t/**\n\t * This method returns the empty status of the stack.\n\t *\n\t * @return true if |this| = 0, otherwise false;\n\t */\n\tboolean isEmpty();\n\n\t/**\n\t * This method clears the stack.\n\t */\n\tvoid clear();\n\n\t/**\n\t * This method prints the contents of the stack.\n\t */\n\tvoid print();\n}",
"public GetMinStack() {\n stackData = new Stack<>();\n stackMin = new Stack<>();\n }"
]
| [
"0.702608",
"0.6850634",
"0.6777273",
"0.6728228",
"0.6726538",
"0.6716601",
"0.6716199",
"0.6708033",
"0.6676187",
"0.6560097",
"0.65600276",
"0.65424126",
"0.65255797",
"0.65227246",
"0.63927895",
"0.6375025",
"0.6316729",
"0.63132894",
"0.6295699",
"0.62756234",
"0.6272075",
"0.62635523",
"0.62628764",
"0.6245912",
"0.61991227",
"0.6190465",
"0.618969",
"0.6165713",
"0.61253417",
"0.60841703",
"0.607531",
"0.60412145",
"0.6027498",
"0.5999127",
"0.59920514",
"0.59756815",
"0.59624714",
"0.5961602",
"0.59551257",
"0.5953742",
"0.5948124",
"0.5942319",
"0.59316874",
"0.5918984",
"0.5914667",
"0.59077734",
"0.58994496",
"0.5894556",
"0.58720475",
"0.5841802",
"0.5840049",
"0.58371574",
"0.58290416",
"0.5827104",
"0.58230954",
"0.5822226",
"0.5819086",
"0.5798445",
"0.578636",
"0.57792956",
"0.5756313",
"0.57509863",
"0.5731131",
"0.5711971",
"0.57075346",
"0.56948626",
"0.5690487",
"0.56893486",
"0.5684079",
"0.56744754",
"0.56606627",
"0.5655661",
"0.565221",
"0.56406116",
"0.56082886",
"0.5600458",
"0.5591413",
"0.5586792",
"0.5585335",
"0.5585044",
"0.5581557",
"0.5580477",
"0.5578225",
"0.55713737",
"0.5564399",
"0.5564399",
"0.55341786",
"0.55215436",
"0.5517733",
"0.5515885",
"0.55116385",
"0.5505438",
"0.5503316",
"0.5492786",
"0.5486741",
"0.5485426",
"0.5482622",
"0.5477369",
"0.54683477",
"0.54670554"
]
| 0.6442355 | 14 |
Create a Stack with a single data point. Stack will be set to the maximum possible size | public MyStack(T data) {
//Wrap the data in a Node
Node newNode = new Node(data);
//Enter the Node into the stack
topNode = newNode;
nodeCount = 1;
MAX_SIZE = Integer.MAX_VALUE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Stack(int sizeYouWantYourDataStuctureToBe){\n stackArray = new int [sizeYouWantYourDataStuctureToBe];\n }",
"public Stacked(int size){\n this.size = size;\n count = 0;\n expand = 5;\n stackArray = (E[]) new Object[size];\n }",
"public MyStack(T data, int size) {\n\t\t//Wrap the data in a Node\n\t\tNode newNode = new Node(data);\n\t\t\n\t\t//Enter the Node into the stack\n\t\ttopNode = newNode;\n\t\tnodeCount = 1;\n\t\tMAX_SIZE = size;\n\t}",
"public MinStack()\n\t{\n\t\tindex = -1;\n\t\tsize = 50;\n\t\tdata = new int[size];\n\t}",
"public FixedSizeArrayStack() {\r\n\t\tthis(CAPACITY);\r\n\t}",
"public Stack(int size) {\n stack = new Object[size];\n minStackSize = size;\n top = -1;\n }",
"public CustomStack() {\n this.myCustomStack = new Object[10]; //array starts with 10 spaces, all empty\n numElements = 0; //stack starts with zero elements\n\n }",
"public MyStack(int size) {\n this.size = size;\n this.stackArray = (T[]) new Object[size];\n this.top = -1;\n }",
"public ArrayStack(){\r\n\t\tstack= new Object[DEFAULT_SIZE];\r\n\t\t}",
"public Stack() {\r\n\t\tthis(capacity);\r\n\t}",
"public stackTesting(int size){\n\t\tMaxSize = size;\n\t\tStack = new int[MaxSize];\n\t\tStackTop = -1;\n\t}",
"void push(T value) {\n if (stackSize == stackArray.length) {\n resizeArray();\n }\n stackArray[stackSize++] = value;\n }",
"public MyStack() {\r\n\t\tthis(DEFAULT_CAPACITY);\r\n\t}",
"public void push(T newData) throws StackOverflowException{\r\n\t\t\r\n\t\t// check if stack is full\r\n\t\tif(top>MAX_SIZE)\r\n\t\t\tthrow new StackOverflowException();\r\n\t\t\r\n\t\tstackData.add(newData); //add new data to the stack\r\n\t\ttop++;\r\n\t\r\n\t}",
"public MyStack() {\n bottom = new Node(Integer.MAX_VALUE);\n top = bottom;\n size = 0;\n }",
"public MinStack() {\n size = 0;\n }",
"public ArrayStack() {\n\t\ttop = 0;\t\t\t\t\t\t\t\t\t\t// points to the first element. Since empty, points 0\n\t\tstack = (T[]) (new Object[DEFAULT_CAPACITY]);\t// Casting to whatever is our desired element.\n\t}",
"@Override\r\n\tpublic void push(AnyType data) throws StackException {\n\t\ttop = new Node<AnyType>(data,top);\r\n\t}",
"@SubL(source = \"cycl/stacks.lisp\", position = 1818) \n public static final SubLObject create_stack() {\n return clear_stack(make_stack(UNPROVIDED));\n }",
"public void push(int data){\r\n\r\n\t\tNode last = tail.pre;\r\n\r\n\t\t// create a new node\r\n\t\tNode newNode = new Node();\r\n\t\tnewNode.data = data;\r\n\r\n\t\t// attach tail and then pre\r\n\t\tnewNode.next = tail;\r\n\t\tnewNode.pre = last;\r\n\r\n\r\n\t\t// change new node as tail\r\n\t\ttail.pre = newNode;\r\n\t\tlast.next = newNode;\r\n\r\n\t\t// increment Stack size\r\n\t\tsize++;\r\n\r\n\t}",
"public Stacked(){\n count = 0;\n stackArray = (E[]) new Object[START_CAP];\n }",
"public Stack() {\n stack = new Object[1];\n minStackSize = 1;\n top = -1;\n }",
"public MyStack() {\n @SuppressWarnings(\"unchecked\")\n T[] newStack = (T[]) new Object[DEFAULT_STACK_SIZE];\n stackArray = newStack;\n stackSize = 0;\n }",
"public MyStack(int capacity) {\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tT[] arr = (T[])new Object[capacity];\r\n\t\tstack = arr;\r\n\t\ttopIndex = -1;\r\n\t}",
"public MinStack() {\n data = new ArrayDeque<>();\n helper = new ArrayDeque<>();\n }",
"public ArrayStack() {\n this( DEFAULT_CAPACITY );\n }",
"public MinStack() {\n dataStack=new Stack<>();\n minStack=new Stack<>();\n }",
"public MinStack() {\n this.capacity = CAPACITY;\n this.objects = new Object[capacity];\n }",
"public void push(T data) {\n if((stackPointer + 1) == Array.getLength(this.elements))\n expandStack();\n this.elements[++stackPointer] = data;\n }",
"public MinStack() {\n data = new Stack();\n min = new Stack();\n }",
"@Test\n\tpublic void testPush(){\n\t\tArrayIntStack stack = buildStack(4);\n\t\tassertEquals(4, stack.intCol.size());\n\t}",
"public Stack() {\r\n this(20);\r\n }",
"public void push(int data)\n {\n if (top==size-1)\n {\n System.out.println(\"Stack is full\");\n return;\n\n }else\n {\n top++;\n stack[top]=data;\n }\n\n }",
"public myStackUsingDynamicArray(){\n A = new dynamicArray();\n top=-1;\n bottom=-1;\n localSize=0;\n //Othe initializations to be done by student\n }",
"public Stack(int capacity) {\r\n\t\tstack = (E[]) new Object[capacity];\r\n\t\tthis.capacity = capacity;\r\n\t}",
"public MinStack() {\n sdata = new Stack<Integer>();\n smin = new Stack<Integer>();\n }",
"Stack(Recycler<T> parent, Thread thread, int maxCapacity, int maxSharedCapacityFactor, int ratioMask, int maxDelayedQueues)\r\n/* 408: */ {\r\n/* 409:440 */ this.parent = parent;\r\n/* 410:441 */ this.threadRef = new WeakReference(thread);\r\n/* 411:442 */ this.maxCapacity = maxCapacity;\r\n/* 412:443 */ this.availableSharedCapacity = new AtomicInteger(Math.max(maxCapacity / maxSharedCapacityFactor, Recycler.LINK_CAPACITY));\r\n/* 413:444 */ this.elements = new Recycler.DefaultHandle[Math.min(Recycler.INITIAL_CAPACITY, maxCapacity)];\r\n/* 414:445 */ this.ratioMask = ratioMask;\r\n/* 415:446 */ this.maxDelayedQueues = maxDelayedQueues;\r\n/* 416: */ }",
"public void push(T data) {\n top = new StackNode(data, top);\n }",
"Stack<Integer> createStack() {\n\t\tStack<Integer> my_stack = new Stack<Integer>();\n\t\t\n\t\t// Add all numbers in linkedlist to stack one by one\n\t\tNode curr = head;\n\t\twhile (curr != null) {\n\t\t\tmy_stack.push(curr.data);\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn my_stack;\n\t}",
"public MyStack(int size) {\n\t\ttopNode = null;\n\t\tMAX_SIZE = size;\n\t\tnodeCount = 0;\n\t}",
"@Override\n public void push(T data) {\n if (data != null) {\n if (size == backing.length) {\n T[] newBacking = (T[]) new Object[backing.length * 2];\n for (int i = 0; i < size; i++) {\n newBacking[i] = backing[i];\n }\n newBacking[size++] = data;\n backing = newBacking;\n } else {\n backing[size] = data;\n size++;\n }\n } else {\n throw new IllegalArgumentException(\"Can't push null onto stack\");\n }\n }",
"public MinStack() {\n st = new Stack<>();\n }",
"@Override\n public void push(E z){\n if(isFull()){\n expand();\n System.out.println(\"Stack expanded by \"+ expand+ \" cells\");\n }\n stackArray[count] = z;\n count++;\n }",
"public IntStack(int maxsize) {\n ar = new int[maxsize];\n }",
"public interface Stack<E> {\r\n \r\n /** \r\n * Pre: Se ingresa el dato\r\n * @param data se ingresa un dato para agregar al Vector\r\n * Post: Se guarda el dato en Stack\r\n */\r\n public void push(E data);\r\n\r\n /** \r\n * Pre: Estan todos los datos en el Stack\r\n * @return E se regresa un item.\r\n * Post: Se regresa y elimina un dato del Stack\r\n */\r\n public E pop();\r\n\r\n /** \r\n * Pre: Se encuentra el Stack con sus datos\r\n * @return E se regresa cualquier tipo de dato\r\n * @throws EmptyStackException regresa un error\r\n * Post: Se regresa el dato sobre la lista\r\n */\r\n public E peek();\r\n\r\n /** \r\n * Pre:Se encuentra el Stack\r\n * @return boolean se regresa un valor True o False\r\n * Post: Si el Stack se encuentra vacio este regresa True\r\n */\r\n public boolean empty();\r\n\r\n /** \r\n * Pre:Se encuentra el Stack \r\n * @return int se regrea cualquier numero\r\n * Post: Se devuelve el numero de objetos que tiene el Stack\r\n */\r\n public int size();\r\n\r\n}",
"public NotationStack(int size) {\r\n\t\tstack = new ArrayList<T>(size);\r\n\t\tthis.size = size;\r\n\t}",
"public Stack() {}",
"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 NavStack(int size) {\n super();\n maxSize = size;\n }",
"@Test\n public void testStack() {\n DatastructureTest.STACK.push(3);\n DatastructureTest.STACK.push(7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == -1);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == -1);\n }",
"public void push(int data){\n \tif(top == size)\n \tSystem.out.println(\"Stack is overflow\");\n \telse{\n \ttop++;\n \telements[top]=data;\n \t} \n\t}",
"public ArrayStack (int initialCapacity)\r\n {\r\n top = 0;\r\n stack = (T[]) (new Object[initialCapacity]);\r\n }",
"public void setMaxStack(int maxStack);",
"public MyStack(){\n\ta = new String[10];\n\ttop = -1;\n }",
"public OperandStack(final int initialSize)\n {\n super();\n this.stack = new Object[initialSize];\n }",
"public ArrayStack()\r\n {\r\n top = 0;\r\n stack = (T[])(new Object[DEFAULT_CAPACITY]);\r\n }",
"public ArrayStack() {\n this(INITIAL_CAPACITY);\n }",
"public MaxStack() {\n stack = new Stack();\n maxes = new MaxList();\n }",
"public LC155_MinStack2() {\n\t\tdata = new Stack<Long>();\n\t}",
"public MinValueStack(){\r\n stack1 = new Stack<T>();\r\n stack2 = new Stack<T>();\r\n size = 0;\r\n }",
"public DoubleElementMinStack() {\n stack = new Stack<>();\n }",
"public Stack() {\n \tstack = new ArrayList<T>();\n }",
"public _30_min_stack() {\n data = new Stack<>();\n help = new Stack<>();\n }",
"public StackClass() {\n \tsize=0;\n\t}",
"public void testPush() {\n assertEquals(this.stack.size(), 10, 0.01);\n this.stack.push(10);\n assertEquals(this.stack.size(), 11, 0.01);\n assertEquals(this.stack.peek(), 10, 0.01);\n }",
"public MinStack1() {\r\n stack = new Stack<>();\r\n }",
"public void push(int data){\n\t\t\tint newMin = Math.min(data, minVal());\t\t//find minimal data from stack\n\t\t\tsuper.push(new MinNode(data, newMin));\t\t\n\t\t\t\n\t\t\t\n\t\t}",
"static void stackPush(Stack<Integer> stack)\r\n\t{\r\n\t\tfor(int i=0;i<5;i++)\r\n\t\t{\r\n\t\t\tstack.push(i*5);\r\n\t\t}\r\n\t\tSystem.out.println(\"Printing the stack value which is push:\");\r\n\t\tSystem.out.println(\"Push :\"+stack +\"\\nsize of stack: \"+ stack.size());\r\n\t}",
"public void push(T data) {\n\t\tStackNode new_node = new StackNode<>(data);\n\t\tif (head.data == null) {\n\t\t\thead = new_node;\n\t\t\tthis.size++;\n\t\t\treturn;\n\t\t}\n\t\tnew_node.next = head;\n\t\thead = new_node;\n\t\tthis.size++;\n\t}",
"public MyStack() {\n\t\ttopNode = null;\n\t\tMAX_SIZE = Integer.MAX_VALUE;\n\t\tnodeCount = 0;\n\t}",
"@Override\r\n\tpublic void push() {\n\t\tSystem.out.println(\"Push logic for Fixed Stack\");\r\n\t\t\r\n\t}",
"public ArrayStackTest(int capacity){\n\t\tstore = (E[]) new Object[capacity];\n\t\ttop = -1;\n\t}",
"public static void main(String[] args) throws Exception {\n StackUsingArrays stack=new StackUsingArrays(5);\n \n for(int i=1;i<=5;i++) {\n \tstack.push(i*10);\n \tstack.display();\n }\n \n System.out.println(stack.size());\n \n //stack.push(60);\n System.out.println(stack.top());\n \n// while(!stack.isEmpty()) {\n// \tstack.display();\n// \tstack.pop();\n// \t\n// }\n// \n// stack.pop();\n\t}",
"public Stack() {\r\n first = null;\r\n N = 0;\r\n }",
"public StackPushSingle()\n {\n super(\"PushStackSingle\");\n }",
"public void push(int data) {\r\n\r\n\t\t\t// Allocate new node in heap\r\n\t\t\tNode newNode = new Node(data);\r\n\t\t\t// check if heap is full\r\n\t\t\tif (newNode == null) {\r\n\t\t\t\tSystem.out.println(\"Heap overflow\");\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tnewNode.next = top;\r\n\t\t\t\ttop = newNode;\r\n\t\t\t}\r\n\r\n\t\t}",
"public void add(T val){\n myCustomStack[numElements] = val; // myCustomStack[0] = new value, using numElements as index of next open space\n numElements++; //increase numElements by one each time a value is added to the stack, numElements will always be one more than number of elements in stack\n resize(); //call resize to check if array needs resizing\n }",
"public ArrayStack(int initialCapacity) {\n\t\ttop = 0;\n\t\tstack = (T[]) (new Object[initialCapacity]);\n\t}",
"@Test\r\n public void testStackstack() {\r\n StackArrayList<Integer> stack = new StackArrayList<Integer>();\r\n\r\n stack.push(1);\r\n stack.push(2);\r\n stack.push(3);\r\n stack.push(4);\r\n stack.push(5);\r\n\r\n assertEquals(5, stack.peek());\r\n assertEquals(5, stack.pop());\r\n assertEquals(4, stack.size());\r\n }",
"public void testMyStack() {\n\t\tMyStack<String> s = new MyStack<String>();\n\t\ts.push(\"1\");\n\t\ts.push(\"2\");\n\t\ts.push(\"3\");\n\t\ts.pop();\n\t\ts.push(\"4\");\n\t\ts.toString();\n\t\tSystem.out.println(\"MyStack size is: \" + s.size());\n\t}",
"public MyStack() {\n queue = new ArrayDeque<>();\n }",
"public interface Stack<T>\n{\n\t/**\n\t * This method initializes an empty stack with a max size of n.\n\t *\n\t * @param n The maximum capacity of the stack.\n\t */\n\tvoid init(int n);\n\n\t/**\n\t * This method pushes the specified element onto the stack.\n\t *\n\t * @param x The element to be pushed.\n\t */\n\tvoid push(T x);\n\n\t/**\n\t * This method pops the top LIFO element off the stack.\n\t *\n\t * @return The top element removed from the stack.\n\t */\n\tT pop();\n\n\t/**\n\t * This method returns the element on the top of the stack.\n\t *\n\t * @return The top element removed from the stack.\n\t */\n\tT peek();\n\n\t/**\n\t * This method returns the current depth of the stack.\n\t *\n\t * @return |this| - count(empty, this);\n\t */\n\tint depth();\n\n\t/**\n\t * This method returns the maximum capacity of the stack.\n\t *\n\t * @return |this|;\n\t */\n\tint maxDepth();\n\n\t/**\n\t * This method returns the empty status of the stack.\n\t *\n\t * @return true if |this| = 0, otherwise false;\n\t */\n\tboolean isEmpty();\n\n\t/**\n\t * This method clears the stack.\n\t */\n\tvoid clear();\n\n\t/**\n\t * This method prints the contents of the stack.\n\t */\n\tvoid print();\n}",
"public void StackTest() {\n\tSystem.out.println( \"\\nQuestion (8) Stack Test\" );\n\tSystem.out.println( \"-----------------------\");\n\tStack s = new Stack(3);\n\tSystem.out.println( \"push 0\");\n\ts.push(0);\n\tSystem.out.println( \"push 1\");\n\ts.push(1);\n\tSystem.out.println( \"push 2\");\n\ts.push(2);\n\tSystem.out.println( \"try to push 3\");\n\ts.push(3); // error here pushing beyond stack depth, will print error messgae\n\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() ); \n\tSystem.out.println( \"try to pop \" ); // error here poping off empty stack\n\ts.pop();\n }",
"public MinStack() {\n min = Integer.MIN_VALUE;\n stack = new Stack();\n }",
"ArrayStack() {\r\n\t\tstack = new int[10];\r\n\t\ttop = 0;\r\n\t}",
"public void push(int value){\n // check if there is stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // check if stack is full or not\n if(this.topOfStack==(this.arr.length-1)){\n System.out.println(\"Stack is full, Can't push into stack\");\n return;\n }\n // if stack is empty\n this.topOfStack++;\n this.arr[this.topOfStack]=value;\n }",
"@Override\r\n\tpublic void push(E e) {\r\n\t\tif (size() == stack.length)\r\n\t\t\texpandArray();\r\n\t\tstack[++t] = e; // increment t before storing new item\r\n\t}",
"public void pushStack(int newStack){\n // creates a new object\n GenericStack temp = new GenericStack(newStack);\n temp.next = top;\n top = temp;\n }",
"public MaxStack() {\n maxHeap = new PriorityQueue<>(new MaxHeapComparator());\n map = new HashMap<Integer, Stack<Node>>();\n head = null;\n }",
"public MyStack() {\n\n }",
"public MinStack() {\n in = new Stack();\n out = new Stack();\n min = Integer.MAX_VALUE;\n out.push(min);\n }",
"public NotationStack() {\r\n\t\tstack = new ArrayList<T>(1000);\r\n\t\tsize = 1000;\r\n\t}",
"public MinStack() {\n sort = new Stack<>();\n stack = new Stack<>();\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 Stack(E it){\r\n top = new Node<E>(it);\r\n size++;\r\n }",
"public void push(T data) {\n\n\t\tNode<T> newNode = new Node<T>();\n\t\tnewNode.setData((T) data);\n\t\tsetStackSize(getStackSize() + 1);\n\n\t\t/*\n\t\t * Two special cases for a push() are a empty stack or a stack with\n\t\t * elements already in it.\n\t\t */\n\t\tif (isEmpty()) {\n\t\t\t// stack is empty\n\t\t\tnewNode.setNextNode(null);\n\t\t\ttopNode = newNode;\n\t\t} else {\n\t\t\t// push node to the top of the stack\n\t\t\tnewNode.setNextNode(topNode);\n\t\t\ttopNode = newNode;\n\t\t}\n\n\t\tSystem.out.println(\"<< PUSH \\\"\" + newNode.data + \"\\\" TO STACK >>\");\n\n\t}",
"public MinStack() {\n stack = new Stack<Integer>();\n minStack = new Stack<Integer>();\n }",
"@Override\r\n\tpublic void push(T value) throws StackFullException {\n\t\tif(isfull()) throw new StackFullException(\"Pila llena!!\");\r\n\t\tnodo<T> tmp = sentinel.getNext();\r\n\t\tnodo<T> _new = new nodo<T>(value);\r\n\t\t_new.setNext(tmp);\r\n\t\tsentinel.setNext(_new);\r\n\t\tcount++;\r\n\t\t\r\n\t}",
"void push(int e) {\r\n\t\tif (top==stack.length) {\r\n\t\t\tmakeNewArray();\r\n\t\t}\r\n\t\tstack[top] = e;\r\n\t\ttop++;\r\n\t}",
"@Override\r\n\tpublic void push() {\n\t\tSystem.out.println(\"Push logic for Dynamic Stack\");\r\n\t}"
]
| [
"0.7372285",
"0.6795253",
"0.67818946",
"0.6767531",
"0.67575586",
"0.6602567",
"0.65638024",
"0.6459104",
"0.6440965",
"0.64019436",
"0.62942076",
"0.62574136",
"0.62495846",
"0.6248426",
"0.6226473",
"0.6214808",
"0.61767924",
"0.6161742",
"0.615733",
"0.61221224",
"0.6121126",
"0.6105349",
"0.60820407",
"0.6067108",
"0.60493857",
"0.60446054",
"0.60364914",
"0.60242987",
"0.6023816",
"0.6022865",
"0.6014282",
"0.60012704",
"0.59950274",
"0.5991153",
"0.5979555",
"0.5978045",
"0.5972464",
"0.596469",
"0.59368646",
"0.5933867",
"0.5933609",
"0.5930436",
"0.59275633",
"0.59199065",
"0.5901469",
"0.5899092",
"0.5898398",
"0.58972144",
"0.58967453",
"0.58945036",
"0.5894304",
"0.58820325",
"0.5874832",
"0.58647656",
"0.5860512",
"0.5848455",
"0.5847445",
"0.583975",
"0.58395076",
"0.58344764",
"0.5824749",
"0.58228004",
"0.58029723",
"0.57996786",
"0.57899576",
"0.5778621",
"0.57718664",
"0.5765069",
"0.57545483",
"0.57438266",
"0.5740282",
"0.57295203",
"0.57128507",
"0.5711409",
"0.5706084",
"0.5695357",
"0.5694144",
"0.5692182",
"0.56883484",
"0.5687613",
"0.56785023",
"0.5675518",
"0.56687003",
"0.5665343",
"0.5662267",
"0.56581765",
"0.5657572",
"0.5656456",
"0.5650112",
"0.5624742",
"0.5616824",
"0.5615423",
"0.5614454",
"0.5612489",
"0.56110305",
"0.56005645",
"0.5583418",
"0.5561936",
"0.55554384",
"0.555194"
]
| 0.6613646 | 5 |
Create a Stack with a single data point and indicated maximum size | public MyStack(T data, int size) {
//Wrap the data in a Node
Node newNode = new Node(data);
//Enter the Node into the stack
topNode = newNode;
nodeCount = 1;
MAX_SIZE = size;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Stack(int sizeYouWantYourDataStuctureToBe){\n stackArray = new int [sizeYouWantYourDataStuctureToBe];\n }",
"public Stacked(int size){\n this.size = size;\n count = 0;\n expand = 5;\n stackArray = (E[]) new Object[size];\n }",
"public MinStack()\n\t{\n\t\tindex = -1;\n\t\tsize = 50;\n\t\tdata = new int[size];\n\t}",
"public FixedSizeArrayStack() {\r\n\t\tthis(CAPACITY);\r\n\t}",
"public Stack(int size) {\n stack = new Object[size];\n minStackSize = size;\n top = -1;\n }",
"public IntStack(int maxsize) {\n ar = new int[maxsize];\n }",
"public stackTesting(int size){\n\t\tMaxSize = size;\n\t\tStack = new int[MaxSize];\n\t\tStackTop = -1;\n\t}",
"public CustomStack() {\n this.myCustomStack = new Object[10]; //array starts with 10 spaces, all empty\n numElements = 0; //stack starts with zero elements\n\n }",
"public MyStack(int size) {\n this.size = size;\n this.stackArray = (T[]) new Object[size];\n this.top = -1;\n }",
"public void setMaxStack(int maxStack);",
"Stack(Recycler<T> parent, Thread thread, int maxCapacity, int maxSharedCapacityFactor, int ratioMask, int maxDelayedQueues)\r\n/* 408: */ {\r\n/* 409:440 */ this.parent = parent;\r\n/* 410:441 */ this.threadRef = new WeakReference(thread);\r\n/* 411:442 */ this.maxCapacity = maxCapacity;\r\n/* 412:443 */ this.availableSharedCapacity = new AtomicInteger(Math.max(maxCapacity / maxSharedCapacityFactor, Recycler.LINK_CAPACITY));\r\n/* 413:444 */ this.elements = new Recycler.DefaultHandle[Math.min(Recycler.INITIAL_CAPACITY, maxCapacity)];\r\n/* 414:445 */ this.ratioMask = ratioMask;\r\n/* 415:446 */ this.maxDelayedQueues = maxDelayedQueues;\r\n/* 416: */ }",
"public NavStack(int size) {\n super();\n maxSize = size;\n }",
"public ArrayStack(){\r\n\t\tstack= new Object[DEFAULT_SIZE];\r\n\t\t}",
"public myStackUsingDynamicArray(){\n A = new dynamicArray();\n top=-1;\n bottom=-1;\n localSize=0;\n //Othe initializations to be done by student\n }",
"public MyStack(T data) {\n\t\t//Wrap the data in a Node\n\t\tNode newNode = new Node(data);\n\t\t\n\t\t//Enter the Node into the stack\n\t\ttopNode = newNode;\n\t\tnodeCount = 1;\n\t\tMAX_SIZE = Integer.MAX_VALUE;\n\t\t\n\t\t\n\t}",
"public MaxStack() {\n stack = new Stack();\n maxes = new MaxList();\n }",
"public MinStack() {\n this.capacity = CAPACITY;\n this.objects = new Object[capacity];\n }",
"public MinStack() {\n size = 0;\n }",
"public MyStack() {\n bottom = new Node(Integer.MAX_VALUE);\n top = bottom;\n size = 0;\n }",
"public OperandStack(final int initialSize)\n {\n super();\n this.stack = new Object[initialSize];\n }",
"void push(T value) {\n if (stackSize == stackArray.length) {\n resizeArray();\n }\n stackArray[stackSize++] = value;\n }",
"public ArrayStack (int initialCapacity)\r\n {\r\n top = 0;\r\n stack = (T[]) (new Object[initialCapacity]);\r\n }",
"public void push(T newData) throws StackOverflowException{\r\n\t\t\r\n\t\t// check if stack is full\r\n\t\tif(top>MAX_SIZE)\r\n\t\t\tthrow new StackOverflowException();\r\n\t\t\r\n\t\tstackData.add(newData); //add new data to the stack\r\n\t\ttop++;\r\n\t\r\n\t}",
"public MyStack(int size) {\n\t\ttopNode = null;\n\t\tMAX_SIZE = size;\n\t\tnodeCount = 0;\n\t}",
"public MaxStack() {\n maxHeap = new PriorityQueue<>(new MaxHeapComparator());\n map = new HashMap<Integer, Stack<Node>>();\n head = null;\n }",
"public NotationStack(int size) {\r\n\t\tstack = new ArrayList<T>(size);\r\n\t\tthis.size = size;\r\n\t}",
"public Stack() {\r\n\t\tthis(capacity);\r\n\t}",
"public MyStack(int capacity) {\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tT[] arr = (T[])new Object[capacity];\r\n\t\tstack = arr;\r\n\t\ttopIndex = -1;\r\n\t}",
"public void push(int data){\r\n\r\n\t\tNode last = tail.pre;\r\n\r\n\t\t// create a new node\r\n\t\tNode newNode = new Node();\r\n\t\tnewNode.data = data;\r\n\r\n\t\t// attach tail and then pre\r\n\t\tnewNode.next = tail;\r\n\t\tnewNode.pre = last;\r\n\r\n\r\n\t\t// change new node as tail\r\n\t\ttail.pre = newNode;\r\n\t\tlast.next = newNode;\r\n\r\n\t\t// increment Stack size\r\n\t\tsize++;\r\n\r\n\t}",
"public interface Stack<E> {\r\n \r\n /** \r\n * Pre: Se ingresa el dato\r\n * @param data se ingresa un dato para agregar al Vector\r\n * Post: Se guarda el dato en Stack\r\n */\r\n public void push(E data);\r\n\r\n /** \r\n * Pre: Estan todos los datos en el Stack\r\n * @return E se regresa un item.\r\n * Post: Se regresa y elimina un dato del Stack\r\n */\r\n public E pop();\r\n\r\n /** \r\n * Pre: Se encuentra el Stack con sus datos\r\n * @return E se regresa cualquier tipo de dato\r\n * @throws EmptyStackException regresa un error\r\n * Post: Se regresa el dato sobre la lista\r\n */\r\n public E peek();\r\n\r\n /** \r\n * Pre:Se encuentra el Stack\r\n * @return boolean se regresa un valor True o False\r\n * Post: Si el Stack se encuentra vacio este regresa True\r\n */\r\n public boolean empty();\r\n\r\n /** \r\n * Pre:Se encuentra el Stack \r\n * @return int se regrea cualquier numero\r\n * Post: Se devuelve el numero de objetos que tiene el Stack\r\n */\r\n public int size();\r\n\r\n}",
"public _30_min_stack() {\n data = new Stack<>();\n help = new Stack<>();\n }",
"public LC155_MinStack2() {\n\t\tdata = new Stack<Long>();\n\t}",
"public MinStack() {\n data = new ArrayDeque<>();\n helper = new ArrayDeque<>();\n }",
"public MinValueStack(){\r\n stack1 = new Stack<T>();\r\n stack2 = new Stack<T>();\r\n size = 0;\r\n }",
"public MinStack() {\n dataStack=new Stack<>();\n minStack=new Stack<>();\n }",
"public int maxStack();",
"public MinStack() {\n sdata = new Stack<Integer>();\n smin = new Stack<Integer>();\n }",
"public ArrayStack(int initialCapacity) {\n\t\ttop = 0;\n\t\tstack = (T[]) (new Object[initialCapacity]);\n\t}",
"Stack<Integer> createStack() {\n\t\tStack<Integer> my_stack = new Stack<Integer>();\n\t\t\n\t\t// Add all numbers in linkedlist to stack one by one\n\t\tNode curr = head;\n\t\twhile (curr != null) {\n\t\t\tmy_stack.push(curr.data);\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn my_stack;\n\t}",
"public ArrayStackTest(int capacity){\n\t\tstore = (E[]) new Object[capacity];\n\t\ttop = -1;\n\t}",
"public Stacked(){\n count = 0;\n stackArray = (E[]) new Object[START_CAP];\n }",
"public MinStack() {\n data = new Stack();\n min = new Stack();\n }",
"public void push(int val) {\n if (size == capacity)\n resize(2*capacity);\n if (size == 0)\n max = val;\n else {\n if (val > max)\n max = val;\n }\n data[size] = val;\n size++;\n }",
"public MinStack() {\n in = new Stack();\n out = new Stack();\n min = Integer.MAX_VALUE;\n out.push(min);\n }",
"@Test\n\tpublic void testPush(){\n\t\tArrayIntStack stack = buildStack(4);\n\t\tassertEquals(4, stack.intCol.size());\n\t}",
"public Heap(boolean isMin, Collection<ValueType> data) {\r\n // TODO\r\n }",
"public MyStack() {\r\n\t\tthis(DEFAULT_CAPACITY);\r\n\t}",
"public static void main(String[] args) throws Exception {\n StackUsingArrays stack=new StackUsingArrays(5);\n \n for(int i=1;i<=5;i++) {\n \tstack.push(i*10);\n \tstack.display();\n }\n \n System.out.println(stack.size());\n \n //stack.push(60);\n System.out.println(stack.top());\n \n// while(!stack.isEmpty()) {\n// \tstack.display();\n// \tstack.pop();\n// \t\n// }\n// \n// stack.pop();\n\t}",
"public Stack(int capacity) {\r\n\t\tstack = (E[]) new Object[capacity];\r\n\t\tthis.capacity = capacity;\r\n\t}",
"@Override\n public void push(E z){\n if(isFull()){\n expand();\n System.out.println(\"Stack expanded by \"+ expand+ \" cells\");\n }\n stackArray[count] = z;\n count++;\n }",
"public void push(int data){\n \tif(top == size)\n \tSystem.out.println(\"Stack is overflow\");\n \telse{\n \ttop++;\n \telements[top]=data;\n \t} \n\t}",
"@SubL(source = \"cycl/stacks.lisp\", position = 1818) \n public static final SubLObject create_stack() {\n return clear_stack(make_stack(UNPROVIDED));\n }",
"public void push(int data)\n {\n if (top==size-1)\n {\n System.out.println(\"Stack is full\");\n return;\n\n }else\n {\n top++;\n stack[top]=data;\n }\n\n }",
"public ArrayStack() {\n\t\ttop = 0;\t\t\t\t\t\t\t\t\t\t// points to the first element. Since empty, points 0\n\t\tstack = (T[]) (new Object[DEFAULT_CAPACITY]);\t// Casting to whatever is our desired element.\n\t}",
"public static void main(String args[]) {\n MaxStack maxStack = new MaxStack();\n maxStack.push(5);\n maxStack.push(1);\n maxStack.push(5);\n System.out.println(\"Expected: 5, actual: \" + maxStack.top());\n System.out.println(\"Expected: 5, actual: \" + maxStack.popMax());\n System.out.println(\"Expected: 1, actual: \" + maxStack.top());\n System.out.println(\"Expected: 5, actual: \" + maxStack.peekMax());\n System.out.println(\"Expected: 1, actual: \" + maxStack.pop());\n System.out.println(\"Expected: 5, actual: \" + maxStack.top());\n }",
"public MyStack(){\n\ta = new String[10];\n\ttop = -1;\n }",
"public void push(int data){\n\t\t\tint newMin = Math.min(data, minVal());\t\t//find minimal data from stack\n\t\t\tsuper.push(new MinNode(data, newMin));\t\t\n\t\t\t\n\t\t\t\n\t\t}",
"public ArrayStack() {\n this( DEFAULT_CAPACITY );\n }",
"public interface StackTest<T> {\n\n T pop();\n void push(T t);\n boolean isEmpty();\n int getSize();\n}",
"public interface Stack<T>\n{\n\t/**\n\t * This method initializes an empty stack with a max size of n.\n\t *\n\t * @param n The maximum capacity of the stack.\n\t */\n\tvoid init(int n);\n\n\t/**\n\t * This method pushes the specified element onto the stack.\n\t *\n\t * @param x The element to be pushed.\n\t */\n\tvoid push(T x);\n\n\t/**\n\t * This method pops the top LIFO element off the stack.\n\t *\n\t * @return The top element removed from the stack.\n\t */\n\tT pop();\n\n\t/**\n\t * This method returns the element on the top of the stack.\n\t *\n\t * @return The top element removed from the stack.\n\t */\n\tT peek();\n\n\t/**\n\t * This method returns the current depth of the stack.\n\t *\n\t * @return |this| - count(empty, this);\n\t */\n\tint depth();\n\n\t/**\n\t * This method returns the maximum capacity of the stack.\n\t *\n\t * @return |this|;\n\t */\n\tint maxDepth();\n\n\t/**\n\t * This method returns the empty status of the stack.\n\t *\n\t * @return true if |this| = 0, otherwise false;\n\t */\n\tboolean isEmpty();\n\n\t/**\n\t * This method clears the stack.\n\t */\n\tvoid clear();\n\n\t/**\n\t * This method prints the contents of the stack.\n\t */\n\tvoid print();\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(T data) {\n if((stackPointer + 1) == Array.getLength(this.elements))\n expandStack();\n this.elements[++stackPointer] = data;\n }",
"public void createNew(int xSize, int ySize, int countOfMines);",
"@Override\r\n\tpublic void push(AnyType data) throws StackException {\n\t\ttop = new Node<AnyType>(data,top);\r\n\t}",
"@Test\r\n public void testStackstack() {\r\n StackArrayList<Integer> stack = new StackArrayList<Integer>();\r\n\r\n stack.push(1);\r\n stack.push(2);\r\n stack.push(3);\r\n stack.push(4);\r\n stack.push(5);\r\n\r\n assertEquals(5, stack.peek());\r\n assertEquals(5, stack.pop());\r\n assertEquals(4, stack.size());\r\n }",
"public MinStack() {\n st = new Stack<>();\n }",
"public MyStack() {\n @SuppressWarnings(\"unchecked\")\n T[] newStack = (T[]) new Object[DEFAULT_STACK_SIZE];\n stackArray = newStack;\n stackSize = 0;\n }",
"@Override\n\tpublic int getMaxSizeX()\n\t{\n\t\treturn 200;\n\t}",
"public interface Stack<T> {\n boolean isEmpty();\n T pop();\n void push(T t);\n T getTop();\n void clear();\n int size();\n}",
"public MinStack() {\n capacity = 1 << 4;\n nums = new int[capacity];\n mins = new int[capacity];\n }",
"public void testMyStack() {\n\t\tMyStack<String> s = new MyStack<String>();\n\t\ts.push(\"1\");\n\t\ts.push(\"2\");\n\t\ts.push(\"3\");\n\t\ts.pop();\n\t\ts.push(\"4\");\n\t\ts.toString();\n\t\tSystem.out.println(\"MyStack size is: \" + s.size());\n\t}",
"public DoubleElementMinStack() {\n stack = new Stack<>();\n }",
"public StackClass() {\n \tsize=0;\n\t}",
"@Override\n public void push(T data) {\n if (data != null) {\n if (size == backing.length) {\n T[] newBacking = (T[]) new Object[backing.length * 2];\n for (int i = 0; i < size; i++) {\n newBacking[i] = backing[i];\n }\n newBacking[size++] = data;\n backing = newBacking;\n } else {\n backing[size] = data;\n size++;\n }\n } else {\n throw new IllegalArgumentException(\"Can't push null onto stack\");\n }\n }",
"public HeapPriorityQueue(int size)\n\t{\n\t\tstorage = new Comparable[size + 1];\n\t\tcurrentSize = 0;\n\t}",
"public void push(int data) {\r\n\r\n\t\t\t// Allocate new node in heap\r\n\t\t\tNode newNode = new Node(data);\r\n\t\t\t// check if heap is full\r\n\t\t\tif (newNode == null) {\r\n\t\t\t\tSystem.out.println(\"Heap overflow\");\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tnewNode.next = top;\r\n\t\t\t\ttop = newNode;\r\n\t\t\t}\r\n\r\n\t\t}",
"public Stack() {\n stack = new Object[1];\n minStackSize = 1;\n top = -1;\n }",
"public Heap12( boolean isMaxHeap)\n {\n arrayList = new ArrayList<E>(5);\n size = 0;\n isMax = isMaxHeap;\n cap = 5;\n }",
"public MinStack_155() {\n\t\tmin= new Stack<Integer>();\n\t\tstack= new Stack<Integer>();\n\t}",
"public ArrayStack(int initialCapacity) {\n size = 0;\n this.backing = (T[]) new Object[initialCapacity];\n }",
"public interface Stack<E> {\n\n void push(E e) throws FullStackException;\n E pop() throws EmptyStackException; //devuelves / sacas un Elemento\n int size();\n}",
"public void add(T val){\n myCustomStack[numElements] = val; // myCustomStack[0] = new value, using numElements as index of next open space\n numElements++; //increase numElements by one each time a value is added to the stack, numElements will always be one more than number of elements in stack\n resize(); //call resize to check if array needs resizing\n }",
"public void createNew(int size);",
"public int getSlotStackLimit()\n {\n return 1;\n }",
"public int getSlotStackLimit()\n {\n return 1;\n }",
"public MyStack() {\n\t\ttopNode = null;\n\t\tMAX_SIZE = Integer.MAX_VALUE;\n\t\tnodeCount = 0;\n\t}",
"static void stackPush(Stack<Integer> stack)\r\n\t{\r\n\t\tfor(int i=0;i<5;i++)\r\n\t\t{\r\n\t\t\tstack.push(i*5);\r\n\t\t}\r\n\t\tSystem.out.println(\"Printing the stack value which is push:\");\r\n\t\tSystem.out.println(\"Push :\"+stack +\"\\nsize of stack: \"+ stack.size());\r\n\t}",
"public ArrayStack()\r\n {\r\n top = 0;\r\n stack = (T[])(new Object[DEFAULT_CAPACITY]);\r\n }",
"@Nonnull\n default FluidStack getFluidStack(int size) {\n return new FluidStack(getFluid(), size);\n }",
"public MinStack() {\n min = Integer.MIN_VALUE;\n stack = new Stack();\n }",
"@Override\r\n\tpublic void push(E e) {\r\n\t\tif (size() == stack.length)\r\n\t\t\texpandArray();\r\n\t\tstack[++t] = e; // increment t before storing new item\r\n\t}",
"public int getSize(){\r\n return topOfStack;\r\n }",
"public MinStack() {\n sort = new Stack<>();\n stack = new Stack<>();\n }",
"public NotationStack() {\r\n\t\tstack = new ArrayList<T>(1000);\r\n\t\tsize = 1000;\r\n\t}",
"stack() {\n arr = (E[]) new Object[size];\n }",
"@Test\n public void testStack() {\n DatastructureTest.STACK.push(3);\n DatastructureTest.STACK.push(7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == -1);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == -1);\n }",
"public int getSize(){\n return this.stack.size();\n }",
"public MinStack() {\n stack = new Stack<IntMinPair>();\n }",
"public Heap12()\n {\n arrayList = new ArrayList<E>(5);\n size = 0;\n isMax = false;\n cap = 5;\n }",
"public static void push(Integer num) {\n mainStack.push(num);\n if (maxStack.isEmpty() || maxStack.peek() < num){\n maxStack.push(num);\n }\n }"
]
| [
"0.71274316",
"0.6669321",
"0.65874654",
"0.64530617",
"0.63574547",
"0.6336672",
"0.63177925",
"0.6252252",
"0.62300444",
"0.62073684",
"0.60789627",
"0.6052523",
"0.6025206",
"0.5993605",
"0.59691787",
"0.59590024",
"0.59053165",
"0.5866277",
"0.58445615",
"0.5813968",
"0.57953763",
"0.57842225",
"0.578057",
"0.57715976",
"0.57597524",
"0.57541853",
"0.574387",
"0.5723951",
"0.5716596",
"0.57024634",
"0.5701265",
"0.56977516",
"0.5690739",
"0.5687644",
"0.56847906",
"0.5681209",
"0.56806135",
"0.56622577",
"0.5652171",
"0.56458336",
"0.56452125",
"0.5641606",
"0.56311715",
"0.56229",
"0.5618334",
"0.5617076",
"0.55976737",
"0.5585548",
"0.55782646",
"0.5567616",
"0.5534677",
"0.55170566",
"0.5514209",
"0.5504284",
"0.5491442",
"0.5481657",
"0.5466732",
"0.54632753",
"0.5459465",
"0.5438192",
"0.54324406",
"0.5432353",
"0.5430251",
"0.5427775",
"0.54241717",
"0.542261",
"0.541806",
"0.54081535",
"0.5406156",
"0.54011226",
"0.5400211",
"0.53948575",
"0.5394127",
"0.53928846",
"0.5385198",
"0.5385122",
"0.5384529",
"0.5364596",
"0.5362604",
"0.53623027",
"0.5360146",
"0.5358493",
"0.5353731",
"0.5333287",
"0.5333287",
"0.53312474",
"0.5329662",
"0.53285044",
"0.53271884",
"0.5322295",
"0.5318756",
"0.5314716",
"0.53120303",
"0.5308171",
"0.5308102",
"0.53026885",
"0.52991796",
"0.52959985",
"0.52936906",
"0.52898216"
]
| 0.6411363 | 4 |
Determine if the Stack is empty (containing no data) | @Override
public boolean isEmpty() {
if(nodeCount == 0) return true;
else return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isEmpty(){\r\n\t\treturn stackData.isEmpty();\r\n\t}",
"public boolean isEmpty() {\n \treturn stack.size() == 0;\n }",
"public boolean isEmpty()\n {\n return stack.size() == 0;\n }",
"@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn stack.isEmpty();\r\n\t}",
"public boolean isEmpty()\n {\n return stack.isEmpty();\n }",
"public boolean emptyStack() {\n return (expStack.size() == 0);\n }",
"public boolean isEmpty(){\n return this.stack.isEmpty();\n\n }",
"public boolean isEmpty() {return stackList.isEmpty();}",
"public boolean isEmpty() {\n return stackImpl.isEmpty();\n }",
"public boolean empty() {\r\n return stack.isEmpty();\r\n }",
"public boolean empty() {\r\n return stack.isEmpty();\r\n }",
"public boolean empty() {\r\n return this.stack.isEmpty();\r\n }",
"public boolean empty() {\n return stack.isEmpty();\n }",
"public boolean empty() {\n return stack.isEmpty();\n }",
"public boolean empty() {\n return stack.isEmpty();\n }",
"public boolean empty() {\n return stack.empty();\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 isEmpty() {\n return downStack.isEmpty();\n }",
"public boolean isEmpty(){\r\n \treturn stack1.isEmpty();\r\n }",
"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 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 empty() {\n return popStack.empty() && pushStack.empty();\n }",
"public final boolean isEmpty() {\n\t\treturn !(opstack.size() > 0);\n\t}",
"public boolean empty() {\n return stack1.empty();\n }",
"public boolean empty() {\n return this.stack1.empty() && this.stack2.empty();\n }",
"public boolean empty() {\r\n return inStack.empty() && outStack.empty();\r\n }",
"public boolean empty() {\n return rearStack.isEmpty() && frontStack.isEmpty();\n }",
"public boolean isEmpty() {\n return stack.isListEmpty();\n }",
"public boolean empty() {\n /**\n * 当两个栈中都没有元素时,说明队列中也没有元素\n */\n return stack.isEmpty() && otherStack.isEmpty();\n }",
"public boolean isCarStackEmpty() {\n boolean carStackEmpty = false;\n if(top < 0) {\n carStackEmpty = true;\n }\n return carStackEmpty;\n }",
"public boolean isEmpty() {\n if (opStack.size() == 0) {\n return true;\n }\n return false;\n }",
"@Override\r\n\tpublic boolean isFull() {\r\n\t\treturn stack.size() == size;\r\n\t}",
"public void testIsEmpty() {\n assertTrue(this.empty.isEmpty());\n assertFalse(this.stack.isEmpty());\n }",
"public boolean empty() {\n if (stackIn.empty() && stackOut.empty()) {\n return true;\n }\n return false;\n }",
"public boolean isEmpty() {\r\n return (top == null);\r\n }",
"public boolean isEmpty()\r\n\t{\r\n\t\treturn top<=0;\r\n\t}",
"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() {\n\n return (top == null);\n }",
"public boolean isEmpty() {\n return (this.top == 0);\n }",
"public boolean isEmpty()\n\t{\n\t\treturn top == null;\n\t}",
"public boolean isEmpty() {\n\t\treturn (top == null) ? true : false;\n\t}",
"public boolean isEmpty(){\n return (top == 0);\n }",
"public boolean empty() {\n return mStack1.isEmpty() && mStack2.isEmpty();\n }",
"public boolean isEmpty() {\n return top == null;\n }",
"public boolean isEmpty() {\n return top == null;\n }",
"public boolean empty() {\n return stack1.isEmpty() && stack2.isEmpty();\n }",
"public boolean isEmpty() \n {\n return stack1.isEmpty() && stack2.isEmpty();\n }",
"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\t\t\n\t\treturn top == null;\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()\r\n {\n return this.top == null;\r\n }",
"public boolean isEmpty() {\n return this.top == null;\n }",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn top < 0;\n\t}",
"boolean isEmpty() {\r\n\t\treturn top==0;\r\n\t}",
"public boolean empty() {\n return push.isEmpty();\n }",
"public boolean empty() { \n if (top == -1) {\n return true;\n }\n else {\n return false;\n }\n }",
"public boolean empty(){\n return this.top == -1;\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(){\n \treturn top==-1;\n\t}",
"public boolean isEmpty() {\n return topIndex < 0;\n }",
"public boolean isEmpty() {\n if(this.top== -1) {\n return true;\n }\n return false;\n }",
"public boolean isFull() {\n return (this.top == this.stack.length);\n }",
"private boolean isEmpty() {\n return dataSize == 0;\n }",
"@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn topIndex < 0;\r\n\t}",
"public boolean isEmpty()\r\n\t{\r\n\t\treturn data.size() == 0;\r\n\t}",
"@Test\n public void isEmpty() {\n SimpleStack stack = new DefaultSimpleStack();\n\n // then the stack is empty\n assertTrue(stack.isEmpty());\n }",
"public boolean isEmpty(){\n if(top == null)return true;\n return false;\n }",
"public boolean empty() {\n return data.size() == 0;\n }",
"public boolean isEmpty() {\n\t\treturn heap.isEmpty();\n\t}",
"@SubL(source = \"cycl/stacks.lisp\", position = 2117) \n public static final SubLObject stack_empty_p(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n return Types.sublisp_null(stack_struc_elements(stack));\n }",
"public boolean isEmpty() {\n\t\treturn heap.size() == 0;\n\t}",
"public boolean isEmpty() {\n\t\treturn heap.size() == 0;\n\t}",
"public boolean empty() \n { \n\treturn(top==-1);\n \n }",
"public boolean isEmpty(){\n return myHeap.getLength() == 0;\n }",
"@Test\n public void testIsEmpty() {\n System.out.println(\"isEmpty\");\n instance = new Stack();\n assertTrue(instance.isEmpty());\n instance.push(\"ab\");\n instance.push(\"cd\");\n assertFalse(instance.isEmpty());\n instance.pop();\n instance.pop();\n assertTrue(instance.isEmpty());\n }",
"boolean isEmpty() {\n // -\n if(top == null)\n return true;\n return false;\n }",
"public static boolean isEmpty()\n { return currentSize==0; }",
"public final boolean empty() {\n return data == null;\n }",
"public boolean isEmpty() {\n\t\treturn front == null;\n\t}",
"public boolean isEmpty() {\r\n\r\n\t\treturn data.isEmpty();\r\n\t}",
"public boolean isEmpty()\n {\n return heapSize == 0;\n }",
"@Test /*Test 18 - implemented isEmpty() method to NumStack class. Refactored isEmpty() to now \n call the size() method of the Stack object in NumStack to determine if it is empty, rather than \n always returning true.*/\n public void testIsEmpty() {\n assertTrue(\"NumStack object should be empty after creation\", numStackTest.isEmpty());\n }",
"public boolean isEmpty()\n\t{ \n\t\treturn (front==-1);\n\t}",
"@Override\r\n\tpublic boolean isEmpty() {\r\n\r\n\t\treturn data.isEmpty();\r\n\t}",
"private boolean isEmpty() {\n\t\treturn size() == 0;\n\t}",
"public boolean isFull(){\n return (top == employeeStack.length);\n }",
"public boolean isEmpty() {\n return data.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 boolean empty() {\n\t\treturn (this.root == null); // to be replaced by student code\n\t}",
"@Test\r\n public void testIsEmptyShouldReturnFalseWhenStackNotEmpty() {\r\n stackInstance=new StackUsingLinkedList<Integer>();\r\n stackInstance.push(90);\r\n stackInstance.push(5);\r\n boolean actualOutput=stackInstance.isEmpty();\r\n assertEquals(false,actualOutput);\r\n }",
"public boolean empty() { \t \n\t\t return size <= 0;\t \n }",
"public boolean empty() {\n return size <= 0;\n }",
"public boolean isEmpty() {\n\t\treturn currentSize == 0;\n\t}",
"public boolean isEmpty()\n {return data == null;}",
"boolean isFull(Stack stack){\n\t\tif(stack.getStackSize() >= 100) return true;\r\n\t\telse return false;\t\r\n\t}"
]
| [
"0.890199",
"0.8750391",
"0.8706278",
"0.86879075",
"0.8642668",
"0.86151385",
"0.86030865",
"0.8563691",
"0.8553403",
"0.8540452",
"0.852409",
"0.8523879",
"0.85097474",
"0.85097474",
"0.8489656",
"0.8455329",
"0.84132487",
"0.8390587",
"0.8376289",
"0.8324303",
"0.83239794",
"0.8318046",
"0.82870275",
"0.82829607",
"0.8276948",
"0.81613946",
"0.8134333",
"0.8114998",
"0.80602807",
"0.8051588",
"0.8045685",
"0.79896533",
"0.7983291",
"0.79708195",
"0.79678947",
"0.7910573",
"0.78953654",
"0.78857666",
"0.78851414",
"0.7870891",
"0.7870891",
"0.7870891",
"0.78517497",
"0.7847708",
"0.78425217",
"0.78334224",
"0.78313357",
"0.78262264",
"0.7826148",
"0.7826148",
"0.7825961",
"0.78127563",
"0.7806638",
"0.7803994",
"0.77973485",
"0.7766589",
"0.77623713",
"0.7741015",
"0.772096",
"0.7690424",
"0.76584196",
"0.76232404",
"0.76112336",
"0.76092225",
"0.75958085",
"0.75813127",
"0.7575476",
"0.7566013",
"0.7528748",
"0.75278467",
"0.751994",
"0.75092834",
"0.7490424",
"0.7482568",
"0.7477189",
"0.7461176",
"0.7453584",
"0.7453584",
"0.74376446",
"0.743612",
"0.74217796",
"0.74194413",
"0.7386633",
"0.7368028",
"0.73625004",
"0.7345314",
"0.73333955",
"0.73183024",
"0.7316707",
"0.7316011",
"0.73049384",
"0.7303589",
"0.7299281",
"0.72971344",
"0.72939295",
"0.7273169",
"0.7271833",
"0.72668374",
"0.72652495",
"0.72478324",
"0.72463524"
]
| 0.0 | -1 |
Determine if the Stack is full (cannot admit more data) | @Override
public boolean isFull() {
if(nodeCount == this.MAX_SIZE) return true;
else return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic boolean isFull() {\r\n\t\treturn stack.size() == size;\r\n\t}",
"public boolean isFull() {\n return (this.top == this.stack.length);\n }",
"boolean isFull(Stack stack){\n\t\tif(stack.getStackSize() >= 100) return true;\r\n\t\telse return false;\t\r\n\t}",
"@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 isFull(){\n return (top == employeeStack.length);\n }",
"public boolean isFull() {\n if(this.top==(size - 1)) {\n return true;\n }\n return false;\n }",
"public boolean isFull(){\n return this.top==this.maxLength-1;\n }",
"@Override\r\n\tpublic boolean isFull() {\r\n\r\n\t\treturn data.size() >= maxQueue;\r\n\t}",
"public boolean stackEmpty() {\r\n\t\treturn (top == -1) ? true : false;\r\n\t }",
"public boolean isCarStackFull() {\n boolean carStackFull = false;\n if(top >= 4) {\n carStackFull = true;\n }\n return carStackFull;\n }",
"@Override\r\n\tpublic boolean isfull() {\n\t\t\r\n\t\treturn count == size ;\r\n\t}",
"public boolean isFull()\n {\n return heapSize == heap.length;\n }",
"private boolean isFull() {\n\t\treturn (size == bq.length);\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 boolean isFull() {\n return size == cnt;\n }",
"public boolean isFull()\r\n\t{\r\n\t\treturn numItems > MAXSIZE;\r\n\t}",
"@Override\n public boolean isFull() {\n return heapSize == heap.length;\n }",
"public boolean isFull() {\n return this.chromosomes.size() >= Defines.popSize;\n }",
"@Override\n public boolean isFull(){\n return (count == size);\n \n }",
"public boolean isEmpty(){\r\n\t\treturn stackData.isEmpty();\r\n\t}",
"public boolean isFull(){\n return size == arrayQueue.length;\n }",
"boolean isFull()\n\t{\n\t\treturn rear==size-1;\n\t}",
"public boolean empty() {\r\n return this.stack.isEmpty();\r\n }",
"public boolean emptyStack() {\n return (expStack.size() == 0);\n }",
"public boolean isEmpty() {\n return downStack.isEmpty();\n }",
"private boolean ifFull() {\n return items.length == size;\n }",
"public boolean isFull()\r\n\t{\r\n\t\treturn (count == capacity);\r\n\t}",
"public boolean isFull() {\r\n\t\treturn cur_index == size;\r\n\t}",
"public boolean isEmpty() {\n \treturn stack.size() == 0;\n }",
"public boolean isFull() {\n return count == capacity;\n }",
"public boolean isFull() {\n\t\treturn numElements==data.length;\n\t}",
"public boolean isFull(){\n \treturn count==capacity;\n }",
"public boolean isEmpty() {return stackList.isEmpty();}",
"public boolean empty() {\n return stack.empty();\n }",
"public boolean empty() {\r\n return stack.isEmpty();\r\n }",
"public boolean isCarStackEmpty() {\n boolean carStackEmpty = false;\n if(top < 0) {\n carStackEmpty = true;\n }\n return carStackEmpty;\n }",
"public boolean empty() {\r\n return stack.isEmpty();\r\n }",
"boolean isFull() {return pointer==size;}",
"public boolean empty() {\n return stack.isEmpty();\n }",
"public boolean empty() {\n return stack.isEmpty();\n }",
"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 empty() {\n return stack.isEmpty();\n }",
"public boolean empty() {\n System.out.println(stack.isEmpty());\n return stack.isEmpty();\n }",
"public boolean isFull() {\n\t\treturn (rear+1)%total_size == front;\r\n\t}",
"public boolean isEmpty()\n {\n return stack.isEmpty();\n }",
"public boolean empty() {\n return this.stack2.size() == 0 && this.stack1.size() == 0;\n }",
"public boolean isFull()\r\n\t\t{\r\n\t\t\tint count = 0;\r\n\t\t\tData currentData = head;\r\n\t\t\twhile (currentData != null)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tcurrentData = currentData.nextData();\r\n\t\t\t}\r\n\t\t\treturn (count > 2); //if the count is > 2 then it is full\r\n\t\t}",
"public boolean isFull() {\n\t\treturn(this.size == this.capacity);\n\t}",
"public boolean isFull() {\n return (front == 0 && last == capacitySize) ? true : false;\n }",
"public boolean isEmpty()\n {\n return stack.size() == 0;\n }",
"public boolean isFull()\n\t{\n\t return (front==0 && rear==queueArray.length-1 || (front==rear+1));\n\t}",
"public boolean isEmpty(){\r\n \treturn stack1.isEmpty();\r\n }",
"public boolean isFull() {\n\t\treturn count == st.length? true : false;\r\n\t}",
"public boolean isFull() {\r\n\t\treturn (rear+1)%maxSize==front;\r\n\t}",
"public boolean isFull() {\n\t\treturn end != null;\n\t}",
"@Override\r\n\tpublic int size() {\r\n\t\treturn stack.length;\r\n\t}",
"private boolean isFull() {\n\t\treturn nbmsg==getSize();\n\t}",
"public boolean isFull() {\n return (e+1)%buf.length == b;\n }",
"public boolean isEmpty() {\n return stackImpl.isEmpty();\n }",
"public boolean empty() {\n return this.stack1.empty() && this.stack2.empty();\n }",
"@Override\r\n\tpublic int size() {\r\n\t\treturn stack.size();\r\n\t}",
"public boolean hasUnderflow() {\r\n\t\t\treturn (data.size() <= 0);\r\n\t\t}",
"public boolean isFull() {\n return (this.count == this.capacity);\n }",
"public boolean isFull(){\r\n return currentSize == maxSize;\r\n }",
"public boolean isFull() { return front == (rear + 1) % MAX_QUEUE_SIZE; }",
"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() {\n\t\treturn (stackSize == 0 ? true : false);\n\t}",
"private boolean isTreeFull() {\n // The number of leaf nodes required to store the whole vector\n // (each leaf node stores 32 elements).\n int requiredLeafNodes = (totalSize >>> 5);\n\n // The maximum number of leaf nodes we can have in a tree of this\n // depth (each interior node stores 32 children).\n int maxLeafNodes = (1 << treeDepth);\n\n return (requiredLeafNodes > maxLeafNodes);\n }",
"public boolean isFull() { return false; }",
"public boolean isFull(){\n\t\treturn false;\n\t}",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"public boolean isFull();",
"public boolean empty() {\n return stack1.empty();\n }",
"public boolean isFull() {\n int size = 0;\n for (int i = 0; i < items.length; i++) {\n if (items[i] != null) {\n size++;\n }\n }\n return size == items.length;\n }",
"@Override\n public boolean isFull() {\n return this.count() == 5;\n }",
"public boolean isFull() {\r\n\t\treturn false;\r\n\t}",
"public boolean empty() {\n return popStack.empty() && pushStack.empty();\n }",
"public boolean isFull() {\n\t\treturn markCount == 9;\n\t}",
"public boolean isFull() {\n return false;\n }",
"public boolean empty() {\r\n return inStack.empty() && outStack.empty();\r\n }",
"public boolean empty() {\n return popStack.isEmpty();\n }",
"public boolean isFull() {\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic boolean isFull() {\r\n\t\treturn ((front == 0 && rear == MAX_LENGTH - 1) || rear == front - 1);\r\n\t}",
"boolean isFull()\n {\n return ((front == 0 && end == size-1) || front == end+1);\n }",
"public int size() {\n \treturn stack.size();\n }",
"public boolean empty() {\n return rearStack.isEmpty() && frontStack.isEmpty();\n }",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn top < 0;\n\t}",
"public boolean status(){\n if(this.nbObj == 0)\n {\n try{\n writer.write(\"Stack is empty!\\n\",0,16);\n }\n catch(IOException e){\n printStream.println(\"I/O exception!!!\");\n }\n }\n if(this.nbObj == this.objTab.length)\n {\n try{\n writer.write(\"Stack is full!\\n\",0,15);\n }\n catch(IOException e){\n printStream.println(\"I/O exception!!!\");\n }\n return true;\n }\n return false;\n }",
"public boolean isEmpty()\r\n\t{\r\n\t\treturn top<=0;\r\n\t}",
"public boolean isFull()\n { \n return count == elements.length; \n }",
"public boolean isFull() {\n return head - tail == 1 || (head == 0 && tail == size - 1);\n }",
"@Override\n public boolean isFull() {\n return false;\n }",
"public boolean is_full()\n\t {\n\t if (num_elements == capacity)\n\t return true;\n\t return false;\n\t }",
"public boolean hasOverflow() {\r\n\t\t\treturn (data.size() > 3);\r\n\t\t}",
"public boolean isFull() {\n return (fifoFull.getBoolean());\n }"
]
| [
"0.87387776",
"0.8542512",
"0.84987",
"0.84984976",
"0.8178578",
"0.7761478",
"0.76649094",
"0.7601762",
"0.7509633",
"0.7400335",
"0.7375511",
"0.73518485",
"0.73274124",
"0.7321459",
"0.73107374",
"0.7310449",
"0.7297387",
"0.7292377",
"0.7274034",
"0.7265291",
"0.7263665",
"0.7262698",
"0.7261555",
"0.72384393",
"0.7227078",
"0.72211635",
"0.720363",
"0.7201965",
"0.7194309",
"0.7166275",
"0.71554065",
"0.71549815",
"0.7128191",
"0.712296",
"0.7121081",
"0.71165025",
"0.7108327",
"0.71061766",
"0.7100735",
"0.7088169",
"0.7088169",
"0.70850086",
"0.70706105",
"0.70676756",
"0.7067229",
"0.70644534",
"0.7064277",
"0.70632297",
"0.7057802",
"0.7052124",
"0.7036761",
"0.7014376",
"0.7009811",
"0.7007979",
"0.70003134",
"0.69944775",
"0.69936794",
"0.69844455",
"0.69843125",
"0.69627666",
"0.69613576",
"0.69550854",
"0.6952224",
"0.69514894",
"0.6929564",
"0.6924041",
"0.69238186",
"0.6916079",
"0.6915165",
"0.6913071",
"0.69120735",
"0.6911632",
"0.6911632",
"0.6911632",
"0.6911632",
"0.6911632",
"0.6911632",
"0.6909076",
"0.6895593",
"0.68885446",
"0.6883714",
"0.6860068",
"0.684309",
"0.68364626",
"0.68358177",
"0.6829494",
"0.68202454",
"0.6800196",
"0.679967",
"0.6788079",
"0.6784922",
"0.67647",
"0.676051",
"0.6741735",
"0.674123",
"0.67357063",
"0.67136765",
"0.66993624",
"0.6698815",
"0.66931707"
]
| 0.71322304 | 32 |
Remove the top Node from the Stack | @Override
public T pop() throws StackUnderflowException {
//If the Stack is empty, throw Exception
if(this.isEmpty()) throw new StackUnderflowException("The stack is empty. The operation may not be completed");
else {
//Retrieve the Object from the top Node of the Stack
T returnData = topNode.data;
//Remove the top Node and promote second Node
topNode = topNode.nextNode;
nodeCount--;
//Return retrieved data
return returnData;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void pop() {\n // -\n top = top.getNextNode();\n }",
"public void pop()\n {\n this.top = this.top.getNext();\n }",
"public void pop()\r\n\t{\r\n\t\ttop--;\r\n\t\tstack[top] = null;\r\n\t}",
"public void pop(){\n \n if(top==null) System.out.println(\"stack is empty\");\n else top=top.next;\n \t\n }",
"void removeTop()\n {\n \tif(first!=null)\t\t\t\n \t{\n \t\tfirst=first.next;\n \t\tif(first!=null)\n \t\t\tfirst.prev=null;\n \t}\n }",
"public 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()\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 }",
"@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}",
"private Node popNode() {\n\t\treturn open.remove(0);\n\t}",
"public void pop() {\n // if the element happen to be minimal, pop it from minStack\n if (stack.peek().equals(minStack.peek())){\n \tminStack.pop();\n }\n stack.pop();\n\n }",
"private T pop(Node topNode)\n {\n if (isEmpty())\n {\n return null;\n }\n else // not empty\n {\n T result = (T) topNode.getData();\n first = topNode.getNextNode();\n return result;\n }\n }",
"public void pop(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // check if stack is empty\n if(this.topOfStack==-1){\n System.out.println(\"Stack is empty, can't pop from stack\");\n return;\n }\n // if stack is not empty\n this.arr[this.topOfStack]=Integer.MIN_VALUE;\n this.topOfStack--;\n }",
"public void deleteStack(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // if stack is present\n topOfStack=-1;\n arr=null;\n System.out.println(\"Stack deleted successfully\");\n }",
"public void erase()\n {\n this.top = null;\n }",
"public void popAllStacks(){\n // if top is lost then all elements are lost.\n top = null;\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 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 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 void pop() {\n if(stack.pop() == min)\n min=stack.pop();\n }",
"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 void clearStack() {\n\n\t\tNode<T> current = getTopNode();\n\n\t\twhile (current != null) {\n\t\t\tpop();\n\t\t\tcurrent = current.nextNode;\n\t\t}\n\n\t\tSystem.out.println(\"\\n*****************\");\n\t\tSystem.out.println(\" STACK CLEARED!! \");\n\t\tSystem.out.println(\"*****************\");\n\t}",
"void pop() {\n if (s.isEmpty()) {\n System.out.println(\"Stack is empty\");\n return;\n }\n System.out.print(\"Top Most Element Removed: \");\n Integer t = s.pop();\n // minEle must be updated as the curr minEle is being Removed\n if (t < minEle) {\n System.out.println(minEle);\n minEle = 2 * minEle - t;\n } else {\n System.out.println(t);\n }\n }",
"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 }",
"public void pop() {\n if (null != head) {\n Node<T> newHead = head.next;\n head = newHead;\n }\n }",
"public Node remove() {\n Node result = peek();\n\n //new root is last leaf\n heap[1] = heap[size];\n heap[size] = null;\n size--;\n\n //reconstruct heap\n shiftDown();\n\n return result;\n }",
"public T pop() {\n T top = peek();\n stack[topIndex] = null;\n topIndex--;\n return top;\n }",
"public void clear() {\n this.top = null;\n }",
"public Card removeTopCard(){\n\t\treturn this.pile.remove(0);\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 void pop() {\n\t\tif(stackTmp.isEmpty()){\n\t\t\twhile(!stack.isEmpty()){\n\t\t\t\tint tmp = stack.peek();\n\t\t\t\tstackTmp.push(tmp);\n\t\t\t\tstack.pop();\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tstackTmp.pop();\n\t\t}\n\t}",
"public void clear() {\n for(;topIndex > -1;topIndex--)\n stack[topIndex] = null;\n }",
"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 void pop()\n {\n EmptyStackException ex = new EmptyStackException();\n if (top <= 0)\n {\n throw ex;\n }\n else\n {\n stack.remove(top - 1);\n top--;\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 void popAll()\r\n {\n this.top = null;\r\n }",
"public void pop() {\n if(!empty()){\n \tstack.pop();\n }\n }",
"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 int pop(){\n if (top==null) throw new EmptyStackException();\n int data = top.data;\n top=top.next;\n return data;\n }",
"public final void removeFirst() {\n this.size--;\n setFirst((Node) ((Node) get()).get());\n }",
"public void removeChild(TaskStack stack) {\n super.removeChild((TaskStackContainers) stack);\n removeStackReferenceIfNeeded(stack);\n }",
"@Override\n\tpublic Node removeNode() {\n\t\tif(isEmpty())\n\t\t\treturn null;\n\t\t// BreadthFirstSearch using a queue, first in first out principle\n\t\treturn frontier.removeFirst();\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 void popAll() {\n\n top = null;\n }",
"public E pop()\n {\n E topVal = stack.removeFirst();\n return topVal;\n }",
"public LinkedStack() {\r\n\t\ttopNode = null;\r\n\t}",
"public void pop() {\n this.tail = getNodeBeforeIndex(this.length - 1);\n this.tail.next = null;\n this.length--;\n }",
"public void clear() {\r\n\t\t\r\n\t\ttopNode = null; // Sets topNode pointer to null.\r\n\t\t\r\n\t}",
"public void pop() {\n\t\tif (top == -1) {\n\t\t\tSystem.out.println(\"Stack is empty\");\n\t\t} else {\n\t\t\tSystem.out.println(stacks[top] + \" is popped\");\n\t\t\ttop--;\n\t\t}\n\t\tsize--;\n\t}",
"public T removeFirst(){\n\tT ret = _front.getCargo();\n\t_front = _front.getPrev();\n\t_front.setNext(null);\n\t_size--;\n\treturn ret;\n }",
"public int deleteHead(){\n if (stack1.isEmpty()){\n while (!stack2.isEmpty()){\n stack1.push(stack2.pop());\n }\n }\n\n if (stack1.isEmpty()){\n return -1;\n }else {\n return stack1.pop();\n }\n }",
"public Node removeFirst() {\r\n\t\treturn removeNode(0);\r\n\t}",
"public E pop(){\n return this.stack.remove(stack.size()-1);\n }",
"@Override\n\tpublic void pop() throws StackEmptyException {\n\t\tif(top != null) {\n\t\t\ttop = top.getLink();\n\t\t}\n\t\telse {\n\t\t\tthrow new StackEmptyException(\"Pop attempted on an empty stack.\");\n\t\t}\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}",
"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 void pop() {\n if (top==-1) {\n System.out.println(\"Stack is empty\");\n return;\n\n\n } else {\n System.out.println(\"item popde is:-\"+ stack[top]);\n top--;\n }\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() 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 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 void popScope() {\n this.stack.removeFirst();\n }",
"private Node<S> popNextUnvisitedNode(){\n if (!stack.isEmpty()){\n Node<S> next = stack.pop();\n // Pop nodes if visited\n while(visited.containsKey(next.transition().to())){\n if (!stack.isEmpty()){\n next = stack.pop();\n } else {\n return null;\n }\n }\n return next;\n }\n return null;\n }",
"private DLinkedNode popTail() {\n\t\t\tDLinkedNode res = tail.pre;\n\t\t\tthis.removeNode(res);\n\t\t\treturn res;\n\t\t}",
"@Override\n public Integer pop() throws EmptyStackException {\n if (isEmpty()) throw new EmptyStackException();\n Integer remove = this.head.e;\n this.head = head.next;\n size--;\n return remove;\n }",
"public void removeAtFront(){\r\n\t head = head.getLink();\r\n\t cursor = head; \r\n\t precursor = null; \r\n\t \r\n\t manyNodes--;\r\n }",
"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 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 removeLast() {\n\t\tif (this.maxCapacity == 0) {\n\t\t\tSystem.out.println(\"incorrect Operation \");\n\t\t\tSystem.out.println(\"bottom less Stack\");\n\t\t\treturn null;\n\t\t} \n\t\t\n\t\tif (this.size > 0) {\n\t\t\tNode<E> nextNode = head.getNext();\n\t\t\tNode<E> prevNode = null;\n\t\t\twhile (nextNode != null) {\n\t\t\t\tif (nextNode.getNext() == null) {\n\t\t\t\t\tNode<E> lastNode = nextNode;\n\t\t\t\t\tthis.tail = prevNode;\n\t\t\t\t\tthis.tail.setNext(null);\n\t\t\t\t\tthis.size--;\n\t\t\t\t\treturn lastNode.getElement();\n\t\t\t\t}\n\t\t\t\tprevNode = nextNode;\n\t\t\t\tnextNode = nextNode.getNext();\n\t\t\t}\n\t\t} \n\t\t\t\n\t\treturn null;\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 }",
"public Node pop() {\r\n\t\tNode front = null;\r\n\t\tif (start != null) {\r\n\t\t\tfront = start;\r\n\t\t\tstart = start.getNext();\r\n\t\t\telements--;\r\n\t\t}\r\n\t\treturn front;\r\n\t}",
"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}",
"public int pop() {\r\n\t\t\tif (top == null) {\r\n\t\t\t\tSystem.out.println(\"Stack is empty\");\r\n\t\t\t\treturn -1;\r\n\t\t\t} else {\r\n\t\t\t\tint poppedElement = top.data;\r\n\t\t\t\ttop = top.next;\r\n\t\t\t\treturn poppedElement;\r\n\t\t\t}\r\n\t\t}",
"public T pop()\n\t{\n\t\tif (head == null)\n\t\t\treturn null;\n\t\t\n\t\tT ret = head.data;\n\t\thead = head.link;\n\t\tsize--;\n\t\treturn ret;\n\t}",
"public void pop() {\r\n \t Queue<Integer> temp=new LinkedList<Integer>();\r\n \t int counter=0;\r\n \t while(!stack.isEmpty()){\r\n \t temp.add((Integer) stack.poll());\r\n \t counter++;\r\n \t \r\n \t }\r\n \t while(counter>1)\r\n \t {\r\n \t \r\n \t stack.add(temp.poll());\r\n \t counter--;\r\n \t }\r\n }",
"public 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 }",
"public int pop() {\n int value = top.value;\n top = top.pre;\n top.next = null;\n size--;\n return value;\n }",
"public void pop();",
"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 }",
"private void pop() {\r\n pop( false );\r\n }",
"private static int pop(Stack<Integer> top_ref) {\n /*If stack is empty then error */\n if (top_ref.isEmpty()) {\n System.out.println(\"Stack Underflow\");\n System.exit(0);\n }\n //pop the data from the stack\n return top_ref.pop();\n }",
"public E pop () {\n\t\treturn stack.remove( stack.size()-1 );\t\t\n\t}",
"public E popTop() {\n // FILL IN\n }",
"public void popFirst() {\n this.head = this.head.next;\n this.length--;\n }",
"public Node removeMin() {\n \t\t// TODO Complete this method!\n \t\tif (indexOfLeastPriority == 2) {\n \t\t\tNode toReturn = getNode(1);\n \t\t\tsetNode(1, null);\n \t\t\treturn toReturn;\n \t\t}\n \t\tint indexOfReplacement = indexOfLeastPriority - 1;\n \t\tNode nodeOfReplacement = getNode(indexOfReplacement);\n \t\tNode toRemove = getNode(1);\n \t\tsetNode(indexOfReplacement, null);\n \t\tsetNode(1, nodeOfReplacement);\n \t\tbubbleDown(1);\n \t\t//decrement IoLP\n \t\tindexOfLeastPriority--;\n \t\treturn toRemove;\n \t}",
"public int pop() {\r\n LinkedList<Integer> queue = new LinkedList<>();\r\n int value = stack.poll();\r\n while(!stack.isEmpty()){\r\n queue.offer(value);\r\n value = stack.poll();\r\n }\r\n stack = queue;\r\n return value;\r\n }",
"public int pop() {\n\t\t\n\t\tNode t = top;\n\t\ttop = top.next;\n\t\t\n\t\treturn t.data;\n\t}",
"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() {\n\t\tif (head.data == null) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\tStackNode<T> item = new StackNode<>();\n\t\titem = head;\n\t\thead = head.next;\n\t\tthis.size--;\n\t\treturn item.data;\n\t}",
"static int pop(Stack<Integer> top_ref) {\r\n /* If stack is empty then error */\r\n if (top_ref.isEmpty()) {\r\n System.out.println(\"Stack Underflow\");\r\n System.exit(0);\r\n }\r\n\r\n // pop the data from the stack\r\n return top_ref.pop();\r\n }",
"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}",
"@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 T pop(){ \r\n \t--this.size;\r\n \treturn stack1.pop();\r\n }",
"public void popHead() {\n\t\tif(head == null) {\n\t\t\tSystem.out.println(\"Linked List is Empty\");\n\t\t} else {\n\t\t\tNode temp = head;\n\t\t\thead = head.next;\n\t\t\tSystem.out.println(\"Deleted Element = \" + temp.data);\n\t\t\ttemp = null;\n\t\t}\n\t}",
"public int remove() \r\n { \r\n int v = h[1];\r\n hPos[v] = 0; // v is no longer in heap\r\n h[N+1] = 0; // put null node into empty spot\r\n \r\n h[1] = h[N--];\r\n siftDown(1);\r\n \r\n return v;\r\n }",
"public T pop()\n\t{\n\t\t// pop from the front of the list\n\t\tif(head == null)\n\t\t\tthrow new EmptyStackException();\n\t\telse\n\t\t{\n\t\t\t// Reset the head to be the next node \n\t\t\t// in the list.\n\t\t\tT val = head.getVal();\n\t\t\thead = head.getNext();\n\t\t\treturn val;\n\t\t}\n\t}",
"public E removeFirst() {\n return pop();\n }",
"@Override\n public void removeFromFront(){\n if(getSize() < 1) {\n throw new IndexOutOfBoundException(\"Cannot remove Node from Empty List\");\n }\n Node<T> temp = this.head.getNext();\n\n this.head.setNext(temp.getNext());\n temp.setData(null);\n temp.setNext(null);\n }",
"private DLinkedNode popTail(){\n DLinkedNode res = tail.pre;\n this.removeNode(res);\n return res;\n }",
"private ListNode popTail() {\n\t ListNode tailItem = tail.prev;\n\t removeFromList(tailItem);\n\n\t return tailItem;\n\t }",
"public E pop() {\n\t\tE answer;\n\t\tif (this.top == null) {\n\t\t\tthrow new EmptyStackException( );\n\t\t}\n\t\tanswer = this.top.data;\n\t\tthis.top = this.top.link;\n\t\treturn answer;\t\n\t}",
"@Override\n public E pop() {\n E result = peek();\n storage[ top-- ] = null;\n return result;\n\n }"
]
| [
"0.7795455",
"0.76812434",
"0.7664463",
"0.7568773",
"0.7416831",
"0.73312116",
"0.7316148",
"0.7293581",
"0.72886515",
"0.728478",
"0.7219909",
"0.72177774",
"0.7185914",
"0.7132816",
"0.71162146",
"0.70953673",
"0.6996312",
"0.6974414",
"0.6972123",
"0.6964818",
"0.6955457",
"0.6928986",
"0.6903847",
"0.69037473",
"0.69014114",
"0.6888977",
"0.6850272",
"0.6842868",
"0.6817124",
"0.681281",
"0.68033487",
"0.680126",
"0.6796058",
"0.6794398",
"0.6790195",
"0.6767753",
"0.67558354",
"0.67523706",
"0.6735228",
"0.6723104",
"0.6716778",
"0.6712017",
"0.67053294",
"0.6702329",
"0.6686989",
"0.6678325",
"0.66778356",
"0.66657",
"0.66466135",
"0.6636511",
"0.66343975",
"0.66281617",
"0.662481",
"0.6623495",
"0.6614369",
"0.6612679",
"0.6606369",
"0.6601238",
"0.658461",
"0.65841275",
"0.6578439",
"0.65775704",
"0.656924",
"0.6567444",
"0.65666944",
"0.65618306",
"0.65520465",
"0.65519917",
"0.6546138",
"0.65378827",
"0.65367883",
"0.6536028",
"0.6533294",
"0.6529773",
"0.6521868",
"0.6519577",
"0.6511385",
"0.64958495",
"0.6486355",
"0.64700544",
"0.64692223",
"0.6468587",
"0.64676815",
"0.64670545",
"0.64605147",
"0.6450463",
"0.6444351",
"0.64410245",
"0.6441018",
"0.6439994",
"0.6438799",
"0.64377224",
"0.64314854",
"0.6428066",
"0.6422359",
"0.64204735",
"0.64204645",
"0.6420226",
"0.641421",
"0.64141804"
]
| 0.6508729 | 77 |
Retrieve the Object data from the top of the stack without removing the Node | @Override
public T peek() throws StackUnderflowException {
//If the Stack is empty, throw Exception
if(this.isEmpty()) throw new StackUnderflowException("The stack is empty. The operation may not be completed");
else {
//Retrieve the data from the top Node of the stack
T returnData = topNode.data;
return returnData;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Object peek() {\n\t\treturn top.data;\n\t}",
"public T peek(){\n if (this.top == null) {\n throw new EmptyStackException();\n }\n return this.top.data;\n }",
"public T peek() {\r\n\t\t\r\n\t\tif (isEmpty()) { // Throws exception if empty.\r\n\t\t\tthrow new EmptyStackException();\r\n\t\t} else {\r\n\t\t\t// Returns the data in top Link of stack.\r\n\t\t\treturn topNode.getData();\r\n\t\t} // end if else\r\n\t\t\r\n\t}",
"public Object peek() {\n if (top >= 0) {\n return stack[top];\n }\n else {\n return null;\n }\n }",
"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}",
"public synchronized Object peek()\n throws EmptyStackException\n {\n if (empty())\n {\n throw new EmptyStackException();\n }\n\n return dataList.get(0);\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 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 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 }",
"@Override\n\tpublic T pop() throws StackUnderflowException {\n\t\t//If the Stack is empty, throw Exception\n\t\tif(this.isEmpty()) throw new StackUnderflowException(\"The stack is empty. The operation may not be completed\");\n\t\t\n\t\telse {\n\t\t\t//Retrieve the Object from the top Node of the Stack \n\t\t\tT returnData = topNode.data;\n\t\t\t\n\t\t\t//Remove the top Node and promote second Node\n\t\t\ttopNode = topNode.nextNode;\n\t\t\tnodeCount--;\n\t\t\t\n\t\t\t//Return retrieved data\n\t\t\treturn returnData;\n\t\t}\n\t}",
"public T top() {\n \treturn stack.get(stack.size() - 1);\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 }",
"@Override\r\n\tpublic AnyType peek() throws StackException {\n\t\tif(isEmpty()) throw new StackException(\"Stack is full\");\r\n\t\treturn top.data;\r\n\t}",
"public GenericStack peek(){\n // checks if stack is empty\n if(top == null){\n System.out.println(\"Stack is empty.\");\n return null;\n //System.exit(0);\n }\n return top;\n }",
"public T peek() {\n return top.getData();\n }",
"private T pop(Node topNode)\n {\n if (isEmpty())\n {\n return null;\n }\n else // not empty\n {\n T result = (T) topNode.getData();\n first = topNode.getNextNode();\n return result;\n }\n }",
"public Object peek()\r\n {\n assert !this.isEmpty();\r\n return this.top.getItem();\r\n }",
"public E pop() {\n\t\tE answer;\n\t\tif (this.top == null) {\n\t\t\tthrow new EmptyStackException( );\n\t\t}\n\t\tanswer = this.top.data;\n\t\tthis.top = this.top.link;\n\t\treturn answer;\t\n\t}",
"public abstract Object top();",
"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}",
"@Override\n\tpublic T peek() throws StackEmptyException {\n\t\tif(top != null) {\n\t\t\treturn top.getData();\n\t\t}\n\t\telse {\n\t\t\tthrow new StackEmptyException(\"Peek attempted on an empty stack.\");\n\t\t}\n\t\t\n\t}",
"public Object popFront(){\n\t\tObject data = head.data;\n\t\thead = head.nextNode; \n\t\t--size; \n\t\t\n\t\treturn data; \n\t}",
"public Object pop() {\n return stack.pop();\n }",
"public E top()\n\tthrows EmptyStackException;",
"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 final Object peek()\n {\n synchronized (this.stack)\n {\n return this.stack[this.pointer - 1];\n }\n }",
"@Override\r\n\tpublic AnyType pop() throws StackException {\n\t\tif(isEmpty()) throw new StackException(\"Stack is full\");\r\n\t\tAnyType data = top.data;\r\n\t\ttop=top.next;\r\n\t\treturn data;\r\n\t}",
"public Object pop (){\n if(!head.equals(null)){\r\n Object data = head.data;\r\n head = head.next;\r\n return data;\r\n }\r\n else\r\n return null; \r\n }",
"public T peek() {\n\t\tif (head.data == null) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\treturn (T) head.data;\n\t}",
"public E peek(){\r\n Node<E> curr = top;\r\n return (E)curr.getData();\r\n \r\n }",
"public E peek() throws EmptyStackException {\n if (isEmpty()) throw new EmptyStackException();\n return top.data;\n }",
"public int pop(){\n if (top==null) throw new EmptyStackException();\n int data = top.data;\n top=top.next;\n return data;\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 Object peek() {\n if (this.collection.size() == 0)\n throw new EmptyStackException(\"Stack is empty!\");\n\n return this.collection.get(this.collection.size()-1);\n }",
"public T peek() {\n\t\tif (this.l.getHead() != null)\n\t\t\treturn this.l.getHead().getData();\n\t\telse {\n\t\t\tSystem.out.println(\"No element in stack\");\n\t\t\treturn null;\n\t\t}\n\t}",
"public int top() {\n return objects.peek();\n }",
"private synchronized BackStep peek() {\r\n\t\t\treturn stack[top];\r\n\t\t}",
"public E popTop() {\n // FILL IN\n }",
"@Override\n\tpublic T peek() {\n\n\t\tT result = stack[top-1];\n\t\treturn result;\n\t}",
"public E top()\n {\n E topVal = stack.peekFirst();\n return topVal;\n }",
"public Object peek() {\n return fStack.peek();\n }",
"Object pop();",
"public int top() {\n if (data.size() != 0) {\n return data.get(data.size() - 1);\n }\n throw new RuntimeException(\"top: 栈为空,非法操作\");\n }",
"public E top() {\n return head.prev.data;\n }",
"@Override\n public E push(final E obj) {\n // TODO\n top = new Node<>(obj, top);\n return obj;\n }",
"public Object pop();",
"public synchronized Object pop()\n throws EmptyStackException\n {\n if (empty())\n {\n throw new EmptyStackException();\n }\n Object lastItem = dataList.get(0);\n dataList.remove(0);\n return lastItem;\n }",
"public String peek() throws EmptyStackException{\n\t\t\tif(isEmpty()) {\n\t\t\t\tthrow new EmptyStackException();\n\t\t\t}\n\t\t\treturn top.getData();\n\t\t}",
"public Object removeFirst()\n {\n return ((Node)nodes.remove(0)).data;\n }",
"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}",
"@Override\r\n\tpublic T peek() throws StackEmptyException {\n\t\tif(isempty()) throw new StackEmptyException(\"Pila vacia\");\r\n\t\tnodo<T> tmp=sentinel;\r\n\t\twhile(tmp.getNext()!=null) {\r\n\t\t\t tmp=tmp.getNext();\r\n\t\t}\r\n\t\treturn tmp.getValue();\r\n\t}",
"public Object peek();",
"public Object peek();",
"@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}",
"@Override\n public E peek() {\n return storage[ top ];\n }",
"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 }",
"private final Object pop() {\r\n\t\treturn eval_stack.remove(eval_stack.size() - 1);\r\n\t}",
"public void peek(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // check if stack is empty\n if(topOfStack==-1){\n System.out.println(\"Stack is empty, can't peek\");\n return;\n }\n // if stack is not empty\n System.out.println(\"Top of the stack: \"+this.arr[this.topOfStack]);\n }",
"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 return fStack.pop();\n }",
"private List<ThroughNode> popStackStackForward() {\n List<ThroughNode> popped = nodeStackStack.peek();\n nodeStackStack.push(C.tail(popped));\n return popped;\n }",
"public final Object pop()\n {\n synchronized (this.stack)\n {\n return this.stack[--this.pointer];\n }\n }",
"public E pop() throws EmptyStackException {\n if (isEmpty()) throw new EmptyStackException();\n E topData = top.data;\n top = top.next;\n return topData;\n }",
"@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 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 abstract Object pop();",
"public T peek() throws EmptyStackException\r\n {\r\n if(isEmpty())\r\n throw new EmptyStackException();\r\n\r\n return stack[top-1];\r\n }",
"@Override\r\n\tpublic E peek() {\r\n\t\tif (isEmpty())\r\n\t\t\treturn null;\r\n\t\treturn stack[t];\r\n\t}",
"@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}",
"Object peek();",
"@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}",
"@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 int top() {\n\t\treturn stack.peek();\n \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 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 peek() {\n if(isEmpty())\n throw new EmptyStackException();\n else\n return stack[topIndex];\n }",
"public void pop(){\n \n if(top==null) System.out.println(\"stack is empty\");\n else top=top.next;\n \t\n }",
"public int top() {\r\n int value = this.pop();\r\n this.stack.offer(value);\r\n return value;\r\n }",
"@Test\r\npublic void testTop()\r\n{\n\tassertEquals(null,myStack.top());\r\n\r\n\tassertEquals(true, myStack.push(new Element(2,\"Basel\")));\t\r\n\tassertEquals(true, myStack.push(new Element(4,\"Wil\")));\t\r\n\tassertEquals(true, myStack.push(new Element(27,\"Chur\")));\r\n\tassertEquals(27,myStack.top().getId());\r\n\tassertEquals(27,myStack.pop().getId());\r\n\tassertEquals(4,myStack.top().getId());\r\n\tassertEquals(4,myStack.pop().getId());\r\n\tassertEquals(2,myStack.pop().getId());\r\n\t\r\n\t// Stack leer\r\n\tassertEquals(null,myStack.top());\r\n\r\n}",
"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}",
"E top();",
"public T pop() {\n\t\tT data = null;\n\t\tif (head == null)\n\t\t\treturn null;\n\n\t\tif (head.getNext() == null) {\n\t\t\tdata = head.getData();\n\t\t\thead = null;\n\t\t\treturn data;\n\t\t}\n\n\t\tNode<T> next = head.getNext();\n\t\tdata = head.getData();\n\t\thead = null;\n\t\thead = next;\n\t\treturn data;\n\t}",
"E peek() throws EmptyStackException;",
"public T pop() {\n\t\tif (head.data == null) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\tStackNode<T> item = new StackNode<>();\n\t\titem = head;\n\t\thead = head.next;\n\t\tthis.size--;\n\t\treturn item.data;\n\t}",
"public T peek() {\r\n\t\tT ele = top.ele;\r\n\t\treturn ele;\r\n\t}",
"void pop() {\n // -\n top = top.getNextNode();\n }",
"public E top() {\n return !isEmpty() ? head.item : null;\n }",
"public T peek() {\n\t\treturn top.value;\n\t}",
"public T top() throws StackUnderflowException;",
"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 E peek(){\n\t\treturn top.element;\n\t}",
"public Item peek() throws EmptyStackException{\n return (Item) stack.peek();\n\n }",
"public int top() {\r\n Queue<Integer> temp=new LinkedList<Integer>();\r\n int counter=0;\r\n while(!stack.isEmpty()){\r\n temp.add((Integer) stack.poll());\r\n counter++;\r\n \r\n }\r\n while(counter>1)\r\n {\r\n \r\n stack.add(temp.poll());\r\n counter--;\r\n }\r\n int topInteger=temp.poll();\r\n stack.add(topInteger);\r\n return topInteger;\r\n \r\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 final Object peek(final int depth)\n {\n synchronized (this.stack)\n {\n return this.stack[this.pointer - (depth + 1)];\n }\n }",
"public E peek(){\n return this.stack.get(stack.size() -1);\n }",
"public T getTop( );",
"@Override\n public E pop() {\n E result = peek();\n storage[ top-- ] = null;\n return result;\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 Object getFront() throws Exception {\n\t\tif(data[front]!=null)\n\t\t\n\t\t return data[front];\n\t\treturn null;\n\t}"
]
| [
"0.72554266",
"0.71911883",
"0.6985968",
"0.69701326",
"0.69662577",
"0.6929409",
"0.68606555",
"0.6828071",
"0.6813134",
"0.67744094",
"0.67475665",
"0.6747274",
"0.67391914",
"0.669867",
"0.66692346",
"0.66605884",
"0.66579515",
"0.6641609",
"0.6639903",
"0.6630333",
"0.66259456",
"0.66122526",
"0.66015005",
"0.6599219",
"0.6575055",
"0.6566875",
"0.6533797",
"0.6531201",
"0.6530706",
"0.6502431",
"0.649948",
"0.648346",
"0.6458264",
"0.643498",
"0.6425187",
"0.6422352",
"0.64132255",
"0.6410934",
"0.64040965",
"0.64005494",
"0.6395121",
"0.6378546",
"0.63705295",
"0.6365195",
"0.6364795",
"0.6362965",
"0.63459474",
"0.63414645",
"0.63399035",
"0.63389623",
"0.6331629",
"0.63246906",
"0.63246906",
"0.6320729",
"0.6317691",
"0.6317122",
"0.63027066",
"0.6293586",
"0.62895536",
"0.62866247",
"0.6271843",
"0.626618",
"0.62592286",
"0.6251871",
"0.62461764",
"0.6234147",
"0.622769",
"0.62232715",
"0.6219925",
"0.62137496",
"0.6212982",
"0.62069666",
"0.6196739",
"0.6196135",
"0.6182031",
"0.618201",
"0.61764324",
"0.61700463",
"0.61570716",
"0.6148787",
"0.61418635",
"0.61352974",
"0.6120417",
"0.6116692",
"0.6115585",
"0.6112588",
"0.61098516",
"0.6109604",
"0.6107869",
"0.61065936",
"0.6100563",
"0.60995823",
"0.6098811",
"0.60981953",
"0.60919875",
"0.6088662",
"0.608853",
"0.60648566",
"0.6063042",
"0.60599583"
]
| 0.65811247 | 24 |
Determine the current size of the Stack | @Override
public int size() {
return nodeCount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getSize() {\r\n\t\treturn stack.size();\r\n\t}",
"public int getSize(){\n return this.stack.size();\n }",
"int size() {\n return stackSize;\n }",
"public int size() {\n \treturn stack.size();\n }",
"@Override\r\n\tpublic int size() {\r\n\t\treturn stack.length;\r\n\t}",
"public int getSize(){\r\n return topOfStack;\r\n }",
"@Override\r\n\tpublic int size() {\r\n\t\treturn stack.size();\r\n\t}",
"public final int size() {\n\t\treturn opstack.size();\n\t}",
"public int getStackSize() {\n\t\treturn stackSize;\n\t}",
"int getCurrentSize();",
"public int stackCount() {\r\n\t\t return count;\r\n\t }",
"public int size() \n {\n return stack1.size() + stack2.size(); \n }",
"public int size() {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->size() unimplemented!\\n\");\n }",
"public int getSize() {\r\n\t\treturn 5; // 1 (code) + 2 (data length) + 2 (branch offset)\r\n\t}",
"public void testSize() {\n assertEquals(this.stack.size(), 10, 0.01);\n assertEquals(this.empty.size(), 0, 0.01);\n }",
"final int threadLocalSize()\r\n/* 154: */ {\r\n/* 155:182 */ return ((Stack)this.threadLocal.get()).size;\r\n/* 156: */ }",
"public int size()\r\n\t{\r\n\t\treturn currentSize;\r\n\t}",
"int getMapEntrySize() {\n if (frameType >= Const.SAME_FRAME && frameType <= Const.SAME_FRAME_MAX) {\n return 1;\n }\n if (frameType >= Const.SAME_LOCALS_1_STACK_ITEM_FRAME && frameType <= Const.SAME_LOCALS_1_STACK_ITEM_FRAME_MAX) {\n return 1 + (typesOfStackItems[0].hasIndex() ? 3 : 1);\n }\n if (frameType == Const.SAME_LOCALS_1_STACK_ITEM_FRAME_EXTENDED) {\n return 3 + (typesOfStackItems[0].hasIndex() ? 3 : 1);\n }\n if (frameType >= Const.CHOP_FRAME && frameType <= Const.CHOP_FRAME_MAX || frameType == Const.SAME_FRAME_EXTENDED) {\n return 3;\n }\n if (frameType >= Const.APPEND_FRAME && frameType <= Const.APPEND_FRAME_MAX) {\n int len = 3;\n for (final StackMapType typesOfLocal : typesOfLocals) {\n len += typesOfLocal.hasIndex() ? 3 : 1;\n }\n return len;\n }\n if (frameType != Const.FULL_FRAME) {\n throw new IllegalStateException(\"Invalid StackMap frameType: \" + frameType);\n }\n int len = 7;\n for (final StackMapType typesOfLocal : typesOfLocals) {\n len += typesOfLocal.hasIndex() ? 3 : 1;\n }\n for (final StackMapType typesOfStackItem : typesOfStackItems) {\n len += typesOfStackItem.hasIndex() ? 3 : 1;\n }\n return len;\n }",
"public int getCurrentSize() {\n return count;\n }",
"public int getLocalSize();",
"public int size() {\n\t\treturn currentSize;\n\n\t}",
"public int size()\n {\n return currentSize;\n }",
"public abstract int getStackSizeWishInKb();",
"public int size() {\n return this.top;\n }",
"int getLocalSize();",
"public int size(){\r\n return currentSize;\r\n }",
"public long getSizeOfStackReserve()\n throws IOException, EndOfStreamException\n {\n return (imageState_ == ImageStateType.PE64\n ? peFile_.readInt64(relpos(Offsets.SIZE_OF_STACK_RESERVE_64.position))\n : peFile_.readInt32(relpos(Offsets.SIZE_OF_STACK_RESERVE_32.position)));\n }",
"public void size()\r\n\t{\r\n\t\tSystem.out.println(\"size = \"+top);\r\n\t}",
"public long getSizeOfStackCommit()\n throws IOException, EndOfStreamException\n {\n return (imageState_ == ImageStateType.PE64\n ? peFile_.readInt64(relpos(Offsets.SIZE_OF_STACK_COMMIT_64.position))\n : peFile_.readInt32(relpos(Offsets.SIZE_OF_STACK_COMMIT_32.position)));\n }",
"public int maxStack();",
"int treeSize() {\n return memSize() + (this.expression == null ? 0 : getExpression().treeSize()) + (this.typeArguments == null ? 0 : this.typeArguments.listSize()) + (this.methodName == null ? 0 : getName().treeSize());\n }",
"int getLocalOnHeapSize();",
"int treeSize() {\r\n\t\treturn\r\n\t\t\tmemSize()\r\n\t\t\t+ (this.expression == null ? 0 : getExpression().treeSize())\r\n\t\t\t+ (this.newArguments.listSize())\r\n\t\t\t+ (this.constructorArguments.listSize())\r\n\t\t\t+ (this.baseClasses.listSize())\r\n\t\t\t+ (this.declarations.listSize())\r\n\t;\r\n\t}",
"public static int size_length() {\n return (8 / 8);\n }",
"@Test\n public void testSize() {\n System.out.println(\"size\");\n instance = new Stack();\n int expResult = 10;\n for (int i = 0; i < 10; i++) {\n instance.push(i*3);\n }\n assertEquals(expResult, instance.size());\n }",
"public int getSize() {\n\t\treturn this.getSizeRecursive(root);\n\t}",
"private static int calcStackSize(Code32 code) {\r\n\t\tint size = 8 + nofNonVolGPR * 4 + nofNonVolEXTRD * 8 + nofNonVolEXTRS * 4;\t// includes LR and SP for back trace\r\n\t\tsize += callParamSlotsOnStack * 4 + RegAllocator.maxLocVarStackSlots * 4 + (intfMethStorage? 12: 0);\t\r\n\t\tassert(nofNonVolEXTRD < 16);\r\n\t\tif (nofNonVolEXTRD >= 16) ErrorReporter.reporter.error(1000);\r\n\t\t// enFloatsInExc could be true, even if this is no exception method\r\n\t\t// such a case arises when this method is called from within an exception method\r\n\t\tif (enFloatsInExc) size += nonVolStartEXTR * 8 + 4;\t// save volatile FPR's and FPSCR\r\n\t\tparamOffset = 4;\r\n\t\tcode.localVarOffset = paramOffset + callParamSlotsOnStack * 4;\r\n\t\tintfMethStorageOffset = paramOffset + callParamSlotsOnStack * 4 + RegAllocator.maxLocVarStackSlots * 4;\r\n\t\treturn size;\r\n\t}",
"public int getSize(){\n //To be written by student\n return localSize;\n }",
"@Override\n\tpublic long size() {\n\t\treturn this.currentLength.get();\n\t}",
"public int size(){\n\t\treturn currentsize;\n\n\t}",
"int size() {\r\n\t\treturn top; \r\n\t}",
"public int size()\r\n/* 41: */ {\r\n/* 42:69 */ return this.pop.size();\r\n/* 43: */ }",
"public abstract int getSmallStackSizeWishInKb();",
"public int size() {\n\t\treturn heap.size();\n\t}",
"public int getSize(){\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE NUMBER OF NODES IN THE TREE AND STORE THE VALUE IN CLASS VARIABLE \"size\"\n * RETURN THE \"size\" VALUE\n *\n * HINT: THE NMBER OF NODES CAN BE UPDATED IN THE \"size\" VARIABLE EVERY TIME A NODE IS INSERTED OR DELETED FROM THE TREE.\n */\n\n return size;\n }",
"public static int getSIZE() {\n return SIZE;\n }",
"public static int GetSize() {\n\t\t\treturn gridSize.getValue();\n\t\t}",
"public static int size_count() {\n return (16 / 8);\n }",
"public int size()\r\n\t{\r\n\t\treturn heap.size();\r\n\t}",
"final int getQueueSize() {\n // suppress momentarily negative values\n return Math.max(0, sp - base);\n }",
"public int size()\r\n {\r\n return top;\r\n }",
"@Override\n public int size() {\n return currentSize;\n }",
"public Integer getSize() {\n return size;\n }",
"int getLocalOffHeapSize();",
"public static int size() {\n\t\treturn (anonymousSize() + registeredSize());\n\t}",
"public static int size_max() {\n return (8 / 8);\n }",
"public int getStructureSize() {\n if (structureSize < 0) {\n structureSize = calcStructureSize();\n }\n return structureSize;\n }",
"public Integer getTotalStackInstancesCount() {\n return this.totalStackInstancesCount;\n }",
"public int getTotalSize();",
"public int size() {\n return this.heap.size();\n }",
"@Override\n\tpublic int size() {\n\t\treturn (top + 1);\n\t}",
"public static int size_hop() {\n return (8 / 8);\n }",
"public int size() {\n\t\treturn mySize;\n\t}",
"public int size() {\n\t\treturn mySize;\n\t}",
"public int size () {\n\t\treturn size;\n\t}",
"public int size () {\n\t\treturn size;\n\t}",
"int memSize() {\n // treat Code as free\n return BASE_NODE_SIZE + 3 * 4;\n }",
"int getTotalSize();",
"public long size() {\n\t\treturn size;\n\t}",
"public int howManyUnitsUp(){\n return undoStack.size();\n }",
"public static int size_counter() {\n return (32 / 8);\n }",
"public int get_size()\r\n\t{\r\n\t\treturn this.size;\r\n\t}",
"int treeSize() {\n return\n memSize()\n + initializers.listSize()\n + updaters.listSize()\n + (optionalConditionExpression == null ? 0 : getExpression().treeSize())\n + (body == null ? 0 : getBody().treeSize()); }",
"public final int getSize() {\n return size;\n }",
"public int Size(){\n \treturn size;\n\t}",
"public int size() {\n return sz;\n }",
"public synchronized long size() {\n\t\treturn size;\n\t}",
"int getLostedSize();",
"public static int size_min() {\n return (8 / 8);\n }",
"public int size( )\r\n {\r\n int size = (int) manyNodes;// Student will replace this return statement with their own code:\r\n return size;\r\n }",
"long getOccupiedSize();",
"@Override\n\tpublic long size() {\n\t\t\n\t\treturn mySize;\n\t}",
"private int getSize() {\n\t\t\treturn size;\n\t\t}",
"public int size() {\n return doSize();\n }",
"public int getSize() {\r\n\t\treturn size;\r\n\t}",
"@Override\n public int size() {\n // Returns the number of elements stored in the heap\n return nelems;\n }",
"public int size () {\r\n return this.size;\r\n }",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public static byte getSize() {\n return SIZE;\n }"
]
| [
"0.85770494",
"0.82058084",
"0.81977886",
"0.8114341",
"0.802663",
"0.79757196",
"0.79265267",
"0.7562839",
"0.747592",
"0.73998946",
"0.71032",
"0.7036553",
"0.69832516",
"0.68833613",
"0.6874858",
"0.68464065",
"0.68446237",
"0.6836804",
"0.68211055",
"0.6792692",
"0.67658204",
"0.6764903",
"0.6756554",
"0.6736478",
"0.67342",
"0.6690623",
"0.6690148",
"0.6668323",
"0.6631131",
"0.6618407",
"0.6598927",
"0.65949595",
"0.65773046",
"0.6563655",
"0.6557409",
"0.65545666",
"0.653402",
"0.65200835",
"0.6518568",
"0.64813924",
"0.6476074",
"0.6473053",
"0.64385545",
"0.6434328",
"0.64010715",
"0.6394646",
"0.6392729",
"0.63896745",
"0.6385816",
"0.63793075",
"0.6375079",
"0.6358522",
"0.6343796",
"0.6334249",
"0.6325374",
"0.6311496",
"0.63013494",
"0.62937737",
"0.6283721",
"0.62820584",
"0.62734807",
"0.6270948",
"0.62651134",
"0.62651134",
"0.625537",
"0.625537",
"0.625466",
"0.62516",
"0.6249126",
"0.624344",
"0.62412643",
"0.623687",
"0.62338287",
"0.6229806",
"0.62291384",
"0.6221923",
"0.6221549",
"0.62169147",
"0.6201702",
"0.6201416",
"0.6197456",
"0.6196944",
"0.6195349",
"0.6194382",
"0.6186294",
"0.61858094",
"0.6182137",
"0.6175418",
"0.6175418",
"0.6175418",
"0.6175418",
"0.6175418",
"0.6175418",
"0.6175418",
"0.6175418",
"0.6175418",
"0.6175418",
"0.6175418",
"0.6175418",
"0.6175418",
"0.61688906"
]
| 0.0 | -1 |
Add an Object to the top of the Stack | @Override
public boolean push(T e) throws StackOverflowException {
//If the stack is full, throw Exception
if(this.isFull()) throw new StackOverflowException("The stack is full. The operation may not be completed");
else {
Node newNode = new Node(e, topNode);
topNode = newNode;
nodeCount++;
return true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void push(E object) {stackList.insertAtFront(object);}",
"public void push(Object obj) {\n if (top < stack.length - 1) {\n stack[++top] = obj;\n }\n else\n {\n increaseStackSize(1);\n stack[++top] = obj; \n }\n }",
"@Override\n public E push(final E obj) {\n // TODO\n top = new Node<>(obj, top);\n return obj;\n }",
"public void push( Object obj )\n {\n this.top = new Node( obj, this.top );\n \n this.count++;\n }",
"public void push(Object ob){\n \t Stack n_item=new Stack(ob);\n \tn_item.next=top;\n \ttop=n_item;\n }",
"public void push(Object obj) {\n stack.push(requireNonNull(obj));\n }",
"public void addToTop(Card card) {\n downStack.add(0, card);\n }",
"private final void push(Object ob) {\r\n\t\teval_stack.add(ob);\r\n\t}",
"public void push(Object item)\r\n {\n this.top = new Node(item, this.top);\r\n }",
"public void pushStack(int newStack){\n // creates a new object\n GenericStack temp = new GenericStack(newStack);\n temp.next = top;\n top = temp;\n }",
"public void push(T data) {\n top = new StackNode(data, top);\n }",
"public void push(E obj) {\n super.add(obj);\n }",
"public void push (E item){\n this.stack.add(item);\n }",
"@Override\r\n\tpublic void push(AnyType data) throws StackException {\n\t\ttop = new Node<AnyType>(data,top);\r\n\t}",
"void push(RtfCompoundObject state) {\r\n _top = new RtfCompoundObjectStackCell(_top, state);\r\n }",
"void push(E Obj);",
"public void push(Object object) {\n fStack.push(object);\n if (object instanceof IJavaObject) {\n disableCollection((IJavaObject) object);\n }\n }",
"public void push(T o) {\r\n\t\tadd(o);\t\r\n\t}",
"public void push(E e) {\n\t\ttop = new SNode<E>(e, top);\n\t}",
"public final void push(final Object object)\n {\n synchronized (this.stack)\n {\n try\n {\n this.stack[this.pointer++] = object;\n }\n catch (ArrayIndexOutOfBoundsException arrayIndexOutOfBoundsException)\n {\n ArrayList<Object> list = new ArrayList<Object>(Arrays.asList(this.stack));\n list.add(null);\n this.stack = list.toArray();\n this.pointer--;\n this.push(object);\n }\n }\n }",
"public void push(Item item){\n this.stack.add(item);\n\n }",
"public void pushFront(O o)\r\n {\r\n //create new VectorItem\r\n VectorItem<O> vi = new VectorItem<O> (o,null, first);\r\n \r\n first = vi;\r\n if (isEmpty()) last = vi;\r\n count++;\r\n }",
"public void push(E inValue)\n {\n stack.insertFirst(inValue);\n }",
"public void push(T value) {\n \tstack.add(value);\n }",
"public void push(T data) {\n if (this.top == null) {\n this.top = new Node<>(data);\n } else {\n Node<T> newTop = new Node<>(data);\n newTop.below = this.top;\n this.top = newTop;\n }\n }",
"@Test\n public void testPushTop(){\n ms = new MyStack();\n ms.push(2);\n assertEquals(2,ms.top());\n }",
"public void push(T value) {\n top = new Entry<>(value, top); // diamond operator (syntactic sugar)\n }",
"void push(Object elem);",
"@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(AnyType e) throws StackException;",
"private static void push(Stack<Integer> top_ref, int new_data) {\n //Push the data onto the stack\n top_ref.push(new_data);\n }",
"void push(Location loc) {\n // -\n top = new LocationStackNode(loc, top);\n }",
"static void push(Stack<Integer> top_ref, int new_data) {\r\n // Push the data onto the stack\r\n top_ref.push(new_data);\r\n }",
"public void push(ILocation item)\n {\n stack.add(top, item);\n top++;\n }",
"public void push(T item){\n Node<T> n;\n if(this.isEmpty()){\n n = new Node<>();\n n.setData(item);\n } else {\n n = new Node<>(item, this._top);\n }\n\n this._top = n;\n }",
"public void push(Item item)\n {\n top = new Node<Item>(item, top);\n N++;\n }",
"void push(Object item);",
"private Node push(T entry, Node topNode)\n {\n if (isEmpty())\n {\n return new Node(entry);\n }\n else // not empty\n {\n Node temp = new Node(entry);\n temp.setNextNode(topNode);\n return temp;\n }\n }",
"private void push( Card card ) {\r\n undoStack.add( card );\r\n }",
"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 Object push(Object o) {\n\t\tadd(o);\n\t\treturn o;\n\t}",
"public StackImpl<T> push(T ele) {\r\n\t\tNode oldTop = top;\r\n\t\ttop = new Node(ele);\r\n\t\ttop.next = oldTop;\r\n\t\tsize++;\r\n\t\t\r\n\t\treturn this;\r\n\t}",
"@Override\r\n\tpublic void push() {\n\t\tSystem.out.println(\"Push logic for Fixed Stack\");\r\n\t\t\r\n\t}",
"public void push(T value) {\n\t\tNode current = new Node(value);\n\t\tif (isEmpty())\n\t\t\ttop = current; // if empty stack\n\t\telse {\n\t\t\tcurrent.next = top;\n\t\t\ttop = current;\n\t\t}\n\t}",
"@SubL(source = \"cycl/stacks.lisp\", position = 2898) \n public static final SubLObject stack_push(SubLObject item, SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n _csetf_stack_struc_elements(stack, cons(item, stack_struc_elements(stack)));\n _csetf_stack_struc_num(stack, Numbers.add(stack_struc_num(stack), ONE_INTEGER));\n return stack;\n }",
"@Test\n public void testPushCallTop(){\n ms = new MyStack();\n ms.push(1);\n ms.top();\n assertFalse(ms.IsEmpty());\n }",
"public void push(E element){\n\t\tNode<E> temp = new Node<E>(element);\n\t\ttemp.next = top;\n\t\ttop = temp;\n\t}",
"@Test\n public void push() {\n SimpleStack stack = new DefaultSimpleStack();\n Item item = new Item();\n\n // When the item is pushed in the stack\n stack.push(item);\n\n // Then…\n assertFalse(\"The stack must be not empty\", stack.isEmpty());\n assertEquals(\"The stack constains 1 item\", 1, stack.getSize());\n assertSame(\"The pushed item is on top of the stack\", item, stack.peek());\n }",
"public void push(E o) \r\n {\r\n list.add(o);\r\n }",
"public void push(T entry)\n { \n first = push(entry, first);\n }",
"public void push(E o) {\n list.add(o);\n }",
"@Test\r\npublic void testTop()\r\n{\n\tassertEquals(null,myStack.top());\r\n\r\n\tassertEquals(true, myStack.push(new Element(2,\"Basel\")));\t\r\n\tassertEquals(true, myStack.push(new Element(4,\"Wil\")));\t\r\n\tassertEquals(true, myStack.push(new Element(27,\"Chur\")));\r\n\tassertEquals(27,myStack.top().getId());\r\n\tassertEquals(27,myStack.pop().getId());\r\n\tassertEquals(4,myStack.top().getId());\r\n\tassertEquals(4,myStack.pop().getId());\r\n\tassertEquals(2,myStack.pop().getId());\r\n\t\r\n\t// Stack leer\r\n\tassertEquals(null,myStack.top());\r\n\r\n}",
"public void push(T newEntry) {\n ensureCapacity();\n stack[topIndex + 1] = newEntry;\n topIndex++;\n }",
"public Stack() { \ntop = null; \n//A constructor to initialize top \n//The answer to (iii)\n}",
"@Override\n\tpublic void push(Object x) {\n\t\tlist.addFirst(x);\n\t}",
"public void push(int item) {\n if(isEmpty())\n top = new Node(item);\n else\n {\n Node newNode = new Node(item, top);\n top = newNode;\n }\n sz++;\n }",
"private void frontObject() {\n\t\tif(this.curr_obj != null) {\n this.curr_obj.uMoveToFront();\n\t\t}\n\t}",
"public void push(T newData) throws StackOverflowException{\r\n\t\t\r\n\t\t// check if stack is full\r\n\t\tif(top>MAX_SIZE)\r\n\t\t\tthrow new StackOverflowException();\r\n\t\t\r\n\t\tstackData.add(newData); //add new data to the stack\r\n\t\ttop++;\r\n\t\r\n\t}",
"public void addAtTop(String operator) {\n\t\tslist.addFirst(operator);\n\n\t}",
"public synchronized void push(T object) throws PoolException {\n trace(\"push: \");\n if ((getMaxSize() != INFINITE && getStack().size() >= getMaxSize()) || !isValid(object)) {\n doDestroy(object);\n } else if (getStack().contains(object)) {\n throw new PoolException(\"can't check in object more than once: \" + object);\n } else {\n getStack().add(object);\n inUse--;\n }\n }",
"@Override\n\tpublic void push(T item) {\n\t\tNode<T> currentNode = new Node<T>(item);\n\t\tif(top == null) {\n\t\t\ttop = currentNode;\n\t\t}\n\t\telse {\n\t\t\tcurrentNode.setLink(top);\n\t\t\ttop = currentNode;\n\t\t}\n\t}",
"public void push(T element) {\n if(isFull()) {\n throw new IndexOutOfBoundsException();\n }\n this.stackArray[++top] = element;\n }",
"public void push(E elem) {\n if (elem != null) {\r\n contents[++top] = elem;\r\n }\r\n\r\n // Usually better to resize after an addition rather than before for\r\n // multi-threading reasons. Although, that is not important for this class.\r\n if (top == contents.length-1) resize();\r\n }",
"public void push(E it){\r\n Node<E> curr = new Node<E>(it);\r\n curr.setNext(top);\r\n top = curr;\r\n size++;\r\n }",
"public StackPushSingle()\n {\n super(\"PushStackSingle\");\n }",
"@Override\n\tpublic void push(Item item) \n\t{\n\t\ttopMostNode = new Node(item, topMostNode); // Creates the top MostNode\n\t\tN++;\n\t}",
"void push(T item) {\n contents.addAtHead(item);\n }",
"public void push(Character data)\r\n\t{\r\n\t\tstack[top] = data;\r\n\t\ttop++;\r\n\t}",
"public void push(Object value) {\n\t\tthis.add(value);\n\t}",
"public void add(final E obj)\n {\n final Queue<E> level = getTailLevel();\n level.add(obj);\n size++;\n }",
"public Stack() {\n\t\t \n\t\ttop = null;\n\t}",
"public E push(E e) {\n Node node = new Node();\n node.data = e;\n node.next = isEmpty() ? null : top;\n top = node;\n return e;\n }",
"public void push(E item) {\n if (!isFull()) {\n this.stack[top] = item;\n top++;\n } else {\n Class<?> classType = this.queue.getClass().getComponentType();\n E[] newArray = (E[]) Array.newInstance(classType, this.stack.length*2);\n System.arraycopy(stack, 0, newArray, 0, this.stack.length);\n this.stack = newArray;\n\n this.stack[top] = item;\n top++;\n }\n }",
"public MyStack() {\n objects = new LinkedList<>();\n helper = new LinkedList<>();\n }",
"private void pushStackStackForward( ThroughNode aNode ) {\n List<ThroughNode> curStack = nodeStackStack.peek();\n List<ThroughNode> newStack = new ArrayList<>(curStack.size()+1);\n newStack.add(aNode);\n newStack.addAll(curStack);\n nodeStackStack.push(newStack);\n }",
"public void push(char item) {\n StackNode stackNode = new StackNode(item);\n\n if (top == null) { //if list is empty\n top = stackNode;\n }\n else { //list is not empty\n stackNode.next = top;\n top = stackNode;\n }\n }",
"void push(int e) {\r\n\t\tif (top==stack.length) {\r\n\t\t\tmakeNewArray();\r\n\t\t}\r\n\t\tstack[top] = e;\r\n\t\ttop++;\r\n\t}",
"void push(int a)\n\t{\n\t // Your code here\n\t top++;\n\t arr[top]=a;\n\t}",
"@Override\r\n\tpublic void push(E e) {\r\n\t\tif (size() == stack.length)\r\n\t\t\texpandArray();\r\n\t\tstack[++t] = e; // increment t before storing new item\r\n\t}",
"public void push(T item){\n if (head == null) {\n head = new Node<T>(item, null);\n } else {\n Node<T> tempNode = head;\n Node<T> newHead = new Node<T>(item, tempNode);\n head = newHead;\n }\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(Object anElement);",
"public MyStack(){\n\ta = new String[10];\n\ttop = -1;\n }",
"@Override\r\n\tpublic void push() {\n\t\tSystem.out.println(\"Push logic for Dynamic Stack\");\r\n\t}",
"public void testPush() {\n assertEquals(this.stack.size(), 10, 0.01);\n this.stack.push(10);\n assertEquals(this.stack.size(), 11, 0.01);\n assertEquals(this.stack.peek(), 10, 0.01);\n }",
"public void push(E item) {\n addFirst(item);\n }",
"public void stackPush(int element) {\r\n\t\ttop++;\r\n\t\tarray[top] = element;\r\n\t\tcount++;\r\n\t }",
"public Stack(E it){\r\n top = new Node<E>(it);\r\n size++;\r\n }",
"public <T> void push( T N ) {\r\n Node newTop; // A Node to hold the new item.\r\n newTop = new Node();\r\n newTop.item = N; // Store N in the new Node.\r\n newTop.next = top; // The new Node points to the old top.\r\n top = newTop; // The new item is now on top.\r\n }",
"public void push(int x) {\n this.stack1.add(x);\n }",
"public void push(T item)\r\n\t{\r\n\t\t if (size == Stack.length) \r\n\t\t {\r\n\t\t\t doubleSize();\r\n\t }\r\n\t\tStack[size++] = item;\r\n\t}",
"public void push(int x) {\n stack.add(x);\n }",
"public void add(HayStack stack){\n if(canMoveTo(stack.getPosition())){\n mapElement.put(stack.getPosition(), stack);\n }\n else{\n throw new IllegalArgumentException(\"UnboundedMap.add - This field is occupied\");\n }\n }",
"public void push(Employee employee){\n if(isFull()){\n Employee[] newArray = new Employee[2 * employeeStack.length];\n // System.arraycopy(srcArray, srcPos, destisnationArray, destPos, length);\n System.arraycopy(employeeStack, 0, newArray, 0, employeeStack.length);\n employeeStack = newArray;\n }\n employeeStack[top++] = employee;\n }",
"public void push_front(T element);",
"@Test\n\tpublic void addNodeAtFront() {\n\t\tSystem.out.println(\"Adding a node at the front of the list\");\n\t\tdll.push(3);\n\t\tdll.push(2);\n\t\tdll.push(1);\n\t\tdll.print();\n\t}",
"void push(T t);",
"public Stack() {\n stack = new Object[1];\n minStackSize = 1;\n top = -1;\n }",
"RtfCompoundObjectStack() {\r\n _top = null;\r\n }",
"void pushFront(T value) throws ListException;",
"public static void push(Object data) {\n list.add(data);\n }"
]
| [
"0.81647754",
"0.7739619",
"0.7575081",
"0.7547604",
"0.7481152",
"0.72831357",
"0.7267031",
"0.71299064",
"0.70524627",
"0.6956688",
"0.68948066",
"0.68810093",
"0.68724304",
"0.6861008",
"0.68561083",
"0.6752793",
"0.6744308",
"0.67262274",
"0.6725683",
"0.67176634",
"0.6715718",
"0.6715605",
"0.67069423",
"0.66676193",
"0.6553993",
"0.65017927",
"0.64873564",
"0.64746875",
"0.6465232",
"0.6460431",
"0.6454318",
"0.6452529",
"0.64428717",
"0.6441422",
"0.6431399",
"0.64310116",
"0.6416878",
"0.63737",
"0.63719696",
"0.63626623",
"0.6357939",
"0.6352597",
"0.63479614",
"0.63478893",
"0.63250846",
"0.6311817",
"0.6299854",
"0.6294581",
"0.62646824",
"0.6260978",
"0.62575936",
"0.62461185",
"0.6239643",
"0.62385976",
"0.6202824",
"0.6196291",
"0.61776084",
"0.6168447",
"0.61666566",
"0.61628944",
"0.61265945",
"0.61254305",
"0.6125413",
"0.61201733",
"0.6116264",
"0.6087456",
"0.60867757",
"0.6086597",
"0.6077224",
"0.6069467",
"0.60646266",
"0.6063554",
"0.60528743",
"0.603089",
"0.6025813",
"0.6025027",
"0.6022108",
"0.60140854",
"0.6005463",
"0.59864724",
"0.5984499",
"0.5984045",
"0.5981159",
"0.59755105",
"0.5972778",
"0.5965904",
"0.59613353",
"0.59531504",
"0.5945858",
"0.5936022",
"0.5925483",
"0.59244853",
"0.5924293",
"0.59232044",
"0.5922826",
"0.5915985",
"0.5907664",
"0.59072906",
"0.5904887",
"0.59044695",
"0.5903766"
]
| 0.0 | -1 |
Create a single String containing all data contained in the stack, starting at the bottom of the Stack. Each Object's data will be separated by the indicated delimiter String | @Override
public String toString(String delimiter) {
//Invert the stack by pushing Nodes to a new Stack
MyStack<T> invertedStack = new MyStack<T>(this.size());
while(!this.isEmpty()) {
invertedStack.push(this.pop());
}
//Create empty String for returning
String returnString = "";
//Create an iterator for traversing the Stack
Node iteratorNode = invertedStack.topNode;
//Traverse the Stack and append the individual data Strings to the return String
for(int i = 0; i < invertedStack.size() - 1; i++) {
returnString += iteratorNode.data.toString() + delimiter;
iteratorNode = iteratorNode.nextNode;
}
//Add the bottom Node's data to the returnString (prevents extra terminating delimiter)
returnString += iteratorNode.data.toString();
//Restore the original Stack so that it isn't destroyed
while(!invertedStack.isEmpty()) {
this.push(invertedStack.pop());
}
//Return the finished String to the function caller
return returnString;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic String toString(String delimiter) {\r\n\t\tString stackString = \"\";\r\n\t\tfor (T e: stack) {\r\n\t\t\tstackString = stackString + e + delimiter;\r\n\t\t}\r\n\t\treturn stackString.substring(0, stackString.length()-1);\r\n\t}",
"public String toString(int stack) {\n\t\tString stkStr = \"\";\n\t\tint start = stack * stackSize;\n\t\tfor (int i = start; i < start + stackPointer[stack]; i++) {\n\t\t\tstkStr += buffer[i] + \" -> \";\n\t\t}\n\t\tstkStr += \"END\";\n\t\treturn stkStr;\n\t}",
"@Override\r\n\tpublic String toString(String delimiter) {\r\n\t\tString queueList = \"\", prefix = \"\";\r\n\t\tArrayList<T> dataCopy = new ArrayList<T>();\r\n\t\tdataCopy = data;\r\n\r\n\t\tfor(T e: dataCopy) {\r\n\t\t\tqueueList += (prefix+e);\r\n\t\t\tprefix = delimiter;\r\n\t\t}\r\n\t\treturn queueList;\r\n\t}",
"public String toString(){\n String pileString = \"\";\n\n for(int i = 0; i < this.nbObj; i++)\n {\n pileString += i + \": \" + this.objTab[i].toString() + \"\\n\";\n }\n pileString += \"End of Stack\";\n return pileString;\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\tString stackString = \"\";\r\n\t\tfor (T e: stack) {\r\n\t\t\tstackString = stackString +e;\r\n\t\t}\r\n\t\treturn stackString;\r\n}",
"static void dump(Stack stack) {\n String temp = \" stack = \";\n for (int i = stack.size() - 1; i >= 0; i--) {\n temp = temp + ((TreeNode) (stack.elementAt(i))).data + \" \";\n }\n System.out.println(temp);\n }",
"public String toString()\r\n {\r\n String result = \"\";\r\n \r\n for (int index=0; index < top; index++) \r\n result = result + stack[index].toString() + \"\\n\";\r\n \r\n return result;\r\n }",
"@Override\n public String toString() {\n \tString retString = \"Stack[\";\n \tfor(int i = 0; i < stack.size() - 1; i++) // append elements up to the second to last onto the return string\n \t\tretString += stack.get(i) + \", \";\n \tif(stack.size() > 0)\n \t\tretString += stack.get(stack.size() - 1); // append final element with out a comma after it\n \tretString += \"]\";\n \treturn retString;\n }",
"public String toString() {\r\n\t\tStringBuilder sb = new StringBuilder(\"(\");\r\n\t\tfor (int j = t; j >= 0; j--) {\r\n\t\t\tsb.append(stack[j]);\r\n\t\t\tif (j > 0)\r\n\t\t\t\tsb.append(\", \");\r\n\t\t}\r\n\t\tsb.append(\")\");\r\n\t\treturn sb.toString();\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\tString result = \"\";\n\t\t\n\t\tfor(int i = 0; i < top; i++) {\n\t\t\tresult = result + stack[i].toString() + \"\\n\";\t//shouldn't it start at max --> 0 since its a stack\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"public String dump() {\n String result = \"\";\n Iterator stackIt = framePointers.iterator();\n int frameEnd;\n int old;\n int pos = 0;\n frameEnd = (int)stackIt.next();\n if(stackIt.hasNext()) {\n frameEnd = (int)stackIt.next();\n }\n else {\n frameEnd = -1;\n }\n while(pos < runStack.size()) {\n result += \"[\";\n if(frameEnd == -1) {\n while(pos < runStack.size()-1) {\n result += runStack.get(pos) + \",\";\n pos++;\n }\n result += runStack.get(pos)+\"] \";\n pos++;\n }\n else {\n while(pos < frameEnd-1) {\n result += runStack.get(pos) + \",\";\n pos++;\n }\n if(pos < frameEnd){\n result += runStack.get(pos);\n pos++;\n }\n result += \"]\";\n }\n if(stackIt.hasNext()) {\n frameEnd = (int)stackIt.next();\n }\n else {\n frameEnd = -1;\n }\n }\n return result;\n }",
"@Override\n\tpublic String toString() {\n\t\t//Invert the Stack by pushing Nodes to a new Stack\n\t\tMyStack<T> invertedStack = new MyStack<T>(this.size());\n\t\twhile(!this.isEmpty()) {\n\t\t\tinvertedStack.push(this.pop());\n\t\t}\n\t\t\n\t\t//Create empty String for returning\n\t\tString returnString = \"\";\n\t\t\n\t\t//Create an iterator for traversing the Stack\n\t\tNode iteratorNode = invertedStack.topNode;\n\t\t\n\t\t//Traverse the Stack and append the individual data Strings to the return String\n\t\tfor(int i = 0; i < invertedStack.size(); i++) {\n\t\t\treturnString += iteratorNode.data.toString();\n\t\t\titeratorNode = iteratorNode.nextNode;\n\t\t}\n\t\t\n\t\t//Restore the original Stack so that it isn't destroyed\n\t\twhile(!invertedStack.isEmpty()) {\n\t\t\tthis.push(invertedStack.pop());\n\t\t}\n\t\t\n\t\t//Return the finished String to the function caller\n\t\treturn returnString;\n\t}",
"public String toString() {\n\t\tStringBuilder tmpStringBuilder = new StringBuilder(\"(\");\n\t\tint frontIndex = theFrontIndex;\n\t\tfor (int j = 0; j < theSize; j++) {\n\t\t\tif (j > 0)\n\t\t\t\ttmpStringBuilder.append(\", \");\n\t\t\ttmpStringBuilder.append(theData[frontIndex]);\n\t\t\tfrontIndex = (frontIndex + 1) % theData.length;\n\t\t}\n\t\ttmpStringBuilder.append(\")\");\n\t\treturn tmpStringBuilder.toString();\n\t}",
"@Override \n\tpublic String toString() {\n\t\t\n\t\tSystem.out.println(\"New Stack\");\n\t\t\n\t\tfor(int i = 0; i < arraySize; i++) {\n\t\t\tSystem.out.println(\"stack: \" + list[i].toString());\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\");// Print and empty new line\n\t\t\n\t\treturn \"\";\n\t}",
"public String toString(){\r\n\t\tString str = \"|\";\r\n\t\tArrayNode<T> temp = beginMarker.next;\r\n\t\twhile (temp != endMarker){\r\n\t\t\tstr+= temp.toString() + \"|\";\r\n\t\t\ttemp = temp.next;\r\n\t\t}\r\n\t\treturn str;\r\n\t}",
"@Override\n public String toString() {\n StringBuilder devPlaceArt = new StringBuilder();\n StringBuilder[] devString = new StringBuilder[3];\n devString[0] = new StringBuilder();\n devString[1] = new StringBuilder();\n devString[2] = new StringBuilder();\n int i = 0;\n String space = \" \";\n String emptyCard =\n \"\"\"\n ┌─────────────────┐\n │ │\n │ │\n │ │\n │ │\n │ │\n │ │\n │ │\n │ │\n └─────────────────┘\n \"\"\";\n String emptySpace = \"\"\"\n \\s\n \\s\n \\s\n \"\"\";\n String[] temp1;\n String[] temp2;\n String[] temp3;\n\n for (ObservableList<DevelopmentCard> stacks : devStack) {\n if (stacks.isEmpty()) {\n devString[i].append(emptyCard);\n devString[i].append(emptySpace).append(emptySpace);\n } else {\n devString[i].append(stacks.get(stacks.size() - 1).toString());\n switch (stacks.size()) {\n case 1 -> devString[i].append(emptySpace).append(emptySpace);\n case 2 -> {\n int l = stacks.get(0).toString().length();\n devString[i].append(stacks.get(0).toString(), l - 58, l);\n devString[i].append(emptySpace);\n }\n case 3 -> {\n int len = stacks.get(0).toString().length();\n devString[i].append(stacks.get(0).toString(), len - 58, len);\n devString[i].append(stacks.get(1).toString(), len - 58, len);\n }\n }\n\n }\n i++;\n }\n temp1 = devString[0].toString().split(\"\\n\");\n temp2 = devString[1].toString().split(\"\\n\");\n temp3 = devString[2].toString().split(\"\\n\");\n\n for (int j = 0; j < 14; j++) {\n devPlaceArt.append(temp1[j]).append(space).append(temp2[j]).append(space).append(temp3[j]);\n devPlaceArt.append(\"\\n\");\n }\n return devPlaceArt.toString();\n }",
"public String toString(){\n String result = \"{\";\n for(LinkedList<E> list : this.data){\n for(E item : list){\n result += item.toString() + \", \";\n }\n }\n result = result.substring(0, result.length() -2);\n return result + \"}\";\n }",
"@Override\n\tpublic String toStringCursor()\n\t{\n\t\t// String we will be printing\n\t\tString returnString = \"\";\n\t\t// print everything in our left stack with loop\n\t\tfor (int i = 0; i < left.size(); ++i)\n\t\t{\n\t\t\treturnString = returnString + left.elementAt(i);\n\t\t}\n\n\t\t// Print our cursor\n\t\treturnString = returnString + \"|\";\n\n\t\t// print everything in our right stack with loop\n\t\tfor (int i = right.size() - 1; i >= 0; --i)\n\t\t{\n\t\t\treturnString = returnString + right.elementAt(i);\n\t\t}\n\n\t\t// Return our string to print\n\t\treturn returnString;\n\t}",
"public String getDataAsString()\n\t{\n\t\tString listAsString = \"\";\n\t\t\n\t\tfor (int i = 0; i < list.length; i++)\n\t\t{\n\t\t\tlistAsString += list[i] + \" \";\n\t\t}\n\t\t\n\t\tlistAsString += \"\\nFront: \" + front + \"\\nRear: \" +\n\t\t\t\trear + \"\\nEntries: \" + counter;\n\t\t\n\t\treturn listAsString;\n\t}",
"public void printStack(){\n\t\tswitch (type) {\n\t\tcase 's' : {\n\t\t\tSystem.out.print(\"[XX]\");\n\t\t}\n\t\tbreak;\n\t\tcase 'w' : {\n\t\t\tSystem.out.print(this.peek().toString());\n\t\t}\n\t\tbreak;\n\t\tcase 't' : {\n\t\t\tStack<Card> temp = new Stack<Card>();\n\t\t\tCard currentCard = null;\n\t\t\tString fullStack = \"\";\n\t\t\twhile(!this.isEmpty()){\n\t\t\t\ttemp.push(this.pop());\n\t\t\t}\n\t\t\twhile(!temp.isEmpty()){\n\t\t\t\tcurrentCard = temp.pop();\n\t\t\t\tfullStack += currentCard.isFaceUp() ? currentCard.toString() : \"[XX]\";\n\t\t\t\tthis.push(currentCard);\n\t\t\t}\n\t\t\tSystem.out.println(fullStack);\n\t\t}\n\t\tbreak;\n\t\tcase 'f' : {\n\t\t\tSystem.out.print(this.peek().toString());\n\t\t}\n\t\tbreak;\n\t\t}\n\t}",
"@Override\r\n public String toString() {\n String processString = \"\";\r\n if (isEmpty()) {\r\n return \" \";\r\n }\r\n\r\n for (int i = 0; i < data.length; i++) {\r\n if (data[i] == null) {\r\n return processString;\r\n }\r\n processString += data[i].toString() + \" \";\r\n\r\n }\r\n return processString;\r\n\r\n }",
"public String getStack();",
"public String toString() {\n // Introducing StringBuilder\n StringBuilder sb = new StringBuilder();\n sb.append(String.format(\"\\nThis stack has %d elements and %d of them are used\",\n this.foundation.length, this.usage));\n sb.append(\"\\n\\t[ \");\n for (int i = this.foundation.length - this.usage; i < this.foundation.length; i++) {\n sb.append(String.format(\"%s \", foundation[i]));\n }\n sb.append(\"]\");\n return sb.toString();\n }",
"public String toString()\n\t{\n\t\tString answer;\n\t\t//if the size not 0, indent 9 spaces to make room for the \"(null)<--\" that backwards will print\n\t\tif (size() != 0)\n\t\t\tanswer = \" \";\n\t\telse\n\t\t\tanswer = \"\";\n\n\t\tDLLNode cursor = head;\n\t\twhile (cursor != null)\n\t\t{\n\t\t\tanswer = answer + cursor.data + \"-->\";\n\t\t\tcursor = cursor.next;\n\t\t}\n\n\t\tanswer = answer + \"(null)\";\n\t\treturn answer;\n\t}",
"public String toString () {\n return \"(\" + this.head() +\n this.tail().continueString();\n }",
"public String toString(){\r\n\t\tString output = \"\";\r\n\t\tfor(String s: this.data){\r\n\t\t\toutput = output + s + \"\\t\";\r\n\t\t}\r\n\r\n\t\treturn output;\r\n\t}",
"public @Override String toString() {\n String res= \"[\";\n // invariant: res = \"[s0, s1, .., sk\" where sk is the object before node n\n for (Node n = sentinel.succ; n != sentinel; n= n.succ) {\n if (n != sentinel.succ)\n res= res + \", \";\n res= res + n.data;\n }\n return res + \"]\";\n }",
"public String toString() { \n\t\t String str=\"\";\n\t\t for(int i=0; i< size; i++)\n\t\t\t str += data[i]+\" \";\n\t\t return str;\n\t }",
"@Override\n\tpublic String toString()\n\t{\n\n\t\tStringBuffer sb = new StringBuffer(\"top->\");\n\t\tif (!isEmpty())\n\t\t{\n for(int i = getSize() - 1; i >= 0; i--)\n {\n if(i == getSize() - 1)\n {\n sb.append(list.get(i));\n }\n else \n {\n sb.append( \"->\" + list.get(i));\n }\n }\n //System.out.println(sb.toString());\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public static String join(CharSequence delimiter, Object[] tokens) {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tboolean firstTime = true;\r\n\t\tfor (Object token : tokens) {\r\n\t\t\tif (firstTime) {\r\n\t\t\t\tfirstTime = false;\r\n\t\t\t} else {\r\n\t\t\t\tsb.append(delimiter);\r\n\t\t\t}\r\n\t\t\tsb.append(token);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"private String stackObjToString(Object o)\n {\n if (o instanceof byte[])\n return BtcUtil.hexOut((byte[]) o);\n else\n return o.toString();\n }",
"public void displayStack(){\n if(!empty()){\n System.out.println(\"\\n---Stack---\");\n \n int i= this.maxLength-1;\n ParsedToken[] ptCopy = new ParsedToken[this.maxLength];\n \n /* Display and copy depop values */\n while(!empty()){\n ptCopy[i] = pop();\n System.out.println(\"| \"+ptCopy[i]+\" |\");\n i--;\n }\n /* Recopy values into the original stack */\n while(i<this.maxLength-1){\n push(ptCopy[++i]);\n }\n }else{\n System.out.println(\"\\nEmpty Stack : Nothing to display\\n\");\n }\n }",
"public String getDumpString() {\n return \"[clazz = \" + clazz + \" , name = \" + name + \" , elementType = \" + elementType + \" , primitivePointerType = \" + primitivePointerType + \"]\";\n }",
"public String peek() throws EmptyStackException{\n\t\t\tif(isEmpty()) {\n\t\t\t\tthrow new EmptyStackException();\n\t\t\t}\n\t\t\treturn top.getData();\n\t\t}",
"public String toString()\n\t{\n\t\tString stringList = \"\";\n\t\tNode temp = front;\n\t\twhile(temp != null)\n\t\t{\n\t\t\tstringList += String.valueOf(temp.data) + \" \"; //places the data from the Node into the empty string\n\t\t\ttemp = temp.next; //moevs onto the next Node in the list\n\t\t}\n\t\treturn stringList;\n\t}",
"private static String getToString(Object[] arr, String delim) {\n\t\tif (arr.length == 0) return \"\"; \n\t\t\n\t\tStringBuilder sb = new StringBuilder(\"[\");\n\t\t\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif (i > 0) sb.append(delim);\n\t\t\tsb.append(arr[i] == null ? \"\" : arr[i]);\n\t\t}\n\n\t\tsb.append(\"]\");\n\t\treturn sb.toString();\n\t}",
"@Override\n public String toString() {\n String result = \"\";\n\n for (int position = 0; position < 64; position++) {\n if (position > 0) {\n if (position % 16 == 0) { // New level\n result += '|';\n } else if (position % 4 == 0) {\n result += ' '; // New row\n }\n }\n result += get(position);\n }\n return result;\n }",
"public String toString(){\r\n\t DoubleLinkedSeq clone = new DoubleLinkedSeq(); \r\n\t clone = this.clone();\r\n\t String elements = \"{\";\r\n\t for(clone.cursor = head; clone.cursor != null; clone.cursor = clone.cursor.getLink()){\r\n\t\t elements = elements + (clone.cursor.getData() + \",\"); \r\n\t }\r\n\t \r\n\t elements = elements + \")\";\r\n\t \r\n\t return elements; \r\n }",
"public String toString()\r\n {\r\n String s = new String();\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n s += vi.getObject().toString()+ Static.defaultSeparator;\r\n vi = vi.getNext();\r\n }\r\n \r\n return s;\r\n }",
"public String toString(){\n String result = \"\";\n ListNode current = front;\n while(current != null){\n result = result + current.toString() + \"\\n\";\n current = current.getNext();\n }\n return result;\n }",
"public String toString()\n\t{\n\t\tString queueAsString = \"\";\n\t\tint index = front - 1;\n\t\tfor (int i = 0; i < counter; i++)\n\t\t{\n\t\t\tindex = next(index);\n\t\t\tqueueAsString += list[index] + \" \";\n\t\t}\n\t\treturn queueAsString;\n\t}",
"public String toString(){\r\n\t\tString theString= \"\";\r\n\t\t\r\n\t\t//loop through and add values to the string\r\n\t\tfor (int i = 0; i < this.data.length; i++)\r\n\t\t{\r\n\t\t\ttheString = theString + this.data[i];\r\n\t\t\tif (i != this.data.length - 1)\r\n\t\t\t{\r\n\t\t\t\ttheString = theString + \", \";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn \"[\" + theString + \"]\";\r\n\t}",
"@Override\n public String toString() {\n String result = \"\";\n byte[] data = buffer.data;\n for (int i = 0; i < (buffer.end - buffer.start) / bytes; i++) {\n if (i > 0) result += \", \";\n result += get(i).toString();\n }\n return type + \"[\" + result + \"]\";\n }",
"public String toString() {\r\n\t\tString output = \"\";\r\n\t\tfor (int n = 0; n < parts.size(); n++){\r\n\t\t\toutput = output + parts.get(n) + \", \";\r\n\t\t}\r\n\t\t\r\n\t\tint toAdd = 5 - parts.size(); \r\n\t\t\t\r\n\t\tfor( int i = 0; i < toAdd; i++ ) {\r\n \t\r\n\t\toutput = output + \"[ ], \";\r\n \r\n\t\t} \r\n\t\t\r\n\t\treturn output;\r\n\t\t\t\r\n\t}",
"public String toDebugString() {\n\t\tString text = \"[ \";\n\t\tfor (int i = 0; i < data.length; i++)\n\t\t\ttext += data[i] + (i < data.length - 1 ? \", \" : \" ]\");\n\t\treturn text;\n\t}",
"String view(Stack<Character> flip){\r\n String output = \"\";\r\n while(!flip.empty())\r\n {\r\n if(flip.peek() =='|'){\r\n flip.pop();\r\n }\r\n else{\r\n char s = flip.pop();\r\n output += s;\r\n }\r\n }\r\n System.out.println(output);\r\n return output;\r\n }",
"public String prepareData() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (Ship s: ships) {\n\t\t\tsb.append(s.prepareData());\n\t\t\tsb.append(System.lineSeparator());\n\t\t}\n\t\tsb.append(DELIMITER);\n\t\treturn sb.toString();\n\t}",
"public String printCharStack() {\r\n\t\t String elements = \"<\";\r\n\t\t \r\n\t\tfor(int i = 0; i < count; i++) {\r\n\t\t\telements += \" \" + (char)array[i];\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\telements += \">\";\r\n\t\t\treturn elements;\r\n\t }",
"@Override\n public String toString() {\n StringBuilder outString = new StringBuilder();\n int currentTreeIndex = this.indexCorrespondingToTheFirstElement;\n if (treeSize > 0) {\n while (currentTreeIndex != -1) {\n Node<T> currentNode = getHelper(currentTreeIndex);\n outString.append(currentNode.data).append(\", \");\n currentTreeIndex = currentNode.nextIndex;\n }\n }\n\n if (outString.length() != 0) {\n outString.deleteCharAt(outString.length() - 1); // \", \"\n outString.deleteCharAt(outString.length() - 1);\n }\n return \"[\" + outString.toString() + \"]\";\n }",
"public static String toString(Deque<?> deque, String sep) {\n\t\treturn deque.stream().map(o -> o.toString()).collect(Collectors.joining(sep));\n\t}",
"public String toString() {\r\n StringBuilder sb = new StringBuilder(\"(\");\r\n Node<E> walk = head;\r\n while (walk != null) {\r\n sb.append(walk.getItem());\r\n if (walk != tail)\r\n sb.append(\", \");\r\n walk = walk.getNext();\r\n }\r\n sb.append(\")\");\r\n return sb.toString();\r\n }",
"public String toString()\n\t{\n\t\tNode current = head.getNext();\n\t\tString output = \"\";\n\t\t\n\t\twhile(current != null){\n\t\t\toutput += \"[\" + current.getData().toString() + \"]\\n\";\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t\t\n\t\treturn output;\n\t}",
"@Test\n public void toStringTest() {\n assertEquals(\"1 2 3 4\", stack.toString());\n }",
"public String toString()\n {\n String s = \"[\";\n\n ListNode temp = first; // start from the first node\n while (temp != null)\n {\n s += temp.getValue(); // append the data\n temp = temp.getNext(); // go to next node\n if (temp != null)\n s += \", \";\n }\n s += \"]\";\n return s;\n }",
"public String toString() {\n String toReturn = \"\";\n\n Node walker = this.first;\n while(walker != null) {\n toReturn += walker.data + \"\\t\";\n walker = walker.next;\n }\n\n return toReturn;\n }",
"public String toString() {\n\t\tString str = \"\";\n\t\tfor (int i = 1 ; i < size - 1; i++ ){\n\t\t\tstr = str + getBlock(i);\n\t\t}\n\t\treturn str;\n\t}",
"@Override\r\n\tpublic synchronized String toString(){\r\n\r\n\t\tString result = String.valueOf(numberOfSplittedGroups);\r\n\r\n\t\tif(!hierarchy.isEmpty()){\r\n\t\t\tresult = result + Constants.A3_SEPARATOR + hierarchy.get(0);\r\n\t\t\tfor(int i = 1; i < hierarchy.size(); i ++){\r\n\t\t\t\tresult = result + Constants.A3_SEPARATOR + hierarchy.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public void testToString() {\n assertEquals(this.empty.toString(), \"[]\");\n assertEquals(this.stack.toString(), \"[9, 8, 7, 6, 5, 4, 3, 2, 1, 0]\");\n }",
"public String toString() {\n\n format();\n \n if (string == null) {\n switch (statementList.size()) {\n case 0:\n string = \"\";\n break;\n case 1:\n string = statementList.get(0);\n break;\n default:\n int len = statementList.size() * 2;\n for (int i = 0; i < statementList.size(); i++) {\n len += statementList.get(i).length();\n }\n StringBuilder sb = new StringBuilder(len);\n sb.append(statementList.get(0));\n for (int i = 1; i < statementList.size(); i++) {\n sb.append(\"; \");\n sb.append(statementList.get(i));\n }\n string = sb.toString();\n }\n }\n \n return string;\n }",
"public String toString()\n {\n return \"(\" + start + \"->\"+ (start+size-1) + \")\";\n }",
"public String toString(){\n String str = \"\";\n for(int i = level; i>0; i--){\n str+=\"\\t\";\n }\n str += getClass().toString();\n if(noOfChildren != 0){\n str+=\" containing\\n\";\n for (int i = 0; i<this.noOfChildren; i++)\n str += getChild(i).toString();\n }\n else{\n str+=\"\\n\";\n }\n return str;\n }",
"public String toString() {\n\t\t// Anmerkung: StringBuffer wäre die bessere Lösung.\n\t\tString text = \"\";\n\t\tListNode<E> p = head;\n\t\twhile (p != null) {\n\t\t\ttext += p.toString() + \" \";\n\t\t\tp = p.getTail();\n\t\t}\n\t\treturn \"( \" + text + \") \";\n\t}",
"public String toString() {\n\t\tif (front == null) {\n\t\t\treturn \"[]\";\n\t\t} else {\n\t\t\tString result = \"[\" + front.data;\n\t\t\tListNode current = front.next;\n\t\t\twhile (current != null) {\n\t\t\t\tresult += \", \" + current.data;\n\t\t\t\tcurrent = current.next;\n\t\t\t}\n\t\t\tresult += \"]\";\n\t\t\treturn result;\n\t\t}\n\t}",
"private static void StackofStrings (Scanner in, PrintStream out) {\n StackofStrings stack = new StackofStrings();\n while(in.hasNext()){\n String s = in.next();\n if ((s.equals(\"-\"))){\n out.print(stack.pop()+ \" \");\n }else{\n stack.push(s);\n }\n }\n}",
"@Override\r\n\tpublic String toString() {\n\t\tString header = this.header.toString();\r\n\t\tString preHeader = \"\";\r\n\t\tif (this.preHeader != null)\r\n\t\t\tpreHeader = this.preHeader.toString();\r\n\t\tString backjump = this.backJump.toString();\r\n\t\tString loopStmts = loopStatements.toString();\r\n\r\n\t\tString loop = \"[\\n header = \" + header + \"\\n preHeader = \" + preHeader\r\n\t\t\t\t+ \"\\n backjump = \" + backjump + \"\\n loopStatements = \"\r\n\t\t\t\t+ loopStmts + \" \\n]\";\r\n\t\t// return super.toString();\r\n\t\treturn loop;\r\n\t}",
"public List<String> stringFormat(int depth) {\n\t\tList<String> out = new ArrayList<String>();\n\t\tString prepend = new String(new char[depth])\n\t\t\t\t.replace('\\0', '\\t');\n\n\t\tout.add(prepend + \"{\\n\");\n\t\tout.add(prepend + \"\\tid: \" + id + \",\\n\");\n\t\tout.add(prepend + \"\\tuname: \" + uname + \",\\n\");\n\t\tout.add(prepend + \"\\tteam: \" + t + \",\\n\");\n\t\tout.add(prepend + \"\\tcards: \" + numCards + \",\\n\");\n\t\tout.add(prepend + \"}\");\n\n\t\treturn out;\n\t}",
"public String print() {\n Deque thead = head;\n if (size == 0) {\n return \"[]\";\n }\n String str = \"[\";\n while (thead.next != null) {\n str += thead.data + \", \";\n thead = thead.next;\n }\n str += thead.data + \"]\";\n return str;\n }",
"@Override\n public String toString() {\n // System.out.print(\"This doubly-linked list contains : \");\n StringBuilder sb = new StringBuilder();\n\n if(header == trailer) {\n sb.append(\"null\");\n }\n else {\n Node<Element> pointer = header.getNextNode();\n while (pointer != trailer) {\n sb.append(pointer.getContent()).append(\", \");\n pointer = pointer.getNextNode();\n }\n }\n return sb.toString();\n }",
"private String getObjectString()\n {\n String returnString = \"Objects:\\n\\t\";\n Set<String> keys = items.keySet();\n if(items.size() <= 0) {\n returnString += \"[None]\";\n return returnString;\n }\n for(String item : keys) {\n returnString += \" [\" + item + \"]\";\n }\n return returnString;\n }",
"@SuppressWarnings(\"rawtypes\")\r\n\tpublic static String join(CharSequence delimiter, Iterable tokens) {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tboolean firstTime = true;\r\n\t\tfor (Object token : tokens) {\r\n\t\t\tif (firstTime) {\r\n\t\t\t\tfirstTime = false;\r\n\t\t\t} else {\r\n\t\t\t\tsb.append(delimiter);\r\n\t\t\t}\r\n\t\t\tsb.append(token);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"public String toString(){\n //KEY --------\n // WHITE WALL = WW\n // WHITE ROAD = WR\n // WHITE CAPSTONE = WC\n // BLACK WALL = BW\n // BLACK ROAD = BR\n // BLACK CAPSTONE = BC\n // EMPTY = \"blank\"\n\n StringBuilder builder = new StringBuilder();\n\n /*TOP ROW*/ builder.append(\"\\t\"); for(int i = 0; i < SIZE; i++){ builder.append(i + \"\\t\");} builder.append(\"\\n\\n\");\n /*REST OF THE ROWS*/ \n for(int x = 0; x < SIZE; x++){\n builder.append(x + \"\\t\");\n for(int y = 0; y < SIZE; y++){\n TakStack current = stacks[y][x]; \n if(!current.isEmpty()){\n builder.append(getPieceString(current.top()));\n }\n builder.append(\"\\t\");\n }\n builder.append(\"\\n\\n\");\n }\n\n\n //BUILDER RETURN\n return builder.toString();\n }",
"@Override\n public String toString() {\n String r = \"\" + value[0];\n for (int i = 1; i < DIM; i++) {\n r += DELIMITER + value[i];\n }\n \n r += DELIMITER + count;\n\n return r;\n }",
"public String toString2()\n {\n\t String queueToString = \"\";\n\t int i =1;\n\t for(Generics object: AL)\n\t {\n\t\t queueToString += i + \". \";\n\t\t //queueToString+= StateStatistics.KeyType.name;\n\t\t queueToString += object.getName() + \": \" + object.toString();\n\t\t queueToString += \"\\n \";\n\t\t i++;\n\t }\n\t \n\t //queueToString += \"]\";\n\t \n\t return queueToString;\n }",
"public String toString()\n\t{\n\t\tchar [] ToStringChar = new char[length];\n recursiveToString(0, ToStringChar, firstC);\n String contents = new String(ToStringChar);\n return contents;\n\t\t\n\t}",
"public String toString() {\r\n\t\t\r\n\t\tif(this.counter <= 20) {\r\n\t\t\tcounter++;\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tString fromLink = null, fromData = null;\r\n\t\t\r\n\t\tif (this.link != null) {\r\n\t\t\tfromLink = link.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif(this.data != null) {\r\n\t\t\tfromData = data.toString();\r\n\t\t}\r\n\t\t\r\n\t\tString concat = String.format(\"\\nData: %s\\n\" + \"Link: %s\", fromData, fromLink);\r\n\t\treturn concat;\r\n\t}",
"public String toString()\r\n {\n \tString result = \"\";\r\n \tNode n = this.top;\r\n \twhile (n != null)\r\n \t{\r\n \t\tresult = result + \" \" + n.getItem().toString();\r\n \t\tn = n.getNext();\r\n \t}\r\n \treturn result.trim();\r\n }",
"public String toString(boolean isForward, String separator) {\n StringBuilder str = new StringBuilder();\n toString(root, str, separator, isForward);\n return str.toString();\n }",
"public String toString() {\n String result = \"\";\n // for each item in stock\n for (int i = 0; i < this._noOfItems; i++) {\n // add \\n (line down) for prev. item if it's not the first item\n if (i > 0)\n result += \"\\n\";\n // add it's toString result to the final result string\n result += this._stock[i].toString();\n }\n return result;\n }",
"public String toString()\n {\n\t return \"[\" + data + \"]\";\n }",
"public String toString() {\n return \"\" + data;\n }",
"public String toString()\n { \t\n \t//initialize String variable to return \n \tString listString = \"\";\n \t//create local node variable to update in while loop\n LinkedListNode<T> localNode = getFirstNode();\n \n //concatenate String of all nodes in list\n while(localNode != null)\n {\n listString += localNode.toString();\n localNode = localNode.getNext();\n }\n \n //return the string to the method\n return listString;\n }",
"public String peek() throws StringStackException {\n \n try {\n if(!isEmpty()) {\n return top.item;\n } else {\n throw new StringStackException(\"Method 'peek': Empty Stack.\");\n }\n } catch(StringStackException ex){\n throw ex;\n }\n\n }",
"public String printBucket() {\n\t\t\tString result = this.toString() + \" \";\n\t\t\tif (this.getNext() != null)\n\t\t\t\tresult += this.getNext().printBucket();\n\t\t\treturn result;\n\t\t}",
"public String toString() {\n\t\tString str = \"\";\n\t\tfor(int i = 0;i < data.length;i++) {\n\t\t\tstr = str + data[i];\n\t\t}\n\t\tif(overflow) {\n\t\t\treturn \"Overflow\";\n\t\t}else {\n\t\t\treturn str;\n\t\t}\n\t}",
"@Override\n public String toString() {\n return stringBuilder.toString() + OBJECT_SUFFIX;\n }",
"public String toString() {\n\t\tStringBuilder bld = new StringBuilder();\n\t\tFormatter fmt = new Formatter(bld);\n\t\tfor (int yPos = 0; yPos < getSlotCount(); yPos++) {\n\t\t\tint xBeanPos = getInFlightBeanXPos(yPos);\n\t\t\tfor (int xPos = 0; xPos <= yPos; xPos++) {\n\t\t\t\tint spacing = (xPos == 0) ? getIndent(yPos) : (xspacing + 1);\n\t\t\t\tString format = \"%\" + spacing + \"d\";\n\t\t\t\tif (xPos == xBeanPos) {\n\t\t\t\t\tfmt.format(format, 1);\n\t\t\t\t} else {\n\t\t\t\t\tfmt.format(format, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfmt.format(\"%n\");\n\t\t}\n\t\tfmt.close();\n\t\treturn bld.toString() + getSlotString();\n\t}",
"@Override\r\n public String toString() {\r\n String str = \"[\";\r\n if (!isEmpty()) {\r\n Node<T> current = head.next();\r\n while (current != tail) {\r\n str = str + current.getData();\r\n if (current.next != tail) {\r\n str = str + \", \";\r\n }\r\n current = current.next();\r\n }\r\n }\r\n return str + \"]\";\r\n }",
"public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}",
"@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"ID:\" + this.id + \"; Data:\\n\");\n\n for (int i = 1; i <= this.data.length; i++) {\n T t = data[i - 1];\n builder.append(t.toString() + \" \");\n if (i % 28 == 0) {\n builder.append(\"\\n\");\n }\n }\n return builder.toString();\n }",
"public String getData() {\n \n String str = new String();\n int aux;\n\n for(int i = 0; i < this.buffer.size(); i++) {\n for(int k = 0; k < this.buffer.get(i).size(); k++) {\n aux = this.buffer.get(i).get(k);\n str = str + Character.toString((char)aux);\n }\n str = str + \"\\n\";\n }\n return str;\n }",
"public String getString() {\t\t\t\n\t\tString result = \"\";\n\t\tfor (int row = 0; row < this.size; row ++) {\n\t\t\tString line = \"\";\n\t\t\tfor (int column = 0; column < this.size; column++) {\n\t\t\t\tline += printToken(this.getTokenAt(new Vector(column, row))) + \" \";\n\t\t\t}\n\t\t\t\n\t\t\tresult += line + System.lineSeparator();\n\t\t}\n\t\treturn result;\n\t}",
"public String toString() {\n\treturn createString(data);\n }",
"public String toString() {\n\t\tString result = \"\";\n\t\tNode current = head;\n\n\t\twhile(current != null) {\n\t\t\tif (current.getCar() instanceof GasCar) {\n\t\t\t\tresult += ((GasCar)current.getCar()).getData() + \"\\n\";\n\t\t\t} else if (current.getCar() instanceof GreenCar) {\n\t\t\t\tresult += ((GreenCar)current.getCar()).getData() + \"\\n\";\n\t\t\t}\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t\treturn result;\n\t}",
"public String toString()\n\t{\n\t\t//string to print out\n\t\tString printOut = \"\";\n\t\t//set the current node to head\n\t\tLinkedListNode<T> currentNode = head;\n\t\t//go through the list\n\t\twhile (currentNode.getNext() != null){\n\t\t\t//add to the string\n\t\t\tprintOut += currentNode.getData().toString() + \" \";\n\t\t\t//set the current node to next node\n\t\t\tcurrentNode = currentNode.getNext(); \n\t\t}\n\t\tprintOut += getLastNode().getData().toString();\n\t\treturn printOut;\n\t}",
"public String toString() {\n if (head == null && tail == null) {\n return null;\n } else if (head.getNext() == null) {\n return head.getData();\n } else {\n while (head.getNext() != null) {\n head = head.getNext();\n System.out.println(head.getData());\n }\n return head.getData();\n }\n\n\n }",
"public String toString() {\n\t\tString dis =\"\";\n\t\tfor(int i=0;i<fields.size();i++) {\n\t\t\tif(i==fields.size()-1) {\n\t\t\t\tdis+=fields.toString();\n\t\t\t\t}\n\t\t\telse {\n\t\t\tdis+=fields.toString()+\" \";\n\t\t\t}\n\t\t}\t\n\t\treturn dis;\n\t}",
"public String nextTo(char delimiter) throws JSONException {\n StringBuilder sb = new StringBuilder();\n for(;;) {\n char c = this.next();\n if(c == delimiter || c == 0 || c == '\\n' || c == '\\r') {\n if(c != 0) {\n this.back();\n }\n return sb.toString().trim();\n }\n sb.append(c);\n }\n }",
"@Override\n public String toString(){\n Node<E> headPtr = headNode;\n StringBuffer buff= new StringBuffer();\n buff.append(\"[\");\n while(headPtr!=null){\n buff.append(headPtr.data);\n headPtr=headPtr.next;\n if(headPtr!=null)\n buff.append(\",\");\n }\n buff.append(\"]\");\n return buff.toString();\n }",
"public String flatten() {\n\t\tString data;\n\t\t// We use simple name, because the fleshed out version of this class is\n\t\t// in the default package for data types: de.nec.nle.siafu.data\n\t\tString fullClassName = this.getClass().getName();\n\t\tString className = fullClassName.substring(fullClassName\n\t\t\t\t.lastIndexOf(\".\") + 1);\n\t\tdata = className + \":\";\n\t\tdata += b;\n\t\treturn data;\n\t}",
"public String getBack(){\n String str = \"\";\n if( !this.isEmpty() ){\n MyDoubleNode<Type> aux = this.end;\n while(aux != null){\n str += aux.value.toString() + \" \";\n aux = aux.prev;\n }\n }\n return str;\n }"
]
| [
"0.8170041",
"0.68630326",
"0.6626574",
"0.65794015",
"0.640544",
"0.6354598",
"0.6331539",
"0.6204084",
"0.61999255",
"0.6168101",
"0.6033855",
"0.6027672",
"0.5999297",
"0.59287447",
"0.5912905",
"0.5789172",
"0.57787263",
"0.57247907",
"0.56233186",
"0.557288",
"0.5547837",
"0.55380815",
"0.5496651",
"0.5489642",
"0.5487125",
"0.5486081",
"0.5481999",
"0.5476966",
"0.54393274",
"0.54266244",
"0.54105455",
"0.5387099",
"0.53652656",
"0.53651834",
"0.53557014",
"0.5353528",
"0.53523785",
"0.5349667",
"0.530756",
"0.52978134",
"0.5289451",
"0.52851635",
"0.52730995",
"0.527258",
"0.52720594",
"0.5270139",
"0.5267701",
"0.52641654",
"0.5258854",
"0.5238123",
"0.522298",
"0.5221094",
"0.52159965",
"0.52156353",
"0.52141464",
"0.52119684",
"0.5208235",
"0.5201462",
"0.5199391",
"0.51937",
"0.51905656",
"0.5189621",
"0.517509",
"0.51562774",
"0.5144938",
"0.51332974",
"0.51309735",
"0.5125413",
"0.5124778",
"0.5122933",
"0.51153296",
"0.5110521",
"0.5109988",
"0.5095109",
"0.50950795",
"0.5087366",
"0.50860626",
"0.508461",
"0.5082916",
"0.50801414",
"0.50729835",
"0.5065533",
"0.5065416",
"0.5057249",
"0.50533104",
"0.5052949",
"0.50467426",
"0.5043033",
"0.503856",
"0.5036244",
"0.50323313",
"0.5021075",
"0.50206226",
"0.5016089",
"0.5013735",
"0.5010776",
"0.5005858",
"0.49925777",
"0.49889475",
"0.49817774"
]
| 0.7419491 | 1 |
Create a single String containing all data contained in the stack, starting with the bottom Node | @Override
public String toString() {
//Invert the Stack by pushing Nodes to a new Stack
MyStack<T> invertedStack = new MyStack<T>(this.size());
while(!this.isEmpty()) {
invertedStack.push(this.pop());
}
//Create empty String for returning
String returnString = "";
//Create an iterator for traversing the Stack
Node iteratorNode = invertedStack.topNode;
//Traverse the Stack and append the individual data Strings to the return String
for(int i = 0; i < invertedStack.size(); i++) {
returnString += iteratorNode.data.toString();
iteratorNode = iteratorNode.nextNode;
}
//Restore the original Stack so that it isn't destroyed
while(!invertedStack.isEmpty()) {
this.push(invertedStack.pop());
}
//Return the finished String to the function caller
return returnString;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString()\r\n {\r\n String result = \"\";\r\n \r\n for (int index=0; index < top; index++) \r\n result = result + stack[index].toString() + \"\\n\";\r\n \r\n return result;\r\n }",
"@Override\n\tpublic String toString() {\n\t\tString result = \"\";\n\t\t\n\t\tfor(int i = 0; i < top; i++) {\n\t\t\tresult = result + stack[i].toString() + \"\\n\";\t//shouldn't it start at max --> 0 since its a stack\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"public String toString(int stack) {\n\t\tString stkStr = \"\";\n\t\tint start = stack * stackSize;\n\t\tfor (int i = start; i < start + stackPointer[stack]; i++) {\n\t\t\tstkStr += buffer[i] + \" -> \";\n\t\t}\n\t\tstkStr += \"END\";\n\t\treturn stkStr;\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\tString stackString = \"\";\r\n\t\tfor (T e: stack) {\r\n\t\t\tstackString = stackString +e;\r\n\t\t}\r\n\t\treturn stackString;\r\n}",
"static void dump(Stack stack) {\n String temp = \" stack = \";\n for (int i = stack.size() - 1; i >= 0; i--) {\n temp = temp + ((TreeNode) (stack.elementAt(i))).data + \" \";\n }\n System.out.println(temp);\n }",
"public String toString() {\r\n\t\tStringBuilder sb = new StringBuilder(\"(\");\r\n\t\tfor (int j = t; j >= 0; j--) {\r\n\t\t\tsb.append(stack[j]);\r\n\t\t\tif (j > 0)\r\n\t\t\t\tsb.append(\", \");\r\n\t\t}\r\n\t\tsb.append(\")\");\r\n\t\treturn sb.toString();\r\n\t}",
"public String toString()\r\n {\n \tString result = \"\";\r\n \tNode n = this.top;\r\n \twhile (n != null)\r\n \t{\r\n \t\tresult = result + \" \" + n.getItem().toString();\r\n \t\tn = n.getNext();\r\n \t}\r\n \treturn result.trim();\r\n }",
"@Override \n\tpublic String toString() {\n\t\t\n\t\tSystem.out.println(\"New Stack\");\n\t\t\n\t\tfor(int i = 0; i < arraySize; i++) {\n\t\t\tSystem.out.println(\"stack: \" + list[i].toString());\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\");// Print and empty new line\n\t\t\n\t\treturn \"\";\n\t}",
"public String toString(){\n String pileString = \"\";\n\n for(int i = 0; i < this.nbObj; i++)\n {\n pileString += i + \": \" + this.objTab[i].toString() + \"\\n\";\n }\n pileString += \"End of Stack\";\n return pileString;\n }",
"@Override\n public String toString() {\n \tString retString = \"Stack[\";\n \tfor(int i = 0; i < stack.size() - 1; i++) // append elements up to the second to last onto the return string\n \t\tretString += stack.get(i) + \", \";\n \tif(stack.size() > 0)\n \t\tretString += stack.get(stack.size() - 1); // append final element with out a comma after it\n \tretString += \"]\";\n \treturn retString;\n }",
"@Override\r\n\tpublic String toString(String delimiter) {\r\n\t\tString stackString = \"\";\r\n\t\tfor (T e: stack) {\r\n\t\t\tstackString = stackString + e + delimiter;\r\n\t\t}\r\n\t\treturn stackString.substring(0, stackString.length()-1);\r\n\t}",
"public String toString() {\n if (size == 0) {\n return \"Empty tree\";\n }\n\n\n StringBuilder sb = new StringBuilder();\n Node<T> right = root.getRight();\n Node<T> left = root.getLeft();\n\n if (right != null) {\n right.buildBranch(true, \"\", sb);\n }\n\n sb.append(root.getData() + \"\\n\");\n\n if (left != null)\n left.buildBranch(false, \"\", sb);\n\n return sb.toString();\n }",
"public String toString() {\n\t\tNode current = top;\n\t\tStringBuilder s = new StringBuilder();\n\t\twhile (current != null) {\n\t\t\ts.append(current.value + \" \");\n\t\t\tcurrent = current.next;\n\t\t}\n\n\t\treturn s.toString();\n\t}",
"public String toString()\n\t{\n\t\tNode current = head.getNext();\n\t\tString output = \"\";\n\t\t\n\t\twhile(current != null){\n\t\t\toutput += \"[\" + current.getData().toString() + \"]\\n\";\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t\t\n\t\treturn output;\n\t}",
"public String toString()\n\t{\n\t\tString answer;\n\t\t//if the size not 0, indent 9 spaces to make room for the \"(null)<--\" that backwards will print\n\t\tif (size() != 0)\n\t\t\tanswer = \" \";\n\t\telse\n\t\t\tanswer = \"\";\n\n\t\tDLLNode cursor = head;\n\t\twhile (cursor != null)\n\t\t{\n\t\t\tanswer = answer + cursor.data + \"-->\";\n\t\t\tcursor = cursor.next;\n\t\t}\n\n\t\tanswer = answer + \"(null)\";\n\t\treturn answer;\n\t}",
"@Override\n\tpublic String toString()\n\t{\n\n\t\tStringBuffer sb = new StringBuffer(\"top->\");\n\t\tif (!isEmpty())\n\t\t{\n for(int i = getSize() - 1; i >= 0; i--)\n {\n if(i == getSize() - 1)\n {\n sb.append(list.get(i));\n }\n else \n {\n sb.append( \"->\" + list.get(i));\n }\n }\n //System.out.println(sb.toString());\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public String getStack();",
"public String toString()\n\t{\n\t\tString stringList = \"\";\n\t\tNode temp = front;\n\t\twhile(temp != null)\n\t\t{\n\t\t\tstringList += String.valueOf(temp.data) + \" \"; //places the data from the Node into the empty string\n\t\t\ttemp = temp.next; //moevs onto the next Node in the list\n\t\t}\n\t\treturn stringList;\n\t}",
"public String toString(){\n String result = \"\";\n ListNode current = front;\n while(current != null){\n result = result + current.toString() + \"\\n\";\n current = current.getNext();\n }\n return result;\n }",
"@Override\n\tpublic String toString(String delimiter) {\n\t\t//Invert the stack by pushing Nodes to a new Stack\n\t\tMyStack<T> invertedStack = new MyStack<T>(this.size());\n\t\twhile(!this.isEmpty()) {\n\t\t\tinvertedStack.push(this.pop());\n\t\t}\n\t\t\n\t\t//Create empty String for returning\n\t\tString returnString = \"\";\n\t\t\n\t\t//Create an iterator for traversing the Stack\n\t\tNode iteratorNode = invertedStack.topNode;\n\t\t\n\t\t//Traverse the Stack and append the individual data Strings to the return String\n\t\tfor(int i = 0; i < invertedStack.size() - 1; i++) {\n\t\t\treturnString += iteratorNode.data.toString() + delimiter;\n\t\t\titeratorNode = iteratorNode.nextNode;\n\t\t}\n\t\t\n\t\t//Add the bottom Node's data to the returnString (prevents extra terminating delimiter)\n\t\treturnString += iteratorNode.data.toString();\n\t\t\n\t\t//Restore the original Stack so that it isn't destroyed\n\t\twhile(!invertedStack.isEmpty()) {\n\t\t\tthis.push(invertedStack.pop());\n\t\t}\n\t\t\n\t\t//Return the finished String to the function caller\n\t\treturn returnString;\n\t}",
"public String getBack(){\n String str = \"\";\n if( !this.isEmpty() ){\n MyDoubleNode<Type> aux = this.end;\n while(aux != null){\n str += aux.value.toString() + \" \";\n aux = aux.prev;\n }\n }\n return str;\n }",
"public String pop()\n\t{\n\t\tString s;\n\t\tif(isEmpty())\n\t\t\tthrow new EmptyStackException(\"The stack is empty\");\n\t\ts = top.getData();\n\t\ttop = top.getLink();\n\t\treturn s;\n\t}",
"public String toString(){\n String s = \"\";\n Node N = front;\n while( N != null){\n s += N.key + \" \" + N.value + \"\\n\"; \n N = N.next;\n }\n return s;\n }",
"public String toString() {\n // Introducing StringBuilder\n StringBuilder sb = new StringBuilder();\n sb.append(String.format(\"\\nThis stack has %d elements and %d of them are used\",\n this.foundation.length, this.usage));\n sb.append(\"\\n\\t[ \");\n for (int i = this.foundation.length - this.usage; i < this.foundation.length; i++) {\n sb.append(String.format(\"%s \", foundation[i]));\n }\n sb.append(\"]\");\n return sb.toString();\n }",
"public String toString(){\n String result = \"\";\n LinearNode<T> trav = front;\n while (trav != null){\n result += trav.getElement();\n trav = trav.getNext();\n }\n return result;\n }",
"@Override\r\n public String toString() {\r\n Queue<List<Node>> queue = new LinkedList<List<Node>>();\r\n queue.add(Arrays.asList(root));\r\n StringBuilder sb = new StringBuilder();\r\n while (!queue.isEmpty()) {\r\n Queue<List<Node>> nextQueue = new LinkedList<List<Node>>();\r\n while (!queue.isEmpty()) {\r\n List<Node> nodes = queue.remove();\r\n sb.append('{');\r\n Iterator<Node> it = nodes.iterator();\r\n while (it.hasNext()) {\r\n Node node = it.next();\r\n sb.append(node.toString());\r\n if (it.hasNext())\r\n sb.append(\", \");\r\n if (node instanceof BPTree.InternalNode)\r\n nextQueue.add(((InternalNode) node).children);\r\n }\r\n sb.append('}');\r\n if (!queue.isEmpty())\r\n sb.append(\", \");\r\n else {\r\n sb.append('\\n');\r\n }\r\n }\r\n queue = nextQueue;\r\n }\r\n return sb.toString();\r\n }",
"public String toString() {\n\t\t// Anmerkung: StringBuffer wäre die bessere Lösung.\n\t\tString text = \"\";\n\t\tListNode<E> p = head;\n\t\twhile (p != null) {\n\t\t\ttext += p.toString() + \" \";\n\t\t\tp = p.getTail();\n\t\t}\n\t\treturn \"( \" + text + \") \";\n\t}",
"public String toString()\n { \t\n \t//initialize String variable to return \n \tString listString = \"\";\n \t//create local node variable to update in while loop\n LinkedListNode<T> localNode = getFirstNode();\n \n //concatenate String of all nodes in list\n while(localNode != null)\n {\n listString += localNode.toString();\n localNode = localNode.getNext();\n }\n \n //return the string to the method\n return listString;\n }",
"public String peek() throws EmptyStackException{\n\t\t\tif(isEmpty()) {\n\t\t\t\tthrow new EmptyStackException();\n\t\t\t}\n\t\t\treturn top.getData();\n\t\t}",
"public String toString() {\r\n StringBuilder sb = new StringBuilder(\"(\");\r\n Node<E> walk = head;\r\n while (walk != null) {\r\n sb.append(walk.getItem());\r\n if (walk != tail)\r\n sb.append(\", \");\r\n walk = walk.getNext();\r\n }\r\n sb.append(\")\");\r\n return sb.toString();\r\n }",
"public String toString()\n\t{\n\t\t//string to print out\n\t\tString printOut = \"\";\n\t\t//set the current node to head\n\t\tLinkedListNode<T> currentNode = head;\n\t\t//go through the list\n\t\twhile (currentNode.getNext() != null){\n\t\t\t//add to the string\n\t\t\tprintOut += currentNode.getData().toString() + \" \";\n\t\t\t//set the current node to next node\n\t\t\tcurrentNode = currentNode.getNext(); \n\t\t}\n\t\tprintOut += getLastNode().getData().toString();\n\t\treturn printOut;\n\t}",
"public String toString(){\n //KEY --------\n // WHITE WALL = WW\n // WHITE ROAD = WR\n // WHITE CAPSTONE = WC\n // BLACK WALL = BW\n // BLACK ROAD = BR\n // BLACK CAPSTONE = BC\n // EMPTY = \"blank\"\n\n StringBuilder builder = new StringBuilder();\n\n /*TOP ROW*/ builder.append(\"\\t\"); for(int i = 0; i < SIZE; i++){ builder.append(i + \"\\t\");} builder.append(\"\\n\\n\");\n /*REST OF THE ROWS*/ \n for(int x = 0; x < SIZE; x++){\n builder.append(x + \"\\t\");\n for(int y = 0; y < SIZE; y++){\n TakStack current = stacks[y][x]; \n if(!current.isEmpty()){\n builder.append(getPieceString(current.top()));\n }\n builder.append(\"\\t\");\n }\n builder.append(\"\\n\\n\");\n }\n\n\n //BUILDER RETURN\n return builder.toString();\n }",
"public String toString(){\n //return myString(root);\n printInOrder(root);\n return \"\";\n }",
"public String toString ()\n {\n String str = \"\";\n Node nodeRef = head;\n for (int i = 0; i < size&& nodeRef!= null; i++) {\n str = str + nodeRef.data + \"\\n\";\n nodeRef = nodeRef.next;}\n return str;\n }",
"public String printBFSTree(){\n if(root==null)return \"\";\n String binstr=\"\";\n String valuestr=\"\";\n String codestr=\"\";\n LinkedList<HCNode> list=new LinkedList<HCNode>();\n root.code=\"\";\n list.add(root);\n HCNode node;\n while(list.size()>0){\n node=list.getFirst();\n if(node.left==null && node.right==null){\n binstr=binstr+\"0\";\n valuestr=valuestr+((byte)node.str.charAt(0))+\"\\n\";\n codestr=codestr+node.code;\n }else{\n binstr=binstr+\"1\";\n }\n if(node.left!=null){node.left.code=node.left.parent.code+\"0\";list.addLast(node.left);}\n if(node.right!=null){node.right.code=node.right.parent.code+\"1\";list.addLast(node.right);}\n list.removeFirst();\n }\n String res=binstr+\"\\n\"+valuestr+codestr+\"\\n\";\n System.out.println(binstr);\n System.out.print(valuestr);\n System.out.println(codestr);\n return res;\n }",
"@Override\n public String toString() {\n StringBuilder outString = new StringBuilder();\n int currentTreeIndex = this.indexCorrespondingToTheFirstElement;\n if (treeSize > 0) {\n while (currentTreeIndex != -1) {\n Node<T> currentNode = getHelper(currentTreeIndex);\n outString.append(currentNode.data).append(\", \");\n currentTreeIndex = currentNode.nextIndex;\n }\n }\n\n if (outString.length() != 0) {\n outString.deleteCharAt(outString.length() - 1); // \", \"\n outString.deleteCharAt(outString.length() - 1);\n }\n return \"[\" + outString.toString() + \"]\";\n }",
"public String toString() {\n return toString(root) + \" \";//call helper method for in-order traversal representation\n }",
"public String toString(){\n return \"Node: \" + data;\n }",
"@Override\n public String toString() {\n String str = head.getValue() + \"->\";\n Node holder = head.getNext();\n for (int i = 2; i < size(); i++) {\n str = str + holder.getValue() + \"->\";\n holder = holder.getNext();\n }\n str = str + tail.getValue();\n return str;\n }",
"public String toString() {\n String toReturn = \"\";\n\n Node walker = this.first;\n while(walker != null) {\n toReturn += walker.data + \"\\t\";\n walker = walker.next;\n }\n\n return toReturn;\n }",
"public String toString() {\n if (head == null && tail == null) {\n return null;\n } else if (head.getNext() == null) {\n return head.getData();\n } else {\n while (head.getNext() != null) {\n head = head.getNext();\n System.out.println(head.getData());\n }\n return head.getData();\n }\n\n\n }",
"public String dump() {\n String result = \"\";\n Iterator stackIt = framePointers.iterator();\n int frameEnd;\n int old;\n int pos = 0;\n frameEnd = (int)stackIt.next();\n if(stackIt.hasNext()) {\n frameEnd = (int)stackIt.next();\n }\n else {\n frameEnd = -1;\n }\n while(pos < runStack.size()) {\n result += \"[\";\n if(frameEnd == -1) {\n while(pos < runStack.size()-1) {\n result += runStack.get(pos) + \",\";\n pos++;\n }\n result += runStack.get(pos)+\"] \";\n pos++;\n }\n else {\n while(pos < frameEnd-1) {\n result += runStack.get(pos) + \",\";\n pos++;\n }\n if(pos < frameEnd){\n result += runStack.get(pos);\n pos++;\n }\n result += \"]\";\n }\n if(stackIt.hasNext()) {\n frameEnd = (int)stackIt.next();\n }\n else {\n frameEnd = -1;\n }\n }\n return result;\n }",
"public String toString() {\n\t\t\n\t\tStringBuilder tree = new StringBuilder();\n\t\t\n\t\tQueue<AVLNode> queue = new LinkedList<>();\n\t\tqueue.add(root);\n\t\t\n\t\twhile(!queue.isEmpty()) {\n\t\t\tAVLNode node = queue.poll();\n\t\t\ttree.append(node.num);\n\n\t\t\tif(node.left!=null)\n\t\t\t\tqueue.add(node.left);\n\t\t\t\n\t\t\tif(node.right!=null)\n\t\t\t\tqueue.add(node.right);\n\t\t}\n\t\t\n\t\treturn tree.toString();\n\t}",
"public String toString() {\n//\t\tif (isEmpty()) {\n//\t\t\treturn null;\n//\t\t}\n\t\t//create a string that holds the value of the list\n\t\t//held inside curly braces for my viewing pleasure\n\t\tString s = \"\";\n\t\t//if the list is not empty\n\t\tif (isEmpty()!= true) {\n\t\t\t//create a node and set it to the head\n\t\t\tLinkedListNode<T> curNode = head;\n\t\t\t\t//while the current node isn't null\n\t\t\t\twhile (curNode != null) {\n\t\t\t\t\t//add the data in the node to my string\n\t\t\t\t\ts += curNode.getData();\n\t\t\t\t\t//set current node to be the next node\n\t\t\t\t\tcurNode = curNode.getNext();\n\t\t\t\t}\n\t\t}\n\t\t//return the final string\n\t\treturn s;\n\t}",
"@Test\n public void toStringTest() {\n assertEquals(\"1 2 3 4\", stack.toString());\n }",
"public String toString(Node<E> current, int i) {\n\t\tStringBuilder s = new StringBuilder();\n\t\tfor (int j = 0; j < i; j++) {\n\t\t\ts.append(\"---\");\n\t\t}\n\t\tif (current == null) {\n\t\t\ts.append(\"null\");\n\t\t\treturn s.toString();\n\t\t}\n\t\ts.append(current.data.toString());\n\t\ts.append(\"\\n\");\n\t\ts.append(toString(current.left, i + 1));\n\t\ts.append(\"\\n\");\n\t\ts.append(toString(current.right, i + 1));\n\t\ts.append(\"\\n\");\n\t\treturn s.toString();\n\t}",
"@Override\n public String toString(){\n Node curr=this.head;\n String str=\"\";\n while(curr!=null){\n str+=(curr.data + \" -> \");\n curr=curr.next;\n }\n return str;\n }",
"@Override\n public String toString(){\n Node curr=this.head;\n String str=\"\";\n while(curr!=null){\n str+=(curr.data + \" -> \");\n curr=curr.next;\n }\n return str;\n }",
"public void printStack(){\n\t\tswitch (type) {\n\t\tcase 's' : {\n\t\t\tSystem.out.print(\"[XX]\");\n\t\t}\n\t\tbreak;\n\t\tcase 'w' : {\n\t\t\tSystem.out.print(this.peek().toString());\n\t\t}\n\t\tbreak;\n\t\tcase 't' : {\n\t\t\tStack<Card> temp = new Stack<Card>();\n\t\t\tCard currentCard = null;\n\t\t\tString fullStack = \"\";\n\t\t\twhile(!this.isEmpty()){\n\t\t\t\ttemp.push(this.pop());\n\t\t\t}\n\t\t\twhile(!temp.isEmpty()){\n\t\t\t\tcurrentCard = temp.pop();\n\t\t\t\tfullStack += currentCard.isFaceUp() ? currentCard.toString() : \"[XX]\";\n\t\t\t\tthis.push(currentCard);\n\t\t\t}\n\t\t\tSystem.out.println(fullStack);\n\t\t}\n\t\tbreak;\n\t\tcase 'f' : {\n\t\t\tSystem.out.print(this.peek().toString());\n\t\t}\n\t\tbreak;\n\t\t}\n\t}",
"public @Override String toString() {\n String res= \"[\";\n // invariant: res = \"[s0, s1, .., sk\" where sk is the object before node n\n for (Node n = sentinel.succ; n != sentinel; n= n.succ) {\n if (n != sentinel.succ)\n res= res + \", \";\n res= res + n.data;\n }\n return res + \"]\";\n }",
"public String toString()\n\t{\n\n if ( !isEmpty() )\n\t\t{ \n Node tNode = head;\n String str = tNode.item;\n\t\t\twhile (tNode.next != null)\n\t\t\t{\n\t\t\t\ttNode = tNode.next;\n str = str + \" -> \" + tNode.item;\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t\treturn null;\n\t\t//return \"\";\n }",
"public String toString()\n {\n StringBuilder output = new StringBuilder(\"\");\n Node p = head;\n while (p != null)\n {\n if (p.data.length() > 1)\n output.append(\"\\t\");\n output.append(p.data + \"\\n\");\n p = p.next;\n }\n\n return new String(output);\n }",
"@Override\n\tpublic String result() {\n\t\tif (!stack.isEmpty())\n\t\t\treturn Integer.toString(stack.peek());\n\t\telse\n\t\t\treturn \"0\";\n\t}",
"public void testToString() {\n assertEquals(this.empty.toString(), \"[]\");\n assertEquals(this.stack.toString(), \"[9, 8, 7, 6, 5, 4, 3, 2, 1, 0]\");\n }",
"public String toString() {\r\n\t\treturn print(this.root,0);\r\n\t}",
"public String toString() {\n\t\tStringBuilder tmpStringBuilder = new StringBuilder(\"(\");\n\t\tint frontIndex = theFrontIndex;\n\t\tfor (int j = 0; j < theSize; j++) {\n\t\t\tif (j > 0)\n\t\t\t\ttmpStringBuilder.append(\", \");\n\t\t\ttmpStringBuilder.append(theData[frontIndex]);\n\t\t\tfrontIndex = (frontIndex + 1) % theData.length;\n\t\t}\n\t\ttmpStringBuilder.append(\")\");\n\t\treturn tmpStringBuilder.toString();\n\t}",
"public String toString()\n\t{\n\t\tchar [] ToStringChar = new char[length];\n recursiveToString(0, ToStringChar, firstC);\n String contents = new String(ToStringChar);\n return contents;\n\t\t\n\t}",
"@Override\n\tpublic String toStringCursor()\n\t{\n\t\t// String we will be printing\n\t\tString returnString = \"\";\n\t\t// print everything in our left stack with loop\n\t\tfor (int i = 0; i < left.size(); ++i)\n\t\t{\n\t\t\treturnString = returnString + left.elementAt(i);\n\t\t}\n\n\t\t// Print our cursor\n\t\treturnString = returnString + \"|\";\n\n\t\t// print everything in our right stack with loop\n\t\tfor (int i = right.size() - 1; i >= 0; --i)\n\t\t{\n\t\t\treturnString = returnString + right.elementAt(i);\n\t\t}\n\n\t\t// Return our string to print\n\t\treturn returnString;\n\t}",
"public String toString(){\n\t\tStringBuffer sb = new StringBuffer();\n\t\tTList<T> root = this.getRoot();\n\t\tif (root == this) \n\t\t\tsb.append(\"*\");\n\t\tif (root.visited())\n\t\t\tsb.append(\"-\");\n\t\tsb.append(root.getValue());\n\t\twhile (root.hasNext()) {\n\t\t\tsb.append(\" -> \");\n\t\t\troot = root.getNext();\n\t\t\tif (root == this) \n\t\t\t\tsb.append(\"*\");\n\t\t\tif (root.visited())\n\t\t\t\tsb.append(\"-\");\n\t\t\tsb.append(root.getValue());\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public String toString() {\n\t\t//if list is empty\n\t\tif ( head == null ) {\n\t\t\treturn \"list is empty\";\n\t\t} else {\n\t\t\tString str = head.toString();\n\t\t\tfor ( DLLNode<T> node = head.getNext(); node != null; node = node.getNext() ) {\n\t\t\t\tstr += \">\" + node.getData().toString();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}",
"public String toString(){\n String str = \"\";\n for(int i = level; i>0; i--){\n str+=\"\\t\";\n }\n str += getClass().toString();\n if(noOfChildren != 0){\n str+=\" containing\\n\";\n for (int i = 0; i<this.noOfChildren; i++)\n str += getChild(i).toString();\n }\n else{\n str+=\"\\n\";\n }\n return str;\n }",
"public String toString()\r\n {\r\n String str = toString(root);\r\n if (str.endsWith(\", \"))\r\n str = str.substring(0, str.length() - 2);\r\n return \"[\" + str + \"]\";\r\n }",
"public String printCharStack() {\r\n\t\t String elements = \"<\";\r\n\t\t \r\n\t\tfor(int i = 0; i < count; i++) {\r\n\t\t\telements += \" \" + (char)array[i];\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\telements += \">\";\r\n\t\t\treturn elements;\r\n\t }",
"public void displayStack(){\n if(!empty()){\n System.out.println(\"\\n---Stack---\");\n \n int i= this.maxLength-1;\n ParsedToken[] ptCopy = new ParsedToken[this.maxLength];\n \n /* Display and copy depop values */\n while(!empty()){\n ptCopy[i] = pop();\n System.out.println(\"| \"+ptCopy[i]+\" |\");\n i--;\n }\n /* Recopy values into the original stack */\n while(i<this.maxLength-1){\n push(ptCopy[++i]);\n }\n }else{\n System.out.println(\"\\nEmpty Stack : Nothing to display\\n\");\n }\n }",
"@Override\n\t\tpublic String toString() {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tpreOrderTraverse(expression.root, 1, sb);\n\t\t\treturn sb.toString();\n\t\t}",
"public String toString() {\n if (head != null) {\n String str = \"\";\n Node node = head;\n while (node.next != null) {\n str += (node.data) + \", \";\n node = node.next;\n }\n str += (node.data);\n return str;\n } else {\n return \"Steque is empty.\";\n }\n }",
"public StringStack()\n\t{\n\t\ttop = null;\n\t}",
"public void showStack() {\n\n\t\t/*\n\t\t * Traverse the stack by starting at the top node and then get to the\n\t\t * next node by setting to current node \"pointer\" to the next node until\n\t\t * Null is reached.\n\t\t */\n\t\tNode<T> current = getTopNode();\n\n\t\tSystem.out.println(\"\\n---------------------\");\n\t\tSystem.out.println(\"STACK INFO\");\n\n\t\twhile (current != null) {\n\t\t\tSystem.out.println(\"Node Data: \" + current.data);\n\t\t\tcurrent = current.nextNode;\n\t\t}\n\n\t\tSystem.out.println(\"<< Stack Size: \" + getStackSize() + \" >>\");\n\t\tSystem.out.println(\"----------------------\");\n\n\t}",
"public String toString()\n {\n String out = \"Treehash : \";\n for (int i = 0; i < 6 + tailLength; i++)\n {\n out = out + this.getStatInt()[i] + \" \";\n }\n for (int i = 0; i < 3 + tailLength; i++)\n {\n if (this.getStatByte()[i] != null)\n {\n out = out + new String(Hex.encode((this.getStatByte()[i]))) + \" \";\n }\n else\n {\n out = out + \"null \";\n }\n }\n out = out + \" \" + this.messDigestTree.getDigestSize();\n return out;\n }",
"public String toString() {\n\t\tString str = \"\";\n\t\tfor (int i = 1 ; i < size - 1; i++ ){\n\t\t\tstr = str + getBlock(i);\n\t\t}\n\t\treturn str;\n\t}",
"private String _toString(IntTreeNode root) {\r\n if (root == null) {\r\n return \"\";\r\n } else {\r\n String leftToString = _toString(root.left);\r\n String rightToString = _toString(root.right);\r\n return leftToString + rightToString + \" \" + root.data;\r\n } \r\n }",
"public String toString() {\n\t\tString str = \"\";\n\t\tNode current = head;\n\t\tstr += \"[ \";\n\t\twhile (current != null) {\n\t\t\tstr += current.value;\n\t\t\tif (current.next != null) {\n\t\t\t\tstr += \", \";\n\t\t\t}\n\n\t\t\tcurrent = current.next;\n\t\t}\n\t\tstr += \" ]\";\n\n\t\treturn str;\n\t}",
"public String postfix()\n\t {\n\t \t// create an empty string builder // \n\t \tStringBuilder sb = new StringBuilder();\n\t \t\n\t \t// fill the string builder//\n\t \tpostfix(root, sb);\n\t \t\n\t \treturn sb.toString().trim();\n\t }",
"public String toString() {\n//\t\tif(this.head == null){\n//\t\t\treturn \"1\";\n//\t\t}\n\t\tNode current_node = this.head;\n\t\tString s = current_node.toString();\n\t\twhile(current_node.next != null){\n\t\t\ts += \" * \";\n\t\t\ts += current_node.next.toString();\n\t\t\tcurrent_node = current_node.next;\n\t\t}\n\t\treturn s;\n\t}",
"public String getTree ( ) {\n\n String tree;\n StringWriter s = new StringWriter();\n PrintWriter out = null;\n\n try {\n out = new PrintWriter(s);\n } catch ( Exception ex ) {};\n\n program.printIndividual(param.Parameters.STATE, out);\n\n tree = s.toString();\n String list2[] = tree.split(\"\\n\");\n\n out.close();\n try { s.close(); } catch ( Exception e ) {};\n\n return list2[list2.length - 1];\n\n }",
"public String pop(){\n //base case for empty stack\n if(N==0)return null;\n\n String str = stackArray[--N];\n stackArray[N]=null;\n\n //resize the array\n if(N==stackArray.length/4 && N>0) resizeArray(stackArray.length/2);\n\n return str;\n }",
"public String toString() {\n if (first.p == null) return \"\";\n StringBuilder sb = new StringBuilder();\n Node n = first;\n while (!n.next.equals(first)) {\n sb.append(n.p.toString() + \"\\n\");\n n = n.next;\n }\n sb.append(n.p.toString() + \"\\n\");\n return sb.toString();\n }",
"public String toString() {\n return toString(overallRoot, 0.0, weightedNodeHeight(overallRoot));\n }",
"public String toString() {\r\n\t\tNode<E> current = head;\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\twhile (current != null) {\r\n\t\t\tsb.append(\",\" + current.data);\r\n\t\t\tcurrent = current.next;\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"public String toString()\n {\n String result = \"\";\n\n Node first = this.first;\n while (first != null) {\n result += \"X = \" + first.getX() + \"\\n\";\n result += \"Y = \" + first.getY() + \"\\n\";\n result += \"X2 = \" + first.getX2() + \"\\n\";\n result += \"XY = \" + first.getXY() + \"\\n\";\n result += \"Y2 = \" + first.getY2() + \"\\n\";\n\n first = first.getNext();\n }\n\n return result;\n }",
"@Override\n public String toString() { // display subtree in order traversal\n String output = \"[\";\n LinkedList<Node<T>> q = new LinkedList<>();\n q.add(this);\n while(!q.isEmpty()) {\n Node<T> next = q.removeFirst();\n if(next.leftChild != null) q.add(next.leftChild);\n if(next.rightChild != null) q.add(next.rightChild);\n output += next.data.toString();\n if(!q.isEmpty()) output += \", \";\n }\n return output + \"]\";\n }",
"public String toString()\r\n/* 112: */ {\r\n/* 113:199 */ String s = \"\";\r\n/* 114:200 */ for (N node : getNodes())\r\n/* 115: */ {\r\n/* 116:201 */ s = s + \"\\n{ \" + node + \" \";\r\n/* 117:202 */ for (N suc : getSuccessors(node)) {\r\n/* 118:203 */ s = s + \"\\n ( \" + getEdge(node, suc) + \" \" + suc + \" )\";\r\n/* 119: */ }\r\n/* 120:205 */ s = s + \"\\n} \";\r\n/* 121: */ }\r\n/* 122:207 */ return s;\r\n/* 123: */ }",
"public String toString() {\n // TODO: implement this method\n ListNode curr = nil.next();\n String retVal = \"[\";\n\n while(curr != nil){\n\n if(curr.isActive()){\n retVal += \" *\" + curr.value().toString() + \"*\" ;\n }else{\n retVal += \" \" + curr.value().toString() ;\n }\n\n curr = curr.next();\n }\n\n return retVal + \" ]\";\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n traverseNode(sb, \"\", \"\", root, false);\n return sb.toString();\n }",
"public String toString() { \r\n\t\tString Sresult = \"(\" + lChild.toString() + \" / \" + rChild.toString() + \")\";\r\n\t\treturn Sresult; \r\n\t}",
"@Override\r\n public String toString() {\r\n \r\n StringBuilder sb = new StringBuilder();\r\n HTreeNode listrunner = getHeadNode();\r\n while (listrunner != null) {\r\n sb.append(listrunner.getCharacter());\r\n //no comma after the final element\r\n if (listrunner.getNext() != null) {\r\n sb.append(',');\r\n sb.append(' ');\r\n }\r\n listrunner = listrunner.getNext();\r\n }\r\n return sb.toString();\r\n }",
"public String toString()\n {\n String s = \"[\";\n\n ListNode temp = first; // start from the first node\n while (temp != null)\n {\n s += temp.getValue(); // append the data\n temp = temp.getNext(); // go to next node\n if (temp != null)\n s += \", \";\n }\n s += \"]\";\n return s;\n }",
"public String toString() {\n\t\t\tString result = \"\";\n\t\t\tif (head == null) {\n\t\t\t\treturn result+\"\\n\";\n\t\t\t}\n\t\t\tresult = result + head.getValue();\n\t\t ElementDPtr temp = head.getNext();\n\t\t\twhile (temp != null) {\n\t\t\t\tresult = result + \"\\n\" + temp.getValue();\n\t\t\t\ttemp = temp.getNext();\n\t\t\t}\n\t\t\treturn result + \"\";\n\t\t}",
"public String toString() {\n return tree.toString();\n }",
"public String bottomView(Tree<T> tree)\n {\n // Your code here\n Node root = tree.getRoot();\n bottomViewUtil(root, 0);\n StringBuilder str = new StringBuilder();\n for(Map.Entry<Integer, Node> e: map.entrySet()){\n str.append(e.getValue().data).append(\" \");\n }\n return str.toString();\n }",
"public void display() \n {\n if (top == null) { \n System.out.printf(\"\\nStack Underflow\"); \n \n } \n else { \n Node temp = top; \n while (temp != null) { \n \n // print node data \n System.out.printf(\"%d->\", temp.data); \n \n // assign temp link to temp \n temp = temp.next; \n } \n } \n }",
"public String back()\n {\n\treturn tail.value;\n }",
"public String pop() throws EmptyStackException {\n\t\t\tif(isEmpty()) {\n\t\t\t\tthrow new EmptyStackException();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tString result=top.getData();\n\t\t\t\ttop=top.getNext();\n\t\t\t\tlength--;\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}",
"public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n TreeNode x = root;\n Deque<TreeNode> stack = new LinkedList<>();\n while (x != null || !stack.isEmpty()) {\n if (x != null) {\n sb.append(x.val);\n sb.append(' ');\n stack.push(x);\n x = x.left;\n } else {\n sb.append(\"null \");\n x = stack.pop();\n x = x.right;\n }\n }\n return sb.toString();\n }",
"public String toString() {\n if (subTrees.isEmpty()) return rootToString();\n StringBuilder result = new StringBuilder(rootToString() + \"(\" + subTrees.get(0).toString());\n for (int i = 1; i < subTrees.size(); i++) result.append(\",\").append(subTrees.get(i).toString());\n return result + \")\";\n }",
"public String toString(){\n String result = \"{\";\n for(LinkedList<E> list : this.data){\n for(E item : list){\n result += item.toString() + \", \";\n }\n }\n result = result.substring(0, result.length() -2);\n return result + \"}\";\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\tString string = \"\";\r\n\t\tif (expressionTree.getNumberOfChildren()==0)\r\n\t\t\treturn expressionTree.getValue();\r\n\t\telse{\r\n\t\t\tstring += \"(\";\r\n\t\t\tfor (int i = 0; i < expressionTree.getNumberOfChildren(); i++){\r\n\t\t\t\tTree<String> subtree = expressionTree.getChild(i);\r\n\t\t\t\tif (subtree.getNumberOfChildren()==0)\r\n\t\t\t\t\tstring += subtree.getValue();\r\n\t\t\t\telse\r\n\t\t\t\t\tstring += (new Expression(subtree.toString())).toString()+\" \";\r\n\t\t\t\tif (i < expressionTree.getNumberOfChildren()-1)\r\n\t\t\t\t\tstring += \" \" + expressionTree.getValue()+\" \";\r\n\t\t\t}\r\n\t\t\tstring += \")\";\r\n\t\t}\r\n\t\treturn string;\r\n\t}",
"public String toString() {\n StringBuilder s = new StringBuilder(\"{\");\n\n Node<T> next;\n if (start != null) {\n next = start;\n s.append(next);\n next = next.next;\n while (next != null) {\n s.append(\", \" + next);\n next = next.next;\n }\n }\n s.append(\"}\");\n return s.toString();\n }",
"public String toString() {\n \n StringBuffer sb = new StringBuffer();\n \n SingleNode current = head;\n while (current != null) {\n sb.append(current.getData());\n sb.append(\" \");\n current = current.getNext();\n }\n return \"List = \" + sb.toString();\n }",
"public String toString() {\n if (root == null) {\n return (treeName + \" Empty tree\\n\");\n } else {\n String space = \"\";\n return treeName + \"\\n\" + toStringRecur(root.right, space) + \"\\n\" + root.element +\n \"[No Parent so sad]\" + toStringRecur(root.left, space) + \"\\n\";\n }\n }"
]
| [
"0.7662589",
"0.7515948",
"0.7433562",
"0.7426362",
"0.7358987",
"0.72356635",
"0.7131451",
"0.68791133",
"0.68155605",
"0.67392135",
"0.6728513",
"0.67237496",
"0.6721414",
"0.667989",
"0.66663426",
"0.65848255",
"0.65467936",
"0.64863783",
"0.6446258",
"0.64076215",
"0.6392114",
"0.6385276",
"0.6346908",
"0.63374186",
"0.6337016",
"0.6330236",
"0.6327818",
"0.63271016",
"0.63172287",
"0.6303786",
"0.62953085",
"0.6273238",
"0.6262769",
"0.62504864",
"0.6238459",
"0.62303257",
"0.620761",
"0.62031657",
"0.6200423",
"0.6191558",
"0.6187085",
"0.61797005",
"0.6176007",
"0.6173537",
"0.6162374",
"0.6152227",
"0.6151073",
"0.61481535",
"0.60999316",
"0.60977525",
"0.6091328",
"0.6087273",
"0.6073583",
"0.6071947",
"0.6067693",
"0.6037542",
"0.60372746",
"0.6034545",
"0.60336787",
"0.6031948",
"0.6030644",
"0.6027007",
"0.60198265",
"0.60180265",
"0.60100466",
"0.6009137",
"0.6006932",
"0.59928215",
"0.59888464",
"0.59674925",
"0.5960346",
"0.5958075",
"0.5958032",
"0.5947102",
"0.59458333",
"0.5943697",
"0.59362113",
"0.5930333",
"0.5928179",
"0.59224296",
"0.59223026",
"0.5916588",
"0.591475",
"0.59140575",
"0.5913685",
"0.59105206",
"0.5908756",
"0.5907399",
"0.59073573",
"0.59070235",
"0.5905939",
"0.59044164",
"0.5892454",
"0.5884313",
"0.5881144",
"0.5880107",
"0.58694035",
"0.5865923",
"0.5864867",
"0.5864754"
]
| 0.7393945 | 4 |
Populate a Stack with data contained in an existing Arraylist. The first item in the ArrayList will be the first entered in the Stack (at the bottom) | @Override
public void fill(ArrayList<T> list) throws StackOverflowException {
//Iterate through the ArrayList. Copy each item, and add the copy to the Stack
for(int i = 0; i < list.size(); i++) {
T newItem = list.get(i);
this.push(newItem);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void fill(ArrayList<T> list) {\r\n\t\t//Copy of list\r\n\t\tArrayList<T> copyData = list;\r\n\t\t// Add copy of list to the Stack\r\n\t\tfor (T e: copyData) {\r\n\t\t\tdata.add(e);\r\n\t\t}\r\n\t}",
"public ArrayListStack(){\r\n theData = new ArrayList<E>();\r\n }",
"public MyStack() {\n \tlist = new ArrayList<Integer>();\n }",
"public void push(E object) {stackList.insertAtFront(object);}",
"public Stack() {\n \tstack = new ArrayList<T>();\n }",
"public ListStack() {\n\t\tlist = new ArrayList<>();\n\t}",
"@Test\r\n public void testStackstack() {\r\n StackArrayList<Integer> stack = new StackArrayList<Integer>();\r\n\r\n stack.push(1);\r\n stack.push(2);\r\n stack.push(3);\r\n stack.push(4);\r\n stack.push(5);\r\n\r\n assertEquals(5, stack.peek());\r\n assertEquals(5, stack.pop());\r\n assertEquals(4, stack.size());\r\n }",
"public StackDynamic(ListIF<T> list) {\r\n\t\tthis();\r\n\t\tif(list != null)\r\n\t\t\tif(!list.isEmpty()) {\r\n\t\t\t\telement = list.getFirst();\r\n\t\t\t\tnext = new StackDynamic<T>(list.getTail());\r\n\t\t\t}\r\n\t}",
"@Override\r\n\tpublic void fill(ArrayList<T> list) throws StackOverflowException{\r\n\t\tfor (T e : list) {\r\n\t\t\tpush(e);\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void excecute() {\n\t\tdata = stack.pop();\r\n\t\tJList1.setListData(stack.getStackVector()); // refresh the JList\r\n\t}",
"public Stack() {\r\n\t\tthis.items = new ArrayList<>();\t\r\n\t}",
"public ArrayListStack() {\n\t\telements = new ArrayList<>();\n\t}",
"public Stack(List<T> items) {\n \tstack = new ArrayList<T>();\n \tfor(T item: items){\n \t\tstack.add(item);\n \t}\n }",
"public void printStack(Stack list){\n while(!list.isEmpty()){\n temp.push(list.peek());\n list.pop();\n }\n\n //printing temp and inserting items back to list\n while(!temp.isEmpty()){\n System.out.println(temp.peek()+\" \");\n list.push(temp.peek());\n temp.pop();\n }\n System.out.println();\n\n }",
"void pushFront(T value) throws ListException;",
"public ArrayStack() {\n\t\ttop = 0;\t\t\t\t\t\t\t\t\t\t// points to the first element. Since empty, points 0\n\t\tstack = (T[]) (new Object[DEFAULT_CAPACITY]);\t// Casting to whatever is our desired element.\n\t}",
"@Override\n public void push(T element){\n arrayAsList.add(element);\n stackPointer++;\n }",
"void pushBack(T value) throws ListException;",
"public MyStack() {\n list = new LinkedList<>();\n list2 = new LinkedList<>();\n }",
"public static void push(Object data) {\n list.add(data);\n }",
"public void push(T data) {\n if((stackPointer + 1) == Array.getLength(this.elements))\n expandStack();\n this.elements[++stackPointer] = data;\n }",
"public void push(T newData) throws StackOverflowException{\r\n\t\t\r\n\t\t// check if stack is full\r\n\t\tif(top>MAX_SIZE)\r\n\t\t\tthrow new StackOverflowException();\r\n\t\t\r\n\t\tstackData.add(newData); //add new data to the stack\r\n\t\ttop++;\r\n\t\r\n\t}",
"public CustomStack() {\n this.myCustomStack = new Object[10]; //array starts with 10 spaces, all empty\n numElements = 0; //stack starts with zero elements\n\n }",
"@Override\n <E> Stack<E> getStack(String list) {\n if (list.equalsIgnoreCase(\"Simple\")){\n return new StackSinglyLinkedList<E>();\n\n } else if (list.equalsIgnoreCase(\"Doble\")){\n return new StackDoublyLinkedList<E>();\n\n } else if (list.equalsIgnoreCase(\"Circular\")){\n return new StackCircularList<E>();\n\n }\n\n return null;\n }",
"public void push(T data)\n {\n ll.insert(ll.getSize(), data);\n }",
"@Override\r\n\tpublic void undo() {\n\t\tstack.push(data);\r\n\t\tJList1.setListData(stack.getStackVector()); // refresh the JList\r\n\r\n\t}",
"public void pushStack(int newStack){\n // creates a new object\n GenericStack temp = new GenericStack(newStack);\n temp.next = top;\n top = temp;\n }",
"Stack<Integer> createStack() {\n\t\tStack<Integer> my_stack = new Stack<Integer>();\n\t\t\n\t\t// Add all numbers in linkedlist to stack one by one\n\t\tNode curr = head;\n\t\twhile (curr != null) {\n\t\t\tmy_stack.push(curr.data);\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn my_stack;\n\t}",
"public void push(Object ob){\n \t Stack n_item=new Stack(ob);\n \tn_item.next=top;\n \ttop=n_item;\n }",
"public static void main(String[] args) {\n// System.out.println(\"as.getSize() == \" + as.getSize());\n// as.pop();\n// System.out.println(\"as.pop() == \" + as);\n// System.out.println(\"as.peek() == \" + as.peek());\n// as.push(\"17\");\n// System.out.println(as);\n\n LinkedListStack<Integer> stack = new LinkedListStack<>();\n\n for(int i = 0 ; i < 5 ; i ++){\n stack.push(i);\n System.out.println(stack);\n }\n\n stack.pop();\n System.out.println(stack);\n\n }",
"public void push(T data) {\n numberList.addAtStart(data);\n }",
"public BasicStack()\n\t{\n\t\tlist = new LinkedList<T>();\n\t}",
"@Override\r\n\tpublic void push(AnyType data) throws StackException {\n\t\ttop = new Node<AnyType>(data,top);\r\n\t}",
"public void push(Employee employee){\n if(isFull()){\n Employee[] newArray = new Employee[2 * employeeStack.length];\n // System.arraycopy(srcArray, srcPos, destisnationArray, destPos, length);\n System.arraycopy(employeeStack, 0, newArray, 0, employeeStack.length);\n employeeStack = newArray;\n }\n employeeStack[top++] = employee;\n }",
"public void push(Object element) {\r\n\t\tal.add(element, al.listSize);\r\n\t}",
"@Override\n public void push(T data) {\n if (data != null) {\n if (size == backing.length) {\n T[] newBacking = (T[]) new Object[backing.length * 2];\n for (int i = 0; i < size; i++) {\n newBacking[i] = backing[i];\n }\n newBacking[size++] = data;\n backing = newBacking;\n } else {\n backing[size] = data;\n size++;\n }\n } else {\n throw new IllegalArgumentException(\"Can't push null onto stack\");\n }\n }",
"public ObjectStack() {collection = new ArrayIndexedCollection();}",
"public void push(int data)\r\n\t{\n\t\tListNode newNode = new ListNode(data);\r\n\t\tnewNode.setNext(top);\r\n\t\ttop=newNode;\r\n\t\tlength++;\r\n\t\t\r\n\t\t/*//in this case we add an element one after another and top pointer move as we insert/delete any node.\r\n\t\t * \r\n\t\t * issue with this approach is : while do the pop () - we need a starting node here we are not maintaining the 'head' pointer.\r\n\t\t *==\r\n\t\tListNode newNode = new ListNode(data);\r\n\t\tif(top==null)\r\n\t\t\ttop= newNode;\r\n\t\ttop.setNext(newNode);\r\n\t\ttop=newNode;\r\n\t\tlength++;*/\r\n\t\t\r\n\t}",
"public void push(E value) {\n list.addLast(value);\n index++;\n }",
"@Override\n\tpublic void push(Object x) {\n\t\tlist.addFirst(x);\n\t}",
"public Stack()\n\t{\n\t\tlist = new LinkedList<T>();\n\t}",
"public DSAStack()\n {\n stack = new DSALinkedList<E>();\n }",
"public MinStack() {\r\n list = new LinkedList();\r\n }",
"Stack(int sizeYouWantYourDataStuctureToBe){\n stackArray = new int [sizeYouWantYourDataStuctureToBe];\n }",
"public SolutionStack()\n {\n stack = new ArrayList<ILocation>(0);\n top = 0;\n }",
"@Override\n public void push(E z){\n if(isFull()){\n expand();\n System.out.println(\"Stack expanded by \"+ expand+ \" cells\");\n }\n stackArray[count] = z;\n count++;\n }",
"@SubL(source = \"cycl/stacks.lisp\", position = 2898) \n public static final SubLObject stack_push(SubLObject item, SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n _csetf_stack_struc_elements(stack, cons(item, stack_struc_elements(stack)));\n _csetf_stack_struc_num(stack, Numbers.add(stack_struc_num(stack), ONE_INTEGER));\n return stack;\n }",
"public MyDynamicStack() {\r\n items = new LinkedList<>();\r\n }",
"public void add(T val){\n myCustomStack[numElements] = val; // myCustomStack[0] = new value, using numElements as index of next open space\n numElements++; //increase numElements by one each time a value is added to the stack, numElements will always be one more than number of elements in stack\n resize(); //call resize to check if array needs resizing\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(int value){\n //To be written by student\n localSize++;\n top++;\n if(localSize>A.getSize()){\n A.doubleSize();\n try{\n A.modifyElement(value,top);\n }catch(Exception c){c.printStackTrace();}\n }\n else{try{\n A.modifyElement(value,top);\n }catch(Exception a){a.printStackTrace();} }\n }",
"public T push(T data){\r\n \tboolean sorted = false;\r\n \twhile(!sorted) {\r\n \t\tif(stack1.empty() || data.compareTo(stack1.peek()) < 0) {\r\n \t\t\tstack2.push(data);\r\n \t\t\tsorted = true;\r\n \t\t}else {\r\n \t\t\tstack2.push(stack1.pop());\r\n \t\t}\r\n \t}\r\n \twhile(stack1.size() > 0) {\r\n \t\tstack2.push(stack1.pop());\r\n \t}\r\n \twhile(stack2.size() > 0) {\r\n \t\tstack1.push(stack2.pop());\r\n \t}\r\n \t++this.size;\r\n \treturn data;\r\n }",
"public void push (E item){\n this.stack.add(item);\n }",
"public void push(Item item){\n this.stack.add(item);\n\n }",
"@Override\r\n\tpublic void push(E e) {\r\n\t\tif (size() == stack.length)\r\n\t\t\texpandArray();\r\n\t\tstack[++t] = e; // increment t before storing new item\r\n\t}",
"public void push(T entry)\n { \n first = push(entry, first);\n }",
"public void push(int data){\n \tif(top == size)\n \tSystem.out.println(\"Stack is overflow\");\n \telse{\n \ttop++;\n \telements[top]=data;\n \t} \n\t}",
"public void push(T data) {\n top = new StackNode(data, top);\n }",
"public interface Stack<E> {\r\n \r\n /** \r\n * Pre: Se ingresa el dato\r\n * @param data se ingresa un dato para agregar al Vector\r\n * Post: Se guarda el dato en Stack\r\n */\r\n public void push(E data);\r\n\r\n /** \r\n * Pre: Estan todos los datos en el Stack\r\n * @return E se regresa un item.\r\n * Post: Se regresa y elimina un dato del Stack\r\n */\r\n public E pop();\r\n\r\n /** \r\n * Pre: Se encuentra el Stack con sus datos\r\n * @return E se regresa cualquier tipo de dato\r\n * @throws EmptyStackException regresa un error\r\n * Post: Se regresa el dato sobre la lista\r\n */\r\n public E peek();\r\n\r\n /** \r\n * Pre:Se encuentra el Stack\r\n * @return boolean se regresa un valor True o False\r\n * Post: Si el Stack se encuentra vacio este regresa True\r\n */\r\n public boolean empty();\r\n\r\n /** \r\n * Pre:Se encuentra el Stack \r\n * @return int se regrea cualquier numero\r\n * Post: Se devuelve el numero de objetos que tiene el Stack\r\n */\r\n public int size();\r\n\r\n}",
"public void push(char item) {\n StackNode stackNode = new StackNode(item);\n\n if (top == null) { //if list is empty\n top = stackNode;\n }\n else { //list is not empty\n stackNode.next = top;\n top = stackNode;\n }\n }",
"public void push(T value) {\n top = new Entry<>(value, top); // diamond operator (syntactic sugar)\n }",
"public void pop() {\r\n \t Queue<Integer> temp=new LinkedList<Integer>();\r\n \t int counter=0;\r\n \t while(!stack.isEmpty()){\r\n \t temp.add((Integer) stack.poll());\r\n \t counter++;\r\n \t \r\n \t }\r\n \t while(counter>1)\r\n \t {\r\n \t \r\n \t stack.add(temp.poll());\r\n \t counter--;\r\n \t }\r\n }",
"public static void main(String[] args) {\n\t\t \r\n\t\tArrayList datos = new ArrayList(50);\r\n\t\t\r\n\t\t//insertar datos:\r\n\t\t\r\n\t\tdatos.add(5);\r\n\t\tdatos.add(10);\r\n\t\tint x = 100;\r\n\t\tdatos.add(x);\r\n\t\t\r\n\t\tfor(int i = 0; i<10 ; i++) {\r\n\t\t\t\r\n\t\t\tdatos.add(i+1);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(datos);\r\n\t\t//recuperar tamaņo de arraylist\r\n\t\t\r\n\t\tSystem.out.println(datos.size());\r\n\t\t\r\n\t\t//Stack-Pila (Last in First out)\r\n\t\t//Push : insertar elementos en la parte posterior de la pila \r\n\t\t//Pop : eliminar elementos(eliminara el ultimo elemento aņadido al stack)\r\n\t\t\r\n\t\tStack miPila = new Stack();\r\n\t\tmiPila.push(\"Lola\");\r\n\t\tmiPila.push(\"Carmen\");\r\n\t\tmiPila.push(\"La Mona Lisa\");\r\n\t\tmiPila.push(\"El Quijote\");\r\n\t\t\r\n\t\t//miPila.clear();//Limpiar el stack vaciarla\r\n\t\t\r\n\t\tString elemento;\r\n\t\telemento = (String)miPila.pop();\r\n\t\t\r\n\t\tSystem.out.println(elemento);\r\n\t\t\r\n\t\t\r\n\t\t//Queu-cola(LIFO: Last in first out)\r\n\t\t//add : aņadir elementos a la queu\r\n\t\t//poll : eliminar el ultimo elemento aņadido\r\n\t\t//peek : consulta ultimo elemento aņadido a la cola\r\n\t\t\r\n\t\tQueue cola = new LinkedList();\r\n\t\t\r\n\t\tcola.add(5);\r\n\t\tcola.add(10);\r\n\t\tcola.add(15);\r\n\t\t\r\n\t\tSystem.out.println(cola.poll());\r\n\t\tSystem.out.println(cola);\r\n\t\t\r\n\t\t//HashTable\r\n\t\t\r\n\t\t\r\n\t\tHashtable tabla = new Hashtable();\r\n\t\t//Hashtable<Integer, String> tabla2 = new Hashtable();\r\n\t\ttabla.put(1, \"Apple\");\r\n\t\ttabla.put(2, \"Sony\");\r\n\t\ttabla.put(6, \"Samsung\");\r\n\t\ttabla.put(\"ferrari\", 400);\r\n\t\t\r\n\t\tSystem.out.println(tabla.get(\"ferrari\"));\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\t\r\n\t\t\r\n\r\n\t}",
"public void initialize_stacks(ArrayList<ArrayList<Stack<Integer>>> stacks) {\n\t\tfor (int i=0; i<size*size; i++) {\n\t\t\tstacks.add(new ArrayList<Stack<Integer>>());\n\t\t\tfor (int j=0; j<size*size; j++) {\n\t\t\t\tstacks.get(i).add(new Stack<Integer>());\n\t\t\t}\n\t\t}\n\t}",
"static void stackPush(Stack<Integer> stack)\r\n\t{\r\n\t\tfor(int i=0;i<5;i++)\r\n\t\t{\r\n\t\t\tstack.push(i*5);\r\n\t\t}\r\n\t\tSystem.out.println(\"Printing the stack value which is push:\");\r\n\t\tSystem.out.println(\"Push :\"+stack +\"\\nsize of stack: \"+ stack.size());\r\n\t}",
"@Override\n public void push(int value) {\n Entry newElement = new Entry(value);\n if (size == 0) {\n first = newElement;\n last = newElement;\n } else {\n first.previous = newElement;\n newElement.next = first;\n first = newElement;\n }\n size++;\n }",
"public void push(T value) {\n \tstack.add(value);\n }",
"public void push(E inValue)\n {\n stack.insertFirst(inValue);\n }",
"public NotationStack(int size) {\r\n\t\tstack = new ArrayList<T>(size);\r\n\t\tthis.size = size;\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 }",
"@Test\n public void testStack() {\n DatastructureTest.STACK.push(3);\n DatastructureTest.STACK.push(7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == -1);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == -1);\n }",
"public void push(T dato );",
"public void push(T data) {\n\t\tStackNode new_node = new StackNode<>(data);\n\t\tif (head.data == null) {\n\t\t\thead = new_node;\n\t\t\tthis.size++;\n\t\t\treturn;\n\t\t}\n\t\tnew_node.next = head;\n\t\thead = new_node;\n\t\tthis.size++;\n\t}",
"void push(T item) {\n contents.addAtHead(item);\n }",
"private static void push(Stack<Integer> top_ref, int new_data) {\n //Push the data onto the stack\n top_ref.push(new_data);\n }",
"void push(int element);",
"public static void main(String[] args) {\n Solution solution = new Solution();\n TreeNode root = new TreeNode(1);\n root.left = new TreeNode(2);\n root.left.left = new TreeNode(6);\n root.left.left.right = new TreeNode(10);\n root.left.left.right.left = new TreeNode(-1);\n root.left.right = new TreeNode(9);\n\n root.right = new TreeNode(3);\n root.right.right = new TreeNode(5);\n root.right.left = new TreeNode(4);\n root.right.left.left = new TreeNode(7);\n root.right.left.right = new TreeNode(8);\n \n solution.stackList(root);\n for (int i = 0 ; i < solution.list.size(); i++) System.out.print(solution.list.get(i) + \" \");\n }",
"public void push(T element) {\n if(isFull()) {\n throw new IndexOutOfBoundsException();\n }\n this.stackArray[++top] = element;\n }",
"public MyStack(){\n\ta = new String[10];\n\ttop = -1;\n }",
"private void fillPRStack() {\n for (int i = 0; i < PRToVR.length - 1; i++) {\n PRStack.push(i);\n }\n }",
"public void populate(List data) {\n visit(m_root, data);\n }",
"public NotationStack() {\r\n\t\tstack = new ArrayList<T>(1000);\r\n\t\tsize = 1000;\r\n\t}",
"public MyStack() {\r\n stack = new LinkedList<>();\r\n }",
"public ArrayStack(){\r\n\t\tstack= new Object[DEFAULT_SIZE];\r\n\t\t}",
"public void push(int x) {\n \tlist.add(x);\n }",
"public void push(Item item)\n {\n top = new Node<Item>(item, top);\n N++;\n }",
"public void push(String data) {\n\t\t\tListNode temp=new ListNode(data);\n\t\t\ttemp.setNext(top);\n\t\t\ttop=temp;\n\t\t\tlength++;\n\t\t}",
"public ObjectStack() {\n this.collection = new ArrayIndexedCollection();\n }",
"public Stacked(){\n count = 0;\n stackArray = (E[]) new Object[START_CAP];\n }",
"static void push(Stack<Integer> top_ref, int new_data) {\r\n // Push the data onto the stack\r\n top_ref.push(new_data);\r\n }",
"public void push(E o) \r\n {\r\n list.add(o);\r\n }",
"@Test\r\npublic void testTop()\r\n{\n\tassertEquals(null,myStack.top());\r\n\r\n\tassertEquals(true, myStack.push(new Element(2,\"Basel\")));\t\r\n\tassertEquals(true, myStack.push(new Element(4,\"Wil\")));\t\r\n\tassertEquals(true, myStack.push(new Element(27,\"Chur\")));\r\n\tassertEquals(27,myStack.top().getId());\r\n\tassertEquals(27,myStack.pop().getId());\r\n\tassertEquals(4,myStack.top().getId());\r\n\tassertEquals(4,myStack.pop().getId());\r\n\tassertEquals(2,myStack.pop().getId());\r\n\t\r\n\t// Stack leer\r\n\tassertEquals(null,myStack.top());\r\n\r\n}",
"public MyStack() {\n One = new LinkedList<>();\n Two = new LinkedList<>();\n }",
"public void pushFront(O o)\r\n {\r\n //create new VectorItem\r\n VectorItem<O> vi = new VectorItem<O> (o,null, first);\r\n \r\n first = vi;\r\n if (isEmpty()) last = vi;\r\n count++;\r\n }",
"public void push(E data);",
"@Test\n public void push() {\n SimpleStack stack = new DefaultSimpleStack();\n Item item = new Item();\n\n // When the item is pushed in the stack\n stack.push(item);\n\n // Then…\n assertFalse(\"The stack must be not empty\", stack.isEmpty());\n assertEquals(\"The stack constains 1 item\", 1, stack.getSize());\n assertSame(\"The pushed item is on top of the stack\", item, stack.peek());\n }",
"@SuppressWarnings({\"unchecked\"})\n private void expandStack() {\n T[] newStack;\n \n newStack = (T[]) new Object[Array.getLength(this.elements) + 1];\n for( int i = 0; i < Array.getLength(this.elements); i++ )\n newStack[i] = this.elements[i];\n this.elements = newStack;\n }",
"public void push(State s0) {\n\t\tsList.add(s0);\r\n\t}",
"public void push(E it){\r\n Node<E> curr = new Node<E>(it);\r\n curr.setNext(top);\r\n top = curr;\r\n size++;\r\n }",
"private static ArrayStack stackOfPatients() {\r\n Patient p0 = new Patient(\"Jerry Smith\", 3);\r\n Patient p1 = new Patient(\"Morty Smith\", 9);\r\n Patient p2 = new Patient(\"Saint Petes\", 1);\r\n Patient p3 = new Patient(\"Anner Bananer\", 1);\r\n Patient p4 = new Patient(\"Bruce Wayne\", 4);\r\n Patient p5 = new Patient(\"Thomas Muller\", 8);\r\n Patient p6 = new Patient(\"Mario Gotze\", 6);\r\n Patient p7 = new Patient(\"Philip Lahm\", 5);\r\n Patient p8 = new Patient(\"Sir Tiny Eyes\", 3);\r\n Patient p9 = new Patient(\"Celery Man\", 10);\r\n\r\n ArrayStack<Patient> patientStack = new ArrayStack<>();\r\n patientStack.push(p0);\r\n patientStack.push(p6);\r\n patientStack.push(p5);\r\n patientStack.push(p3);\r\n patientStack.push(p8);\r\n patientStack.push(p4);\r\n patientStack.push(p7);\r\n patientStack.push(p1);\r\n patientStack.push(p2);\r\n patientStack.push(p9);\r\n\r\n return patientStack;\r\n\r\n }"
]
| [
"0.721824",
"0.68481266",
"0.6699406",
"0.6627538",
"0.6551404",
"0.65380204",
"0.6519649",
"0.6434457",
"0.6376222",
"0.6322608",
"0.63197553",
"0.6292987",
"0.6270424",
"0.6219266",
"0.60572416",
"0.60521",
"0.60147125",
"0.601316",
"0.59564394",
"0.59475356",
"0.58731043",
"0.58325917",
"0.5824559",
"0.5817603",
"0.58087856",
"0.58027697",
"0.5798979",
"0.57961094",
"0.57934046",
"0.57809174",
"0.5768412",
"0.5768099",
"0.57634676",
"0.5762947",
"0.575941",
"0.5752823",
"0.57519364",
"0.57485276",
"0.57482624",
"0.57308924",
"0.5727948",
"0.5720733",
"0.57165885",
"0.5711181",
"0.570492",
"0.5702746",
"0.570238",
"0.56904596",
"0.5683622",
"0.56820065",
"0.5678677",
"0.5678101",
"0.56738377",
"0.5673649",
"0.5669453",
"0.5664895",
"0.5659225",
"0.56550086",
"0.5652842",
"0.5652403",
"0.5630928",
"0.56254774",
"0.56223136",
"0.56212765",
"0.5611538",
"0.56107956",
"0.5605384",
"0.5601746",
"0.5592668",
"0.55847436",
"0.5575421",
"0.5571816",
"0.5568152",
"0.555646",
"0.55548066",
"0.55519015",
"0.55468833",
"0.5543623",
"0.5529754",
"0.5529392",
"0.5529104",
"0.5526939",
"0.55205774",
"0.5512114",
"0.55093414",
"0.55006623",
"0.5500114",
"0.54892516",
"0.5489032",
"0.5485442",
"0.54834056",
"0.5482758",
"0.5479827",
"0.5477802",
"0.54767114",
"0.54744",
"0.54704386",
"0.5464509",
"0.5464037",
"0.5456973"
]
| 0.71388286 | 1 |
The next Node in line Create a Node for wrapping a given piece of data. Used as the bottom Node of the stack | public Node(T data) {
this.data = data;
this.nextNode = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Node<UnderlyingData> getBottomLineNode();",
"public ListNode<T> getNext();",
"Node<UnderlyingData> getCurrentLineNode();",
"Optional<Node<UnderlyingData>> nextNode(Node<UnderlyingData> node);",
"public void insertAfterCurernt(T aData){\r\n if(curr == null){\r\n return;\r\n }\r\n curr.link = new ListNode(aData,curr.link);\r\n }",
"public LinearNode<T> getNext() {\r\n\t\t\r\n\t\treturn next;\r\n\t\r\n\t}",
"public DNode getNext() { return next; }",
"public HL7DataTree next() {\n final int size = Util.size(this.list), i = this.next == null ? size : this.list.indexOf(this.next) + 1;\n final HL7DataTree curr = this.next;\n \n this.next = i == size ? more() : this.list.get(i);\n \n return curr;\n }",
"@Override\r\n\t\tpublic Node getNextSibling()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"Node<UnderlyingData> getTopLineNode();",
"HNode getNextSibling();",
"public Node getNext() { return next; }",
"public Node next(Point p){\n\t\t// int r, Point p, LinkedList<Point> parents\n\t\t// Time? Previous time + distance\n\t\tLinkedList<Point> nextParents = new LinkedList<Point>(parents);\n\t\tnextParents.add(p);\n\t\t\n\t\tdouble nextTime = this.time + (pos.distance(p) * this.speed);\n\t\t\n\t\treturn new Node(nextTime, p, nextParents, this.speed);\n\t}",
"public Node<S> getNext() { return next; }",
"@Override\n\tpublic Node getNextSibling() {\n\t\treturn null;\n\t}",
"public ShapeNode getNext()\n {\n return next;\n }",
"public LLNode<T> getNext() {\n return next;\n }",
"public SimpleNode getNext() {\n return next;\n }",
"private void addNodeAtTheEnd(int data) {\n ListNode newNode = new ListNode(data);\n if (head == null) {\n head = newNode;\n return;\n }\n ListNode current = head;\n while (current.next != null) {\n current = current.next;\n }\n current.next = newNode;\n }",
"Split getNext();",
"public Node setNextNode(Node node);",
"public Node getNext(){\n\t\t\treturn next;\n\t\t}",
"public Node<E> getNext() { return next; }",
"void addAtBegning(int data){\n\t\t\n\t\tNode newNode = new Node(data);\n\t\tnewNode.next = head;\n\t\tif(head != null){\n\t\t\tNode temp = head;\n\t\t\twhile(temp.next != head)\n\t\t\t\ttemp = temp.next;\n\t\t\ttemp.next = newNode;\n\t\t}else{\n\t\t\tnewNode.next = newNode;\n\t\t}\n\t\thead = newNode;\n\t}",
"private void addToHead() {\n Node currentNode = null;\n switch (head.dir) {\n case LEFT:\n currentNode = new Node(head.row - 1, head.col, head.dir);\n break;\n case RIGHT:\n currentNode = new Node(head.row + 1, head.col, head.dir);\n break;\n case UP:\n currentNode = new Node(head.row, head.col - 1, head.dir);\n break;\n case DOWN:\n currentNode = new Node(head.row, head.col + 1, head.dir);\n break;\n }\n currentNode.next = head;\n head.pre = currentNode;\n head = currentNode;\n size++;\n }",
"public Node getNext(){\n\t\treturn next;\n\t}",
"public node getNext() {\n\t\t\treturn next;\n\t\t}",
"private void addNodeAtTheBeginning(int data) {\n ListNode newNode = new ListNode(data);\n if (head == null) {\n head = newNode;\n return;\n }\n newNode.next = head;\n head = newNode;\n }",
"public Node<D> getNext(){\n\t\treturn next;\n\t}",
"public Node<T> next(int level)\r\n {\r\n if(level >= height || level < 0) //If trying to access area out of bounds. \r\n return null;\r\n \r\n return pointers.get(level);\r\n }",
"public Node getNextNode() {\n return nextNode;\n }",
"public CommitNode getNext(){\r\n\t\treturn next;\r\n\t}",
"public SlideNode getNext() {\n\t\treturn next;\n\t}",
"void setBottomLineNode(Node<UnderlyingData> bottomLineNode);",
"@Override\n public ListNode<T> push(T e) {\n \treturn new ListNode<T>(e, this);\n }",
"ListNode getNext() { /* package access */ \n\t\treturn next;\n\t}",
"Node<T> getNext() {\n\t\t\treturn nextNode;\n\t\t}",
"public CharStackNode getNext() {\n //TODO add code here\n return next;\n }",
"public Node(Object _data, Node _next) {\r\n\t\t\tnext = _next;\r\n\t\t\tdata = _data;\r\n\t\t}",
"public ListNode getNext()\r\n {\r\n return next;\r\n }",
"public Node getNext()\r\n\t{\r\n\t\treturn next;\r\n\t}",
"public Node getNext()\r\n\t{\r\n\t\treturn next;\r\n\t}",
"public Node getNext()\n\t{\n\t\treturn next;\n\t}",
"public Node getNext()\n\t{\n\t\treturn next;\n\t}",
"@Override\n\tpublic E next() {\n\t\twhile (curr != null) {\n\t\t\tstack.push(curr);\n\t\t\tcurr = curr.getLeft();\n\t\t}\n\t\n\t\tcurr = stack.pop();\n\t\tTreeNode<E> out = curr;\n\t\tcurr = curr.getRight();\n\t\t\n\t\treturn out.getData();\n\t}",
"private ListNode add(ListNode current, T datum) {\n\t\tif (current == null) {\n\t\t\tsize++;\n\t\t\treturn new ListNode(datum);\n\t\t}\n\t\telse {\n\t\t\tcurrent.next = add(current.next, datum);\n\t\t\treturn current;\n\t\t}\n\t}",
"public com.Node<T> getNextRef() {\n\t\treturn null;\n\t}",
"public Node getNext() {\n\t\treturn next;\n\t}",
"public Node getNext() {\r\n\t\treturn next;\r\n\t}",
"public final Node<N> next() {\n final Node<N> sink = this.next;\n this.prepareNext();\n return sink;\n }",
"public ListNode<E> getNext()\n {\n return nextNode;\n }",
"public void push(int new_data) {\n\t\tNode new_Node = new Node(new_data);//Create a new node with 7 as data.\n\t\tnew_Node.next = head; // Node's next Addr part points to the HEAD.\n\t\tnew_Node.prev = null; // Node's prev part is NULL.\n\t\tif (head != null)\n\t\t\thead.prev = new_Node; // Take the current HEAD Node and assign this newly created node's address to the current HEAD's prev part\n\t\thead = new_Node; // Make the current node as a new HEAD.\n\t}",
"public Node<T> getNextNode() {\n\t\treturn nextNode;\n\t}",
"public abstract void generateNextBlock();",
"public Node getNext() {\n return next;\n }",
"public MoveAddress nextSibling() {\n MoveAddress newSibling = new MoveAddress(this);\n if(newSibling.mElements.size() < 2) throw new IllegalArgumentException(\"No variations to add a sibling to! \" + this);\n\n Element variationNode = newSibling.mElements.get(newSibling.mElements.size() - 2);\n variationNode.rootIndex++;\n\n Element leafNode = newSibling.mElements.get(newSibling.mElements.size() - 1);\n leafNode.rootIndex = 1;\n leafNode.moveIndex = 0;\n\n return newSibling;\n }",
"public void addNodeAfterThis( int newdata ) {\r\n\t\tlink = new IntNode( newdata, link );\r\n\t}",
"public node (int newData, node newNext){\r\n\t this.data = newData;\r\n\t this.next = newNext;\r\n\t}",
"public void insertAfter( DLLNode<T> current, T data ){\n\t\t//create new node that contains data\n\t\tDLLNode<T> newNode = new DLLNode<T>();\n\t\tnewNode.setData( data );\n\t\t\n\t\t//DL's code\n\t\tDLLNode<T> nextNode = current.next;\n\t\t\n\t\tnewNode.setPrev( current );\n\t\t//DL's code\n\t\tnewNode.setNext( nextNode );\n\t\t\n\t\t//DL's code\n\t\tif (nextNode != null)\n\t\t\tnextNode.setPrev(newNode);\t\t\t\n\t\t\t//current.getPrev().setNext( newNode );\n\t\t\n\t\t//DL's code\n\t\tcurrent.setNext(newNode);\n\t\t\n\t\t//increase size by 1\n\t\tsize++;\n\t}",
"public Node<T> getNext() {\n\t\treturn next;\n\t}",
"public Node getNext() {\n return next;\n }",
"public RBNode nextNode (RBNode x){\r\n\t\t// there are three cases: \r\n\t\t// next node is above x; it is below x; there is no next node\r\n\t\t\r\n\t\t// Case 1: next node is below\r\n\t\tif (x.right != nil) return treeMinimum(x.right);\r\n\t\t\r\n\t\t// Case 2,3: next node is above or there is no next node\r\n\t\telse return firstRightAncestor(x); // returns nil if none exists\r\n\t}",
"static\nNode getNode(\nint\ndata) \n\n{ \n\n// allocate node \n\nNode newNode = \nnew\nNode(); \n\n\n// put in the data \n\nnewNode.data = data; \n\nnewNode.prev = newNode.next = \nnull\n; \n\nreturn\nnewNode; \n\n\n}",
"private void editPipelineDefAddNextNode(PipelineDefinition pipelineDef) {\n PipelineDefinitionNode newPipelineNode = new PipelineDefinitionNode(\n expectedModuleDef3.getName());\n pipelineDef.getRootNodes()\n .get(0)\n .getNextNodes()\n .get(0)\n .getNextNodes()\n .add(newPipelineNode);\n newPipelineNode.setUnitOfWork(new ClassWrapper<UnitOfWorkTaskGenerator>(\n new TestUowTaskGenerator()));\n newPipelineNode.setStartNewUow(false);\n }",
"public Node(E data, Node next) {\n\t\t\tthis.data = data;\n\t\t\tthis.next = next;\n\t\t}",
"private void addAfter(Node n, String data)\n {\n Node next = n.next;\n n.next = new Node(data, next);\n size++;\n }",
"private void findNewNextInStack() {\n if (stack.empty()) {\n next = Chunk.NONE;\n return;\n }\n next = stack.pop();\n long valueReference = INVALID_VALUE_REFERENCE;\n if (next != Chunk.NONE) {\n valueReference = getEntryFieldLong(next, OFFSET.VALUE_REFERENCE);\n }\n while (next != Chunk.NONE && valueReference == INVALID_VALUE_REFERENCE) {\n if (!stack.empty()) {\n next = stack.pop();\n if (next != Chunk.NONE) {\n valueReference = getEntryFieldLong(next, OFFSET.VALUE_REFERENCE);\n }\n } else {\n next = Chunk.NONE;\n return;\n }\n }\n }",
"public SNode(T data, SNode<T> next) {\n this.data = data;\n this.next = next;\n }",
"void setCurrentLineNode(Node<UnderlyingData> currentLineNode);",
"private void addNodeAtIndex(int data, int index) {\n ListNode newNode = new ListNode(data);\n if (head == null) {\n head = newNode;\n return;\n }\n int count = 0;\n ListNode current = head;\n while (count < index - 1) {\n count++;\n current = current.next;\n }\n newNode.next = current.next;\n current.next = newNode;\n }",
"@SuppressWarnings(\"unused\")\n public Node(Object dataValue, Node nextValue) \n {\n next = nextValue;\n data = dataValue;\n }",
"public static Node buildNextNode(Node Parent, Point newSpace){\r\n //start with a blank node\r\n Node child = new Node();\r\n \r\n //point its parent to the root node\r\n child.parent = Parent;\r\n \r\n //copy the parent's state\r\n for (int i = 0; i<puzzleSize; i++){\r\n for (int j = 0; j<puzzleSize; j++)\r\n child.state[i][j] = Parent.state[i][j];\r\n }\r\n \r\n //add 1 to the depth\r\n child.depth = Parent.depth + 1;\r\n \r\n //set the space to the argument provided\r\n child.setSpace(newSpace);\r\n \r\n //find value in position of newSpace, replace with zero\r\n int x = (int)newSpace.getX();\r\n int y = (int)newSpace.getY();\r\n int val = child.getState()[x][y];\r\n child.setState(x, y ,0);\r\n \r\n // find previous space, replace with value\r\n Point oldSpace = Parent.getSpace();\r\n int i = (int)oldSpace.getX();\r\n int j = (int)oldSpace.getY();\r\n child.setState(i, j, val);\r\n \r\n return child;\r\n }",
"public Node<E> getNext() {\r\n\t\treturn next;\r\n\t}",
"public HIR\n getNextExecutableNode();",
"@Override public DataRefNode getNextDataRefNode() {\n throw new UnsupportedOperationException(\"Unsupported operation\");\n }",
"public final void buildNext() {\n branch++;\n }",
"@Override\r\n\tpublic String next() {\n\t\tString nx;\r\n\r\n\t\tnx = p.getNext();\r\n\r\n\t\tif (nx != null) {\r\n\t\t\tthisNext = true;\r\n\t\t\tinput(nx);\r\n\t\t}\r\n\t\treturn nx;\r\n\t}",
"@Override\n public void addToEnd(T data){\n Node<T> dataNode = new Node<>();\n\n dataNode.setData(data);\n dataNode.setNext(null);\n\n Node<T> tempHead = this.head;\n while(tempHead.getNext() != null) {\n tempHead = tempHead.getNext();\n }\n\n tempHead.setNext(dataNode);\n }",
"public Cell getNext()\n { return next; }",
"private int getNextLine() {\n return peekToken().location.start.line;\n }",
"T addAtTail(T t) {\n new Node<T>(t, this, this.prev);\n return this.next.getData();\n }",
"public Node(int data) { // Just data in constructor would suffice, clients wont pass next anyways\n this.data = data;\n }",
"protected final Node<N> getNext() {\n return this.next;\n }",
"void setTopLineNode(Node<UnderlyingData> topLineNode);",
"void push(int new_data){\n /* 1 & 2: Allocate the Node &\n Put in the data*/\n Node new_node=new Node(new_data);\n /* 3. Make next of new Node as head */\n new_node.next=head;\n /* 4. Move the head to point to new Node */\n head=new_node;\n }",
"public void addNodeToTheEnd(int data){\n Node newNode = new Node(data);\n if(head == null){\n head = newNode;\n }else{\n // Very Important!\n Node last = head;\n while(last.next != null){\n last = last.next;\n }\n // Make iteration with while loop first, find the last node and add the new Node out of While loop!\n last.next=newNode;\n }\n }",
"public NonTerminal getNextNonTerminal() {\n\t\tif (marker < getRhs().length && getRhs()[marker] instanceof NonTerminal)\n\t\t\treturn (NonTerminal) getRhs()[marker];\n\t\telse\n\t\t\treturn null;\n\t}",
"public Node getTailNode();",
"static ListNode insertAtEnding(ListNode head, int data) {\n\n ListNode newNode = new ListNode(data);\n\n if (head == null) {\n return newNode;\n }\n\n ListNode current = head;\n\n while (current.next != null) {\n\n current = current.next;\n }\n current.next = newNode;\n\n return head;\n }",
"@Override\n\t\tpublic String next() {\n\t\t\tString ret=null;\n\t\t\twhile(!this.stack.isEmpty() && localRoot!=null){\n\t\t\t\n\t\t\t}\n\t\t\treturn null ;\n\t\t}",
"private static void insertAtEnd(int data) {\n\tNode newnode=new Node(data);\n\tnewnode.next=null;\n\tNode n=head;\n\tNode last=head;\n\twhile(last.next!=null)\n\t{\n\t\tlast=last.next;\n\t}\n\tlast.next=newnode;\n\tnewnode.prev=last;\n\treturn;\n\t\n}",
"public Nodo getnext ()\n\t\t{\n\t\t\treturn next;\n\t\t\t\n\t\t}",
"public E next(){\r\n E data = node.getData();\r\n node = node.getNext();\r\n return data;\r\n }",
"public Node getNext() {\t\t//O(1)\n\t\treturn next;\n\t}",
"public ListNode<Item> getNext() {\n return this.next;\n }",
"public ObjectListNode getNext() {\n return next;\n }",
"public ListNode(E data, ListNode next) {\r\n\t\t\t//this.data = data;\r\n\t\t\tthis(data);\r\n\t\t\tthis.next = next;\r\n\t\t}",
"public MyNode<? super E> getNext()\n\t{\n\t\treturn this.next;\n\t}",
"public void push(int data) {\n\t\tNode new_node = new Node(data);\r\n\r\n\t\t// 3- make next of new node as head;\r\n\t\tnew_node.next = head;\r\n\r\n\t\t// 4- make new node to head;\r\n\t\tnew_node = head;\r\n\r\n\t}",
"void push(int new_data) {\n /* 1 & 2: Allocate the Node &\n Put in the data*/\n Node new_node = new Node(new_data);\n\n /* 3. Make next of new Node as head */\n new_node.next = head;\n\n /* 4. Move the head to point to new Node */\n head = new_node;\n }",
"private PersistentLinkedList<T> addHelper(T data) {\n //there's still space in the latest element\n if (this.treeSize == 0 || this.treeSize % branchingFactor != 0) {\n return setHelper(this.treeSize, data);\n }\n\n //there's still space for the new data\n if (this.base * branchingFactor > this.treeSize) {\n Node<T> newRoot = new Node<>(branchingFactor);\n\n Node<T> currentNode = this.root;\n Node<T> currentNewNode = newRoot;\n\n int index = this.treeSize;\n int b;\n for (b = base; b > 0; b = b / branchingFactor) {\n TraverseData traverseData = traverseOneLevel(\n new TraverseData(currentNode, currentNewNode, newRoot, index, b));\n currentNode = traverseData.currentNode;\n currentNewNode = traverseData.currentNewNode;\n index = traverseData.index;\n\n if (currentNode == null) {\n b = b / branchingFactor;\n break;\n }\n }\n\n while (b > 1) {\n currentNewNode.set(0, new Node<>(branchingFactor));\n currentNewNode = currentNewNode.get(0);\n index = index % b;\n b = b / branchingFactor;\n }\n currentNewNode.set(0, new Node<>(branchingFactor, data));\n\n return new PersistentLinkedList<>(newRoot, this.branchingFactor, this.depth, this.base,\n this.treeSize + 1, unusedTreeIndices, indexCorrespondingToTheFirstElement,\n indexCorrespondingToTheLatestElement);\n }\n\n //root overflow\n Node<T> newRoot = new Node<>(branchingFactor);\n newRoot.set(0, this.root);\n newRoot.set(1, new Node<>(branchingFactor));\n //newRoot[2..]=null\n Node<T> currentNewNode = newRoot.get(1);\n\n int b = base;\n while (b > 1) {\n currentNewNode.set(0, new Node<>(branchingFactor));\n currentNewNode = currentNewNode.get(0);\n b = b / branchingFactor;\n }\n currentNewNode.set(0, new Node<>(branchingFactor, data));\n\n return new PersistentLinkedList<>(newRoot, this.branchingFactor, this.depth + 1,\n this.base * branchingFactor, this.treeSize + 1, unusedTreeIndices,\n indexCorrespondingToTheFirstElement, indexCorrespondingToTheLatestElement);\n }"
]
| [
"0.62610006",
"0.6142452",
"0.61204183",
"0.5945626",
"0.59443426",
"0.5919629",
"0.5902257",
"0.58990145",
"0.5865394",
"0.5815202",
"0.5790499",
"0.5782773",
"0.5774156",
"0.5758794",
"0.57569116",
"0.5735389",
"0.5670995",
"0.5659838",
"0.5655974",
"0.5652818",
"0.56347454",
"0.56247765",
"0.5596311",
"0.55952924",
"0.55913925",
"0.55898297",
"0.55767447",
"0.5572409",
"0.55350125",
"0.5533083",
"0.55270326",
"0.55270267",
"0.5519572",
"0.551901",
"0.55172133",
"0.55127513",
"0.5501121",
"0.54901254",
"0.5483458",
"0.54736876",
"0.54735696",
"0.54735696",
"0.54733104",
"0.54733104",
"0.5468743",
"0.5467331",
"0.54619473",
"0.5458375",
"0.5457014",
"0.54465973",
"0.5445039",
"0.54362935",
"0.541642",
"0.5411594",
"0.54070973",
"0.5403318",
"0.54000163",
"0.5399724",
"0.53989923",
"0.5398605",
"0.5396825",
"0.53947854",
"0.5389223",
"0.53798664",
"0.5379545",
"0.53678596",
"0.53663266",
"0.5361928",
"0.5353553",
"0.53493977",
"0.5342909",
"0.53366995",
"0.5333609",
"0.5332359",
"0.53315765",
"0.53066117",
"0.530023",
"0.52969545",
"0.52966213",
"0.5292209",
"0.52909535",
"0.5287584",
"0.5284012",
"0.52815324",
"0.5280097",
"0.5276109",
"0.5272167",
"0.52669406",
"0.5266838",
"0.5263048",
"0.52620494",
"0.52614564",
"0.5261046",
"0.52488214",
"0.52471083",
"0.52471083",
"0.52468663",
"0.5245562",
"0.5243855",
"0.5240627",
"0.5236874"
]
| 0.0 | -1 |
Create a Node that points to the next Node in the Stack | public Node(T data, Node topNode) {
this.data = data;
this.nextNode = topNode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public ListNode<T> push(T e) {\n \treturn new ListNode<T>(e, this);\n }",
"public ListNode<T> getNext();",
"public Node<S> next() {\n Node<S> current = popUnvisited();\n // Take the associated state\n S currentState = current.transition().to();\n // Explore the adjacent neighbors\n for(Transition<S> successor : this.successors.from(currentState)){\n // If the neighbor is still unexplored\n if (!this.visited.containsKey(successor.to())){\n // Create the associated neighbor\n Node<S> successorNode = factory.node(current, successor);\n this.stack.push(successorNode);\n }\n }\n this.visited.put(currentState, current);\n return current;\n }",
"public Node<S> getNext() { return next; }",
"void push(int new_data){\n /* 1 & 2: Allocate the Node &\n Put in the data*/\n Node new_node=new Node(new_data);\n /* 3. Make next of new Node as head */\n new_node.next=head;\n /* 4. Move the head to point to new Node */\n head=new_node;\n }",
"@Override\n public T next() {\n if (stack.isEmpty()) {\n throw new NoSuchElementException();\n }\n TreeNode<T> node = stack.pop();\n addLeft(node.right);\n return node.value;\n }",
"Node(Object newItem){\n item = newItem; //--points to a different\n next = null;\n }",
"public E push(E e) {\n Node node = new Node();\n node.data = e;\n node.next = isEmpty() ? null : top;\n top = node;\n return e;\n }",
"void push(int new_data) {\n /* 1 & 2: Allocate the Node &\n Put in the data*/\n Node new_node = new Node(new_data);\n\n /* 3. Make next of new Node as head */\n new_node.next = head;\n\n /* 4. Move the head to point to new Node */\n head = new_node;\n }",
"public Item push(Item item){\n N++; \n Node<Item> oldfirst = top;\n top = new Node<Item>(); //same error here: <Item> + ();\n top.item= item;\n top.next =oldfirst;\n// else{\n// top= new Node;\n// top.item =item; \n// top.next = null;\n \n// } \n }",
"public void pushStack(int newStack){\n // creates a new object\n GenericStack temp = new GenericStack(newStack);\n temp.next = top;\n top = temp;\n }",
"public Node<E> getNext() { return next; }",
"public Node getNext() { return next; }",
"@Override\n\tpublic E next() {\n\t\twhile (curr != null) {\n\t\t\tstack.push(curr);\n\t\t\tcurr = curr.getLeft();\n\t\t}\n\t\n\t\tcurr = stack.pop();\n\t\tTreeNode<E> out = curr;\n\t\tcurr = curr.getRight();\n\t\t\n\t\treturn out.getData();\n\t}",
"@Override\n public E push(final E obj) {\n // TODO\n top = new Node<>(obj, top);\n return obj;\n }",
"public Node setNextNode(Node node);",
"public CharStackNode getNext() {\n //TODO add code here\n return next;\n }",
"public void push(int data) {\n\t\tNode new_node = new Node(data);\r\n\r\n\t\t// 3- make next of new node as head;\r\n\t\tnew_node.next = head;\r\n\r\n\t\t// 4- make new node to head;\r\n\t\tnew_node = head;\r\n\r\n\t}",
"public void newNode(E value) throws Exception {\n\t\tif(!hasNext())\n\t\t\tthrow new Exception(\"This node has already been linked\");\n\t\t\n\t\tnext_node = new Node<E>(value);\n\t}",
"public void push(int new_data) {\r\n\t\t/*\r\n\t\t * 1 & 2: Allocate the Node & Put in the data\r\n\t\t */\r\n\t\tNode new_node = new Node(new_data);\r\n\r\n\t\t/* 3. Make next of new Node as head */\r\n\t\tif (head == null) {\r\n\t\t\thead = new_node;\r\n\t\t\tprev = head;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tprev.next = new_node;\r\n\r\n\t\t/* 4. Move the head to point to new Node */\r\n\t\tprev = new_node;\r\n\t}",
"public void addNode(String item){\n Node newNode = new Node(item,null);\nif(this.head == null){\n this.head = newNode;\n}else{\n Node currNode = this.head;\n while(currNode.getNextNode() != null){\n currNode = currNode.getNextNode();\n }\n currNode.setNextNode(newNode);\n}\nthis.numNodes++;\n }",
"public DNode getNext() { return next; }",
"public Node<T> addFirst(T t) { \r\n Node<T> currFirst = sentinel.next;\r\n Node<T> newNode = new Node<T>(t, sentinel, currFirst);\r\n sentinel.next = newNode;\r\n currFirst.prev = newNode;\r\n size++;\r\n return newNode; \r\n }",
"void push(int x){\n Node u = new Node();\n u.val = x;\n u.next = head; //Agrega al nodo al inicio\n head = u; //Cambia el primer nodo de la lista\n if(n == 0){\n tail = u;\n }\n n++;\n }",
"public Node<T> getNextNode() {\n\t\treturn nextNode;\n\t}",
"private void addToHead() {\n Node currentNode = null;\n switch (head.dir) {\n case LEFT:\n currentNode = new Node(head.row - 1, head.col, head.dir);\n break;\n case RIGHT:\n currentNode = new Node(head.row + 1, head.col, head.dir);\n break;\n case UP:\n currentNode = new Node(head.row, head.col - 1, head.dir);\n break;\n case DOWN:\n currentNode = new Node(head.row, head.col + 1, head.dir);\n break;\n }\n currentNode.next = head;\n head.pre = currentNode;\n head = currentNode;\n size++;\n }",
"public Node getNextNode() {\n return nextNode;\n }",
"public void push(String data){\n nodeClass node = new nodeClass(data);\n \n if(isEmpty()){ //Si la pila está vacía\n top = node;\n }else{\n node.setNext(top);\n top=node;\n }\n ++size;\n }",
"public Node getNext(){\n\t\t\treturn next;\n\t\t}",
"public void push(int new_data) {\n\t\tNode new_Node = new Node(new_data);//Create a new node with 7 as data.\n\t\tnew_Node.next = head; // Node's next Addr part points to the HEAD.\n\t\tnew_Node.prev = null; // Node's prev part is NULL.\n\t\tif (head != null)\n\t\t\thead.prev = new_Node; // Take the current HEAD Node and assign this newly created node's address to the current HEAD's prev part\n\t\thead = new_Node; // Make the current node as a new HEAD.\n\t}",
"void addNode()\n {\n Node newNode = new Node(this.numNodes);\n this.nodeList.add(newNode);\n this.numNodes = this.numNodes + 1;\n }",
"public void push( Object obj )\n {\n this.top = new Node( obj, this.top );\n \n this.count++;\n }",
"public LinearNode<T> getNext() {\r\n\t\t\r\n\t\treturn next;\r\n\t\r\n\t}",
"public void push(T item){\n if (head == null) {\n head = new Node<T>(item, null);\n } else {\n Node<T> tempNode = head;\n Node<T> newHead = new Node<T>(item, tempNode);\n head = newHead;\n }\n }",
"public Node<D> getNext(){\n\t\treturn next;\n\t}",
"public Node getNext(){\n\t\treturn next;\n\t}",
"public Node<T> getNext() {\n\t\treturn next;\n\t}",
"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 SimpleNode getNext() {\n return next;\n }",
"public void push(int new_data) {\n\t\t/*\n\t\t * 1 & 2: Allocate the Node & Put in the data\n\t\t */\n\t\tNode new_node = new Node(new_data);\n\n\t\t/* 3. Make next of new Node as head */\n\t\tnew_node.next = head;\n\n\t\t/* 4. Move the head to point to new Node */\n\t\thead = new_node;\n\t}",
"public void push(E it){\r\n Node<E> curr = new Node<E>(it);\r\n curr.setNext(top);\r\n top = curr;\r\n size++;\r\n }",
"public LLNode<T> getNext() {\n return next;\n }",
"public MyStack(T data) {\n\t\t//Wrap the data in a Node\n\t\tNode newNode = new Node(data);\n\t\t\n\t\t//Enter the Node into the stack\n\t\ttopNode = newNode;\n\t\tnodeCount = 1;\n\t\tMAX_SIZE = Integer.MAX_VALUE;\n\t\t\n\t\t\n\t}",
"public Node next(Point p){\n\t\t// int r, Point p, LinkedList<Point> parents\n\t\t// Time? Previous time + distance\n\t\tLinkedList<Point> nextParents = new LinkedList<Point>(parents);\n\t\tnextParents.add(p);\n\t\t\n\t\tdouble nextTime = this.time + (pos.distance(p) * this.speed);\n\t\t\n\t\treturn new Node(nextTime, p, nextParents, this.speed);\n\t}",
"void push(int new_Data)\n {\n Node new_Node = new Node(new_Data); /* allocate node */\n \n // if head is null, head = new_Node\n if(head==null){\n head = new_Node;\n return;\n }\n \n /* link the old list off the new node */\n new_Node.next = head;\n \n /* change prev of head node to new node */\n head.prev = new_Node;\n \n /* since we are adding at the begining, prev is always NULL */\n new_Node.prev = null;\n \n /* move the head to point to the new node */\n head = new_Node;\n }",
"Node<T> getNext() {\n\t\t\treturn nextNode;\n\t\t}",
"public Node getNext()\n\t{\n\t\treturn next;\n\t}",
"public Node getNext()\n\t{\n\t\treturn next;\n\t}",
"public Node getNext()\r\n\t{\r\n\t\treturn next;\r\n\t}",
"public Node getNext()\r\n\t{\r\n\t\treturn next;\r\n\t}",
"public abstract GraphNode<N, E> createNode(N value);",
"Node(Object e, Node p, Node n) {\n element = e;\n previous = p;\n next = n;\n }",
"private Node push(T entry, Node topNode)\n {\n if (isEmpty())\n {\n return new Node(entry);\n }\n else // not empty\n {\n Node temp = new Node(entry);\n temp.setNextNode(topNode);\n return temp;\n }\n }",
"public void push(int new_data) \r\n\t\t{ \r\n\t\t Node new_node = new Node(new_data); \r\n\t\t new_node.next = head; \r\n\t\t head = new_node; \r\n\t\t}",
"@Override\r\n\tpublic void push(AnyType data) throws StackException {\n\t\ttop = new Node<AnyType>(data,top);\r\n\t}",
"public Node<E> getNext() {\r\n\t\treturn next;\r\n\t}",
"public void push(Item item)\n {\n top = new Node<Item>(item, top);\n N++;\n }",
"public void push(T value) {\n\t\tNode current = new Node(value);\n\t\tif (isEmpty())\n\t\t\ttop = current; // if empty stack\n\t\telse {\n\t\t\tcurrent.next = top;\n\t\t\ttop = current;\n\t\t}\n\t}",
"public void push(E e) {\n\t\ttop = new SNode<E>(e, top);\n\t}",
"public Node getNext() {\n\t\treturn next;\n\t}",
"public Node getNext() {\r\n\t\treturn next;\r\n\t}",
"public void push(Item item) {\n Node temp = first;\n first = new Node();\n first.item = item;\n first.next = temp;\n n++;\n }",
"public node getNext() {\n\t\t\treturn next;\n\t\t}",
"private BTNode createNode() {\n BTNode btNode;\n btNode = new <DataPair>BTNode ();\n btNode.mIsLeaf = true;\n btNode.mCurrentKeyNum = 0;\n return btNode;\n }",
"public ListNode<E> getNext()\n {\n return nextNode;\n }",
"private void findNewNextInStack() {\n if (stack.empty()) {\n next = Chunk.NONE;\n return;\n }\n next = stack.pop();\n long valueReference = INVALID_VALUE_REFERENCE;\n if (next != Chunk.NONE) {\n valueReference = getEntryFieldLong(next, OFFSET.VALUE_REFERENCE);\n }\n while (next != Chunk.NONE && valueReference == INVALID_VALUE_REFERENCE) {\n if (!stack.empty()) {\n next = stack.pop();\n if (next != Chunk.NONE) {\n valueReference = getEntryFieldLong(next, OFFSET.VALUE_REFERENCE);\n }\n } else {\n next = Chunk.NONE;\n return;\n }\n }\n }",
"private ITree.Node createNode(int i) {\n if (i < currentSize) {\n ITree.Node node = new ITree.Node(this.elements[i]);\n node.setLeftNode(createNode(this.leftChild(i)));\n node.setRightNode(createNode(this.rightChild(i)));\n\n return node;\n }\n return null;\n }",
"@Override\n\tpublic void push(T item) {\n\t\tNode<T> currentNode = new Node<T>(item);\n\t\tif(top == null) {\n\t\t\ttop = currentNode;\n\t\t}\n\t\telse {\n\t\t\tcurrentNode.setLink(top);\n\t\t\ttop = currentNode;\n\t\t}\n\t}",
"public static Node buildNextNode(Node Parent, Point newSpace){\r\n //start with a blank node\r\n Node child = new Node();\r\n \r\n //point its parent to the root node\r\n child.parent = Parent;\r\n \r\n //copy the parent's state\r\n for (int i = 0; i<puzzleSize; i++){\r\n for (int j = 0; j<puzzleSize; j++)\r\n child.state[i][j] = Parent.state[i][j];\r\n }\r\n \r\n //add 1 to the depth\r\n child.depth = Parent.depth + 1;\r\n \r\n //set the space to the argument provided\r\n child.setSpace(newSpace);\r\n \r\n //find value in position of newSpace, replace with zero\r\n int x = (int)newSpace.getX();\r\n int y = (int)newSpace.getY();\r\n int val = child.getState()[x][y];\r\n child.setState(x, y ,0);\r\n \r\n // find previous space, replace with value\r\n Point oldSpace = Parent.getSpace();\r\n int i = (int)oldSpace.getX();\r\n int j = (int)oldSpace.getY();\r\n child.setState(i, j, val);\r\n \r\n return child;\r\n }",
"public Node getNext() {\t\t//O(1)\n\t\treturn next;\n\t}",
"public Stack(E it){\r\n top = new Node<E>(it);\r\n size++;\r\n }",
"public void push(T data){\n if(mHeadNode == null){\n mHeadNode = new Node(data);\n mTailNode = mHeadNode;\n } else {\n Node node = mHeadNode;\n mHeadNode = new Node(data);\n mHeadNode.next = node;\n node.pre = mHeadNode;\n }\n mSize++;\n }",
"public MyStack() {\n root=new ListNode(0);\n p =root;\n }",
"public void push(T item){\n Node<T> n;\n if(this.isEmpty()){\n n = new Node<>();\n n.setData(item);\n } else {\n n = new Node<>(item, this._top);\n }\n\n this._top = n;\n }",
"POperand createPOperand();",
"public SlideNode getNext() {\n\t\treturn next;\n\t}",
"Node(TNode i, Node n){\t\t\t//A function to create a Node\n\t\telement = i;\t\t\t\t\n\t\tnext = n;\n\t}",
"public void push(T data) {\n\t\tif (head == null) {\n\t\t\thead = new Node<T>(data);\n\t\t\treturn;\n\t\t}\n\t\tNode<T> node = new Node<T>(data);\n\t\tnode.setNext(head);\n\t\thead = node;\n\t}",
"Stack<Integer> createStack() {\n\t\tStack<Integer> my_stack = new Stack<Integer>();\n\t\t\n\t\t// Add all numbers in linkedlist to stack one by one\n\t\tNode curr = head;\n\t\twhile (curr != null) {\n\t\t\tmy_stack.push(curr.data);\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn my_stack;\n\t}",
"public final Node<N> next() {\n final Node<N> sink = this.next;\n this.prepareNext();\n return sink;\n }",
"public StackDynamic(StackIF<T> stack) {\r\n\t\tthis();\r\n\t\tif(stack != null)\r\n\t\t\tif(!stack.isEmpty()) {\r\n\t\t\t\telement = stack.getTop();\r\n\t\t\t\tnext = new StackDynamic<T>(stack.pop());\r\n\t\t\t\tstack.push(element);\r\n\t\t\t}\r\n\t}",
"public Node (Object newItem) {\n next = null; // set intially to null\n item = newItem;\n }",
"public Node getNext() {\n return next;\n }",
"public LinkedNode<T> getNext() {\n\t return myNextNode;\n }",
"TNode makeNode(SNType needType, Stack<TNode> tempNodes) {\n switch(needType) {\n case SIZE:\n tempNodes.pop(); // this is the keyword size\n int iSize = tempNodes.pop().getToken().getIntVals();\n int jSize = tempNodes.pop().getToken().getIntVals();\n tempNodes.pop(); // this is the keyword begin\n TNode temp = tempNodes.pop();\n return new SizeNode(iSize, jSize, temp);\n case CAT:\n if(tempNodes.size() == 1) {\n return tempNodes.pop();\n }\n tempNodes.pop(); // this is the keyword\n String vCat = tempNodes.pop().getToken().getChVals();\n int iCat = tempNodes.pop().getToken().getIntVals();\n int jCat = tempNodes.pop().getToken().getIntVals();\n String dCat = tempNodes.pop().getToken().getChVals();\n return new CatNode(vCat, iCat, jCat, dCat);\n case MOUSE:\n if(tempNodes.size() == 1) {\n return tempNodes.pop();\n }\n tempNodes.pop(); // this is the keyword\n String vMouse = tempNodes.pop().getToken().getChVals();\n int iMouse = tempNodes.pop().getToken().getIntVals();\n int jMouse = tempNodes.pop().getToken().getIntVals();\n String dMouse = tempNodes.pop().getToken().getChVals();\n return new MouseNode(vMouse, iMouse, jMouse, dMouse);\n case HOLE:\n if(tempNodes.size() == 1) {\n return tempNodes.pop();\n }\n tempNodes.pop();\n int iHole = tempNodes.pop().getToken().getIntVals();\n int jHole = tempNodes.pop().getToken().getIntVals();\n return new HoleNode(iHole, jHole);\n case SEQ:\n TNode first = tempNodes.pop();\n TNode second = tempNodes.pop();\n return new SeqNode(first, second);\n case MOVE:\n if(tempNodes.size() == 1) {\n return tempNodes.pop();\n }\n if(tempNodes.size() == 2) {\n tempNodes.pop();\n String vMove = tempNodes.pop().getToken().getChVals();\n return new MoveNode(vMove);\n } else {\n tempNodes.pop();\n String vMove = tempNodes.pop().getToken().getChVals();\n int iMove = tempNodes.pop().getToken().getIntVals();\n return new MoveNode(vMove, iMove);\n }\n case CLOCKWISE:\n if(tempNodes.size() == 1) {\n return tempNodes.pop();\n }\n tempNodes.pop();\n String vClock = tempNodes.pop().getToken().getChVals();\n return new ClockNode(vClock);\n case REPEAT:\n if(tempNodes.size() == 1) {\n return tempNodes.pop();\n }\n tempNodes.pop();\n int iRepeat = tempNodes.pop().getToken().getIntVals();\n TNode tempRepeat = tempNodes.pop();\n return new RepeatNode(iRepeat, tempRepeat);\n case GENERAL:\n default:\n return tempNodes.pop();\n }\n }",
"public Node getNext() {\n return next;\n }",
"public void push(String new_data) {\n // 1. allocate node \n // 2. put in the data \n Node new_Node = new Node(new_data);\n\n // 3. Make next of new node as head and previous as NULL \n new_Node.next = head;\n new_Node.prev = null;\n\n // 4. change prev of head node to new node \n if (head != null) {\n head.prev = new_Node;\n }\n\n // 5. move the head to point to the new node \n head = new_Node;\n }",
"@Override\n public void push(Integer e) {\n SNode insert = new SNode(e);\n if (isEmpty()) {\n this.head = insert;\n } else {\n insert.next = head;\n head = insert;\n } size++;\n }",
"@Override\n\tpublic void push(Item item) \n\t{\n\t\ttopMostNode = new Node(item, topMostNode); // Creates the top MostNode\n\t\tN++;\n\t}",
"public <T> void push( T N ) {\r\n Node newTop; // A Node to hold the new item.\r\n newTop = new Node();\r\n newTop.item = N; // Store N in the new Node.\r\n newTop.next = top; // The new Node points to the old top.\r\n top = newTop; // The new item is now on top.\r\n }",
"@Override\r\n public T add(T item) \r\n {\n Node<T> n = new Node<T>();\r\n n.setItem(item);\r\n\r\n if (head == null) { //first one\r\n head = n;\r\n tail = n;\r\n } else {\r\n tail.setNext(n); //tail's next is the new node\r\n n.setPrevious(tail); //points the new node backwards at the tail\r\n tail = n; //sets tail to the node we added\r\n }\r\n\r\n count++;\r\n\r\n return item;\r\n }",
"public void push(Object item)\r\n {\n this.top = new Node(item, this.top);\r\n }",
"public Node() {\n pNext = null;\n }",
"public com.Node<T> getNextRef() {\n\t\treturn null;\n\t}",
"public Node<T> next(int level)\r\n {\r\n if(level >= height || level < 0) //If trying to access area out of bounds. \r\n return null;\r\n \r\n return pointers.get(level);\r\n }",
"public void push(T data) {\n\t\tStackNode new_node = new StackNode<>(data);\n\t\tif (head.data == null) {\n\t\t\thead = new_node;\n\t\t\tthis.size++;\n\t\t\treturn;\n\t\t}\n\t\tnew_node.next = head;\n\t\thead = new_node;\n\t\tthis.size++;\n\t}",
"public void push(final E data) {\n if (head == null) {\n head = new Node(data);\n tail = head;\n size++;\n return;\n }\n Node node = new Node(data, head);\n head = node;\n size++;\n }",
"public MyStack() {\n bottom = new Node(Integer.MAX_VALUE);\n top = bottom;\n size = 0;\n }",
"static Node newNode(int key) \n{ \n\tNode node = new Node(); \n\tnode.left = node.right = null; \n\tnode.data = key; \n\treturn node; \n}",
"public void push(E e) {\n head = new SNode<E>(e, head);\n size++;\n }",
"@Override\n\tpublic void push(T value) {\n\t\tLink_Node<T>node = new Link_Node<T>(value);\n\t\tnode.setPrevious(last);\n\t\tlast = node;\n\t\tcounts++;\n\t}"
]
| [
"0.6518964",
"0.6512487",
"0.6510857",
"0.64827365",
"0.63575757",
"0.63474154",
"0.6298601",
"0.6284035",
"0.6281943",
"0.6249045",
"0.62173164",
"0.61514753",
"0.6116472",
"0.6094148",
"0.6081752",
"0.6071949",
"0.60548633",
"0.6043412",
"0.6026125",
"0.60258603",
"0.60232145",
"0.60029125",
"0.5988111",
"0.5986825",
"0.59849495",
"0.59648126",
"0.595909",
"0.5957242",
"0.59493935",
"0.5949228",
"0.5948288",
"0.5947853",
"0.59465027",
"0.5943997",
"0.59380615",
"0.59344774",
"0.5932632",
"0.5925862",
"0.5920246",
"0.5914905",
"0.59128463",
"0.59100807",
"0.59047776",
"0.5875703",
"0.5872686",
"0.58690304",
"0.5864584",
"0.5864584",
"0.5863291",
"0.5863291",
"0.585191",
"0.5839226",
"0.58382624",
"0.5834712",
"0.5833959",
"0.58279485",
"0.5827458",
"0.58257085",
"0.58167607",
"0.5812204",
"0.5809784",
"0.58095765",
"0.5803861",
"0.5799047",
"0.5794151",
"0.5785535",
"0.57814425",
"0.57811666",
"0.5775219",
"0.57694274",
"0.57672274",
"0.57656324",
"0.57621825",
"0.57615316",
"0.57601225",
"0.5758855",
"0.5755458",
"0.57509637",
"0.5739662",
"0.57361925",
"0.5735785",
"0.5735338",
"0.5734737",
"0.57330054",
"0.5729689",
"0.5720157",
"0.5718937",
"0.5716978",
"0.5711889",
"0.5708423",
"0.5704872",
"0.56962967",
"0.5682213",
"0.5679598",
"0.5676472",
"0.5671498",
"0.56710213",
"0.56706804",
"0.56674236",
"0.56659704",
"0.5657609"
]
| 0.0 | -1 |
Create a new StackUnderflowException with a specific message | public StackUnderflowException(String e) {
super(e);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnderflowException(String message) {\n super(message);\n }",
"public QueueOverFlowException(String message){\r\n\t\tsuper(message);\r\n\t}",
"public StackUnderflowException(){\n super(\"Can not pop from an empty stack\");\n }",
"public StackException(String message){\n super(message);\n }",
"public OverflowTransactionException(String message) {\n\t\tsuper(message);\n\t}",
"public BucketOverflowException(String msg){\n\t\tsuper(msg);\n\t}",
"public InvalidStackPositionException(String message) {\n\t\tsuper(message);\n\t}",
"public GLMatrixStackUnderflowException() {\r\n\r\n\t\t}",
"public PriQOverflowException(String msg) {\n\t\tsuper(msg);\n\t}",
"public ValueOutOfRangeException(String message) {\n this.message = message;\n }",
"public ValueOutOfBoundsException(String message){\n super(message);\n //do nothing else\n }",
"public EmptyStackException(String message){\n\t\tsuper(message);\n\t}",
"public LimitExceededException(String message) {\n super(message, true);\n }",
"public MyException(String message)\n { super(message); }",
"public notHumanBeingException(String message){// Message parameted created\n super(message);\n \n }",
"public InstanceOverflowException(\n\t\t\tString msg, \n\t\t\ttv.amwa.maj.record.InstanceNumberGeneration generator) {\n\n\t\tsuper(msg);\n\t\tthis.generator = generator;\n\t}",
"public PayloadMaxSizeExceededException(String message) {\n\t\tsuper(message);\n\t}",
"public EmptyStackException(String message) {\r\n\t\tsuper(message);\r\n\t}",
"public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }",
"public EmptyStackException(String message) {\n\t\tsuper(message);\n\t}",
"public EmptyStackException(String message) {\n\t\tsuper(message);\n\t}",
"public PriQOverflowException() {\n\t}",
"public MyException(String message) {\r\n\t\tsuper(message);\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}",
"public FormatException(String message) {\r\n\t\tsuper(message);\r\n\t}",
"public ReservedCardOutOfRangeException(String message) {\n super(message);\n }",
"public CalcLayoutException(String message) {\n super(message);\n }",
"public BadMessageException(final String message) {\r\n\t\tsuper(message);\r\n\t}",
"public void testConstructorWithMessage() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", null, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", null, exception.getProblemRejectReason());\r\n }",
"public PizzaException(String message) {\n super(message);\n }",
"public NegativeBalanceException(String message){\n super(message);\n }",
"static GitletException error(String msgFormat, Object... arguments) {\n return new GitletException(String.format(msgFormat, arguments));\n }",
"public IncorrectInputException(String message) {\r\n super(message);\r\n }",
"public CalcLayoutException(String message) {\n\t\tsuper(message);\n\t}",
"public BaseException(String message) {\n super(message);\n setErrorCode();\n }",
"public IllegalPuzzleException(String message)\n {\n super(message);\n }",
"public MyCustomException( String message )\n {\n\n\t// Why are we doing this??\n super( message );\n }",
"public InstanceOverflowException() {\n\t\tsuper();\n\t}",
"public BadArrayException(String exceptionMsg) \r\n {\r\n super(exceptionMsg); // Pass on to parent exception constructor\r\n }",
"public Exception(String message) {\n\t\t\tsuper(message);\n\t\t}",
"WireframeException(String message){\r\n super(message);\r\n }",
"public OutputQueueException(String message)\n {\n super(message);\n }",
"public abstract RuntimeException getException(String message);",
"public NotValidException(String message) {\r\n super(message);\r\n }",
"public StackOverflowException(String e) {\n\t\tsuper(e);\n\t}",
"GitletException(String msg) {\n super(msg);\n }",
"public NoTraceOntimizeJEEException(String message) {\r\n this(message, (Object[]) null);\r\n }",
"public void buildException(String message) {\n\n // passa null para throwable\n buildException(message, null);\n }",
"public InvalidStreamContentException(String message){\r\n\t\tsuper(\"The stack can only contain numbers and operators! ([n]*[o]*)\\n\"\r\n\t\t\t\t+ \"Invalid input: \" + message); //keep syntax description? fix it? ^^\r\n\t}",
"public JavaException(@Nullable String message)\r\n\t{\r\n\t\tsuper(message);\r\n\t}",
"@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause());\n }",
"public CompilerMessage(MessageKind messageKind_, Exception exception_) {\r\n this((SourceRange)null, messageKind_, exception_); \r\n }",
"public BadRequestException(String message) {\n super(message);\n if(!message.equals(\"\")){errorText = errorText.concat(\": \" + message);}\n }",
"public InputIntegerOutOfRangException(String message) {\n\t\tsuper(message);\n\t}",
"public TeWeinigGeldException(String message) {\n this.message = message;\n }",
"public LessThanZeroException(String message)\n\t{\n\t\tsuper(message);\n\t}",
"@Test\n public void testConstructorWithMessage()\n {\n final LoaderException e = new LoaderException(\"Custom message\");\n assertEquals(\"Custom message\", e.getMessage());\n }",
"public WriteException(String message)\n {\n super(message);\n }",
"public PreparationException(final String message) {\n\t\tsuper(message);\n\t}",
"public CollisionSnakeException(String message){\n\n super(message);\n }",
"@SuppressWarnings(\"unused\")\n protected static HttpResponseImpl createError(final String message) {\n return createError(message, null);\n }",
"public OperationException(String message) {\n super(message);\n }",
"@Test(timeout = 4000)\n public void test22() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.creatMatrix((-1));\n // Undeclared exception!\n try { \n expressionMatrixImpl0.addNewNode();\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.browsersoft.openhre.hl7.impl.regular.ExpressionMatrixImpl\", e);\n }\n }",
"public TechnicalException(String message) {\r\n super(message);\r\n }",
"public EmployeeException(String message) {\n\t\tsuper(message);\n\t}",
"public LimitExceededException(String anomalyDetectorId, String message) {\n super(anomalyDetectorId, message, true);\n this.countedInStats(false);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void encode_withInvalidMessage_throwsException() throws Exception {\n ByteBuf out = Unpooled.directBuffer();\n messageFrameEncoder.encode(ctx, \"invalid-message-type\", out);\n }",
"public Neo4jException(String message) {\n this(\"N/A\", message);\n }",
"public DuplicateItemException(String message) {\r\n super(message);\r\n }",
"public EmptyStackException(String message, Throwable cause) {\n\t\tsuper(message, cause);\n\t}",
"public SenhaInvalidaException(String message) {\n\t\tsuper(message);\n\t}",
"public static void getStackOverFlowErrorNoRecursion() {\n LOGGER.info(String.format(MESSAGE, \"StackOverflowError\", \"instantiating object whose constructor instantiates the object\"));\n new StackOverFlowObject();\n }",
"public SysException(String message) {\r\n super(message);\r\n\r\n }",
"public ArithmeticaException (String message) {\n super(message);\n }",
"public PropagationException(String msg) {\n super(msg);\n }",
"public ApplicationErrorException(String message){\n super(message);\n Logger.getLogger(ApplicationErrorException.class).error(message);\n }",
"public LogIllegalStateException(String message) {\r\n super(message);\r\n }",
"public SSHException(String message) {\n super(message);\n }",
"public CoderException(String message) {\n super(message);\n }",
"public ArgumentException(String msg) {\n super(msg);\n }",
"public VerifyException(String message) {\n\t\tsuper(message);\n\t}",
"private static String buildErrorMessage(String message) {\n return EXCEPTION_PREFIX + ' ' + message;\n }",
"public TechnicalException(final String message) {\n super(message);\n }",
"public PlayException(String message) {\n super(message);\n }",
"SpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException createSpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException();",
"public ByteArrayConversionException(String message) {\n super(message);\n }",
"public CommunicationException(String message) {\r\n\t\tsuper(message);\r\n\t}",
"private void raiseParseProblem(String message, int position) {\n\n StringBuffer sb = new StringBuffer();\n\n sb.append(expansionString).append(\"\\n\");\n\n for (int i = 0; i < position; i++) {\n\n sb.append(\" \");\n\n }\n\n sb.append(\"^\\n\");\n\n sb.append(message);\n\n throw new VersionExpansionFormatException(expansionString, sb.toString());\n\n }",
"public BattleException(String message, int i, int j) { //constructor\n super(message); // call the constructor of Super Class Exception and insert our message\n this.message = message;\n this.i = i;\n this.j = j;\n }",
"public TDLProException(String message)\n {\n super(message);\n }",
"public InstantiationException(AstLocation location, String message,\n Iterable<TypeReference> instantiationReferenceStack)\n {\n super(location, message);\n\n pushInstantiationStack(instantiationReferenceStack);\n }",
"public void testMenuStructureException_2()\n\t\tthrows Exception {\n\t\tString message = \"0123456789\";\n\n\t\tMenuStructureException result = new MenuStructureException(message);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getCause());\n\t\tassertEquals(\"ch.bluepenguin.tapestry.components.menu.model.MenuStructureException: 0123456789\", result.toString());\n\t\tassertEquals(\"0123456789\", result.getMessage());\n\t\tassertEquals(\"0123456789\", result.getLocalizedMessage());\n\t}",
"public OperationFailedException(String message, Exception causeOfException){\n super(message, causeOfException);\n }",
"WireframeException(String message, Throwable e){\r\n super(message, e);\r\n }",
"public InvalidDeliveryException(String message) {\n super(message);\n }",
"public AndroidAppException(String message){\n super(message);\n }",
"public void testConstructorWithMessageAndCause() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message, cause);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", cause, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", null, exception.getProblemRejectReason());\r\n }",
"public OutOfBoundException() {\n super(\"Task does not exist. Please send a correct task number ><\");\n }",
"public ImageFormatException(String message) {\n\t\tsuper(message);\n\t}",
"public Error(String message) {\r\n \tsuper(message);\r\n \t}",
"public TypeCheckException(String msg) {\n super(msg);\n }"
]
| [
"0.7613175",
"0.7099522",
"0.6983624",
"0.69196564",
"0.66662234",
"0.6651521",
"0.64064944",
"0.62610126",
"0.61938614",
"0.6115038",
"0.6066067",
"0.6031246",
"0.60144585",
"0.59590364",
"0.5951801",
"0.5925094",
"0.5886001",
"0.5880827",
"0.58585757",
"0.58117545",
"0.58117545",
"0.5798203",
"0.578755",
"0.5766882",
"0.5761336",
"0.5721053",
"0.5719387",
"0.5687363",
"0.5674877",
"0.5645495",
"0.56442446",
"0.56357735",
"0.5631405",
"0.5611664",
"0.5608496",
"0.5605215",
"0.56023",
"0.5569354",
"0.55677474",
"0.5558107",
"0.5535886",
"0.55293655",
"0.5523626",
"0.5518224",
"0.5507122",
"0.55057746",
"0.55026007",
"0.54919875",
"0.5489053",
"0.5481113",
"0.54721814",
"0.54713386",
"0.54629725",
"0.54611903",
"0.5450764",
"0.5433544",
"0.5432561",
"0.5428231",
"0.5425113",
"0.54149234",
"0.539486",
"0.5391038",
"0.5387994",
"0.53772545",
"0.53759634",
"0.5374262",
"0.5370628",
"0.5369424",
"0.536292",
"0.53325295",
"0.53316927",
"0.5331122",
"0.5324779",
"0.5321648",
"0.5319018",
"0.53128153",
"0.5308167",
"0.5303261",
"0.5300508",
"0.5298702",
"0.52940685",
"0.5280996",
"0.5273184",
"0.52703434",
"0.52645963",
"0.5249595",
"0.52472085",
"0.5243495",
"0.5239944",
"0.52399343",
"0.52365124",
"0.52358973",
"0.5234504",
"0.5229505",
"0.52185637",
"0.52108",
"0.52071625",
"0.5206745",
"0.5204385",
"0.5197858"
]
| 0.71977174 | 1 |
Create a new StackoverflowException with a specific message | public StackOverflowException(String e) {
super(e);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public StackException(String message){\n super(message);\n }",
"public OverflowTransactionException(String message) {\n\t\tsuper(message);\n\t}",
"public QueueOverFlowException(String message){\r\n\t\tsuper(message);\r\n\t}",
"public PriQOverflowException(String msg) {\n\t\tsuper(msg);\n\t}",
"public BucketOverflowException(String msg){\n\t\tsuper(msg);\n\t}",
"public MyException(String message)\n { super(message); }",
"public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }",
"public MyException(String message) {\r\n\t\tsuper(message);\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}",
"public InvalidStackPositionException(String message) {\n\t\tsuper(message);\n\t}",
"public StackUnderflowException(String e) {\n\t\tsuper(e);\n\t}",
"public notHumanBeingException(String message){// Message parameted created\n super(message);\n \n }",
"public InstanceOverflowException(\n\t\t\tString msg, \n\t\t\ttv.amwa.maj.record.InstanceNumberGeneration generator) {\n\n\t\tsuper(msg);\n\t\tthis.generator = generator;\n\t}",
"public PriQOverflowException() {\n\t}",
"public LimitExceededException(String message) {\n super(message, true);\n }",
"public InstanceOverflowException() {\n\t\tsuper();\n\t}",
"public UnderflowException(String message) {\n super(message);\n }",
"public EmployeeException(String message) {\n\t\tsuper(message);\n\t}",
"public static void getStackOverFlowErrorNoRecursion() {\n LOGGER.info(String.format(MESSAGE, \"StackOverflowError\", \"instantiating object whose constructor instantiates the object\"));\n new StackOverFlowObject();\n }",
"public void testConstructorWithMessage() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", null, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", null, exception.getProblemRejectReason());\r\n }",
"public MyCustomException( String message )\n {\n\n\t// Why are we doing this??\n super( message );\n }",
"public Exception(String message) {\n\t\t\tsuper(message);\n\t\t}",
"public BadMessageException(final String message) {\r\n\t\tsuper(message);\r\n\t}",
"public EmployeeNotFoundException(String message) {\n super(message);\n }",
"public ValueOutOfRangeException(String message) {\n this.message = message;\n }",
"public EmptyStackException(String message){\n\t\tsuper(message);\n\t}",
"public PizzaException(String message) {\n super(message);\n }",
"public ValueOutOfBoundsException(String message){\n super(message);\n //do nothing else\n }",
"public JavaException(@Nullable String message)\r\n\t{\r\n\t\tsuper(message);\r\n\t}",
"@Test\n public void testConstructorWithMessage()\n {\n final LoaderException e = new LoaderException(\"Custom message\");\n assertEquals(\"Custom message\", e.getMessage());\n }",
"public BaseException(String message) {\n super(message);\n setErrorCode();\n }",
"public StackUnderflowException(){\n super(\"Can not pop from an empty stack\");\n }",
"public FormatException(String message) {\r\n\t\tsuper(message);\r\n\t}",
"public NotValidException(String message) {\r\n super(message);\r\n }",
"public EmptyStackException(String message) {\r\n\t\tsuper(message);\r\n\t}",
"public BadRequestException(String message) {\n super(message);\n if(!message.equals(\"\")){errorText = errorText.concat(\": \" + message);}\n }",
"@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause());\n }",
"public EmptyStackException(String message) {\n\t\tsuper(message);\n\t}",
"public EmptyStackException(String message) {\n\t\tsuper(message);\n\t}",
"public CalcLayoutException(String message) {\n super(message);\n }",
"public IllegalPuzzleException(String message)\n {\n super(message);\n }",
"public NoTraceOntimizeJEEException(String message) {\r\n this(message, (Object[]) null);\r\n }",
"public SenhaInvalidaException(String message) {\n\t\tsuper(message);\n\t}",
"public PayloadMaxSizeExceededException(String message) {\n\t\tsuper(message);\n\t}",
"public WriteException(String message)\n {\n super(message);\n }",
"public TeWeinigGeldException(String message) {\n this.message = message;\n }",
"public WebAppException(String message) {\r\n\t\tsuper(message);\r\n\t}",
"WireframeException(String message){\r\n super(message);\r\n }",
"static GitletException error(String msgFormat, Object... arguments) {\n return new GitletException(String.format(msgFormat, arguments));\n }",
"GitletException(String msg) {\n super(msg);\n }",
"public CalcLayoutException(String message) {\n\t\tsuper(message);\n\t}",
"public OperationException(String message) {\n super(message);\n }",
"public void buildException(String message) {\n\n // passa null para throwable\n buildException(message, null);\n }",
"public Neo4jException(String message) {\n this(\"N/A\", message);\n }",
"public CoderException(String message) {\n super(message);\n }",
"public void testConstructorWithMessageAndCause() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message, cause);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", cause, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", null, exception.getProblemRejectReason());\r\n }",
"public JiraServiceException(String message) {\r\n super(message);\r\n }",
"public EmailException(String msg)\n {\n super(msg);\n }",
"public ApplicationErrorException(String message){\n super(message);\n Logger.getLogger(ApplicationErrorException.class).error(message);\n }",
"SpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException createSpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException();",
"public TechnicalException(String message) {\r\n super(message);\r\n }",
"public MyMoneyException(String msg) {\r\n\t\tsuper(msg);\r\n\t}",
"public IncorrectInputException(String message) {\r\n super(message);\r\n }",
"public APIException(String message) {\n\t\tsuper(message, null);\n\t}",
"protected CustomException getException(int code, String message, Object... objects) {\n return new CustomException(code, String.format(message, objects));\n }",
"public abstract RuntimeException getException(String message);",
"public CommunicationException(String message) {\r\n\t\tsuper(message);\r\n\t}",
"public void testConstructorWithMessageAndCauseAndRejectReason() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message, cause, reason);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", cause, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", reason, exception.getProblemRejectReason());\r\n }",
"public NotFoundException(final String message) {\r\n super(Response.status(Responses.NOT_FOUND).\r\n entity(message).type(\"text/plain\").build());\r\n myDetailMessage = message;\r\n }",
"public DuplicateItemException(String message) {\r\n super(message);\r\n }",
"public JsonParseException _constructError(String msg) {\n return new JsonParseException(this, msg).withRequestPayload(this._requestPayload);\n }",
"public LimitExceededException(String anomalyDetectorId, String message) {\n super(anomalyDetectorId, message, true);\n this.countedInStats(false);\n }",
"public TechnicalException(final String message) {\n super(message);\n }",
"public ReportException(String message) {\n\t\tsuper(message);\n\t}",
"public AditoGitException(String pMessage)\n {\n super(pMessage);\n }",
"public CompilationException(String message) {\n\t\tsuper(message);\n\t}",
"@ParametersAreNonnullByDefault\n\tpublic ApplicationException(String message) {\n\t\tsuper(message);\n\t}",
"public GLMatrixStackUnderflowException() {\r\n\r\n\t\t}",
"@SuppressWarnings(\"unused\")\n protected static HttpResponseImpl createError(final String message) {\n return createError(message, null);\n }",
"public VerifyException(String message) {\n\t\tsuper(message);\n\t}",
"public PreprocessorException(String message) {\r\n super(message);\r\n }",
"public ValidationException(String msg) {\n\t\tsuper(msg);\n\t}",
"public OLMSException(String message) {\r\n super(message);\r\n }",
"public AndroidAppException(String message){\n super(message);\n }",
"public ElFicheroNoExisteException(String msg) {\n super(msg);\n }",
"public BadArrayException(String exceptionMsg) \r\n {\r\n super(exceptionMsg); // Pass on to parent exception constructor\r\n }",
"public DayPersistenceException( String message ) {\n super(new Exception( message ), message);\n }",
"public MessageParseException(String message) {\n super(message);\n }",
"public CassetteException(String message) {\r\n super(message);\r\n }",
"public ResourceRuntimeException(String message) {\n super(message);\n }",
"public ParsingException(String message) {\n super(message);\n }",
"public JDBFException (String message){\r\n super(Messages.message(message));\r\n }",
"public LogIllegalStateException(String message) {\r\n super(message);\r\n }",
"public ExcelImportException(String message) {\r\n\t\tsuper(message);\r\n\t}",
"public PizzaException() {\n super(\"That pizza has been eaten.\");\n }",
"MyException(String str)\n {\n //parametrize constructor\n super(str);\n }",
"public SMSLibException(String errorMessage)\n/* 10: */ {\n/* 11:34 */ super(errorMessage);\n\n/* 12: */ }",
"public LoginException(String exceptionMessage) {\n super(exceptionMessage);\n\t}",
"public AditoGitException(String pMessage, Exception pE)\n {\n super(pMessage, pE);\n }",
"public SysException(String message) {\r\n super(message);\r\n\r\n }",
"public BadRequestException(String msg) {\n\t\tsuper(msg);\n\t}"
]
| [
"0.6772312",
"0.6714921",
"0.6644063",
"0.66165835",
"0.6606633",
"0.6464489",
"0.64419526",
"0.6367526",
"0.6363757",
"0.6293494",
"0.62432504",
"0.62193125",
"0.62140596",
"0.6209906",
"0.6182038",
"0.6171664",
"0.6127811",
"0.6112743",
"0.61081797",
"0.60261196",
"0.60027325",
"0.5988099",
"0.5980067",
"0.5957307",
"0.59569395",
"0.59554774",
"0.5941653",
"0.59028774",
"0.5888329",
"0.58837557",
"0.58731514",
"0.5872663",
"0.5858695",
"0.5843161",
"0.58159125",
"0.58039963",
"0.57951397",
"0.57951397",
"0.5776231",
"0.57724786",
"0.57660234",
"0.5756242",
"0.575164",
"0.5742357",
"0.5721009",
"0.57155067",
"0.5715315",
"0.5713729",
"0.5703416",
"0.57018614",
"0.5680228",
"0.567991",
"0.5674072",
"0.5673482",
"0.5668893",
"0.5664851",
"0.5654905",
"0.5649682",
"0.5644316",
"0.5637722",
"0.5628127",
"0.56179166",
"0.56123936",
"0.5609567",
"0.5606362",
"0.5601542",
"0.55889535",
"0.5586369",
"0.5582407",
"0.55802053",
"0.5568301",
"0.5565513",
"0.55629754",
"0.5562959",
"0.5560943",
"0.5557018",
"0.5547247",
"0.55456513",
"0.5544618",
"0.55398947",
"0.553821",
"0.55252355",
"0.54930735",
"0.5489765",
"0.5481817",
"0.54725593",
"0.5467429",
"0.54664755",
"0.5450932",
"0.5445829",
"0.54448044",
"0.54433817",
"0.54393446",
"0.5434942",
"0.54348904",
"0.5434415",
"0.54316396",
"0.54285586",
"0.5425788",
"0.5421585"
]
| 0.6587526 | 5 |
TODO Autogenerated method stub | public static void main(String[] args) {
int[] arr = new int[]{1,2,5,6,3,2};
System.out.println("Second Largest : " + getLarg(arr,arr.length));
} | {
"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 |
Creates a new instance of the Travel Request Document. Initializes the empty arrays as well as the line tracking numbers | public TravelAuthorizationDocument() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Request() {\n this.setRequestId(newRequestId());\n this.setRequestValue(0.0);\n this.date = new Date();\n }",
"public Request(){\n\t\tthis(null, null, null);\n\t}",
"Request(Request otherRequest) {\n this.reqNum = otherRequest.reqNum;\n this.reqText = otherRequest.reqText;\n this.reqExampleDocs = new ArrayList<ExampleDocument>(otherRequest.reqExampleDocs);\n }",
"public TInvoiceRequestEventRecord() {\n super(TInvoiceRequestEvent.T_INVOICE_REQUEST_EVENT);\n }",
"public InquiryLftrattribRequest()\r\n\t{\r\n\t}",
"public Request() {\n }",
"public DataRequest() {\n\t\tfilters = new ArrayList<FilteringRule>();\n\t\tsort_by = new ArrayList<SortingRule>();\n\t}",
"private Request() {\n initFields();\n }",
"private void initRequest()\n\t{\n\t\tthis.request = new RestClientReportRequest();\n\t\tRequestHelper.copyConfigsToRequest(this.getConfigs(), this.request);\n\t\tRequestHelper.copyParamsToRequest(this.getParams(), this.request);\n\t\t\n\t\tthis.performQuery();\n\t}",
"public Request() {\n\n }",
"protected void createLocationRequest() {\n\t\tmLocationRequest = new LocationRequest();\n\t\tmLocationRequest.setInterval(UPDATE_INTERVAL);\n\t\tmLocationRequest.setFastestInterval(FATEST_INTERVAL);\n\t\tmLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n\t\tmLocationRequest.setSmallestDisplacement(DISPLACEMENT);\n\t}",
"public Document()\n {\n index = 0;\n words = 0;\n sentences = 0;\n syllables = 0;\n }",
"public RequestMessage() {\r\n\t\tsuper();\r\n\t\tthis.criteria = new PersonSearchCriteria();\r\n\t\tthis.setSourceSystemID(SOURCE_SYSTEM_ID);\r\n\t\tthis.setSourceUserID(SOURCE_USER_ID);\r\n\t}",
"public ExternalRequestHistoryRecord() {\n super(ExternalRequestHistory.EXTERNAL_REQUEST_HISTORY);\n }",
"public static void initializePreqs() { \r\n\t\tlist = new ArrayList<Freebody>();\r\n\t\ttrackers = new ArrayList<TrackingPoint>();\r\n\t\tcamPos=new int[3];\r\n\t}",
"private PredictRequest() {\n\t}",
"public void build() {\n\t\t\tRequest request = new Request();\n request.context = context;\n\t\t\trequest.requestType = requestType;\n\t\t\trequest.url = url;\n\t\t\trequest.envelope = envelope;\n\t\t\trequest.headers = headers;\n\n\t\t\trequest.responseListener = responseListener;\n\t\t\trequest.onValidateResponseListener = validateResponseListener;\n\n\t\t\trequest.isDebug = isDebug;\n\n\t\t\trequest.start();\n\t\t}",
"public CheckpointRecord() {\r\n\t\tthis.txNums = new ArrayList<Long>();\r\n\t}",
"public void createLocationRequest(){\n locationRequest = new LocationRequest();\n locationRequest.setInterval(1000);\n locationRequest.setFastestInterval(500);\n locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n }",
"protected void createLocationRequest() {\n System.out.println(\"In CREATE LOCATION REQUEST\");\n mLocationRequest = new LocationRequest();\n mLocationRequest.setInterval(60 * 1000);\n mLocationRequest.setFastestInterval(5 * 1000);\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n //mLocationRequest.setSmallestDisplacement(Utils.DISPLACEMENT);\n }",
"private void createLocationRequest() {\n mLocationRequest = new LocationRequest();\n mLocationRequest = LocationRequest.create();\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n }",
"private void getSettledBatchListRequest() {\r\n\t\tBasicXmlDocument document = new BasicXmlDocument();\r\n\t\tdocument.parseString(\"<\" + TransactionType.GET_SETTLED_BATCH_LIST.getValue()\r\n\t\t\t\t+ \" xmlns = \\\"\" + XML_NAMESPACE + \"\\\" />\");\r\n\r\n\t\taddAuthentication(document);\r\n\t\taddReportingBatchListOptions(document);\r\n\r\n\t\tcurrentRequest = document;\r\n\t}",
"public QBXMLRequest() {\n }",
"public TboFlightSearchRequest() {\n}",
"protected void createLocationRequest() {\n mLocationRequest = new LocationRequest();\n //Sets the preferred interval for GPS location updates\n mLocationRequest.setInterval(UPDATE_INTERVAL_IN_MS);\n //Sets the fastest interval for GPS location updates\n mLocationRequest.setFastestInterval(FASTEST_UPDATE_INTERVAL_IN_MS);\n //Sets priority of the GPS location to accuracy\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n }",
"public static ApiRequest createRequests() {\n Retrofit retrofit = builder.client(client)\n .build();\n return retrofit.create(ApiRequest.class);\n }",
"public LinkedIntegrationRuntimeRequest() {\n }",
"public FileLines() {\r\n\t}",
"public LineData()\n\t{\n\t}",
"public CheckpointRecord(List<Long> txNums) {\r\n\t\tthis.txNums = txNums;\r\n\t\t\r\n\t}",
"public RequirementsRecord() {\n super(Requirements.REQUIREMENTS);\n }",
"public CalccustoRequest()\r\n\t{\r\n\t}",
"public CreateOrderRequest() {\n\t\t_pcs = new PropertyChangeSupport(this);\n\t}",
"public void init() throws Exception\n\t{\n\t\ttry{\n\t\t\tif(requests_file!= null){\n\t\t parse();\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tthrow e;\n\t\t}\n\t\t\n\t\t// Set requests from command line.\n\t\tfor(int i=0;i<urls.length;i++){\n\t\t\tRequestContext ctx=new RequestContext(this);\n\t\t\tctx.setUrl(new URL(urls[i]));\n\t\t\t\n\t\t\tif(method != null && method.equals(\"POST\")){\n\t\t\t\tctx.setMethod(method);\n\t\t\t\tif(bodyFile != null){\n\t\t\t\t\tctx.setBodyFile(bodyFile);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tctx.setMethod(\"GET\");\n\t\t\t}\n\t\t\t\n\t\t\tfor(String name:headers.keySet()){\n\t\t\t\tctx.setHeader(name, headers.get(name));\n\t\t\t}\n\t\t\t\n\t\t\tfor(String key:queries.keySet()){\n\t\t\t\tctx.setQueryParam(key, queries.get(key));\n\t\t\t}\n\t\t\t\n\t\t\tctx.setRounds(rounds);\n\t\t\t\n\t\t\tif(ctxs.contains(ctx)){\n\t\t\t\tctxs.remove(ctx);\n\t\t\t}\n\t\t\t\n\t\t\tctxs.add(ctx);\n\t\t}\n\t\t\n\t\t// Add default headers for generic header types. Doesn't override already set headers. Useful for situations when no headers are explicitly set.\n\t\tfor(RequestContext ctx:ctxs){\n\t\t\tfor(String header:defaultHeaders.keySet()){\n\t\t\t\tctx.setHeaderIfNotPresent(header, defaultHeaders.get(header));\n\t\t\t}\n\t\t}\n\t\t\n\t\tsynchronized(this){\n\t\t\tprocessorCount=ctxs.size();\n\t\t}\n\t}",
"public VDCRequest() {\n\t\tthis.listVirVM = new HashMap<>();\n\t\tthis.listVirLink = new LinkedList<>();\n\t\t// this.listVirSwitch = new LinkedList<>();\n\t\tthis.numVM = 0;\n\t\tthis.vdcID = 0;\n\t\tthis.bwrequest = 0;\n\t}",
"public void makeRequest() {\n Request newRequest = new Request();\n\n if (mProduct == null) {\n Toast.makeText(getContext(), \"BAD\", Toast.LENGTH_LONG).show();\n return;\n }\n\n newRequest.setClient(ParseUser.getCurrentUser());\n newRequest.setProduct(mProduct);\n newRequest.setBeaut(mBeaut);\n\n Date dateTime = new Date(selectedAppointmet.appDate.getTimeInMillis());\n newRequest.setDateTime(dateTime);\n // TODO: uncomment below line when dataset is clean and products have lengths\n// newRequest.setLength(mProduct.getLength());\n newRequest.setLength(1);\n newRequest.setSeat(selectedAppointmet.seatId);\n newRequest.setDescription(rComments.getText().toString());\n\n sendRequest(newRequest);\n }",
"protected void createLocationRequest() {\n mLocationRequest = new LocationRequest();\n int UPDATE_INTERVAL = 1000 * 60 * 5;\n mLocationRequest.setInterval(UPDATE_INTERVAL);\n int FASTEST_INTERVAL = 5000;\n mLocationRequest.setFastestInterval(FASTEST_INTERVAL);\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n int DISPLACEMENT = 20;\n mLocationRequest.setSmallestDisplacement(DISPLACEMENT); // 20 meters\n }",
"public parmLottC (int req_size, int tee_size) {\r\n \r\n if (tee_size < req_size) tee_size = req_size; // must be at least as many entries for tee times as there are requests\r\n \r\n tee_size++; // must add one entry for 'end of entries' marker (0)\r\n \r\n course = \"\"; // name of the course specified in Lottery (or -ALL-)\r\n\r\n idA = new long [req_size]; // request id array\r\n wghtA = new int [req_size]; // weight of this request\r\n\r\n id2A = new long [tee_size]; // request id array (one entry for each tee time so they match by index)\r\n wght2A = new int [tee_size]; // weight of this request\r\n players2A = new int [tee_size]; // # of players in the request\r\n\r\n timeA = new int [tee_size]; // tee time\r\n fbA = new short [tee_size]; // f/b for the tee time\r\n courseA = new String [tee_size]; // course for the tee time (required for new processing - make time the priority)\r\n busyA = new boolean [tee_size]; // tee time busy flag\r\n\r\n atimeA = new int [5]; // assigned tee time array per req (save area)\r\n afbA = new short [5]; // assigned f/b array per req (save area)\r\n \r\n req_count = req_size; // save array lengths\r\n tee_count = tee_size;\r\n \r\n courseA[(tee_size-1)] = \"\"; // remove null value of last tee marker entery\r\n }",
"public ModelSourceFile() {\n\t\t\n\t}",
"protected void createLocationRequest() {\n mLocationRequest = new LocationRequest();\n\n // Sets the desired interval for active location updates. This interval is\n // inexact.\n mLocationRequest.setInterval(UPDATE_INTERVAL_IN_MILLISECONDS);\n\n // Sets the fastest rate for active location updates. This interval is exact, and your\n // application will never receive updates faster than this value.\n mLocationRequest.setFastestInterval(FASTEST_UPDATE_INTERVAL_IN_MILLISECONDS);\n\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n Log.d(Constants.LOCATION_REQUEST, Constants.LOCATION_REQUEST);\n }",
"private Request() {}",
"private Request() {}",
"private static LineOfCredit createLineOfCreditObjectForPost() {\n\n\t\tLineOfCredit lineOfCredit = new LineOfCredit();\n\n\t\tCalendar now = Calendar.getInstance();\n\n\t\tString notes = \"Line of credit note created via API \" + now.getTime();\n\t\tlineOfCredit.setId(\"LOC\" + now.getTimeInMillis());\n\t\tlineOfCredit.setStartDate(now.getTime());\n\t\tnow.add(Calendar.MONTH, 6);\n\t\tlineOfCredit.setExpiryDate(now.getTime());\n\t\tlineOfCredit.setNotes(notes);\n\t\tlineOfCredit.setAmount(new Money(100000));\n\n\t\treturn lineOfCredit;\n\t}",
"private LocationRequest createLocationRequest() {\r\n LocationRequest mLocationRequest = new LocationRequest();\r\n mLocationRequest.setInterval(2000);\r\n mLocationRequest.setFastestInterval(1000);\r\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\r\n return mLocationRequest;\r\n }",
"private void getTransactionListRequest() {\r\n\t\tBasicXmlDocument document = new BasicXmlDocument();\r\n\t\tdocument.parseString(\"<\" + TransactionType.GET_TRANSACTION_LIST.getValue()\r\n\t\t\t\t+ \" xmlns = \\\"\" + XML_NAMESPACE + \"\\\" />\");\r\n\r\n\t\taddAuthentication(document);\r\n\t\taddReportingBatchId(document);\r\n\r\n\t\tcurrentRequest = document;\r\n\t}",
"public CreateTableExternalRequest() {\n tableName = \"\";\n filepaths = new ArrayList<>();\n modifyColumns = new LinkedHashMap<>();\n createTableOptions = new LinkedHashMap<>();\n options = new LinkedHashMap<>();\n }",
"public void startDocument() {\r\n lineBuffer = new StringBuffer(128); \r\n saxLevel = 0;\r\n charState = -1;\r\n }",
"public MessageRequest() {\n\t}",
"public UBERequest() {\r\n }",
"public LateComingRecord() {\n\t\t}",
"public PaymentRequest() {\r\n items = new ArrayList();\r\n }",
"public LineInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public NewDocumentRequestDto() {\n }",
"public Line(final Date date, final String ip, final String request,\n final String status, final String userAgent) {\n this.date = date;\n this.ip = ip;\n this.request = request;\n this.status = status;\n this.userAgent = userAgent;\n }",
"public PostingList(int df, int N)\n {\n documentFrequency = df;\n totalNoOfDocuments = N;\n }",
"public PurchaseRequestAttachment() {\r\n }",
"protected SourceDocumentInformation() {\n }",
"public parmLottC () {\r\n \r\n course = \"\"; // name of this course\r\n\r\n idA = new long [100]; // request id array\r\n wghtA = new int [100]; // weight of this request\r\n\r\n id2A = new long [100]; // request id array\r\n wght2A = new int [100]; // weight of this request\r\n players2A = new int [100]; // # of players in the request\r\n\r\n timeA = new int [100]; // tee time\r\n fbA = new short [100]; // f/b for the tee time\r\n busyA = new boolean [100]; // tee time busy flag\r\n\r\n atimeA = new int [5]; // assigned tee time array per req (save area)\r\n }",
"public ServiceRequest() {\n super();\n this.addNamespaceToRequest = true;\n }",
"public AbstractRequestParser()\n {\n super();\n \n //set flag\n this.initialized=false;\n }",
"public Invoice()\r\n {\r\n items = new ArrayList<>();\r\n listeners = new ArrayList<>();\r\n }",
"public Line() {\n \n this.buffer = new ArrayList<ArrayList<Integer>>();\n this.buffer.add(new ArrayList<Integer>());\n this.lineT = 0;\n this.columnT = 0;\n this.inputMode = false;\n }",
"public ClientRequestGenerator(StaticTree tree, Terminal terminal) {\n super(tree.getFileSize() - 1);\n this.tree = tree;\n this.terminal = terminal;\n }",
"public ChatRequest()\r\n\t{\r\n\t}",
"private WebRequest() {\n initFields();\n }",
"private void makeRequest() {\n\t\tRequest request = new Request(RequestCode.GET_REVISION_HISTORY);\n\t\trequest.setDocumentName(tabs.getTitleAt(tabs.getSelectedIndex()));\n\t\ttry {\n\t\t\toos.writeObject(request);\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}",
"public ProcessInstrumenter(){\n\t\tparser = new DOMParser();\n\t\tnoActivity.add(\"variables\");\n\t\tnoActivity.add(\"correlationSets\");\n\t\tnoActivity.add(\"partnerLinks\");\n\t\tnoActivity.add(\"eventHandlers\");\n\t\tnoActivity.add(\"faultHandlers\");\n\t\tnoActivity.add(\"compensationHandlers\");\n\t}",
"@Override\n\tpublic void initRequest() {\n\n\t}",
"@Before\n public void setUp() {\n response = new DocumentsResponse();\n testDocList = new ArrayList<>();\n testDocList.add(new DocumentTestData().createTestDocument(1));\n }",
"public SalesRecords() {\n super();\n }",
"public RPCRequest()\n\t{\n\t\tsuper();\n\t}",
"protected Trainer(String tName) {\n this(tName, new ArrayList<>());\n }",
"public Lines()\r\n\t{\r\n\t\tlines = new LinkedList<Line>();\r\n\t}",
"public TrecWebDocument() {\r\n try {\r\n startTag = XML_START_TAG.getBytes(\"utf-8\");\r\n endTag = XML_END_TAG.getBytes(\"utf-8\");\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public AlignmentGeneration(){\n String filename = \"nlg.properties\";\n try {\n input = this.getClass().getClassLoader().getResourceAsStream(filename);\n if(input==null){\n logger.error(\"Unable to find \" + filename);\n return;\n }\n prop.load(input);\n this.host = prop.getProperty(\"host\");\n this.port = Integer.parseInt(prop.getProperty(\"port\"));\n this.coreUrl = String.format(\"http://%s:%d/\",host,port);\n }\n catch(IOException ex){\n ex.printStackTrace();\n } finally {\n if(input!=null)\n try{\n input.close();\n }\n catch (IOException e){\n e.printStackTrace();\n }\n }\n client = new OkHttpClient();\n this.headerVariable = \"content-type\";\n this.headerValue = \"application/x-www-form-urlencoded\";\n\n }",
"public Office() {\n\n\t\tthis.departaments = new HashMap<>();\n\t\tthis.documents = new ArrayList<>();\n\t\tthis.employees = 0;\n\t}",
"public QuestionContentRequest() {\n\t\tsuper();\n\t}",
"public FollowerRequest() {}",
"public TestBSSVRequest() {\r\n }",
"private TransactionRequest initTransactionRequest() {\n TransactionRequest transactionRequestNew = new\n TransactionRequest(System.currentTimeMillis() + \"\", 20000);\n\n //set customer details\n transactionRequestNew.setCustomerDetails(initCustomerDetails());\n\n\n // set item details\n ItemDetails itemDetails = new ItemDetails(\"1\", 20000, 1, \"Trekking Shoes\");\n\n // Add item details into item detail list.\n ArrayList<ItemDetails> itemDetailsArrayList = new ArrayList<>();\n itemDetailsArrayList.add(itemDetails);\n transactionRequestNew.setItemDetails(itemDetailsArrayList);\n\n\n // Create creditcard options for payment\n CreditCard creditCard = new CreditCard();\n\n creditCard.setSaveCard(false); // when using one/two click set to true and if normal set to false\n\n// this methode deprecated use setAuthentication instead\n// creditCard.setSecure(true); // when using one click must be true, for normal and two click (optional)\n\n creditCard.setAuthentication(CreditCard.AUTHENTICATION_TYPE_3DS);\n\n // noted !! : channel migs is needed if bank type is BCA, BRI or MyBank\n// creditCard.setChannel(CreditCard.MIGS); //set channel migs\n creditCard.setBank(BankType.BCA); //set spesific acquiring bank\n\n transactionRequestNew.setCreditCard(creditCard);\n\n return transactionRequestNew;\n }",
"public RequestLine(String rawRequestLine) {\n\t\tparseRequestLine(rawRequestLine);\n\t}",
"public XMLData () {\r\n\r\n //code description\r\n\r\n try {\r\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n this.document = builder.newDocument(); \r\n }\r\n catch (ParserConfigurationException err) {}\r\n\r\n }",
"private void getTransactionDetailsRequest() {\r\n\t\tBasicXmlDocument document = new BasicXmlDocument();\r\n\t\tdocument.parseString(\"<\" + TransactionType.GET_TRANSACTION_DETAILS.getValue()\r\n\t\t\t\t+ \" xmlns = \\\"\" + XML_NAMESPACE + \"\\\" />\");\r\n\r\n\t\taddAuthentication(document);\r\n\t\taddReportingTransactionId(document);\r\n\r\n\t\tcurrentRequest = document;\r\n\t}",
"public static PredictBuilder newPredictRequest() {\n\t\treturn new PredictBuilder();\n\t}",
"public Data(String[] lines) {\n\t\tmLines = lines;\n\t}",
"private CartReceiptRequest buildRequestFromParameters(String[] requestParameters) throws ParseException {\n CartReceiptRequest receiptRequest = new CartReceiptRequest();\n LOGGER.debug(\"localeParam =\" + requestParameters[2] + \" \\t applicationId =\" + requestParameters[1]);\n /* Building request for the Reprint API */\n receiptRequest.setUserId(Long.valueOf(requestParameters[0]));\n receiptRequest.setApplicationId(Long.valueOf(requestParameters[1]));\n receiptRequest.setLocale(requestParameters[2]);\n receiptRequest.setCartId(Long.valueOf(requestParameters[3]));\n Long milliSeconds = Long.parseLong(requestParameters[4]);\n Date date = new Date(milliSeconds);\n receiptRequest.setCartDate(date);\n /* Returning constructed API request*/\n return receiptRequest;\n }",
"public Notes() {\n initComponents();\n subjectText = new String ();\n noteText = new String();\n count = 0;\n ArrayMath = new Array[100];\n \n \n }",
"public TextlineModel() {\n\t\tobox = new OrientedBox(0,0,0,0,0);\n\t\tocclusions = new ArrayList();\n\t\twordOffsets = new ArrayList();\n\t\tsetText(\"\");\n\t\ttextPointer = null;\n\t}",
"com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest addNewEvSORequest();",
"public UpdateTrackingResp() {\n }",
"public Tokenizer() {\n tokenInfos = new LinkedList<TokenInfo>();\n tokens = new LinkedList<Token>();\n\n }",
"public ProcedureRequest() {\n this(DSL.name(\"procedure_request\"), null);\n }",
"private TeledonRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}",
"public OrderLine() {\n }",
"public GenericTcalRecord() {\n this(-1);\n }",
"public ProfileRequests() {\n }",
"public SimpleNotepad() {\n int defaultSize = 20;\n _notes = new Note[defaultSize];\n }",
"public InquiryGrupomuscularRequest()\r\n\t{\r\n\r\n\t}",
"protected void initialize() {\n this.locals = Common.calculateSegmentSize(Common.NUM_CORES);\n this.drvrs = Common.calculateSegmentSize(Common.NUM_CORES);\n reports = new ArrayList<>();\n }"
]
| [
"0.5981359",
"0.56615293",
"0.5601155",
"0.559365",
"0.54463553",
"0.535989",
"0.53575253",
"0.5343245",
"0.5321352",
"0.5273653",
"0.5263035",
"0.52547216",
"0.52542424",
"0.52383775",
"0.5237881",
"0.5218753",
"0.5214038",
"0.519344",
"0.51861537",
"0.5179133",
"0.5164685",
"0.5145506",
"0.5144627",
"0.5132009",
"0.5130177",
"0.5031099",
"0.5007761",
"0.49917758",
"0.49903384",
"0.4989095",
"0.49873167",
"0.4961242",
"0.49380806",
"0.4930986",
"0.49219316",
"0.49195358",
"0.49006468",
"0.48695138",
"0.48641077",
"0.4857753",
"0.48547277",
"0.48547277",
"0.48545617",
"0.4842062",
"0.48377484",
"0.48341513",
"0.4820062",
"0.48088294",
"0.47776744",
"0.47753435",
"0.477397",
"0.47691578",
"0.47679222",
"0.47661576",
"0.47612214",
"0.4754206",
"0.4754082",
"0.47458732",
"0.47438762",
"0.47383228",
"0.47248903",
"0.47220108",
"0.47184113",
"0.4716059",
"0.47147313",
"0.47142488",
"0.47111076",
"0.47077885",
"0.47029948",
"0.4678119",
"0.46729204",
"0.46711594",
"0.4668945",
"0.466798",
"0.4666434",
"0.46642637",
"0.46636143",
"0.46570912",
"0.465155",
"0.4650575",
"0.4649379",
"0.46439445",
"0.4641596",
"0.4632565",
"0.46243906",
"0.46221197",
"0.4620425",
"0.46171317",
"0.46137848",
"0.46064317",
"0.46051046",
"0.45995957",
"0.45995927",
"0.45964146",
"0.4592183",
"0.45920166",
"0.45919165",
"0.45866352",
"0.45778733",
"0.45647684"
]
| 0.5296644 | 9 |
Utility method which initiates the travel advance, hte wire transfer, the travel payment, and sets up all the related keys. Also, if the parameters are set for the advance accounting line, that is set up as well | protected void initiateAdvancePaymentAndLines() {
setDefaultBankCode();
setTravelAdvance(new TravelAdvance());
getTravelAdvance().setDocumentNumber(getDocumentNumber());
setAdvanceTravelPayment(new TravelPayment());
getAdvanceTravelPayment().setDocumentNumber(getDocumentNumber());
getAdvanceTravelPayment().setDocumentationLocationCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TravelParameters.DOCUMENTATION_LOCATION_CODE,
getParameterService().getParameterValueAsString(TemParameterConstants.TEM_DOCUMENT.class,TravelParameters.DOCUMENTATION_LOCATION_CODE)));
getAdvanceTravelPayment().setCheckStubText(getConfigurationService().getPropertyValueAsString(TemKeyConstants.MESSAGE_TA_ADVANCE_PAYMENT_HOLD_TEXT));
final java.sql.Date currentDate = getDateTimeService().getCurrentSqlDate();
getAdvanceTravelPayment().setDueDate(currentDate);
updatePayeeTypeForAuthorization(); // if the traveler is already initialized, set up payee type on advance travel payment
setWireTransfer(new PaymentSourceWireTransfer());
getWireTransfer().setDocumentNumber(getDocumentNumber());
setAdvanceAccountingLines(new ArrayList<TemSourceAccountingLine>());
resetNextAdvanceLineNumber();
TemSourceAccountingLine accountingLine = initiateAdvanceAccountingLine();
addAdvanceAccountingLine(accountingLine);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void propagateAdvanceInformationIfNeeded() {\n if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().getTravelAdvanceRequested() != null) {\n if (!ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setCheckTotalAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n final TemSourceAccountingLine maxAmountLine = getAccountingLineWithLargestAmount();\n if (!TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus())) {\n getAdvanceAccountingLines().get(0).setAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n if (!allParametersForAdvanceAccountingLinesSet() && !TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus()) && !advanceAccountingLinesHaveBeenModified(maxAmountLine)) {\n // we need to set chart, account, sub-account, and sub-object from account with largest amount from regular source lines\n if (maxAmountLine != null) {\n getAdvanceAccountingLines().get(0).setChartOfAccountsCode(maxAmountLine.getChartOfAccountsCode());\n getAdvanceAccountingLines().get(0).setAccountNumber(maxAmountLine.getAccountNumber());\n getAdvanceAccountingLines().get(0).setSubAccountNumber(maxAmountLine.getSubAccountNumber());\n }\n }\n // let's also propogate the due date\n if (getTravelAdvance().getDueDate() != null && !ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setDueDate(getTravelAdvance().getDueDate());\n }\n }\n }",
"protected TemSourceAccountingLine initiateAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setDocumentNumber(getDocumentNumber());\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setSequenceNumber(new Integer(1));\n accountingLine.setCardType(TemConstants.ADVANCE);\n if (this.allParametersForAdvanceAccountingLinesSet()) {\n accountingLine.setChartOfAccountsCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART));\n accountingLine.setAccountNumber(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT));\n accountingLine.setFinancialObjectCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE));\n }\n return accountingLine;\n }\n catch (InstantiationException ie) {\n LOG.error(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName(), ie);\n }\n catch (IllegalAccessException iae) {\n LOG.error(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName(), iae);\n }\n }",
"public void setAdvanceTravelPayment(TravelPayment advanceTravelPayment) {\n this.advanceTravelPayment = advanceTravelPayment;\n }",
"public void setTravelAdvance(TravelAdvance travelAdvance) {\n this.travelAdvance = travelAdvance;\n }",
"protected void initialize()\n {\n // Set the pid up for driving straight\n Robot.drivetrain.getAngleGyroController().setPID(Constants.DrivetrainAngleGyroControllerP, Constants.DrivetrainAngleGyroControllerI, Constants.DrivetrainAngleGyroControllerD);\n //Robot.drivetrain.resetGyro();\n if (setpointSpecified == true)\n {\n Robot.drivetrain.getAngleGyroController().setSetpoint(Robot.initialGyroAngle); \n }\n else\n {\n Robot.drivetrain.getAngleGyroController().setSetpoint(Robot.drivetrain.getGyroValue());\n }\n Robot.drivetrain.setDirection(driveDirection);\n Robot.drivetrain.setMagnitude(drivePower);\n Robot.drivetrain.getAngleGyroController().enable();\n timer.reset();\n timer.start();\n }",
"public TemSourceAccountingLine createNewAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setCardType(TemConstants.ADVANCE); // really, card type is ignored but it is validated so we have to set something\n accountingLine.setFinancialObjectCode(this.getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE, KFSConstants.EMPTY_STRING));\n return accountingLine;\n }\n catch (IllegalAccessException iae) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", iae);\n }\n catch (InstantiationException ie) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", ie);\n }\n }",
"public void navigateToBaseActivity() {\n\n //merchantKey = \"gtKFFx\"; //Testing\n merchantKey = \"ImrH8w\"; //Live\n //merchantKey = ((EditText) findViewById(R.id.editTextMerchantKey)).getText().toString();\n // String amount = ((EditText) findViewById(R.id.editTextAmount)).getText().toString();\n // String email = ((EditText) findViewById(R.id.editTextEmail)).getText().toString();\n\n // String value = environmentSpinner.getSelectedItem().toString();\n int environment;\n // String TEST_ENVIRONMENT = getResources().getString(R.string.test);\n // if (value.equals(TEST_ENVIRONMENT))\n //environment = PayuConstants.MOBILE_STAGING_ENV;\n // else\n environment = PayuConstants.PRODUCTION_ENV;\n\n userCredentials = merchantKey + \":\" + \"[email protected]\";// + new AppPreferences(PlaceOrderActivity.this).getEmail();\n\n //TODO Below are mandatory params for hash genetation\n mPaymentParams = new PaymentParams();\n /**\n * For Test Environment, merchantKey = \"gtKFFx\"\n * For Production Environment, merchantKey should be your live key or for testing in live you can use \"0MQaQP\"\n */\n mPaymentParams.setKey(merchantKey);\n mPaymentParams.setAmount(String.valueOf(discountedAmount));\n mPaymentParams.setProductInfo(\"FarmFresh24\");\n mPaymentParams.setFirstName(new AppPreferences(PlaceOrderActivity.this).getFname());\n mPaymentParams.setEmail(new AppPreferences(PlaceOrderActivity.this).getEmail());\n\n /*\n * Transaction Id should be kept unique for each transaction.\n * */\n mPaymentParams.setTxnId(\"\" + System.currentTimeMillis());\n\n /**\n * Surl --> Success url is where the transaction response is posted by PayU on successful transaction\n * Furl --> Failre url is where the transaction response is posted by PayU on failed transaction\n */\n mPaymentParams.setSurl(\"https://payu.herokuapp.com/success\");\n mPaymentParams.setFurl(\"https://payu.herokuapp.com/failure\");\n\n /*\n * udf1 to udf5 are options params where you can pass additional information related to transaction.\n * If you don't want to use it, then send them as empty string like, udf1=\"\"\n * */\n mPaymentParams.setUdf1(\"udf1\");\n mPaymentParams.setUdf2(\"udf2\");\n mPaymentParams.setUdf3(\"udf3\");\n mPaymentParams.setUdf4(\"udf4\");\n mPaymentParams.setUdf5(\"udf5\");\n\n /**\n * These are used for store card feature. If you are not using it then user_credentials = \"default\"\n * user_credentials takes of the form like user_credentials = \"merchant_key : user_id\"\n * here merchant_key = your merchant key,\n * user_id = unique id related to user like, email, phone number, etc.\n * */\n mPaymentParams.setUserCredentials(userCredentials);\n\n //TODO Pass this param only if using offer key\n //mPaymentParams.setOfferKey(\"cardnumber@8370\");\n\n //TODO Sets the payment environment in PayuConfig object\n payuConfig = new PayuConfig();\n payuConfig.setEnvironment(environment);\n\n //TODO It is recommended to generate hash from server only. Keep your key and salt in server side hash generation code.\n //generateHashFromServer(mPaymentParams);\n\n /**\n * Below approach for generating hash is not recommended. However, this approach can be used to test in PRODUCTION_ENV\n * if your server side hash generation code is not completely setup. While going live this approach for hash generation\n * should not be used.\n * */\n String salt = \"BBq8CTgS\"; //Live\n // String salt = \"eCwWELxi\"; //Test\n generateHashFromSDK(mPaymentParams, salt);\n\n }",
"protected void initialize() { \n param1 = SmartDashboard.getNumber(\"param1\");\n param2 = SmartDashboard.getNumber(\"param2\");\n param3 = SmartDashboard.getNumber(\"param3\");\n param4 = SmartDashboard.getNumber(\"param4\");\n command = new C_DriveBasedOnEncoderWithTwist(param1, param2, param3);\n }",
"private void driveForwardEnc()\r\n\t{\r\n\t\t//drive.setPos(0, 0, Config.Auto.encDriveForwardDistance, Config.Auto.encDriveForwardDistance);\r\n\t}",
"private TransactionRequest initTransactionRequest() {\n TransactionRequest transactionRequestNew = new\n TransactionRequest(System.currentTimeMillis() + \"\", 20000);\n\n //set customer details\n transactionRequestNew.setCustomerDetails(initCustomerDetails());\n\n\n // set item details\n ItemDetails itemDetails = new ItemDetails(\"1\", 20000, 1, \"Trekking Shoes\");\n\n // Add item details into item detail list.\n ArrayList<ItemDetails> itemDetailsArrayList = new ArrayList<>();\n itemDetailsArrayList.add(itemDetails);\n transactionRequestNew.setItemDetails(itemDetailsArrayList);\n\n\n // Create creditcard options for payment\n CreditCard creditCard = new CreditCard();\n\n creditCard.setSaveCard(false); // when using one/two click set to true and if normal set to false\n\n// this methode deprecated use setAuthentication instead\n// creditCard.setSecure(true); // when using one click must be true, for normal and two click (optional)\n\n creditCard.setAuthentication(CreditCard.AUTHENTICATION_TYPE_3DS);\n\n // noted !! : channel migs is needed if bank type is BCA, BRI or MyBank\n// creditCard.setChannel(CreditCard.MIGS); //set channel migs\n creditCard.setBank(BankType.BCA); //set spesific acquiring bank\n\n transactionRequestNew.setCreditCard(creditCard);\n\n return transactionRequestNew;\n }",
"public void advance(){\n\t\tswitch(state){\n\t\t\n\t\tcase LOGINID: \n\t\t\tif(currentInput.length() > 0){ //not empty \n\t\t\t\tif(Bank.accountExists(Integer.parseInt(currentInput))){ //shouldn't need to check if int since input can only be int\n\t\t\t\t\taccountID = Integer.parseInt(currentInput);\n\t\t\t\t\tloginPin();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfailedLogin();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\trefreshState();\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase LOGINPIN:\n\t\t\tif(currentInput.length() > 0){\n\t\t\t\tif(Bank.login(accountID, Integer.parseInt(currentInput))){\n\t\t\t\t\ttransactionMenu();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfailedPin();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase TRANSACTION:\n\t\t\ttransactionMenu();\n\t\t\tif(currentInput.equals(\"1\")){\n\t\t\t\tbalanceMenu();\n\t\t\t}\n\t\t\telse if(currentInput.equals(\"2\")){\n\t\t\t\tdepositMenu();\n\t\t\t}\n\t\t\telse if(currentInput.equals(\"3\")){\n\t\t\t\twithdrawalMenu();\n\t\t\t}\n\t\t\telse if(currentInput.equals(\"4\")){\n\t\t\t\taccountID = 0;\n\t\t\t\tloginMenu();\n\t\t\t}\n\t\t\telse{\n\t\t\t\trefreshState();\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase DEPOSIT:\n\t\t\tif(currentInput.length() > 0){\n\t\t\t\tBank.deposit(accountID, Integer.parseInt(currentInput));\n\t\t\t\tsuccessfulDeposit();\n\t\t\t}\n\t\t\t\n\t\t\tbreak;\n\t\t\t\n\t\tcase DEPOSITNOTIFICATION: \n\t\t\ttransactionMenu(); \n\t\t\tbreak;\n\t\t\t\n\t\tcase WITHDRAW:\n\t\t\tif(currentInput.length() > 0){\n\t\t\t\tif(Bank.withdraw(accountID, Integer.parseInt(currentInput))){\n\t\t\t\t\tsucceededWithdraw();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfailedWithdraw();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase BALANCE: \n\t\t\ttransactionMenu();\n\t\t\tbreak;\n\t\t\t\n\t\tcase WITHDRAWALNOTIFICATION: \n\t\t\ttransactionMenu(); \n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcurrentInput = \"\";\n\t}",
"protected void initialize() {\n done = false;\n\n\n prevAutoShiftState = driveTrain.getAutoShift();\n driveTrain.setAutoShift(false);\n driveTrain.setCurrentGear(DriveTrain.DriveGear.High);\n// double p = SmartDashboard.getNumber(\"drive p\", TTA_P);\n// double i = SmartDashboard.getNumber(\"drive i\", TTA_I);\n// double d = SmartDashboard.getNumber(\"drive d\", TTA_D);\n// double rate = SmartDashboard.getNumber(\"rate\", TTA_RATE);\n// double tolerance = TTA_TOLERANCE; // SmartDashboard.getNumber(\"tolerance\", 2);\n// double min = SmartDashboard.getNumber(\"min\", TTA_MIN);\n// double max = SmartDashboard.getNumber(\"max\", TTA_MAX);\n// double iCap = SmartDashboard.getNumber(\"iCap\", TTA_I_CAP);\n// pid = new PID(p, i, d, min, max, rate, tolerance, iCap);\n pid = new PID(TTA_P, TTA_I, TTA_D, TTA_MIN, TTA_MAX, TTA_RATE, TTA_TOLERANCE, TTA_I_CAP);\n\n driveTrain.setSpeedsPercent(0, 0);\n driveTrain.setCurrentControlMode(ControlMode.Velocity);\n }",
"TradeRoute(String aStartPoint, String anEndPoint, int anId){\n startPoint = aStartPoint;\n endPoint = anEndPoint;\n id = anId;\n }",
"public void startTransit() {\n\t\tthis.currentDriver.setStatus(Status.INTRANSIT);\n\t\tthis.currentDriver.setStatus(Status.FINISHED);\n\t\tthis.passenger.setLocation(currentRide.getDropOff());\n\t\tthis.currentDriver.setLocation(currentRide.getDropOff());\n\t\tthis.finishRide();\n\t}",
"@Override\n public void robotInit() {\n\n rightEnc.reset();\n gyro.reset();\n\n left2.follow(left1);\n left3.follow(left1);\n right2.follow(right1);\n right3.follow(right1);\n\n config = new Trajectory.Config(Trajectory.FitMethod.HERMITE_CUBIC, Trajectory.Config.SAMPLES_HIGH, 0.05, 1.7, 2.0, 50.0);\n trajectory = Pathfinder.generate(points, config);\n\n modifier = new TankModifier(trajectory).modify(0.7);\n\n left = new EncoderFollower(modifier.getLeftTrajectory());\n right = new EncoderFollower(modifier.getRightTrajectory());\n\n left.configureEncoder((int)rightEnc.get(), 1024, 0.1143);\n left.configurePIDVA(0.7, 0.0, 0.0, 0.15, 0.06);\n right.configureEncoder((int)rightEnc.get(), 1024, 0.1143);\n right.configurePIDVA(0.7, 0.0, 0.0, 0.15, 0.06);\n \n }",
"public JSONObject getAdvanceForGSTR3BTaxable(JSONObject reqParams) throws JSONException, ServiceException {\n String companyId=reqParams.optString(\"companyid\");\n JSONObject jSONObject = new JSONObject();\n double taxableAmountAdv = 0d;\n double IGSTAmount = 0d;\n double CGSTAmount = 0d;\n double SGSTAmount = 0d;\n double CESSAmount = 0d;\n reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n if (reqParams.optBoolean(\"at\")) {\n /**\n * Get Advance for which invoice not linked yet\n */\n\n reqParams.put(\"at\", true);\n List<Object> receiptList = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n JSONArray bulkData = gSTR1DeskeraServiceDao.createJsonForAdvanceDataFetchedFromDB(receiptList, reqParams);\n Map<String, JSONArray> advanceMap = AccountingManager.getSortedArrayMapBasedOnJSONAttribute(bulkData, GSTRConstants.receiptadvanceid);\n for (String advdetailkey : advanceMap.keySet()) {\n double rate = 0d;\n JSONArray adDetailArr = advanceMap.get(advdetailkey);\n JSONObject advanceobj = adDetailArr.getJSONObject(0);\n taxableAmountAdv += advanceobj.optDouble(GSTRConstants.receiptamount) - advanceobj.optDouble(GSTRConstants.receipttaxamount);\n for (int index = 0; index < adDetailArr.length(); index++) {\n JSONObject invdetailObj = adDetailArr.getJSONObject(index);\n String defaultterm = invdetailObj.optString(GSTRConstants.defaultterm);\n\n /**\n * Iterate applied GST and put its Percentage and Amount\n * accordingly\n */\n double termamount = invdetailObj.optDouble(GSTRConstants.termamount);\n double taxrate = invdetailObj.optDouble(GSTRConstants.taxrate);\n /**\n * calculate tax amount by considering partial case\n */\n termamount = (advanceobj.optDouble(GSTRConstants.receiptamount) - advanceobj.optDouble(GSTRConstants.receipttaxamount)) * invdetailObj.optDouble(GSTRConstants.taxrate) / 100;\n if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n IGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n CGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n SGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n SGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n CESSAmount += termamount;\n }\n }\n }\n\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n// List<Object> AdvData = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n// for (Object object : AdvData) {\n// Object[] data = (Object[]) object;\n// String term = data[1].toString();\n// double termamount = (Double) data[0];\n// if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n// taxableAmountAdv += (Double) data[2];\n// IGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n// taxableAmountAdv += (Double) data[2];\n// CGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n// SGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n// SGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n// CESSAmount += termamount;\n// }\n// }\n } else {\n /**\n * Get Advance for which invoice isLinked\n */\n reqParams.put(\"atadj\", true);\n List<Object> receiptList = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n JSONArray bulkData = gSTR1DeskeraServiceDao.createJsonForAdvanceDataFetchedFromDB(receiptList, reqParams);\n Map<String, JSONArray> advanceMap = AccountingManager.getSortedArrayMapBasedOnJSONAttribute(bulkData, GSTRConstants.receiptadvanceid);\n for (String advdetailkey : advanceMap.keySet()) {\n double rate = 0d;\n JSONArray adDetailArr = advanceMap.get(advdetailkey);\n JSONObject advanceobj = adDetailArr.getJSONObject(0);\n taxableAmountAdv += advanceobj.optDouble(GSTRConstants.adjustedamount);\n for (int index = 0; index < adDetailArr.length(); index++) {\n JSONObject invdetailObj = adDetailArr.getJSONObject(index);\n String defaultterm = invdetailObj.optString(GSTRConstants.defaultterm);\n\n /**\n * Iterate applied GST and put its Percentage and Amount\n * accordingly\n */\n double termamount = invdetailObj.optDouble(GSTRConstants.termamount);\n double taxrate = invdetailObj.optDouble(GSTRConstants.taxrate);\n /**\n * calculate tax amount by considering partial case\n */\n termamount = advanceobj.optDouble(GSTRConstants.adjustedamount) * invdetailObj.optDouble(GSTRConstants.taxrate) / 100;\n if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n IGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n CGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n SGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n SGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n CESSAmount += termamount;\n }\n }\n }\n\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n// List<Object> AdvDataLinked = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n// for (Object object : AdvDataLinked) {\n// Object[] data = (Object[]) object;\n// String term = data[1].toString();\n// double termamount = (Double) data[0];\n// taxableAmountAdv = (Double) data[2];\n// if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n// taxableAmountAdv += (Double) data[2];\n// IGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n// taxableAmountAdv += (Double) data[2];\n// CGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n// SGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n// SGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n// CESSAmount += termamount;\n// }\n// }\n }\n\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount(taxableAmountAdv,companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount(IGSTAmount,companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount(CGSTAmount,companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount(SGSTAmount,companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount(CESSAmount,companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount(IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount(taxableAmountAdv+IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n return jSONObject;\n }",
"public void autoPay() {}",
"protected void initialize() {\n \tRobot.driveTrain.arcade(MOVE_SPEED_PERCENT, Robot.driveTrain.gyroPReturn(direction));\n }",
"@Override\n\tpublic void setupKeyFieldsAfterMaint(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZRRC\", \"DDC\"); // Return reason code (3A)\n\t\ttransaction.setFieldValue(\"GZCHQS\", \"6\"); // Up to (2S,0)\n\t\ttransaction.setFieldValue(\"GZCHQP\", \"6\"); // Previous up to range (2S,0)\n\t}",
"protected void initialize() {\n Robot.m_drivetrain.resetPath();\n Robot.m_drivetrain.addPoint(0, 0);\n Robot.m_drivetrain.addPoint(3, 0);\n Robot.m_drivetrain.generatePath();\n \n\t}",
"protected void setup(){\n\n\t\tsuper.setup();\n\n\t\tfinal Object[] args = getArguments();\n\t\tif(args!=null && args[0]!=null && args[1]!=null){\n\t\t\tdeployAgent((Environment) args[0],(EntityType)args[1]);\n\t\t}else{\n\t\t\tSystem.err.println(\"Malfunction during parameter's loading of agent\"+ this.getClass().getName());\n System.exit(-1);\n }\n\t\t\n\t\t//############ PARAMS ##########\n\n\t\tthis.nbmodifsmin \t\t= 30;\t\t\t//nb modifs minimum pour renvoyer la carte\n\t\tthis.timeOut \t\t\t= 1000 * 4;\t\t//secondes pour timeout des messages (*1000 car il faut en ms)\n\t\tthis.sleepbetweenmove \t= 200;\t\t\t//in MS\n\t\tthis.nbmoverandom\t\t= 4;\t\t\t// nb random moves by default\n\t\t\n\t\t//#############################\n\t\t//setup graph\n\t\t//setupgraph();\n\t\tthis.graph = new SingleGraph(\"graphAgent\");\n\t\tinitMyGraph();\n\t\tthis.step = 0;\n\t\tthis.stepMap = new HashMap<String, Integer>();\n\t\tthis.path = new ArrayList<String>();\n\t\tthis.mailbox = new Messages(this);\n\t\tthis.lastMsg = null;\n\t\tthis.switchPath = true;\n\t\tthis.lastsender = null;\n\t\tthis.lastSentMap = new HashMap<String, Integer>(); //nbmodifs\n\t\tthis.remakepath = false; // changes to true if the map changed in a way that requires a new path\n\t\tthis.nbmoverandomoriginal = this.nbmoverandom;\n\t\t\n\t\tthis.toSendMap = new HashMap<String, Graph>(); //actual hashmap graph\n\t\t\n\t\tSystem.out.println(\"the agent \"+this.getLocalName()+ \" is started\");\n\t}",
"@Override\n\tpublic void robotInit() {\n\t\tdt = new DriveTrain();\n\t\t//Initialize drive Talons\n\t\tRobotMap.vspLeft = new WPI_TalonSRX(RobotMap.dtLeft);\n\t\tRobotMap.vspRight = new WPI_TalonSRX(RobotMap.dtRight);\n\t\t//Initialize drive slave Victors\n\t\t//RobotMap.slaveLeft = new WPI_VictorSPX(RobotMap.slaveDriveLeft);\n\t\t//RobotMap.slaveRight = new WPI_VictorSPX(RobotMap.slaveDriveRight);\n\t\t//Set drive slaves to follower mode\n\t\t//RobotMap.slaveLeft.follow(RobotMap.vspLeft);\n\t\t//RobotMap.slaveRight.follow(RobotMap.vspRight);\n\t\t//Initialize drive train\n\t\tRobotMap.rd = new DifferentialDrive(RobotMap.vspLeft, RobotMap.vspRight);\n\t\t//Initialize drive joystick\n\t\tRobotMap.stick = new Joystick(RobotMap.joystickPort);\n\t\t//Disabled drive safety\n\t\tRobotMap.vspLeft.setSafetyEnabled(false);\n\t\tRobotMap.vspRight.setSafetyEnabled(false);\n\t\tRobotMap.rd.setSafetyEnabled(false);\n\t\t//Initialize lift Talon\n\t\tRobotMap.liftTalon = new WPI_TalonSRX(5);\n\t\t//Initialize operator controller\n\t\tRobotMap.controller = new Joystick(RobotMap.controllerPort);\n\t\t//Initialize intake Victors\n\t\tRobotMap.intakeVictorLeft = new WPI_VictorSPX(RobotMap.intakeMaster);\n\t\tRobotMap.intakeVictorRight = new WPI_VictorSPX(RobotMap.intakeSlave);\n\t\t//Set right intake Victor to follow left intake Victor\n\t\tRobotMap.intakeVictorRight.follow(RobotMap.intakeVictorLeft);\n\t\t\n\t\tRobotMap.climberVictorLeft = new WPI_VictorSPX(RobotMap.climberLeftAddress);\n\t\tRobotMap.climberVictorRight = new WPI_VictorSPX(RobotMap.climberRightAddress);\n\t\t\n\t\tRobotMap.climberVictorRight.follow(RobotMap.climberVictorLeft);\n\t\t\n\t\tRobotMap.piston = new DoubleSolenoid(RobotMap.inChannel, RobotMap.outChannel);\n\t\t\n\t\tRobotMap.intakeLifter = new WPI_VictorSPX(2);\n\t\t\n\t\tRobotMap.liftTalon = new WPI_TalonSRX(RobotMap.liftTalonAddress);\n\t\t\n\t\tautoChooser = new SendableChooser();\n\t\tautoChooser.addDefault(\"Drive to baseline\" , new DriveToBaseline());\n\t\tautoChooser.addObject(\"Null auto\", new NullAuto());\n\t\tautoChooser.addObject(\"Switch from right\", new SwitchFromRight());\n\t\tautoChooser.addObject(\"Switch from left\", new SwitchFromLeft());\n\t\tautoChooser.addObject(\"PID from left\", new PIDfromLeft());\n\t\tautoChooser.addObject(\"PID from right\", new PIDfromRight());\n\t\tautoChooser.addObject(\"Scale from right\", new ScaleAutoRight());\n\t\tautoChooser.addObject(\"Scale from left\", new ScaleAutoLeft());\n\t\tautoChooser.addObject(\"PID tester\", new PIDTESTER());\n\t\tautoChooser.addObject(\"Joe use this one\", new leftOnly());\n\t\tSmartDashboard.putData(\"Autonomous mode chooser\", autoChooser);\n\t\t\n\t\t//RobotMap.liftVictor.follow(RobotMap.climberTalon);\n\t\t\n\t\tRobotMap.vspLeft.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 0);\n\t\tRobotMap.vspRight.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 0);\n\t\t\n\t\tRobotMap.intakeLifted = new DigitalInput(1);\n\t\tRobotMap.isAtTop = new DigitalInput(2);\n\t\tRobotMap.isAtBottom = new DigitalInput(0);\n\t\t\n\t\tRobotMap.vspLeft.configVelocityMeasurementPeriod(VelocityMeasPeriod.Period_100Ms, 1);\n\t\tRobotMap.vspRight.configVelocityMeasurementWindow(64, 1); \n\t\t\n\t\toi = new OI();\n\t}",
"@Override\n protected void initialize() {\n mDrive.resetGyroPosition();\n try {\n Trajectory left_trajectory = PathfinderFRC.getTrajectory(pathName + \".left\");\n Trajectory right_trajectory = PathfinderFRC.getTrajectory(pathName + \".right\");\n\n m_left_follower = new EncoderFollower(left_trajectory);\n m_right_follower = new EncoderFollower(right_trajectory);\n\n if(isBackwards) {\n initBackwards();\n } else {\n initForwards();\n }\n } catch (IOException e) {\n\t\t e.printStackTrace();\n\t }\n }",
"public boolean allParametersForAdvanceAccountingLinesSet() {\n // not checking the object code because that will need to be set no matter what - every advance accounting line will use that\n return (!StringUtils.isBlank(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT, KFSConstants.EMPTY_STRING)) &&\n !StringUtils.isBlank(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART, KFSConstants.EMPTY_STRING)));\n }",
"protected void initialize() {\n \tRobot.telemetry.setAutonomousStatus(\"Starting \" + commandName + \": \" + distance);\n \tRobot.drivetrain.resetEncoder();\n \t\n \tRobot.driveDistancePID.setSetpoint(distance);\n \tRobot.driveDistancePID.setRawTolerance(RobotPreferences.drivetrainTolerance());\n \tRobot.driveDistancePID.enable();\n \t\n \texpireTime = timeSinceInitialized() + (RobotPreferences.timeOut());\n }",
"@Override\n public void teleopInit() {\n /* factory default values */\n _talonL1.configFactoryDefault();\n _talonL2.configFactoryDefault();\n _talonR1.configFactoryDefault();\n _talonR2.configFactoryDefault();\n\n /* flip values so robot moves forward when stick-forward/LEDs-green */\n _talonL1.setInverted(true); // <<<<<< Adjust this\n _talonL2.setInverted(true); // <<<<<< Adjust this\n _talonR1.setInverted(true); // <<<<<< Adjust this\n _talonR2.setInverted(true); // <<<<<< Adjust this\n\n\n /*\n * WPI drivetrain classes defaultly assume left and right are opposite. call\n * this so we can apply + to both sides when moving forward. DO NOT CHANGE\n */\n _drive.setRightSideInverted(true);\n }",
"@Action(accessLevel = AccessLevel.CASH_DESK)\r\n public void purchaseTwoWayTicket() {\n purchaseOneWayTicket();\r\n\r\n selectedReturnEntry = null;\r\n returnResultsModel = null;\r\n returnDate = null;\r\n travelType = \"TWO_WAY\";\r\n }",
"protected void initialize() {\n \t starttime = Timer.getFPGATimestamp();\n \tthis.startAngle = RobotMap.navx.getAngle();\n \tangleorientation.setSetPoint(RobotMap.navx.getAngle());\n \t\n \tRobotMap.motorLeftTwo.enableControl();\n \tRobotMap.motorRightTwo.enableControl();\n \tRobotMap.motorLeftTwo.enableControl();\n \tRobotMap.motorRightTwo.enableControl();\n \n //settting talon control mode\n \tRobotMap.motorLeftTwo.changeControlMode(TalonControlMode.MotionMagic);\t\t\n\t\tRobotMap.motorLeftOne.changeControlMode(TalonControlMode.Follower);\t\n\t\tRobotMap.motorRightTwo.changeControlMode(TalonControlMode.MotionMagic);\t\n\t\tRobotMap.motorRightOne.changeControlMode(TalonControlMode.Follower);\n\t\t//setting peak and nominal output voltage for the motors\n\t\tRobotMap.motorLeftTwo.configPeakOutputVoltage(+12.0f, -12.0f);\n\t\tRobotMap.motorLeftTwo.configNominalOutputVoltage(0.00f, 0.0f);\n\t\tRobotMap.motorRightTwo.configPeakOutputVoltage(+12.0f, -12.0f);\n\t\tRobotMap.motorRightTwo.configNominalOutputVoltage(0.0f, 0.0f);\n\t\t//setting who is following whom\n\t\tRobotMap.motorLeftOne.set(4);\n\t\tRobotMap.motorRightOne.set(3);\n\t\t//setting pid value for both sides\n\t//\tRobotMap.motorLeftTwo.setCloseLoopRampRate(1);\n\t\tRobotMap.motorLeftTwo.setProfile(0);\n\t RobotMap.motorLeftTwo.setP(0.000014f);\n \tRobotMap.motorLeftTwo.setI(0.00000001);\n\t\tRobotMap.motorLeftTwo.setIZone(0);//325);\n\t\tRobotMap.motorLeftTwo.setD(1.0f);\n\t\tRobotMap.motorLeftTwo.setF(this.fGainLeft+0.014);//0.3625884);\n\t\tRobotMap.motorLeftTwo.setAllowableClosedLoopErr(0);//300);\n\t\t\n\t RobotMap.motorRightTwo.setCloseLoopRampRate(1);\n\t RobotMap.motorRightTwo.setProfile(0);\n\t\tRobotMap.motorRightTwo.setP(0.000014f);\n\t\tRobotMap.motorRightTwo.setI(0.00000001);\n\t\tRobotMap.motorRightTwo.setIZone(0);//325);\n\t\tRobotMap.motorRightTwo.setD(1.0f);\n\t\tRobotMap.motorRightTwo.setF(this.fGainRight);// 0.3373206);\n\t\tRobotMap.motorRightTwo.setAllowableClosedLoopErr(0);//300);\n\t\t\n\t\t//setting Acceleration and velocity for the left\n\t\tRobotMap.motorLeftTwo.setMotionMagicAcceleration(125);\n\t\tRobotMap.motorLeftTwo.setMotionMagicCruiseVelocity(250);\n\t\t//setting Acceleration and velocity for the right\n\t\tRobotMap.motorRightTwo.setMotionMagicAcceleration(125);\n\t\tRobotMap.motorRightTwo.setMotionMagicCruiseVelocity(250);\n\t\t//resets encoder position to 0\t\t\n\t\tRobotMap.motorLeftTwo.setEncPosition(0);\n\t\tRobotMap.motorRightTwo.setEncPosition(0);\n\t //Set Allowable error for the loop\n\t\tRobotMap.motorLeftTwo.setAllowableClosedLoopErr(300);\n\t\tRobotMap.motorRightTwo.setAllowableClosedLoopErr(300);\n\t\t\n\t\t//sets desired endpoint for the motors\n RobotMap.motorLeftTwo.set(motionMagicEndPoint);\n RobotMap.motorRightTwo.set(-motionMagicEndPoint );\n \t\n }",
"public void enableBuyEntrance(){\r\n\t\tbuyEntrance = true;\r\n\t\tbuildHotel = true;\r\n\t}",
"@Override\n\tpublic void setup() {\n\t\tObjectSpace objectSpace = Blackboard.inst().getSpace(ObjectSpace.class, \"object\");\n\t\tList<PhysicsObject> objects = objectSpace.getCognitiveAgents();\n\n\t\tif (objects.size() != 2)\n\t\t\tthrow new RuntimeException(\"Need two agents in order to run PathScenario4!\");\n\t\t\n\t\t// first we determine the line between their two points.\n\t\tPhysicsObject obj1 = objects.get(0);\n\t\tPhysicsObject obj2 = objects.get(1);\n\t\t\t\t\n\t\tVec2 direction = obj1.getPPosition().sub(obj2.getPPosition());\n\t\tVec2 nDirection = new Vec2(direction);\n\t\tnDirection.normalize();\n\t\tfloat radians = (float) Math.atan2(nDirection.y, nDirection.x);\n\t\tfloat PI = (float) Math.PI;\n\t\tfloat PI2 = PI * 0.5f;\n\n\t\tfloat perp = radians + PI2;\n\t\tVec2 v = new Vec2((float) Math.cos(perp), (float) Math.sin(perp));\n\t\tVec2 offset1 = new Vec2(obj1.getPPosition().add(v));\n\n\t\tList<Vec2> waypoints1 = new ArrayList<Vec2>();\n\t\twaypoints1.add(obj2.getPPosition());\n\n\t\tList<Vec2> waypoints2 = new ArrayList<Vec2>();\n\t\twaypoints2.add(offset1);\n\t\t\n\t\t// Set positions and orientations\n\t\tobj1.getBody().setXForm(obj1.getPPosition(), radians + (float) Math.PI);\n\t\tobj2.getBody().setXForm(obj2.getPPosition(), radians);\n\n\t\tEventManager.inst().dispatch(new SetWaypoints(waypoints1, obj1));\n\t\tEventManager.inst().dispatch(new SetWaypoints(waypoints2, obj2));\n\t}",
"public void startPayment() {\r\n final Activity activity = this;\r\n\r\n final Checkout co = new Checkout();\r\n\r\n try {\r\n JSONObject options = new JSONObject();\r\n options.put(\"name\", \"Farm2Home\");\r\n options.put(\"description\", \"Consumption charges\");\r\n //You can omit the image option to fetch the image from dashboard\r\n // options.put(\"image\", \"https://rzp-mobile.s3.amazonaws.com/images/rzp.png\");\r\n options.put(\"currency\", \"INR\");\r\n options.put(\"amount\", \"500\");\r\n\r\n // JSONObject preFill = new JSONObject();\r\n // preFill.put(\"email\", \"[email protected]\");\r\n // preFill.put(\"contact\", \"9876543210\");\r\n\r\n // options.put(\"prefill\", preFill);\r\n\r\n co.open(activity, options);\r\n } catch (Exception e) {\r\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\r\n .show();\r\n e.printStackTrace();\r\n }\r\n }",
"protected void setup() {\n DFAgentDescription dfd = new DFAgentDescription();\n dfd.setName(getAID());\n ServiceDescription sd = new ServiceDescription();\n sd.setName(\"Storage Agent\");\n sd.setType(\"Storage\");\n dfd.addServices(sd);\n try {\n DFService.register(this, dfd);\n } catch (FIPAException fe) {\n fe.printStackTrace();\n }\n waitForAgents = new waitAgents();\n receiveAgents = new receiveFromAgents();\n operate = new opMicrogrid();\n decision = new takeDecision();\n\n addBehaviour(waitForAgents);\n\n //add a ticker behavior to monitor PV production, disable PLay button in the meanwhile\n addBehaviour(new TickerBehaviour(this, 5000) {\n protected void onTick() {\n if (AgentsUp == 0) {\n appletVal.playButton.setEnabled(false);\n ACLMessage msg = new ACLMessage(ACLMessage.INFORM);\n msg.addReceiver(new AID(AgentAIDs[2].getLocalName(), AID.ISLOCALNAME));\n msg.setContent(\"Inform!!!\");\n send(msg);\n String stripedValue = \"\";\n msg = receive();\n if (msg != null) {\n // Message received. Process it\n String val = msg.getContent().toString();\n stripedValue = (val.replaceAll(\"[\\\\s+a-zA-Z :]\", \"\"));\n //PV\n if (val.contains(\"PV\")) {\n System.out.println(val);\n PV = Double.parseDouble(stripedValue);\n appletVal.playButton.setEnabled(true);\n appletVal.SetAgentData(PV, 0, 2);\n }\n\n } else {\n block();\n }\n\n }\n }\n });\n\n }",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZCNEW\", \"Y\"); // Generate new card?\n\t\ttransaction.setFieldValue(\"GZCMOD\", \"A\"); // Mode - this must be 'A' when adding\n\t\ttransaction.setFieldValue(\"GZCNM1\", \"TEST AUTO\"); // Card name 1\n\t}",
"public void setAdvanceAccountingLines(List<TemSourceAccountingLine> advanceAccountingLines) {\n this.advanceAccountingLines = advanceAccountingLines;\n }",
"@Override\n public void teleopInit() {\n if (autonomousCommand != null) \n {\n autonomousCommand.cancel();\n }\n\n new ArcadeDrive().start();\n\n new BackElevatorControl().start();\n\n new IntakeControl().start();\n\n new FrontElevatorManual().start();\n\n new ElevatorAutomatic().start();\n }",
"protected void ratCrewInit() {\n\n // Init motor state machine.\n motorTurnType = \"none\";\n motorTurnDestination = 0.0f;\n motorTurnAngleToGo = 0.0f;\n motorTurnAngleAdjustedToGo = 0.0f;\n isDriving = false;\n driveLeftStart = 0;\n driveRightStart = 0;\n driveLeftTarget = 0;\n driveRightTarget = 0;\n driveRightSpeed = 0.0f;\n driveLeftSpeed = 0.0f;\n driveAngleOffset = 0.0f;\n driveAngleCorrection = 0.0f;\n\n // TODO: push into initMotor function\n if (doMotors) {\n // Initialize Motors, finding them through the hardware map.\n leftDrive = hardwareMap.get(DcMotor.class, \"motorLeft\");\n rightDrive = hardwareMap.get(DcMotor.class, \"motorRight\");\n leftDrive.setDirection(DcMotor.Direction.REVERSE);\n rightDrive.setDirection(DcMotor.Direction.FORWARD);\n\n // initialize the encoder\n leftDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightDrive.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n leftDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rightDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n leftDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n // Set all motors to zero power.\n leftDrive.setPower(0);\n rightDrive.setPower(0);\n\n gate = hardwareMap.get(Servo.class, \"Gate\");\n gate.setPosition(1.0);\n }\n initGyroscope();\n\n if (doVuforia){\n initVuforia();\n initTfod();\n\n if (tfod != null) {\n tfod.activate();\n\n // The TensorFlow software will scale the input images from the camera to a lower resolution.\n // This can result in lower detection accuracy at longer distances (> 55cm or 22\").\n // If your target is at distance greater than 50 cm (20\") you can adjust the magnification value\n // to artificially zoom in to the center of image. For best results, the \"aspectRatio\" argument\n // should be set to the value of the images used to create the TensorFlow Object Detection model\n // (typically 1.78 or 16/9).\n\n // Uncomment the following line if you want to adjust the magnification and/or the aspect ratio of the input images.\n tfod.setZoom(2.5, 1.78);\n }\n }\n\n // Init run state.\n madeTheRun = false;\n startTime = 0;\n telemetry.addData(\"Init\", \"motors=%b, gyro=%b, vuforia=%b\", doMotors, doGyro, doVuforia);\n telemetry.update();\n }",
"@Setup(Level.Trial)\n public void setupGraph() {\n initializeMethod();\n prepareRequest();\n emitFrontEnd();\n }",
"@Setup(Level.Trial)\n public void setupGraph() {\n initializeMethod();\n prepareRequest();\n emitFrontEnd();\n }",
"@Setup(Level.Trial)\n public void setupGraph() {\n initializeMethod();\n prepareRequest();\n emitFrontEnd();\n }",
"@Override\n\tpublic void teleopInit() {\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.cancel();\n\t\tisAutonomous = false;\n\t\tisTeleoperated = true;\n\t\tisEnabled = true;\n\t\ttry {\n\t\t\tdrivebase.initDriveBase(1);\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\tRobot.numToSend = 3;\n\t}",
"public static void main(String[] args) {\n EosApi api = EosApiFactory.create(\"https://api.jungle.alohaeos.com\");\n //EosApi api = EosApiFactory.create(\"https://jungle.cryptolions.io\");\n //EosApi api = EosApiFactory.create(\"https://eos.newdex.one\");\n //System.out.println(api.getChainInfo());\n //buyRam(api, \"5K3iYbkjpvZxxAJyHQVAtJmCi4CXetBKq3CfcboMz21Y5Pjvovo\", \"bihuexwallet\", \"bihuexwallet\",15000);\n //delegate(api, \"5KD2hyi84H46ND8citJr6L84mYegnX1UKw9osLnF3qpcjoeRAAn\", \"carilking111\", \"carilking444\",\"1.5000 EOS\",\"1.5000 EOS\");\n //updateAuth(api,\"5JhoFQMN9xWGMFfUDJHHPVsuSytSDot8Q5TNv3rN6VVGPbjTrGN\",\"carilking444\",\"EOS82Psyaqk86jbSdSmGzonNCUHsBp1Xj42q37g6UkiA1UhzLe57j\",\"active\");\n //updateAuth(api,\"5JrTcSsUmzoLDxsNFcpGBRt2Wd488qTmHp5yfBPy71MbxaqSJ4g\",\"carilking555\",\"EOS5X6Sbmbc2zaJ8EHNZmdSnA26DsuTim59pdUNiNd34HugzvTp5m\",\"active\");\n //transfer(api,\"5JhoFQMN9xWGMFfUDJHHPVsuSytSDot8Q5TNv3rN6VVGPbjTrGN\", \"carilking444\",\"carilking111\",BigDecimal.valueOf(0.01),\"喵喵喵~\");\n //Object obj=api.getTransaction(new TransactionRequest(\"e5aeee319e8c767cdda35a3b6d460328f958833e58723bc18581765494018700\"));\n //System.out.println(obj);\n List<String> accounts = new ArrayList<>();\n accounts.add(\"carilking111\");\n accounts.add(\"carilking444\");\n //updateMultipleAuth(api, \"5JPNqMSZ8M567hgDGW9CmD9vr2RaDm1eWpJqHaHa2S5xKTMmFKm\", \"heydoojqgege\", 2, accounts, \"active\");\n //proposeTransfer(api, \"5K3iYbkjpvZxxAJyHQVAtJmCi4CXetBKq3CfcboMz21Y5Pjvovo\", \"bihuexwallet\", \"firstmsig152\", \"heydoojqgege\", \"carilking222\", BigDecimal.valueOf(0.2), \"test1\", accounts);\n //approveTransfer(api,\"5KD2hyi84H46ND8citJr6L84mYegnX1UKw9osLnF3qpcjoeRAAn\",\"carilking111\",\"bihuexwallet\",\"firstmsig151\");\n //execPropose(api,\"5K3iYbkjpvZxxAJyHQVAtJmCi4CXetBKq3CfcboMz21Y5Pjvovo\",\"bihuexwallet\",\"bihuexwallet\",\"firstmsig151\");\n }",
"protected void setup(){\n this.setEnabledO2ACommunication(true, 0);\n \n showMessage(\"Agent (\" + getLocalName() + \") .... [OK]\");\n \n // Register the agent to the DF\n ServiceDescription sd1 = new ServiceDescription();\n sd1.setType(UtilsAgents.BOAT_COORDINATOR);\n sd1.setName(getLocalName());\n sd1.setOwnership(UtilsAgents.OWNER);\n DFAgentDescription dfd = new DFAgentDescription();\n dfd.addServices(sd1);\n dfd.setName(getAID());\n try {\n DFService.register(this, dfd);\n showMessage(\"Registered to the DF\");\n }catch (FIPAException e) {\n System.err.println(getLocalName() + \" registration with DF \" + \"unsucceeded. Reason: \" + e.getMessage());\n doDelete();\n }\n \n //Search for the CentralAgent\n ServiceDescription searchBoatCoordCriteria = new ServiceDescription();\n searchBoatCoordCriteria.setType(UtilsAgents.COORDINATOR_AGENT);\n this.coordinatorAgent = UtilsAgents.searchAgent(this, searchBoatCoordCriteria);\n\n // Register response behaviours\n //TODO canviar i posar l'altra content\n MessageTemplate mt = MessageTemplate.MatchContent(\"Movement request\");\n this.addBehaviour(new RequestResponseBehaviour(this,mt ));\n }",
"@Override\n\tprotected void initLateralWeightParams(final Space extendedSpace) throws CommandLineFormatException\n\t{\n\t\thppa = command.get(CNFTCommandLine.WA);\n\t\thpA = command.get(CNFTCommandLine.IA);\n\t\taddParameters(hppa,hpA);\n\t\taddParameters(command.get(CNFTCommandLine.LEARNING_RATE));\n\t}",
"@Override\n\tpublic void setupKeyFieldsAfterAdd(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZRRC\", \"DDC\"); // Return reason code (3A)\n\t\ttransaction.setFieldValue(\"GZCHQP\", \"5\"); // Up to (2S,0)\n\t\ttransaction.setFieldValue(\"GZCHQS\", \"5\"); // Up to (2S,0)\n\n\t}",
"protected void setup() {\n\t\tDFAgentDescription dfd = new DFAgentDescription();\r\n\t\tdfd.setName(getAID());\r\n\t\tServiceDescription sd = new ServiceDescription();\r\n\t\tsd.setType(\"TIS\");\r\n\t\tsd.setName(\"TIS\");\r\n\t\tdfd.addServices(sd);\r\n\t\ttry {\r\n\t\t\tDFService.register(this, dfd);\r\n\t\t} catch (FIPAException fe) {\r\n\t\t\tfe.printStackTrace();\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Hello, Tractor Information Service agent \" + getAID().getName() + \" is ready\");\r\n\r\n\t\t// Create and show the GUI\r\n\t\tmyGui = new TISGUI(this);\r\n\t\tmyGui.showGui();\r\n\r\n\r\n\t\taddBehaviour(new TickerBehaviour(this, 5000) {\r\n\t\t\tprotected void onTick() {\r\n\r\n\t\t\t\t// get name of agent that manages the fuel usage for this tractor\r\n\t\t\t\tDFAgentDescription template = new DFAgentDescription();\r\n\t\t\t\tServiceDescription sd = new ServiceDescription();\r\n\t\t\t\tsd.setType(\"TractorDT\");\r\n\t\t\t\ttemplate.addServices(sd);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDFAgentDescription[] result = DFService.search(myAgent, template);\r\n\t\t\t\t\tDTAgents = new AID[result.length];\r\n\t\t\t\t\tfor (int i = 0; i < result.length; ++i) {\r\n\t\t\t\t\t\tDTAgents[i] = result[i].getName();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (FIPAException fe) {\r\n\t\t\t\t\tfe.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//System.out.println(\"DigitalTwin request being performed\");\r\n\t\t\t\t// Perform a Fuel Usage request\r\n\t\t\t\tmyAgent.addBehaviour(new DataRequestPerformer());// add behaviour here)\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\taddBehaviour(new TickerBehaviour(this, 5000) {\r\n\t\t\tprotected void onTick() {\r\n\t\t\t\tString PrintString = \"\";\r\n\t\t\t\t// get name of agent that manages the fuel usage for this tractor\r\n\t\t\t\tDFAgentDescription template = new DFAgentDescription();\r\n\t\t\t\tServiceDescription sd = new ServiceDescription();\r\n\t\t\t\ttemplate.addServices(sd);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDFAgentDescription[] result = DFService.search(myAgent, template);\r\n\t\t\t\t\tallAgents = new AID[result.length];\r\n\t\t\t\t\tfor (int i = 0; i < result.length; ++i) {\r\n\t\t\t\t\t\tallAgents[i] = result[i].getName();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (FIPAException fe) {\r\n\t\t\t\t\tfe.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (allAgents.length != 0) {\r\n\t\t\t\t\tfor (int i = 0; i < allAgents.length; ++i) {\r\n\t\t\t\t\t\tPrintString = PrintString + allAgents[i].getName() + \"\\n\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmyGui.setAgentArea(PrintString);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Add the behaviour serving queries from GUI to add agents\r\n\t\taddBehaviour(new AgentAddServer());\r\n\t\t// Add the behaviour serving queries from GUI to delete agents\r\n\t\taddBehaviour(new AgentDeleteRequests());\r\n\r\n\t}",
"@Override\n\tpublic void setupExistKeyFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZAB1\", \"9132\"); // Account branch\n\t\ttransaction.setFieldValue(\"GZAN1\", \"234567\"); // Basic number\n\t\ttransaction.setFieldValue(\"GZAS1\", \"012\"); // Account suffix\n\t\ttransaction.setFieldValue(\"GZDRT\", \"010\"); // Dr code\n\t\ttransaction.setFieldValue(\"GZCRT\", \"510\"); // Cr code\n\t\ttransaction.setFieldValue(\"GZPRTS\", \"Y\"); // Statement required\n\t\ttransaction.setFieldValue(\"GZCONR\", \"Y\"); // Confirmation required\n\t\ttransaction.setFieldValue(\"GZCHGE\", \"N\"); // Recalculate charge\n\t}",
"public synchronized void prepareNextLeg(int flight, int id) throws SharedException {\n try {\n if (flight + 1 > SimulatorParam.NUM_FLIGHTS) /* check for proper parameter range */\n throw new SharedException(\"Flight cannot exceed the defined parameter for number of flights: \" + flight + \".\");\n } catch (SharedException e) {\n System.out.println(\"Thread \" + ((Thread) Thread.currentThread()).getName() + \"terminated.\");\n System.out.println(\"Error on prepareNextLeg()\" + e.getMessage());\n System.exit(1);\n }\n repo.setPassengerState(id, PassengerState.ENTERING_THE_DEPARTURE_TERMINAL);\n ate.incCntPassengersEnd();\n if (ate.getCntPassengersEnd() == SimulatorParam.NUM_PASSANGERS) {\n ate.wakeUpAll();\n this.wakeUpAll();\n }\n while (!this.timeToWakeUp) {\n try {\n wait();\n } catch (InterruptedException e) {\n\n }\n }\n ate.decCntPassengersEnd();\n if (ate.getCntPassengersEnd() == 0) {\n \t//Waiting for porter and bus driver to fall asleep before changing the passenger state to NO_STATE\n \twhile(ArrivalLounge.b)\n \ttry {\n wait(20);\n } catch (InterruptedException e) {\n System.out.println(e);\n }\n this.timeToWakeUp = false;\n ate.setTimeToWakeUpToFalse();\n if (flight + 1 == SimulatorParam.NUM_FLIGHTS) {\n al.setEndOfWork();\n attq.setEndOfWork();\n }\n }\n repo.setPassengerState(id, PassengerState.NO_STATE);\n }",
"public void navigateToBaseActivity() throws JSONException {\n\n String merchantKey = jsonObject.getString(\"merchantKey\");\n String amount = jsonObject.getString(\"amount\");\n String email = jsonObject.getString(\"email\");\n String value = jsonObject.getString(\"value\");\n String firstName = jsonObject.getString(\"firstName\");\n String phone = jsonObject.getString(\"phone\");\n String txnId = jsonObject.getString(\"txnId\");\n String sUrl = jsonObject.getString(\"sUrl\");\n String fUrl = jsonObject.getString(\"fUrl\");\n String udf1 = jsonObject.getString(\"udf1\");\n String udf2 = jsonObject.getString(\"udf2\");\n String udf3 = jsonObject.getString(\"udf3\");\n String udf4 = jsonObject.getString(\"udf4\");\n String udf5 = jsonObject.getString(\"udf5\");\n salt = jsonObject.getString(\"salt\");\n int environment;\n if (value.equals(\"test\"))\n environment = PayuConstants.STAGING_ENV;\n else\n environment = PayuConstants.PRODUCTION_ENV;\n String userCredentials = merchantKey + \":\" + email;\n mPaymentParams = new PaymentParams();\n mPaymentParams.setKey(merchantKey);\n mPaymentParams.setAmount(amount);\n mPaymentParams.setProductInfo(\"GoCharge power bank charges\");\n mPaymentParams.setFirstName(firstName);\n mPaymentParams.setEmail(email);\n mPaymentParams.setPhone(phone);\n mPaymentParams.setTxnId(txnId);\n mPaymentParams.setSurl(sUrl);\n mPaymentParams.setFurl(fUrl);\n mPaymentParams.setNotifyURL(mPaymentParams.getSurl()); //for lazy pay\n mPaymentParams.setUdf1(udf1);\n mPaymentParams.setUdf2(udf2);\n mPaymentParams.setUdf3(udf3);\n mPaymentParams.setUdf4(udf4);\n mPaymentParams.setUdf5(udf5);\n mPaymentParams.setUserCredentials(userCredentials);\n payuConfig = new PayuConfig();\n payuConfig.setEnvironment(environment);\n generateHashFromSDK(mPaymentParams, salt);\n\n }",
"private void buildSettlement() {\r\n\t\t// client.setCurrentPhase(Constants.PHASE_3);\r\n\t\tlastSettlementNode = clickedNode;\r\n\t\tMessage message = new Message(clickedNode, true, null);\r\n\t\tsendMessage(message);\r\n\t}",
"@Override\n\tpublic void teleopInit() {\n\t\tif (driveTrainCommand != null) {\n\t\t\tdriveTrainCommand.start();\n\t\t}\n\t\tif (colorCommand != null) {\n\t\t\tcolorCommand.start();\n\t\t}\n\t\tif (intakeCommand != null) {\n\t\t\tintakeCommand.start();\n\t\t}\n\t\tif (outtakeCommand != null) {\n\t\t\touttakeCommand.start();\n\t\t}\n\t}",
"public void teleopInit(){\r\n drive.setupTeleop();\r\n shooter.setupTeleop();\r\n pickup.setupTeleop();\r\n }",
"public void robotInit() {\n // North.registerCommand(\"setSetpoint\", (params) -> ??, [\"Setpoint\"]);\n // North.registerCondition(\"atSetpoint\", elevator::atSetpoint);\n\n //NOTE: init(name, size, logic provider, drive & nav)\n North.init(/*NorthUtils.readText(\"name.txt\")*/ \"lawn chair\", 24/12, 24/12, drive);\n North.default_drive_controller = HoldController.I;\n\n UsbCamera camera = CameraServer.getInstance().startAutomaticCapture();\n camera.setResolution(640, 480);\n }",
"public Object creditEarningsAndPayTaxes()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setInitialCash : \" + \"Agent\");\r\n/* 144 */ \tgetPriceFromWorld();\r\n/* 145 */ \tgetDividendFromWorld();\r\n/* */ \r\n/* */ \r\n/* 148 */ \tthis.cash -= (this.price * this.intrate - this.dividend) * this.position;\r\n/* 149 */ \tif (this.cash < this.mincash) {\r\n/* 150 */ \tthis.cash = this.mincash;\r\n/* */ }\t\r\n/* */ \r\n/* 153 */ \tthis.wealth = (this.cash + this.price * this.position);\r\n/* */ \r\n/* 155 */ \treturn this;\r\n/* */ }",
"protected void setup() {\n\t\tSystem.out.println(\"Broker Agent \"+getAID().getName()+\" is ready.\");\r\n\t\tthis.getContentManager().registerLanguage(new SLCodec());\r\n\t\tthis.getContentManager().registerOntology(RequestOntology.getInstance());\r\n\t\t\r\n\t\tObject[] args = getArguments();\r\n\t\tif (args != null && args.length > 0) {\r\n\t\t\tprice = (String) args[0];\r\n\t\t\tvolume= (String) args[1];\r\n\t\t\t\r\n\t\t\tDFAgentDescription dfd = new DFAgentDescription();\r\n\t\t\tdfd.setName(getAID());\r\n\t\t\tServiceDescription sd = new ServiceDescription();\r\n\t\t\tsd.setType(\"energy-selling\");\r\n\t\t\tsd.setName(\"Energy-Broker\");\r\n\t\t\tdfd.addServices(sd);\r\n\t\t\ttry {\r\n\t\t\t\tDFService.register(this, dfd);\r\n\t\t\t}\r\n\t\t\tcatch (FIPAException fe) {\r\n\t\t\t\tfe.printStackTrace();\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(getAID().getName()+\" No available arguments\");\r\n\t\t\tdoDelete();\r\n\t\t}\r\n\t\taddBehaviour(new BOReply(this));\r\n\t}",
"@Test\n\tpublic void advanceAssemblyLineTest(){\n\t\tcmcSystem.logInUser(1);\n\t\tOrder order1 = makeOrder(new ModelC());\n\t\tOrder order2 = makeOrder(new ModelX());\n\t\tOrder order3 = makeOrder(new ModelC());\n\t\tschedule.placeOrder(order1);\n\t\tschedule.placeOrder(order2);\n\t\tschedule.placeOrder(order3);\n\t\tassertTrue(assemblyLine.getWorkstations()[0].isReady());\n\t\tassemblyLine.advance(order1);\n\t\tassertFalse(assemblyLine.isReadyToAdvance());\n\t\tassertFalse(assemblyLine.getWorkstations()[0].isReady());\n\t}",
"public void setupExistKeyFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZIBRM\", \"HEAD\"); // Cashier branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZIBBN\", \"1000\"); // Cashier branch number (4A)\n\t\ttransaction.setFieldValue(\"GZTTP\", transactionType); // Transaction type (3A)\n\t\tString reference = TestEnvironment.getTestEnvironment().getParameter(addOptionId);\n\t\tif (reference != null)\n\t\t{\n\t\t\ttransaction.setFieldValue(\"GZTRF\", reference); // Transaction refer\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttransaction.setFieldValue(\"GZTRF\", \"Unknown\"); // Transaction refer\n\t\t}\n\t}",
"@Test\n public void mapAirPricingSolutionTest() {\n Brand brand = new Brand(null, \"dksi33wq9\", \"rewR34aQ!==\", null, null, null, null);\n FlightProduct flightProduct =\n new FlightProduct(\"dksi33wq9\", null, \"K\", \"Economy\", \"2QFLEX\", null, brand);\n List<FlightProduct> flightProducts = new ArrayList<FlightProduct>(Arrays.asList(flightProduct));\n PassengerFlight passengerFlight = new PassengerFlight(null, null, \"ADT\", flightProducts);\n List<PassengerFlight> passengerFlights =\n new ArrayList<PassengerFlight>(Arrays.asList(passengerFlight));\n\n Departure departure = new Departure(null, \"ICN\", \"2040-05-06\", \"19:59:00-07:00\");\n Arrival arrival = new Arrival(null, \"SFO\", \"2040-05-06\", \"21:22:00-08:00\");\n Flight flight = new Flight(null, \"ay7e8\", \"0\", null, null, null, \"UA\", \"777\", null, null, null,\n null, departure, arrival, null);\n FlightSegment flightSegment = new FlightSegment(null, null, null, null, null, flight);\n List<FlightSegment> flightSegments = new ArrayList<FlightSegment>(Arrays.asList(flightSegment));\n\n Product product =\n new Product(null, null, null, null, null, null, flightSegments, passengerFlights);\n List<Product> products = new ArrayList<Product>(Arrays.asList(product));\n Identifier identifier = new Identifier(\"dksi33wq9\", null);\n PaymentCardAuthorizationSummary paymentCardAuthorizationSummary =\n new PaymentCardAuthorizationSummary(null, \"LtkoDd3WSdW20aXZvl4/cw==\", null, null, null,\n null, \"PDz8y7xu4hGdeB/wYIhwmw==\", null);\n Offer offer = new Offer(null, null, null, identifier, products, null, null,\n paymentCardAuthorizationSummary);\n List<Offer> offers = new ArrayList<Offer>(Arrays.asList(offer));\n\n Traveler traveler = new Traveler(null, null, null, null, null, \"ADT\", null, null, identifier,\n null, null, null, null, null, null, null, null);\n List<Traveler> travelers = new ArrayList<Traveler>(Arrays.asList(traveler));\n\n\n Fees fees = new Fees(null, 7.61);\n Taxes taxes = new Taxes(null, 42.81, null);\n Payment payment = new Payment(null, null, null, null, null, null, null, fees, taxes);\n List<Payment> payments = new ArrayList<Payment>(Arrays.asList(payment));\n\n ReservationSummary reservationSummary = new ReservationSummary(null, null, offers, travelers,\n null, null, null, null, payments, null, null, null);\n\n AirPricingSolution airPricingSolution = productMapper.mapAirPricingSolution(reservationSummary);\n\n AirPricingInfo airPricingInfo = airPricingSolution.getAirPricingInfo().get(0);\n assertEquals(\"dksi33wq9\", airPricingInfo.getKey());\n\n FareInfo fareInfo = airPricingInfo.getFareInfo().get(0);\n\n assertEquals(\"dksi33wq9\", fareInfo.getKey());\n assertEquals(\"2QFLEX\", fareInfo.getFareBasis());\n assertEquals(\"ADT\", fareInfo.getPassengerTypeCode());\n\n BookingInfo bookingInfo = airPricingInfo.getBookingInfo().get(0);\n assertEquals(\"K\", bookingInfo.getBookingCode());\n assertEquals(\"Economy\", bookingInfo.getCabinClass());\n assertEquals(\"rewR34aQ!==\", bookingInfo.getFareInfoRef());\n\n TypeBaseAirSegment airSegment = airPricingSolution.getAirSegment().get(0);\n assertEquals(\"ICN\", airSegment.getOrigin());\n assertEquals(BigInteger.valueOf(223), airSegment.getFlightTime());\n assertEquals(\"2040-05-06\", airSegment.getDepartureTime().substring(0, 10));\n assertEquals(\"19:59:00-07:00\", airSegment.getDepartureTime().substring(11));\n assertEquals(\"SFO\", airSegment.getDestination());\n assertEquals(\"2040-05-06\", airSegment.getArrivalTime().substring(0, 10));\n assertEquals(\"21:22:00-08:00\", airSegment.getArrivalTime().substring(11));\n assertEquals(\"ay7e8\", airSegment.getKey());\n assertEquals(\"0\", String.valueOf(airSegment.getGroup()));\n assertEquals(\"UA\", airSegment.getCarrier());\n assertEquals(\"777\", airSegment.getFlightNumber());\n\n assertEquals(\"ADT\", airPricingInfo.getPassengerType().get(0).getCode());\n\n assertEquals(7.61, Double.parseDouble(airPricingInfo.getFees()), 0);\n assertEquals(42.81, Double.parseDouble(airPricingInfo.getTaxes()), 0);\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n\n if (request.getSession().getAttribute(\"order\") == null) {\n out.println(\"Session expired\");\n out.close();\n return;\n }\n String order = (String) request.getSession().getAttribute(\"order\");\n\n\n try {\n /*\n * TODO output your page here. You may use following sample code.\n */\n String mcode = request.getServletContext().getInitParameter(\"merchantcode\");\n String authcode = request.getServletContext().getInitParameter(\"authcode\");\n String sp = request.getServletContext().getInitParameter(\"servicepoint\");\n policlient.MerchantAPIServiceStub stub = new policlient.MerchantAPIServiceStub(sp);\n if (request.getParameter(\"CurrencyCode\") == null || request.getParameter(\"PaymentAmount\") == null) {\n out.print(\"amount and currency code missing\");\n out.close();\n return;\n }\n if (request.getSession().getAttribute(\"order\") == null) { /*\n * you may also check if transaction is already initiated and pending\n */\n out.print(\"Session Expired\");\n out.close();\n }\n\n InitiateTransactionDocument doc = InitiateTransactionDocument.Factory.newInstance();\n InitiateTransactionRequest itr = InitiateTransactionRequest.Factory.newInstance();\n itr.setAuthenticationCode(authcode);\n InitiateTransactionInput input = InitiateTransactionInput.Factory.newInstance();\n input.setMerchantCode(mcode);\n\n\n\n input.setCurrencyAmount(BigDecimal.valueOf(new Double(request.getParameter(\"PaymentAmount\").toString()).doubleValue()));\n input.setCurrencyCode(request.getParameter(\"CurrencyCode\").toString());\n input.setUserIPAddress(request.getRemoteAddr());\n input.setMerchantData(request.getSession().getId());\n input.setMerchantCode(mcode);\n\n input.setMerchantRef(request.getSession().getAttribute(\"order\").toString());//put order id \n\n\n /*\n * build your own host url, you may use constants here\n */\n String urlm = request.getScheme() + \"://\" + request.getServerName();\n if (request.getServerPort() != 80) {\n urlm += \":\" + request.getServerPort();\n }\n urlm += request.getContextPath() + \"/\";\n input.setMerchantCheckoutURL(urlm);\n input.setMerchantHomePageURL(urlm); //use your own values here and other urls.\n input.setNotificationURL(urlm + \"notify\");//nudge url\n input.setUnsuccessfulURL(urlm);\n input.setSuccessfulURL(urlm + \"receipt\");//page printed on success \n\n if (request.getParameter(\"FinancialInstitutionCode\") != null) {\n input.setSelectedFICode(request.getParameter(\"FinancialInstitutionCode\").toString());\n } else {\n input.setNilSelectedFICode();\n }\n\n\n input.setMerchantDateTime(java.util.Calendar.getInstance());\n input.setTimeout(1000);\n\n\n\n\n itr.setTransaction(input);\n\n\n doc.addNewInitiateTransaction().setRequest(itr);\n\n InitiateTransactionResponseDocument initiateTransaction = stub.initiateTransaction(doc);\n\n\n\n\n if (initiateTransaction.getInitiateTransactionResponse().isNilInitiateTransactionResult()) {\n out.println(\"Failed to initiate transaction\");\n out.close();\n return;\n }\n\n /*\n * print error message\n */\n if (initiateTransaction.getInitiateTransactionResponse().getInitiateTransactionResult().getErrors().sizeOfErrorArray() > 0) {\n\n for (org.datacontract.schemas._2004._07.centricom_poli_services_merchantapi_dco.Error e : initiateTransaction.getInitiateTransactionResponse().getInitiateTransactionResult().getErrors().getErrorArray()) {\n\n out.println(\"Error Code:\" + e.getCode() + \" Message: \" + e.getMessage());\n\n }\n\n out.close();\n\n }\n//FinancialInstitutionSelected\n if (initiateTransaction.getInitiateTransactionResponse().getInitiateTransactionResult().getTransactionStatusCode().equalsIgnoreCase(\"initiated\")||initiateTransaction.getInitiateTransactionResponse().getInitiateTransactionResult().getTransactionStatusCode().equalsIgnoreCase(\"FinancialInstitutionSelected\")) {\n String url = initiateTransaction.getInitiateTransactionResponse().getInitiateTransactionResult().getTransaction().getNavigateURL();\n String token = initiateTransaction.getInitiateTransactionResponse().getInitiateTransactionResult().getTransaction().getTransactionToken();\n String tref = initiateTransaction.getInitiateTransactionResponse().getInitiateTransactionResult().getTransaction().getTransactionRefNo();\n\n\n\n /*\n * save the transaction values for later reference in notify\n */\n TransactionsPK pk = new TransactionsPK(order, tref);\n\n Transactions t = new Transactions(pk, new Float(request.getParameter(\"PaymentAmount\").toString()).floatValue(), request.getParameter(\"CurrencyCode\").toString(), Short.parseShort(\"0\"), token);\n EntityManagerFactory emf = PersistenceManager.getInstance().getEntityManagerFactory();\n EntityManager em = emf.createEntityManager();\n EntityTransaction tx = em.getTransaction();\n tx.begin();\n em.persist(t);\n tx.commit();\n em.close();\n request.getSession().setAttribute(\"tref\", tref);//save the transaction ref for additional safety if needed.\n\n response.sendRedirect(url);\n\n } else {\n out.print(\"invalid code\"+initiateTransaction.getInitiateTransactionResponse().getInitiateTransactionResult().getTransactionStatusCode());\n }\n\n\n\n\n } catch (MerchantAPIService_InitiateTransaction_MerchantApiFaultFault_FaultMessage ex) {\n Logger.getLogger(initiatetransaction.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n out.close();\n }\n }",
"int payInTurbo(String turboCardNo, float turboAmount, String destinationTurboOfCourse, String installmentsButInTurbo);",
"public static void main(String[] args) throws CantAdd, CoronaWarn {\n\t\tTravelAgency TravelAgency = new TravelAgency();\r\n\r\n\t\tPlane p=new Plane(200,2,\"first plane max travelers\");\r\n\t\tPlane p1=new Plane(100,1,\"second plan min traelers\");\r\n\r\n\t\tTrip i=new Trip(p,Country.Australia,Country.Canada);\r\n\t\tTrip io=new Trip(p1,Country.Australia,Country.Canada);\r\n\t\t \r\n\t\tDate date=new Date(1,2,5);\r\n\t\tPassport passprt1=new Passport(\"anton\",44,date);\r\n\t\tPassport passprt2=new Passport(\"abdo\",44,date);\r\n\t\tPassport passprt3=new Passport(\"julie\",44,date);\r\n\t\tPassport passprt4=new Passport(\"juliana\",44,date);\r\n\t\tPassport passprt5=new Passport(\"bella\",44,date);\r\n\t\tPassport passprt6=new Passport(\"geris\",44,date);\r\n\t\tTraveler t1=new Traveler(passprt1,true,true);\r\n\t\tTraveler t2=new Traveler(passprt2,true,true);\r\n\t\tTraveler t3=new Traveler(passprt3,true,true);\r\n\t\tTraveler t4=new Traveler(passprt4,true,true);\r\n\t\tTraveler t5=new Traveler(passprt5,true,true);\r\n\t\tTraveler t6=new Traveler(passprt6,true,true);\r\n\t\t\r\n\t\t\r\n\t\tio.addTraveler(t1);\r\n\t\tio.addTraveler(t2);\r\n\t\tio.addTraveler(t3);\r\n\t\tio.addTraveler(t6);\r\n\t\tio.addTraveler(t5);\r\n\t\tio.addTraveler(t4);\r\n\t\tio.addTraveler(t6);\r\n \r\n\t\ti.addTraveler(t1);\r\n\t\ti.addTraveler(t2);\r\n\t\ti.addTraveler(t3);\r\n\t\ti.addTraveler(t4);\r\n\t\r\n\t\ti.addTraveler(t6);\r\n\t\t\r\n\t\tTravelAgency.addTrip(i);\t\r\n\t\tTravelAgency.addTrip(io);\r\n\t\tSystem.out.print(TravelAgency.findUnsafeTrips());\r\n\r\n\t\t\r\n\t\tTravelAgency.AddTraveler(t1);\r\n\t\tTravelAgency.AddTraveler(t2);\r\n\t\tTravelAgency.AddTraveler(t3);\r\n\t\tTravelAgency.AddTraveler(t4);\r\n\t\tTravelAgency.AddTraveler(t5);\r\n\t\tTravelAgency.AddTraveler(t6);\r\n\t\t\r\n\t}",
"public void init()\n {\n this.tripDict = new HashMap<String, Set<Trip>>();\n this.routeDict = new HashMap<String, Double>();\n this.tripList = new LinkedList<Trip>();\n this.computeAllPaths();\n this.generateDictionaries();\n }",
"public void setACHInformation(HashMap<String, String> params) {\n\t\tPAYMENT_TYPE = \"ACH\";\n\t\tACH_ROUTING = params.get(\"routingNum\");\n\t\tACH_ACCOUNT = params.get(\"accountNum\");\n\t\tACH_ACCOUNT_TYPE = params.get(\"accountType\");\n\t\tDOC_TYPE = params.get(\"docType\");\n\t}",
"public void startdirectCharge(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.DirectCharge directCharge14,\n\n final net.wit.webservice.TerminalServiceXmlServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[7].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/directChargeRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n directCharge14,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"directCharge\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"directCharge\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n net.wit.webservice.TerminalServiceXmlServiceStub.DirectChargeResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultdirectCharge(\n (net.wit.webservice.TerminalServiceXmlServiceStub.DirectChargeResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrordirectCharge(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"directCharge\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"directCharge\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"directCharge\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrordirectCharge(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectCharge(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectCharge(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectCharge(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectCharge(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectCharge(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectCharge(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectCharge(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrordirectCharge(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrordirectCharge(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrordirectCharge(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrordirectCharge(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[7].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[7].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }",
"@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n \n //Initialize Drive Train Motors/\n LeftFront = new WPI_TalonSRX(11);\n RightFront = new WPI_TalonSRX(13);\n LeftBack = new WPI_TalonSRX(10);\n RightBack = new WPI_TalonSRX(12);\n RobotDT = new MecanumDrive(LeftFront, LeftBack, RightFront, RightBack);\n \n //Initialize Xbox Controller or Joystick/\n xcontroller1 = new XboxController(0);\n xcontroller2 = new XboxController(1);\n \n //Initialize Cameras/\n RoboCam = CameraServer.getInstance();\n FrontCamera = RoboCam.startAutomaticCapture(0);\n BackCamera = RoboCam.startAutomaticCapture(1);\n\n //GPM Init/\n mGPM = new GPM();\n \n }",
"public void transact() {\n\t\truPay.transact();\n\n\t}",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZBRNM\", \"LOND\"); // Branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZPBR\", \"IPS2\"); // Posting group id or user id, and group level (5A)\n\t\ttransaction.setFieldValue(\"GZVFR\", \"1000106\"); // Value from date (7S,0)\n\t\ttransaction.setFieldValue(\"GZBRND\", \"LOND\"); // Branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZDRF\", \"0014620010\"); // Users own reference for deals, reconciliation etc (16A)\n\t\ttransaction.setFieldValue(\"GZAMA\", \"1500-\"); // Ordinary amount in minor currency units (15P,0)\n\t\ttransaction.setFieldValue(\"GZCCY\", \"PHP\"); // Currency mnemonic (3A)\n\t\ttransaction.setFieldValue(\"GZNPE\", \"1\"); // Number of posting entries (5P,0)\n\t\ttransaction.setFieldValue(\"GZNR1\", \"STOP\"); // Narrative line 1 (35A)\n\t\ttransaction.setFieldValue(\"GZRFR\", \"N\"); // Referred item? (1A)\n\t\ttransaction.setFieldValue(\"GZAUT\", \"Y\"); // Authorised item? (1A)\n\t\ttransaction.setFieldValue(\"GZSSI\", \"N\"); // Special item? (1A)\n\t\ttransaction.setFieldValue(\"GZTTP\", \"C\"); // Transaction type (1A)\n\t\ttransaction.setFieldValue(\"GZHSRL\", \"0014620010\"); // Serial \"number\" forming the key to a stop order (16A)\n\t\ttransaction.setFieldValue(\"GZHAMT\", \"1500-\"); // Stop order amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZAUTC\", \"MASSEYR1\"); // Referred item authorisation code (12A)\n\t\ttransaction.setFieldValue(\"GZCED\", \"2\"); // Currency edit field (1A)\n\t\ttransaction.setFieldValue(\"GZCHQ\", \"N\"); // Cheque item? (1A)\n\t\ttransaction.setFieldValue(\"GZDRFN\", \"0\"); // Cheque serial number (16P,0)\n\t\ttransaction.setFieldValue(\"GZTCCY\", \"PHP\"); // Transaction currency (3A)\n\t\ttransaction.setFieldValue(\"GZTAMA\", \"1500\"); // Transaction amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZHCCY\", \"PHP\"); // Stop order currency (3A)\n\t\ttransaction.setFieldValue(\"GZPSQ7\", \"0000182\"); // 7 Long posting sequence number (7P,0)\n\t}",
"public void run()\n\t{\n\t\tMSetup ms = new MSetup(Env.getCtx(), m_WindowNo);\n\t\tm_frame.setBusyTimer(45);\n\t\t// Step 1\n\t\tboolean ok = ms.createClient(fClientName.getText(), fOrgName.getText(),\n\t\t\tfUserClient.getText(), fUserOrg.getText());\n\t\tString info = ms.getInfo();\n\n\t\tif (ok)\n\t\t{\n\t\t\t// Generate Accounting\n\t\t\tKeyNamePair currency = (KeyNamePair)fCurrency.getSelectedItem();\n\t\t\tif (!ms.createAccounting(currency,\n\t\t\t\tfProduct.isSelected(), fBPartner.isSelected(), fProject.isSelected(),\n\t\t\t\tfMCampaign.isSelected(), fSRegion.isSelected(),\n\t\t\t\tm_file))\n\t\t\t{\n\t\t\t\tADialog.error(m_WindowNo, this, \"AccountSetupError\");\n\t\t\t\tdispose();\n\t\t\t}\n\t\t\t// Generate Entities\n\t\t\tKeyNamePair p = (KeyNamePair)fCountry.getSelectedItem();\n\t\t\tint C_Country_ID = p.getKey();\n\t\t\tp = (KeyNamePair)fRegion.getSelectedItem();\n\t\t\tint C_Region_ID = p.getKey();\n\t\t\tms.createEntities(C_Country_ID, fCity.getText(), C_Region_ID, currency.getKey());\n\t\t\tinfo += ms.getInfo();\n\t\t\t//\tCreate Print Documents\n\t\t\tPrintUtil.setupPrintForm(ms.getAD_Client_ID());\n\t\t}\n\n\t\tADialog.info(m_WindowNo, this, \"VSetup\", info);\n\t\tdispose();\n\t}",
"public ArcadeDrive() {\n\t\tthis.drivetrain = Robot.DRIVETRAIN;\n\t\trequires(drivetrain);\n\t}",
"public ShareAKeyCallParm() {\n\t\t\tthis.action = \"\";\n\t\t\tthis.startPoint = new AKeyCallPoint();\n\t\t\tthis.endPoint = new AKeyCallPoint();\n\t\t\tthis.routePoint = new AKeyCallPoint();\n\t\t\tthis.avoidPoint = new AKeyCallPoint();\n\t\t\tthis.navigationMode = \"\";\n\t\t\tthis.proxy_Id = \"\";\n\t\t}",
"@Test\n public void loanWithCahargesAndUpfrontAccrualAccountingEnabled() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n Integer percentageDisbursementCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanDisbursementJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\"));\n addCharges(charges, percentageDisbursementCharge, \"1\", null);\n\n Integer percentageSpecifiedDueDateCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", false));\n addCharges(charges, percentageSpecifiedDueDateCharge, \"1\", \"29 September 2011\");\n\n Integer percentageInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", false));\n addCharges(charges, percentageInstallmentFee, \"1\", \"29 September 2011\");\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n Assertions.assertNotNull(collateralId);\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n Assertions.assertNotNull(clientCollateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanProductID = createLoanProduct(false, ACCRUAL_UPFRONT, assetAccount, incomeAccount, expenseAccount,\n overpaymentAccount);\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"12,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n verifyLoanRepaymentSchedule(loanSchedule);\n\n List<HashMap> loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n validateCharge(percentageSpecifiedDueDateCharge, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n\n // check for disbursement fee\n HashMap disbursementDetail = loanSchedule.get(0);\n validateNumberForEqual(\"120.00\", String.valueOf(disbursementDetail.get(\"feeChargesDue\")));\n\n // check for charge at specified date and installment fee\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"149.11\", String.valueOf(firstInstallment.get(\"feeChargesDue\")));\n\n // check for installment fee\n HashMap secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"29.70\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"605.94\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 September 2011\", assetAccountInitialEntry);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 September 2011\",\n new JournalEntry(Float.parseFloat(\"605.94\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"0.0\", \"120.00\", \"0.0\");\n\n LOG.info(\"-------------Make repayment 1-----------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"3300.60\"), loanID);\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"0.00\", \"120.00\", \"0.0\");\n validateCharge(percentageSpecifiedDueDateCharge, loanCharges, \"1\", \"0.00\", \"120.0\", \"0.0\");\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"90.89\", \"29.11\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentageSpecifiedDueDateCharge), \"29 October 2011\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"149.70\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n LOG.info(\"----------- Waive installment charge for 2nd installment ---------\");\n LOAN_TRANSACTION_HELPER.waiveChargesForLoan(loanID, (Integer) getloanCharge(percentageInstallmentFee, loanCharges).get(\"id\"),\n LoanTransactionHelper.getWaiveChargeJSON(String.valueOf(2)));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"61.19\", \"29.11\", \"29.70\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"29.7\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"29.7\"), JournalEntry.TransactionType.DEBIT));\n\n LOG.info(\"----------Make repayment 2------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3271.49\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3271.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3271.49\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"--------------Waive interest---------------\");\n LOAN_TRANSACTION_HELPER.waiveInterest(\"20 December 2011\", String.valueOf(61.79), loanID);\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"60.59\", String.valueOf(thirdInstallment.get(\"interestOutstanding\")));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.DEBIT));\n\n Integer percentagePenaltySpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", true));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentagePenaltySpecifiedDueDate), \"29 September 2011\", \"1\"));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentagePenaltySpecifiedDueDate, loanCharges, \"1\", \"0.00\", \"120.0\", \"0.0\");\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"120\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n // checking the journal entry as applied penalty has been collected\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"----------Make repayment 3 advance------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3301.78\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3301.78\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3301.78\"), JournalEntry.TransactionType.CREDIT));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentagePenaltySpecifiedDueDate), \"10 January 2012\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"120\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3240.58\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Pay applied penalty ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"120\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"0\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3120.58\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Make over payment for repayment 4 ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3220.58\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"3220.58\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3120.58\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForLiabilityAccount(overpaymentAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.CREDIT));\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.getLoanDetail(REQUEST_SPEC, RESPONSE_SPEC, loanID, \"status\");\n LoanStatusChecker.verifyLoanAccountIsOverPaid(loanStatusHashMap);\n }",
"protected void setup() {\n\t\tgetContentManager().registerOntology(JADEManagementOntology.getInstance());\r\n getContentManager().registerLanguage(new SLCodec(), FIPANames.ContentLanguage.FIPA_SL0);\r\n\t\tSystem.out.println(\"Agent FixCop cree : \"+getLocalName());\r\n\t\tObject[] args = getArguments();\r\n\t\tList<String> itinerary = (List<String>) args[0];\r\n\t\tint period = (int) args[1];\r\n\t\t\r\n\t\t\r\n\t// POLICIER STATIONNAIRE DO THE CYCLIC BEHAVIOUR TO SCAN THE ROOT , IF THE INTRUDER IS IN ROOT, POLICIER STATIO KILLS HIM.\r\n addBehaviour(new StationScanRootBehaviour(this));\r\n\r\n\t// RESPAWN ANOTHER POLICIER MOBILE AFTER EACH POLICIER MOBILE's LIFETIME DURATION ELAPSES.\r\n addBehaviour(new RespawnCopBehaviour(this, period, itinerary));\r\n\r\n\t}",
"public void activate() {\n // PROGRAM 1: Student must complete this method\n if (control == 0) { // run and()\n \t\tand();\n \t} else if (control == 1) { //run or()\n \t\tor();\n \t} else if (control == 2) { //run add()\n \t\tadd();\n \t} else if (control == 6) { //run sub()\n \t\tsub();\n \t} else if (control == 7) { //run passB()\n \t\tpassB();\n \t} else {\n \t\tthrow new RuntimeException(\"invalid control\"); //otherwise, there was an invalid control\n \t}\n }",
"protected void initialize() {\n\t\t\n\t\tif (trajectoryToFollow.highGear) {\n\t\t\tRobot.pneumatics.drivetrainShiftUp();\n\t\t}else {\n\t\t\t//Robot.pneumatics.drivetrainShiftDown();\n\t\t\tRobot.pneumatics.drivetrainShiftUp();\n\t\t}\n\n\t\tsetUpTalon(leftTalon);\n\t\tsetUpTalon(rightTalon);\n\n\t\tsetValue = SetValueMotionProfile.Disable;\n\n\t\trightTalon.set(ControlMode.MotionProfileArc, setValue.value);\n\t\tleftTalon.follow(rightTalon, FollowerType.AuxOutput1);\n\n\t\tloadLeftBuffer = new Notifier(\n\t\t\t\tnew BufferLoader(rightTalon, trajectoryToFollow.centerProfile, trajectoryToFollow.flipped,\n\t\t\t\t\t\tRobot.drivetrain.getDistance()));\n\n\t\tloadLeftBuffer.startPeriodic(.005);\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 }",
"void makeConfig()\n\t{\n\t\t\t\t\n\t\tbuf.append(\"\\t\\tUplink Setup Work order for \" + myDay.toString() + \" Rel 0.2\\n\");\n\t\tbuf.append(\"\\t\\t-----------------------------------------------------------------\\n\\n\");\n\t\t\n\t\tbuf.append(\"\\n1. Channel : \" + channelNumber + \" RF Source : \" + (rfSource==0?\"ASI\":(rfSource==1?\"RF\":\"MPEGoIP\")) + \"\\n\");\n\t\tbuf.append(\"\\n2. Physical Connection : \" + param.get(16) + \"\\n\");\t\n\t\t\n\t\t\n\t\tbuf.append(\"\\n3. Input Test Case : \" + Utility.getIntVal(param.get(1)) + \"\\n\\n\");\n\t\tString[] inpTCParamName = new String[] {\"TC Name\", \"Format/Modulation\", \"Rate (Msym)\", \"Bandwidth (Mbit)\"};\n\t\tprintTCParam(4, 13, Utility.getIntVal(param.get(1)), inpTCParamName);\n\t\t\n\t\tbuf.append(\"\\n4. CA Test Case : \" + Utility.getIntVal(param.get(2)) + \"\\n\\n\");\n\t\tString[] caTCParamName = new String[] {\"Scrambling Mode\", \"#Signal Source\", \"#DCD\", \"#Algorithm\", \"MSK\", \"Channel Setup\"};\n\t\tprintTCParam(5, 10, Utility.getIntVal(param.get(2)), caTCParamName);\n\n\t\tbuf.append(\"\\n5. Video Test Case : \" + Utility.getIntVal(param.get(3)) + \"\\n\\n\");\n\t\tString[] vidTCParamName = new String[] {\"Video Format\", \"Picture (resolution)\", \"Profile/Feature\", \"GOP Settings\", \"3:2 PullDown\", \n\t\t\t\t \t\t\t\t\"Video Bit Rate\", \"Video Rate\", \"#Encoder Parameters\"};\n\t\tprintTCParam(7, 8, Utility.getIntVal(param.get(3)), vidTCParamName);\n\t\n\t\tbuf.append(\"\\n6. Audio#1 Test Case : \" + Utility.getIntVal(param.get(4)) + \"\\n\\n\");\n\t\tString[] audTCParamName = new String[] {\"TC Name\", \"#Audio Type\", \"#Bit Rates\", \"#Encoder Flags #1\", \"#Encoder Flags #2\",\n \"#Encoder 1:Stereo\", \"#Encoder 2:Dual Mono\", \"#Encoder 3:Single Mono\", \n \"#Encoder 4:3/2 Surround & 5.1\", \"#PCM/Compress\", \"#DDP Mode\", \"#1:Stereo\", \n \"#2:Dual Mono\", \"#3:Single Mono\", \"#4:3/2 Surround & 5.1\"};\n\t\tprintTCParam(6, 10, Utility.getIntVal(param.get(4)), audTCParamName);\n\t\n\t\tbuf.append(\"\\n7. Audio#2 Test Case :\" + Utility.getIntVal(param.get(5)) + \"\\n\\n\");\n\t\tprintTCParam(6, 10, Utility.getIntVal(param.get(4)), audTCParamName);\n\n\t\tbuf.append(\"\\n8. Trancode#1 Test Case : \" + Utility.getIntVal(param.get(6)) + \" subject of automatic setup\\n\");\n\t\t\n\t\tbuf.append(\"\\n9. Trancode#2 Test Case : \" + Utility.getIntVal(param.get(7)) + \" subject of automatic setup\\n\");\t\n\t\t\n\t\tbuf.append(\"\\n10. Subtitle Test Case : \" + Utility.getIntVal(param.get(8)) + \"\\n\\n\");\n\t\tString[] sbtTCParamName = new String[] {\"TC Name\", \"Video Std\", \"Subtitle Std\", \"#Stream/Subtitle enc\"};\n\t\tprintTCParam(8, 10, Utility.getIntVal(param.get(8)), sbtTCParamName);\n\t\n\t\tbuf.append(\"\\n11. VBI Test Case : \" + Utility.getIntVal(param.get(9)) + \"\\n\\n\");\n\t\tString[] vbiTCParamName = new String[] {\"TC Name\", \"#Video Frame Rate\", \"#NABTS\", \"#WST\", \"#Invert WST\", \"#VITC PAL(1)\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"#AMOL-I(3)\", \"#AMOL-II(3)\", \"#VPS\", \"#WSS\", \"#VITS\", \"#GEMTAR(1x)(2)\", \n\t\t\t\t\t\t\t\t\t\t\t\t\"#GEMTAR(2x)(2)\", \"#Monochrome\", \"#VBItotal bit rate (KBits)\"};\n\t\tprintTCParam(9, 9, Utility.getIntVal(param.get(9)), vbiTCParamName);\n\t\t\n\t\tbuf.append(\"\\n12. LSD Test Case : \" + Utility.getIntVal(param.get(10)) + \"\\n\\n\");\n\t\tString[] lsdTCParamName = new String[] {\"TC Name\", \"#Data rate\"};\n\t\tprintTCParam(10, 9, Utility.getIntVal(param.get(10)), lsdTCParamName);\n\t\n\t\tbuf.append(\"\\n13. MPE Test Case : \" + Utility.getIntVal(param.get(11)) + \"\\n\\n\");\n\t\tString[] mpeTCParamName = new String[] {\"TC Name\", \"#PIDs\", \"Rate per PID (Mbits)\", \"Aggregate Rate (Mbits)\", \"Frame Size\", \"Flow Type\"};\n\t\tprintTCParam(11, 8, Utility.getIntVal(param.get(11)), mpeTCParamName);\n\t\t\n\t\tbuf.append(\"\\n14. FPT Test Case : \" + (Utility.getIntVal(param.get(12))==1?\"Yes\":\"No\") + \"\\n\");\n\t\t\n\t\tbuf.append(\"\\n15. CC Test Case : \" + (Utility.getIntVal(param.get(13))==1?\"Yes\":\"No\") + \"\\n\");\t\n\t\t\n\t\tbuf.append(\"\\n16. DPM 58/59 Test Case : \" + Utility.getIntVal(param.get(14)) + \" subject of automatic setup\\n\");\t\n\t\t\n\t\tbuf.append(\"\\n17. DPM 24/54 Test Case : \" + Utility.getIntVal(param.get(15)) + \" subject of automatic setup\\n\");\t\n\n\t\tbuf.append(\"\\n\\n*** End of Uplink Setup Work order ***\\n\");\n\t\t\n\t\tString fileName = null;\n\t\ttry {\n\t\t\t SimpleDateFormat timeStamp = new SimpleDateFormat(\"dd-MMM-yyyy_HH-mm-ss\");\n\t\t\t Calendar cal = Calendar.getInstance();\n\t\t\t \n\t\t\t cal.setTime(myDay);\n\t\t\t fileName = STS.outputDirectory + \"\\\\\" + \"Uplink_Setup_\" + timeStamp.format(cal.getTime()) + \".txt\";\n\n\t\t\tFileOutputStream out = new FileOutputStream(fileName);\n\t\t\tout.write(buf.toString().getBytes());\n\t\t\tout.close();\n\t\t\t\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Can not write into file \" + fileName);\n\t\t}\n\n\t\t\n\t}",
"@Override\n public void init() {\n robot = new MecanumBotHardware(true,true,true,true);\n robot.init(hardwareMap);\n int deg180=845;\n // Create the state machine and configure states.\n smDrive = new StateMachine(this, 16);\n smDrive.addStartState(new WaitState(\"wait\",0.1,\"MainDriveTeleop\"));\n smDrive.addState(new GigabyteTeleopDriveState(\"MainDriveTeleop\", robot));\n smDrive.addState(new SpinPose(\"90DegSpin\",(int)(deg180*0.5),robot,0.1f));\n smDrive.addState(new SpinPose(\"180DegSpin\",deg180,robot,0.1f));\n smDrive.addState(new SpinPose(\"270DegSpin\",(int)(deg180*1.5),robot,0.1f));\n\n smArm = new StateMachine(this, 16);\n smArm.addStartState(new WaitState(\"wait\",0.1,\"MainArmTeleop\"));\n smArm.addState(new GigabyteTeleopArmState(\"MainArmTeleop\", robot));\n smArm.addState(new ShoulderPose(\"Pose1\", robot,0, \"MainArmTeleop\"));//0.12\n smArm.addState(new ShoulderPose(\"Pose2\", robot,1079, \"MainArmTeleop\"));//0.05\n smArm.addState(new ShoulderPose(\"Pose3\", robot,2602, \"MainArmTeleop\"));//-0.17\n smArm.addState(new ShoulderPose(\"Pose4\", robot,3698, \"MainArmTeleop\" ));//-0.35\n // Init the state machine\n smDrive.init();\n smArm.init();\n }",
"private void addKey() {\t\n\t\t// Remember you can use Processing's graphics methods here\n\t\tfill(255, 250, 240);\n\t\t\n\t\tint xbase = 25;\n\t\tint ybase = 50;\n\t\t\n\t\trect(xbase, ybase, 250, 240);\n\t\t\n\t\tfill(0);\n\t\ttextAlign(LEFT, CENTER);\n\t\ttextSize(12);\n\t\ttext(\"Route Info\", xbase+25, ybase+25);\n\t\t\n\t\tfill(150, 30, 30);\n\n\n\t\tfill(0, 0, 0);\n\t\ttextAlign(LEFT, CENTER);\n\t\tString name0 = station0 == null ? \"\" : station0.getName();\n\t\tString name1 = station1 == null ? \"\" : station1.getName();\n\t\t\n\t\t// If two stations are currently selected, generate an API call\n\t\tString peak = \"\";\n\t\tString offPeak = \"\";\n\t\tString discount = \"\";\n\t\tString time = \"\";\n\t\tString distance = \"\";\n\t\tif(routeInfo != null){\n\t\t\tpeak = routeInfo.getPeak();\n\t\t\toffPeak = routeInfo.getOffPeak();\n\t\t\tdiscount = routeInfo.getDiscount();\n\t\t\ttime = routeInfo.getTime();\n\t\t\tdistance = routeInfo.getDistance();\n\t\t}\n\t\ttext(\"Station 1: \" + name0, xbase+25, ybase+65);\n\t\ttext(\"Station 2: \" + name1, xbase+25, ybase+85);\n\t\ttext(\"Peak fare: $\" + peak, xbase+25, ybase+125);\n\t\ttext(\"Off-peak fare: $\" + offPeak, xbase+25, ybase+145);\n\t\ttext(\"Discount fare: $\" + discount, xbase+25, ybase+165);\n\t\ttext(\"Est. travel time: \" + time + \" min\", xbase+25, ybase+205);\n\t\ttext(\"Distance: \" + distance + \" miles\", xbase+25, ybase+225);\t\n\t}",
"protected void initialize() {\n \tlogger.info(\"Starting AutoMoveLiftUp Command, encoder inches = {}\", Robot.liftSubsystem.readEncoderInInches());\n \tstartingEncoderPos = Robot.liftSubsystem.readEncoderInInches();\n \tweAreDoneSenor = false;\n \tdesiredStartingPower = getStartingPower();\n \toneFoot = getAccelDecelDistance();\n \tmaxPower = getMaxPower();\n \trequestedEncoderPos = getRequestedEndPos();\n \tslowDownPoint = requestedEncoderPos - oneFoot;\n \tspeedUpPoint = startingEncoderPos + oneFoot;\n }",
"@Override\n public void planTrip(String departingAddress, String departingZipCode,\n String arrivalZipCode, Date preferredArrivalTime) {\n FlightSchedule schedule = airlineAgency.bookTicket(departingZipCode, arrivalZipCode, preferredArrivalTime);\n //cab pickup scheduling activity\n cabAgency.requestCab(departingAddress, schedule.getFlightNumber());\n \n //Test output\n System.out.println(\"Test output: trip planned\");\n }",
"public OBGPControlPlane(Config aConfig, SimulationAccounting aAccounting) {\r\n\t\t\r\n\t\r\n\r\n\t\tsuper(aConfig);\r\n\t\t// System.out.println(\"Carregando plano de controle\");\r\n\t\tthis.accounting = (Accounting) aAccounting;\r\n\t\t// Get the links of this network\r\n\t\tlinks = config.getLinks();\r\n\t\t// System.out.println(links.toString());\r\n\t\t// Create the nodes of this network\r\n\t\tnodes = new LinkedHashMap<String, OBGPLabelSwitchRouter>();\r\n\t\t// Create the storage of disrupted connections by failure\r\n\t\tdisruptedLSP = new Hashtable<String, LightpathRequest>();\r\n\t\trestoredLSP = new Hashtable<String, Connection>();\r\n\t\t// Get the simulation parameters\r\n\t\tHashtable<String, Vector<String>> parameters = config\r\n\t\t\t\t.getSimulationParameters();\r\n\t\t// see all the parameters\r\n\t\tif (verbose)\r\n\t\t\tSystem.out.println(parameters.toString());\r\n\r\n\t\t// get all the asbrs. It will be important to identify the node\r\n\t\tasbrs = parameters.get(\"/Domains/ASBR\");\r\n\r\n\t\t// policyFrom = parameters.get(\"/Domains/POLICY/@from\");\r\n\t\tsetPolicy = new LinkedHashMap<String, Vector<String>>();\r\n\r\n\t\thopLimit = Integer.parseInt(parameters.get(\"/OPS/Hop/@limit\")\r\n\t\t\t\t.firstElement());\r\n\t\t// Get details about the RWA algorithm used\r\n\t\trerouting = ReRouting.valueOf(parameters.get(\"/RWA/Routing/@rerouting\")\r\n\t\t\t\t.firstElement());\r\n\r\n\t\t// Get the number of rerounting attempts\r\n\t\treroutingAttempts = Integer.parseInt(parameters.get(\r\n\t\t\t\t\"/RWA/Routing/@attempts\").firstElement());\r\n\t\t// Get the number of interomdina rerouting attempts\r\n\t\tmaxInterReroutingAttempts = Integer.parseInt(parameters.get(\r\n\t\t\t\t\"/RWA/Routing/@interAttempts\").firstElement());\r\n\t\t// The max number of rerouting attempts\r\n\t\tmaxReroutingAttempts = Integer.parseInt(parameters.get(\r\n\t\t\t\t\"/RWA/Routing/@maxAttempts\").firstElement());\r\n\t\tthis.alternative = reroutingAttempts + 1; // Number of k-shortest paths\r\n\t\twa = WavelengthAssignment.valueOf(parameters.get(\"/RWA/WA/@type\")\r\n\t\t\t\t.firstElement());\r\n\r\n\t\tmaxInterRoutes = Integer.parseInt(parameters.get(\r\n\t\t\t\t\"/RWA/Routing/@interRoutes\").firstElement());\r\n\r\n\t\tboolean serRT = Boolean.parseBoolean(parameters.get(\r\n\t\t\t\t\"/RWA/Serialize/@rt\").firstElement());\r\n\r\n\t\t// Gets the size of the time slice\r\n\t\ttimeSlice = Double.parseDouble(parameters.get(\r\n\t\t\t\t\"/Outputs/Transient/@timeSlice\").firstElement());\r\n\t\tactualTimeSlice = timeSlice;\r\n\t\t// Gets the time necessary for fault localization.\r\n\t\tfaultLocalizationTime = Double.parseDouble(parameters.get(\r\n\t\t\t\t\"/Failure/Timing/@localization\").firstElement());\r\n\t\tidentificationLength = Integer.parseInt(parameters.get(\r\n\t\t\t\t\"/OPS/Hop/@bytes\").firstElement());\r\n\r\n\t\tLinkedHashMap<String, ExplicitRoutingTable> rTables = null;\r\n\r\n\t\t// create the collection of graphs\r\n\t\tdomainGraphs = new LinkedHashMap<String, Graph>();\r\n\t\treroutedLSP = new LinkedHashMap<String, Connection>();\r\n\r\n\t\t/** GENERATION OF PER DOMAIN GRAPH */\r\n\r\n\t\tsetPerDomainPaths(graph, domainGraphs);\r\n\r\n\t\tif (serRT) {\r\n\t\t\tString fileRT = parameters.get(\"/RWA/Serialize/@file\")\r\n\t\t\t\t\t.firstElement();\r\n\r\n\t\t\trTables = this.read(fileRT);\r\n\t\t} else {\r\n\r\n\t\t\t/** COMMAND BLOCK: GENERATION OF PER-DOMAIN ROUTES */\r\n\r\n\t\t\tdomainSetPaths = new LinkedHashMap<String, LinkedHashMap<String, Vector<Path>>>();\r\n\t\t\t// Populates the hash table domainSetPaths with path inside each\r\n\t\t\t// domain\r\n\t\t\tfor (String domain : domainGraphs.keySet()) {\r\n\t\t\t\tdomainSetPaths.put(domain,\r\n\t\t\t\t\t\tthis.getPaths(domainGraphs.get(domain), alternative));\r\n\t\t\t}\r\n\t\t\t// Now, each domain has all the best paths from one node to another\r\n\t\t\t// (inside the same domain)\r\n\t\t}\r\n\r\n\t\t// We need to create a routing table of the node inside its own domain.\r\n\t\tfor (String domain : domainGraphs.keySet()) {\r\n\t\t\t// the Graph representing the domain\r\n\t\t\tGraph gDomain = domainGraphs.get(domain);\r\n\t\t\t// for each node inside the domain\r\n\t\t\tfor (String node : gDomain.nodes()) {\r\n\t\t\t\t// creates the routing table of this node\r\n\t\t\t\tExplicitRoutingTable rtable;\r\n\r\n\t\t\t\t// if this table comes from a file, so we need to load it\r\n\t\t\t\tif (rTables != null) {\r\n\t\t\t\t\trtable = rTables.get(node);\r\n\r\n\t\t\t\t} else { // otherwise, we need to create a new one\r\n\t\t\t\t\trtable = new ExplicitRoutingTable(node, alternative);\r\n\r\n\t\t\t\t\t// and the new routing table will be updated from the\r\n\t\t\t\t\t// topology\r\n\t\t\t\t\trtable.updateFromTopology(gDomain,\r\n\t\t\t\t\t\t\tdomainSetPaths.get(domain));\r\n\r\n\t\t\t\t\tRoutingTableEntry[][] teste = rtable.getRoutingTable();\r\n\r\n\t\t\t\t}\r\n\t\t\t\t// the adjacents nodes from this node\r\n\t\t\t\tVector<String> adjacent = gDomain.adjacentNodes(node);\r\n\t\t\t\t// the linkstate hashmap\r\n\t\t\t\tLinkedHashMap<String, LinkState> linkStateSet = new LinkedHashMap<String, LinkState>();\r\n\r\n\t\t\t\tfor (String adjId : adjacent) {\r\n\t\t\t\t\t// get the link between node and adjacent\r\n\t\t\t\t\tLink link = links.get(node + \"-\" + adjId);\r\n\t\t\t\t\t// create a linkState\r\n\t\t\t\t\tLinkState linkState = new LinkState(link);\r\n\t\t\t\t\t// put this on a link state\r\n\t\t\t\t\tlinkStateSet.put(adjId.toString(), linkState);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// if the current node is an ASBR, so, we need to\r\n\t\t\t\t// generate all links to its neighbors\r\n\t\t\t\tif (asbrs.contains(node)) {\r\n\t\t\t\t\tif (verbose)\r\n\t\t\t\t\t\tSystem.out.println(\"OBGP Info: Este no eh um ASBR\");\r\n\r\n\t\t\t\t\tVector<String> adjancent = graph.adjacentNodes(node);\r\n\r\n\t\t\t\t\tfor (int i = 0; i < adjancent.size(); i++) {\r\n\t\t\t\t\t\tif (!getDomain(adjancent.get(i))\r\n\t\t\t\t\t\t\t\t.equals(getDomain(node))) {\r\n\t\t\t\t\t\t\tLink link = links\r\n\t\t\t\t\t\t\t\t\t.get(node + \"-\" + adjancent.get(i));\r\n\t\t\t\t\t\t\tLinkState lstate = new LinkState(link);\r\n\t\t\t\t\t\t\tlinkStateSet.put(adjancent.get(i).toString(),\r\n\t\t\t\t\t\t\t\t\tlstate);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Create the node and put it into the table.\r\n\t\t\t\tOBGPLabelSwitchRouter obgpLSR = new OBGPLabelSwitchRouter(node,\r\n\t\t\t\t\t\trtable, linkStateSet, gDomain, wa, rerouting,\r\n\t\t\t\t\t\tmaxReroutingAttempts, reroutingAttempts,\r\n\t\t\t\t\t\tasbrs.contains(node), getDomain(node),\r\n\t\t\t\t\t\tmaxInterReroutingAttempts);\r\n\r\n\t\t\t\tnodes.put(node, obgpLSR);\r\n\r\n\t\t\t\t// System.out.println(\"=== Routing Table ===\\n\"\r\n\t\t\t\t// + obgpLSR.getRoutingTable().toString());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * GUSTAVO [old] // Initialize the state of each node for (String id :\r\n\t\t * graph.nodes()) { // System.out.println(\"...: \"+id); // Create the\r\n\t\t * routing table for this node ExplicitRoutingTable ert; if (rTables !=\r\n\t\t * null) { ert = rTables.get(id); } else { ert = new\r\n\t\t * ExplicitRoutingTable(id, alternative); ert.updateFromTopology(graph,\r\n\t\t * setPaths); // System.out.println(ert.toString()); } // Create the\r\n\t\t * links adjacent to this node. Vector<String> adjacent =\r\n\t\t * graph.adjacentNodes(id); // System.out.println(adjacent.toString());\r\n\t\t * LinkedHashMap<String, LinkState> linkStateSet = new\r\n\t\t * LinkedHashMap<String, LinkState>(); // for each adjacent node do for\r\n\t\t * (String adjId : adjacent) { Link link = links.get(id + \"-\" + adjId);\r\n\t\t * LinkState linkState = new LinkState(link);\r\n\t\t * linkStateSet.put(adjId.toString(), linkState); } // Create the node\r\n\t\t * and put it into the table. // AQUI EU CRIO OS NODES\r\n\t\t * OBGPLabelSwitchRouter node = new OBGPLabelSwitchRouter(id, ert,\r\n\t\t * linkStateSet, graph, wa, rerouting, maxReroutingAttempts,\r\n\t\t * reroutingAttempts); nodes.put(id, node); }\r\n\t\t */\r\n\r\n\t\t/** INTER-DOMAIN ROUTING POLICY */\r\n\r\n\t\t// generates the inter-domain routing\r\n\t\t// required by the next steps\r\n\t\t// read policy from XML and generates the policy rules\r\n\t\tsetPolicy(setPolicy);\r\n\t\t// generateASPathv2(setPolicy);\r\n\t\t// simulates Path dissemation from BGP generating AS-PATH\r\n\t\tLinkedHashMap<String, ArrayList<Vector<String>>> ASPath = generateASPath(setPolicy);\r\n\t\tOBGPRoutingTable interdomainRoutes = new OBGPRoutingTable(ASPath);\r\n\t\t// System.out.println(domainGraphs.toString());\r\n\t\t// Fill the Interdomain Routing Table\r\n\t\t// All interdomain routes does not contain :\r\n\t\t// Example: 1:a-1:g is an intra-domain route\r\n\t\t// and 1-2 is an interdomain route\r\n\t\t// for (String key : setPolicy.keySet()) {\r\n\t\t// if (!key.contains(\":\")) {\r\n\t\t// interdomainRoutes.putEntry(key, ASPath.get(key));\r\n\t\t// interdomainRoutes.putEntry(key, setPolicy.get(key));\r\n\t\t// }\r\n\r\n\t\t// }\r\n\r\n\t\tSystem.out.println(\"Tabela de Rotas - Interdominio\");\r\n\t\tSystem.out.println(interdomainRoutes.toString());\r\n\t\t// System.out.println(\"Os links:\");\r\n\t\t// System.out.println(config.getLinks().toString());\r\n\r\n\t\tSystem.out.println(\"JA PASSEI PELO CONSTRUTOR\");\r\n\t}",
"@SuppressWarnings(\"unused\")\n\tpublic void execute(){\n\t\tdouble mtrFrontRight;\n\t\tdouble mtrFrontLeft;\n\t\tdouble mtrBackRight;\n\t\tdouble mtrBackLeft;\n\t\t\n\t\tdouble speed = 3.0; //The variable we are assigning\n\t\tdouble yawHeading = 0; //Obtained from Robot class\n\t\t\n\t\tdouble getCurrentSetPoint = 0.0; //This Will be obtained via a variable set in the turn to heading class as it is obtained. (possible issues)\n\t\tdouble actualEncoderSetpoint; //Represents the value the encoder is actually at.\n\t\t\n\t\tdouble zeroHeading; //This is a weird one. it is there because of the odd difference calculations issue of say being 5 off of zero and heading being 355;\n\t\t\n\t\t\n\t\t//Switch structure stuff\n\t\tint forward = 0;\n\t\tint left = 1;\n\t\tint right = 2;\n\t\tint state = forward;\n\t\t\n\t\t\n\t\tif(getCurrentSetPoint == 0) {\n\t\t\tstate = forward;\n\t\t} else if(getCurrentSetPoint == 90) {\n\t\t\tstate = right;\n\t\t} else if(getCurrentSetPoint == 270) {\n\t\t\tstate = left;\n\t\t}\n\t\t\n\t\t//where the weirdness of zero heading comes into play.\n\t\tif(yawHeading > 180){\n\t\t\tzeroHeading = 360 - yawHeading;\n\t\t\tzeroHeading = -(zeroHeading);\n\t\t} else {\n\t\t\tzeroHeading = yawHeading;\n\t\t}\n\t\t\n\t\t//Here comes the fun math.\n\t\t// oh yeah and brackets are fun just saying.\n\t\t//try not to get cancer.\n\t\t\n\t\tswitch (state) {\n\t\t\t\n\t\t\tcase 0 :\n\t\t\t\tif(zeroHeading < -5) {\n\t\t\t\t\tmtrFrontRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\tmtrBackRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t} else {\n\t\t\t\t\tmtrFrontRight = -speed;\n\t\t\t\t\tmtrBackRight = -speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(zeroHeading > 5) {\n\t\t\t\t\tmtrFrontLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t\tmtrBackLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t} else {\n\t\t\t\t\tmtrFrontLeft = speed;\n\t\t\t\t\tmtrBackLeft = speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\tcase 1 :\n\t\t\t\tif(zeroHeading > 5) {\n\t\t\t\t\t\tmtrBackRight = -(speed - ((zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\t\tmtrBackLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmtrBackRight = -speed;\n\t\t\t\t\t\tmtrBackLeft = speed;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(zeroHeading < -5) {\n\t\t\t\t\t\tmtrFrontRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\t\tmtrFrontLeft = speed - ((-zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmtrFrontRight = -speed;\n\t\t\t\t\t\tmtrFrontLeft = speed;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\tcase 2 : \n\t\t\t\tif(zeroHeading < -5) {\n\t\t\t\t\tmtrBackRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\tmtrBackLeft = speed - ((-zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t} else {\n\t\t\t\t\tmtrBackRight = -speed;\n\t\t\t\t\tmtrBackLeft = speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(zeroHeading > 5) {\n\t\t\t\t\tmtrFrontRight = -(speed - ((zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\tmtrFrontLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t} else {\n\t\t\t\t\tmtrFrontRight = -speed;\n\t\t\t\t\tmtrFrontLeft = speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t}\n\t}",
"public void teleopInit() {\n\t\tauto.cancel();\r\n\t\t// Create the teleop command and start it.\r\n\t\tteleop.start();\r\n\t\t// Reset the drivetrain encoders\r\n\t\tDriveTrain.getInstance().resetEncoders();\r\n\t\t// Start pushing sensor readings to the SD.\r\n\t\treadings.start();\r\n\t}",
"public static void main(String[] args) {\n\t\tint grid[][] = new int[][]\n\t\t\t { \n\t\t\t { 1, 1, 0, 0, 0, 0, 1, 0, 0, 0 }, \n\t\t\t { 0, 1, 0, 1, 0, 0, 0, 1, 0, 0 }, \n\t\t\t { 0, 0, 0, 1, 0, 0, 1, 0, 1, 0 }, \n\t\t\t { 1, 1, 1, 1, 0, 1, 1, 1, 1, 0 }, \n\t\t\t { 0, 0, 0, 1, 0, 0, 0, 1, 0, 1 }, \n\t\t\t { 0, 1, 0, 0, 0, 0, 1, 0, 1, 1 }, \n\t\t\t { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }, \n\t\t\t { 0, 1, 0, 0, 0, 0, 1, 0, 0, 0 }, \n\t\t\t { 0, 0, 1, 1, 1, 1, 0, 1, 1, 0 } \n\t\t\t };\n\t\t\n // Step 1: Obtain an instance of GridBasedTrafficControl.\n Configurator cfg = new DefaultConfigurator();\n GridBasedTrafficControl gbtc = cfg.getGridBasedTrafficControl(grid);\n\t\t\n\t // Step 2: Obtain path for Journey-1.\n\t Point source1 = new Point(0, 0);\n\t Point dest1 = new Point(3,4);\t \n\t String vehicleId1 = formVehicleId(source1);\n\t List<Point> path1 = gbtc.allocateRoute(vehicleId1, source1, dest1);\n\t System.out.println(\"Route for Journey-1:\" + path1);\n\t \n\t // Step 3: Obtain path for Journey-2.\n\t // This call will not return a route as the available route conflicts with the route\n\t // allocated for Journey-1.\n\t Point source2 = new Point(3, 0);\n\t Point dest2 = new Point(2,4);\n\t String vehicleId2 = formVehicleId(source2);\n\t List<Point> path2 = gbtc.allocateRoute(vehicleId2, source2, dest2);\n\t System.out.println(\"Route for Journey-2:\" + path2);\n\t \n\t // Step 4: Start Journey-1 and mark Journey-1 as complete.\n\t GridConnectedVehicle vehicle1 = new GridConnectedVehicle(vehicleId1, gbtc);\n\t vehicle1.selfDrive(path1);\n\t gbtc.markJourneyComplete(vehicleId1, source1, dest1);\n\t \n\t // Step 5: Retry call to obtain path for Journey-2.\n\t // This call should return a valid path as Journey-1 was marked as complete.\n\t path2 = gbtc.allocateRoute(formVehicleId(source2), source2, dest2);\n\t System.out.println(\"Route for Journey-2:\" + path2);\n\t \n\t // Step 6: Start Journey-2 and mark Journey-2 as complete.\n\t GridConnectedVehicle vehicle2 = new GridConnectedVehicle(vehicleId2, gbtc);\n\t vehicle2.selfDrive(path2);\n\t gbtc.markJourneyComplete(vehicleId2, source2, dest2);\n\t}",
"public void startterminalReturnCard(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.TerminalReturnCard terminalReturnCard4,\n\n final net.wit.webservice.TerminalServiceXmlServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/terminalReturnCardRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n terminalReturnCard4,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"terminalReturnCard\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"terminalReturnCard\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n net.wit.webservice.TerminalServiceXmlServiceStub.TerminalReturnCardResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultterminalReturnCard(\n (net.wit.webservice.TerminalServiceXmlServiceStub.TerminalReturnCardResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorterminalReturnCard(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"terminalReturnCard\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"terminalReturnCard\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"terminalReturnCard\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorterminalReturnCard(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalReturnCard(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalReturnCard(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalReturnCard(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalReturnCard(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalReturnCard(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalReturnCard(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalReturnCard(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorterminalReturnCard(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorterminalReturnCard(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorterminalReturnCard(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorterminalReturnCard(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[2].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[2].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }",
"@Override\n public void init() {\n telemetry.addData(\"Status\", \"Initialized Interative TeleOp Mode\");\n telemetry.update();\n\n // Initialize the hardware variables. Note that the strings used here as parameters\n // to 'get' must correspond to the names assigned during the robot configuration\n // step (using the FTC Robot Controller app on the phone).\n leftDrive = hardwareMap.dcMotor.get(\"leftDrive\");\n rightDrive = hardwareMap.dcMotor.get(\"rightDrive\");\n armMotor = hardwareMap.dcMotor.get(\"armMotor\");\n\n leftGrab = hardwareMap.servo.get(\"leftGrab\");\n rightGrab = hardwareMap.servo.get(\"rightGrab\");\n colorArm = hardwareMap.servo.get(\"colorArm\");\n leftTop = hardwareMap.servo.get(\"leftTop\");\n rightTop = hardwareMap.servo.get(\"rightTop\");\n\n /*\n left and right drive = motion of robot\n armMotor = motion of arm (lifting the grippers)\n extendingArm = motion of slider (used for dropping the fake person)\n left and right grab = grippers to get the blocks\n */\n\n }",
"@Override\n\tpublic void agentSetup() {\n\n\t\t// load the class names of each object\n\t\tString os = dagent.getOfferingStrategy().getClassname();\n\t\tString as = dagent.getAcceptanceStrategy().getClassname();\n\t\tString om = dagent.getOpponentModel().getClassname();\n\t\tString oms = dagent.getOMStrategy().getClassname();\n\n\t\t// createFrom the actual objects using reflexion\n\n\t\tofferingStrategy = BOAagentRepository.getInstance().getOfferingStrategy(os);\n\t\tacceptConditions = BOAagentRepository.getInstance().getAcceptanceStrategy(as);\n\t\topponentModel = BOAagentRepository.getInstance().getOpponentModel(om);\n\t\tomStrategy = BOAagentRepository.getInstance().getOMStrategy(oms);\n\n\t\t// init the components.\n\t\ttry {\n\t\t\topponentModel.init(negotiationSession, dagent.getOpponentModel().getParameters());\n\t\t\topponentModel.setOpponentUtilitySpace(fNegotiation);\n\t\t\tomStrategy.init(negotiationSession, opponentModel, dagent.getOMStrategy().getParameters());\n\t\t\tofferingStrategy.init(negotiationSession, opponentModel, omStrategy,\n\t\t\t\t\tdagent.getOfferingStrategy().getParameters());\n\t\t\tacceptConditions.init(negotiationSession, offeringStrategy, opponentModel,\n\t\t\t\t\tdagent.getAcceptanceStrategy().getParameters());\n\t\t\tacceptConditions.setOpponentUtilitySpace(fNegotiation);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// remove the reference to the information object such that the garbage\n\t\t// collector can remove it.\n\t\tdagent = null;\n\t}",
"@Override\n\tprotected Void doInBackground(Void... params) {\n\t\ttry {\n\t\t\tInteger sequenceNum = Integer.valueOf((int) (Math.random() * (MBDefinition.MDT_MAX_SEQUENCE_NUM + 1)));\n\n\t\t\tpbtReq = new PayByTokenRequest(this, this);\n\t\t\tpbtReq.setSysPassword(MBDefinition.SYSTEM_PASSWORD);\n\t\t\tpbtReq.setSysID(dbBook.getSysId());\n\t\t\tpbtReq.setDestID(dbBook.getDestID());\n\t\t\tpbtReq.setDeviceID(Utils.getHardWareId(_context));\n\t\t\tpbtReq.setSeqenceNum(sequenceNum.toString());\n\t\t\tpbtReq.setReqType(\"1\");\n\t\t\tpbtReq.setToken(cCard.getToken());\n\t\t\tpbtReq.setAmount(totalAmount);\n\t\t\tpbtReq.setJobID(dbBook.getTaxi_ride_id()+\"\");\n\t\t\tpbtReq.setCardNum(cCard.getLast4CardNum());\n\t\t\tpbtReq.setCardBrand(cCard.getCardBrand());\n\n\t\t\tif (!finalTipAmount.equalsIgnoreCase(\"\")) {\n\t\t\t\tpbtReq.setTip(finalTipAmount);\n\t\t\t}\n\n\t\t\tpbtReq.sendRequest(_context.getString(R.string.name_space), _context.getString(R.string.url));\n\t\t} catch (Exception e) {\n\t\t\tLogger.e(TAG, e.toString());\n\t\t}\n\n\t\treturn null;\n\t}",
"public void initAccount() {\n initAccount(Huobi.PLATFORM_NAME, Gateio.PLATFORM_NAME, \"EOS_USDT\", 14.5632);\n\n\n initAccount(Huobi.PLATFORM_NAME, Fcoin.PLATFORM_NAME, \"LTCUSDT\", 112.610000000);\n initAccount(Huobi.PLATFORM_NAME, Fcoin.PLATFORM_NAME, \"BCHUSDT\", 1032.690000000);\n initAccount(Huobi.PLATFORM_NAME, Fcoin.PLATFORM_NAME, \"ETHUSDT\", 572.300000000);\n\n initAccount(Huobi.PLATFORM_NAME, Dragonex.PLATFORM_NAME, \"EOSUSDT\", 13.1469);\n initAccount(Huobi.PLATFORM_NAME, Dragonex.PLATFORM_NAME, \"NEOUSDT\", 48.4760);\n initAccount(Huobi.PLATFORM_NAME, Dragonex.PLATFORM_NAME, \"ETHUSDT\", 572.1195);\n }",
"public void init() throws Throwable\r\n\t{\n\t\tpharmacyLookup_Details_Steps = new PharmacyLookup_Details_Steps(SharedResource,utils);\r\n\t\tpharmacyLookup_BenefitsEligibility_DualCoverage_Steps = new PharmacyLookup_BenefitsEligibility_DualCoverage_Steps(SharedResource,utils);\r\n\t}",
"private void newLeaseRequest(Messenger messenger) throws IOException {\r\n \r\n if (null == messenger) {\r\n if (LOG.isEnabledFor(Priority.WARN)) {\r\n LOG.warn(\"Could not get messenger for seed RDV\");\r\n }\r\n throw new IOException(\"Could not connect to seed RDV\");\r\n }\r\n\r\n Message msg = new Message();\r\n // The request simply includes the local peer advertisement.\r\n msg.replaceMessageElement(\"jxta\", new TextDocumentMessageElement(ConnectRequest, getPeerAdvertisementDoc(), null));\r\n messenger.sendMessage(msg, pName, pParam);\r\n }",
"public void setupKeys()\n {\n KeyAreaInfo keyArea = null;\n keyArea = new KeyAreaInfo(this, Constants.UNIQUE, \"PrimaryKey\");\n keyArea.addKeyField(\"ID\", Constants.ASCENDING);\n keyArea = new KeyAreaInfo(this, Constants.SECONDARY_KEY, \"CurrencyCode\");\n keyArea.addKeyField(\"CurrencyCode\", Constants.ASCENDING);\n keyArea = new KeyAreaInfo(this, Constants.NOT_UNIQUE, \"Description\");\n keyArea.addKeyField(\"Description\", Constants.ASCENDING);\n }",
"@Override\n protected void trade(){\n // An example of a random trade proposal: offer peasants in exchange of soldiers\n // Pick the id of the potential partner (without checking if it is my neighbor)\n double pertnerID = (new Random()).nextInt(42)+1;\n trade[0] = pertnerID;\n // Choose the type of good demanded (peasants - 3)\n double demandType = 3;\n trade[1] = demandType;\n // Choose the amount of demanded goods\n double demand = Math.random();\n trade[2] = demand;\n // Choose the type of good offered in exchange (peasants - 2)\n double offerType = 2;\n trade[3] = offerType;\n // Choode the amount of goods offered in exchange (random but less than my total number of peasants)\n double offer = (new Random()).nextDouble()*myTerritory.getPeasants();\n trade[4] = offer;\n\n // This procedure updated the array trade, which contains the information\n // about trade proposals of the current lord\n }",
"@Override\r\n protected void initialize() {\r\n // initialize for computing deltaT\r\n mPreviousTime = System.currentTimeMillis(); \r\n // the controllers don't use position data\r\n // but they do need Yaw Data, which can come from\r\n // either the IMU or the Position Tracker. We\r\n // initialize both so we can change our minds\r\n // in the drivetrain code later on, depending\r\n // upon the relative performance of the two approaches.\r\n Robot.drivetrain.resetGyro();\r\n \tRobot.drivetrain.resetEncodersAndStats(); \r\n \tRobot.drivetrain.resetPosition(true);\r\n \tRobot.drivetrain.setInitialOrientationDegCCW(mStartOrientationDegCCW); \r\n double dist = Robot.visionSubSys.getDistFt() ;\r\n double bearing = Robot.visionSubSys.getBearingDegCW() ;\r\n double orient = Robot.drivetrain.getOrientDegCCW() ; \t\r\n mDistController.start(dist,bearing);\r\n mBearingController.start(dist,bearing,orient);\r\n \r\n Robot.logger.appendLog(\"CmdDualPidFollowVision Init\");\r\n \tRobot.drivetrain.setLoggingOn();\r\n }",
"@Test\n public void test_SuccessfulTravel() {\n \n // Test 1: Setting up planets with a pythagorean triplet\n setup(154, 1);\n \n SolarSystems.ADI.changeLocation(SolarSystems.SHALKA);\n \n // Tests the player's current fuel.\n assertEquals(141, player.getFuel());\n \n // Tests the player's current location after travel.\n assertEquals(SolarSystems.SHALKA, player.getSolarSystems());\n \n //----------------------------------------------------------------------\n \n // Test 2: Setting up coordinates with a random triangle\n setup(777, 2);\n \n SolarSystems.ERMIL.changeLocation(SolarSystems.SHIBI);\n \n // Tests the player's current fuel.\n assertEquals(646, player.getFuel());\n \n // Tests the player's current location after travel.\n assertEquals(SolarSystems.SHIBI, player.getSolarSystems());\n \n }",
"public void setup() {\n\n // Initialize the serial port for communicating to a PC\n uartInit(UART6,9600);\n\n // Initialize the Analog-to-Digital converter on the HAT\n analogInit(); //need to call this first before calling analogRead()\n\n // Initialize the MMQ8451 Accelerometer\n try {\n accelerometer = new Mma8451Q(\"I2C1\");\n accelerometer.setMode(Mma8451Q.MODE_ACTIVE);\n } catch (IOException e) {\n Log.e(\"HW3Template\",\"setup\",e);\n }\n }",
"protected void setup() {\r\n \t//inizializza gli attributi dell'iniziatore in base ai valori dei parametri\r\n Object[] args = this.getArguments();\r\n \t\tif (args != null)\r\n \t\t{\r\n \t\t\tthis.goodName = (String) args[0];\r\n \t\t\tthis.price = (int) args[1];\r\n \t\t\tthis.reservePrice = (int) args[2];\r\n \t\t\tthis.dif = (int) args[3];\r\n \t\t\tthis.quantity = (int) args[4];\r\n \t\t\tthis.msWait = (int) args[5];\r\n \t\t} \t\t\r\n\r\n manager.registerLanguage(codec);\r\n manager.registerOntology(ontology);\r\n \r\n //inizializza il bene oggetto dell'asta\r\n good = new Good(goodName, price, reservePrice, quantity);\r\n \r\n //cerca ed inserisce nell'ArrayList gli eventuali partecipanti\r\n findBidders(); \r\n \r\n //viene aggiunto l'apposito behaviour\r\n addBehaviour(new BehaviourInitiator(this));\r\n\r\n System.out.println(\"Initiator \" + this.getLocalName() + \" avviato\");\r\n }",
"private final void d(com.iqoption.core.microservices.billing.response.deposit.d r21) {\n /*\n r20 = this;\n r0 = r20;\n r1 = r20.asp();\n r1 = r1.cCg;\n r2 = \"binding.depositAmountEdit\";\n kotlin.jvm.internal.i.e(r1, r2);\n if (r21 == 0) goto L_0x0158;\n L_0x000f:\n r2 = r0.cFG;\n r3 = 1;\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r2 = r1.getText();\n r2 = r2.toString();\n r4 = r0.cFG;\n r2 = kotlin.jvm.internal.i.y(r2, r4);\n r2 = r2 ^ r3;\n if (r2 == 0) goto L_0x0027;\n L_0x0025:\n goto L_0x0158;\n L_0x0027:\n r2 = r20.ass();\n r4 = 0;\n if (r2 == 0) goto L_0x0068;\n L_0x002e:\n r2 = (java.lang.Iterable) r2;\n r2 = r2.iterator();\n L_0x0034:\n r5 = r2.hasNext();\n if (r5 == 0) goto L_0x0050;\n L_0x003a:\n r5 = r2.next();\n r6 = r5;\n r6 = (com.iqoption.core.features.c.a) r6;\n r6 = r6.getName();\n r7 = r21.getName();\n r6 = kotlin.jvm.internal.i.y(r6, r7);\n if (r6 == 0) goto L_0x0034;\n L_0x004f:\n goto L_0x0051;\n L_0x0050:\n r5 = r4;\n L_0x0051:\n r5 = (com.iqoption.core.features.c.a) r5;\n if (r5 == 0) goto L_0x0068;\n L_0x0055:\n r6 = r5.Xy();\n if (r6 == 0) goto L_0x0068;\n L_0x005b:\n r7 = 0;\n r8 = 0;\n r9 = 1;\n r10 = 0;\n r11 = 0;\n r12 = 19;\n r13 = 0;\n r2 = com.iqoption.core.util.e.a(r6, r7, r8, r9, r10, r11, r12, r13);\n goto L_0x0069;\n L_0x0068:\n r2 = r4;\n L_0x0069:\n r5 = r0.ayL;\n if (r5 == 0) goto L_0x0084;\n L_0x006d:\n r5 = r5.Km();\n if (r5 == 0) goto L_0x0084;\n L_0x0073:\n r5 = r5.aar();\n if (r5 == 0) goto L_0x0084;\n L_0x0079:\n r6 = r21.getName();\n r5 = r5.get(r6);\n r5 = (java.util.ArrayList) r5;\n goto L_0x0085;\n L_0x0084:\n r5 = r4;\n L_0x0085:\n if (r2 != 0) goto L_0x00a5;\n L_0x0087:\n if (r5 == 0) goto L_0x00a5;\n L_0x0089:\n r2 = r20.asr();\n r2 = r2.getItems();\n r2 = kotlin.collections.u.bV(r2);\n r2 = (com.iqoption.deposit.light.d.b) r2;\n if (r2 == 0) goto L_0x00a4;\n L_0x0099:\n r2 = r2.asL();\n if (r2 == 0) goto L_0x00a4;\n L_0x009f:\n r2 = com.iqoption.deposit.f.a(r2);\n goto L_0x00a5;\n L_0x00a4:\n r2 = r4;\n L_0x00a5:\n r6 = r0.cxs;\n r7 = r0.cFE;\n r8 = r4;\n r8 = (java.lang.Double) r8;\n if (r2 != 0) goto L_0x00f4;\n L_0x00ae:\n r9 = r6 instanceof com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d;\n if (r9 == 0) goto L_0x00f4;\n L_0x00b2:\n if (r7 == 0) goto L_0x00f4;\n L_0x00b4:\n r6 = (com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d) r6;\n r6 = r6.aaI();\n if (r6 == 0) goto L_0x00cd;\n L_0x00bc:\n r7 = r7.getName();\n r6 = r6.get(r7);\n r6 = (com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d.b) r6;\n if (r6 == 0) goto L_0x00cd;\n L_0x00c8:\n r6 = r6.OL();\n goto L_0x00ce;\n L_0x00cd:\n r6 = r4;\n L_0x00ce:\n if (r6 == 0) goto L_0x00f5;\n L_0x00d0:\n r7 = r0.f(r6);\n if (r7 != 0) goto L_0x00f5;\n L_0x00d6:\n r8 = r6.doubleValue();\n r10 = 0;\n r11 = 0;\n r12 = 1;\n r13 = 0;\n r14 = 0;\n r15 = 0;\n r16 = 0;\n r2 = java.util.Locale.US;\n r7 = \"Locale.US\";\n kotlin.jvm.internal.i.e(r2, r7);\n r18 = 115; // 0x73 float:1.61E-43 double:5.7E-322;\n r19 = 0;\n r17 = r2;\n r2 = com.iqoption.core.util.e.a(r8, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19);\n goto L_0x00f5;\n L_0x00f4:\n r6 = r8;\n L_0x00f5:\n if (r2 == 0) goto L_0x00f8;\n L_0x00f7:\n goto L_0x00fa;\n L_0x00f8:\n r2 = \"\";\n L_0x00fa:\n r0.cFG = r2;\n r2 = (java.lang.CharSequence) r2;\n r1.setText(r2);\n r1 = r2.length();\n r2 = 0;\n if (r1 != 0) goto L_0x010a;\n L_0x0108:\n r1 = 1;\n goto L_0x010b;\n L_0x010a:\n r1 = 0;\n L_0x010b:\n if (r1 == 0) goto L_0x0155;\n L_0x010d:\n r1 = r0.cxs;\n r7 = r1 instanceof com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d;\n if (r7 != 0) goto L_0x0114;\n L_0x0113:\n r1 = r4;\n L_0x0114:\n r1 = (com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d) r1;\n if (r1 == 0) goto L_0x011e;\n L_0x0118:\n r1 = r1.aaE();\n if (r1 == r3) goto L_0x0155;\n L_0x011e:\n if (r6 == 0) goto L_0x0122;\n L_0x0120:\n r1 = r6;\n goto L_0x0138;\n L_0x0122:\n if (r5 == 0) goto L_0x0137;\n L_0x0124:\n r5 = (java.util.List) r5;\n r1 = kotlin.collections.u.bV(r5);\n r1 = (com.iqoption.core.microservices.billing.response.deposit.e) r1;\n if (r1 == 0) goto L_0x0137;\n L_0x012e:\n r5 = r1.ZC();\n r1 = java.lang.Double.valueOf(r5);\n goto L_0x0138;\n L_0x0137:\n r1 = r4;\n L_0x0138:\n if (r1 == 0) goto L_0x013b;\n L_0x013a:\n goto L_0x0141;\n L_0x013b:\n r5 = 0;\n r1 = java.lang.Double.valueOf(r5);\n L_0x0141:\n r1 = r0.f(r1);\n if (r1 == 0) goto L_0x014b;\n L_0x0147:\n r4 = r1.getErrorMessage();\n L_0x014b:\n if (r1 == 0) goto L_0x0151;\n L_0x014d:\n r2 = r1.aso();\n L_0x0151:\n r0.u(r4, r2);\n goto L_0x0158;\n L_0x0155:\n r0.u(r4, r2);\n L_0x0158:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.d(com.iqoption.core.microservices.billing.response.deposit.d):void\");\n }",
"protected void initialize() {\n\t\tRobot._driveTrain.setAuton(true);\n\t\tRobot._driveTrain.clearEncoder();\n\t\tRobot._driveTrain.clearGyro();\n\t\tdistanceToCenter = SmartDashboard.getNumber(\"toteOffset\", 0);\n\t\tif (Robot._pneumatics.getArms() != DoubleSolenoid.Value.kReverse) {\n\t\t\tRobot._pneumatics.setArms(DoubleSolenoid.Value.kReverse);\n\t\t}\n\t}",
"public void send_setup()\n {\n out.println(\"chain_setup\");\n }",
"public LWTRTPdu connectAcpt() throws IncorrectTransitionException;"
]
| [
"0.59614193",
"0.5925554",
"0.5638693",
"0.5523894",
"0.5405566",
"0.53134054",
"0.53076375",
"0.521455",
"0.517468",
"0.51711947",
"0.5126248",
"0.51116914",
"0.5110603",
"0.5106701",
"0.5104744",
"0.5083536",
"0.50735486",
"0.5054256",
"0.5053287",
"0.5047731",
"0.50365907",
"0.50292057",
"0.50184214",
"0.49687636",
"0.4963328",
"0.495639",
"0.49422157",
"0.49322346",
"0.49318194",
"0.49256247",
"0.49220878",
"0.49209902",
"0.49160075",
"0.4913982",
"0.4910835",
"0.4901026",
"0.49007392",
"0.49007392",
"0.49007392",
"0.48940682",
"0.4890285",
"0.48854953",
"0.48847455",
"0.4877572",
"0.48694718",
"0.48663095",
"0.48660544",
"0.48583004",
"0.48578095",
"0.48558387",
"0.48516607",
"0.48488575",
"0.4847236",
"0.484674",
"0.48414588",
"0.48318976",
"0.4817807",
"0.48155314",
"0.4813951",
"0.48134243",
"0.4806243",
"0.47994706",
"0.47991177",
"0.4794511",
"0.47911412",
"0.4790788",
"0.47883824",
"0.47882912",
"0.47878346",
"0.47841242",
"0.47801495",
"0.4776353",
"0.4771275",
"0.47710693",
"0.47704136",
"0.47675106",
"0.47658196",
"0.4760775",
"0.47601408",
"0.4758435",
"0.47498325",
"0.47480544",
"0.4747593",
"0.47449335",
"0.4741219",
"0.4733905",
"0.4731675",
"0.47309673",
"0.47283834",
"0.47279203",
"0.47259372",
"0.47258806",
"0.47232595",
"0.4719519",
"0.47175536",
"0.47168508",
"0.47161722",
"0.47139645",
"0.4711857",
"0.47106954"
]
| 0.74873656 | 0 |
Creates a TA which is a copy of this TAA document | public TravelAuthorizationDocument toCopyTA() throws WorkflowException {
TravelAuthorizationDocument doc = (TravelAuthorizationDocument) SpringContext.getBean(DocumentService.class).getNewDocument(TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT);
toCopyTravelAuthorizationDocument(doc);
doc.getDocumentHeader().setDocumentDescription(TemConstants.PRE_FILLED_DESCRIPTION);
doc.getDocumentHeader().setOrganizationDocumentNumber("");
doc.setApplicationDocumentStatus(TravelAuthorizationStatusCodeKeys.IN_PROCESS);
doc.setTravelDocumentIdentifier(null); // reset, so it regenerates
doc.initiateAdvancePaymentAndLines();
return doc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void _generateATa(TaInfo ta) {\n\t String id = _getId(CS_C_GRADSTUD, ta.indexInGradStud);\n writer_.startAboutSection(CS_C_TA, id);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#TeachingAssistant\", true);\t \t \t \t \n }\n writer_.addProperty(CS_P_TAOF, _getId(CS_C_COURSE, ta.indexInCourse), true);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#teachingAssistantOf\", _getId(CS_C_COURSE, ta.indexInCourse), true);\t \t \t \t \n }\n writer_.endSection(CS_C_TA);\n }",
"@Test //ExSkip\n public void fieldTOA() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Insert a TOA field, which will create an entry for each TA field in the document,\n // displaying long citations and page numbers for each entry.\n FieldToa fieldToa = (FieldToa) builder.insertField(FieldType.FIELD_TOA, false);\n\n // Set the entry category for our table. This TOA will now only include TA fields\n // that have a matching value in their EntryCategory property.\n fieldToa.setEntryCategory(\"1\");\n\n // Moreover, the Table of Authorities category at index 1 is \"Cases\",\n // which will show up as our table's title if we set this variable to true.\n fieldToa.setUseHeading(true);\n\n // We can further filter TA fields by naming a bookmark that they will need to be within the TOA bounds.\n fieldToa.setBookmarkName(\"MyBookmark\");\n\n // By default, a dotted line page-wide tab appears between the TA field's citation\n // and its page number. We can replace it with any text we put on this property.\n // Inserting a tab character will preserve the original tab.\n fieldToa.setEntrySeparator(\" \\t p.\");\n\n // If we have multiple TA entries that share the same long citation,\n // all their respective page numbers will show up on one row.\n // We can use this property to specify a string that will separate their page numbers.\n fieldToa.setPageNumberListSeparator(\" & p. \");\n\n // We can set this to true to get our table to display the word \"passim\"\n // if there are five or more page numbers in one row.\n fieldToa.setUsePassim(true);\n\n // One TA field can refer to a range of pages.\n // We can specify a string here to appear between the start and end page numbers for such ranges.\n fieldToa.setPageRangeSeparator(\" to \");\n\n // The format from the TA fields will carry over into our table.\n // We can disable this by setting the RemoveEntryFormatting flag.\n fieldToa.setRemoveEntryFormatting(true);\n builder.getFont().setColor(Color.GREEN);\n builder.getFont().setName(\"Arial Black\");\n\n Assert.assertEquals(fieldToa.getFieldCode(), \" TOA \\\\c 1 \\\\h \\\\b MyBookmark \\\\e \\\" \\t p.\\\" \\\\l \\\" & p. \\\" \\\\p \\\\g \\\" to \\\" \\\\f\");\n\n builder.insertBreak(BreakType.PAGE_BREAK);\n\n // This TA field will not appear as an entry in the TOA since it is outside\n // the bookmark's bounds that the TOA's BookmarkName property specifies.\n FieldTA fieldTA = insertToaEntry(builder, \"1\", \"Source 1\");\n\n Assert.assertEquals(fieldTA.getFieldCode(), \" TA \\\\c 1 \\\\l \\\"Source 1\\\"\");\n\n // This TA field is inside the bookmark,\n // but the entry category does not match that of the table, so the TA field will not include it.\n builder.startBookmark(\"MyBookmark\");\n fieldTA = insertToaEntry(builder, \"2\", \"Source 2\");\n\n // This entry will appear in the table.\n fieldTA = insertToaEntry(builder, \"1\", \"Source 3\");\n\n // A TOA table does not display short citations,\n // but we can use them as a shorthand to refer to bulky source names that multiple TA fields reference.\n fieldTA.setShortCitation(\"S.3\");\n\n Assert.assertEquals(fieldTA.getFieldCode(), \" TA \\\\c 1 \\\\l \\\"Source 3\\\" \\\\s S.3\");\n\n // We can format the page number to make it bold/italic using the following properties.\n // We will still see these effects if we set our table to ignore formatting.\n fieldTA = insertToaEntry(builder, \"1\", \"Source 2\");\n fieldTA.isBold(true);\n fieldTA.isItalic(true);\n\n Assert.assertEquals(fieldTA.getFieldCode(), \" TA \\\\c 1 \\\\l \\\"Source 2\\\" \\\\b \\\\i\");\n\n // We can configure TA fields to get their TOA entries to refer to a range of pages that a bookmark spans across.\n // Note that this entry refers to the same source as the one above to share one row in our table.\n // This row will have the page number of the entry above and the page range of this entry,\n // with the table's page list and page number range separators between page numbers.\n fieldTA = insertToaEntry(builder, \"1\", \"Source 3\");\n fieldTA.setPageRangeBookmarkName(\"MyMultiPageBookmark\");\n\n builder.startBookmark(\"MyMultiPageBookmark\");\n builder.insertBreak(BreakType.PAGE_BREAK);\n builder.insertBreak(BreakType.PAGE_BREAK);\n builder.insertBreak(BreakType.PAGE_BREAK);\n builder.endBookmark(\"MyMultiPageBookmark\");\n\n Assert.assertEquals(fieldTA.getFieldCode(), \" TA \\\\c 1 \\\\l \\\"Source 3\\\" \\\\r MyMultiPageBookmark\");\n\n // If we have enabled the \"Passim\" feature of our table, having 5 or more TA entries with the same source will invoke it.\n for (int i = 0; i < 5; i++) {\n insertToaEntry(builder, \"1\", \"Source 4\");\n }\n\n builder.endBookmark(\"MyBookmark\");\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.TOA.TA.docx\");\n testFieldTOA(new Document(getArtifactsDir() + \"Field.TOA.TA.docx\")); //ExSKip\n }",
"TT createTT();",
"@Override\r\n\tpublic void creerTVA(TVA t) {\n\t\t\r\n\t}",
"TIAssignment createTIAssignment();",
"private void _generateRaTa() {\n\t if(instances_[CS_C_TA].total == 0) return;\n ArrayList list, courseList;\n TaInfo ta;\n RaInfo ra;\n ArrayList tas, ras;\n int i;\n\n tas = new ArrayList();\n ras = new ArrayList();\n list = _getRandomList(instances_[CS_C_TA].total + instances_[CS_C_RA].total,\n 0, instances_[CS_C_GRADSTUD].total - 1);\n System.out.println(\"underCourses \" + (underCourses_.size() - 1));\n System.out.println(\"instances ta \" + instances_[CS_C_TA].total);\n courseList = _getRandomList(instances_[CS_C_TA].total, 0,\n underCourses_.size() - 1);\n\n for (i = 0; i < courseList.size(); i++) {\n ta = new TaInfo();\n ta.indexInGradStud = ( (Integer) list.get(i)).intValue();\n ta.indexInCourse = ( (CourseInfo) underCourses_.get( ( (Integer)\n courseList.get(i)).intValue())).globalIndex;\n _generateATa(ta);\n }\n while (i < list.size()) {\n ra = new RaInfo();\n ra.indexInGradStud = ( (Integer) list.get(i)).intValue();\n _generateAnRa(ra);\n i++;\n }\n }",
"public TTau() {}",
"private static Document createCopiedDocument(Document originalDocument) {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db;\n Document copiedDocument = null;\n try {\n db = dbf.newDocumentBuilder();\n Node originalRoot = originalDocument.getDocumentElement();\n copiedDocument = db.newDocument();\n Node copiedRoot = copiedDocument.importNode(originalRoot, true);\n copiedDocument.appendChild(copiedRoot);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return copiedDocument;\n }",
"Prototype makeCopy();",
"protected GuiTestObject terraced(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"terraced\"), anchor, flags);\n\t}",
"@Override\n public TopicObject copy() {\n return new TopicObject(this);\n }",
"public static void arqTexto(JTextArea ta) throws IOException {\n Path arqTexto = Paths.get(\"src\\\\ex01\\\\arqTexto.txt\").toAbsolutePath();\n Files.deleteIfExists(arqTexto);\n Files.createFile(arqTexto);\n \n //Cria um FileOutputStram atraves do arqBinario\n FileWriter fw = new FileWriter(arqTexto.toFile());\n fw.write(\"12345\");\n \n //Fecha o FileWriter\n fw.close();\n \n //Cria uma Filereader atraves do arqText e um BufferedReader atraves do fr\n FileReader fr = new FileReader(arqTexto.toFile());\n BufferedReader br = new BufferedReader(fr);\n \n //Le uma linha atraves do br e escreve essa linha na textArea\n ta.setText(br.readLine());\n \n //Fecha o fr e o br\n fr.close();\n br.close();\n \n }",
"public void newDocument();",
"public ArticleTVA(ArticleTVA articletva){\n reference = articletva.reference;\n designation = articletva.designation;\n prixHorsTaxes = articletva.prixHorsTaxes;\n }",
"TR createTR();",
"public static void add(Transcription t) throws IOException, SQLException\r\n {\r\n IndexWriter writer = null;\r\n Analyzer analyser;\r\n Directory directory;\r\n /**@TODO parameterize this location*/\r\n String dest = \"/usr/indexTranscriptions\";\r\n\r\n directory = FSDirectory.getDirectory(dest, true);\r\n analyser = new StandardAnalyzer();\r\n writer = new IndexWriter(directory, analyser, true);\r\n Document doc=new Document();\r\n Field field;\r\n field = new Field(\"text\", t.getText(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"comment\", t.getComment(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"creator\", \"\" + t.UID, Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"security\", \"\" + \"private\", Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"line\", \"\" + t.getLine(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"page\", \"\" + t.getFolio(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"id\", \"\" + t.getLineID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"manuscript\", \"\" + new Manuscript(t.getFolio()).getID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"projectID\", \"\" + t.getProjectID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n writer.addDocument(doc);\r\n writer.commit();\r\n \twriter.close();\r\n\r\n }",
"gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak.Aa addNewAa();",
"public abstract Anuncio creaAnuncioTematico();",
"private static Document copyDocument(Document origDoc) {\n DocumentImpl doc = new DocumentImpl();\n doc.setFeatures(origDoc.getFeatures());\n doc.setContent(new DocumentContentImpl(origDoc.getContent().toString()));\n doc.setPreserveOriginalContent(origDoc.getPreserveOriginalContent());\n doc.setMarkupAware(origDoc.getMarkupAware());\n\n for(String an : origDoc.getAnnotationSetNames()) {\n if(!an.equals(GateConstants.ORIGINAL_MARKUPS_ANNOT_SET_NAME)) {\n AnnotationSet as = origDoc.getAnnotations(an);\n doc.getAnnotations(an).addAll(as);\n }\n }\n\n doc.getAnnotations().addAll(origDoc.getAnnotations());\n\n return doc;\n }",
"private SegmentTmTu createTu(Element p_root)\n throws Exception\n {\n SegmentTmTu result = new SegmentTmTu();\n\n // Optional TU attributes:\n\n // Original TU id, if known\n String id = p_root.attributeValue(Tmx.TUID);\n if (id != null && id.length() > 0)\n {\n try\n {\n long lid = Long.parseLong(id);\n result.setId(lid);\n }\n catch (Throwable ignore)\n {\n // <TU tuid> can be an alphanumeric token.\n // If it is not a simple number, we ignore it.\n }\n }\n\n // Datatype of the TU (html, javascript etc)\n String format = p_root.attributeValue(Tmx.DATATYPE);\n if (format == null || format.length() == 0)\n {\n format = m_tmx.getDatatype();\n }\n result.setFormat(format);\n\n // Locale of Source TUV (use default from header)\n String lang = p_root.attributeValue(Tmx.SRCLANG);\n\n if (lang == null || lang.length() == 0)\n {\n lang = m_defaultSrcLang;\n }\n\n try\n {\n String locale = ImportUtil.normalizeLocale(lang);\n result.setSourceLocale(ImportUtil.getLocaleByName(locale));\n }\n catch (Throwable ex)\n {\n CATEGORY.warn(\"invalid locale \" + lang);\n\n throw new Exception(\"cannot handle locale \" + lang);\n }\n\n // TODO: other optional attributes\n String usageCount = p_root.attributeValue(Tmx.USAGECOUNT);\n String usageDate = p_root.attributeValue(Tmx.LASTUSAGEDATE);\n //String tool = p_root.attributeValue(Tmx.CREATIONTOOL);\n //String toolversion = p_root.attributeValue(Tmx.CREATIONTOOLVERSION);\n // used in createTuv()\n //String creationDate = p_root.attributeValue(Tmx.CREATIONDATE);\n //String creationUser = p_root.attributeValue(Tmx.CREATIONID);\n //String changeDate = p_root.attributeValue(Tmx.CHANGEDATE);\n //String changeUser = p_root.attributeValue(Tmx.CHANGEID);\n\n // GlobalSight-defined properties:\n\n // Segment type (text, css-color, etc)\n String segmentType = \"text\";\n\n Node node = p_root.selectSingleNode(\n \".//prop[@type = '\" + Tmx.PROP_SEGMENTTYPE + \"']\");\n\n if (node != null)\n {\n segmentType = node.getText();\n }\n result.setType(segmentType);\n\n //Read SID\n node = p_root.selectSingleNode(\n \".//prop[@type= '\" + Tmx.PROP_TM_UDA_SID + \"']\");\n if (node != null) {\n result.setSID(node.getText());\n }\n \n // TU type (T or L)\n boolean isTranslatable = true;\n node = p_root.selectSingleNode(\n \".//prop[@type = '\" + Tmx.PROP_TUTYPE + \"']\");\n\n if (node != null)\n {\n isTranslatable = node.getText().equals(Tmx.VAL_TU_TRANSLATABLE);\n }\n\n if (isTranslatable)\n {\n result.setTranslatable();\n }\n else\n {\n result.setLocalizable();\n }\n \n // prop with Att::\n List propNodes = p_root.elements(\"prop\");\n for (int i = 0; i < propNodes.size(); i++)\n {\n Element elem = (Element) propNodes.get(i);\n ProjectTmTuTProp prop = createProp(result, elem);\n\n if (prop != null)\n result.addProp(prop);\n }\n\n // TUVs\n List nodes = p_root.elements(\"tuv\");\n for (int i = 0; i < nodes.size(); i++)\n {\n Element elem = (Element)nodes.get(i);\n\n SegmentTmTuv tuv = createTuv(result, elem);\n\n result.addTuv(tuv);\n }\n\n\t\tif (com.globalsight.everest.tm.importer.ImportOptions.TYPE_TMX_WORLD_SERVER\n\t\t\t\t.equals(m_options.getFileType()))\n\t\t{\n\t\t\tresult.setFromWorldServer(true);\n\t\t}\n \n return result;\n }",
"private Word copyWord(Word w1) {\n return new Word(w1.word, w1.subjectivity, w1.position, w1.stemmed, w1.polarity);\n }",
"@Override\n public PdfTransform<PdfDocument> getDocumentTransform(ArchivalUnit au, OutputStream os) {\n return new BaseDocumentExtractingTransform(os) {\n @Override\n public void outputCreationDate() throws PdfException {\n // Intentionally made blank\n }\n };\n }",
"public Automato(TabelaDeTransicao _tabela) {\n tabela = _tabela;\n estadosDeterminizados = (Vector) _tabela.getEstados().clone();\n }",
"public Book(String t, String a) {\n\t\ttitle = t;\n\t\tauthor = a;\n\t}",
"public Object clone()\n{\n\tOzTextArea ta = new OzTextArea();\n\tta.setFont(textArea().getFont());\n\tta.setCursor(getCursor());\n\treturn ta;\n}",
"public AnalysisProfile(){\n\t\tsuper();\n\t\tthis.terms = new HashMap<String, Integer>();\n\t\tthis.sources = new ArrayList<String>();\n\t\tthis.stopWords = new HashSet<String>();\n\t\tthis.yearFrom = -1;\n\t\tthis.yearTo = -1;\n\t\tthis.contextSize = 5;\n\t\tthis.useCompounds = false;\n\t\tthis.useStopwords = true;\n\t\tthis.useOnlyContexts = true;\n\t\tthis.results = new StringBuilder();\n\t\tthis.corpus = new ArrayList<File>();\n\t}",
"private SegmentTmTuv createTuv(SegmentTmTu p_tu, Element p_root)\n throws Exception\n {\n SegmentTmTuv result = new SegmentTmTuv();\n result.setOrgSegment(p_root.asXML());\n \n // need to set backpointer to tuv, or SegmentTmTuv.equals() fails.\n result.setTu(p_tu);\n\n // language of the TUV \"EN-US\", case insensitive\n String lang = p_root.attributeValue(Tmx.LANG);\n\n try\n {\n String locale = ImportUtil.normalizeLocale(lang);\n result.setLocale(ImportUtil.getLocaleByName(locale));\n }\n catch (Throwable ex)\n {\n throw new Exception(\"unknown locale \" + lang + \",you can create it in system then retry.\");\n }\n\n // Creation user - always set to a known value\n String user = p_root.attributeValue(Tmx.CREATIONID);\n if (user == null)\n {\n user = p_root.getParent().attributeValue(Tmx.CREATIONID);\n }\n\n result.setCreationUser(user != null ? user : Tmx.DEFAULT_USER);\n\n // Modification user - only set if known\n user = p_root.attributeValue(Tmx.CHANGEID);\n if (user == null)\n {\n user = p_root.getParent().attributeValue(Tmx.CHANGEID);\n }\n\n if (user != null)\n {\n result.setModifyUser(user);\n }\n\n // Timestamps (should be expressed using java.util.Date).\n // In TMX, timestamps use the short form: yyyymmddThhmmssZ,\n // so prepare for both short and long form.\n Date now = new Date();\n Date date;\n\n // Creation date - always set to a known value\n String ts = p_root.attributeValue(Tmx.CREATIONDATE);\n if (ts == null)\n {\n ts = p_root.getParent().attributeValue(Tmx.CREATIONDATE);\n }\n\n if (ts != null)\n {\n date = UTC.parseNoSeparators(ts);\n if (date == null)\n {\n date = UTC.parse(ts);\n }\n result.setCreationDate(new Timestamp(date.getTime()));\n }\n else\n {\n result.setCreationDate(new Timestamp(now.getTime()));\n }\n\n // Modification date - only set if known (note: currently\n // AbstractTmTuv sets the modification date to NOW)\n ts = p_root.attributeValue(Tmx.CHANGEDATE);\n if (ts == null)\n {\n ts = p_root.getParent().attributeValue(Tmx.CHANGEDATE);\n }\n\n if (ts != null)\n {\n date = UTC.parseNoSeparators(ts);\n if (date == null)\n {\n date = UTC.parse(ts);\n }\n result.setModifyDate(new Timestamp(date.getTime()));\n }\n else\n {\n // If no \"changedate\", set it same as \"creationdate\".\n result.setModifyDate(result.getCreationDate());\n }\n\n\t\tts = p_root.attributeValue(Tmx.LASTUSAGEDATE);\n\t\tif (ts == null)\n\t\t{\n\t\t\tts = p_root.getParent().attributeValue(Tmx.LASTUSAGEDATE);\n\t\t}\n\t\tif (ts != null)\n\t\t{\n\t\t\tdate = UTC.parseNoSeparators(ts);\n\t\t\tif (date == null)\n\t\t\t{\n\t\t\t\tdate = UTC.parse(ts);\n\t\t\t}\n\t\t\tresult.setLastUsageDate(new Timestamp(date.getTime()));\n\t\t}\n\n\t\tList tuvPropNodes = p_root.elements(\"prop\");\n\t\tfor (int i = 0; i < tuvPropNodes.size(); i++)\n\t\t{\n\t\t\tElement elem = (Element) tuvPropNodes.get(i);\n\t\t\tString type = elem.attributeValue(\"type\");\n\t\t\tString value = elem.getText();\n\t\t\tif (Tmx.PROP_PREVIOUS_HASH.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setPreviousHash(Long.parseLong(value));\n\t\t\t}\n\t\t\telse if (Tmx.PROP_NEXT_HASH.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setNextHash(Long.parseLong(value));\n\t\t\t}\n\t\t\telse if (Tmx.PROP_JOB_ID.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setJobId(Long.parseLong(value));\n\t\t\t}\n\t\t\telse if (Tmx.PROP_JOB_NAME.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setJobName(value);\n\t\t\t}\n\t\t\telse if (Tmx.PROP_CREATION_PROJECT.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setUpdatedProject(value);\n\t\t\t}\n\t\t}\n // Segment text: need to produce root elements <translatable>\n // and <localizable> depending on TU type.\n StringBuffer segment = new StringBuffer();\n\n if (p_tu.isTranslatable())\n {\n segment.append(\"<segment>\");\n }\n else\n {\n segment.append(\"<localizable>\");\n }\n\n segment.append(getSegmentValue(p_root));\n\n if (p_tu.isTranslatable())\n {\n segment.append(\"</segment>\");\n }\n else\n {\n segment.append(\"</localizable>\");\n }\n\n result.setSid(p_tu.getSID());\n //End of Added\n result.setSegment(segment.toString());\n\n return result;\n }",
"public Aso() {\n\t\tName = \"Aso\";\n\t\ttartossag = 3;\n\t}",
"Snapshot create();",
"Course buildCopy(UUID courseUuid, String courseApplicationYear, boolean nameFromOrig);",
"public void performCopy() {\n \t\ttext.copy();\n \t}",
"@Override\n public void toCopy() throws WorkflowException {\n super.toCopy();\n travelAdvancesForTrip = null;\n setTravelDocumentIdentifier(null);\n if (!(this instanceof TravelAuthorizationCloseDocument)) { // TAC's don't have advances\n initiateAdvancePaymentAndLines();\n }\n }",
"public static baconhep.TTau.Builder newBuilder(baconhep.TTau other) {\n return new baconhep.TTau.Builder(other);\n }",
"TAttribute createTAttribute();",
"public _cls_script_13( AutomatonInstance ta,UserAccount _ua,UserInfo _ui) {\nparent = _cls_script_12._get_cls_script_12_inst( _ua,_ui);\nthis.ta = ta;\n}",
"T copy();",
"@Override\r\n public String createTranlatedDocument(TopElement topElement, String filePath, boolean is) {\n return null;\r\n }",
"private static void addTime(Document document,Time tim) throws DocumentException {\n Anchor anchor = new Anchor(\"Графік роботи\", font20);\n anchor.setName(\"Графік роботи\");\n document.add(new Chunk(\"Графік роботи\",font20));\n // Second parameter is the number of the chapter\n //Chapter catPart = new Chapter(new Paragraph(anchor), 1);\n document.add( Chunk.NEWLINE );\n document.add(new Chunk(\"Понеділок: \" + tim.getMs() + \" - \" + tim.getMe(),font15));\n document.add( Chunk.NEWLINE );\n document.add(new Chunk(\"Вівторок: \" + tim.getTs() + \" - \" + tim.getTe(),font15));\n document.add( Chunk.NEWLINE );\n document.add(new Chunk(\"Середа: \" + tim.getWs() + \" - \" + tim.getWe(),font15));\n document.add( Chunk.NEWLINE );\n document.add(new Chunk(\"Четвер: \" + tim.getThs() + \" - \" + tim.getThe(),font15));\n document.add( Chunk.NEWLINE );\n document.add(new Chunk(\"П'ятниця: \" + tim.getFs() + \" - \" + tim.getFe(),font15));\n document.add( Chunk.NEWLINE );\n document.add(new Chunk(\"Субота: \" + tim.getSs() + \" - \" + tim.getSe(),font15));\n document.add( Chunk.NEWLINE );\n document.add(new Chunk(\"Неділя: \" + tim.getSus() + \" - \" + tim.getSue(),font15));\n document.add( Chunk.NEWLINE );\n document.add( Chunk.NEWLINE );\n \n \n\n }",
"public void copyData(TrianaType source) { // not needed\n }",
"public static baconhep.TTau.Builder newBuilder(baconhep.TTau.Builder other) {\n return new baconhep.TTau.Builder(other);\n }",
"public TranscriptionIndexer() throws SQLException, CorruptIndexException, IOException\r\n {\r\n\r\n\r\n IndexWriter writer = null;\r\n Analyzer analyser;\r\n Directory directory;\r\n /**@TODO parameterized location*/\r\n String dest = \"/usr/indexTranscriptions\";\r\n\r\n directory = FSDirectory.getDirectory(dest, true);\r\n analyser = new StandardAnalyzer();\r\n writer = new IndexWriter(directory, analyser, true);\r\n PreparedStatement stmt=null;\r\n Connection j = null;\r\n try {\r\n j=DatabaseWrapper.getConnection();\r\n String query=\"select * from transcription where text!='' and creator>0 order by folio, line\";\r\n stmt=j.prepareStatement(query);\r\n ResultSet rs=stmt.executeQuery();\r\n while(rs.next())\r\n {\r\n int folio=rs.getInt(\"folio\");\r\n int line=rs.getInt(\"line\");\r\n int UID=rs.getInt(\"creator\");\r\n int id=rs.getInt(\"id\");\r\n Transcription t=new Transcription(id);\r\n Document doc = new Document();\r\n Field field;\r\n field = new Field(\"text\", t.getText(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"comment\", t.getComment(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"creator\", \"\" + t.UID, Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"security\", \"\" + \"private\", Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"line\", \"\" + t.getLine(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"page\", \"\" + t.getFolio(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"id\", \"\" + t.getLineID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"manuscript\", \"\" + new Manuscript(t.getFolio()).getID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"projectID\", \"\" + t.getProjectID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n writer.addDocument(doc);\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n if(writer!=null)\r\n {\r\n writer.commit();\r\n \twriter.close();\r\n return;\r\n }\r\n ex.printStackTrace();\r\n }\r\n finally{\r\n DatabaseWrapper.closeDBConnection(j);\r\n DatabaseWrapper.closePreparedStatement(stmt);\r\n }\r\n\r\n writer.commit();\r\n \twriter.close();\r\n}",
"public TarefaResource() {\r\n }",
"Traditional createTraditional();",
"public StudyClass getCopy(){\r\n String nc = className;\r\n String[] rc = roomConstraint.clone();\r\n return new StudyClass(internalId, classNum, nc, sks, rc, tConstraint.getCopy());\r\n }",
"public BinaryContent createClone(BinaryContent t)\r\n\t{\n\t\treturn null;\r\n\t}",
"public CMObject copyOf();",
"private TAPosition()\n {\n\n }",
"public void copyFrom(SAUAL50S_OA orig)\n {\n OutUnqassGrp_MA = orig.OutUnqassGrp_MA;\n for(int a = 0; a < 100; a++)\n {\n OutUnqassGrp_AC[a] = orig.OutUnqassGrp_AC[a];\n OutGUniqueAssignmentYear_AT[a] = orig.OutGUniqueAssignmentYear_AT[a];\n OutGUniqueAssignmentYear_AS[a] = orig.OutGUniqueAssignmentYear_AS[a];\n OutGUniqueAssignmentYear[a] = orig.OutGUniqueAssignmentYear[a];\n OutGUniqueAssignmentPeriod_AT[a] = orig.OutGUniqueAssignmentPeriod_AT[a];\n OutGUniqueAssignmentPeriod_AS[a] = orig.OutGUniqueAssignmentPeriod_AS[a];\n OutGUniqueAssignmentPeriod[a] = orig.OutGUniqueAssignmentPeriod[a];\n OutGUniqueAssignmentUniqueNr_AT[a] = orig.OutGUniqueAssignmentUniqueNr_AT[\n a];\n OutGUniqueAssignmentUniqueNr_AS[a] = orig.OutGUniqueAssignmentUniqueNr_AS[\n a];\n OutGUniqueAssignmentUniqueNr[a] = orig.OutGUniqueAssignmentUniqueNr[a];\n OutGUniqueAssignmentMkStudyUnitCode_AT[a] = \n orig.OutGUniqueAssignmentMkStudyUnitCode_AT[a];\n OutGUniqueAssignmentMkStudyUnitCode_AS[a] = \n orig.OutGUniqueAssignmentMkStudyUnitCode_AS[a];\n OutGUniqueAssignmentMkStudyUnitCode[a] = \n orig.OutGUniqueAssignmentMkStudyUnitCode[a];\n OutGUniqueAssignmentAssignmentNr_AT[a] = \n orig.OutGUniqueAssignmentAssignmentNr_AT[a];\n OutGUniqueAssignmentAssignmentNr_AS[a] = \n orig.OutGUniqueAssignmentAssignmentNr_AS[a];\n OutGUniqueAssignmentAssignmentNr[a] = \n orig.OutGUniqueAssignmentAssignmentNr[a];\n OutGUniqueAssignmentNrOfQuestions_AT[a] = \n orig.OutGUniqueAssignmentNrOfQuestions_AT[a];\n OutGUniqueAssignmentNrOfQuestions_AS[a] = \n orig.OutGUniqueAssignmentNrOfQuestions_AS[a];\n OutGUniqueAssignmentNrOfQuestions[a] = \n orig.OutGUniqueAssignmentNrOfQuestions[a];\n OutGUniqueAssignmentType_AT[a] = orig.OutGUniqueAssignmentType_AT[a];\n OutGUniqueAssignmentType_AS[a] = orig.OutGUniqueAssignmentType_AS[a];\n OutGUniqueAssignmentType[a] = orig.OutGUniqueAssignmentType[a];\n OutGUniqueAssignmentNegativeMarkFactor_AT[a] = \n orig.OutGUniqueAssignmentNegativeMarkFactor_AT[a];\n OutGUniqueAssignmentNegativeMarkFactor_AS[a] = \n orig.OutGUniqueAssignmentNegativeMarkFactor_AS[a];\n OutGUniqueAssignmentNegativeMarkFactor[a] = \n orig.OutGUniqueAssignmentNegativeMarkFactor[a];\n OutGUniqueAssignmentMaxCredits_AT[a] = \n orig.OutGUniqueAssignmentMaxCredits_AT[a];\n OutGUniqueAssignmentMaxCredits_AS[a] = \n orig.OutGUniqueAssignmentMaxCredits_AS[a];\n OutGUniqueAssignmentMaxCredits[a] = orig.OutGUniqueAssignmentMaxCredits[a]\n ;\n OutGUniqueAssignmentCreditSystem_AT[a] = \n orig.OutGUniqueAssignmentCreditSystem_AT[a];\n OutGUniqueAssignmentCreditSystem_AS[a] = \n orig.OutGUniqueAssignmentCreditSystem_AS[a];\n OutGUniqueAssignmentCreditSystem[a] = \n orig.OutGUniqueAssignmentCreditSystem[a];\n OutGUniqueAssignmentPassMarkPercentage_AT[a] = \n orig.OutGUniqueAssignmentPassMarkPercentage_AT[a];\n OutGUniqueAssignmentPassMarkPercentage_AS[a] = \n orig.OutGUniqueAssignmentPassMarkPercentage_AS[a];\n OutGUniqueAssignmentPassMarkPercentage[a] = \n orig.OutGUniqueAssignmentPassMarkPercentage[a];\n OutGUniqueAssignmentClosingDate_AT[a] = \n orig.OutGUniqueAssignmentClosingDate_AT[a];\n OutGUniqueAssignmentClosingDate_AS[a] = \n orig.OutGUniqueAssignmentClosingDate_AS[a];\n OutGUniqueAssignmentClosingDate[a] = orig.OutGUniqueAssignmentClosingDate[\n a];\n OutGUniqueAssignmentCompulsory_AT[a] = \n orig.OutGUniqueAssignmentCompulsory_AT[a];\n OutGUniqueAssignmentCompulsory_AS[a] = \n orig.OutGUniqueAssignmentCompulsory_AS[a];\n OutGUniqueAssignmentCompulsory[a] = orig.OutGUniqueAssignmentCompulsory[a]\n ;\n OutGUniqueAssignmentTsaUniqueNr_AT[a] = \n orig.OutGUniqueAssignmentTsaUniqueNr_AT[a];\n OutGUniqueAssignmentTsaUniqueNr_AS[a] = \n orig.OutGUniqueAssignmentTsaUniqueNr_AS[a];\n OutGUniqueAssignmentTsaUniqueNr[a] = orig.OutGUniqueAssignmentTsaUniqueNr[\n a];\n OutGYearMarkCalculationType_AT[a] = orig.OutGYearMarkCalculationType_AT[a]\n ;\n OutGYearMarkCalculationType_AS[a] = orig.OutGYearMarkCalculationType_AS[a]\n ;\n OutGYearMarkCalculationType[a] = orig.OutGYearMarkCalculationType[a];\n OutGYearMarkCalculationNormalWeight_AT[a] = \n orig.OutGYearMarkCalculationNormalWeight_AT[a];\n OutGYearMarkCalculationNormalWeight_AS[a] = \n orig.OutGYearMarkCalculationNormalWeight_AS[a];\n OutGYearMarkCalculationNormalWeight[a] = \n orig.OutGYearMarkCalculationNormalWeight[a];\n OutGYearMarkCalculationOptionalityGc3_AT[a] = \n orig.OutGYearMarkCalculationOptionalityGc3_AT[a];\n OutGYearMarkCalculationOptionalityGc3_AS[a] = \n orig.OutGYearMarkCalculationOptionalityGc3_AS[a];\n OutGYearMarkCalculationOptionalityGc3[a] = \n orig.OutGYearMarkCalculationOptionalityGc3[a];\n }\n }",
"public AudioMetadata copyOf()\n\t{\n\t\tAudioMetadata copy = new AudioMetadata( mSource, mSourceRecordable );\n\t\t\n\t\tcopy.mPriority = mPriority;\n\t\tcopy.mSelected = mSelected;\n\t\tcopy.mRecordable = mRecordable;\n\t\tcopy.mMetadata.addAll( mMetadata );\n\t\tcopy.mUpdated = mUpdated;\n\t\tcopy.mIdentifier = new String( mIdentifier );\n\t\t\n\t\tmUpdated = false;\n\t\t\n\t\treturn copy;\n\t}",
"private Builder(baconhep.TTau other) {\n super(baconhep.TTau.SCHEMA$);\n if (isValidValue(fields()[0], other.pt)) {\n this.pt = data().deepCopy(fields()[0].schema(), other.pt);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.eta)) {\n this.eta = data().deepCopy(fields()[1].schema(), other.eta);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.phi)) {\n this.phi = data().deepCopy(fields()[2].schema(), other.phi);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.m)) {\n this.m = data().deepCopy(fields()[3].schema(), other.m);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.e)) {\n this.e = data().deepCopy(fields()[4].schema(), other.e);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.q)) {\n this.q = data().deepCopy(fields()[5].schema(), other.q);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.dzLeadChHad)) {\n this.dzLeadChHad = data().deepCopy(fields()[6].schema(), other.dzLeadChHad);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.nSignalChHad)) {\n this.nSignalChHad = data().deepCopy(fields()[7].schema(), other.nSignalChHad);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.nSignalGamma)) {\n this.nSignalGamma = data().deepCopy(fields()[8].schema(), other.nSignalGamma);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.antiEleMVA5)) {\n this.antiEleMVA5 = data().deepCopy(fields()[9].schema(), other.antiEleMVA5);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.antiEleMVA5Cat)) {\n this.antiEleMVA5Cat = data().deepCopy(fields()[10].schema(), other.antiEleMVA5Cat);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.rawMuonRejection)) {\n this.rawMuonRejection = data().deepCopy(fields()[11].schema(), other.rawMuonRejection);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.rawIso3Hits)) {\n this.rawIso3Hits = data().deepCopy(fields()[12].schema(), other.rawIso3Hits);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.rawIsoMVA3oldDMwoLT)) {\n this.rawIsoMVA3oldDMwoLT = data().deepCopy(fields()[13].schema(), other.rawIsoMVA3oldDMwoLT);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.rawIsoMVA3oldDMwLT)) {\n this.rawIsoMVA3oldDMwLT = data().deepCopy(fields()[14].schema(), other.rawIsoMVA3oldDMwLT);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.rawIsoMVA3newDMwoLT)) {\n this.rawIsoMVA3newDMwoLT = data().deepCopy(fields()[15].schema(), other.rawIsoMVA3newDMwoLT);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.rawIsoMVA3newDMwLT)) {\n this.rawIsoMVA3newDMwLT = data().deepCopy(fields()[16].schema(), other.rawIsoMVA3newDMwLT);\n fieldSetFlags()[16] = true;\n }\n if (isValidValue(fields()[17], other.puppiChHadIso)) {\n this.puppiChHadIso = data().deepCopy(fields()[17].schema(), other.puppiChHadIso);\n fieldSetFlags()[17] = true;\n }\n if (isValidValue(fields()[18], other.puppiGammaIso)) {\n this.puppiGammaIso = data().deepCopy(fields()[18].schema(), other.puppiGammaIso);\n fieldSetFlags()[18] = true;\n }\n if (isValidValue(fields()[19], other.puppiNeuHadIso)) {\n this.puppiNeuHadIso = data().deepCopy(fields()[19].schema(), other.puppiNeuHadIso);\n fieldSetFlags()[19] = true;\n }\n if (isValidValue(fields()[20], other.puppiChHadIsoNoLep)) {\n this.puppiChHadIsoNoLep = data().deepCopy(fields()[20].schema(), other.puppiChHadIsoNoLep);\n fieldSetFlags()[20] = true;\n }\n if (isValidValue(fields()[21], other.puppiGammaIsoNoLep)) {\n this.puppiGammaIsoNoLep = data().deepCopy(fields()[21].schema(), other.puppiGammaIsoNoLep);\n fieldSetFlags()[21] = true;\n }\n if (isValidValue(fields()[22], other.puppiNeuHadIsoNoLep)) {\n this.puppiNeuHadIsoNoLep = data().deepCopy(fields()[22].schema(), other.puppiNeuHadIsoNoLep);\n fieldSetFlags()[22] = true;\n }\n if (isValidValue(fields()[23], other.hpsDisc)) {\n this.hpsDisc = data().deepCopy(fields()[23].schema(), other.hpsDisc);\n fieldSetFlags()[23] = true;\n }\n }",
"TRule createTRule();",
"public static void createDocument(String[] attributes) {\n\t\tattributes[2] = attributes[2].toUpperCase();\n\t\tint orgID = OrganizationService.getOrgByUsername(attributes[2]).getId();\n\t\ttry {\n\t\t\t\n\t\t\tDocument docu = DocumentService.getDocumentByTitleAndOrg(attributes[5], orgID);\n\t\t\t//System.out.println(orgID);\n\t\t\tif(docu == null) {\n\t\t\t\t//create document\n\t\t\t\tDocument document = new Document();\n\t\t\t\t//System.out.println(attributes[2]);\n\t\t\t\t\n\t\t\t\tdocument.setOrgID(orgID);\n\t\t\t\tdocument.setTitle(attributes[5]);\n\t\t\t\tdocument.setTerm(attributes[1]);\n\t\t\t\t\n\t\t\t\tDocumentService.addDocument(document);\n\n\t\t\t} \n\t\t\tcreateActivity(attributes, docu.getId(), orgID);\n\t\t} catch(Exception e){\n\t\t\tSystem.out.println(\"Error\");\n\t\t}\n\t\t/*else if(attributes.length >= 20) {\n\t\t\tif (attributes[19].equals(\"In Case of Change\")\n\t\t\t\t || attributes[19].equals(\"Activity Not in GOSM\")) {\n\t\t\t\tcreateActivity(attributes);\n\t\t\t} else {\n\t\t\t\tcreateSubmission(attributes);\n\t\t\t}\n\t\t} else {\n\t\t\tcreateSubmission(attributes);\n\t\t}*/\n\t\t\n\t}",
"Documento createDocumento();",
"public TagTAS(String newurl) {\n\t\tstrbaseUrlTas=newurl;\n\t\ttry {\n\t\t\turlTas = new URL(newurl);\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t\turlValid=false;\n\t\t}\n\t\turlValid=true;\n\t\t\n\t\t\n\t}",
"TD createTD();",
"public static void update(Transcription t) throws IOException, SQLException\r\n {\r\n IndexWriter writer = null;\r\n Analyzer analyser;\r\n Directory directory;\r\n /**@TODO parameterize this location*/\r\n String dest = \"/usr/indexTranscriptions\";\r\n\r\n directory = FSDirectory.getDirectory(dest, true);\r\n analyser = new StandardAnalyzer();\r\n writer = new IndexWriter(directory, analyser, true);\r\n Term j=new Term(\"id\",\"\"+t.getLineID());\r\n writer.deleteDocuments(j);\r\n Document doc=new Document();\r\n Field field;\r\n field = new Field(\"text\", t.getText(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"comment\", t.getComment(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"creator\", \"\" + t.UID, Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"security\", \"\" + \"private\", Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"line\", \"\" + t.getLine(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"page\", \"\" + t.getFolio(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"id\", \"\" + t.getLineID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"manuscript\", \"\" + new Manuscript(t.getFolio()).getID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"projectID\", \"\" + t.getProjectID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n writer.addDocument(doc);\r\n writer.commit();\r\n \twriter.close();\r\n\r\n }",
"public JestResult createNewDocument(GTData data) throws IOException {\n Gson gson = new Gson();\n String json = gson.toJson(data);\n Index request = new Index.Builder(json)\n .index(INDEX_NAME)\n .type(data.getClass().toString())\n .id(data.getObjectID())\n .build();\n\n JestResult result = client.execute(request);\n return result;\n }",
"public Record copy() {\n\t\treturn new Record(video, numOwned, numOut, numRentals);\n\t}",
"public Newsletter copy() throws TorqueException\n {\n return copyInto(new Newsletter());\n }",
"public Record copy() {\n return new Record(\n this.id,\n this.location.copy(),\n this.score\n );\n }",
"public Table shallowCopy() {\n\t\tSubsetTableImpl vt =\n\t\t\tnew SubsetTableImpl(this.getColumns(), this.subset);\n\t\tvt.setLabel(getLabel());\n\t\tvt.setComment(getComment());\n\t\treturn vt;\n\t}",
"public void copy(Station a)\n\t{\n\t\tthis.latitude=a.latitude;\n\t\tthis.longitude=a.longitude;\n\t\tthis.name=a.name;\n\t\tthis.temp1=a.temp1;\n\t\tthis.temp2=a.temp2;\n\t\tthis.temp3=a.temp3;\n\t\tthis.rain1=a.rain1;\n\t\tthis.rain2=a.rain2;\n\t\tthis.rain3=a.rain3;\n\t\tthis.raint=a.raint;\n\t}",
"public static baconhep.TTau.Builder newBuilder() {\n return new baconhep.TTau.Builder();\n }",
"@Override\n\tpublic void createAgence(Agence a) {\n\t\t\n\t}",
"SUT createSUT();",
"@Test\n\tvoid test() {\n\t\tNewDocument newDocument = new NewDocument();\n\t\tnewDocument.createNewDocument(\"\", \"\", \"\", \"\");\n\t\t//test if the new document contents equals the current document contents\n\t\tText2SpeechEditorView w = Text2SpeechEditorView.getInstance();\n\t\t\t\t\n\t\tEncodingStrategy encoding = new AtBashEncoding();\n\t\t\t\t\n\t\tw.getCurrentDocument().tuneEncodingStrategy(encoding);\n\t\t\t\t\n\t\tassertEquals(w.getCurrentDocument().getEncodingStrategy(),encoding);\n\t}",
"private void setCorpus(){\n URL u = Converter.getURL(docName);\n FeatureMap params = Factory.newFeatureMap();\n params.put(\"sourceUrl\", u);\n params.put(\"markupAware\", true);\n params.put(\"preserveOriginalContent\", false);\n params.put(\"collectRepositioningInfo\", false);\n params.put(\"encoding\",\"windows-1252\");\n Print.prln(\"Creating doc for \" + u);\n Document doc = null;\n try {\n corpus = Factory.newCorpus(\"\");\n doc = (Document)\n Factory.createResource(\"gate.corpora.DocumentImpl\", params);\n } catch (ResourceInstantiationException ex) {\n ex.printStackTrace();\n }\n corpus.add(doc);\n annieController.setCorpus(corpus);\n params.clear();\n }",
"Atributo createAtributo();",
"private void createDOCDocument(String from, File file) throws Exception {\n\t\tPOIFSFileSystem fs = new POIFSFileSystem(Thread.currentThread().getClass().getResourceAsStream(\"/poi/template.doc\"));\n\t\tHWPFDocument doc = new HWPFDocument(fs);\n\t\n\t\tRange range = doc.getRange();\n\t\tParagraph par1 = range.getParagraph(0);\n\t\n\t\tCharacterRun run1 = par1.insertBefore(from, new CharacterProperties());\n\t\trun1.setFontSize(11);\n\t\tdoc.write(new FileOutputStream(file));\n\t}",
"public void crear(Tarea t) {\n t.saveIt();\n }",
"public Table copy() {\n\t\tTableImpl vt;\n\n\t\t// Copy failed, maybe objects in a column that are not serializable.\n\t\tColumn[] cols = new Column[this.getNumColumns()];\n\t\tColumn[] oldcols = this.getColumns();\n\t\tfor (int i = 0; i < cols.length; i++) {\n\t\t\tcols[i] = oldcols[i].copy();\n\t\t}\n\t\tint[] newsubset = new int[subset.length];\n\t\tSystem.arraycopy(subset, 0, newsubset, 0, subset.length);\n\t\tvt = new SubsetTableImpl(cols, newsubset);\n\t\tvt.setLabel(this.getLabel());\n\t\tvt.setComment(this.getComment());\n\t\treturn vt;\n\t}",
"QuoteTerm createQuoteTerm();",
"public SceneLabelObjectState copy(){\n\n\t\t//get a copy of the generic data from the supertype\n\t\tSceneDivObjectState genericCopy = super.copy(); \n\n\t\t//then generate a copy of this specific data using it (which is easier then specifying all the fields\n\t\t//Separately like we used too)\n\t\tSceneLabelObjectState newObject = new SceneLabelObjectState(\n\t\t\t\tgenericCopy,\n\t\t\t\tObjectsCurrentText,\t\t\n\t\t\t\tCSSname,\n\t\t\t\tcursorVisible,\n\t\t\t\tTypedText,\n\t\t\t\tCustom_Key_Beep,\n\t\t\t\tCustom_Space_Beep);\n\n\t\treturn newObject;\n\n\n\t}",
"private void generateTts() {\n File mediaStorageDir = new File(\n Environment.getExternalStorageDirectory(),\n resources.getTtsStorageFolder());\n \n if (!mediaStorageDir.exists())\n {\n if (!mediaStorageDir.mkdirs())\n {\n Log.w(TAG, \"Failed to create mediadir\");\n }\n else\n {\n Log.d(TAG, \"Created mediadir\" + mediaStorageDir.getAbsolutePath());\n }\n }\n\n File mediaFile = new File(mediaStorageDir.getPath() + File.separator + resources.getTtsFileName());\n Log.d(TAG, \"TTS path : \" + mediaFile.getAbsolutePath());\n\n HashMap<String, String> hashTts = new HashMap<>();\n hashTts.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, \"ttsToFile\");\n t1.setSpeechRate(Float.parseFloat(resources.getTtsSpeechRate()));\n t1.synthesizeToFile(message, hashTts, mediaFile.getAbsolutePath());\n\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpe addNewTpe()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpe target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpe)get_store().add_element_user(TPE$32);\r\n return target;\r\n }\r\n }",
"public static void atualizar(Tarefa tar) {\n }",
"public void copy() {\n\n\t}",
"public C1394a m9706a() {\r\n return new C1394a();\r\n }",
"public CurrentDocumentCopyCommand() {\n\tsuper(\"Save current document as new copy.\");\n }",
"@Override\n\tpublic void onCreateTas(Tas tas) {\n\t\t\n\t}",
"public static void copyConstructor(){\n\t}",
"public createAresta_result(createAresta_result other) {\n __isset_bitfield = other.__isset_bitfield;\n this.success = other.success;\n if (other.isSetKau()) {\n this.kau = new KeyAlreadyUsed(other.kau);\n }\n if (other.isSetRiu()) {\n this.riu = new ResourceInUse(other.riu);\n }\n }",
"public MiAlmacenN(int tamaño) {\n\t\tproductos = new Producto[tamaño];\n\t\tthis.tamaño = tamaño;\n\t\tthis.inserted = 0;\n\t\tthis.extracted = 0;\n\t\tthis.insertIn = 0;\n\t\tthis.extractFrom = 0;\n\t}",
"@Override\n public Document createState(Payload payload) {\n // TODO: Use a pool of Documents so that they can be reused\n // TODO: Consider moving this to super class\n return new org.apache.lucene.document.Document();\n }",
"public static AtomType getCopy(AtomType at) {\n\t\tAtomType copyat = behavFactory.createAtomType();\n\t\tcopyat = (AtomType) EcoreUtil.copy(at);\t\n\t\treturn copyat;\n\t}",
"public abstract WalkerDocument newDocument(DocumentTag adapter, IOptions options);",
"public static com.alibaba.dts.formats.avro.Timestamp.Builder newBuilder(com.alibaba.dts.formats.avro.Timestamp other) {\n return new com.alibaba.dts.formats.avro.Timestamp.Builder(other);\n }",
"public void doNew() {\n\n if (!canChangeDocuments()) {\n return;\n }\n \n setDocument(fApplication.createNewDocument());\n }",
"public CopyBuilder copy() {\n return new CopyBuilder(this);\n }",
"public TravelAuthorizationDocument() {\n super();\n }",
"@Test\n\tpublic void test_TCM__Object_clone() {\n TCM__Object_clone__default();\n\n TCM__Object_clone__attributeType(Attribute.UNDECLARED_TYPE);\n TCM__Object_clone__attributeType(Attribute.CDATA_TYPE);\n TCM__Object_clone__attributeType(Attribute.ID_TYPE);\n TCM__Object_clone__attributeType(Attribute.IDREF_TYPE);\n TCM__Object_clone__attributeType(Attribute.IDREFS_TYPE);\n TCM__Object_clone__attributeType(Attribute.ENTITY_TYPE);\n TCM__Object_clone__attributeType(Attribute.ENTITIES_TYPE);\n TCM__Object_clone__attributeType(Attribute.NMTOKEN_TYPE);\n TCM__Object_clone__attributeType(Attribute.NMTOKENS_TYPE);\n TCM__Object_clone__attributeType(Attribute.NOTATION_TYPE);\n TCM__Object_clone__attributeType(Attribute.ENUMERATED_TYPE);\n\n\n TCM__Object_clone__Namespace_default();\n\n TCM__Object_clone__Namespace_attributeType(Attribute.UNDECLARED_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.CDATA_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.ID_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.IDREF_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.IDREFS_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.ENTITY_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.ENTITIES_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.NMTOKEN_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.NMTOKENS_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.NOTATION_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.ENUMERATED_TYPE);\n\t}",
"protected Term createTermFrom(String tag) {\n\t\tTerm tmp = terms.getOrDefault(tag, new Term(tag, this, terms.size()));\n\t\tterms.put(tag, tmp);\n\t\t// termCounts.put(tmp, termCounts.getOrDefault(tmp,0)+1);\n\t\ttermsInCorpus += 1;\n\t\treturn tmp;\n\t}",
"void create(T t);",
"public Object clone() {\n \t\treturn new Term(this);\n \t}",
"public TreasureVersion(Name alias) {\n this(alias, TREASURE_VERSION);\n }",
"@Override\n public DocumentServiceEntry createDocument(String title, String contents) throws DocumentServiceException {\n DocsService svc = getDocsService();\n DocumentEntry newDocument = new DocumentEntry();\n newDocument.setTitle(new PlainTextConstruct(title));\n DocumentEntry entry;\n try {\n MediaByteArraySource source = new MediaByteArraySource(contents.getBytes(\"UTF8\"), \"text/plain\");\n newDocument.setMediaSource(source);\n entry = svc.insert(new URL(DOCS_SCOPE + \"default/private/full\"), newDocument);\n } catch (Exception e) {\n e.printStackTrace();\n throw new DocumentServiceException(e.getMessage());\n }\n return getDocumentReference(entry);\n }",
"private Document createMapping() {\n return getIndexOperations().createMapping();\n }",
"public WalkerDocument newDocument() { return newDocument((IOptions)null); }",
"private void startDoc(Attributes attributes) {\n\n\t\t// Start storing the document in the content store\n\t\tstartCaptureContent();\n\n\t\t// Create a new Lucene document\n\t\tcurrentLuceneDoc = new Document();\n\t\tcurrentLuceneDoc.add(new Field(\"fromInputFile\", fileName, Store.YES, Index.NOT_ANALYZED,\n\t\t\t\tTermVector.NO));\n\n\t\t// Store attribute values from the <doc> tag as fields\n\t\tfor (int i = 0; i < attributes.getLength(); i++) {\n\t\t\tString attName = attributes.getLocalName(i);\n\t\t\tString value = attributes.getValue(i);\n\n\t\t\tcurrentLuceneDoc.add(new Field(attName, value, Store.YES, Index.ANALYZED_NO_NORMS,\n\t\t\t\t\tTermVector.WITH_POSITIONS_OFFSETS));\n\t\t}\n\n\t\t// Report indexing progress\n\t\treportDocumentStarted(attributes);\n\t}",
"protected GuiTestObject terraced() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"terraced\"));\n\t}"
]
| [
"0.63808787",
"0.5811746",
"0.5727116",
"0.5401916",
"0.5267295",
"0.5218178",
"0.515465",
"0.51397634",
"0.5078293",
"0.5070616",
"0.5045736",
"0.504509",
"0.50447094",
"0.5040757",
"0.5037338",
"0.5015798",
"0.50104225",
"0.4990079",
"0.4935441",
"0.49151713",
"0.4913128",
"0.48890948",
"0.48686785",
"0.48562092",
"0.48514536",
"0.48499554",
"0.4840908",
"0.48240197",
"0.4808789",
"0.4807435",
"0.4796538",
"0.47924706",
"0.47847754",
"0.47728586",
"0.47691873",
"0.4768186",
"0.47649643",
"0.4759528",
"0.47580132",
"0.47356114",
"0.47161618",
"0.47003785",
"0.4676259",
"0.4668648",
"0.46605948",
"0.4647362",
"0.46424082",
"0.46417585",
"0.4638569",
"0.46326065",
"0.46250752",
"0.4624666",
"0.46132973",
"0.4606815",
"0.46062815",
"0.45920533",
"0.45886633",
"0.45877445",
"0.4582087",
"0.45704013",
"0.45703807",
"0.45681602",
"0.45555288",
"0.45526442",
"0.4546689",
"0.4545434",
"0.45451346",
"0.4543679",
"0.45327133",
"0.45215032",
"0.45206",
"0.45198438",
"0.45192656",
"0.45103833",
"0.45095477",
"0.45032528",
"0.45018572",
"0.4494698",
"0.4490337",
"0.44895318",
"0.44886744",
"0.44886506",
"0.44842276",
"0.4483683",
"0.44836706",
"0.44735098",
"0.44634318",
"0.44620517",
"0.44589344",
"0.44553015",
"0.4451088",
"0.44484064",
"0.44321182",
"0.44317895",
"0.4425455",
"0.44235295",
"0.4421119",
"0.44198757",
"0.44194135",
"0.44169003"
]
| 0.65209836 | 0 |
cleans up the advance and accounting lines associated with it those should be blank for the copy | @Override
public void toCopy() throws WorkflowException {
super.toCopy();
travelAdvancesForTrip = null;
setTravelDocumentIdentifier(null);
if (!(this instanceof TravelAuthorizationCloseDocument)) { // TAC's don't have advances
initiateAdvancePaymentAndLines();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeLines() {\n int compLines = 0;\n int cont2 = 0;\n\n for(cont2=20; cont2>0; cont2--) {\n while(completeLines[compLines] == cont2) {\n cont2--; compLines++;\n }\n this.copyLine(cont2, cont2+compLines);\n }\n\n lines += compLines;\n score += 10*(level+1)*compLines;\n level = lines/20;\n if(level>9) level=9;\n\n for(cont2=1; cont2<compLines+1; cont2++) copyLine(0,cont2);\n for(cont2=0; cont2<5; cont2++) completeLines[cont2] = -1;\n }",
"public void clear(){\n\t\tfor (int i=1; i<linesAndStores.length; i++){\n\t\t\tfor(int j = 0; j<32; j++){\n\t\t\t\tsetWord(i, new Word(0));\n\t\t\t\tincrement();\n\t\t\t}\n\t\t}\n\t}",
"public void removeAllLines()\n {\n // get list of all ride lines and remove each\n removeObjects(getObjects(RideLines.class)); //remove RideLines\n removeObjects(getObjects(AddButton.class));//remove AddButton\n removeObjects(getObjects(ReleaseButton.class));//remove ReleaseButton\n removeObjects(getObjects(Person.class));//remove Person\n currentRide=0; // reset actual rides at zero\n }",
"public void clear()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\tlines.clear();\r\n\t\t}\r\n\t}",
"public void clear() {\r\n iFormatter = null;\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[15]++;\r\n iElementPairs.clear();\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[16]++;\r\n }",
"public void cleanAll() {\r\n\t\ttos.clear();\r\n\t\tbcs.clear();\r\n\t\tccs.clear();\r\n\t\tattachments.clear();\r\n\t\tinLines.clear();\r\n\t\tsubject= null;\r\n\t\ttext= null;\r\n\t\tfrom= null;\r\n\t}",
"public void clear() {\r\n this.line.clear();\r\n }",
"protected void clear()\n\t{\n\t\tsuper.clear();\n\t\tindentRight();\n\t}",
"private void deAllocate() {\n if (getC_Order_ID() != 0) {\n setC_Order_ID(0);\n }\n //\tif (getC_Invoice_ID() == 0)\n //\t\treturn;\n //\tDe-Allocate all\n MAllocationHdr[] allocations = MAllocationHdr.getOfPayment(getCtx(),\n getC_Payment_ID(), get_TrxName());\n log.fine(\"#\" + allocations.length);\n for (int i = 0; i < allocations.length; i++) {\n allocations[i].set_TrxName(get_TrxName());\n allocations[i].setDocAction(DocAction.ACTION_Reverse_Correct);\n allocations[i].processIt(DocAction.ACTION_Reverse_Correct);\n allocations[i].save();\n }\n\n // \tUnlink (in case allocation did not get it)\n if (getC_Invoice_ID() != 0) {\n //\tInvoice\n String sql = \"UPDATE C_Invoice \"\n + \"SET C_Payment_ID = NULL, IsPaid='N' \"\n + \"WHERE C_Invoice_ID=\" + getC_Invoice_ID()\n + \" AND C_Payment_ID=\" + getC_Payment_ID();\n int no = DB.executeUpdate(sql, get_TrxName());\n if (no != 0) {\n log.fine(\"Unlink Invoice #\" + no);\n }\n //\tOrder\n sql = \"UPDATE C_Order o \"\n + \"SET C_Payment_ID = NULL \"\n + \"WHERE EXISTS (SELECT * FROM C_Invoice i \"\n + \"WHERE o.C_Order_ID=i.C_Order_ID AND i.C_Invoice_ID=\" + getC_Invoice_ID() + \")\"\n + \" AND C_Payment_ID=\" + getC_Payment_ID();\n no = DB.executeUpdate(sql, get_TrxName());\n if (no != 0) {\n log.fine(\"Unlink Order #\" + no);\n }\n }\n //\n setC_Invoice_ID(0);\n setIsAllocated(false);\n }",
"private void clearDelete() {\n if (patternCase_ == 5) {\n patternCase_ = 0;\n pattern_ = null;\n }\n }",
"public void method_1895() {\n field_1241.clear();\n field_1242.clear();\n }",
"public void clear(){\r\n\t\tbeginMarker.next = endMarker;\r\n\t\tendMarker.prev = beginMarker;\r\n\t\tnumAdded=0;\r\n\t\tsize=0;\r\n \tmodCount++;\r\n\t}",
"private void resetArraysAndHeader()\r\n\t{\r\n\t\tmainHeader = \"\";\r\n\t\tenergyVals = \"\";\r\n\t\ttoBeOutputBranches.clear();\r\n\t\tassociatedR.clear();\r\n\t\tassociatedP.clear();\r\n\t\tassociatedQ.clear();\r\n\t\ttriangularP.clear();\r\n\t\ttriangularQ.clear();\r\n\t\ttriangularR.clear();\r\n\t\tinputBranchWithJ.clear();\r\n\t\tupperEnergyValuesWithJ.clear();\r\n\r\n\t\tif (energiesForCurrentKOppParity != null)\r\n\t\t\tenergiesForCurrentKOppParity.clear();\r\n\t}",
"private void clean() {\n //use iterator\n Iterator<Long> it = nodes.keySet().iterator();\n while (it.hasNext()) {\n Long node = it.next();\n if (nodes.get(node).adjs.isEmpty()) {\n it.remove();\n }\n }\n }",
"private void clean() {\n // TODO: Your code here.\n for (Long id : vertices()) {\n if (adj.get(id).size() == 1) {\n adj.remove(id);\n }\n }\n }",
"public synchronized void resetLineItems() {\n lineItems = null;\n }",
"void oldconsume() {\n\t\tfor (;;) {\n\t\t\tif (printoldline > oldinfo.maxLine)\n\t\t\t\tbreak; /* end of file */\n\t\t\tprintnewline = oldinfo.other[printoldline];\n\t\t\tif (printnewline < 0)\n\t\t\t\tshowdelete();\n\t\t\telse if (blocklen[printoldline] < 0)\n\t\t\t\tskipold();\n\t\t\telse showmove();\n\t\t}\n\t}",
"public void reset() {\n while (getNumTotal() > 0) {\n this.removeNuclei();\n }\n lastModified = Calendar.getInstance().getTimeInMillis(); // record time\n }",
"private static void resetGroupLineArrays() {\n // Reset the arrays to make sure that we have uptodate information in them\n itemsArray = null;\n itemsArrayForAlterations = null;\n itemsArrayForOpenDeposit = null;\n }",
"@Override\r\n public void resetAccount() {\r\n super.resetAccount();\r\n this.getNewSourceLine().setAmount(null);\r\n this.getNewSourceLine().setAccountLinePercent(new BigDecimal(0));\r\n }",
"public void deleteCopiedPendingLedgerEntries();",
"public void clearAreaReset() {\n for(int x = 0; x < buildSize; x++) {\n for(int y = 4; y < 7; y++) {\n for(int z = 0; z < buildSize; z++) {\n myIal.removeBlock(x, y, z);\n }\n }\n }\n\n myIal.locx = 0; myIal.locy = 0; myIal.locz = 0;\n my2Ial.locx = 0; my2Ial.locy = 0; my2Ial.locz = 0;\n }",
"protected void clearConditions()\n\t{\n\t\tint i ;\n\n\t\tfor (i = 0; i < _searchKeyList.size(); i++)\n\t\t{\n\t\t\tKey ky = (Key)_searchKeyList.get(i) ;\n\t\t\tif (ky.getTableValue() != null)\n\t\t\t\tbreak ;\n\t\t\t//#CM708981\n\t\t\t// Clear the order of sorting beginning\n\t\t\tky.setTableOrder(0) ;\n\t\t\tky.setTableDesc(true) ;\n\t\t\tsetSortKey(ky) ;\n\t\t\t//#CM708982\n\t\t\t// Clear the order of group beginning\n\t\t\tky.setTableGroup(0) ;\n\t\t\tsetGroupKey(ky) ;\n\t\t\t//#CM708983\n\t\t\t// Clear Acquisition Condition\n\t\t\tky.setTableCollect(\"NULL\") ;\n\t\t\tsetCollectKey(ky) ;\n\t\t}\n\n\t\tfor (int j = i; j < _searchKeyList.size();)\n\t\t{\n\t\t\t_searchKeyList.removeElementAt(j) ;\n\t\t}\n\t\t\n\t}",
"private void ClearAll() {\r\n\r\n Time = Calendar.getInstance();\r\n tx = \"\";\r\n customerBean = null;\r\n edtCustPhoneNo.setText(\"\");\r\n autoCompleteTextViewSearchItemBarcode.setText(\"\");\r\n isReprint = false;\r\n //txtSearchItemBarcode.setText(\"\");\r\n reprintBillingMode=0;\r\n tvSubUdfValue.setText(\"1\");\r\n tvSubTotal.setText(\"0.00\");\r\n tvCGSTValue.setText(\"0.00\");\r\n tvDiscountAmount.setText(\"0.00\");\r\n tvDiscountPercentage.setText(\"0.00\");\r\n tvSGSTValue.setText(\"0.00\");\r\n tvIGSTValue.setText(\"0.00\");\r\n tvcessValue.setText(\"0.00\");\r\n tvBillAmount.setText(\"0.00\");\r\n chk_interstate.setChecked(false);\r\n spnr_pos.setSelection(0);\r\n chk_interstate.setEnabled(true);\r\n spnr_pos.setEnabled(false);\r\n aTViewSearchItem.setText(\"\");\r\n aTViewSearchMenuCode.setText(\"\");\r\n CustomerDetailsFilled = false;\r\n tblOrderItems.removeAllViews();\r\n edtCustName.setText(\"\");\r\n edtCustId.setText(\"0\");\r\n\r\n edtCustAddress.setText(\"\");\r\n etCustGSTIN.setText(\"\");\r\n\r\n\r\n tvBillNumber.setText(String.valueOf(db.getNewBillNumber()));\r\n setInvoiceDate();\r\n fTotalDiscount =0;\r\n fRoundOfValue =0;\r\n AMOUNTPRINTINNEXTLINE =0;\r\n\r\n fCashPayment = 0;\r\n fCardPayment = 0;\r\n fCouponPayment = 0;\r\n fPaidTotalPayment = 0;\r\n dblPettyCashPayment = 0;\r\n fChangePayment = 0;\r\n fWalletPayment = 0;\r\n dFinalBillValue = 0;\r\n\r\n if(jBillingMode == 3){\r\n etOnlineOrderNo.setText(\"\");\r\n }\r\n\r\n }",
"public void reset() {\n\tthis.contents = \"\";\n\tthis.isLegalMove = false;\n }",
"private void cleanup() {\n mCategory = null;\n mAccount = null;\n mCal = null;\n\n /* Reset value */\n etAmount.setText(\"\");\n tvCategory.setText(\"\");\n tvPeople.setText(\"\");\n tvDescription.setText(\"\");\n tvAccount.setText(\"\");\n tvEvent.setText(\"\");\n }",
"public void clean() {\n\t\tfor(int i = 0; i <= 20; i++) {\n\t\t\tSystem.out.println(\" \");\n\t\t}\n\t}",
"public void resetClearedLines() {\n this.myClearedLines = 0;\n this.myLineCleared.setText(Integer.toString(this.myClearedLines));\n }",
"private void reset() {\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\treactantAmt[i] = 0;\n\t\t\tproductAmt[i] = 0;\n\t\t\treactantMM[i] = 0;\n\t\t\tproductMM[i] = 0;\n\t\t\treactantMoles[i] = 0;\n\t\t\tproductMoles[i] = 0;\n\t\t\tfinalMolReactant[i] = 0;\n\t\t\tfinalMolProduct[i] = 0;\n\t\t\tremove();\n\t\t}\n\t}",
"private void resetAll() // resetAll method start\n\t{\n\t\theader.reset();\n\t\tdebit.reset();\n\t\tcredit.reset();\n\t}",
"public void CleanScr() {\n\t\tint a = 0;\n\t\twhile (a < 16) {\n\t\t\tR0[a].setSelected(false);\n\t\t\tR1[a].setSelected(false);\n\t\t\tR2[a].setSelected(false);\n\t\t\tR3[a].setSelected(false);\n\t\t\tX1[a].setSelected(false);\n\t\t\tX2[a].setSelected(false);\n\t\t\tX3[a].setSelected(false);\n\t\t\tMAR[a].setSelected(false);\n\t\t\tMBR[a].setSelected(false);\n\t\t\tIR[a].setSelected(false);\n//\t\t\tMem[a].setSelected(false);\n\t\t\ta++;\n\t\t}\n\t\tint b = 0;\n\t\twhile (b < 12) {\n\t\t\tPC[b].setSelected(false);\n\t\t\tb++;\n\t\t}\n\t}",
"void retainOutlineAndBoundaryGrid() {\n\t\tfor (final PNode child : getChildrenAsPNodeArray()) {\n\t\t\tif (child != selectedThumbOutline && child != yellowSIcolumnOutline && child != boundary) {\n\t\t\t\tremoveChild(child);\n\t\t\t}\n\t\t}\n\t\tcreateOrDeleteBoundary();\n\t}",
"public void eraseData() {\n\t\tname = \"\";\n\t\tprice = 0.0;\n\t\tquantity = 0;\n\t}",
"private void startCleaning(String fileName) throws IOException {\n\t\tBufferedReader sc = new BufferedReader(new FileReader(fileName));\r\n\t\tFileWriter fs= new FileWriter(fileName+\"clean.txt\");\r\n\t\tBufferedWriter out = new BufferedWriter(fs);\r\n\t\t\r\n\t\tString line;\r\n\t\tint linenum=0;\r\n\t\twhile(true) {\r\n\t\t\t//System.out.println(\"Line:\" + linenum);\r\n\t\t\tline=sc.readLine();\r\n\t\t\tif(line == null) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif(this.isValidLine(line)) {\r\n\t\t\t\tout.write(line+'\\n'+'\\r');\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t//\tSystem.out.println(\"Found invalid line\" + line);\r\n\t\t\t}\r\n\t\t\tlinenum++;\r\n\t\t}\r\n\t\tout.close();\r\n\t}",
"private void clearRent(){\r\n\r\n fieldRent_Advance.setText(\"\");\r\n fieldRent_Customer.setText(\"\");\r\n fieldRent_hireDate.setText(\"\");\r\n fieldRent_Manufacturer.setText(\"\");\r\n fieldRent_dailyRate.setText(\"\");\r\n fieldRent_returnDate.setText(\"\");\r\n fieldRent_hardwareDeviceNo.setText(\"\");\r\n fieldRent_hardwareDeviceNoToReturn.setText(\"\");\r\n fieldRent_noOfDays.setText(\"\");\r\n fieldRent_Description.setText(\"\");\r\n\r\n }",
"private void cleanAfterMatch() {\n\t\t// clean all consumables from all calculators\n\t\tfor (AggregationCalculator calc : calculators.values()) {\n\t\t\tcalc.cleanConsumables();\n\t\t}\n\t}",
"private void clearHocSinh() {\n\t\ttxtMa.setText(\"\");\n\t\ttxtTen.setText(\"\");\n\t\ttxtTuoi.setText(\"\");\n\t\ttxtSdt.setText(\"\");\n\t\ttxtDiaChi.setText(\"\");\n\t\ttxtEmail.setText(\"\");\n\t}",
"public void cleanSalts() {\n this.id = this.id.replaceAll(\"\\n\",\"\");\n this.local = this.local.replaceAll(\"\\n\",\"\");\n this.visitor = this.visitor.replaceAll(\"\\n\",\"\");\n this.team1Id = this.team1Id.replaceAll(\"\\n\",\"\");\n this.team2Id = this.team2Id.replaceAll(\"\\n\",\"\");\n this.local_goals = this.local_goals.replaceAll(\"\\n\",\"\");\n this.visitor_goals = this.visitor_goals.replaceAll(\"\\n\", \"\");\n this.winner = this.winner.replaceAll(\"\\n\",\"\");\n }",
"private void getDetailedDebitAgingOLDEST(List<DebtorsDetailedAgingHelper> agingList, Date atDate, EMCUserData userData) {\n getDetailedDebitAgingNONE(agingList, atDate, userData);\n\n //Aging lines to remove\n //List<DebtorsDetailedAgingLineDS> toRemove = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n //All credits\n List<DebtorsDetailedAgingLineDS> credits = new ArrayList<DebtorsDetailedAgingLineDS>();\n //All debits\n List<DebtorsDetailedAgingLineDS> debits = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n for (DebtorsDetailedAgingLineDS agingLine : agingHelper.getAgingLines()) {\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) < 0) {\n //Credit\n credits.add(agingLine);\n } else {\n //Debit\n debits.add(agingLine);\n }\n }\n }\n\n//Start allocating from oldest credits.\ncredit: for (DebtorsDetailedAgingLineDS credit : credits) {\n if (credit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n//Loop through debits\ndebit: for (DebtorsDetailedAgingLineDS debit : debits) {\n if (debit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n //Get difference between debit and credit balances.\n BigDecimal difference = debit.getBalance().add(credit.getBalance());\n if (difference.compareTo(BigDecimal.ZERO) > 0) {\n //Debit greater than credit. Allocate credit in full.\n debit.setBalance(debit.getBalance().add(credit.getBalance()));\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n } else if (difference.compareTo(BigDecimal.ZERO) < 0) {\n //Credit greater than debit.\n credit.setBalance(credit.getBalance().add(debit.getBalance()));\n debit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(debit);\n\n //Debit consumed\n continue;\n } else {\n //Debit == credit. Consume both.\n debit.setBalance(BigDecimal.ZERO);\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n //toRemove.add(debit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n }\n } else {\n //Credit, continue to next line.\n continue;\n }\n }\n } else {\n //Debit, continue to next line\n continue;\n }\n }\n\n //Try to remove all records from all bins.\n //TODO: Is there a more efficient way?\n //for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n // agingHelper.getAgingLines().removeAll(toRemove);\n //}\n }",
"public void cleanUp()\r\n {\r\n m_aaiNumTris = null;\r\n m_aafRelativeLengths = null;\r\n m_aafMaxDist = null;;\r\n m_aakCurvePos = null;\r\n m_aakTangent = null;\r\n }",
"public void clear()\n {\n rst = \"\";\n indent = 0;\n lastLineLength = 0;\n rawInlineHtmlEnabled = false;\n }",
"private void clean() {\n Iterable<Long> v = vertices();\n Iterator<Long> iter = v.iterator();\n while (iter.hasNext()) {\n Long n = iter.next();\n if (world.get(n).adj.size() == 0) {\n iter.remove();\n }\n }\n }",
"private void clearFields() {\r\n\t\tmCardNoValue1.setText(\"\");\r\n\t\tmCardNoValue1.setHint(\"-\");\r\n\t\tmCardNoValue2.setText(\"\");\r\n\t\tmCardNoValue2.setHint(\"-\");\r\n\t\tmCardNoValue3.setText(\"\");\r\n\t\tmCardNoValue3.setHint(\"-\");\r\n\t\tmCardNoValue4.setText(\"\");\r\n\t\tmCardNoValue4.setHint(\"-\");\r\n\t\tmZipCodeValue.setText(\"\");\r\n\t\tmZipCodeValue.setHint(\"Zipcode\");\r\n\t\tmCVVNoValue.setText(\"\");\r\n\t\tmCVVNoValue.setHint(\"CVV\");\r\n\t}",
"public void resetLines() {\r\n\t\tsetLines(new HashMap<String, ArrayList<Integer>>());\r\n\t}",
"protected void resetNextAdvanceLineNumber() {\n this.nextAdvanceLineNumber = new Integer(1);\n }",
"public void reset()\n {\n OutUnqassGrp_MA = 0;\n for(int a = 0; a < 100; a++)\n {\n OutUnqassGrp_AC[a] = ' ';\n OutGUniqueAssignmentYear_AT[a] = null;\n OutGUniqueAssignmentYear_AS[a] = ' ';\n OutGUniqueAssignmentYear[a] = 0;\n OutGUniqueAssignmentPeriod_AT[a] = null;\n OutGUniqueAssignmentPeriod_AS[a] = ' ';\n OutGUniqueAssignmentPeriod[a] = 0;\n OutGUniqueAssignmentUniqueNr_AT[a] = null;\n OutGUniqueAssignmentUniqueNr_AS[a] = ' ';\n OutGUniqueAssignmentUniqueNr[a] = 0;\n OutGUniqueAssignmentMkStudyUnitCode_AT[a] = null;\n OutGUniqueAssignmentMkStudyUnitCode_AS[a] = ' ';\n OutGUniqueAssignmentMkStudyUnitCode[a] = \" \";\n OutGUniqueAssignmentAssignmentNr_AT[a] = null;\n OutGUniqueAssignmentAssignmentNr_AS[a] = ' ';\n OutGUniqueAssignmentAssignmentNr[a] = 0;\n OutGUniqueAssignmentNrOfQuestions_AT[a] = null;\n OutGUniqueAssignmentNrOfQuestions_AS[a] = ' ';\n OutGUniqueAssignmentNrOfQuestions[a] = 0;\n OutGUniqueAssignmentType_AT[a] = null;\n OutGUniqueAssignmentType_AS[a] = ' ';\n OutGUniqueAssignmentType[a] = \" \";\n OutGUniqueAssignmentNegativeMarkFactor_AT[a] = null;\n OutGUniqueAssignmentNegativeMarkFactor_AS[a] = ' ';\n OutGUniqueAssignmentNegativeMarkFactor[a] = 0;\n OutGUniqueAssignmentMaxCredits_AT[a] = null;\n OutGUniqueAssignmentMaxCredits_AS[a] = ' ';\n OutGUniqueAssignmentMaxCredits[a] = 0;\n OutGUniqueAssignmentCreditSystem_AT[a] = null;\n OutGUniqueAssignmentCreditSystem_AS[a] = ' ';\n OutGUniqueAssignmentCreditSystem[a] = 0;\n OutGUniqueAssignmentPassMarkPercentage_AT[a] = null;\n OutGUniqueAssignmentPassMarkPercentage_AS[a] = ' ';\n OutGUniqueAssignmentPassMarkPercentage[a] = 0;\n OutGUniqueAssignmentClosingDate_AT[a] = null;\n OutGUniqueAssignmentClosingDate_AS[a] = ' ';\n OutGUniqueAssignmentClosingDate[a] = 00000000;\n OutGUniqueAssignmentCompulsory_AT[a] = null;\n OutGUniqueAssignmentCompulsory_AS[a] = ' ';\n OutGUniqueAssignmentCompulsory[a] = \" \";\n OutGUniqueAssignmentTsaUniqueNr_AT[a] = null;\n OutGUniqueAssignmentTsaUniqueNr_AS[a] = ' ';\n OutGUniqueAssignmentTsaUniqueNr[a] = 0;\n OutGYearMarkCalculationType_AT[a] = null;\n OutGYearMarkCalculationType_AS[a] = ' ';\n OutGYearMarkCalculationType[a] = \" \";\n OutGYearMarkCalculationNormalWeight_AT[a] = null;\n OutGYearMarkCalculationNormalWeight_AS[a] = ' ';\n OutGYearMarkCalculationNormalWeight[a] = 0.0;\n OutGYearMarkCalculationOptionalityGc3_AT[a] = null;\n OutGYearMarkCalculationOptionalityGc3_AS[a] = ' ';\n OutGYearMarkCalculationOptionalityGc3[a] = \"\";\n }\n }",
"public static void clearReceipt()\r\n\t{\r\n\t\tlistModel.removeAllElements();\r\n\t\tsubtotalAmount = 0;\r\n\t\ttaxAmount = 0;\r\n\t\ttotalAmount = 0;\r\n\t}",
"public void clear() {\n\t\tdoily.lines.clear();\n\t\tclearRedoStack();\n\t\tredraw();\n\t}",
"private void remove() {\n \t\tfor(int i = 0; i < 5; i++) {\n \t\t\trMol[i].setText(\"\");\n \t\t\trGrams[i].setText(\"\");\n \t\t\tpMol[i].setText(\"\");\n \t\t\tpGrams[i].setText(\"\");\n \t\t}\n }",
"private void cleanUpConsumedEsnRecords() {\n\t\tesnInfoRepository.findAllByIsConsumed(true).removeIf(item -> (Days\n\t\t\t\t.daysBetween(new DateTime(item.getDateImported()), new DateTime()).isGreaterThan(Days.days(30))));\n\t}",
"public void cleanUp(){\n\t\t//offset(-1*bounds.left, -1*bounds.top);\n\t}",
"public void discardAll()\n\t{\n\t\thand = new Card[12];\n\t\tnumCards = 0;\n\t}",
"public void suppressionRdV_all() {\n //on vide l'agenda de ses elements\n for (RdV elem_agenda : this.agd) {\n this.getAgenda().remove(elem_agenda);\n }\n //on reinitialise a null l'objet agenda\n //this.agd = null;\n }",
"public void cleanProposition();",
"private void clearCreditCardFields() {\r\n\t\tmCardNoValue1.setText(\"\");\r\n\t\tmCardNoValue1.setHint(\"-\");\r\n\t\tmCardNoValue2.setText(\"\");\r\n\t\tmCardNoValue2.setHint(\"-\");\r\n\t\tmCardNoValue3.setText(\"\");\r\n\t\tmCardNoValue3.setHint(\"-\");\r\n\t\tmCardNoValue4.setText(\"\");\r\n\t\tmCardNoValue4.setHint(\"-\");\r\n\t\tmCardNoValue1.requestFocus();\r\n\t}",
"public void clear() {\n\t\tList<CartLine> cartLines = getCartLineList();\n\t\tcartLines.clear();\n\t}",
"protected void reset() {\n\t\tpush();\n\n\t\t// Clearen, en niet opnieuw aanmaken, om referenties elders\n\t\t// in het programma niet corrupt te maken !\n\t\tcurves.clear();\n\t\tselectedCurves.clear();\n\t\thooveredCurves.clear();\n\t\tselectedPoints.clear();\n\t\thooveredPoints.clear();\n\t\tselectionTool.clear();\n\t}",
"private void reset()\n {\n // reset everything to zero\n currentTime = 0;\n closingTime = 0;\n totalWaitingTime = 0;\n numCars = 0;\n numOverTen = 0;\n arrayIndex = 0;\n printedAverageWaitTime = 0;\n double arraySize = ((CarWashApplication.DAY_LENGTH) * ((1.0) / CarWashApplication.CHANCE_INT)) + ((CarWashApplication.DAY_LENGTH) * ((1.0) / CarWashApplication.CHANCE_INT)) * ((1.0) / CarWashApplication.CHANCE_INT);\n waitTimeArray = new int[(int) arraySize];\n bay.reset();\n\n // remove all waiting cars\n while ( ! waitingLine.isEmpty() )\n {\n Object o = waitingLine.dequeue();\n }\n }",
"private void reallocateUnConsumedEsnRecords() {\n\t\tesnInfoRepository\n\t\t\t\t.findAllByIsConsumed(false).stream().filter(item -> (Days\n\t\t\t\t\t\t.daysBetween(new DateTime(item.getDateClaimed()), new DateTime()).isGreaterThan(Days.days(2))))\n\t\t\t\t.forEach(item -> {\n\t\t\t\t\titem.setUserClaimed(null);\n\t\t\t\t\titem.setDateClaimed(null);\n\t\t\t\t});\n\t}",
"private void clearDuplicates(){\n\t\tLinkedHashSet<String> duplicateFree;\n\t\tList<String> RawStrings=new ArrayList<String>();\n\t\tfor (String[] rCode:mutatedCodes){\n\t\t\tRawStrings.add(rCode[0]+\"~\"+rCode[1]+\"~\"+rCode[2]+\"~\"+rCode[3]+\"~\"+rCode[4]+\"~\"+rCode[5]+\"~\"+rCode[6]+\"~\"+rCode[7]+\"~\"+rCode[8]+\"~\"+rCode[9]+\"~\"+rCode[10]+\"~\"+rCode[11]+\"~\"+rCode[12]+\"~\"+rCode[13]+\"~\"+rCode[14]+\"~\"+rCode[15]+\"~\"+rCode[16]+\"~\"+rCode[17]+\"~\"+rCode[18]+\"~\"+rCode[19]);\n\t\t}\n\t\tduplicateFree=new LinkedHashSet<String>(RawStrings);\n\t\tSystem.out.println(\"Number of Duplicates cleared:\"+(RawStrings.size()-duplicateFree.size()));\n\t\tSystem.out.println(\"Remaining Codes for next Run:\"+duplicateFree.size());\n\t\tCodeCount=0;\n\t\ttry {\n\t\t\tcodes=new FileWriter(\"data/codes.txt\");\n\t\t\tfor (String S:duplicateFree){\n\t\t\t\twriteCodeLine(S);\n\t\t\t}\n\t\t\tcodes.close();\n\t\t\tThread.sleep(1000L);\n\t\t} catch (IOException | InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void cleaningBallot() {\n\t\tturnLeft();\n\t\tmove();\n\t\tgrabStrayBeepers();\n\t\tturnAround();\n\t\tmove();\n\t\tmove();\n\t\tgrabStrayBeepers();\n\t}",
"public void resetLines() throws IOException {\n counterSeveralLines = linesAfter;\n if (currentPath != null) {\n bufferReader.close();\n fileReader.close();\n fileReader = new FileReader(currentPath);\n bufferReader = new BufferedReader(fileReader);\n arrayPreviousLines = new String[prevSize];\n resetDateBefore();\n }\n }",
"public void clear() \r\n\t{\r\n\t\ttotal = 0;\r\n\t\thistory = \"\";\r\n\t}",
"public void truncateFinal() {\n trimHead();\n }",
"public void clear() {\n sumX = 0d;\n sumXX = 0d;\n sumY = 0d;\n sumYY = 0d;\n sumXY = 0d;\n n = 0;\n }",
"public void cleanCanvas() {\n\t\tclean = true;\n\t\tthis.invalidate();\n\t\t\n\t\t// adiciona ponto fict’cio para informar que o canvas foi limpo num dado momento\n\t\tif (toReplay) {\n\t\t\txs.add(-2.0f);\n\t\t\tys.add(-2.0f);\n\t\t\tcolors.add(mPaint.getColor());\n\t\t}\n\t}",
"public void ensureEmptied() {\n }",
"public void flushCurrentLine()\n {\n line = null;\n }",
"public void cleanUp() {\n logger.info(\"clean up...\");\n this.sequenceNo = calculateSequenceNumber();\n if (this.prevoteStore != null) {\n this.prevoteStore = this.prevoteStore.stream()\n .filter(i -> i.sequence_no >= this.sequenceNo)\n .collect(Collectors.toCollection(ArrayList::new));\n } else {\n this.prevoteStore = new ArrayList<>();\n }\n }",
"public void discard(){\n for(int i = 1 ; i <= 110 ; i++) cardDeck.remove(i);\n }",
"public void clear() {\n\t\tthis.sizeinbits = 0;\n\t\tthis.actualsizeinwords = 1;\n\t\tthis.rlw.position = 0;\n\t\t// buffer is not fully cleared but any new set operations should\n\t\t// overwrite stale data\n\t\tthis.buffer[0] = 0;\n\t}",
"public void clear() {\r\n outlines.clear();\r\n outlines.add(new Outline());\r\n outlineState = VerticesState.UNDEFINED;\r\n bbox.reset();\r\n vertices.clear();\r\n triangles.clear();\r\n addedVerticeCount = 0;\r\n dirtyBits = 0;\r\n }",
"public void clear() {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tbeams[i] = null;\n\t\t}\n\t}",
"public final synchronized void mo27313a() {\n this.f10289c.clear();\n this.f10287a.edit().clear().commit();\n }",
"void clearRecords() {\n\t\ttry {\n\t\tPrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(\"Student.txt\")));\n\t\tpw.close();\n\t\tSystem.out.println(\"\\nAll Records cleared successfully !\");\n\t\tfor (int i = 0; i < 999999999; i++);\n\t\t}catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"private static void clear() {\n\t\tvxl = new StringBuffer();\n\t}",
"private void clearFields() {\n orderNo.clear();\n orderNo.setPromptText(\"9XXXXXX\");\n if (rbProductType.isEmpty()) {\n rbListAddElement();\n }\n for (int i = 0; i < rbProductType.size(); i++) {\n rbProductType.get(i).setSelected(false);\n }\n if (cbWorker.isEmpty()) {\n cbListAddElement();\n }\n for (int i = 0; i < cbWorker.size(); i++) {\n cbWorker.get(i).setSelected(false);\n }\n UserDAO userDAO = new UserDAO();\n User user = userDAO.getUser(logname.getText());\n for (int i = 0; i < cbWorker.size(); i++) {\n if(cbWorker.get(i).getText().equals(user.getNameSurname())) {\n cbWorker.get(i).setSelected(true);\n } else {\n cbWorker.get(i).setSelected(false);\n }\n }\n plannedTime.clear();\n actualTime.clear();\n comboStatus.valueProperty().set(null);\n }",
"public void erasePolylines() {\n for (Polyline line : polylines) {\n line.remove(); ////removing each lines\n\n }\n polylines.clear(); ////clearing the polylines array\n }",
"public final synchronized void mo47208b() {\n this.f49753d.clear();\n C18331bb.m60419a(this.f49751b);\n this.f49750a.edit().clear().commit();\n }",
"void clearFunds() {\n\t\tbalance += cheque;\n\t\tcheque = 0;\n\t}",
"private void vaciarCampos() {\n\t\t// TODO Auto-generated method stub\n\t\ttxtCedula.clear();\n\t\ttxtNombre.clear();\n\t\ttxtApellidos.clear();\n\t\ttxtTelefono.clear();\n\t\ttxtCorreo.clear();\n\t\ttxtDireccion.clear();\n\t\ttxtUsuario.clear();\n\t\ttxtContrasenia.clear();\n\t}",
"public void clearBankDdPrintLocation() {\n\t\t System.out.println(\"inside method cleare\");\n\t\t setBankBranchId(null);\n\t\t setBankId(null);\n\t\t setCountryId(null);\n\t\t setStateId(null);\n\t\t setDistrictId(null);\n\t\t setCityId(null);\n\t\t //System.out.println(getCountryId());\n\t\t setCountryId(null);\n\t \t setdDAgent(\"\");\n\t \t //System.out.println(getCountryId());\n\t\t setdDPrintLocation(\"\");\n\t\t setRenderDdprintLocation(false);\n\t\t System.out.println(\"Value : \"+getdDAgent()); \n\t}",
"public void clear() {\r\n modCount++;\r\n header.next = header.previous = header;\r\n size = 0;\r\n }",
"public void reset() {\n\t\tfor (int i=0; i < this.WAYS; i++) {\n\t\t\tthis.cache[i] = new Line(this.alpha[i], REPL_VAL);\n\t\t}\n\t\t// set mru\n\t\tthis.cache[this.WAYS-1].state = INSERT_VAL;\n\t}",
"private static void trimLines( List lines ) {\n \n /* Strip any blank lines from the top. */\n for ( ListIterator it = lines.listIterator( 0 ); it.hasNext(); ) {\n String line = (String) it.next();\n if ( line.trim().length() == 0 ) {\n it.remove();\n }\n else {\n break;\n }\n }\n \n /* Strip any blank lines from the bottom. */\n for ( ListIterator it = lines.listIterator( lines.size() );\n it.hasPrevious(); ) {\n String line = (String) it.previous();\n if ( line.trim().length() == 0 ) {\n it.remove();\n }\n else {\n break;\n }\n }\n }",
"public void clearAll() {\n bikeName = \"\";\n bikeDescription = \"\";\n bikePrice = \"\";\n street = \"\";\n zipcode = \"\";\n city = \"\";\n bikeImagePath = null;\n }",
"protected void clearWriteResume()\n\t{\n\t\tmCallingMethod = null;\n\t\tmCallingParameters = null;\n\t}",
"void unsetLeading();",
"public void clean()\n\t{\n\t\tstep = -2;\n\t\tisIterationStep = false;\n\n\t\tcurrentTime = deltaTime = stepCallbackTime = 0;\n\t\tisInitialized = isFinished = isKilled = isPaused = false;\n\t}",
"private void clearData() {}",
"public static void clear() {\r\n\t\tload();\r\n\t\tif (transList.size() == 0) {\r\n\t\t\tSystem.out.println(\"No transaction now....\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfor (int i = 0; i < transList.size(); i++) {\r\n\t\t\tif (transList.get(i).toFile().charAt(0) == 'd') {\r\n\t\t\t\tDeposit trans = (Deposit) transList.get(i);\r\n\t\t\t\tif (!trans.isCleared()) {\r\n\t\t\t\t\ttrans.setCleared(AccountControl.deposit(trans.getAcc(), trans.getAmount()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tsave();\r\n\t}",
"private void clear() {\r\n\t\tpstate.clear();\r\n\t\tdisplay.setLegend(\"\");\r\n\t\tship = null;\r\n\t}",
"private void clearPut() {\n if (patternCase_ == 3) {\n patternCase_ = 0;\n pattern_ = null;\n }\n }",
"private void clearSheet() {\n row = null;\n cells = null;\n cellType = null;\n value = null;\n rowIndex = -1;\n }",
"public void clearAllData() {\n atoms.clear();\n connections.clear();\n lines.clear();\n radical = null;\n }",
"public void clear()\n\t{\n\t\treadout.setText(\"\");\n\t\ttxtArea.setText(\"\");\n\t}",
"public void clearChangeSet()\r\n\t{\n\t\toriginal = new Hashtable(10);\r\n\t\t//System.out.println(\"111111 in clearChangeSet()\");\r\n\t\tins_mov = new Hashtable(10);\r\n\t\tdel_mod = new Hashtable(10);\r\n\r\n\t\tfor (int i = 0; i < seq.size(); i++) {\r\n\t\t\tReplicated elt = (Replicated) seq.elementAt(i);\r\n\t\t\toriginal.put(elt.getObjectID(), elt);\r\n\t\t}\r\n\t}",
"public void clean()\r\n {\r\n this.extension = null;\r\n this.extensionValueList = null;\r\n this.extensionLabelList = null;\r\n this.archivoVO = null;\r\n this.archivoVOValueList = null;\r\n this.archivoVOLabelList = null;\r\n this.nuevoNombre = null;\r\n this.nuevoNombreValueList = null;\r\n this.nuevoNombreLabelList = null;\r\n this.action = null;\r\n this.actionValueList = null;\r\n this.actionLabelList = null;\r\n }",
"public void clearRent()\n {\n this.rentDescriptiontxt.setText(\"\");\n this.rentManufacturertxt.setText(\"\");\n this.downPaymenttxt.setText(\"\");\n this.dailyRatetxt.setText(\"\");\n this.rentCustomertxt.setText(\"\"); \n this.hireDatetxt.setText(\"\"); \n this.returnDatetxt.setText(\"\");\n this.noOfDaystxt.setText(\"\");\n this.rentEquipmentNumtxt.setText(\"\");\n }",
"public void compactUp() {\n\t// Iteramos a través del tablero partiendo de la primera fila\n\t// y primera columna. Si esta contiene un 0 y la fila posterior\n\t// de la misma columna es distinta de 0, el valor se intercambia.\n\t// El proceso se repite hasta que todas las posiciones susceptibles\n\t// al cambio se hayan comprobado.\n\tfor (int i = 0; i < board.length; i++) {\n\t for (int j = 0; j < board.length - 1; j++) {\n\t\tif (board[j][i] == EMPTY && board[j + 1][i] != EMPTY) {\n\t\t board[j][i] = board[j + 1][i];\n\t\t board[j + 1][i] = EMPTY;\n\t\t compactUp();\n\t\t}\n\t }\n\t}\n }",
"public void makeEmpty() {\n header.next = null;\n }"
]
| [
"0.65901834",
"0.6270632",
"0.6231014",
"0.6058334",
"0.5938424",
"0.59171927",
"0.5899804",
"0.58489245",
"0.57775784",
"0.57748824",
"0.57607865",
"0.57543963",
"0.5752001",
"0.5744125",
"0.5738191",
"0.57255065",
"0.5717517",
"0.5710139",
"0.57042843",
"0.5684147",
"0.568383",
"0.56603575",
"0.5651576",
"0.56429017",
"0.5635668",
"0.5633946",
"0.56151974",
"0.56076556",
"0.56066656",
"0.56053394",
"0.5600973",
"0.5592372",
"0.55881387",
"0.55864066",
"0.5577942",
"0.55766374",
"0.5573433",
"0.5569108",
"0.55608374",
"0.55607355",
"0.5559966",
"0.55587006",
"0.5548612",
"0.55420625",
"0.55403966",
"0.55277336",
"0.552573",
"0.5525294",
"0.55240613",
"0.55149215",
"0.5514255",
"0.5512621",
"0.5509013",
"0.5506958",
"0.5504033",
"0.54961896",
"0.5494898",
"0.5493276",
"0.5491949",
"0.5489172",
"0.5489125",
"0.54885995",
"0.54868877",
"0.54799825",
"0.54759896",
"0.546484",
"0.5462153",
"0.54577774",
"0.54571265",
"0.54570436",
"0.54567116",
"0.54528695",
"0.5452861",
"0.543988",
"0.54320043",
"0.5424407",
"0.5423199",
"0.5420994",
"0.5420228",
"0.5406308",
"0.5406275",
"0.5398129",
"0.53968155",
"0.53864485",
"0.53851485",
"0.538493",
"0.5384561",
"0.53812444",
"0.53772855",
"0.53710073",
"0.53685063",
"0.53674597",
"0.53626305",
"0.5361933",
"0.53583205",
"0.5357209",
"0.53562015",
"0.53482467",
"0.5345811",
"0.5343302",
"0.5341157"
]
| 0.0 | -1 |
Determines if this document should do the extra work on a document copy associated with reverting to a TA document Of course, in this implementation, we return false always because a TA doesn't have to do the extra work. But TAA's and TAC's do. | public boolean shouldRevertToOriginalAuthorizationOnCopy() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean canChangeDocuments() {\n\n // If the text is modified, give the user a chance to\n // save it. Otherwise return true.\n\n if (fDocument.isModified()) {\n byte save = askSave(this, getTitle());\n if (save == YES) {\n return doSave();\n }\n else {\n return save == NO;\n }\n }\n else {\n return true;\n }\n }",
"public abstract boolean teReproduces();",
"private boolean canUndo() {\n return !frozen && !past.isEmpty();\n }",
"boolean shouldMerge() {\n return mergeState.segmentInfo.getDocCount() > 0;\n }",
"public boolean isReplicateUpdatesViaCopy() {\r\n\r\n if (LOG.isLoggable(Level.FINEST)) {\r\n LOG.finest(\"isReplicateUpdatesViaCopy ( ) called \");\r\n }\r\n\r\n return replicateUpdatesViaCopy;\r\n }",
"protected boolean checkIfAdditionalInfo(NbaDst work) {\n\t\tif (A_WT_TEMP_REINSURANCE.equals(work.getWorkType()) && !work.getNbaSources().isEmpty()) {\n\t\t\tList sources = work.getNbaSources();\n\t\t\tfor(int i=0; i<sources.size();i++) {\n\t\t\t\tNbaSource nbaSource = (NbaSource) work.getNbaSources().get(i);\n\t\t\t\tif(A_ST_REINSURANCE_XML_TRANSACTION.equals(nbaSource.getSourceType())) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"boolean hasPlainTransferFrom();",
"private boolean checkiforiginal(int copynum) {\n boolean isAvailable = false;\n if (copynum == 0) {\n isAvailable = true;\n }\n return isAvailable;\n }",
"boolean shouldModify();",
"public boolean isUndoPossible() {\n return (roundsHistory.size() > 1);\n }",
"public boolean isTransformed() {\n\treturn nonIdentityTx;\n }",
"private boolean shouldApply() {\n return nextRandomInt() >= unappliedJobCutoff;\n }",
"private boolean canRedo() {\n return !frozen && !future.isEmpty();\n }",
"public boolean isCopyEnabled() {\n \t\tif (text == null || text.isDisposed())\n \t\t\treturn false;\n \t\treturn text.getSelectionCount() > 0;\n \t}",
"public abstract boolean processSaveDocument(Document document);",
"public static void testConvertIntoCopy_copyDisallowed(MaintenanceDocument document, DataDictionaryService dataDictionaryService) throws Exception {\n DataDictionary d = dataDictionaryService.getDataDictionary();\r\n Class documentClass = document.getClass();\r\n boolean originalValue = d.getDocumentEntry(documentClass.getName()).getAllowsCopy();\r\n try {\r\n d.getDocumentEntry(documentClass.getName()).setAllowsCopy(false);\r\n\r\n boolean failedAsExpected = false;\r\n try {\r\n ((Copyable) document).toCopy();\r\n }\r\n catch (IllegalStateException e) {\r\n failedAsExpected = true;\r\n }\r\n\r\n assertTrue(failedAsExpected);\r\n }\r\n finally {\r\n d.getDocumentEntry(documentClass.getName()).setAllowsCopy(originalValue);\r\n }\r\n }",
"public boolean mayHaveRewrite() { return false; }",
"public boolean canUndo()\n {\n if (undoableChanges == null || undoableChanges.size() > 0)\n return true;\n else\n return false;\n }",
"public boolean canUndo();",
"public boolean canUndo();",
"public boolean canUndo() {\n/* 834 */ return !Utils.isNullOrEmpty(getNextUndoAction());\n/* */ }",
"protected boolean beforeDelete() {\n if (DOCSTATUS_Drafted.equals(getDocStatus())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(null, \"El documento no se puede eliminar ya que no esta en Estado Borrador.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n\n }",
"protected boolean shouldHoldAdvance() {\n if (shouldProcessAdvanceForDocument() && getTravelAdvance().getDueDate() != null) {\n return getTravelEncumbranceService().shouldHoldEntries(getTravelAdvance().getDueDate());\n }\n return false;\n }",
"public boolean canBeTransformedWith(Transformation other) {\n return false; // Independent transformation\n }",
"public boolean canUndo() {\n return this.isUndoable;\n }",
"public boolean isVoidPrevDocs();",
"private boolean modifiable() {\n // Only allow un-answered tests/surveys to be modified\n return this.completed.size() == 0;\n }",
"public boolean reverseAccrualIt() {\n log.info(toString());\n\n if (!isReceipt()) {\n CQChangeStateVP(MVALORPAGO.EMITIDO, MVALORPAGO.REVERTIDO);\n CQChangeStateVP(MVALORPAGO.IMPRESO, MVALORPAGO.REVERTIDO);\n\n }\n\n return false;\n }",
"public boolean isFinishedWithDocument(DocText docText) {\n return false;\n }",
"@Override\r\n public boolean canCancel(Document document) {\n return false;\r\n }",
"@Override\n\tpublic boolean erTom() {\n\t\treturn (bak == null);\n\t}",
"boolean shouldRescore() {\n return false;\n }",
"@Override\n public boolean canUndo(History history) {\n try {\n List<Meeting> meetings = transactionFetcher.query().getMeetings().\n get((Integer) history.getData(\"transactionId\"));\n for (Meeting meeting : meetings) {\n if (meeting.isAgreedTo()) return false;\n }\n return true;\n } catch (Exception e) {\n return false;\n }\n }",
"private boolean isNoteworthy(ThingTimeTriple firstTriple, ThingTimeTriple previousTriple)\r\n/* 129: */ {\r\n/* 130:137 */ Mark.say(\r\n/* 131: */ \r\n/* 132: */ \r\n/* 133: */ \r\n/* 134: */ \r\n/* 135: */ \r\n/* 136: */ \r\n/* 137: */ \r\n/* 138: */ \r\n/* 139: */ \r\n/* 140: */ \r\n/* 141: */ \r\n/* 142: */ \r\n/* 143: */ \r\n/* 144: */ \r\n/* 145: */ \r\n/* 146: */ \r\n/* 147: */ \r\n/* 148: */ \r\n/* 149: */ \r\n/* 150: */ \r\n/* 151: */ \r\n/* 152: */ \r\n/* 153: */ \r\n/* 154: */ \r\n/* 155: */ \r\n/* 156: */ \r\n/* 157: */ \r\n/* 158: */ \r\n/* 159: */ \r\n/* 160: */ \r\n/* 161: */ \r\n/* 162: */ \r\n/* 163: */ \r\n/* 164: */ \r\n/* 165: */ \r\n/* 166: */ \r\n/* 167: */ \r\n/* 168: */ \r\n/* 169: */ \r\n/* 170: */ \r\n/* 171: */ \r\n/* 172: */ \r\n/* 173: */ \r\n/* 174:181 */ new Object[] { \"Inputs to isNoteworthy\", firstTriple.english, previousTriple.english });\r\n/* 175:138 */ if (previousTriple == null)\r\n/* 176: */ {\r\n/* 177:139 */ resetReference(firstTriple);\r\n/* 178:140 */ return true;\r\n/* 179: */ }\r\n/* 180:143 */ if (previousTriple.english.equals(firstTriple.english))\r\n/* 181: */ {\r\n/* 182:144 */ Mark.say(new Object[] {\"English is the same\" });\r\n/* 183: */ }\r\n/* 184: */ else\r\n/* 185: */ {\r\n/* 186:147 */ String type = firstTriple.t.getType();\r\n/* 187:148 */ Mark.say(new Object[] {\"Significant types\", type, this.significantEvents });\r\n/* 188:150 */ if (this.significantEvents.contains(type))\r\n/* 189: */ {\r\n/* 190:151 */ Mark.say(new Object[] {firstTriple.english, \"is significant\" });\r\n/* 191: */ \r\n/* 192: */ \r\n/* 193: */ \r\n/* 194:155 */ ThingTimeTriple previousEventOfSameType = (ThingTimeTriple)this.previousTriples.get(type);\r\n/* 195:157 */ if (previousEventOfSameType == null)\r\n/* 196: */ {\r\n/* 197:158 */ resetReference(firstTriple);\r\n/* 198:159 */ return true;\r\n/* 199: */ }\r\n/* 200:162 */ if (overlaps(firstTriple, previousEventOfSameType))\r\n/* 201: */ {\r\n/* 202:167 */ Connections.getPorts(this).transmit(TO_TEXT_VIEWER, new BetterSignal(new Object[] { \"Commentary\", Html.line(\"Events overlap [\" + \r\n/* 203:168 */ previousEventOfSameType.from / 1000L + \" \" + previousEventOfSameType.to / 1000L + \"] [\" + firstTriple.from / 1000L + \" \" + \r\n/* 204:169 */ firstTriple.to / 1000L + \"] \") }));\r\n/* 205: */ }\r\n/* 206: */ else\r\n/* 207: */ {\r\n/* 208:172 */ resetReference(firstTriple);\r\n/* 209:173 */ return true;\r\n/* 210: */ }\r\n/* 211: */ }\r\n/* 212: */ else\r\n/* 213: */ {\r\n/* 214:177 */ Mark.say(new Object[] {firstTriple.english, \"NOT significant\" });\r\n/* 215: */ }\r\n/* 216: */ }\r\n/* 217:180 */ return false;\r\n/* 218: */ }",
"boolean hasConversionAction();",
"boolean hasConversionAction();",
"private boolean acceptAsExpected()\n {\n return saveExpectedDir_ != null;\n }",
"public boolean shouldRevertFile(OpenDefinitionsDocument doc) { return true; }",
"public boolean shouldRevertFile(OpenDefinitionsDocument doc) { return true; }",
"public boolean hasTranscripts() {\n return fieldSetFlags()[5];\n }",
"protected boolean processCustomSaveDocumentBusinessRules(MaintenanceDocument document) {\n boolean isValid = true;\n OleDiscoveryExportProfile oleDiscoveryExportProfile = (OleDiscoveryExportProfile) document.getNewMaintainableObject().getDataObject();\n isValid &= validateForDuplicateMARCField(oleDiscoveryExportProfile);\n isValid &= validateForDuplicateItemField(oleDiscoveryExportProfile);\n return isValid;\n }",
"@Override\n public boolean canBeMerged(AuditRefuseBackup o) {\n return true;\n }",
"protected boolean checkMongo() {\n boolean scarso = false;\n\n if (checkBioScarso()) {\n mail.send(\"Upload attivita\", \"Abortito l'upload delle attività perché il mongoDb delle biografie sembra vuoto o comunque carente di voci che invece dovrebbero esserci.\");\n scarso = true;\n }// end of if cycle\n\n return scarso;\n }",
"public boolean isFinishedWithDocText(DocText docText) {\n return false;\n }",
"@Override\n public boolean canErrorCorrect(FinancialSystemTransactionalDocument document) {\n if (StringUtils.isNotBlank(document.getFinancialSystemDocumentHeader().getCorrectedByDocumentId())) {\n return false;\n }\n\n // error correction shouldn't be allowed for previous FY docs\n WorkflowDocument workflowDocument = document.getDocumentHeader().getWorkflowDocument();\n if (!isApprovalDateWithinFiscalYear(workflowDocument)) {\n return false;\n }\n\n if(((CustomerInvoiceDocument)document).isInvoiceReversal()){\n return false;\n } else {\n // a normal invoice can only be error corrected if document is in a final state\n // and no amounts have been applied (excluding discounts)\n return isDocFinalWithNoAppliedAmountsExceptDiscounts((CustomerInvoiceDocument) document);\n }\n }",
"public Boolean shouldUseAlternateTargetLocation() {\n return this.shouldUseAlternateTargetLocation;\n }",
"protected boolean afterSave(boolean newRecord, boolean success) {\n /**\n * 26/07/2013 Maria Jesus Martin\n * Modificación realizada para que si la OP esta en borrador o en proceso se calculen nuevamente\n * las retenciones.\n */\n if (!Env.getContext(Env.getCtx(), \"OmitRetentionCalculation\").equals(\"Y\") \n && !this.isReceipt() \n && (super.isRetenciones()) \n && ( (DOCSTATUS_Drafted.equals(getDocStatus())) \n || (DOCSTATUS_InProgress.equals(getDocStatus()))\n )\n ) {\n System.out.println(\"Entrando a evaluar el calcular retenciones\");\n\n if (this.flagSave == false && this.retencion == true) {\n System.out.println(\"Entrando a calcular retenciones\");\n recalcularRetenciones();\n }\n }\n return true;\n\n }",
"private boolean SpecialWordProcess() {\n boolean processed = false;\n\n // the process of a special word.\n switch(this.mRawText[this.mTextIndex]) {\n case 'd' : // delete\n this.mDeleteF = processed = true;\n break;\n case 'e' : // end to draw text and file to next.\n this.mReadingF = false;\n // the flag that is waiting reading to next text.\n this.mWaitingF = true;\n processed = true;\n break;\n }\n return processed;\n }",
"public boolean istKorrupt() {\n\t\tif (this.korrupt) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"protected boolean isTransactionRollback()\n {\n try\n {\n UMOTransaction tx = TransactionCoordination.getInstance().getTransaction();\n if (tx != null && tx.isRollbackOnly())\n {\n return true;\n }\n }\n catch (TransactionException e)\n {\n // TODO MULE-863: What should we really do?\n logger.warn(e.getMessage());\n }\n return false;\n }",
"@Override\n\tpublic boolean preModify() {\n\t\tif(!cuentaPapaCorrecta(instance)) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctapdrno\"));\n\t\t\treturn false;\n\t\t}\n\t\tif(!cuentaEsUnica()) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctaexis\"));\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"boolean hasPlainTransfer();",
"public abstract boolean appliesTo(Transformation<?> transformation);",
"public boolean determineTransformationApplicability(IFreeText candidate);",
"protected final boolean rangeTestNeeded() {\n\treturn needRangeTest;\n }",
"public boolean hasDirtyPrefixes() {\n return !this.dirtyDest.isEmpty();\n }",
"private boolean shouldForwardToTermsAcceptanceIntent(Progress progress) {\n return progress.name.equals(Progress.termsAcceptance)\n || progress.name.equals(Progress.termsRefused);\n }",
"default boolean isSameStateAs(ReadOnlyTask other) {\n return other == this // short circuit if same object\n || (other != null // this is first to avoid NPE below\n && other.getContent().equals(this.getContent())); // state checks here onwards\n //&& other.getDate().equals(this.getDate())\n //&& other.getTime().equals(this.getTime()));\n }",
"@Override\n public boolean canReturn() {\n return getDocumentHeader().getWorkflowDocument().isEnroute();\n }",
"public final boolean aow() {\n return false;\n }",
"private <R> Boolean checkIfAlreadySucceeded(final CommitLoggedWork<R> work) {\n return work.hasRun() && transactNewReadOnly(() -> {\n CommitLogManifest manifest = work.getManifest();\n if (manifest == null) {\n // Work ran but no commit log was created. This might mean that the transaction did not\n // write anything to Datastore. We can safely retry because it only reads. (Although the\n // transaction might have written a task to a queue, we consider that safe to retry too\n // since we generally assume that tasks might be doubly executed.) Alternatively it\n // might mean that the transaction wrote to Datastore but turned off commit logs by\n // exclusively using save/deleteWithoutBackups() rather than save/delete(). Although we\n // have no hard proof that retrying is safe, we use these methods judiciously and it is\n // reasonable to assume that if the transaction really did succeed that the retry will\n // either be idempotent or will fail with a non-transient error.\n return false;\n }\n return Objects.equals(\n union(work.getMutations(), manifest),\n ImmutableSet.copyOf(load().ancestor(manifest)));\n });\n }",
"boolean hasCurrentDocument();",
"boolean isManipulated();",
"public boolean getOptimizeCopy()\n {\n return optimizeCopy;\n }",
"public boolean needsResend(){\n return this.getNumNetworkCopies()-this.replicationDegree<0;\n }",
"public boolean isDocument(Document document) {\n return false;\n }",
"@Override\n\tpublic boolean paie() {\n\t\treturn false;\n\t}",
"public static boolean allowOverwrite() {\n\t\tif ((xml != null) && (overwrite != null) && overwrite.equals(\"no\")) return false;\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean update(Document obj) {\n\t\treturn false;\n\t}",
"protected boolean isDocErrorCorrectionMode(FinancialSystemTransactionalDocument document) {\n if (StringUtils.isNotBlank(document.getFinancialSystemDocumentHeader().getCorrectedByDocumentId())) {\n return true;\n }\n\n if(((CustomerInvoiceDocument)document).isInvoiceReversal()){\n return true;\n } else {\n // a normal invoice can only be error corrected if document is in a final state\n // and no amounts have been applied (excluding discounts)\n return isDocFinalWithNoAppliedAmountsExceptDiscounts((CustomerInvoiceDocument) document);\n }\n }",
"public boolean isOkToConvert()\n {\n return _okToConvert;\n }",
"@Override\r\n public boolean canDisapprove(Document document) {\n return false;\r\n }",
"boolean hasIsPerformOf();",
"protected boolean canMoveOver(final WorkItem originalWorkItem, final WorkItem targetWorkItem) {\n\t\t// Validate that the items that are moving are the same type.\n\t\tif (originalWorkItem.getType() != targetWorkItem.getType()) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// if both are type task, check if are from the same story.\n\t\tif (originalWorkItem.getType() == WorkItemType.TASK && targetWorkItem.getType() == WorkItemType.TASK) {\n\n\t\t\tfinal Story originParent = ((Task) originalWorkItem).getStory();\n\t\t\tfinal Story targetParent = ((Task) targetWorkItem).getStory();\n\n\t\t\tif (!(originParent == null && targetParent == null) // for tasks without story\n\t\t\t\t\t&& (originParent == null || targetParent == null\n\t\t\t\t\t|| !originParent.equals(targetParent))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"public boolean canUndo() {\n return statePointer > 0;\n }",
"public boolean equals(Document other){\n boolean something = true;\r\n\r\n if(other == null){ //make sure that the object we are comparing to isn't null\r\n something = false;\r\n }\r\n if(this.getClass() != other.getClass()){ //makes sure the object are of the same class\r\n something = false;\r\n }\r\n if(!this.name.equalsIgnoreCase(other.name) || other.name == null){ //compares if the documents have the same name ignoring uppercase\r\n something = false;\r\n }\r\n if(!this.owner.equalsIgnoreCase(other.owner) || other.owner == null){ //comapre if both documents have the same owner ignoring uppercase\r\n something = false;\r\n }\r\n if(!this.id.equals(other.id) || other.id == null){ //compare if both documents have the same id\r\n something = false;\r\n }\r\n return something; //if something return true, then both documents are the same otherwise they are different\r\n }",
"@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }",
"@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }",
"@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }",
"private boolean canBeReplacedWith(String newDiag, Doctor newAttending, Doctor newSecOp) {\n\t\tboolean rv = this.secopDoc.equals(newAttending);\n\t\trv &= (this.attending.equals(newSecOp));\n\t\trv &= !(newDiag == null);\n\t\trv &= !newDiag.isEmpty();\n\t\treturn rv;\n\t}",
"private boolean OPT(boolean b) {\r\n --save;\r\n return b || in == saves[save];\r\n }",
"public boolean isMutable() {\n synchronized (TestResult.this) {\n synchronized (this) {\n return TestResult.this.isMutable() &&\n this.result == inProgress;\n }\n }\n }",
"public static boolean isReconciliationPausedWithAnnotation(ObjectMeta metadata) {\n return Annotations.booleanAnnotation(metadata, ANNO_STRIMZI_IO_PAUSE_RECONCILIATION, false);\n }",
"public boolean isMissedTW() {\n return missedTW;\n }",
"static void setNotAutoCopy(){isAutoCopying=false;}",
"public boolean tienePrepaga() {\r\n\t\treturn obraSocial != null;\r\n\t}",
"boolean hasDocument();",
"boolean hasDocument();",
"boolean hasDocument();",
"private boolean CheckFileOperationEnable()\n\t{\n\t ASPManager mgr = getASPManager();\n\t \n\t if (itemlay.isMultirowLayout())\n\t {\n\t itemset.storeSelections();\n\t itemset.setFilterOn();\n\t String prestructure = \" \";\n\t String structure;\n\t if (itemset.countSelectedRows() > 1)\n\t {\n\t for (int k = 0;k < itemset.countSelectedRows();k++)\n\t {\n\t structure = itemset.getValue(\"STRUCTURE\");\n\t if (\" \".equals(prestructure)) \n\t {\n\t prestructure = structure;\n\t }\n\t if (!prestructure.equals(structure)) \n\t {\n\t mgr.showAlert(mgr.translate(\"DOCMAWDOCREFERENCENOFILEOPERATIONONMIXED: File Operations are not allowed on Mixed or multiple structure documents.\"));\n\t itemset.setFilterOff();\n\t return true;\n\t }\n\t if (\"1\".equals(prestructure) && \"1\".equals(structure)) \n\t {\n\t mgr.showAlert(mgr.translate(\"DOCMAWDOCREFERENCENOFILEOPERATIONONMIXED: File Operations are not allowed on Mixed or multiple structure documents.\"));\n\t itemset.setFilterOff();\n\t return true;\n\t }\n\t prestructure = structure;\n\t itemset.next();\n\t }\n\t }\n\t itemset.setFilterOff();\n\t }\n\t return false;\n\t}",
"private boolean isDirty()\r\n {\r\n //\r\n return _modified;\r\n }",
"@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return false;\n }",
"private boolean journalRebuildRequired() {\n\t\tfinal int REDUNDANT_OP_COMPACT_THRESHOLD = 2000;\n\t\treturn redundantOpCount >= REDUNDANT_OP_COMPACT_THRESHOLD\n\t\t\t&& redundantOpCount >= lruEntries.size();\n\t}",
"public boolean isSetOriginal_title() {\n return this.original_title != null;\n }",
"@Override\n\tpublic boolean puedoAtacar(ElementoSoldado a) {\n\t\treturn false;\n\t}",
"@java.lang.Override\n public boolean hasEtaToFirstWaypoint() {\n return etaToFirstWaypoint_ != null;\n }",
"public boolean isSaveRequired(){\r\n\r\n //If data is modified in any of the tabs\r\n if( instRateClassTypesController.isSaveRequired() ||\r\n instituteRatesController.isSaveRequired() ){\r\n return true;\r\n }\r\n \r\n java.util.Enumeration enumeration = queryEngine.getKeyEnumeration(queryKey);\r\n \r\n Equals eqInsert = new Equals(AC_TYPE, TypeConstants.INSERT_RECORD);\r\n Equals eqUpdate = new Equals(AC_TYPE, TypeConstants.UPDATE_RECORD);\r\n Equals eqDelete = new Equals(AC_TYPE, TypeConstants.DELETE_RECORD);\r\n \r\n Or insertOrUpdate = new Or(eqInsert, eqUpdate);\r\n Or insertOrUpdateOrDelete = new Or(insertOrUpdate, eqDelete);\r\n \r\n Object key;\r\n CoeusVector data;\r\n boolean ratesModified = false;\r\n try{\r\n while(enumeration.hasMoreElements()) {\r\n key = enumeration.nextElement();\r\n \r\n if(!(key instanceof Class)) continue;\r\n \r\n data = queryEngine.executeQuery(queryKey, (Class)key, insertOrUpdateOrDelete);\r\n if(! ratesModified) {\r\n if(data != null && data.size() > 0) {\r\n ratesModified = true;\r\n break;\r\n }\r\n }\r\n }\r\n }catch (CoeusException coeusException) {\r\n coeusException.printStackTrace();\r\n }\r\n return ratesModified;\r\n }",
"boolean hasRemarketingAction();",
"protected boolean mo11180a() {\n return true;\n }",
"public boolean isUndoable() {\n\t\treturn false;\n\t}"
]
| [
"0.59579587",
"0.5698011",
"0.560645",
"0.552731",
"0.55124223",
"0.54725516",
"0.54360133",
"0.5410152",
"0.5405254",
"0.5395587",
"0.53954387",
"0.535933",
"0.5335783",
"0.5322369",
"0.5321753",
"0.52883375",
"0.52668226",
"0.52639353",
"0.526134",
"0.526134",
"0.5260358",
"0.5258764",
"0.523891",
"0.52198166",
"0.5202057",
"0.5197171",
"0.5194367",
"0.5191593",
"0.5191261",
"0.51654506",
"0.51487297",
"0.51432407",
"0.514202",
"0.5141239",
"0.5136204",
"0.5136204",
"0.51311934",
"0.5123136",
"0.5123136",
"0.51187587",
"0.51169306",
"0.5107285",
"0.5101898",
"0.50975746",
"0.5079737",
"0.5077845",
"0.507471",
"0.50683045",
"0.50654554",
"0.5062721",
"0.5062539",
"0.5061697",
"0.5059783",
"0.5052344",
"0.505232",
"0.5050441",
"0.50470865",
"0.5045162",
"0.50424683",
"0.50317454",
"0.50261855",
"0.50237656",
"0.50207114",
"0.50170135",
"0.5006739",
"0.50058204",
"0.50018203",
"0.5001287",
"0.49941412",
"0.4983766",
"0.49759084",
"0.49655718",
"0.4959872",
"0.4957792",
"0.4957252",
"0.4952054",
"0.4947061",
"0.4947061",
"0.4947061",
"0.49459416",
"0.49448782",
"0.4944796",
"0.49446145",
"0.49402428",
"0.49380028",
"0.4933093",
"0.49307242",
"0.49307242",
"0.49307242",
"0.49303967",
"0.49225634",
"0.49065506",
"0.49043363",
"0.49043214",
"0.4901005",
"0.48979604",
"0.48951644",
"0.48933223",
"0.48837164",
"0.48830524"
]
| 0.55229485 | 4 |
Gets the perDiemAdjustment attribute. | @Override
@Column(name = "PER_DIEM_ADJ", precision = 19, scale = 2)
public KualiDecimal getPerDiemAdjustment() {
return perDiemAdjustment == null?KualiDecimal.ZERO:perDiemAdjustment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setPerDiemAdjustment(KualiDecimal perDiemAdjustment) {\n this.perDiemAdjustment = perDiemAdjustment == null?KualiDecimal.ZERO:perDiemAdjustment;\n }",
"public double getDPad() {\n\t\treturn this.getRawAxis(6);\n\t}",
"public double getAdjustmentRatio() {\n return adjustmentRatio;\n }",
"public double getDm() {\n return dm;\n }",
"public double getDpa(){\n double dpa = 0;\n try{\n //noinspection IntegerDivisionInFloatingPointContext\n dpa = this.damage / this.attacks;\n } catch (ArithmeticException ignored){\n }\n return dpa;\n }",
"protected float getDpUnit() {\n return mDpUnit;\n }",
"public Money getPerUnitDeclaredValue() {\n return perUnitDeclaredValue;\n }",
"public int getD() {\n\t\treturn d;\n\t}",
"public int getD() {\n return d_;\n }",
"public int getD() {\n return d_;\n }",
"public int getCombatDensityRate() {\n return combatDensityRate;\n }",
"public double getPorcentajeAdyacencia() {\n\t\treturn porcentAdy;\n\t}",
"public int getDiameter() {\n\t\treturn diameter;\n\t}",
"public double getDelta() {\r\n return delta;\r\n }",
"public double getDiameter() {\n return diameter;\n }",
"public double getArgOfPerhelionDelta() {\n return argOfPerhelionDelta;\n }",
"public float getDelta() {\n\t\treturn delta;\n\t}",
"public double getDelta() {\n return delta;\n }",
"public static double getDelta()\n\t{\n\t\treturn delta;\n\t}",
"public BigDecimal getDEPRECIATION_AMT() {\r\n return DEPRECIATION_AMT;\r\n }",
"public int getDelta() {\n return delta_;\n }",
"public BigDecimal getDEAL_AMOUNT() {\r\n return DEAL_AMOUNT;\r\n }",
"public Number getIdexped()\n {\n return (Number)getAttributeInternal(IDEXPED);\n }",
"public double getDx() {\n return dx;\n }",
"public int getDelta() {\n return delta_;\n }",
"@Override\r\n\tpublic Integer getPropensity_pension_decile() {\n\t\treturn super.getPropensity_pension_decile();\r\n\t}",
"@SuppressLint(\"MethodNameUnits\")\n @IntRange(from = IKE_DPD_DELAY_SEC_MIN, to = IKE_DPD_DELAY_SEC_MAX)\n public int getDpdDelaySeconds() {\n return mDpdDelaySec;\n }",
"public int getDiameter()\n {\n return diameter;\n }",
"public double getDx() {\n return this.dx;\n }",
"public double getDx() {\n return this.dx;\n }",
"public double getDx() {\n return this.dx;\n }",
"double getFontSizeAdjustment() {\n return fontSizeAdjustment;\n }",
"public Number getDaysPerMonth()\r\n {\r\n return (m_daysPerMonth);\r\n }",
"public BigDecimal getDeductibleAmt() {\n\t\treturn deductibleAmt;\n\t}",
"public double getDx() {\r\n return this.dx;\r\n }",
"public Integer getAfterDp() {\r\n return afterDp;\r\n }",
"public int getDamageDealt () {\r\n\t\treturn this.damageDealt;\r\n\t}",
"public static final float getAD() {\r\n\t\treturn A_D;\r\n\t}",
"int getDelta() {\n return delta;\n }",
"public BigDecimal getIddepartements() {\n return (BigDecimal) getAttributeInternal(IDDEPARTEMENTS);\n }",
"public int getDelta() {\n return parameter.getDelta();\n }",
"public int dptopx(float dp){\n final float scale = getActivity().getResources().getDisplayMetrics().density;\n // Convert the dps to pixels, based on density scale\n return ((int) (dp * scale + 0.5f));\n }",
"public int getDx() {\n\t\treturn dx;\n\t}",
"@java.lang.Override\n public float getD() {\n return d_;\n }",
"@Override\r\n\tpublic double getDiameter()\r\n\t{\r\n\t\tif (diameter < 0) { // has not been initialized\r\n\t\t\tlogger.debug(\"Calling setGraphParameters\");\r\n\t\t\tsetGraphParameters();\r\n\t\t}\r\n\t\treturn diameter;\r\n\t}",
"public float getDiameter() {\n /* 425 */\n RectF content = this.mViewPortHandler.getContentRect();\n /* 426 */\n content.left += getExtraLeftOffset();\n /* 427 */\n content.top += getExtraTopOffset();\n /* 428 */\n content.right -= getExtraRightOffset();\n /* 429 */\n content.bottom -= getExtraBottomOffset();\n /* 430 */\n return Math.min(content.width(), content.height());\n /* */\n }",
"public SimpleDoubleProperty getTotalAbsencePercentageProperty() {\n return totalAbsencePercentageProperty;\n }",
"Double getNominalDiameter();",
"public double getDiscrepancyAmt() {\n return _discrepancyAmt;\n }",
"@java.lang.Override\n public float getD() {\n return d_;\n }",
"public double getDy() {\n return dy;\n }",
"public double getCopilotDpad() {\n return copilot.getPOV();\n }",
"public double getDiameterJUNG()\r\n\t{\n\t\treturn DistanceStatistics.diameter(undirectedGraph);\r\n\t}",
"public Number getPercentage() {\n return (Number) getAttributeInternal(PERCENTAGE);\n }",
"public int getDiameterInMicrometers() {\n return diameterInMicrometers;\n }",
"public double getPercepcion(){\n return localPercepcion;\n }",
"public MMDecimal getDepositAmount() {\r\n return this.depositAmount;\r\n }",
"public double getDiscountedAmt() {\n\t\t\treturn discountedAmt;\r\n\t\t}",
"public String getPERatio() {\n\t\treturn peRatio;\n\t}",
"public DaysAdjustment getSettlementDateOffset() {\n return settlementDateOffset;\n }",
"public String getDm() {\n return dm;\n }",
"public short getDPad() {\n \treturn (short) ButtonMap.xbox0.getPOV(AxisMap.DPAD);\n }",
"public double getDy() {\n return this.dy;\n }",
"public double getDy() {\n return this.dy;\n }",
"public double getDy() {\n return this.dy;\n }",
"@Override\r\n\tpublic Integer getPropensity_bond_decile() {\n\t\treturn super.getPropensity_bond_decile();\r\n\t}",
"@Override\n\t\tpublic double getAvgDip() {\n\t\t\treturn 0;\n\t\t}",
"@Override\t\n\tpublic int getPricePerDay() {\n\t\treturn pricePerDay;\n\t}",
"public Integer getPermid() {\n return permid;\n }",
"public double getDy() {\r\n return this.dy;\r\n }",
"public double getDeptPay() {\n\t\treturn pay;\n\t}",
"public DaysAdjustment getExCouponPeriod() {\n return exCouponPeriod;\n }",
"@Override\n\tpublic int dx() {\n\t\treturn dx;\n\t}",
"public float getDx() {\n\t\treturn _dx;\n\t}",
"public double getArgOfPerhelion() {\n return argOfPerhelion;\n }",
"public Number getPeriodId() {\n return (Number) getAttributeInternal(PERIODID);\n }",
"public String getPeriode() {\n return this.periode;\n }",
"public double getInclinationDelta() {\n return inclinationDelta;\n }",
"public int getDY(){\n \treturn dy;\n }",
"public int getDenom()\n\t{\n\t\treturn denom;\n\t}",
"public Integer getBp_dp() {\r\n return bp_dp;\r\n }",
"public Double getValuePerConversionManyPerClick() {\r\n return valuePerConversionManyPerClick;\r\n }",
"public BigDecimal getsDrpr() {\n return sDrpr;\n }",
"public double getPricePerItem()\r\n {\r\n return pricePerItem;\r\n }",
"public double getDodgeChance() {\n return Math.min((this.getAgility().getAbilityValue() / 4.0) * 0.01, 1);\n }",
"public int getAttritionDivider() {\n return attritionDivider;\n }",
"public Integer getPadding()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.padding, null);\n }",
"public double estimatedEnergyPerPanel() {\n\t\tif (estimatedEnergyPerPanel < 0) {\n\t\t\treturn estimatedEnergyPerPanel;\n\t\t}\n\t\t// if est. EnergyPerPanel hasn't been found yet, we find it here...\n\t\tdouble wattToKW = .001;\n\t\testimatedEnergyPerPanel = systemCap * wattToKW;\n\t\t// the returned estimated energy will factor in the powerTolerance,\n\t\t// which typically equates to percent loss on the panel\n\t\treturn estimatedEnergyPerPanel -= estimatedEnergyPerPanel\n\t\t\t\t* (.01 * powerTolerance);\n\t}",
"public int getDX(){\n \treturn dx;\n }",
"public BigDecimal getPENALTY_AMOUNT() {\r\n return PENALTY_AMOUNT;\r\n }",
"@Override\r\n\tpublic Integer getPropensity_fund_decile() {\n\t\treturn super.getPropensity_fund_decile();\r\n\t}",
"public Number getSizeP() {\n return (Number)getAttributeInternal(SIZEP);\n }",
"public static double potOffset() {\n\t\t\treturn Preferences.getInstance().getDouble(\"potOffset\", 45);\n\t\t}",
"public int getDamage () {\n\t\treturn (this.puissance + stuff.getDegat());\n\t}",
"public double getDeltaX() {\n return deltaX;\n }",
"public double getDeltaX() {\n return deltaX;\n }",
"public double getDeltaX() {\n return deltaX;\n }",
"public int getDiameter()\n\t{\n\t\treturn radius * 2;\n\t}",
"public double getProtein() {\n\t\tdouble mealProtein = 0;\n\t\tfor (String foodName : meal) {\n\t\t\tdouble protein = foodDetail.get(foodName).getProtein();\n\t\t\tdouble portion = foodPortion.get(foodName);\n\t\t\tmealProtein += protein * portion;\n\t\t}\n\t\treturn mealProtein;\n\t}",
"public int getiD() {\n return iD;\n }"
]
| [
"0.6524349",
"0.6482478",
"0.6423656",
"0.621363",
"0.6063039",
"0.6055495",
"0.5976941",
"0.5960877",
"0.59388286",
"0.58744824",
"0.5866621",
"0.5859143",
"0.584602",
"0.58201766",
"0.58177114",
"0.5815917",
"0.5806102",
"0.58046085",
"0.5786982",
"0.57307434",
"0.572683",
"0.5725041",
"0.57117957",
"0.57047695",
"0.5682105",
"0.56740284",
"0.5671045",
"0.56660414",
"0.56409144",
"0.56409144",
"0.56409144",
"0.5635183",
"0.5629306",
"0.5623628",
"0.5618715",
"0.5596536",
"0.55907804",
"0.5588943",
"0.5583318",
"0.55616957",
"0.55607516",
"0.55585474",
"0.5536224",
"0.5532109",
"0.55209434",
"0.55187607",
"0.5515354",
"0.5513375",
"0.5511547",
"0.54865605",
"0.5482787",
"0.5482671",
"0.5471115",
"0.5467516",
"0.5467501",
"0.545066",
"0.54350024",
"0.54343766",
"0.5427731",
"0.542716",
"0.54213345",
"0.5417123",
"0.5414946",
"0.5414946",
"0.5414946",
"0.5412741",
"0.5410636",
"0.54020363",
"0.53969383",
"0.5396078",
"0.5389705",
"0.53694624",
"0.5368045",
"0.5364158",
"0.5354733",
"0.53491086",
"0.53443646",
"0.5338068",
"0.5324177",
"0.5319139",
"0.53190124",
"0.5313216",
"0.5310939",
"0.53105766",
"0.5305185",
"0.52902174",
"0.52886313",
"0.5287518",
"0.528303",
"0.5280071",
"0.52793324",
"0.52723163",
"0.5263572",
"0.5261872",
"0.5258579",
"0.5255431",
"0.5255431",
"0.5254883",
"0.52477396",
"0.52251714"
]
| 0.8420015 | 0 |
Sets the perDiemAdjustment attribute value. | @Override
public void setPerDiemAdjustment(KualiDecimal perDiemAdjustment) {
this.perDiemAdjustment = perDiemAdjustment == null?KualiDecimal.ZERO:perDiemAdjustment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n @Column(name = \"PER_DIEM_ADJ\", precision = 19, scale = 2)\n public KualiDecimal getPerDiemAdjustment() {\n return perDiemAdjustment == null?KualiDecimal.ZERO:perDiemAdjustment;\n }",
"public void setAdjustmentRatio(double value) {\n this.adjustmentRatio = value;\n }",
"public void setPerdu()\n\t{\n\t\tthis.perdu = true;\n\t}",
"public void setDm(double value) {\n this.dm = value;\n }",
"public void setArgOfPerhelionDelta(double value) {\n this.argOfPerhelionDelta = value;\n }",
"public void setDiameter(int newDiameter)\n {\n diameter = (newDiameter >= 0 ? newDiameter : 10);\n repaint(); // repaint panel\n }",
"public void setDepositAmount(MMDecimal depositAmount) {\r\n this.depositAmount = depositAmount;\r\n }",
"public void setDelta(double value) {\r\n this.delta = value;\r\n }",
"public void setPricePerItem(double pricePerItem)\r\n {\r\n if (pricePerItem < 0.0) // validate pricePerItem\r\n throw new IllegalArgumentException(\r\n \"Price per item must be >= 0\");\r\n\r\n this.pricePerItem = pricePerItem;\r\n }",
"public void changeDimmedPerc(int id, float perc) {\n //dimmed or simple...nur dimmedLanmp\n DimmedLamp l = this.getDimmedLamp(id);\n if (l != null)\n l.setDimmedPerc(perc);\n }",
"public void setDelta(float delta) {\n\t\tthis.delta = delta;\n\t}",
"public void setDaysPerMonth(Number daysPerMonth)\r\n {\r\n if (daysPerMonth != null)\r\n {\r\n m_daysPerMonth = daysPerMonth;\r\n }\r\n }",
"public void setDiameter(int diameter){\n\t\tthis.diameter = diameter;\n\t}",
"private void setP(float dP) {\n EditText field = (EditText) findViewById(R.id.valP);\n SeekBar sb = (SeekBar) findViewById(R.id.seekP);\n\n P = dP;\n if (P < 0) {\n P = 0.0f;\n } else if (P > 1) {\n P = 1.0f;\n }\n\n field.setText(String.valueOf(P));\n\n if (P * 100 <= sb.getMax()) {\n sb.setProgress((int)(P * 100));\n }\n }",
"public double getAdjustmentRatio() {\n return adjustmentRatio;\n }",
"public void setDx(double newDx) {\n dx = (int) newDx;\n }",
"public void setDiamondValue(int value);",
"public void setDer(int der) {\r\n\t\tthis.der = der;\r\n\t}",
"public void setDenominator(int dem)\r\n {\r\n this.denominator = dem;\r\n }",
"public void setDY(int DY){\n \tdy = DY;\n }",
"public void setPerR(int PerR){\n\t\tthis.PerR=PerR;\n\t}",
"public void setValuePerConversionManyPerClick(Double valuePerConversionManyPerClick) {\r\n this.valuePerConversionManyPerClick = valuePerConversionManyPerClick;\r\n }",
"public void setPermid(Integer permid) {\n this.permid = permid;\n }",
"public void setPercepcion(double param){\n \n this.localPercepcion=param;\n \n\n }",
"public void setDx(double newDx) {\r\n this.dx = newDx;\r\n }",
"public void setAfterDp(Integer afterDp) {\r\n this.afterDp = afterDp;\r\n }",
"public void setDy(double newDy) {\n dy = (int) newDy;\n }",
"void setDeducted(double deducted) {\n this.deducted = deducted;\n }",
"public void setDiamondCount(int diamondCount) {\r\n\t\tthis.diamondCount = diamondCount;\r\n\t}",
"public int dptopx(float dp){\n final float scale = getActivity().getResources().getDisplayMetrics().density;\n // Convert the dps to pixels, based on density scale\n return ((int) (dp * scale + 0.5f));\n }",
"public static final void setAD(float a_d) {\r\n\t\tA_D = a_d;\r\n\t}",
"public EdgeNeon setAmount(double value) throws ParameterOutOfRangeException\n {\n\t\tif(value > 100.00 || value < 0.00)\n\t {\n\t throw new ParameterOutOfRangeException(value, 0.00, 100.00);\n\t }\n\n m_Amount = value;\n setProperty(\"amount\", value);\n return this;\n }",
"public void setValue(double d) {\r\n\t\t\tif (isValidValue(d)) {\r\n\t\t\t\tthis.value = (double) Math.round(d * 100.00) / (double) 100.00;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}",
"public void setPerHour(double perHour) {\r\n if (perHour < 0 || Double.isNaN(perHour)){\r\n throw new IllegalArgumentException();\r\n }\r\n this.perHour = perHour;\r\n }",
"public void setDX(int DX){\n \tdx = DX;\n }",
"public void setPeriode(String periode) {\n this.periode = periode;\n }",
"public void setCombatDensityRate(int value) {\n this.combatDensityRate = value;\n }",
"public void setDE(DiffExp de)\n\t\t{\n\t\tthis.de=de;\n\t\tautoscale();\n\t\trepaint();\n\t\t}",
"public void setArgOfPerhelion(double value) {\n this.argOfPerhelion = value;\n }",
"public void setDy(double newDy) {\r\n this.dy = newDy;\r\n }",
"public void setDamage(double d) {\n damage = d;\n }",
"public void setAdjustMode(boolean adjust);",
"public DpFormatter(int dp) {\r\n mNf = new DecimalFormat(\"0.\" + TextUtils.repeat(\"0\", dp));\r\n }",
"public MyProgress setDimAmount(float dimAmount) {\n if (dimAmount >= 0 && dimAmount <= 1) {\n mDimAmount = dimAmount;\n }\n return this;\n }",
"public void setEdad(int edad) {\n\t\tif (edad == this.edad + 1) {\n\t\t\tthis.edad = edad;\n\t\t}\n\t}",
"void setDeltaPInfo(String dpLoadcase, Double refDP);",
"public void setTotalAbsencePercentage(double totalAbsencePercentage) {\n //this.totalAbsencePercentageProperty.set(Math.round(totalAbsencePercentage * 100.0) / 100.0);\n this.totalAbsencePercentageProperty.set(totalAbsencePercentage);\n }",
"void setDeviation(double deviation);",
"public void setDx(double dx1) {\n this.dx = dx1;\n }",
"public void set(double d);",
"public void setInclinationDelta(double value) {\n this.inclinationDelta = value;\n }",
"public void changeDy() {\n this.dyVelocity = -dyVelocity;\n }",
"public void setiD(int iD) {\n this.iD = iD;\n }",
"public void setDamping(float ratio) { \n \tmouseJointDef.dampingRatio = ratio; \n }",
"public void setMinutesPerDay(Number minutesPerDay)\r\n {\r\n if (minutesPerDay != null)\r\n {\r\n m_minutesPerDay = minutesPerDay;\r\n }\r\n }",
"public void setDenom(int denom)\n\t{\n\t\tthis.denom = denom;\n\t}",
"public void setDy(double dy1) {\n this.dy = dy1;\n }",
"public void setAmountOfDeformation (int deformation)\n\t{\n\t\tmAmountOfDeformation = deformation;\n\t}",
"public void changeDx() {\n this.dxVelocity = -dxVelocity;\n this.dxVelocity = this.dxVelocity + (this.dxVelocity / 10);\n }",
"public abstract void setDecimation(float decimation);",
"public void setProbMut(double d){\n if ((d < 0) || (d > 1)){\n throw new IllegalArgumentException(\"Mutation probability cannot be less than 0 or greater than 1.\");\n }\n mutationProb = d;\n }",
"public void setDy(int dy) {\n this.dy = dy;\n }",
"public void setEdad(Integer edad)\r\n/* 203: */ {\r\n/* 204:371 */ this.edad = edad;\r\n/* 205: */ }",
"public Builder setD(int value) {\n bitField0_ |= 0x00000001;\n d_ = value;\n onChanged();\n return this;\n }",
"public void setDietTreatment(DietTreatmentBO dietTreatment)\n {\n _dietTreatment = dietTreatment;\n _model.setDietTreatment(dietTreatment.getModel());\n }",
"public void setChanPerPen(int chanPerPen){\n this.mFarm.setChanPerPen(chanPerPen);\n }",
"public void setDEPRECIATION_AMT(BigDecimal DEPRECIATION_AMT) {\r\n this.DEPRECIATION_AMT = DEPRECIATION_AMT;\r\n }",
"public void volumeAdjust(double delta)\n {\n if(AudioDetector.getInstance().isNoAudio())\n {\n return;\n }\n\n musicPlayer.setVolume(musicPlayer.getVolume() + delta);\n Log.add(\"[MUSIC]\\tVolume adjusted by: \" + delta);\n }",
"public void setDiameter(int diameter) {\n circleDiameter = diameter;\n\n }",
"public void setDamage(int d) {\r\n this.damage = d;\r\n }",
"protected void setDpc(int dpc) {\n this.dpc = dpc;\n }",
"public void setUniformMutationRatio(double delta){\n this.delta = delta;\n }",
"@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_FLOAT,\n defaultValue = \"4.32\")\n @SimpleProperty\n public void WheelDiameter(float wheelDiameter) {\n this.wheelDiameter = wheelDiameter;\n }",
"public void setPmd(MmdPmdModel i_pmd, IMmdDataIo i_io) throws MmdException\r\n\t{\r\n\t\t_current.setPmd(i_pmd,i_io);\r\n\t}",
"public void setDebut(int d) {\n\t\tthis.debut = d;\n\t}",
"public void setDEAL_AMOUNT(BigDecimal DEAL_AMOUNT) {\r\n this.DEAL_AMOUNT = DEAL_AMOUNT;\r\n }",
"@Override\n public void setDistancePerRevolution(double dpr, int upr) {\n this._distPerRevolution = dpr;\n }",
"public void adjust()\n {\n }",
"public DampingParam() {\n super(NAME, UNITS);\n double damping = 5;\n DoubleDiscreteConstraint dampingConstraint =\n new DoubleDiscreteConstraint();\n dampingConstraint.addDouble(damping);\n setValue(damping); // set this hear so current value doesn't cause\n // problems when setting the constraint\n dampingConstraint.setNonEditable();\n setConstraint(dampingConstraint);\n setInfo(INFO);\n setDefaultValue(damping);\n setNonEditable();\n }",
"public void adjustmentValueChanged(AdjustmentEvent e) {\n }",
"public LocaleDpFormatter(int dp) {\r\n // mNf.setMinimumFractionDigits(dp);\r\n mNf.setMaximumFractionDigits(dp);\r\n }",
"public void setDmg(int enemyDmg){\r\n this.enemyDmg = enemyDmg;\r\n }",
"public void setBaselineDelta(double d)\r\n {\r\n baselineDelta = d;\r\n }",
"public void setPed(int value) {\n this.ped = value;\n }",
"private void setNbDiamond(int nbDiamond) { this.nbDiamond = nbDiamond; }",
"public void setGapDegreeProvider(DegreeProvider gapDegreeProvider) {\n this.gapDegreesProvider = gapDegreeProvider;\n resetItems();\n }",
"public void setPadre(java.lang.String newPadre) {\n\t\tif (instanceExtension.needValuesOnMarkDirty())\n\t\t\tinstanceExtension.markDirty(0,getPadre(),newPadre);\n\t\telse\n\t\t\tinstanceExtension.markDirty(0);\n\t\tdataCacheEntry.setPadre(newPadre);\n\t}",
"public void setMpdSettings(MpdSettings mpdSettings) {\n this.mpdSettings = mpdSettings;\n }",
"public void setDecayRate(double newDecayRate ){\n\n decayRate= newDecayRate;\n}",
"public void setPeriod(AdjustmentPeriodTypeId value) {\n this.period = value;\n }",
"public void setDia(int dia){\n if(dia > 31 || dia < 0){\n System.out.println(\"Dia inválido\");\n }else {\n this.dia = dia;\n }\n }",
"private int adjustInsetForScale(int inset, float dipScale) {\n return (int) Math.ceil(inset / dipScale);\n }",
"public void setProtein(double protein) {\n\t\tthis.protein = protein;\n\t}",
"void setVariation(double variation);",
"public void setPeriod(double value) {\n this.period = value;\n }",
"public void setP(Double p);",
"public void setMargin(int margin) {\n mMarginPx = margin;\n }",
"public void setDOSE(java.lang.Double DOSE) {\n this.DOSE = DOSE;\n }",
"public double getDm() {\n return dm;\n }",
"public void setIdexped(Number value)\n {\n setAttributeInternal(IDEXPED, value);\n }"
]
| [
"0.6724869",
"0.56387115",
"0.5532573",
"0.5444755",
"0.52778214",
"0.5264014",
"0.51982373",
"0.51979476",
"0.51326746",
"0.512051",
"0.50922966",
"0.50740546",
"0.50674903",
"0.5065336",
"0.50456583",
"0.5007522",
"0.49995488",
"0.4921421",
"0.48879412",
"0.4871844",
"0.4842064",
"0.4835822",
"0.48343235",
"0.48318678",
"0.4810599",
"0.48059845",
"0.47788256",
"0.4774933",
"0.4734714",
"0.47336864",
"0.47281438",
"0.47164282",
"0.47053525",
"0.46944448",
"0.46940997",
"0.4685408",
"0.4675824",
"0.46674037",
"0.46668607",
"0.46628845",
"0.4660793",
"0.46510288",
"0.4644399",
"0.46339697",
"0.46284547",
"0.46210504",
"0.4618037",
"0.46152398",
"0.46107605",
"0.45949852",
"0.45783412",
"0.45750734",
"0.45687038",
"0.4560742",
"0.45586047",
"0.45553058",
"0.45541054",
"0.4553253",
"0.4541998",
"0.45379597",
"0.45371363",
"0.45292023",
"0.45229873",
"0.45112705",
"0.45016107",
"0.44937018",
"0.44934914",
"0.4492904",
"0.44920346",
"0.4489388",
"0.44869384",
"0.4477096",
"0.44756785",
"0.44700405",
"0.44530752",
"0.44530737",
"0.44476074",
"0.44464746",
"0.44442078",
"0.4437595",
"0.443702",
"0.44280073",
"0.44133735",
"0.44076234",
"0.43820652",
"0.438064",
"0.43736222",
"0.43736133",
"0.4373383",
"0.43698275",
"0.435816",
"0.435761",
"0.43561032",
"0.43550834",
"0.43540046",
"0.4350905",
"0.43449906",
"0.4339664",
"0.43386588",
"0.43383762"
]
| 0.8202134 | 0 |
This method returns the traveler's cell phone number | @Column(name = "CELL_PH_NUM", length = 10)
public String getCellPhoneNumber() {
return cellPhoneNumber;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCellphone() {\n return cellphone;\n }",
"java.lang.String getPhonenumber();",
"@Override\n public java.lang.String getCellPhone() {\n return _entityCustomer.getCellPhone();\n }",
"public java.lang.String getTelphone () {\r\n\t\treturn telphone;\r\n\t}",
"java.lang.String getPhone();",
"public String getTelphone() {\n return telphone;\n }",
"public String getTelphone() {\n return telphone;\n }",
"public String getTelphone() {\n return telphone;\n }",
"java.lang.String getUserPhone();",
"public String getTelNo()\r\n\t{\r\n\t\treturn this.telNo;\r\n\t}",
"java.lang.String getPhoneNumber();",
"java.lang.String getPhoneNumber();",
"java.lang.String getPhoneNumber();",
"public String getTelNo() {\n return telNo;\n }",
"public String getTelNo() {\n return telNo;\n }",
"public String returnPhoneNumber() {\n\t\treturn this.registration_phone.getAttribute(\"value\");\r\n\t}",
"@Override\n public String getPhoneNumber() {\n\n if(this.phoneNumber == null){\n\n this.phoneNumber = TestDatabase.getInstance().getClientField(token, id, \"phoneNumber\");\n }\n\n return phoneNumber;\n }",
"public java.lang.String getTEL_NUMBER()\n {\n \n return __TEL_NUMBER;\n }",
"public String getPhoneNumber(){\n\t\t \n\t\t TelephonyManager mTelephonyMgr;\n\t\t mTelephonyMgr = (TelephonyManager)\n\t\t activity.getSystemService(Context.TELEPHONY_SERVICE); \n\t\t return mTelephonyMgr.getLine1Number();\n\t\t \n\t\t}",
"@Override\n public String getphoneNumber() {\n return ((EditText)findViewById(R.id.phoneNumberUserPage)).getText().toString().trim();\n }",
"public String getCurrentCellid() {\n String cellidString = null;\n if (this.mTelephonyManager != null) {\n CellLocation mCellLocation = this.mTelephonyManager.getCellLocation();\n if (mCellLocation != null) {\n int type;\n if (mCellLocation instanceof CdmaCellLocation) {\n type = 1;\n Log.e(MessageUtil.TAG, \"getCurrentCellid type type = PHONE_TYPE_CDMA\");\n } else if (mCellLocation instanceof GsmCellLocation) {\n type = 2;\n Log.e(MessageUtil.TAG, \"getCurrentCellid type type = PHONE_TYPE_GSM\");\n } else {\n type = 0;\n }\n int cellid;\n switch (type) {\n case 1:\n Log.e(MessageUtil.TAG, \"getCurrentCellid type is PHONE_TYPE_CDMA\");\n CdmaCellLocation cdmaCellLocation = (CdmaCellLocation) mCellLocation;\n if (cdmaCellLocation != null) {\n int systemid = cdmaCellLocation.getSystemId();\n int networkid = cdmaCellLocation.getNetworkId();\n cellid = cdmaCellLocation.getBaseStationId();\n if (systemid >= 0 && networkid >= 0 && cellid >= 0) {\n cellidString = Integer.toString(systemid) + Integer.toString(networkid) + Integer.toString(cellid);\n Log.e(MessageUtil.TAG, \"getCurrentCellid PHONE_TYPE_CDMA cellidString = \" + cellidString);\n break;\n }\n return null;\n }\n break;\n case 2:\n Log.e(MessageUtil.TAG, \"getCurrentCellid type is PHONE_TYPE_GSM\");\n GsmCellLocation gsmCellLocation = (GsmCellLocation) mCellLocation;\n if (gsmCellLocation != null) {\n String plmn = this.mTelephonyManager.getNetworkOperator();\n cellid = gsmCellLocation.getCid();\n if (plmn != null && cellid >= 0) {\n cellidString = plmn + Integer.toString(cellid);\n Log.e(MessageUtil.TAG, \"getCurrentCellid PHONE_TYPE_GSM cellidString = \" + cellidString);\n break;\n }\n return null;\n }\n break;\n default:\n Log.e(MessageUtil.TAG, \"getCurrentCellid type is error\");\n break;\n }\n }\n return null;\n }\n Log.e(MessageUtil.TAG, \"getCurrentCellid mTelephonyManager == null\");\n return cellidString;\n }",
"public synchronized String getTelephoneNumber()\r\n {\r\n return telephoneNumber;\r\n }",
"public java.lang.String getTelePhone() {\r\n return telePhone;\r\n }",
"public java.lang.String getTel() {\r\n return localTel;\r\n }",
"public String getMyPhoneNumber() {\n return ((TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE))\n .getLine1Number();\n }",
"public String getPhone() {\r\n // Bouml preserved body begin 00040C82\r\n\t return phoneNumber;\r\n // Bouml preserved body end 00040C82\r\n }",
"public String getPhoneNo() {\n return (String)getAttributeInternal(PHONENO);\n }",
"public String getPhoneNum()\r\n {\r\n\treturn phoneNum;\r\n }",
"public String getTel() {\r\n return tel;\r\n }",
"public String getTel() {\n return tel;\n }",
"public String getTel() {\n return tel;\n }",
"public String getTel() {\n return tel;\n }",
"public String getTel() {\n return tel;\n }",
"public String getTel() {\n return tel;\n }",
"public String getTel() {\n return tel;\n }",
"public String getTel() {\n return tel;\n }",
"public String getTel() {\n return tel;\n }",
"public String getTel() {\n return tel;\n }",
"public long getPhoneNumber() {\r\n\t\treturn phoneNumber;\r\n\t}",
"public java.lang.String getContactPhoneNumber()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTPHONENUMBER$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public final String getPhone() {\n return phone;\n }",
"public String getTelephone() {\n return (String) get(\"telephone\");\n }",
"public String getPhone()\n\t{\n\t\treturn getPhone( getSession().getSessionContext() );\n\t}",
"public String getPhone()\n\t{\n\t\treturn getPhone( getSession().getSessionContext() );\n\t}",
"private String getMyPhoneNO() {\n String mPhoneNumber;\n TelephonyManager tMgr = (TelephonyManager) this.getActivity().getSystemService(Context\n .TELEPHONY_SERVICE);\n mPhoneNumber = tMgr.getLine1Number();\n if(mPhoneNumber == null)\n mPhoneNumber = \"+NoNotFound\";\n return mPhoneNumber;\n }",
"int getPhone();",
"public java.lang.String getPhone () {\n\t\treturn phone;\n\t}",
"public Long getHome_phone();",
"public Integer getTel() {\n return tel;\n }",
"public String getPhonenumber() {\n return phonenumber;\n }",
"public String getphoneNum() {\n\t\treturn _phoneNum;\n\t}",
"public String getSrcCellPhone() {\r\n return (String) getAttributeInternal(SRCCELLPHONE);\r\n }",
"public long getPassengerNumber() {\n\t\treturn _tempNoTiceShipMessage.getPassengerNumber();\n\t}",
"public String getWorkTelephone() {\n return (String)getAttributeInternal(WORKTELEPHONE);\n }",
"public String getPhonenumber() {\n\t\treturn phonenumber;\n\t}",
"public java.lang.String getPhone_number() {\n return phone_number;\n }",
"public String getUserPhone() {\r\n return userPhone;\r\n }",
"public java.lang.String getShipAgencyPhone() {\n\t\treturn _tempNoTiceShipMessage.getShipAgencyPhone();\n\t}",
"public String getLocationNumber()\n\t{\n\t\tString locationNo = getContent().substring(OFF_ID27_LOCATION, OFF_ID27_LOCATION + LEN_ID27_LOCATION) ;\n\t\treturn (locationNo);\n\t}",
"public String getPhoneNum()\r\n {\r\n return phoneNum;\r\n }",
"private String getVehicleRegNumber() {\n LOGGER.info(\"Please type the vehicle registration number \"\n + \"and press enter key\");\n return inputReaderUtil.readVehicleRegistrationNumber();\n }",
"public String getTelCode()\r\n\t{\r\n\t\treturn this.telCode;\r\n\t}",
"public String getAnserTelphone() {\r\n return anserTelphone;\r\n }",
"public String getPhone() {\r\n\t\treturn this.phone;\r\n\t}",
"@Override\r\n\tpublic String getPhone() {\n\t\treturn phone;\r\n\t}",
"public String getTelephoneNumber() {\n return telephoneNumber;\n }",
"public String getPhoneNum() {\n return phoneNum;\n }",
"public String getPhoneNum() {\n return phoneNum;\n }",
"public String getPhoneNum() {\n return phoneNum;\n }",
"public Long getMobile_phone();",
"public String getTelefone() {\n\t\treturn telefone;\n\t}",
"public String getSenderPhoneNumber();",
"public String getUserTel() {\n return userTel;\n }",
"public String getUserTel() {\n return userTel;\n }",
"@Override\n\tpublic String getMobileNum() {\n\t\treturn get.getMobileNum();\n\t}",
"public String getUserphone() {\n return userphone;\n }",
"public java.lang.CharSequence getPhoneNumber() {\n return phone_number;\n }",
"public String getPhone() {\n\t\treturn phone;\n\t}",
"public String getTelephoneNumber() {\n\t\treturn telephoneNumber;\n\t}",
"public String getSjrTel() {\r\n\t\treturn sjrTel;\r\n\t}",
"public java.lang.String getPhone() {\n return phone;\n }",
"public Integer getPhonenumber() {\n return phonenumber;\n }",
"public String getPhone_number() {\n return phone_number;\n }",
"public String Phone() throws Exception {\r\n\t\t\ttry {\r\n\t\t\t\telement = driver.findElement(phone);\r\n\t\t\t\tStr_phoneno = element.getText();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new Exception(\"Phone Number NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn Str_phoneno;\r\n\t\t\t\r\n\t\t}",
"public int getPhoneNumber() {\n\t\treturn phoneNumber;\n\t}",
"public String getTelephone() {\n return telephone;\n }",
"public String getTelephone() {\n return telephone;\n }",
"public java.lang.CharSequence getPhoneNumber() {\n return phone_number;\n }",
"public java.lang.String getPhone() {\n java.lang.Object ref = phone_;\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 phone_ = s;\n }\n return s;\n }\n }",
"public String getTelefone() {\n return telefone;\n }",
"public java.lang.String getReceiverPhone() {\r\n return receiverPhone;\r\n }",
"public java.lang.String getPhone() {\n java.lang.Object ref = phone_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n phone_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getMobile_number() {\n return mobile_number;\n }",
"public java.lang.String getPhoneNumber() {\n java.lang.Object ref = phoneNumber_;\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 phoneNumber_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getInternalphone() {\n\treturn internalphone;\n}",
"public java.lang.String getPhoneNumber() {\n java.lang.Object ref = phoneNumber_;\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 phoneNumber_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public long getPhone() {\n return phone;\n }",
"public java.lang.String getShipOwnerPhone() {\n\t\treturn _tempNoTiceShipMessage.getShipOwnerPhone();\n\t}",
"public String getPhone(){\n\t\treturn phone;\n\t}",
"public String getPhoneNumber() throws NullPointerException {\n\n\t\tString phoneNumber = user.getPhoneNumber();\n\t\tif (phoneNumber == null || phoneNumber.isEmpty()) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\n\t\treturn Utils.formatPhoneNumber(phoneNumber);\n\t}"
]
| [
"0.7550241",
"0.7162453",
"0.70833486",
"0.6927609",
"0.68055284",
"0.6779731",
"0.6779731",
"0.6779731",
"0.6743958",
"0.6742882",
"0.67353916",
"0.67353916",
"0.67353916",
"0.67066425",
"0.669804",
"0.6669323",
"0.6648726",
"0.6621122",
"0.65991145",
"0.6597463",
"0.65727615",
"0.6560154",
"0.6556994",
"0.65118295",
"0.65098906",
"0.6503334",
"0.6498901",
"0.64734477",
"0.6445041",
"0.6418943",
"0.6418943",
"0.6418943",
"0.6418943",
"0.6418943",
"0.6418943",
"0.6418943",
"0.6418943",
"0.6418943",
"0.6415919",
"0.6388178",
"0.63723946",
"0.636942",
"0.6365181",
"0.6365181",
"0.63589555",
"0.6357125",
"0.6353287",
"0.63415533",
"0.6340125",
"0.63398546",
"0.6322628",
"0.63177574",
"0.6316655",
"0.63087606",
"0.630628",
"0.6281917",
"0.6263427",
"0.62601984",
"0.62538064",
"0.6253072",
"0.6249748",
"0.6244554",
"0.6238837",
"0.62191105",
"0.6211807",
"0.621152",
"0.62094414",
"0.62094414",
"0.62094414",
"0.62042063",
"0.62041074",
"0.61964023",
"0.6193602",
"0.6193602",
"0.618961",
"0.6189354",
"0.617781",
"0.61754",
"0.61751735",
"0.61679983",
"0.6159137",
"0.6155749",
"0.6151501",
"0.6150061",
"0.61464024",
"0.6141109",
"0.6141109",
"0.6133977",
"0.6122842",
"0.61157745",
"0.6111518",
"0.6109482",
"0.6101159",
"0.6095845",
"0.60937077",
"0.6092945",
"0.60912967",
"0.60881144",
"0.6086767",
"0.608672"
]
| 0.67270434 | 13 |
This method sets the cell phone of the traveler | public void setCellPhoneNumber(String cellPhoneNumber) {
this.cellPhoneNumber = cellPhoneNumber;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCellphone(String cellphone) {\n this.cellphone = cellphone;\n }",
"@Override\n public void setCellPhone(java.lang.String cellPhone) {\n _entityCustomer.setCellPhone(cellPhone);\n }",
"public void setPhone(String phone)\r\n/* 46: */ {\r\n/* 47:58 */ this.phone = phone;\r\n/* 48: */ }",
"public String getCellphone() {\n return cellphone;\n }",
"void setPhone(int phone);",
"public void setPhone(String phone);",
"public void setTelphone(String telphone) {\n this.telphone = telphone;\n }",
"public void setTelphone(String telphone) {\n this.telphone = telphone;\n }",
"public void setSrcCellPhone(String value) {\r\n setAttributeInternal(SRCCELLPHONE, value);\r\n }",
"public void setPhone(String phone) {\n this.mPhone = phone;\n }",
"public void setPhone(String phone) {\r\n // Bouml preserved body begin 00041002\r\n\t this.phoneNumber = phone;\r\n // Bouml preserved body end 00041002\r\n }",
"public void set_phone(String Phone)\n {\n phone =Phone;\n }",
"void setPhone(String ph){ // SETTER METHOD\n\t\tif(ph.length()>10 && ph.length()<=13){\n\t\t\tphone = ph; // writing the data based on some rules\n\t\t}else{\n\t\t\tphone = \"NA\";\n\t\t\tSystem.out.println(\"Please Enter Correct Phone Number\");\n\t\t}\n\t}",
"public void setPhone(String phone)\n {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\r\n this.phone = phone;\r\n }",
"public void setPhone(String phone){\n\t\tthis.phone = phone;\n\t}",
"public void setPhone(long phone) {\n this.phone = phone;\n }",
"public void setPhone( String phone ) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public final void setPhone(final String phoneNew) {\n this.phone = phoneNew;\n }",
"public void setTelphone (java.lang.String telphone) {\r\n\t\tthis.telphone = telphone;\r\n\t}",
"public void setPhone(String newPhone) {\r\n\t\tthis.phone = newPhone;\r\n\t}",
"public void setPhone(String mPhone) {\n this.mPhone = mPhone;\n }",
"public abstract void setPhone2(String sValue);",
"public void testSetCell() {\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(9, 9);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(1, 0);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.WALL, maze1.getCell(test));\n test = new Location(0, 1);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.WALL, maze1.getCell(test));\n \n \n \n maze1.setCell(test, MazeCell.CURRENT_PATH);\n assertEquals(MazeCell.CURRENT_PATH, maze1.getCell(test));\n maze1.setCell(test, MazeCell.FAILED_PATH);\n assertEquals(MazeCell.FAILED_PATH, maze1.getCell(test));\n \n }",
"public void setTelePhone(java.lang.String telePhone) {\r\n this.telePhone = telePhone;\r\n }",
"public void setTelefone(String telefone) {\n String oldTelefone = this.telefone;\n this.telefone = telefone;\n propertyChangeSupport.firePropertyChange(PROP_TELEFONE, oldTelefone, telefone);\n }",
"public void setPhone(final String phone) {\n this.phone = phone;\n }",
"public abstract void setPhone1(String sValue);",
"public void setTel(Integer tel) {\n this.tel = tel;\n }",
"public void setPhone(String phonenum) {\n\t\tPHONE = phonenum;\n\t}",
"public void setTelphone(String telphone) {\n this.telphone = telphone == null ? null : telphone.trim();\n }",
"public void setPhone(final String value)\n\t{\n\t\tsetPhone( getSession().getSessionContext(), value );\n\t}",
"public void setPhone(final String value)\n\t{\n\t\tsetPhone( getSession().getSessionContext(), value );\n\t}",
"public void setTelephone(String telephone) {\n\t\tthis.telephone = telephone;\n\t}",
"public void setPhone(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(PHONE_PROP.get(), value);\n }",
"public void setHome_phone(Long home_phone);",
"public void getPhone(Phone newPhone)\n {\n currentPhone = newPhone;\n }",
"public void setTel(java.lang.String param) {\r\n localTelTracker = param != null;\r\n\r\n this.localTel = param;\r\n }",
"public void setPhone(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(PHONE_PROP.get(), value);\n }",
"public void setPhone(java.lang.String phone) {\n this.phone = phone;\n }",
"public void setUserPhone( String userPhone )\n {\n this.userPhone = userPhone;\n }",
"public void setTel(String tel) {\n this.tel = tel;\n }",
"public void setTel(String tel) {\n this.tel = tel;\n }",
"public void setTel(String tel) {\n this.tel = tel;\n }",
"public void setTel(String tel) {\n this.tel = tel;\n }",
"public void setTEL_NUMBER(java.lang.String value)\n {\n if ((__TEL_NUMBER == null) != (value == null) || (value != null && ! value.equals(__TEL_NUMBER)))\n {\n _isDirty = true;\n }\n __TEL_NUMBER = value;\n }",
"public Cellphone (int number, String name, double price, int phoneId, double phoneSize, String model)\r\n {\r\n super(number, price, name);\r\n this.macNumber = phoneId;\r\n this.screenSize = phoneSize;\r\n this.modelType = model;\r\n }",
"public GoldenContactBuilder phone(String value) {\n phone = value;\n return this;\n }",
"@Generated(hash = 1187165439)\n public void setPhone(Phone phone) {\n synchronized (this) {\n this.phone = phone;\n phoneId = phone == null ? null : phone.getId();\n phone__resolvedKey = phoneId;\n }\n }",
"@Override\n public void setPhone(java.lang.String phone) {\n _entityCustomer.setPhone(phone);\n }",
"public void setMobile_phone(Long mobile_phone);",
"void setPhone(String phone) throws IllegalArgumentException;",
"public void setPhone(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, PHONE,value);\n\t}",
"public void setPhone(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, PHONE,value);\n\t}",
"public void setPhone (java.lang.String phone) {\n\t\tthis.phone = phone;\n\t}",
"public void setMobliephone(String mobliephone) {\n this.mobliephone = mobliephone;\n }",
"public void setWorkTelephone(String value) {\n setAttributeInternal(WORKTELEPHONE, value);\n }",
"public void setPhone(String phone) {\n\t\tthis.phone = phone == null ? null : phone.trim();\n\t}",
"public void setPhone(String phone) {\n\t\tthis.phone = StringUtils.trimString( phone );\n\t}",
"public void setCell(Cell cell)\n {\n myCell = cell;\n }",
"public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }",
"public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }",
"public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }",
"public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }",
"public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }",
"public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }",
"public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }",
"public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }",
"public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }",
"public void setTelNo(String telNo) {\n this.telNo = telNo;\n }",
"@Override\n public java.lang.String getCellPhone() {\n return _entityCustomer.getCellPhone();\n }",
"public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }",
"public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }",
"public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }",
"public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }",
"public Builder setPhone(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n phone_ = value;\n onChanged();\n return this;\n }",
"public void setCell(final Cell location) {\r\n this.locateCell.removeInhabit();\r\n locateCell = location;\r\n location.setInhabit(this);\r\n }",
"public void setTelNo(String telNo) {\n this.telNo = telNo;\n }",
"public void setTelefono(String telefono) {\r\n\t\tif(telefono.length() == 9){\r\n\t\tthis.telefono = telefono;\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Error telefono\");\r\n\t\t}\r\n\t}",
"public abstract void setPhone3(String sValue);",
"@Override\n\tpublic void add(CelPhone phone) {\n\t\t\n\t}",
"public void testSetCell()\r\n {\r\n board.loadBoardState(\"OOOO\",\r\n \"OOOO\",\r\n \"O+OO\",\r\n \"OOOO\");\r\n board.setCell(1, 2, MineSweeperCell.FLAGGED_MINE);\r\n assertBoard(board, \"OOOO\",\r\n \"OOOO\",\r\n \"OMOO\",\r\n \"OOOO\");\r\n }",
"public void setPhoneNumber(String phone_number){\n this.phone_number = phone_number;\n }",
"@Override\r\n\tpublic void setPhone(String phone) {\n\t\tif (phone == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Null argument is not allowed\");\r\n\t\t}\r\n\t\tif (phone.equals(\"\")) {\r\n\t\t\tthrow new IllegalArgumentException(\"Empty argument is not allowed\");\r\n\t\t}\r\n\t\tthis.phone = phone;\r\n\t}",
"@Column(name = \"CELL_PH_NUM\", length = 10)\n public String getCellPhoneNumber() {\n return cellPhoneNumber;\n }",
"public void setMobile(int number) {\n\t\t\tthis.Mobile = number;\r\n\t\t}",
"public void updatePhoneNumber(String newPhoneNum)\r\n {\r\n phoneNum = newPhoneNum;\r\n }",
"public void setTelefone(String telefone) {\n Consistencia.consisteNaoNuloNaoVazio(telefone, \"telefone\");\n\n this.telefone = telefone;\n }",
"public void setTelNo(String telNo)\r\n\t{\r\n\t\tthis.telNo = telNo;\r\n\t}"
]
| [
"0.7411568",
"0.71442974",
"0.6499377",
"0.64362097",
"0.6413917",
"0.63383055",
"0.6325262",
"0.6325262",
"0.6191756",
"0.61472476",
"0.61439127",
"0.6090196",
"0.6046853",
"0.6038085",
"0.6033112",
"0.6017294",
"0.6016513",
"0.6010868",
"0.5973643",
"0.5973643",
"0.5973643",
"0.5973643",
"0.5973643",
"0.5973643",
"0.5973643",
"0.5973643",
"0.5973643",
"0.5973643",
"0.5973643",
"0.5972327",
"0.59602654",
"0.5952014",
"0.59264994",
"0.59126884",
"0.59117866",
"0.5908204",
"0.59067017",
"0.5903064",
"0.5898174",
"0.587788",
"0.58717895",
"0.585358",
"0.5853358",
"0.5853358",
"0.5838483",
"0.583032",
"0.5828997",
"0.582861",
"0.5816586",
"0.58083224",
"0.57905585",
"0.5780663",
"0.57713205",
"0.57713205",
"0.57713205",
"0.57713205",
"0.57688004",
"0.5738488",
"0.5721839",
"0.57145035",
"0.5707302",
"0.568477",
"0.56826186",
"0.5669841",
"0.5669841",
"0.56655085",
"0.5654632",
"0.56498295",
"0.56214166",
"0.5614182",
"0.5599907",
"0.5594216",
"0.5594216",
"0.55936193",
"0.55936193",
"0.55936193",
"0.55936193",
"0.55936193",
"0.55936193",
"0.55936193",
"0.55872744",
"0.5571107",
"0.5569258",
"0.5569258",
"0.5569258",
"0.5569258",
"0.5565504",
"0.55379647",
"0.5520292",
"0.5518692",
"0.5492369",
"0.54788965",
"0.5475346",
"0.5461933",
"0.5461854",
"0.5437938",
"0.5429103",
"0.5428888",
"0.5425392",
"0.5416367"
]
| 0.64057213 | 5 |
This method gets the traveler's familiarity with the region | @Column(name = "rgn_famil")
public String getRegionFamiliarity() {
return regionFamiliarity;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRegionFamiliarity(String regionFamiliarity) {\n this.regionFamiliarity = regionFamiliarity;\n }",
"String getPersonality();",
"int getRegionValue();",
"kr.pik.message.Profile.HowMe.Region getRegion();",
"public TypeOfRegion getRegion();",
"public EnumRegion getRegion()\n {\n return region;\n }",
"public MineralLocation getMineralLocation(RobotOrientation orientation){\n MineralLocation absoluteLocation = MineralLocation.Center;\n //if tfod failed to init, just return center\n //otherwise, continue with detection\n if(!error) {\n List<Recognition> updatedRecognitions = tfod.getRecognitions();\n List<Recognition> filteredList = new ArrayList<Recognition>();\n\n /*for(Recognition recognition : updatedRecognitions){\n if(recognition.getHeight() < recognition.getImageHeight() * 3 / 11){\n filteredList.add(recognition);\n }\n }*/\n //Variabes to store two mins\n Recognition min1 = null;\n Recognition min2 = null;\n //Iterate through all minerals\n for(Recognition recognition : updatedRecognitions){\n double height = recognition.getHeight();\n if (min1 == null){\n min1 = recognition;\n }\n else if(min2 == null){\n min2 = recognition;\n }\n else if(height < min1.getHeight()){\n min1 = recognition;\n }\n else if(height < min2.getHeight()){\n min2 = recognition;\n }\n if (min1 != null && min2 != null){\n if(min1.getHeight() > min2.getHeight()){\n Recognition temp = min1;\n min1 = min2;\n min2 = temp;\n }\n }\n }\n filteredList.add(min1);\n filteredList.add(min2);\n int goldMineralX = -1;\n int silverMineral1X = -1;\n int silverMineral2X = -1;\n //Three Mineral Algorithm\n if(orientation == RobotOrientation.Center){\n for (Recognition recognition : filteredList) {\n if (recognition.getLabel().equals(LABEL_GOLD_MINERAL)) {\n goldMineralX = (int) recognition.getLeft();\n } else if (silverMineral1X == -1) {\n silverMineral1X = (int) recognition.getLeft();\n } else {\n silverMineral2X = (int) recognition.getLeft();\n }\n }\n if (goldMineralX != -1 && silverMineral1X != -1 && silverMineral2X != -1) {\n if (goldMineralX < silverMineral1X && goldMineralX < silverMineral2X) {\n return MineralLocation.Left;\n } else if (goldMineralX > silverMineral1X && goldMineralX > silverMineral2X) {\n return MineralLocation.Right;\n } else {\n return MineralLocation.Center;\n }\n }\n }\n else{//Two Mineral Algorithm\n //looks at each detected object, obtains \"the most\" gold and silver mineral\n float goldMineralConfidence = 0;\n float silverMineralConfidence = 0;\n for (Recognition recognition : updatedRecognitions) {\n String label = recognition.getLabel();\n float confidence = recognition.getConfidence();\n int location = (int) recognition.getLeft();\n if (label.equals(LABEL_GOLD_MINERAL)\n && confidence > goldMineralConfidence) {\n goldMineralX = location;\n goldMineralConfidence = confidence;\n } else if (label.equals(LABEL_SILVER_MINERAL)\n && confidence > silverMineralConfidence) {\n silverMineral1X = location;\n silverMineralConfidence = confidence;\n }\n }\n //using the two gold and silver object x locations,\n //obtains whether the gold mineral is on the relative left or the right\n boolean goldRelativeLeft;\n if (goldMineralX != -1 && silverMineral1X != -1) {\n if (goldMineralX < silverMineral1X) {\n goldRelativeLeft = true;\n } else {\n goldRelativeLeft = false;\n }\n // telemetry.addData(\"Relative\", goldRelativeLeft);\n //translates the relative location to an absolute location based off the orientation\n if (orientation == RobotOrientation.Left) {\n if (goldRelativeLeft) {\n absoluteLocation = MineralLocation.Left;\n } else {\n absoluteLocation = MineralLocation.Center;\n }\n //telemetry.addData(\"orientation\",absoluteLocation);\n } else {\n if (goldRelativeLeft) {\n absoluteLocation = MineralLocation.Center;\n } else {\n absoluteLocation = MineralLocation.Right;\n }\n // telemetry.addData(\"orientation\",\"fail\");\n }\n } //sees at least one silver (so not a reading from the wrong position, but no gold seen)\n else if(silverMineral1X != -1 && goldMineralX == -1){\n if(orientation == RobotOrientation.Left){\n absoluteLocation = MineralLocation.Right;\n }else if(orientation == RobotOrientation.Right){\n absoluteLocation = MineralLocation.Left;\n }\n }\n }\n\n }\n return absoluteLocation;\n }",
"IRegion getRegion();",
"int getIndividualStamina();",
"String getArrivalLocation();",
"public int getLand();",
"public Gel_BioInf_Models.File getRelevantRegions() {\n return relevantRegions;\n }",
"public Gel_BioInf_Models.File getRelevantRegions() {\n return relevantRegions;\n }",
"int getStamina();",
"public String getCheflieuregion() {\n return (String) getAttributeInternal(CHEFLIEUREGION);\n }",
"public String getValidRegionDesc();",
"java.lang.String getRegionCode();",
"public CoordinateRadius getRegion();",
"String getDepartureLocation();",
"public String getRegionFullName() {\n return regionFullName;\n }",
"java.lang.String getNextHopRegion();",
"java.lang.String getFlightCarrier();",
"PartyType getCarrierParty();",
"List<RegionalClassifierEntity> getItsListOfRegions();",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"@JsonIgnore public String getDepartureGate() {\n return (String) getValue(\"departureGate\");\n }",
"public FrillLoc getLocation() {\n return MyLocation;\n }",
"public InstitutionalParameter getFatherParamater() {\n return fatherParamater;\n }",
"public LocalRegion getRegion() {\n\t\treturn this.region;\n\t}",
"public Building getRoof();",
"public java.lang.String getREGION()\n {\n \n return __REGION;\n }",
"java.lang.String getRegisteredOfficeCity();",
"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 }",
"@Override\n\tpublic double fiyatlandir() {\n\t\treturn 7.95;\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 Region getRegion() {\n return region;\n }",
"org.hl7.fhir.String getCarrierHRF();",
"public Village getVillage() {\n/* 501 */ return this.village;\n/* */ }",
"public String getDepartureAirport();",
"public int getItuRegion() {\n return localItuRegion;\n }",
"java.lang.String getDepartureAirportCity();",
"private void computeFacing() {\n\t\tfacing = GeometryUtil.getAngle(p1, p2) + 90;\n\t}",
"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 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 }",
"@JsonIgnore public String getArrivalGate() {\n return (String) getValue(\"arrivalGate\");\n }",
"java.lang.String getArrivalAirportCity();",
"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 }",
"IRegion getLineInformation(int line) throws BadLocationException;",
"public String getRegion() {\n return this.region;\n }",
"String regionName();",
"String regionName();",
"String regionName();",
"String regionName();",
"@Override\n public int getDependentLocation(int loc) {\n switch (loc) {\n case LOC_RT:\n return LOC_RARM;\n case LOC_LT:\n return LOC_LARM;\n case LOC_LLEG:\n case LOC_LARM:\n case LOC_RLEG:\n case LOC_RARM:\n case LOC_HEAD:\n case LOC_CT:\n default:\n return LOC_NONE;\n }\n }",
"@Schema(description = \"The country or region imposing the tax.\")\n public String getTaxingRegion() {\n return taxingRegion;\n }",
"public int getC_Region_ID();",
"public List getZonasRegion(String feriadoRegion);",
"public String getRegion() {\n return region;\n }",
"RestaurantFullInfo getFullRestaurant();",
"public int getLocation()\r\n {\n }",
"public MasonGeometry getGeometry() {return agentLocation;}",
"@Override\r\n\tpublic String getFortune() {\n\t\t\r\n\t\treturn fortuneService.getFortune();\r\n\t}",
"String getFamily();",
"String getFamily();",
"private void travelTo(Location destination) \n\t{\n\t\tSystem.out.println(destination.name());\n\t\tif (destination == Location.Home) {\n\t\t\t\n\t\t\tif (role == Role.Attacker) {\n\t\t\t\t\n\t\t\t\tswitch(startingCorner) { \n\t\t\t\t\t/*case 1: travelTo(Location.X4); travelTo(Location.AttackBase); break;\n\t\t\t\t\tcase 2: travelTo(Location.X3); travelTo(Location.AttackBase); break;\n\t\t\t\t\tcase 3: case 4: travelTo(Location.AttackBase);*/\n\t\t\t\tcase 1: travelTo(Location.AttackBase); break;\n\t\t\t\tcase 2: travelTo(Location.AttackBase); break;\n\t\t\t\tcase 3: //travelTo(Location.X2);\n\t\t\t\t\t\ttravelTo(Location.AttackBase); break;\n\t\t\t\tcase 4: //travelTo(Location.X1);\n\t\t\t\t\t\ttravelTo(Location.AttackBase); break;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else if (role == Role.Defender) {\n\t\t\t\t\n\t\t\t\tswitch(startingCorner) {\n\t\t\t\t\tcase 1: //travelTo(Location.X4);\n\t\t\t\t\t\t\ttravelTo(Location.DefenseBase); break;\n\t\t\t\t\tcase 2: //travelTo(Location.X3);\n\t\t\t\t\t\t\ttravelTo(Location.DefenseBase); break;\n\t\t\t\t\tcase 3: travelTo(Location.DefWay3);\n\t\t\t\t\t\t\ttravelTo(Location.DefenseBase); break;\n\t\t\t\t\tcase 4: travelTo(Location.DefWay4);\n\t\t\t\t\t\t\ttravelTo(Location.DefenseBase); break;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t\telse if (destination == Location.BallPlatform)\n\t\t\tnavigator.travelTo(ballPlatform[0], ballPlatform[1]);\n\t\t\t\n\t\telse if (destination == Location.ShootingRegion)\n\t\t\tnavigator.travelTo(CENTER, 7 * 30.0); // we have to account for the case when there is an obstacle in the destination\n\t\t\t// also need to find a way of determining the y coordinate\n\n\t\telse if (destination == Location.AttackBase)\n\t\t\tnavigator.travelTo(ATTACK_BASE[0], ATTACK_BASE[1]); \n\t\t\n\t\telse if (destination == Location.DefenseBase)\n\t\t\tnavigator.travelTo(DEFENSE_BASE[0], DEFENSE_BASE[1]);\n\t\t\n\t\telse if (destination == Location.X1) \n\t\t\tnavigator.travelTo(X[0][0] * 30.0, X[0][1] * 30.0);\n\n\t\telse if (destination == Location.X2)\n\t\t\tnavigator.travelTo(X[1][0] * 30.0, X[1][1] * 30.0);\n\t\t\n\t\telse if (destination == Location.X3) \n\t\t\tnavigator.travelTo(X[2][0] * 30.0, X[2][1] * 30.0);\n\n\t\telse if (destination == Location.X4)\n\t\t\tnavigator.travelTo(X[3][0] * 30.0, X[3][1] * 30.0);\n\t\t\n\t\telse if (destination == Location.DefWay3)\n\t\t\tnavigator.travelTo(240, 240);\n\t\t\n\t\telse if (destination == Location.DefWay4)\n\t\t\tnavigator.travelTo(60, 240);\n\n\t\t\n\t\t// return from method only after navigation is complete\n\t\twhile (navigator.isNavigating())\n\t\t{\n\t\t\tSystem.out.println(\"destX: \" + navigator.destDistance[0] + \"destY: \" + navigator.destDistance[1]);\n\t\t\ttry {\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\t\t}\n\t\t\n\t}",
"public double ComputeBaseFare(){\n\t\tif(this.getFlightClass().equalsIgnoreCase(\"BC\")){\n\t\t\t\treturn this.ComputeDistance() * 0.5;\n\t\t}\n\t\telse if(this.getFlightClass().equalsIgnoreCase(\"EP\")){\n\t\t\treturn this.ComputeDistance() * 0.2;\n\t\t}\n\t\telse{\n\t\t\treturn this.ComputeDistance() * 0.15;\n\t\t}\n\t\t\n\t}",
"java.lang.String getDepartureAirport();",
"private static void readOhioRailRegions (ResourceBundle appRb, int[] countyFips) {\n\n logger.info(\"Reading Ohio Rail Regions\");\n TableDataSet railRegions = fafUtils.importTable(appRb.getString(\"rail.zone.definition\"));\n int highestFips = fafUtils.getHighestVal(countyFips);\n\n railRegionReference = new String[highestFips + 1];\n for (int row = 1; row <= railRegions.getRowCount(); row++) {\n int fips = (int) railRegions.getValueAt(row, \"fips\");\n String reg = railRegions.getStringValueAt(row, \"ohioRailRegion\");\n railRegionReference[fips] = reg;\n }\n listOfRailRegions = fafUtils.getUniqueListOfValues(railRegionReference);\n }",
"java.lang.String getTransitAirportCity();",
"public RegionManagementDetails getCompleteRegionDetails(String seasonId);",
"public int getArmourDefence() {\n return armourDefence;\n }",
"BodyPart getGearLocation();",
"public Rectangle2D.Float getRegion() {\n\t\t\treturn new Rectangle2D.Float(origin.x, origin.y, width, height);\n\t\t}",
"public int getRegionValue() {\n return region_;\n }",
"String getArcrole();",
"public void upgradeFamiliarity() {\n\t\tif (familiarity < MAX_FAMILIARITY) {\n\t\t\tfamiliarity++;\n\t\t}\n\t}",
"@Override\n\tpublic RentalLocation getRentalLocation() {\n\t\treturn rentalLocation;\n\t}",
"public CycFort getRelevancyRelationship () {\n return relevancyRelationship;\n }",
"public static float getNearbyScope(){\n return NEARBY_SCOPE_RADIUS;\n }",
"int getOccupation();",
"int getOccupation();",
"int getOccupation();",
"int getOccupation();",
"int getOccupation();",
"public MoverEntity getFormationLeader();",
"public Town getDroghedaLocation1() {\n\t\treturn new Town(\"Louth\");\r\n\t}",
"public void enterVehicleDetails (String strRegionValue)\r\n\t{\r\n\r\n\t\tif (strRegionValue.contains (\"UK\"))\r\n\t\t{\r\n\r\n\t\t\tthis.selectOwnership (strRegionValue);\r\n\t\t\tthis.selectAlarmType ();\r\n\t\t\tthis.selectTrackingDevice ();\r\n\t\t\tthis.selectVehicleUse ();\r\n\t\t\tthis.selectPriorInsurance (strRegionValue);\r\n\t\t\tthis.enterAnnualMilage ();\r\n\t\t\tthis.selectParkingLoc ();\r\n\r\n\t\t}\r\n\r\n\t\telse if (strRegionValue.contains (\"USA\"))\r\n\t\t{\r\n\t\t\tthis.selectOwnership (strRegionValue);\r\n\t\t\tthis.selectVehicleRegistrationState ();\r\n\t\t\tthis.EnterOdoMilage ();\r\n\t\t}\r\n\r\n\t}",
"public String ride() {\r\n return \"cantering\";\r\n }",
"public void chooseFortifyGivers(){\n gameState = GameState.FORTIFYGIVER;\n currentTerritoriesOfInterest = Player.getTerritoryStringArray(currentPlayer.getFortifyGivers());\n notifyObservers();\n }",
"protected float getFitness()\t\t\t{\treturn fitness;\t\t}",
"public String getArrivalAirport();",
"@Override\r\n\tpublic Town getDroghedaLocation() {\n\t\treturn new Town(\"36 Saint Laurence Street\");\r\n\t}",
"@Override\n\tpublic void office_location() {\n\t\tSystem.out.println(\"Office location is Gurgaon\");\n\t}"
]
| [
"0.5991221",
"0.57325304",
"0.5711238",
"0.5696765",
"0.56270784",
"0.5457563",
"0.54263335",
"0.540453",
"0.53828984",
"0.53546333",
"0.5337729",
"0.52982855",
"0.5261297",
"0.5260998",
"0.5233876",
"0.5211638",
"0.52050775",
"0.5200706",
"0.51988906",
"0.51709634",
"0.51618963",
"0.515639",
"0.51390034",
"0.5130762",
"0.5127364",
"0.5127364",
"0.5121558",
"0.5106829",
"0.51050377",
"0.50814176",
"0.5073041",
"0.50717205",
"0.50714475",
"0.50644636",
"0.50644636",
"0.50644636",
"0.506292",
"0.5057816",
"0.50492465",
"0.50440824",
"0.5038772",
"0.5036781",
"0.50314826",
"0.50232065",
"0.50170445",
"0.4999864",
"0.49990544",
"0.49990544",
"0.49990544",
"0.49990544",
"0.49990544",
"0.49891806",
"0.4986176",
"0.4981371",
"0.49720657",
"0.4970491",
"0.4969539",
"0.4969539",
"0.4969539",
"0.4969539",
"0.49615443",
"0.49602017",
"0.49590495",
"0.4955968",
"0.49552307",
"0.495061",
"0.49445426",
"0.49351615",
"0.4930599",
"0.49297118",
"0.49297118",
"0.4912089",
"0.48892093",
"0.488748",
"0.48790026",
"0.48754483",
"0.48667887",
"0.48581266",
"0.48553145",
"0.48514253",
"0.4843056",
"0.48405826",
"0.48402584",
"0.48395514",
"0.48334962",
"0.48230046",
"0.4815876",
"0.4815876",
"0.4815876",
"0.4815876",
"0.4815876",
"0.4812091",
"0.48026142",
"0.47956976",
"0.47881368",
"0.47825345",
"0.47824222",
"0.4782144",
"0.47809288",
"0.47805813"
]
| 0.6319525 | 0 |
This method sets the traveler's familiarity with the region | public void setRegionFamiliarity(String regionFamiliarity) {
this.regionFamiliarity = regionFamiliarity;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRegion(final TypeOfRegion region);",
"public void setRegion(EnumRegion region)\n {\n this.region = region;\n }",
"public void setRegion(String region);",
"public void setRegion(CoordinateRadius region);",
"public void setRegion(Region region) {\n this.region = region;\n }",
"public void setCurrentRegion(Region currentRegion) {\n\n this.currentRegion = currentRegion;\n }",
"public void upgradeFamiliarity() {\n\t\tif (familiarity < MAX_FAMILIARITY) {\n\t\t\tfamiliarity++;\n\t\t}\n\t}",
"private void setCurrentFacility(Point f){\n\t\t\n\t\t_currentFacility = f;\n\t\n\t}",
"void setVillage(Village aVillage) {\n/* 380 */ MineDoorPermission md = MineDoorPermission.getPermission(this.tilex, this.tiley);\n/* 381 */ if (this.village == null || !this.village.equals(aVillage)) {\n/* */ \n/* 383 */ if (this.doors != null)\n/* */ {\n/* 385 */ for (Door door : this.doors) {\n/* */ \n/* 387 */ if (door instanceof FenceGate) {\n/* */ \n/* 389 */ if (aVillage != null) {\n/* 390 */ aVillage.addGate((FenceGate)door); continue;\n/* 391 */ } if (this.village != null)\n/* 392 */ this.village.removeGate((FenceGate)door); \n/* */ } \n/* */ } \n/* */ }\n/* 396 */ if (md != null)\n/* */ {\n/* 398 */ if (aVillage != null) {\n/* 399 */ aVillage.addMineDoor(md);\n/* 400 */ } else if (this.village != null) {\n/* 401 */ this.village.removeMineDoor(md);\n/* */ } } \n/* 403 */ if (this.creatures != null)\n/* */ {\n/* 405 */ for (Creature c : this.creatures) {\n/* */ \n/* 407 */ c.setCurrentVillage(aVillage);\n/* 408 */ if (c.isWagoner() && aVillage == null) {\n/* */ \n/* 410 */ Wagoner wagoner = c.getWagoner();\n/* 411 */ if (wagoner != null)\n/* 412 */ wagoner.clrVillage(); \n/* */ } \n/* 414 */ if (c.isNpcTrader() && c.getCitizenVillage() == null) {\n/* */ \n/* 416 */ Shop s = Economy.getEconomy().getShop(c);\n/* 417 */ if (s.getOwnerId() == -10L) {\n/* */ \n/* 419 */ if (aVillage != null) {\n/* */ \n/* */ \n/* */ try {\n/* 423 */ logger.log(Level.INFO, \"Adding \" + c.getName() + \" as citizen to \" + aVillage.getName());\n/* 424 */ aVillage.addCitizen(c, aVillage.getRoleForStatus((byte)3));\n/* */ }\n/* 426 */ catch (IOException iox) {\n/* */ \n/* 428 */ logger.log(Level.INFO, iox.getMessage());\n/* */ }\n/* 430 */ catch (NoSuchRoleException nsx) {\n/* */ \n/* 432 */ logger.log(Level.INFO, nsx.getMessage());\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ continue;\n/* */ } \n/* */ \n/* */ \n/* 441 */ c.setCitizenVillage(null);\n/* */ } \n/* */ } \n/* */ } \n/* */ }\n/* */ \n/* 447 */ if (this.vitems != null)\n/* */ {\n/* 449 */ for (Item i : this.vitems.getAllItemsAsSet()) {\n/* */ \n/* 451 */ if (i.getTemplateId() == 757) {\n/* */ \n/* 453 */ if (aVillage != null) {\n/* 454 */ aVillage.addBarrel(i); continue;\n/* 455 */ } if (this.village != null)\n/* 456 */ this.village.removeBarrel(i); continue;\n/* */ } \n/* 458 */ if (i.getTemplateId() == 1112) {\n/* */ \n/* 460 */ if (aVillage != null) {\n/* */ \n/* 462 */ Node node = Routes.getNode(i.getWurmId());\n/* 463 */ if (node != null)\n/* 464 */ node.setVillage(aVillage); continue;\n/* */ } \n/* 466 */ if (this.village != null) {\n/* */ \n/* 468 */ Node node = Routes.getNode(i.getWurmId());\n/* 469 */ if (node != null)\n/* 470 */ node.setVillage(null); \n/* */ } \n/* */ } \n/* */ } \n/* */ }\n/* 475 */ this.village = aVillage;\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 480 */ if (this.doors != null)\n/* */ {\n/* 482 */ for (Door door : this.doors) {\n/* */ \n/* 484 */ if (door instanceof FenceGate)\n/* 485 */ aVillage.addGate((FenceGate)door); \n/* */ } \n/* */ }\n/* 488 */ if (md != null)\n/* */ {\n/* 490 */ aVillage.addMineDoor(md);\n/* */ }\n/* */ } \n/* */ }",
"public void setRegion(String region) {\n this.region = region;\n }",
"void setOrigination(Locations origination);",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setFacing(short f) {\r\n\t\tfacing = f;\r\n\t\tworldObj.markBlockForUpdate(xCoord, yCoord, zCoord);\r\n\t}",
"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 }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setC_Region_ID (int C_Region_ID);",
"public void downgradeFamiliarity() {\n\t\tif (familiarity > MIN_FAMILIARITY) {\n\t\t\tfamiliarity--;\n\t\t}\n\t}",
"public void setItuRegion(int param) {\n if (param == java.lang.Integer.MIN_VALUE) {\n localItuRegionTracker = false;\n } else {\n localItuRegionTracker = true;\n }\n this.localItuRegion = param;\n }",
"@Column(name = \"rgn_famil\")\n public String getRegionFamiliarity() {\n return regionFamiliarity;\n }",
"private void update() {\n int curRegionX = client.getRegionBaseX();\n int curRegionY = client.getRegionBaseY();\n if(lastRegionX != curRegionX || lastRegionY != curRegionY) {\n //Search for Altars:\n altars.clear();\n Landscape.accept(new LandscapeVisitor() {\n @Override\n public void acceptObject(RSEntityMarker marker) {\n int id = UID.getEntityID(marker.getUid());\n RSObjectDefinition def = client.getObjectDef(id);\n if(def == null || def.getName() == null) return;\n if(def.getName().equals(\"Altar\")) {\n altars.add(marker);\n }\n }\n });\n }\n }",
"public final void setFringe(PDRectangle fringe)\n {\n annot.setItem(COSName.RD, fringe);\n }",
"private void regionSelected(final Region region) {\n log.info(\"Selected region {}\", region);\n\n Nation nation = determineNation();\n\n regionViewModelMap.get(nation).setModel(region);\n\n selectFirstAirfield(nation);\n }",
"public void setRelevantRegions(Gel_BioInf_Models.File value) {\n this.relevantRegions = value;\n }",
"@Override\n\tpublic void setRentalLocation(RentalLocation rentalLocation) throws RARException {\n\t\tthis.rentalLocation = rentalLocation;\n\t}",
"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 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 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 }",
"@Method(selector = \"setRegion:animated:\")\n public native void setRegion(@ByVal MKCoordinateRegion region, boolean animated);",
"public Gel_BioInf_Models.VirtualPanel.Builder setRelevantRegions(Gel_BioInf_Models.File value) {\n validate(fields()[6], value);\n this.relevantRegions = value;\n fieldSetFlags()[6] = true;\n return this; \n }",
"public void setRegionid(int newRegionid) {\n regionid = newRegionid;\n }",
"void addRegion(Region region);",
"public final void setFuel(int f) {\n fuel = f;\n }",
"@Generated\n @Selector(\"setRegion:\")\n public native void setRegion(@NotNull UIRegion value);",
"public void setLocation(Vector location);",
"public void setCheflieuregion(String value) {\n setAttributeInternal(CHEFLIEUREGION, value);\n }",
"public void setLocation(int loacation) {\n\t\tsuper.setLocation(loacation);\n\t}",
"@Override\r\n\tpublic void setInfo(String gender, String age) {\n\t\tmRectOnCamera.setPersonInfo(gender, age);\r\n\t}",
"public void enterVehicleDetails (String strRegionValue)\r\n\t{\r\n\r\n\t\tif (strRegionValue.contains (\"UK\"))\r\n\t\t{\r\n\r\n\t\t\tthis.selectOwnership (strRegionValue);\r\n\t\t\tthis.selectAlarmType ();\r\n\t\t\tthis.selectTrackingDevice ();\r\n\t\t\tthis.selectVehicleUse ();\r\n\t\t\tthis.selectPriorInsurance (strRegionValue);\r\n\t\t\tthis.enterAnnualMilage ();\r\n\t\t\tthis.selectParkingLoc ();\r\n\r\n\t\t}\r\n\r\n\t\telse if (strRegionValue.contains (\"USA\"))\r\n\t\t{\r\n\t\t\tthis.selectOwnership (strRegionValue);\r\n\t\t\tthis.selectVehicleRegistrationState ();\r\n\t\t\tthis.EnterOdoMilage ();\r\n\t\t}\r\n\r\n\t}",
"@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}",
"void m6861a(@NonNull RegionType regionType) {\n this.f5232c = regionType;\n }",
"public void setRarity(char newrareity)\n {\n rarity = newrareity;\n }",
"public void setRegionFullName(String regionFullName) {\n this.regionFullName = regionFullName == null ? null : regionFullName.trim();\n }",
"public void reinforce(int territoryId, int numberOfArmies) {\n\t\tgetCountryArray()[territoryId].setNumberArmies(getCountryArray()[territoryId].getNumberArmies()+numberOfArmies);\n\t}",
"public void setRegionname(java.lang.String newRegionname) {\n\tregionname = newRegionname;\n}",
"@Override\n\tpublic void setLinienFarbe(Farbe farbe) {\n\n\t}",
"public void setLocus(Locus3f newLocus) {\r\n this.locus = newLocus;\r\n }",
"public void setPersonnelArea(String personnelArea);",
"void setOccupant(T occupant);",
"public void setRoof(Building building);",
"public void setTexture(TextureRegion region) {\n \ttexture = region;\n \torigin = new Vector2(texture.getRegionWidth()/2.0f,texture.getRegionHeight()/2.0f);\n }",
"public void setLand(int value);",
"public void setRestitution(float restitution) {\n constructionInfo.restitution = restitution;\n rBody.setRestitution(restitution);\n }",
"@Override\n\tpublic void setRestaurant(RestaurantChung restaurant) {\n\t\t\n\t}",
"@Override\n\tpublic void setNorth(float north) {\n\t\t\n\t}",
"public void setOccupation(String occupation);",
"public void toggleRegion(){\n\t\tif(getRegion() == regionNormal)\n\t\t\tsetRegion(regionDown);\n\t\t\n\t\telse if(getRegion() == regionDown)\n\t\t\tsetRegion(regionNormal);\t\t\n\t}",
"public Builder setRegionValue(int value) {\n region_ = value;\n onChanged();\n return this;\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 chooseFortifyGivers(){\n gameState = GameState.FORTIFYGIVER;\n currentTerritoriesOfInterest = Player.getTerritoryStringArray(currentPlayer.getFortifyGivers());\n notifyObservers();\n }",
"public void setFitness(int f){\n this.fitness = f;\n }",
"public void changeLocation(World newWorld, int x, int y, DIRECTION facing, Color color);",
"public void rehabilitateSelectedTerritoryArmy(){\n int rehabilitationPrice =getRehabilitationArmyPriceInTerritory(selectedTerritoryByPlayer);\n currentPlayerTurn.decrementFunds(rehabilitationPrice);\n selectedTerritoryByPlayer.rehabilitateConquerArmy();\n eventListener.addEventObject(new PlayerEvent(currentPlayerTurn.getPlayerName(),EventNamesConstants.ArmyRehabilitation));\n }",
"public void applyGear() {\n\t\t\r\n\t}",
"public Villager(int newF) {\n this.faction = newF;\n }",
"public void setRegionManager(final RegionManagerBean injRegionManager) {\n regionManager = injRegionManager;\n }",
"@Override\n public void setFeature(String feature) {\n this.exteriorFeature = feature;\n }",
"@Override\r\n\tpublic void setRobot(Robot r) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\trobot = (BasicRobot) r;\r\n\t\t//robot.setMaze(this.mC);\r\n\t\t\r\n\t}",
"public void setThisFacility(Facility thisFacility) {\n this.thisFacility = thisFacility;\n }",
"private void markSquadronRange(final Airfield airfield, final Squadron squadron) {\n // Temporarily assign the available squadron to the selected airfield so that the range\n // marker is properly displayed.\n boolean isAvailable = squadron.isAvailable();\n if (isAvailable) {\n squadron.setHome(airfield);\n }\n\n AssetMarkerDTO dto = new AssetMarkerDTO(squadron);\n dto.setNation(squadron.getNation());\n view.markSquadronRangeOnMap(dto);\n\n // Un-assign the available squadron now that the range has been marked.\n // This is needed to keep from prematurely assigning the squadron.\n // Squadron's are only assigned via the deployment button.\n if (isAvailable) {\n squadron.setHome(null);\n }\n }",
"public void setPersonality(PersonalityCard personality) {\r\n\t\tthis.personality = personality;\r\n\t}",
"public void setRelocationMethod(Relocation r){\n relocationType = r;\n }",
"private void setLocation(Location newLocation) {\n\t\tif (location != null) {\n\t\t\tfield.clear(location);\n\t\t}\n\t\tlocation = newLocation;\n\t\tfield.place(this, newLocation);\n\t}",
"@Override\n public void onConnected(Bundle dataBundle) {\n mLocation = mLocationClient.getLastLocation();\n\n double lat = mLocation.getLatitude();\n double lon = mLocation.getLongitude();\n\n if(lat < -90)\n {\n if(lon > 45 && lon < 75)\n mRegion.setSelection(7);\n }\n else if(lat < -60)\n {\n if(lon < 45 && lon > 30)\n mRegion.setSelection(6);\n }\n else if(lat < -30)\n {\n if(lon > 30 && lon < 75)\n mRegion.setSelection(2);\n }\n else if(lat < 30)\n {\n if(lon < 60 && lon > 30)\n mRegion.setSelection(1);\n }\n else if(lat < 60)\n {\n if(lon > -30 && lon < 0)\n mRegion.setSelection(5);\n if(lon < 15 && lon > -20)\n mRegion.setSelection(8);\n if(lon < -20 && lon > -60)\n mRegion.setSelection(9);\n }\n else if(lat < 90)\n {\n if(lon < 15 && lon > -20)\n mRegion.setSelection(8);\n if(lon < -20 && lon > -60)\n mRegion.setSelection(9);\n if(lon < 75 && lon > 30)\n mRegion.setSelection(0);\n }\n else if(lat < 120)\n {\n if(lon < 75 && lon > 30)\n mRegion.setSelection(0);\n }\n else\n {\n mRegion.setSelection(4);\n }\n }",
"public void setRestitution(float restitution) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 24, restitution);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 24, restitution);\n\t\t}\n\t}",
"public void colores(int f) {\n this.f = f;\n }",
"@Override\n\tpublic void office_location() {\n\t\tSystem.out.println(\"Office location is Gurgaon\");\n\t}",
"@Override\n\tpublic void setFuellFarbe(Farbe farbe) {\n\n\t}",
"public void setRegionid(int newValue) {\n\tthis.regionid = newValue;\n}",
"@Override\r\n\tpublic void setRace(String newRace) \r\n\t{\r\n\t\tthis._race = newRace;\r\n\t}",
"public void setModel(RegionModel newModel) {\n\t\tmodel = newModel;\n\t}",
"private void setRace(String race){\n this.race = race;\n }",
"public void setOccupier(Piece occupier){\n this.occupier = occupier;\n }",
"public void setJine(float f) {\n\n }",
"public void setLocation(Planet location) {\r\n this.location = location;\r\n }",
"WithCreate withRegion(Region location);",
"WithCreate withRegion(Region location);",
"public void setArrive(Village arrive) {\n\t\tthis.arrive = arrive;\n\t}",
"public void transformSelectedArmyForceToSelectedTerritory() {\n selectedTerritoryByPlayer.getConquerArmyForce().uniteArmies(selectedArmyForce);\n }",
"public void setTurtleOrientation(double newAngle){\n\t\tSystem.out.println(\"in set turtle orientation\");\n\t\tmyTurtle.setOrientation(newAngle);\n\t\tupdateTurtleOnView();\n\t}",
"@Override\n\tpublic void setOrientation(Vector3 orient) {\n\n\t}",
"void setRoadway(org.landxml.schema.landXML11.RoadwayDocument.Roadway roadway);",
"@Override\n public void setLocation(geo_location p) {\n this.location.setX(p.x());\n this.location.setY(p.y());\n this.location.setZ(p.z());\n }",
"@Override\n\tpublic void setLord(Lord l) {\n\t\t\n\t}",
"public void setPerimeter() {\n\t\tthis.perimeter= 2*(height+width);\n\t}"
]
| [
"0.62606597",
"0.6064607",
"0.60488874",
"0.59967947",
"0.59467936",
"0.58540654",
"0.58114153",
"0.5769804",
"0.57257605",
"0.56323296",
"0.56175274",
"0.55638474",
"0.55418986",
"0.5529599",
"0.5529599",
"0.5529599",
"0.5458982",
"0.5458982",
"0.5458982",
"0.54372734",
"0.5427715",
"0.5376889",
"0.536671",
"0.5340473",
"0.5328433",
"0.5324675",
"0.5324506",
"0.53173065",
"0.5309214",
"0.5261022",
"0.5261022",
"0.5254241",
"0.5239598",
"0.5229989",
"0.52208143",
"0.5206179",
"0.5192905",
"0.5177823",
"0.51765585",
"0.5129078",
"0.5121743",
"0.50984514",
"0.5091656",
"0.50901794",
"0.5079247",
"0.50760174",
"0.50611705",
"0.50554556",
"0.49995312",
"0.49945733",
"0.49897254",
"0.49827456",
"0.4955392",
"0.49551",
"0.49403012",
"0.49303067",
"0.49237937",
"0.49154437",
"0.49017942",
"0.4899848",
"0.48916876",
"0.48815405",
"0.48734787",
"0.48644534",
"0.48615932",
"0.48551425",
"0.48454842",
"0.48412335",
"0.48261058",
"0.4814711",
"0.48114136",
"0.48046786",
"0.47997713",
"0.47975454",
"0.47898808",
"0.47891012",
"0.47881284",
"0.4782997",
"0.47811413",
"0.47786933",
"0.4778576",
"0.4773295",
"0.4764385",
"0.47640383",
"0.47629693",
"0.47602403",
"0.47601163",
"0.47521526",
"0.4751951",
"0.47485927",
"0.47472572",
"0.47472572",
"0.47434655",
"0.47401142",
"0.47391492",
"0.47265872",
"0.47150785",
"0.4709518",
"0.47038484",
"0.46990067"
]
| 0.6497024 | 0 |
This method sets the transportation modes | @Override
public void setTransportationModes(List<TransportationModeDetail> transportationModes) {
this.transportationModes = transportationModes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTransmitMode(String transmitMode)\r\n\t{\r\n\t\tthis.transmitMode = transmitMode;\r\n\t}",
"public void set_transaction_mode(TransactionType mode){\n\t\ttransaction_type = mode;\n\t}",
"@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 setDeliveryMode(int value) {\n this.deliveryMode = value;\n }",
"void setMotorsMode(DcMotor.RunMode runMode);",
"void setEphemerisMode();",
"public void setPortMode(String mode){\r\n\t\tthis.portMode=mode;\r\n\t\tif(!portMode.equals(\"floating\")){\r\n\t\t\tthis.currentPort=(new Integer(portMode)).intValue();\r\n\t\t}\r\n\t}",
"public void setMode(short mode)\n\t{\n\t\tthis.mode = mode;\n\t}",
"public void setMode(boolean value) {\n this.mode = value;\n }",
"public void setMode(int mode){\n mMode = mode;\n }",
"@Override\n public void teleopInit() {\n /* factory default values */\n _talonL1.configFactoryDefault();\n _talonL2.configFactoryDefault();\n _talonR1.configFactoryDefault();\n _talonR2.configFactoryDefault();\n\n /* flip values so robot moves forward when stick-forward/LEDs-green */\n _talonL1.setInverted(true); // <<<<<< Adjust this\n _talonL2.setInverted(true); // <<<<<< Adjust this\n _talonR1.setInverted(true); // <<<<<< Adjust this\n _talonR2.setInverted(true); // <<<<<< Adjust this\n\n\n /*\n * WPI drivetrain classes defaultly assume left and right are opposite. call\n * this so we can apply + to both sides when moving forward. DO NOT CHANGE\n */\n _drive.setRightSideInverted(true);\n }",
"private void sendModeChanged(\n SimulcastMode newMode, SimulcastMode oldMode)\n {\n if (newMode == null)\n {\n // Now, why would you want to do that?\n sendMode = null;\n logger.debug(\"Setting simulcastMode to null.\");\n return;\n }\n else if (newMode == SimulcastMode.REWRITING)\n {\n logger.debug(\"Setting simulcastMode to rewriting mode.\");\n sendMode = new RewritingSendMode(this);\n }\n else if (newMode == SimulcastMode.SWITCHING)\n {\n logger.debug(\"Setting simulcastMode to switching mode.\");\n sendMode = new SwitchingSendMode(this);\n }\n\n this.sendMode.receive(targetOrder);\n }",
"public void setTransports(Transports transports);",
"private static void configureTalons()\n {\n configTalonSensors();\n\n configPIDF(LINEAR_PIDF_SLOT, LINEAR_P, LINEAR_I, LINEAR_D, LINEAR_F);\n\n //Config Front Left Talon\n frontLeftTalon.setSensorPhase(false);\n frontLeftTalon.setInverted(true);\n\n //Config Front Right Talon\n frontRightTalon.setSensorPhase(true);\n frontRightTalon.setInverted(true);\n\n //Config Rear talons\n rearLeftTalon.setInverted(false);\n rearRightTalon.setInverted(true);\n \n rearLeftTalon.follow(frontLeftTalon);\n rearRightTalon.follow(frontRightTalon);\n }",
"public void setMode(int mode) {\n this.mode = mode;\n }",
"boolean setMode(int mode);",
"public void setMode(SwerveMode newMode) {\n\t\tSmartDashboard.putString(\"mode\", newMode.toString());\n // Re-enable SwerveModules after mode changed from Disabled\n if (mode == SwerveMode.Disabled) {\n for (SwerveModule mod: modules) {\n mod.enable();\n }\n }\n mode = newMode;\n int index = 0; // Used for iteration\n switch(newMode) {\n case Disabled:\n for (SwerveModule mod: modules) {\n mod.setSpeed(0);\n mod.disable();\n }\n break;\n case FrontDriveBackDrive:\n for (SwerveModule mod: modules) {\n mod.unlockSetpoint();\n mod.setSetpoint(RobotMap.forwardSetpoint);\n }\n break;\n case FrontDriveBackLock:\n for (SwerveModule mod: modules) {\n if (index < 2) {\n mod.unlockSetpoint();\n mod.setSetpoint(RobotMap.forwardSetpoint);\n }\n else {\n mod.unlockSetpoint();\n\n mod.lockSetpoint(RobotMap.forwardSetpoint);\n }\n index++;\n }\n break;\n case FrontLockBackDrive:\n for (SwerveModule mod: modules) {\n if (index > 1) {\n mod.unlockSetpoint();\n }\n else {\n mod.unlockSetpoint();\n\n mod.lockSetpoint(RobotMap.forwardSetpoint);\n }\n index++;\n }\n break;\n case StrafeLeft:\n for (SwerveModule mod: modules) {\n \t\tmod.unlockSetpoint();\n mod.lockSetpoint(RobotMap.leftSetpoint);\n }\n break;\n case StrafeRight:\n for (SwerveModule mod: modules) {\n \t\tmod.unlockSetpoint();\n mod.lockSetpoint(RobotMap.rightSetpoint);\n }\n break;\n default:\n break;\n\n }\n}",
"@Override\n\tpublic void setMode(int mode) {\n\t\t\n\t}",
"public void setMetrMode(final int[] mode) {\n\t\tif (mode==null || mode.length!=4) {\n\t\t\tthrow new IllegalArgumentException(\"Invalide metrology mode\");\n\t\t}\n\t\tThread t = new Thread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tString modeStr=\"[\"+mode[0]+\", \"+mode[1]+\", \"+mode[2]+\", \"+mode[3]+\"]\";\n\t\t\t\ttry {\n\t\t\t\t\tlogger.log(AcsLogLevel.DEBUG,\"Setting metrology mode to \"+modeStr);\n\t\t\t\t\tmount.SET_METR_MODE(mode);\n\t\t\t\t\tlogger.log(AcsLogLevel.DEBUG,\"Metrology mode set to \"+modeStr);\n\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\tAcsJMetrologyEx ex = new AcsJMetrologyEx(t);\n\t\t\t\t\tex.setAntennatype(AntennaType.VERTEX.description);\n\t\t\t\t\tex.setOperation(\"Invalid metrology mode\");\n\t\t\t\t\tnotifier.commandExecuted(0,\"Set Vertex metr mode to \"+modeStr,\"Error from remote component while setting metrology mode to \"+modeStr,ex);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tt.setDaemon(true);\n\t\tt.setName(\"Vertex:setMetrMode\");\n\t\tt.start();\n\t}",
"public void setMode(int mode) {\r\n\t\tthis.mode = mode;\r\n\t}",
"public void setMode(int newMode) {\n\t\tint oldMode = mode; \n\t\tmode = newMode;\n\t\tif(mode != REPAIR_MODE || mode != SELL_MODE) \n\t\t\tlblMouse.setText(\"\");\n\t\tif(mode == REPAIR_MODE) \n\t\t\tlblMouse.setText(\"REPAIR\");\n\t\telse if(mode == SELL_MODE) \n\t\t\tlblMouse.setText(\"SELL\"); \n\t\tif(mode == PAUSE_MODE) { \n\t\t\tlblPause.setVisible(true);\n\t\t\tgameEngine.togglePaused();\n\t\t\t//gameEngine.stopRender(); \n\t\t\tdoTrapThread = false;\n\t\t\tdoMonsterThread = false;\n\t\t\tdoMapThread = false;\n\t\t\tgameHud.toggleButtons();\n\t\t}\n\t\tif(oldMode == PAUSE_MODE && mode != PAUSE_MODE) {\n\t\t\tgameHud.toggleButtons();\n\t\t\tgameEngine.togglePaused();\n\t\t\t//gameEngine.startRender();\n\t\t\tdoTrapThread = true;\n\t\t\tdoMonsterThread = true;\n\t\t\tdoMapThread = true;\n\t\t\tlblPause.setVisible(false);\n\t\t}\n\t\t\n\t\tif(oldMode == BUY_MODE && mode != BUY_MODE) {\n\t\t\t//purchase = null;\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public void setMode(Mode type) {\n this.mode = type;\n if (type == Mode.THREE_STATE)\n value = null;\n else\n value = false;\n }",
"public void setMode(String mode) {\n this.mode = mode;\n }",
"public void setMode(DcMotor.RunMode mode) {\n leftFront.setMode(mode);\n leftRear.setMode(mode);\n rightFront.setMode(mode);\n rightRear.setMode(mode);\n }",
"public void setMode(String mode){\n\t\tthis.mode=mode;\n\t}",
"public void setMode(int mode) {\n \t\treset();\n \t}",
"public void setMode(DcMotor.RunMode mode) {\n lDrive.setMode(mode);\n rDrive.setMode(mode);\n }",
"void changeMode(int mode);",
"@Transient\n public void setTransportationModeCodes(List<String> selectedTransportationModes) {\n // now we need to lookup the corresponding transportation mode and add it\n for (String string : selectedTransportationModes) {\n\n // now we need to determine if this mode is already stored as a detail object\n\n TransportationModeDetail detail = new TransportationModeDetail();\n detail.setTransportationModeCode(string);\n detail.setDocumentNumber(this.documentNumber);\n\n if (!transportationModes.contains(detail)) {\n this.addTransportationMode(detail);\n }\n }\n\n // now for removed items\n if (selectedTransportationModes.size() != this.transportationModes.size()) {\n\n // need to figure out which items need to be removed from the transportation modes array\n\n for (ListIterator<TransportationModeDetail> iter = transportationModes.listIterator(); iter.hasNext();) {\n TransportationModeDetail detail = iter.next();\n if (!selectedTransportationModes.contains(detail.getTransportationModeCode())) {\n // we need to remove this item from collection (and OJB should manage the rest\n iter.remove();\n }\n }\n }\n }",
"public void setTC(boolean value) {\n this.TC = value;\n }",
"public void setMode(String mode) \n\t{\n\t\tthis.mode = string2Octal(mode);\n\t}",
"public int switch_modes() {\r\n //when angle modes is selected power field is disabled\r\n if(angle_radio.isArmed()){\r\n power_combo.setDisable(true);\r\n power_combo.setOpacity(.5);\r\n }\r\n //Power Field is necessary for Powers mode\r\n else if(power_radio.isArmed()){\r\n power_combo.setDisable(false);\r\n power_combo.setOpacity(1);\r\n }\r\n //when Angle sum mode is selected power field is disabled\r\n else if(sum_radio.isArmed()){\r\n power_combo.setDisable(true);\r\n power_combo.setOpacity(.5);\r\n }\r\n //Returning values to switch whole Program's mode based on Radio buttons\r\n if(angle_radio.isSelected()) return -1;\r\n else if(power_radio.isSelected()) return -2;\r\n else if(sum_radio.isSelected()) return -3;\r\n return 0;\r\n }",
"public void setMode(int inMode) {\n mode = inMode;\n }",
"private void setModeUI(){\n\n if (this.inManualMode == true){ this.enableRadioButtons(); } // manual mode\n else if (this.inManualMode == false){ this.disableRadioButtons(); } // automatic mode\n }",
"public void setMode(InteractMode newMode) {\r\n\t\tcurrentMode = newMode;\r\n\t\tlastModeSwitch = System.currentTimeMillis();\r\n\t}",
"public void TreatString() {\n\t //Treat status\n\t if(get_Estado.equals(\"ligado\"))\n\t\tset_Estado = \"on\";\n\t else\n\t\tset_Estado = \"off\";\n\t\t\n\t //Treat Swing\n\t if(get_Swing.equals(\"2\"))\n\t \tset_Swing = \"on\";\n\t else\n\t\tset_Swing = \"off\";\n\t\n //Treat Fan\n\t if(get_Fan.equals(\"fraco\"))\n\t\tset_Fan = \"number:2\";\n\t else if(get_Fan.equals(\"medio\"))\n\t\tset_Fan = \"number:1\";\n\t else if(get_Fan.equals(\"forte\"))\n\t\tset_Fan = \"number:0\";\n\t else if (get_Fan.equals(\"auto\"))\n\t\tset_Fan = \"number:3\";\n else if (get_Fan.equals(\"desligado\"))\n set_Fan = \"number:3\";\n\t else{\n\t\tset_Fan =\"number:3\";\n\t\tSystem.out.println(\"AIR CONTROL: Invalid speed parameter: setting speed to auto.\");\n\t }\n\t}",
"public void set_state(boolean etat) {\r\n this.etat = etat;\r\n }",
"public void setMode(int mode) {\r\n this.mode = mode;\r\n setSleeping(mode == MODE_EMPTY);\r\n repaint();\r\n }",
"void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);",
"public static void setAirplaneMode(boolean isAirplaneMode) {\n Settings.System.putInt(Robolectric.application.getContentResolver(), Settings.System.AIRPLANE_MODE_ON, isAirplaneMode ? 1 : 0);\n }",
"public void setMode(int mode)\r\n {\r\n \r\n setMode_0(nativeObj, mode);\r\n \r\n return;\r\n }",
"public void setMode(int i) {\r\n\t\t_mode = i;\r\n\t}",
"public static void setCurrentMode(Modes mode){\n\t\tcurrentMode = mode;\n\t}",
"public void setTransport(String value) {\n setAttributeInternal(TRANSPORT, value);\n }",
"private void findMode(ArrayList<PlanElement> elements) {\r\n\t\tfor(PlanElement p : elements){\r\n\t\t\tif(p instanceof Leg){\r\n\t\t\t\tif(((Leg) p).getMode().equals(TransportMode.transit_walk)){\r\n\t\t\t\t\tsuper.setMode(TransportMode.transit_walk);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tsuper.setMode(((Leg) p).getMode());\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void performAirplaneModeChange(boolean z) {\n this.airplaneMode = z;\n }",
"public void changeMode() {\n methodMode = !methodMode;\n }",
"private void setStyle_ofTransportControls() {\n // Set the enabled style of the next button\n if (thisSong.getTrackNumber() != 1) {\n setStyle_ofPreviousButton(true);\n } else {\n // Disable the previous button if it will be unavailable on the next click\n setStyle_ofPreviousButton(false);\n }\n\n // Set the enabled style of the next button\n if (thisSong.getTrackNumber() != thisAlbum.size()) {\n setStyle_ofNextButton(true);\n } else {\n // Disable the next button if it will be unavailable on the next click\n setStyle_ofNextButton(false);\n }\n }",
"public void setSupportMode(int mode) {\n // skip to avoid useless operation\n if (mSupportMode == mode) return;\n\n if (mode == MODE_AUTOMOTIVE) {\n mSupportMode = MODE_AUTOMOTIVE;\n setupAutomotiveMode();\n } else if (mode == MODE_ONE_MULTIILINE_TEXTVIEW) {\n mSupportMode = MODE_ONE_MULTIILINE_TEXTVIEW;\n if (null != mPrimaryView) {\n mPrimaryView.setState(ActionBarTextView.PRIMARY_MULTILINE_ONLY);\n }\n setSecondaryVisibility(View.GONE);\n\n } else {\n mSupportMode = MODE_DEFAULT;\n }\n getDefaultHeight();\n adjustPrimaryState();\n adjustSecondaryState();\n }",
"private static void SetMode() {\n Enum[] modes = {Mode.SINGLEPLAYER, Mode.MULTIPLAYER};\r\n // setting GameMode by passing in array to validator which will prompt what Enum is wanted\r\n Game.GameMode = (Mode) Validator.Mode(modes);\r\n }",
"private void changeUIMode(int mode){\n findViewById(R.id.ui_circle_thermostat).setVisibility(View.GONE);\n findViewById(R.id.ui_coinstack_thermometer).setVisibility(View.GONE);\n findViewById(R.id.saving_text1).setVisibility(View.GONE);\n\n if(mode == 0){\n mSavingText = (TextView) findViewById(R.id.saving_text);\n mTargetTempText = (TextView) findViewById(R.id.target_temp);\n\n findViewById(R.id.ui_circle_thermostat).setVisibility(View.VISIBLE);\n findViewById(R.id.coin_view).setVisibility(View.VISIBLE);\n }else if(mode == 1){\n mSavingText = (TextView) findViewById(R.id.saving_text1);\n mTargetTempText = (TextView) findViewById(R.id.target_thermometer_temp);\n\n findViewById(R.id.ui_coinstack_thermometer).setVisibility(View.VISIBLE);\n findViewById(R.id.thermometer).setVisibility(View.VISIBLE);\n mSavingText.setVisibility(View.VISIBLE);\n }else if(mode == 2){\n mTargetTempText = (TextView) findViewById(R.id.target_temp);\n mSavingText = (TextView) findViewById(R.id.saving_text1);\n\n findViewById(R.id.ui_circle_thermostat).setVisibility(View.VISIBLE);\n findViewById(R.id.ui_coinstack_thermometer).setVisibility(View.VISIBLE);\n mCoinStackImg.setVisibility(View.VISIBLE);\n mSavingText.setVisibility(View.VISIBLE);\n\n findViewById(R.id.thermometer).setVisibility(View.GONE);\n findViewById(R.id.coin_view).setVisibility(View.GONE);\n }\n updateViews();\n }",
"void setMode(SolvingMode solvingMode);",
"private void setMode() {\n if (jRadioButtonNahled.isSelected()) {\n isViewMode = true;\n isDrawMode = false;\n isEditMode = false;\n System.out.println(\"View Mode\");\n jPanelModeDraw.setVisible(false);\n }\n if (jRadioButtonKresleni.isSelected()) {\n isViewMode = false;\n isDrawMode = true;\n isEditMode = false;\n System.out.println(\"Draw Mode\");\n jPanelModeDraw.setVisible(true);\n }\n if (jRadioButtonEditovani.isSelected()) {\n isViewMode = false;\n isDrawMode = false;\n isEditMode = true;\n System.out.println(\"Edit Mode\");\n jPanelModeDraw.setVisible(false);\n }\n }",
"public void resetMode() {\n\t\televatorManager.resetMode();\n\t}",
"void setControlType(org.landxml.schema.landXML11.TrafficControlType.Enum controlType);",
"public void setDTS_DownmixMode(String mode) {\n int i = Integer.parseInt(mode);\n if (i >= 0 && i <= 1) {\n writeSysfs(AUIDO_DSP_DTS_DEC, \"dtsdmxmode\" + \" \" + mode);\n } else {\n writeSysfs(AUIDO_DSP_DTS_DEC, \"dtsdmxmode\" + \" \" + \"0\");\n }\n }",
"public void setMode(WhichVariables mode)\n\t{\n\t\tif (!mode.equals(m_mode))\n\t\t{\n\t\t\tm_mode = mode;\n\t\t\tm_viewer.refresh();\n\t\t}\n\t}",
"public void setTransportista(int transportista){\n this.transportista = transportista;\n }",
"public abstract void setDecryptMode();",
"public void changePlayerMode(PlayerMode p) {\n\t\t\r\n\t\tplayerMode = p;\r\n\t\tif (playerMode != PlayerMode.manual) decideMakeAutomaicMove();\r\n\t\t\r\n\t\t\r\n\t}",
"private void setTEMswitchesFromRunner(){\n\t\t//\n\t\tint nfeed =0;\n\t\tint avlnflg =0; \n\t\tint baseline =0;\t\t\n\t\tif(nfeedjrb[1].isSelected()){\n\t\t\tnfeed =1;\n\t\t}\n\t\tif(avlnjrb[1].isSelected()){\n\t\t\tavlnflg =1;\n\t\t}\n\t\tif(baselinejrb[1].isSelected()){\n\t\t\tbaseline =1;\n\t\t}\n\t\tTEM.runcht.cht.getBd().setBaseline(baseline); \t \n TEM.runcht.cht.getBd().setAvlnflg(avlnflg);\n TEM.runcht.cht.getBd().setNfeed(nfeed);\n \n //\n if (envmodulejrb[0].isSelected())\n \tTEM.runcht.cht.setEnvmodule(false);\n if (envmodulejrb[1].isSelected())\n \tTEM.runcht.cht.setEnvmodule(true);\n\n if (ecomodulejrb[0].isSelected())\n \tTEM.runcht.cht.setEcomodule(false);\n if (ecomodulejrb[1].isSelected())\n \tTEM.runcht.cht.setEcomodule(true);\n \n if (dslmodulejrb[0].isSelected())\n \tTEM.runcht.cht.setDslmodule(false);\n if (dslmodulejrb[1].isSelected())\n \tTEM.runcht.cht.setDslmodule(true);\n\n if (dsbmodulejrb[0].isSelected())\n \tTEM.runcht.cht.setDsbmodule(false);\n if (dsbmodulejrb[1].isSelected())\n \tTEM.runcht.cht.setDsbmodule(true);\n\t}",
"@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setPassivateTrgINT(false);\r\n }",
"public void setMode(final String mode) {\n this.mode = checkEmpty(mode);\n }",
"protected void onSetTemperatureSetting2(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}",
"public int getFlightMode();",
"public void setMode(String channel, String mode);",
"public void setMode(int i){\n\tgameMode = i;\n }",
"public Transportador()\n {\n super();\n this.transporte = true;\n this.transporte_medico = false;\n this.classificacao = new HashMap<>();\n this.encomendas = new HashMap<>();\n this.raio = 0.0;\n }",
"public void setAltitudeMode(int altitudeMode)\n {\n this.symbol.setAltitudeMode(altitudeMode);\n }",
"public String getTransmitMode()\r\n\t{\r\n\t\treturn transmitMode;\r\n\t}",
"@Override\n public void setMode(RunMode mode) {\n\n }",
"public void setMode(final int type) {\r\n\t\tif (current != null) {\r\n\t\t\tcurrent.setMode(type);\r\n\t\t\telementView.repaint();\r\n\t\t\tnotifyModificationListeners();\r\n\t\t}\r\n\t}",
"private final void setTREditStaus(ViewTestRequirementsAssociation manageTr) {\r\n\t\tuiTestReqEditModel.setExpReqMetPhase(manageTr.getPhaseName());\r\n\t\tuiTestReqEditModel.setFocal(manageTr.getFocal()!=null?manageTr.getFocal().toString():\"\");\r\n\t\tuiTestReqEditModel.setStsAssmblyPhase(manageTr.getStsAssyPhase()!=null ? manageTr.getStsAssyPhase().toString():\"\");\r\n\t\tuiTestReqEditModel.setStsFlightTestPhase(manageTr.getStsFTPhase()!=null ? manageTr.getStsFTPhase().toString():\"\");\r\n\t\tuiTestReqEditModel.setReqFirstFlight(manageTr.getReqFirstFlight()!=null?manageTr.getReqFirstFlight().toString():\"\");\r\n\t\tuiTestReqEditModel.setAssgndToFTPhase(manageTr.getAssignedToFTPhase()!=null ? manageTr.getAssignedToFTPhase().toString():\"\");\r\n\t}",
"public static void initTransportSettings()\n\t{\n\t\tString sql = \"DELETE FROM USER_TRANSPORT\";\n\t\tlogger.info(String.format(\"Remove Transport configuraiton from DB: %s\",sql));\n\t\t\n\t\tDBUtil.executeSQL(sql);\n\t\t\n\t\t//Insert FTP settings to DB.\n\t\tStringBuilder sqlBuilder = new StringBuilder();\n\t\tsqlBuilder.append(\"INSERT INTO USER_TRANSPORT(ID, FTPURL, FTPUSERNAME, FTPPASSWORD, FTPSAVEPATH, HTTPURL, HTTPUSERNAME, HTTPPASSWORD, USERID) \");\n\t\tsqlBuilder.append(\"VALUES(%d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d)\");\n\t\t\n\t\tsql = String.format(sqlBuilder.toString(), 1 , \n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"ftp_url\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"ftp_username\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"ftp_password\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"ftp_savepath\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"http_url\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"http_username\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"http_password\"),\n\t\t\t\t\t\t\t1\n\t\t\t\t\t\t\t);\n\t\t\n\t\tlogger.info(String.format(\"Insert Transport conf to DB: %s\", sql));\n\t\t\n\t\tDBUtil.executeSQL(sql);\n\t}",
"protected void onSetTemperatureSetting1(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}",
"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 void setProcessingMode(int mode) {\n\tif (mode != NON_BLOCKING && mode != DEMAND_DRIVEN)\n throw new IllegalArgumentException\n (\"Mode must be NON_BLOCKING or DEMAND_DRIVEN\") ;\n\n\tprocessingMode = mode ;\n }",
"public TeleoperatedMode(String name) {\n super(name, 9);\n }",
"private void automaticModeChecks(){\n // turn on lights if underground\n if (this.isUnderground()){ this.selectedTrain.setLights(1);}\n // set heat\n if (this.selectedTrain.getTemp() <= 40.0){this.selectedTrain.setThermostat(60.0);}\n else if (this.selectedTrain.getTemp() >= 80){ this.selectedTrain.setThermostat(50.0);}\n }",
"public void setNetworkConnection(boolean airplaneMode, boolean wifi, boolean data) {\n\n long mode = 1L;\n\n if (wifi) {\n mode = 2L;\n } else if (data) {\n mode = 4L;\n }\n\n ConnectionState connectionState = new ConnectionState(mode);\n ((AndroidDriver) getDriver()).setConnection(connectionState);\n System.out.println(\"Your current connection settings are :\" + ((AndroidDriver) getDriver()).getConnection());\n }",
"private void _setMode(String name) {\n Mode oldValue = getMode();\n setMode(Mode.getMode(name, oldValue));\n }",
"public void setTransport(Transport transport) {\n this.transport = transport;\n }",
"public void setMode(String value) {\n _avTable.set(ATTR_MODE, value);\n }",
"public void setMeteringMode(String meteringMode) {\n this.meteringMode = meteringMode;\n }",
"public void addTransportationMode(TransportationModeDetail transportationModeDetail) {\n transportationModeDetail.setDocumentNumber(this.documentNumber);\n this.transportationModes.add(transportationModeDetail);\n }",
"void setNightModeState(boolean b);",
"public void setBulkTransport(boolean value) {\r\n this.bulkTransport = value;\r\n }",
"public void initializationMode() {\n int noOfPumpsOn;\n if (this.steamMessage.getDoubleParameter() != 0) { // steam measuring device is defective\n this.mode = State.EMERGENCY_STOP;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n return;\n }\n\n // check for water level detection failure\n if (waterLevelFailure()) {\n this.outgoing.send(new Message(MessageKind.LEVEL_FAILURE_DETECTION));\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n this.mode = State.EMERGENCY_STOP;\n return;\n }\n\n this.waterLevel = this.levelMessage.getDoubleParameter();\n this.steamLevel = this.steamMessage.getDoubleParameter();\n\n // checks if water level is ready to go to normal\n if (this.levelMessage.getDoubleParameter() > this.configuration.getMinimalNormalLevel()\n && this.levelMessage.getDoubleParameter() < this.configuration.getMaximalNormalLevel()) {\n\n turnOnPumps(-1);\n this.outgoing.send(new Message(MessageKind.PROGRAM_READY));\n return;\n }\n if (this.levelMessage.getDoubleParameter() > this.configuration.getMaximalNormalLevel()) {\n // empty\n this.outgoing.send(new Message(MessageKind.VALVE));\n this.openValve = true;\n } else if (this.levelMessage.getDoubleParameter() < this.configuration\n .getMinimalNormalLevel()) { // fill\n\n if (this.openValve) { // if valve is open, shuts valve\n this.outgoing.send(new Message(MessageKind.VALVE));\n this.openValve = false;\n }\n noOfPumpsOn = estimatePumps(this.steamMessage.getDoubleParameter(),\n this.levelMessage.getDoubleParameter());\n turnOnPumps(noOfPumpsOn);\n }\n\n }",
"public void setEngineOn();",
"void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);",
"private static void configTalonSensors()\n {\n //Left Talon\n frontLeftTalon.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 5); //set encoder\n frontLeftTalon.setStatusFramePeriod(StatusFrame.Status_2_Feedback0, 5, 0); //Set the update rate\n\n //Right Talon\n frontRightTalon.configRemoteFeedbackFilter(frontLeftTalon.getDeviceID(), RemoteSensorSource.TalonSRX_SelectedSensor, 0, 0); //Config the right talon to look at the left talon as a sensor\n frontRightTalon.configRemoteFeedbackFilter(pigeon.getDeviceID(), RemoteSensorSource.GadgeteerPigeon_Yaw, 1, 0); //Config the right talon to use the navX (over CANifier) as a gyro sensor\n\n //Config the primary sensor of the right talon to be a sum sensor (to average the left/right sides, telling us the overall position/speed of the bot)\n frontRightTalon.configSensorTerm(SensorTerm.Sum0, FeedbackDevice.RemoteSensor0, 0); \n frontRightTalon.configSensorTerm(SensorTerm.Sum1, FeedbackDevice.CTRE_MagEncoder_Relative, 0);\n\n frontRightTalon.configSelectedFeedbackSensor(FeedbackDevice.SensorSum, 0, 0);\n frontRightTalon.configSelectedFeedbackCoefficient(0.5, 0, 0);\n\n // Configure NavX via CANifier or PigeonIMU\n frontRightTalon.configSelectedFeedbackSensor(FeedbackDevice.RemoteSensor1, 1, 0); //Set the secondary sensor of the right talon to be the navX (via CANifier) \n frontRightTalon.configSelectedFeedbackCoefficient((3600.0 / 8192.0), 1, 0);\n }",
"public void normalMode() {\n this.brokenPumpNo = -1;\n if (howManyBrokenUnits()) {\n this.mode = State.EMERGENCY_STOP;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n emergencyStopMode();\n return;\n }\n if (steamFailure()) { // if steam failure go to degraded mode\n this.mode = State.DEGRADED;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.DEGRADED));\n this.outgoing.send(new Message(MessageKind.STEAM_FAILURE_DETECTION));\n this.waterLevel = this.levelMessage.getDoubleParameter();\n degradedMode();\n return;\n }\n\n // check for water-level detection failure\n if (waterLevelFailure() || this.levelMessage.getDoubleParameter() == 0) {\n // failure, goes to rescue mode\n this.outgoing.send(new Message(MessageKind.LEVEL_FAILURE_DETECTION));\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.RESCUE));\n this.mode = State.RESCUE;\n this.prevRescueMode = State.NORMAL;\n this.steamLevel = this.steamMessage.getDoubleParameter();\n rescueMode();\n return;\n }\n if (nearMaxMin() || overMax()) { // checks if water is near or over the max\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n this.mode = State.EMERGENCY_STOP;\n emergencyStopMode();\n return;\n }\n int no = pumpFailure();\n if (no != -1) { // check for any pump failure\n this.brokenPumpNo = no;\n this.mode = State.DEGRADED;\n this.prevDegradedMode = State.NORMAL;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.DEGRADED));\n this.outgoing.send(new Message(MessageKind.PUMP_FAILURE_DETECTION_n, no));\n degradedMode();\n return;\n }\n no = pumpControllerFailure();\n if (no != -1) { // check for any controller failure\n this.mode = State.DEGRADED;\n this.prevDegradedMode = State.NORMAL;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.DEGRADED));\n this.outgoing.send(new Message(MessageKind.PUMP_CONTROL_FAILURE_DETECTION_n, no));\n degradedMode();\n return;\n }\n\n // all error messages checked. Can run normal mode as per usual.\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.NORMAL));\n this.waterLevel = this.levelMessage.getDoubleParameter();\n this.steamLevel = this.steamMessage.getDoubleParameter();\n int noOfPumps = estimatePumps(this.steamMessage.getDoubleParameter(),\n this.levelMessage.getDoubleParameter());\n turnOnPumps(noOfPumps); // pump water in\n\n if (this.levelMessage.getDoubleParameter() < this.configuration.getMinimalNormalLevel()) {\n\n noOfPumps = estimatePumps(this.steamMessage.getDoubleParameter(),\n this.levelMessage.getDoubleParameter());\n turnOnPumps(noOfPumps);\n }\n if (this.levelMessage.getDoubleParameter() > this.configuration.getMaximalNormalLevel()) {\n // if it goes above max normal level\n noOfPumps = estimatePumps(this.steamMessage.getDoubleParameter(),\n this.levelMessage.getDoubleParameter());\n turnOnPumps(noOfPumps);\n }\n\n }",
"public void setMode(String mode) {\n if (\"null\".equals(mode)) {\n mode = null;\n }\n\n if (mode == null || mode.equals(MODE_VALUE_GEOSPATIAL)) {\n this.mode = mode;\n } else {\n throw new AppEngineConfigException(\"Invalid mode: '\" + mode);\n }\n }",
"private void setRingerMode(XmlPullParser parser) throws XmlPullParserException, IOException {\n\n\t\tparser.require(XmlPullParser.START_TAG, null, \"ringer_mode\");\n\n\t\tif (parser.getAttributeValue(null, \"mode\") != null) {\n\t\t\tif (parser.getAttributeValue(null, \"mode\").equals(\"normal\")) {\n\t\t\t\tprefEdit.putString(\"ringer_mode\", \"normal\");\n\t\t\t\tLog.i(TAG, \"RingerMode: normal\");\n\t\t\t} else if (parser.getAttributeValue(null, \"mode\").equals(\"silent\")) {\n\t\t\t\tprefEdit.putString(\"ringer_mode\", \"silent\");\n\t\t\t\tLog.i(TAG, \"RingerMode: silent\");\n\t\t\t} else if (parser.getAttributeValue(null, \"mode\").equals(\"vibrate\")) {\n\t\t\t\tprefEdit.putString(\"ringer_mode\", \"vibrate\");\n\t\t\t\tLog.i(TAG, \"RingerMode: vibrate\");\n\t\t\t} else if (parser.getAttributeValue(null, \"mode\").equals(\"unchanged\")) {\n\t\t\t\tprefEdit.putString(\"ringer_mode\", \"unchanged\");\n\t\t\t\tLog.i(TAG, \"RingerMode: unchanged\");\n\t\t\t} else {\n\t\t\t\tLog.e(TAG, \"RingerMode: Invalid Argument!\");\n\t\t\t}\n\t\t} else {\n\t\t\tLog.i(TAG, \"RingerMode: No change.\");\n\t\t}\n\n\t\tparser.nextTag();\n\t}",
"private void setTEMiosFromConfig(){\n\t\t\n\t\t//model I/O options\n\t\tTEM.runcht.califilein = config.califilein; //switch to read-in calibrated parameters from Jcalinput.txt\t\t\t\n\t\tTEM.runcht.califile = config.califile;\n\t\t\n\t\tTEM.runcht.usecalirestart = config.ccdfilein; //switch to read-in Env. driver for equilibrim-run from calirestart.nc \n\t\tTEM.runcht.outcalirestart = false; //only valid if 'usecalirestart' above is set to false\n\t\tTEM.runcht.ccdfile = config.ccdfile;\n\t\t\n\t\tTEM.runcht.outmodes.OSITER = config.OSITE;\n\t\tTEM.runcht.outmodes.ODAY = config.OSDLY;\n\t\tTEM.runcht.outmodes.OMONTH = config.OSMLY;\n\t\tTEM.runcht.outmodes.OYEAR = config.OSYLY;\n\t\tTEM.runcht.outmodes.OREGNER = config.OREGN;\t\t\t\t\t\n\t\n\t\t//plotters when NO output file\n\t\tTEM.runcht.GUIgraphic = config.OGRAPH;\n\t\tif (TEM.runcht.GUIgraphic) {\n\n\t\t\tbvplotter =new BioVariablePlotter();\t\t\t\n\t\t\tpvplotter =new PhyVariablePlotter();\n\t\t\t\n\t\t\tTEM.runcht.plotting.setPlotter(bvplotter);\n\t\t\tTEM.runcht.plotting.setPlotter2(pvplotter);\n\t\t\t\n\t\t\tif (config.OBGRAPH) {\n\t\t\t\tBioVariablePlotter.f.setVisible(true);\n\t\t\t} else {\n\t\t\t\tBioVariablePlotter.f.setVisible(false);\n\t\t\t}\n\t\t\tif (config.OPGRAPH) {\n\t\t\t\tPhyVariablePlotter.f.setVisible(true);\n\t\t\t} else {\n\t\t\t\tPhyVariablePlotter.f.setVisible(false);\n\t\t\t}\n\t\t}\n\n\t}",
"public void teleopInit() {\n if (autonomousCommand != null) \n autonomousCommand.cancel();\n\n // RobotMap.enableUltrasonicTrigger(false);\n driveTrain.configForTeleopMode();\n }",
"private void setPortletMode(PortletURL url, String mode) {\n \n try {\n if (mode.equalsIgnoreCase(Modes._edit)) {\n \n url.setPortletMode(PortletMode.EDIT);\n \n } else if (mode.equalsIgnoreCase(Modes._view)) {\n \n url.setPortletMode(PortletMode.VIEW);\n \n } else if (mode.equalsIgnoreCase(Modes._help)) {\n \n url.setPortletMode(PortletMode.HELP);\n \n } else if (mode.equalsIgnoreCase(Modes._preview)) {\n \n url.setPortletMode(PortletMode.VIEW);\n \n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n \n }",
"public void setMode(String mode) {\n this.mode = mode == null ? null : mode.trim();\n }",
"public void change() {\r\n this.mode = !this.mode;\r\n }",
"public void mapMode() {\n\t\ttheTrainer.setUp(false);\n\t\ttheTrainer.setDown(false);\n\t\ttheTrainer.setLeft(false);\n\t\ttheTrainer.setRight(false);\n\n\t\tinBattle = false;\n\t\tred = green = blue = 255;\n\t\tthis.requestFocus();\n\t}"
]
| [
"0.6361158",
"0.6086713",
"0.60597557",
"0.60553396",
"0.5976088",
"0.5974493",
"0.59622496",
"0.59134555",
"0.58948326",
"0.58654636",
"0.58307505",
"0.5822412",
"0.58194053",
"0.58169234",
"0.5810825",
"0.5786561",
"0.5765809",
"0.57651633",
"0.5756861",
"0.57490575",
"0.57277155",
"0.5722564",
"0.5661585",
"0.5660931",
"0.56577176",
"0.56503594",
"0.56216186",
"0.56150335",
"0.5598091",
"0.55975235",
"0.5594566",
"0.5583987",
"0.5578814",
"0.5569144",
"0.5554171",
"0.554904",
"0.5542874",
"0.55342317",
"0.5521231",
"0.55212104",
"0.5514698",
"0.5512766",
"0.55007046",
"0.5482726",
"0.54736197",
"0.54634",
"0.544938",
"0.54489005",
"0.54338014",
"0.5423106",
"0.54043436",
"0.539454",
"0.5389947",
"0.53857875",
"0.5369122",
"0.5367824",
"0.53643495",
"0.5363908",
"0.53585047",
"0.535712",
"0.5343181",
"0.5341539",
"0.5337631",
"0.53296816",
"0.5310639",
"0.5309054",
"0.5303935",
"0.5297413",
"0.52861917",
"0.52812696",
"0.5269581",
"0.52597404",
"0.5259426",
"0.525804",
"0.52546024",
"0.5253215",
"0.52490366",
"0.52471447",
"0.52377534",
"0.5236223",
"0.52353454",
"0.523444",
"0.52338254",
"0.5224013",
"0.52175826",
"0.5214595",
"0.52128404",
"0.5212807",
"0.51920223",
"0.51876897",
"0.5181801",
"0.5172018",
"0.51702523",
"0.5170137",
"0.5157904",
"0.5156376",
"0.514607",
"0.5131746",
"0.5131407",
"0.51191723"
]
| 0.7640552 | 0 |
Helper method to add a transportation mode detail to a Travel Request | public void addTransportationMode(TransportationModeDetail transportationModeDetail) {
transportationModeDetail.setDocumentNumber(this.documentNumber);
this.transportationModes.add(transportationModeDetail);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addInludedTransportType(Integer includedTransportType);",
"private TransportOutDescription getTranport(String epr) {\r\n\t\tTransportOutDescription transport = null;\r\n\r\n\t\ttry {\r\n\t\t\tURL url = new URL(epr);\r\n\t\t\tString protocol = url.getProtocol();\r\n\t\t\tif (\"http\".equalsIgnoreCase(protocol) || \"https\".equalsIgnoreCase(protocol)) {\r\n\t\t\t\ttransport = new TransportOutDescription(protocol);\r\n\t\t\t\tClass senderClass;\r\n\t\t\t\tsenderClass = Loader\r\n\t\t\t\t\t\t.loadClass(\"org.apache.axis2.transport.http.CommonsHTTPTransportSender\");\r\n\t\t\t\tTransportSender sender = (TransportSender) senderClass.newInstance();\r\n\t\t\t\ttransport.setSender(sender);\r\n\t\t\t\ttransport.addParameter(new Parameter(\"PROTOCOL\", \"HTTP/1.1\"));\r\n\t\t\t\ttransport.addParameter(new Parameter(\"Transfer-Encoding\", \"chunked\"));\r\n\t\t\t\ttransport.addParameter(new Parameter(\"OmitSOAP12Action\", \"true\"));\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn transport;\r\n\t}",
"@Override\n public void setTransportationModes(List<TransportationModeDetail> transportationModes) {\n this.transportationModes = transportationModes;\n }",
"public int getFlightMode();",
"public void setTransport(String value) {\n setAttributeInternal(TRANSPORT, value);\n }",
"public String toString() {\r\n\t\treturn \"Transportation(\"+this.description+\", \"+this.destination+\")\";\r\n\t}",
"Transport storeTransport(@NotNull EezerStoreTransportRequest request);",
"private void generalRequest(LocalRequestType type) {\n\n\t\tPosition carPosition = null;\n\n\t\tif (Storage.getInstance().getCarPosition().isPresent()) {\n\t\t\tcarPosition = Storage.getInstance().getCarPosition().get();\n\t\t}\n\n\t\tLocalRequest request = new LocalRequest(\"id\" + this.requestIndex, type, Storage.getInstance().getUserPosition(),\n\t\t\t\tcarPosition, this.privateReplyChannel);\n\t\tthis.requestIndex++;\n\t\tGson gson = new GsonBuilder().create();\n\t\tString json = gson.toJson(request);\n\t\ttry {\n\t\t\tchannel.basicPublish(R.LOCAL_INTERACTIONS_CHANNEL, \"\", null, json.getBytes());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n public void onDelectFlightInfo(ServResrouce info)\n {\n }",
"@Override\n public void onDelectFlightInfo(ServResrouce info)\n {\n }",
"public RetailStore addTransportTask(RetailscmUserContext userContext, String retailStoreId, String name, String start, Date beginTime, String driverId, String truckId, String belongsToId, BigDecimal latitude, BigDecimal longitude , String [] tokensExpr) throws Exception;",
"private void dumpTransport(TransportExt transport)\n {\n\n log(\"* Transport Information\");\n log(\"*\");\n assertTrue(\"TransportID should be greater than zero\", transport.getTransportID() > 0);\n log(\"* TransportID: \" + transport.getTransportID());\n assertNotNull(\"Transport DeliverySystemType should not be null\", transport.getDeliverySystemType());\n log(\"* DeliverySystemType: \" + transport.getDeliverySystemType());\n assertNotNull(\"Transport Handle should not be null\", transport.getTransportHandle());\n log(\"* Transport Handle: \" + transport.getTransportHandle());\n log(\"*\");\n }",
"ShipmentTypeAttr createShipmentTypeAttr();",
"public Transportation(NetworkLayers.LAYER_DIRECTION layerDirection) {\n frame = MinT.getInstance();\n this.networkManager = frame.getNetworkManager();\n this.scheduler = frame.getSystemScheduler();\n \n if (layerDirection == NetworkLayers.LAYER_DIRECTION.RECEIVE) {\n syshandle = new SystemHandler();\n routing = networkManager.getRoutingProtocol();\n sharing = networkManager.getSharing();\n }\n\n if (layerDirection == NetworkLayers.LAYER_DIRECTION.SEND) {\n serialization = new MatcherAndSerialization(layerDirection);\n// if(frame.isBenchMode()){\n// bench_send = new PacketPerform(\"Trans-sender\");\n// frame.addPerformance(MinT.PERFORM_METHOD.Trans_Sender, bench_send);\n// }\n }\n }",
"private void getTransactionDetailsRequest() {\r\n\t\tBasicXmlDocument document = new BasicXmlDocument();\r\n\t\tdocument.parseString(\"<\" + TransactionType.GET_TRANSACTION_DETAILS.getValue()\r\n\t\t\t\t+ \" xmlns = \\\"\" + XML_NAMESPACE + \"\\\" />\");\r\n\r\n\t\taddAuthentication(document);\r\n\t\taddReportingTransactionId(document);\r\n\r\n\t\tcurrentRequest = document;\r\n\t}",
"public void setTransport(Transport transport) {\n this.transport = transport;\n }",
"public void set_transaction_mode(TransactionType mode){\n\t\ttransaction_type = mode;\n\t}",
"@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}",
"@Nonnull\n public static UBL23WriterBuilder <TransportationStatusRequestType> transportationStatusRequest ()\n {\n return UBL23WriterBuilder.create (TransportationStatusRequestType.class);\n }",
"public Transportador()\n {\n super();\n this.transporte = true;\n this.transporte_medico = false;\n this.classificacao = new HashMap<>();\n this.encomendas = new HashMap<>();\n this.raio = 0.0;\n }",
"Builder withTreatment(TrafficTreatment treatment);",
"public void addRequest( Request currentRequest)\r\n\t{\r\n\t\r\n\t\tif(availableElevadors.isEmpty())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"--------- Currently all elevators in the system are Occupied ------\");\t\r\n\t\t\tSystem.out.println(\"--------- Request to Go to Floor \" + currentRequest.getDestinationflour()+\" From Floor\" + currentRequest.getCurrentFlour() +\" has been added to the System --------\");\r\n\t\t\tcheckAvaliableElevators();\t\r\n\t\t}\r\n\t\t\r\n\t\tprocessRequest(currentRequest);\t\t\r\n\t\t\r\n\t}",
"public String getTransport() {\n return (String) getAttributeInternal(TRANSPORT);\n }",
"void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);",
"public void setTransmitMode(String transmitMode)\r\n\t{\r\n\t\tthis.transmitMode = transmitMode;\r\n\t}",
"public void setDeliveryMode(int value) {\n this.deliveryMode = value;\n }",
"ITransport createTransport(T netconfAccessInfo) throws NetconfException;",
"public void setTransportista(int transportista){\n this.transportista = transportista;\n }",
"public void setModeinfo( String modeinfo )\n {\n this.modeinfo = modeinfo;\n }",
"public Transportation(String destination, String description) {\r\n\t\tthis.description = description;\r\n\t\tthis.destination = destination;\r\n\t\t\r\n\t}",
"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 }",
"public void setUseInfoForDtmf(boolean useInfo);",
"public Transport getTransport() {\n return transport;\n }",
"public String getTransport() {\n\t if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getTransport()\");\n Via via=(Via)sipHeader;\n return via.getTransport();\n }",
"NegotiationTransmissionType getTransmissionType();",
"public void addRequestable(StackType option);",
"TransportationServiceType getOriginalDespatchTransportationService();",
"private void writeTransportConfiguration( XMLExtendedStreamWriter writer, ModelNode node, String transportName) throws XMLStreamException {\n\n writer.writeAttribute(Element.TRANSPORT_NAME_ATTRIBUTE.getLocalName(), transportName);\n TRANSPORT_SOCKET_BINDING_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n TRANSPORT_PROTOCOL_ATTRIBUTE.marshallAsAttribute(node, true, writer);\n TRANSPORT_MAX_SOCKET_THREADS_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n TRANSPORT_IN_BUFFER_SIZE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n TRANSPORT_OUT_BUFFER_SIZE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n\n if (like(node, Element.PG_ELEMENT)) {\n writer.writeStartElement(Element.PG_ELEMENT.getLocalName());\n PG_MAX_LOB_SIZE_ALLOWED_ELEMENT.marshallAsAttribute(node, false, writer);\n writer.writeEndElement();\n }\n\n if (like(node, Element.SSL_ELEMENT)) {\n writer.writeStartElement(Element.SSL_ELEMENT.getLocalName());\n\n SSL_MODE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n SSL_AUTH_MODE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n SSL_SSL_PROTOCOL_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n SSL_KEY_MANAGEMENT_ALG_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n SSL_ENABLED_CIPHER_SUITES_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n\n if (like(node, Element.SSL_KETSTORE_ELEMENT)) {\n writer.writeStartElement(Element.SSL_KETSTORE_ELEMENT.getLocalName());\n SSL_KETSTORE_NAME_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n SSL_KETSTORE_PASSWORD_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n SSL_KETSTORE_TYPE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n SSL_KETSTORE_ALIAS_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n SSL_KETSTORE_KEY_PASSWORD_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n writer.writeEndElement();\n }\n\n if (like(node, Element.SSL_TRUSTSTORE_ELEMENT)) {\n writer.writeStartElement(Element.SSL_TRUSTSTORE_ELEMENT.getLocalName());\n SSL_TRUSTSTORE_NAME_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n SSL_TRUSTSTORE_PASSWORD_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n SSL_TRUSTSTORE_CHECK_EXPIRED_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n writer.writeEndElement();\n }\n writer.writeEndElement();\n }\n }",
"public TeleoperatedMode(String name) {\n super(name, 9);\n }",
"public String getDetailFlight();",
"org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl addNewTrafficControl();",
"public String toShortString() {\n LogBuilder lb = new LogBuilder(32);\n lb.add(getModeString(), \" \", transportable);\n Location lt = getTransportTarget();\n lb.add(\" @ \", ((lt == null) ? \"null\" : lt.toShortString()));\n Location ct = getCarrierTarget();\n if (ct != lt) lb.add(\"/\", ct.toShortString());\n return lb.toString();\n }",
"private AddFlight buildFlightRequest(Flight flight, String passengerMix, String currency, String journeyType, String requiredFare) {\n\n List<faresAndPrice> faresAndPrices = getBasePriceForPassengerMix(flight);\n\n String fareType = \"STANDARD\";\n Double price = totalBasePrice(faresAndPrices);\n Passengers passengers = null;\n\n if (requiredFare == null) {\n for (faresAndPrice fp : faresAndPrices) {\n if (fp.getNumberOfSeatsAvailableInClass() >= fp.passengers.getTotalNumberOfPassengers()) {\n fareType = fp.getFareType();\n price = fp.getTotalBasePriceForFare();\n passengers = fp.getPassengers();\n }\n }\n }\n else\n {\n faresAndPrice fp = faresAndPrices.stream().filter(g -> g.getFareType().equals(requiredFare)).findFirst().orElse(null);\n fareType = fp.getFareType();\n price = fp.getTotalBasePriceForFare();\n passengers = fp.getPassengers();\n }\n\n return AddFlight.build()\n .flightKey(flight.getFlightKey())\n .toeiCode(\"ABC\")\n .currency(currency)\n .fareType(fareType)\n .journeyType(journeyType)\n .price(price)\n .overrideWarning(false)\n .routeCode(flight.getDeparture().getAirportCode() + \"\" + flight.getArrival().getAirportCode())\n .passengers(passengers.getPassengers()).execute();\n }",
"public boolean getUseInfoForDtmf();",
"public Integer getIdTransport() {\r\n return idTransport;\r\n }",
"public String getTrainfo() {\n return trainfo;\n }",
"public void TreatString() {\n\t //Treat status\n\t if(get_Estado.equals(\"ligado\"))\n\t\tset_Estado = \"on\";\n\t else\n\t\tset_Estado = \"off\";\n\t\t\n\t //Treat Swing\n\t if(get_Swing.equals(\"2\"))\n\t \tset_Swing = \"on\";\n\t else\n\t\tset_Swing = \"off\";\n\t\n //Treat Fan\n\t if(get_Fan.equals(\"fraco\"))\n\t\tset_Fan = \"number:2\";\n\t else if(get_Fan.equals(\"medio\"))\n\t\tset_Fan = \"number:1\";\n\t else if(get_Fan.equals(\"forte\"))\n\t\tset_Fan = \"number:0\";\n\t else if (get_Fan.equals(\"auto\"))\n\t\tset_Fan = \"number:3\";\n else if (get_Fan.equals(\"desligado\"))\n set_Fan = \"number:3\";\n\t else{\n\t\tset_Fan =\"number:3\";\n\t\tSystem.out.println(\"AIR CONTROL: Invalid speed parameter: setting speed to auto.\");\n\t }\n\t}",
"protected TrafficTreatment.Builder processSpecificRoutingTreatment() {\n return DefaultTrafficTreatment.builder();\n }",
"@Override\n public void planTrip(String departingAddress, String departingZipCode,\n String arrivalZipCode, Date preferredArrivalTime) {\n FlightSchedule schedule = airlineAgency.bookTicket(departingZipCode, arrivalZipCode, preferredArrivalTime);\n //cab pickup scheduling activity\n cabAgency.requestCab(departingAddress, schedule.getFlightNumber());\n \n //Test output\n System.out.println(\"Test output: trip planned\");\n }",
"public String SendNewAutoTraderWebRequest(String ticker, RequestType enumval) {\n\t\treturn null;\n\t\t\n\t}",
"private final void setTREditStaus(ViewTestRequirementsAssociation manageTr) {\r\n\t\tuiTestReqEditModel.setExpReqMetPhase(manageTr.getPhaseName());\r\n\t\tuiTestReqEditModel.setFocal(manageTr.getFocal()!=null?manageTr.getFocal().toString():\"\");\r\n\t\tuiTestReqEditModel.setStsAssmblyPhase(manageTr.getStsAssyPhase()!=null ? manageTr.getStsAssyPhase().toString():\"\");\r\n\t\tuiTestReqEditModel.setStsFlightTestPhase(manageTr.getStsFTPhase()!=null ? manageTr.getStsFTPhase().toString():\"\");\r\n\t\tuiTestReqEditModel.setReqFirstFlight(manageTr.getReqFirstFlight()!=null?manageTr.getReqFirstFlight().toString():\"\");\r\n\t\tuiTestReqEditModel.setAssgndToFTPhase(manageTr.getAssignedToFTPhase()!=null ? manageTr.getAssignedToFTPhase().toString():\"\");\r\n\t}",
"TrafficTreatment treatment();",
"private final void setTREditDetails(ViewTestRequirementsAssociation manageTr) {\r\n\t\tuiTestReqEditModel.setObjId((manageTr.getObjectIDs()));\t\t\t\t\r\n\t\tuiTestReqEditModel.setAirplaneModel(manageTr.getAirplaneModelType());\r\n\t\tuiTestReqEditModel.setObjType(manageTr.getObjectType());\r\n\t\tuiTestReqEditModel.setObjNo(manageTr.getObjectNumber());\r\n\t\tuiTestReqEditModel.setObjHeading(manageTr.getObjectHeading());\r\n\t\tuiTestReqEditModel.setObjText(manageTr.getObjectText());\r\n\t\tuiTestReqEditModel.setOwner(manageTr.getOwnerName());\r\n\t\tuiTestReqEditModel.setAssumption(manageTr.getAssumptions());\r\n\t\tuiTestReqEditModel.setDeviations(manageTr.getDeviations());\r\n\t}",
"@Override\n\tpublic void insertZzblPlantTeethOperation(ZzblPlantTeethOperation dp, HttpServletRequest request) throws Exception {\n\t\tdp.setSEQ_ID(YZUtility.getUUID());\n\t\tdp.setCreatetime(YZUtility.getCurDateTimeStr());\n\t\tString id = request.getParameter(\"id\");\n\t\tString order_number = request.getParameter(\"order_number\");\n\t\tString remove = request.getParameter(\"remove\");\n\t\tString thicknessGum = request.getParameter(\"thicknessGum\");\n\t\tString alveolarRidgeThickness = request.getParameter(\"alveolarRidgeThickness\");\n\t\tString locator = request.getParameter(\"locator\");\n\t\tString kindBone = request.getParameter(\"kindBone\");\n\t\tString plantSystem = request.getParameter(\"plantSystem\");\n\t\tString modelNumber = request.getParameter(\"modelNumber\");\n\t\tString twistingForce = request.getParameter(\"twistingForce\");\n\t\tString boneMeal = request.getParameter(\"boneMeal\");\n\t\tString coveringPeriosteum = request.getParameter(\"coveringPeriosteum\");\n\t\tString doctorSignature = request.getParameter(\"doctorSignature\");\n\t\tString signatureTime = request.getParameter(\"signatureTime\");\n\t\t\n\t\tString blm_milliliter = request.getParameter(\"blm_milliliter\");\n\t\tString plant_bonemeal = request.getParameter(\"plant_bonemeal\");\n\t\tString operation_date = request.getParameter(\"operation_date\");\n\t\tString username = request.getParameter(\"username\");\n\t String sex = request.getParameter(\"sex\");\n\t String age = request.getParameter(\"age\");\n\t String put_down = request.getParameter(\"put_down\");\n\t String operation_alltext = request.getParameter(\"operation_alltext\");\n\t dp.setPut_down(put_down);\n\t dp.setOperation_alltext(operation_alltext);\n\t dp.setAge(age);\n\t dp.setUsername(username);\n\t dp.setSex(sex);\n\t\tdp.setBlm_milliliter(blm_milliliter);\n\t\tdp.setPlant_bonemeal(plant_bonemeal);\n\t\tdp.setOperation_date(operation_date);\n\t\tdp.setRemove(remove);\n\t\tdp.setId(id);\n\t\tdp.setOrder_number(order_number);\n\t\tdp.setThicknessGum(thicknessGum);\n\t\tdp.setAlveolarRidgeThickness(alveolarRidgeThickness);\n\t\tdp.setLocator(locator);\n\t\tdp.setKindBone(kindBone);\n\t\tdp.setPlantSystem(plantSystem);\n\t\tdp.setModelNumber(modelNumber);\n\t\tdp.setTwistingForce(twistingForce);\n\t\tdp.setCoveringPeriosteum(coveringPeriosteum);\n\t\tdp.setBoneMeal(boneMeal);\n\t\tdp.setDoctorSignature(doctorSignature);\n\t\tdp.setSignatureTime(signatureTime);\n\t\topertaionDao.insertZzblPlantTeethOperation(dp);\n\t}",
"public void setTransmission(Transmission transmission) {\n this.transmission = transmission;\n }",
"public Transporteur(short noTransporteur, String raisonSociale, String MdP)\r\n {\r\n this.noTransporteur = noTransporteur;\r\n this.raisonSociale = raisonSociale;\r\n this.MdP = MdP;\r\n }",
"public void addRequest(ArrayList<String> vacationDetails) {\n model.addRequest(vacationDetails);\n }",
"@Override\r\n\tpublic void addDelivery(Transaction transaction) throws Exception {\n\t\ttranDao.updateDeliveryInfo(transaction);\r\n\t}",
"public Transporter(Model owner, String name, int capac, boolean showInTrace) {\n\t\t// construct a Transporter with a minimum load of one\n\t\tthis(owner, name, 1, capac, showInTrace);\n\t}",
"public void setIdTransport(Integer idTransport) {\r\n this.idTransport = idTransport;\r\n }",
"TransportLayerAttributes getConfig();",
"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}",
"private DirectionsResult getDirectionsDetails(String origin,String destination,TravelMode mode) {\n DateTime now = new DateTime();\n try {\n //Here we request the route from the Directions API. GeoContext is just a verifier for DirectionsAPI\n //so it doesn't take some random requests. It knows this API is trying to access the API and will return the route\n return DirectionsApi.newRequest(getGeoContext())\n //Pass in the MODE, origin, destination, and time. Time is set to right now based on the the line of code above\n .mode(mode)\n .origin(origin)\n .destination(destination)\n .departureTime(now)\n .await();\n } catch (ApiException e) {\n e.printStackTrace();\n return null;\n } catch (InterruptedException e) {\n e.printStackTrace();\n return null;\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }",
"public Response addTechnology(TechResponse technologyResponse);",
"public void addExcludedTransportType(Integer excludedTransportType);",
"ShipmentType createShipmentType();",
"private void teletransportar(Personaje p, Celda destino) {\n // TODO implement here\n }",
"private void sendModeChanged(\n SimulcastMode newMode, SimulcastMode oldMode)\n {\n if (newMode == null)\n {\n // Now, why would you want to do that?\n sendMode = null;\n logger.debug(\"Setting simulcastMode to null.\");\n return;\n }\n else if (newMode == SimulcastMode.REWRITING)\n {\n logger.debug(\"Setting simulcastMode to rewriting mode.\");\n sendMode = new RewritingSendMode(this);\n }\n else if (newMode == SimulcastMode.SWITCHING)\n {\n logger.debug(\"Setting simulcastMode to switching mode.\");\n sendMode = new SwitchingSendMode(this);\n }\n\n this.sendMode.receive(targetOrder);\n }",
"private TransactionRequest initTransactionRequest() {\n TransactionRequest transactionRequestNew = new\n TransactionRequest(System.currentTimeMillis() + \"\", 20000);\n\n //set customer details\n transactionRequestNew.setCustomerDetails(initCustomerDetails());\n\n\n // set item details\n ItemDetails itemDetails = new ItemDetails(\"1\", 20000, 1, \"Trekking Shoes\");\n\n // Add item details into item detail list.\n ArrayList<ItemDetails> itemDetailsArrayList = new ArrayList<>();\n itemDetailsArrayList.add(itemDetails);\n transactionRequestNew.setItemDetails(itemDetailsArrayList);\n\n\n // Create creditcard options for payment\n CreditCard creditCard = new CreditCard();\n\n creditCard.setSaveCard(false); // when using one/two click set to true and if normal set to false\n\n// this methode deprecated use setAuthentication instead\n// creditCard.setSecure(true); // when using one click must be true, for normal and two click (optional)\n\n creditCard.setAuthentication(CreditCard.AUTHENTICATION_TYPE_3DS);\n\n // noted !! : channel migs is needed if bank type is BCA, BRI or MyBank\n// creditCard.setChannel(CreditCard.MIGS); //set channel migs\n creditCard.setBank(BankType.BCA); //set spesific acquiring bank\n\n transactionRequestNew.setCreditCard(creditCard);\n\n return transactionRequestNew;\n }",
"public void setTransportLayer(String newTransportLayer) {\n\t\t_pcs.firePropertyChange(\"transportLayer\", this.transportLayer, newTransportLayer); //$NON-NLS-1$\n\t\tthis.transportLayer = newTransportLayer;\n\t}",
"public int getDeliveryMode() {\n return deliveryMode;\n }",
"public String getTransmitMode()\r\n\t{\r\n\t\treturn transmitMode;\r\n\t}",
"com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight getFlightdetails();",
"@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)\n private void addTrafficStatsTag(Request<?> request) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {\n TrafficStats.setThreadStatsTag(request.getTrafficStatsTag());\n }\n }",
"@Override\n\tpublic void make_body() {\n\t\t\n\t\tElement order_e=body.addElement(\"RouteRequest\");\n\t\t\n\t\torder_e.addAttribute(\"tracking_type\", \"1\");\n\t\torder_e.addAttribute(\"method_type\", \"1\");\n\t\tString mail_nos=\"\";\n\t\t\n\t\t\tmail_nos=com.cqqyd2014.util.ArrayTools.convertFieldToArrayString(this.getDbs(), \"getExpress_no\",String.class);\n\t\t\n\t\tmail_nos=mail_nos.substring(1, mail_nos.length()-1);\n\t\t\n\t\torder_e.addAttribute(\"tracking_number\",mail_nos);\n\t}",
"private String requestInfo(Long vehicleId) {\n return \"vehicleId(\" + vehicleId + \") \";\n }",
"void deliverStealRequest(StealRequest sr) {\n if (Debug.DEBUG_STEAL && logger.isInfoEnabled()) {\n logger.info(\"S REMOTE STEAL REQUEST from \" + sr.source + \" context \"\n + sr.context);\n }\n postStealRequest(sr);\n }",
"ShipmentItemFeature createShipmentItemFeature();",
"public String getRequestType() { return this.requestType; }",
"public static void main(String[] args) throws CantAdd, CoronaWarn {\n\t\tTravelAgency TravelAgency = new TravelAgency();\r\n\r\n\t\tPlane p=new Plane(200,2,\"first plane max travelers\");\r\n\t\tPlane p1=new Plane(100,1,\"second plan min traelers\");\r\n\r\n\t\tTrip i=new Trip(p,Country.Australia,Country.Canada);\r\n\t\tTrip io=new Trip(p1,Country.Australia,Country.Canada);\r\n\t\t \r\n\t\tDate date=new Date(1,2,5);\r\n\t\tPassport passprt1=new Passport(\"anton\",44,date);\r\n\t\tPassport passprt2=new Passport(\"abdo\",44,date);\r\n\t\tPassport passprt3=new Passport(\"julie\",44,date);\r\n\t\tPassport passprt4=new Passport(\"juliana\",44,date);\r\n\t\tPassport passprt5=new Passport(\"bella\",44,date);\r\n\t\tPassport passprt6=new Passport(\"geris\",44,date);\r\n\t\tTraveler t1=new Traveler(passprt1,true,true);\r\n\t\tTraveler t2=new Traveler(passprt2,true,true);\r\n\t\tTraveler t3=new Traveler(passprt3,true,true);\r\n\t\tTraveler t4=new Traveler(passprt4,true,true);\r\n\t\tTraveler t5=new Traveler(passprt5,true,true);\r\n\t\tTraveler t6=new Traveler(passprt6,true,true);\r\n\t\t\r\n\t\t\r\n\t\tio.addTraveler(t1);\r\n\t\tio.addTraveler(t2);\r\n\t\tio.addTraveler(t3);\r\n\t\tio.addTraveler(t6);\r\n\t\tio.addTraveler(t5);\r\n\t\tio.addTraveler(t4);\r\n\t\tio.addTraveler(t6);\r\n \r\n\t\ti.addTraveler(t1);\r\n\t\ti.addTraveler(t2);\r\n\t\ti.addTraveler(t3);\r\n\t\ti.addTraveler(t4);\r\n\t\r\n\t\ti.addTraveler(t6);\r\n\t\t\r\n\t\tTravelAgency.addTrip(i);\t\r\n\t\tTravelAgency.addTrip(io);\r\n\t\tSystem.out.print(TravelAgency.findUnsafeTrips());\r\n\r\n\t\t\r\n\t\tTravelAgency.AddTraveler(t1);\r\n\t\tTravelAgency.AddTraveler(t2);\r\n\t\tTravelAgency.AddTraveler(t3);\r\n\t\tTravelAgency.AddTraveler(t4);\r\n\t\tTravelAgency.AddTraveler(t5);\r\n\t\tTravelAgency.AddTraveler(t6);\r\n\t\t\r\n\t}",
"public interface ITransportFactory<T extends NetconfAccessInfo> {\n\n /**\n * Create Netconf transport layer\n * \n * @author\n * @param netconfAccessInfo Netconf access information\n * @return NetconfTransport Layer\n */\n ITransport createTransport(T netconfAccessInfo) throws NetconfException;\n}",
"@Override\r\n\tprotected String requestText() {\n\t\tGuardarSustentoRequest guardarSustentoRequest = new GuardarSustentoRequest();\r\n\t\tguardarSustentoRequest.setCodigoActvidad(codigoActvidad);\r\n\t\tguardarSustentoRequest.setCodigoCliente(codigoCliente);\r\n\t\tguardarSustentoRequest.setCodigoPLan(codigoPLan);\r\n\t\tguardarSustentoRequest.setDescripcionActividad(descripcionActividad);\r\n\t\tguardarSustentoRequest.setFechaVisita(fechaVisita);\r\n\t\tguardarSustentoRequest.setTipoActividad(tipoActividad);\r\n\t\tguardarSustentoRequest.setUsuario(usuario);\r\n\t\tString request = JSONHelper.serializar(guardarSustentoRequest);\r\n\t\treturn request;\r\n\t}",
"abstract public Transports createTransports();",
"@Override\n public String toString() {\n return \"FLIGHT'S ID: \" + Id + \"\\nFROM: \" + From + \"\\tTO: \" + To + \"\\nAIRCRAFT TYPE: \"\n + Type + \", MILITARY: \" + (Mil ? \"yes\" : \"no\") + \"\\nSPEED: \" + Spd\n + \", ALTITUDE: \" + Alt;\n }",
"public void setTrip(String trip)\r\n {\r\n this.trip=trip;\r\n }",
"TransportationServiceType getFinalDeliveryTransportationService();",
"private TransferPointRequest checkTransferRequestEligibility(TransferPointRequest transferPointRequest) {\n Customer fromAccount = transferPointRequest.getFromCustomer();\n\n //get destination account\n Customer toAccount = transferPointRequest.getToCustomer();\n\n //check if account is linked\n transferPointRequest = isAccountLinked(transferPointRequest);\n\n //set request customer no as from account customer no\n transferPointRequest.setRequestorCustomerNo(fromAccount.getCusCustomerNo());\n\n //if accounts are not linked , requestor is eligible for transfer\n if(!transferPointRequest.isAccountLinked()){\n\n //set transfer eligibility to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n } else {\n\n //if linked , get the transfer point settings\n TransferPointSetting transferPointSetting = transferPointRequest.getTransferPointSetting();\n\n //check redemption settings\n switch(transferPointSetting.getTpsLinkedEligibilty()){\n\n case TransferPointSettingLinkedEligibity.NO_AUTHORIZATION:\n\n //if authorization is not needed set eligibity to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.PRIMARY_ONLY:\n\n //check the requestor is primary\n if(!transferPointRequest.isCustomerPrimary()){\n\n //if not primary , then set eligibility to INELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.INELIGIBLE);\n\n } else {\n\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.SECONDARY_WITH_AUTHORIZATION:\n\n //if customer is secondary , set eligibility to APRROVAL_NEEDED and set approver\n //and requestor customer no's\n if(!transferPointRequest.isCustomerPrimary()){\n\n //set eligibility status as approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n } else {\n\n //set eligibility to eligible\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.ANY_ACCOUNT_WITH_AUTHORIZATION:\n\n //set eligibility to approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n if(transferPointRequest.isCustomerPrimary()){\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getChildCustomerNo());\n\n } else {\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n }\n\n return transferPointRequest;\n\n }\n }\n\n return transferPointRequest;\n\n }",
"@Override\n\tpublic long altaTransporte(Transporte transporte) {\n\t\treturn repositorio.save(transporte).getIdTransporte();\n\t\t\n\t\t//Emitir el cobre del transporte\n\t\t\n\t\t//Avisar al transportista para que recoja el producto\n\n\t}",
"java.lang.String getFlightCarrier();",
"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 boolean interestingTask (Task t) { \n if (!super.interestingTask (t))\n return false;\n boolean hasTransport = t.getVerb().equals (Constants.Verb.TRANSPORT);\n\n if (logger.isDebugEnabled())\n logger.debug (\"found \" + t.getUID() + (hasTransport ? \" interesting\" : \" uninteresting\"));\n\n return hasTransport;\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 }",
"@Test\n\tpublic void testWithExistingID() throws UnknownTransportFault_Exception {\n\n\t\tint price = 32;\n\t\tString id = client.requestTransport(\"Lisboa\", \"Coimbra\", price);\n\n\t\tTransportView transport1 = client.viewTransport(id);\n\t\t\n\t\tString id2 = client.requestTransport(\"Viseu\", \"Guarda\", 32);\n\t\tTransportView transport2 = client.viewTransport(id2);\n\t\t\n\t\tclient.requestTransport(\"Porto\", \"Faro\", 1);\n\t\tTransportView transport3 = client.viewTransport(\"3\");\n\t\t\n\t\tassertEquals(\"1\", transport1.getId());\n\t\tassertEquals(\"Lisboa\", transport1.getOrigin());\n\t\tassertEquals(\"Coimbra\", transport1.getDestination());\n\n\t\tassertTrue(transport1.getPrice() <= price);\n\t\tassertEquals(\"UpaTransporter2\", transport1.getTransporterCompany());\n\n\t\tassertTrue(transport1.getState() == TransportStateView.BOOKED);\n\n\t\tassertEquals(\"2\", transport2.getId());\n\t\tassertEquals(\"Viseu\", transport2.getOrigin());\n\t\tassertEquals(\"Guarda\", transport2.getDestination());\n\t\tassertTrue(transport2.getPrice() > 0);\n\t\tassertEquals(\"UpaTransporter2\", transport2.getTransporterCompany());\n\t\tassertTrue(transport2.getState() == TransportStateView.BOOKED);\n\t\t\n\t\tassertEquals(\"3\", transport3.getId());\n\t\tassertEquals(\"Porto\", transport3.getOrigin());\n\t\tassertEquals(\"Faro\", transport3.getDestination());\n\t\tassertEquals(null, transport3.getPrice());\n\t\tassertEquals(null, transport3.getTransporterCompany());\n\t\tassertTrue(transport3.getState() == TransportStateView.FAILED);\n\t\t\n\t}",
"public void setMode(String mode) {\n this.mode = mode;\n }",
"Shipment createShipment();",
"public void creightonIsExtraSpecial() {\n\t\tHashMap<String, Object> partToStatus = new HashMap<String, Object>();\n\t\t\n\t\tpartToStatus.put(\"autoTime\", autoTime);\n\t\tpartToStatus.put(\"matchTime\", matchTime);\n\t\t\n\t\tpartToStatus.get(\"autoTime\");\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic void buildSettlement() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void solicitarTipoTransaccion() {\n\t\tSystem.out.println(\"Escoger tipo de transaccion\");\r\n\t\t\r\n\t}",
"ShipmentMethodType createShipmentMethodType();",
"private TransferPointRequest addTransferPointRequest(TransferPointRequest transferPointRequest) throws InspireNetzException {\n PointTransferRequest pointTransferRequest = new PointTransferRequest();\n\n //set merchant no\n pointTransferRequest.setPtrMerchantNo(transferPointRequest.getMerchantNo());\n\n //set from loyalty id\n pointTransferRequest.setPtrSource(transferPointRequest.getFromLoyaltyId());\n\n //set to loyalty id\n pointTransferRequest.setPtrDestination(transferPointRequest.getToLoyaltyId());\n\n //set qty\n pointTransferRequest.setPtrRewardQty(transferPointRequest.getRewardQty());\n\n //set source reward currency\n pointTransferRequest.setPtrSourceCurrency(transferPointRequest.getFromRewardCurrency());\n\n //set destination reward currency\n pointTransferRequest.setPtrDestCurrency(transferPointRequest.getToRewardCurrency());\n\n //set merchant no\n pointTransferRequest.setPtrMerchantNo(transferPointRequest.getMerchantNo());\n\n //set requestor customer no\n pointTransferRequest.setPtrSourceCusNo(transferPointRequest.getRequestorCustomerNo());\n\n //set approver customer no\n pointTransferRequest.setPtrApproverCusNo(transferPointRequest.getApproverCustomerNo());\n\n //save the request\n pointTransferRequest = pointTransferRequestService.savePointTransferRequest(pointTransferRequest);\n\n //set the ptrId\n transferPointRequest.setPtrId(pointTransferRequest.getPtrId());\n\n return transferPointRequest;\n\n }"
]
| [
"0.56753695",
"0.5445933",
"0.5395519",
"0.5325083",
"0.5290977",
"0.5277424",
"0.52056056",
"0.5108115",
"0.51061034",
"0.51061034",
"0.5098455",
"0.5073464",
"0.50716215",
"0.50259364",
"0.49973768",
"0.49803588",
"0.49424282",
"0.4941461",
"0.49410498",
"0.49244738",
"0.49209556",
"0.49063537",
"0.48785198",
"0.48591682",
"0.48543984",
"0.48528802",
"0.48264244",
"0.48215428",
"0.48021623",
"0.47891572",
"0.47801924",
"0.47771543",
"0.47689465",
"0.4764043",
"0.47541133",
"0.47267663",
"0.4717301",
"0.47152096",
"0.4707117",
"0.46835822",
"0.46815708",
"0.4680143",
"0.46788448",
"0.46754307",
"0.46651125",
"0.46567476",
"0.46529457",
"0.46378085",
"0.46311352",
"0.46266198",
"0.46232516",
"0.46174535",
"0.46153566",
"0.4611699",
"0.4611541",
"0.45982355",
"0.45956752",
"0.45956215",
"0.4591789",
"0.4585074",
"0.455928",
"0.45504594",
"0.45473012",
"0.45418668",
"0.45283005",
"0.45242652",
"0.45169184",
"0.45079488",
"0.45043764",
"0.45008817",
"0.44884503",
"0.44826642",
"0.44792134",
"0.4473195",
"0.4469175",
"0.4448651",
"0.44361755",
"0.44349292",
"0.4434319",
"0.44339302",
"0.44324884",
"0.4426957",
"0.44252813",
"0.44240957",
"0.442175",
"0.44170687",
"0.4408464",
"0.44036543",
"0.4397271",
"0.43920347",
"0.43908626",
"0.43874767",
"0.43848613",
"0.43843117",
"0.43827692",
"0.43825778",
"0.4382446",
"0.43802777",
"0.43750337",
"0.4370512"
]
| 0.66798747 | 0 |
This method populates the list of transportation modes from an array of strings | @Transient
public void setTransportationModeCodes(List<String> selectedTransportationModes) {
// now we need to lookup the corresponding transportation mode and add it
for (String string : selectedTransportationModes) {
// now we need to determine if this mode is already stored as a detail object
TransportationModeDetail detail = new TransportationModeDetail();
detail.setTransportationModeCode(string);
detail.setDocumentNumber(this.documentNumber);
if (!transportationModes.contains(detail)) {
this.addTransportationMode(detail);
}
}
// now for removed items
if (selectedTransportationModes.size() != this.transportationModes.size()) {
// need to figure out which items need to be removed from the transportation modes array
for (ListIterator<TransportationModeDetail> iter = transportationModes.listIterator(); iter.hasNext();) {
TransportationModeDetail detail = iter.next();
if (!selectedTransportationModes.contains(detail.getTransportationModeCode())) {
// we need to remove this item from collection (and OJB should manage the rest
iter.remove();
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setTransportationModes(List<TransportationModeDetail> transportationModes) {\n this.transportationModes = transportationModes;\n }",
"private void findMode(ArrayList<PlanElement> elements) {\r\n\t\tfor(PlanElement p : elements){\r\n\t\t\tif(p instanceof Leg){\r\n\t\t\t\tif(((Leg) p).getMode().equals(TransportMode.transit_walk)){\r\n\t\t\t\t\tsuper.setMode(TransportMode.transit_walk);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tsuper.setMode(((Leg) p).getMode());\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public abstract List<MODE> getModes();",
"private void initPlayerTypes(){\n\t\tplayerModes = new HashMap <Piece, PlayerMode>();\n\t\tfor(Piece p: this.pieces) playerModes.put(p, PlayerMode.MANUAL);\n\t}",
"private static ArrayList<TransitionType> createTransitionTypes(ArrayList<String> typeArray)\n\t{\n\t\tArrayList<TransitionType> definitions = new ArrayList<TransitionType>();\n\n\t\t//Create static fragment class\n\t\tdefinitions.add(new TransitionType(\"Fragment\",null,false,false,0));\n\n\t\t//Create static neutral loss class\n\t\tdefinitions.add(new TransitionType(\"Neutral Loss\",null,false,true,0));\n\n\t\t//For all fatty acid type strings\n\t\tfor (int i=0; i<typeArray.size(); i++)\n\t\t{\n\t\t\t//Create moiety fragment class\n\t\t\tdefinitions.add(new TransitionType(typeArray.get(i)+\" Fragment\",typeArray.get(i),true,false,1));\n\n\t\t\t//Create moiety neutral loss class\n\t\t\tdefinitions.add(new TransitionType(typeArray.get(i)+\" Neutral Loss\",typeArray.get(i),true,true,1));\n\t\t}\n\n\t\t//Create cardiolipin DG fragment class\n\t\tdefinitions.add(new TransitionType(\"Cardiolipin DG Fragment\",\"Alkyl\",true,false,2));\n\n\t\t//Create PUFA neutral loss class\n\t\tdefinitions.add(new TransitionType(\"PUFA Fragment\",\"PUFA\",true,false,1));\n\n\t\t//Create PUFA fragment class\n\t\tdefinitions.add(new TransitionType(\"PUFA Neutral Loss\",\"PUFA\",true,true,1));\n\n\t\treturn definitions;\n\t}",
"Set<String> getRunModes();",
"public static void finishArray(String[] strings, char[] chars, boolean mode){\n\t int comp2 = 0;\n\t for(int i = 0; i < strings.length; i++){\n\t while(contains(strings[i], chars[comp2])){\n \t comp2++;\n \t if(comp2 == chars.length){\n \t comp2 = 0;\n \t }\n \t }\n \t //System.out.println(\"strings[i]: \" + strings[i] + \", chars[\"+comp2+\"]: \" + chars[comp2]);\n \t strings[i] += chars[comp2];\n \t if(mode){\n \t comp2++;\n \t if(comp2 == chars.length){\n \t comp2 = 0;\n \t }\n \t while(contains(strings[i], chars[comp2])){\n \t comp2++;\n \t if(comp2 == chars.length){\n \t comp2 = 0;\n \t }\n \t }\n \t strings[i+1] += chars[comp2];\n \t i++;\n \t }\n\t }\n\t}",
"@Transient\n public List<String> getTransportationModeCodes() {\n List<String> codes = new ArrayList<String>();\n for (TransportationModeDetail mode : transportationModes) {\n codes.add(mode.getTransportationModeCode());\n }\n return codes;\n }",
"public static void loadGameModes(List<GameMode> gameModes) {\n\t\tfinal List<String> input = DataLoader.getClearText(R.raw.data__gamemodes_new);\n\t\tif (input == null || input.isEmpty())\n\t\t\treturn;\n\t\tgameModes.addAll(ParserGameModes.parseGameModes(listToString(input)));\n\t}",
"private void initializeRooms (String[] words)\n {\n int i = 1; //index for room in our txt file \n int j = 2; //index for boolean in our txt file \n int k = 3;\n Room room;\n \n while (j < words.length) //As long j is less than array lenght put room\n {\n switch (words[j]) {\n case \"ItemRoom\":\n roomsSC.put(words[i], new ItemRoom(words[i]));\n room = roomsSC.get(words[i]);\n room.setOperating(Boolean.parseBoolean(words[k]));\n break;\n case \"WorkshopRoom\":\n roomsSC.put(words[i], new WorkshopRoom(words[i]));\n room = roomsSC.get(words[i]);\n room.setOperating(Boolean.parseBoolean(words[k]));\n break;\n default:\n roomsSC.put(words[i], new ControlRoom(words[i]));\n room = roomsSC.get(words[i]);\n room.setOperating(Boolean.parseBoolean(words[k]));\n break;\n }\n \n i += 3; //Jumps to room index in our txt\n j += 3; //jumps to next boolean in txt\n k += 3;\n }\n }",
"private static void SetMode() {\n Enum[] modes = {Mode.SINGLEPLAYER, Mode.MULTIPLAYER};\r\n // setting GameMode by passing in array to validator which will prompt what Enum is wanted\r\n Game.GameMode = (Mode) Validator.Mode(modes);\r\n }",
"public String getModeByArrayTypeRandom(int...type){\n\t\tArrayList<String> array = new ArrayList<String>();\n\t\tRandom randomGenerator = new Random();\n\t\tfor (int j = 0; j<type.length; j++){\n\t\t\tfor(int i = 0; i<this.type.size(); i++)\n\t\t\t{\t\n\t\t\t\tif(this.type.get(i) == type[j]) {\n\t\t\t\t\tarray.add(this.mode.get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint index = randomGenerator.nextInt(array.size());\n\t\tString mode = array.get(index);\n\t\tinfo(\"Mode is: \"+mode);\n\t\treturn mode;\n\t}",
"boolean initializeNetwork(ArrayList<String[]> stationList);",
"public OperationType[] createOperationTypes() {\n int[] op1v1 = new int[]{2, 3, 4, 6};\n OperationType op1 = new OperationType(1, op1v1, null, null, 2\n , 0, 17520, 730, 8, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Transport net before operation\");\n int[] op2v1 = new int[]{2, 3, 4, 6};\n int[] op2v2 = new int[]{2, 3, 4, 6};\n OperationType op2 = new OperationType(2, op2v1, op2v2, null,\n 3, 1, 17520, 730, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Install net\");\n int[] op3v1 = new int[]{2, 3, 4, 6};\n OperationType op3 = new OperationType(3, op3v1, null,\n null, 0, 2, 17520, 730, 8, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Transport net after operation\");\n int[] op4v1 = new int[]{5};\n int[] op4v2 = new int[]{2, 3, 4, 6};\n OperationType op4 = new OperationType(4, op4v1, op4v2, null,\n 0, 0, 1152, 192, 5, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 8, \"Delousing\");\n int[] op5v1 = new int[]{2, 3, 4};\n int[] op5v2 = new int[]{2, 3, 4};\n int[] op5BT = new int[]{6};\n OperationType op5 = new OperationType(5, op5v1, op5v2, op5BT,\n 0, 0, 8760, 360, 40, DataGenerator.costPenalty * DataGenerator.maxSailingTime, \"Large inspection of the facility\");\n int[] op6v1 = new int[]{2};\n OperationType op6 = new OperationType(6, op6v1, null, null,\n 0, 0, 5110, 730, 5, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Wash the net\");\n int[] op7v1 = new int[]{4, 6};\n OperationType op7 = new OperationType(7, op7v1, null, null,\n 0, 0, 8760, 360, 48, DataGenerator.costPenalty * DataGenerator.maxSailingTime, \"tightening anchor lines\");\n int[] op8v1 = new int[]{2, 3, 4, 6};\n int[] op8v2 = new int[]{2, 3, 4, 6};\n OperationType op8 = new OperationType(8, op8v1, op8v2, null,\n 0, 9, 8760, 360, 3, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Small installation facility\");\n int[] op9v1 = new int[]{2, 3, 4, 6};\n OperationType op9 = new OperationType(9, op9v1, null, null,\n 8, 0, 8760, 360, 6, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Easy transport of equipment to facility\");\n int[] op10v1 = new int[]{2, 3, 4, 6};\n OperationType op10 = new OperationType(10, op10v1, null, null,\n 0, 0, 720, 100, 2, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Remove dead fish\");\n int[] op11v1 = new int[]{2, 3, 4, 6};\n OperationType op11 = new OperationType(11, op11v1, null, null,\n 0, 0, 720, 100, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 8, \"Support wellboat\");\n int[] op12v1 = new int[]{1, 2, 3, 4, 6};\n OperationType op12 = new OperationType(12, op12v1, null, null,\n 0, 0, 720, 100, 5, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Inspect net ROV\");\n int[] op13v1 = new int[]{1, 3};\n OperationType op13 = new OperationType(13, op13v1, null, null,\n 0, 0, 8760, 360, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Inspect net diver\");\n int[] op14v1 = new int[]{2};\n OperationType op14 = new OperationType(14, op14v1, null, null,\n 0, 0, 8760, 360, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime, \"Wash bottom ring and floating collar\");\n int[] op15v1 = new int[]{2, 3, 4, 6};\n OperationType op15 = new OperationType(15, op15v1, null, null,\n 0, 0, 168, 24, 3, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Support working boat\");\n return new OperationType[]{op1, op2, op3, op4, op5, op6, op7, op8, op9, op10, op11, op12, op13, op14, op15};\n }",
"public void setMode(String[] args) {\n\t\t\tfor (String arg : args) {\n\t\t\t\tif (arg.equals(\"-i\")) {\n\t\t\t\t\tthis.mode = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}",
"public void initializeEngines(AircraftEnum aircraftName) {\n\t\t\n\t\tswitch(aircraftName) {\n\t\tcase ATR72:\n\t\t\t_engineNumber = 2;\n\t\t\t_engineType = EngineTypeEnum.TURBOPROP;\n\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\", \"\",8.6100, 4.0500, 1.3200, _theAircraft));\n\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_2\", \"\",8.6100, -4.0500, 1.3200, _theAircraft));\n\t\t\tbreak;\n\t\tcase B747_100B:\n\t\t\t_engineNumber = 4;\n\t\t\t_engineType = EngineTypeEnum.TURBOFAN;\n\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\" , \"\", 23.770, 11.820, -2.462, _theAircraft));\n\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\" , \"\", 31.693, 21.951, -2.462, _theAircraft));\n\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\" , \"\", 23.770, -11.820, -2.462, _theAircraft));\n\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\" , \"\", 31.693, -21.951, -2.462, _theAircraft));\n\t\t\t\t\n\t\t\t\n\t\t\tbreak;\n\t\t\t\n\t\tcase AGILE_DC1:\n\t\t\t_engineNumber = 2;\n\t\t\t_engineType = EngineTypeEnum.TURBOFAN;\n//\t\t\tfor (int i=0; i < _engineNumber; i++) {\n//\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_\" + i, \"\", 0.0, 0.0, 0.0, _theAircraft));\n\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\", \"\", 12.891, 4.869, -1.782, _theAircraft));\n\t\t\tengineList.add(new Engine(aircraftName, \"Engine_2\", \"\", 12.891, -4.869, -1.782, _theAircraft));\n//\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase IRON:\n\t\t\t_engineNumber = 2;\n\t\t\t_engineType = EngineTypeEnum.TURBOPROP;\n//\t\t\tfor (int i=0; i < _engineNumber; i++) {\n//\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_\" + i, \"\", 0.0, 0.0, 0.0, _theAircraft));\n\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\", \"\", 31.22, 4.4375, 1.65, _theAircraft));\n\t\t\tengineList.add(new Engine(aircraftName, \"Engine_2\", \"\", 31.22, -4.4375, 1.65, _theAircraft));\n//\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}",
"void setSpeedsArray(org.landxml.schema.landXML11.SpeedsDocument.Speeds[] speedsArray);",
"private void setTEMswitchesFromRunner(){\n\t\t//\n\t\tint nfeed =0;\n\t\tint avlnflg =0; \n\t\tint baseline =0;\t\t\n\t\tif(nfeedjrb[1].isSelected()){\n\t\t\tnfeed =1;\n\t\t}\n\t\tif(avlnjrb[1].isSelected()){\n\t\t\tavlnflg =1;\n\t\t}\n\t\tif(baselinejrb[1].isSelected()){\n\t\t\tbaseline =1;\n\t\t}\n\t\tTEM.runcht.cht.getBd().setBaseline(baseline); \t \n TEM.runcht.cht.getBd().setAvlnflg(avlnflg);\n TEM.runcht.cht.getBd().setNfeed(nfeed);\n \n //\n if (envmodulejrb[0].isSelected())\n \tTEM.runcht.cht.setEnvmodule(false);\n if (envmodulejrb[1].isSelected())\n \tTEM.runcht.cht.setEnvmodule(true);\n\n if (ecomodulejrb[0].isSelected())\n \tTEM.runcht.cht.setEcomodule(false);\n if (ecomodulejrb[1].isSelected())\n \tTEM.runcht.cht.setEcomodule(true);\n \n if (dslmodulejrb[0].isSelected())\n \tTEM.runcht.cht.setDslmodule(false);\n if (dslmodulejrb[1].isSelected())\n \tTEM.runcht.cht.setDslmodule(true);\n\n if (dsbmodulejrb[0].isSelected())\n \tTEM.runcht.cht.setDsbmodule(false);\n if (dsbmodulejrb[1].isSelected())\n \tTEM.runcht.cht.setDsbmodule(true);\n\t}",
"private void initModelEntities(final Collection<String> strategiesElems_) {\n\t\tthis.strategies = new ArrayList<String>();\n\t\tfinal Iterator<String> iteStrategies = strategiesElems_.iterator();\n\t\twhile (iteStrategies.hasNext()) {\n\t\t\tfinal String strategyElement = iteStrategies.next();\n\t\t\tthis.strategies.add(strategyElement);\n\t\t}\n\t}",
"public void initPreference() {\n Map<String, String> opList = mUspManager.getAllOpPackList();\n Log.d(TAG, \"opList:\" + opList);\n\n if (opList != null) {\n TelephonyManager telephonyManager =\n (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE);\n String mccMnc = telephonyManager.getSimOperatorNumericForPhone(SubscriptionManager\n .getDefaultVoicePhoneId());\n // Operator Id of operator whose sim is present\n String currentCarrierId = mUspManager.getOpPackFromSimInfo(mccMnc);\n Log.d(TAG, \"mccMnc:\" + mccMnc + \",currentCarrierId:\" + currentCarrierId);\n int size;\n String selectedOpPackId = mUspManager.getActiveOpPack();\n Log.d(TAG, \"selectedOpPackId: \" + selectedOpPackId);\n if (selectedOpPackId == null || selectedOpPackId.isEmpty()) {\n size = opList.size() + 1;\n } else {\n size = opList.size();\n }\n CharSequence[] choices = new CharSequence[size];\n CharSequence[] values = new CharSequence[size];\n // Need to fill arrays like this, cz map is unordered so extracted key array\n //may be unsynced with value array\n int index = 0;\n for (Map.Entry<String, String> pair : opList.entrySet()) {\n String choice = pair.getValue();\n if (currentCarrierId != null && currentCarrierId.equals(pair.getKey())) {\n choice += mContext.getResources().getString(R.string.recommended);\n }\n // OP ID\n values[index] = pair.getKey();\n // OP Name\n choices[index] = choice;\n Log.d(TAG, \"value[\" + index + \"]: \" + values[index]\n + \"-->Choice[\" + index + \"]: \" + choices[index]);\n index++;\n }\n //String selectedOpPackId = mUspManager.getActiveOpPack();\n //Log.d(TAG, \"selectedOpPackId: \" + selectedOpPackId);\n if (selectedOpPackId == null || selectedOpPackId.isEmpty()) {\n values[index] = OM_PACKAGE_VALUE;\n choices[index] = mContext.getResources().getString(R.string.om_package_name);\n selectedOpPackId = OM_PACKAGE_VALUE;\n }\n setEntries(choices);\n setEntryValues(values);\n setValue(selectedOpPackId);\n setSummary(getEntry());\n boolean isCallStateIdle = !TelecomManager.from(mContext).isInCall();\n Log.d(TAG, \"isCallStateIdle:\" + isCallStateIdle);\n this.setEnabled(isCallStateIdle);\n } else {\n this.setEnabled(false);\n }\n IntentFilter filter = new IntentFilter();\n filter.addAction(TelephonyManager.ACTION_PHONE_STATE_CHANGED);\n mContext.registerReceiver(mIntentReceiver, filter);\n }",
"private void setupModeSpinner() {\n \t\tSpinner spinner = (Spinner) this.findViewById( R.id.action_edit_gpsfilter_area_mode );\n \t\tArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource( this, R.array.action_edit_gpsfilter_area_mode, android.R.layout.simple_spinner_item );\n \t\tadapter.setDropDownViewResource( android.R.layout.simple_spinner_dropdown_item );\n \t\tspinner.setAdapter( adapter );\n \n \t\tspinner.setSelection( this.area.getMode() == GPSFilterMode.INCLUDE ? 0 : 1 );\n \n \t\tspinner.setOnItemSelectedListener( new OnItemSelectedListener() {\n \t\t\t@Override\n \t\t\tpublic void onItemSelected( AdapterView<?> parent, View view, int position, long id ) {\n \t\t\t\tupdateMode( position );\n \t\t\t}\n \n \t\t\t@Override\n \t\t\tpublic void onNothingSelected( AdapterView<?> parent ) {\n \t\t\t}\n \t\t} );\n \t}",
"public Lista modes() {\n Lista modes = new Lista();\n int currentCounter = 1;\n int repeated = this.repeated();\n for (int i = 0; i < this.size() - 1; i++) {\n if(this.getListaAt(i).x == this.getListaAt(i + 1).x) {\n currentCounter += 1;\n }\n else {\n if (currentCounter == repeated) {\n modes.add(this.getListaAt(i).x);\n }\n currentCounter = 1;\n }\n }\n return modes;\n }",
"public void getModes(int hubid)\n {\n ModeManager.getModes(hubid, API_TOKEN, new ModeManager.ModeCallbackInterfaceGet() {\n @Override\n public void onFailureCallback() {\n }\n\n @Override\n public void onSuccessCallback(List<Mode> lista) {\n\n for(Mode mode: lista)\n {\n modes.add(mode);\n }\n\n list.setAdapter(adapter);\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Mode e=modes.get(position);\n showDialog(e.getName(),getPreferredHub(),modes.get(position).getId(),position);\n }\n });\n\n progress.setVisibility(View.GONE);\n list.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onUnsuccessfulCallback(){\n }\n });\n\n\n }",
"private static void initialise( String booth[] ) {\n\r\n for (int x = 0; x < 6; x++ ) { //Assigning all the 6 booths as \"empty\"\r\n booth[x] = \"empty\";\r\n }\r\n }",
"private static ArrayList<String> transmit(String[] array){\n\n\t\tArrayList<String> ret= new ArrayList<String>();\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tret.add(array[i]);\n\t\t}\n\t\treturn ret;\t\n\t}",
"public void setMode(SwerveMode newMode) {\n\t\tSmartDashboard.putString(\"mode\", newMode.toString());\n // Re-enable SwerveModules after mode changed from Disabled\n if (mode == SwerveMode.Disabled) {\n for (SwerveModule mod: modules) {\n mod.enable();\n }\n }\n mode = newMode;\n int index = 0; // Used for iteration\n switch(newMode) {\n case Disabled:\n for (SwerveModule mod: modules) {\n mod.setSpeed(0);\n mod.disable();\n }\n break;\n case FrontDriveBackDrive:\n for (SwerveModule mod: modules) {\n mod.unlockSetpoint();\n mod.setSetpoint(RobotMap.forwardSetpoint);\n }\n break;\n case FrontDriveBackLock:\n for (SwerveModule mod: modules) {\n if (index < 2) {\n mod.unlockSetpoint();\n mod.setSetpoint(RobotMap.forwardSetpoint);\n }\n else {\n mod.unlockSetpoint();\n\n mod.lockSetpoint(RobotMap.forwardSetpoint);\n }\n index++;\n }\n break;\n case FrontLockBackDrive:\n for (SwerveModule mod: modules) {\n if (index > 1) {\n mod.unlockSetpoint();\n }\n else {\n mod.unlockSetpoint();\n\n mod.lockSetpoint(RobotMap.forwardSetpoint);\n }\n index++;\n }\n break;\n case StrafeLeft:\n for (SwerveModule mod: modules) {\n \t\tmod.unlockSetpoint();\n mod.lockSetpoint(RobotMap.leftSetpoint);\n }\n break;\n case StrafeRight:\n for (SwerveModule mod: modules) {\n \t\tmod.unlockSetpoint();\n mod.lockSetpoint(RobotMap.rightSetpoint);\n }\n break;\n default:\n break;\n\n }\n}",
"public ArrayList<State> stringArraytoStateArray (ArrayList<String> pArray)\r\n\t{\r\n\t\tArrayList<State> sArray = new ArrayList<State>();\r\n\t\tfor (Iterator<String> iterator = pArray.iterator(); iterator.hasNext();) \r\n\t\t{\r\n\t\t\tString string1 = (String) iterator.next();\r\n\t\t\tState sTemp = new State(string1);\r\n\t\t\tsTemp.toString();\r\n\t\t\tsArray.add(sTemp);\r\n\t\t}\r\n\t\treturn sArray;\r\n\t}",
"public int switch_modes() {\r\n //when angle modes is selected power field is disabled\r\n if(angle_radio.isArmed()){\r\n power_combo.setDisable(true);\r\n power_combo.setOpacity(.5);\r\n }\r\n //Power Field is necessary for Powers mode\r\n else if(power_radio.isArmed()){\r\n power_combo.setDisable(false);\r\n power_combo.setOpacity(1);\r\n }\r\n //when Angle sum mode is selected power field is disabled\r\n else if(sum_radio.isArmed()){\r\n power_combo.setDisable(true);\r\n power_combo.setOpacity(.5);\r\n }\r\n //Returning values to switch whole Program's mode based on Radio buttons\r\n if(angle_radio.isSelected()) return -1;\r\n else if(power_radio.isSelected()) return -2;\r\n else if(sum_radio.isSelected()) return -3;\r\n return 0;\r\n }",
"public void TreatString() {\n\t //Treat status\n\t if(get_Estado.equals(\"ligado\"))\n\t\tset_Estado = \"on\";\n\t else\n\t\tset_Estado = \"off\";\n\t\t\n\t //Treat Swing\n\t if(get_Swing.equals(\"2\"))\n\t \tset_Swing = \"on\";\n\t else\n\t\tset_Swing = \"off\";\n\t\n //Treat Fan\n\t if(get_Fan.equals(\"fraco\"))\n\t\tset_Fan = \"number:2\";\n\t else if(get_Fan.equals(\"medio\"))\n\t\tset_Fan = \"number:1\";\n\t else if(get_Fan.equals(\"forte\"))\n\t\tset_Fan = \"number:0\";\n\t else if (get_Fan.equals(\"auto\"))\n\t\tset_Fan = \"number:3\";\n else if (get_Fan.equals(\"desligado\"))\n set_Fan = \"number:3\";\n\t else{\n\t\tset_Fan =\"number:3\";\n\t\tSystem.out.println(\"AIR CONTROL: Invalid speed parameter: setting speed to auto.\");\n\t }\n\t}",
"private static void configureTalons()\n {\n configTalonSensors();\n\n configPIDF(LINEAR_PIDF_SLOT, LINEAR_P, LINEAR_I, LINEAR_D, LINEAR_F);\n\n //Config Front Left Talon\n frontLeftTalon.setSensorPhase(false);\n frontLeftTalon.setInverted(true);\n\n //Config Front Right Talon\n frontRightTalon.setSensorPhase(true);\n frontRightTalon.setInverted(true);\n\n //Config Rear talons\n rearLeftTalon.setInverted(false);\n rearRightTalon.setInverted(true);\n \n rearLeftTalon.follow(frontLeftTalon);\n rearRightTalon.follow(frontRightTalon);\n }",
"void verifyModesEnable(String mode);",
"protected void updateCharArray() {\n StringBuilder activateString = new StringBuilder();\n synchronized (activatorSet) {\n for (Character c : activatorSet) {\n activateString.append(c);\n }\n }\n this.activators = activateString.toString().toCharArray();\n }",
"public void setRunways(ListArrayBasedPlus<Runway> runways)\r\n {\r\n this.runways = runways;\r\n }",
"private void populateAltitudes()\r\n {\r\n for(int i=0; i<9; i++)\r\n {\r\n cboAltitude.addItem(aryAltitudes[i]);\r\n }\r\n }",
"private void populateStations() throws Exception{\t\n\t\t\n\t\tTreeSet<String> set = new TreeSet<String>();\n\t\tif(quotList != null){\t\t\t\n\t\t\tfor(int i = 0; i < quotList.length; i++){\t\t\t\t\n\t\t\t\tset.add(quotList[i].getStationCode());\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tIterator<String> itr = set.iterator();\n\t\t\twhile(itr.hasNext()){\n\t\t\t\tcbStation.add(itr.next());\n\t\t\t}\t\t\t\n\t\t}\t\t\n\t}",
"void setMotorsMode(DcMotor.RunMode runMode);",
"private void makeArrays()\n\t{\n\t\tfor (String key : sub.keySet())\n\t\t\tsub.put(key, ((List<String>) sub.get(key)).toArray(s0));\n\t\tfor (String key : attrs.keySet())\n\t\t\tattrs.put(key, ((List<String>) attrs.get(key)).toArray(s0));\n\t\tfor (String key : defs.keySet())\n\t\t\tdefs.put(key, ((List<String>) defs.get(key)).toArray(s0));\n\t\tfor (String key : smodes.keySet())\n\t\t{\n\t\t\tList<Integer> list = (List<Integer>) smodes.get(key);\n\t\t\tint[] array = new int[list.size()];\n\t\t\tfor (int i = 0; i < list.size(); i++)\n\t\t\t\tarray[i] = list.get(i);\n\t\t\tsmodes.put(key, array);\n\t\t}\n\t\tfor (String key : amodes.keySet())\n\t\t{\n\t\t\tList<Integer> list = (List<Integer>) amodes.get(key);\n\t\t\tint[] array = new int[list.size()];\n\t\t\tfor (int i = 0; i < list.size(); i++)\n\t\t\t\tarray[i] = list.get(i);\n\t\t\tamodes.put(key, array);\n\t\t}\n\t}",
"private void init(boolean[] flags) {\n\t\tflags[0] = false; \n\t\tflags[1] = false; \n\t\t\n\t\tfor (int i=2; i<flags.length; i++) {\n\t\t\tflags[i] = true; \n\t\t}\n\t}",
"public void setElements(String[] tradeElements) {\r\n\r\n\t\t/* iterate through every trade element */\r\n\t\tfor (String tradeElement : tradeElements) {\r\n\r\n\t\t\t/* to get the value after the = */\r\n\t\t\tString[] tradeNameValue = tradeElement.split(\"=\");\r\n\r\n\t\t\t/*\r\n\t\t\t * Error handling: i check that the tradeNameValue string array has\r\n\t\t\t * size 2 before i set values to trade data to avoid array index out\r\n\t\t\t * of bound exceptions\r\n\t\t\t */\r\n\t\t\tCurrency cur = new Currency(\"\", 1.0);\r\n\r\n\t\t\tif (tradeNameValue[0].equals(\"cur\") && tradeNameValue.length == 2) {\r\n\r\n\t\t\t\tcur = new Currency(tradeNameValue[1], 1.0);\r\n\t\t\t\tthis.setCur(cur);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tif (tradeNameValue[0].equals(\"agreededFx\") && tradeNameValue.length == 2) {\r\n\r\n\t\t\t\tcur.setAgreededFx(Double.valueOf(tradeNameValue[1]));\r\n\t\t\t\tthis.setCur(cur);\r\n\t\t\t}\r\n\r\n\t\t\tif (tradeNameValue[0].equals(\"ent\") && tradeNameValue.length == 2) {\r\n\r\n\t\t\t\tEntity ent = new Entity(tradeNameValue[1].replace(\"entity\", \"\"));\r\n\t\t\t\tthis.setEnt(ent);\r\n\t\t\t}\r\n\r\n\t\t\tif (tradeNameValue[0].equals(\"tt\") && tradeNameValue.length == 2) {\r\n\r\n\t\t\t\tTypeOfTrade typeOfTrade = TypeOfTrade.S;\r\n\r\n\t\t\t\tif (tradeNameValue[1].equals(\"buyTradeType\")) {\r\n\r\n\t\t\t\t\ttypeOfTrade = TypeOfTrade.B;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setTradeType(new TradeType(typeOfTrade));\r\n\r\n\t\t\t}\r\n\r\n\t\t\tif (tradeNameValue[0].equals(\"instructionDate\") && tradeNameValue.length == 2) {\r\n\r\n\t\t\t\tthis.setInstructionDate(tradeNameValue[1].trim());\r\n\t\t\t}\r\n\r\n\t\t\tif (tradeNameValue[0].equals(\"settlementDate\") && tradeNameValue.length == 2) {\r\n\r\n\t\t\t\tthis.setSettlementDate(tradeNameValue[1].trim());\r\n\t\t\t}\r\n\r\n\t\t\tif (tradeNameValue[0].equals(\"units\") && tradeNameValue.length == 2) {\r\n\r\n\t\t\t\tint units = Integer.parseInt(tradeNameValue[1].trim());\r\n\t\t\t\tthis.setUnits(units);\r\n\t\t\t}\r\n\r\n\t\t\tif (tradeNameValue[0].equals(\"pricePerUnit\") && tradeNameValue.length == 2) {\r\n\r\n\t\t\t\tDouble pricePerUnit = Double.valueOf(tradeNameValue[1].trim());\r\n\t\t\t\tthis.setPricePerUnit(pricePerUnit);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"public void xsetImeModeArray(com.microsoft.schemas.xrm._2011.metadata.ImeMode[]imeModeArray)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n arraySetterHelper(imeModeArray, IMEMODE$0);\r\n }\r\n }",
"public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}",
"void setFeatureArray(org.landxml.schema.landXML11.FeatureDocument.Feature[] featureArray);",
"void setFeatureArray(org.landxml.schema.landXML11.FeatureDocument.Feature[] featureArray);",
"private void getAllTotesRightEnc()\r\n\t{\r\n\t\tswitch(autoStep)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 1:\r\n\t\t\t{\r\n\t\t\t\tstrafeLeftEnc();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 2:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 3:\r\n\t\t\t{\r\n\t\t\t\tstrafeLeftEnc();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 4:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 5:\r\n\t\t\t{\r\n\t\t\t\tdriveForwardEnc();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"public Map<String, ArrayList<Integer>> modes() {\n return this.modes;\n }",
"@LabeledParameterized.Parameters\n public static List<Object[]> parameters() {\n List<Object[]> modes = Lists.newArrayList();\n for (TypeOfEventStore typeOfEventStore : TypeOfEventStore.values()) {\n modes.add(Objects.o(typeOfEventStore));\n }\n return modes;\n }",
"private void populateDestStationCodes() {\n\t\ttry {\n\t\t\tString stationCode = handler.getStationCode();\n\t\t\tStationsDTO[] station = null;\n\t\t\tif (stationCode != null) {\n\t\t\t\tstation = handler.getAllAssociatedStations();\n\t\t\t}\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoStation.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}",
"public void setWorkPatterns(){\r\n\t\tComboItem[] comboItems;\r\n\t\t//array list is used as interim solution due to the fact that regular arrays size is immutable\r\n\t\tArrayList<ComboItem> itemList = new ArrayList<ComboItem>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//Query database and populate array list with values. \r\n\t\t\tResultSet result = WORK_PATTERNS_OPTIONS.executeQuery();\r\n\t\t\twhile(result.next()){\r\n\t\t\t\titemList.add(new ComboItem(result.getInt(1), result.getString(2)));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Initialise new array with needed size\r\n\t\t\tcomboItems = new ComboItem[itemList.size()];\r\n\t\t\t//convert arraylist object into array\r\n\t\t\tcomboItems = itemList.toArray(comboItems);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t//initialise empty array to be returned\r\n\t\t\tcomboItems = new ComboItem[0];\r\n\t\t\tlogger.log(Level.SEVERE, e.getMessage());\r\n\t\t} \r\n\t\t\r\n\t\tthis.work_patterns = comboItems;\r\n\t}",
"public String getTransitionModesString() {\r\n\t\tString s = \"\";\r\n\t\tfor (TransitionMode mode : transitionModes) {\r\n\t\t\ts = s.concat(mode.getName() + \"; \");\r\n\t\t}\r\n\t\treturn s;\r\n\t}",
"public void setImeModeArray(com.microsoft.schemas.xrm._2011.metadata.ImeMode.Enum[] imeModeArray)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n arraySetterHelper(imeModeArray, IMEMODE$0);\r\n }\r\n }",
"private void getAllTotesCenterEnc()\r\n\t{\r\n\t\tswitch(autoStep)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 1:\r\n\t\t\t{\r\n\t\t\t\tstrafeRightEnc();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 2:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 3:\r\n\t\t\t{\r\n\t\t\t\tstrafeLeftEnc();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 4:\r\n\t\t\t{\r\n\t\t\t\tstrafeLeftEnc();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 5:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 6:\r\n\t\t\t{\r\n\t\t\t\tdriveForwardEnc();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"private void setupAnts() {\n IntStream.range(0, numberOfAnts)\n .forEach(i -> {\n ants.forEach(ant -> {\n ant.clear();\n ant.visitCity(-1, random.nextInt(numberOfCities));\n });\n });\n currentIndex = 0;\n }",
"public static void addAtts(Collection<String> arr){\n\t\tarr.forEach(it -> selectedAtts.put(it,true));\n\t}",
"public static synchronized String[] getModeNames() {\n\n\tString names[] = new String[registryModes.size()];\n\n\tint i = 0;\n\n for (Enumeration e = registryModes.keys(); e.hasMoreElements();) {\n CaselessStringKey key = (CaselessStringKey)e.nextElement();\n\n\t names[i++] = key.getName();\n\t}\n\n\tif (i <= 0)\n\t return null;\n\n\treturn names;\n }",
"public void gameModes(Parameters parameters, final onSuccessCallback callback){\n getJSONArray(parameters.buildQuery(Endpoint.GAME_MODES), new onSuccessCallback() {\n @Override\n public void onSuccess(JSONArray result) {\n callback.onSuccess(result);\n }\n\n @Override\n public void onError(VolleyError error) {\n callback.onError(error);\n }\n });\n }",
"public void createOptionsList() {\r\n int j;\r\n int i;\r\n String tempClassOptionsString = this.classOptionsString;\r\n while (tempClassOptionsString.length() > 0) {\r\n char cliChar = ' ';\r\n String optionValue = \"\";\r\n String str = \"\";\r\n tempClassOptionsString = tempClassOptionsString.trim();\r\n\r\n i = tempClassOptionsString.indexOf(\"-\");\r\n if (i >= 0) {\r\n cliChar = tempClassOptionsString.charAt(i + 1);\r\n tempClassOptionsString = tempClassOptionsString.substring(i + 2).trim();\r\n if (tempClassOptionsString.length() == 0) {\r\n optionValue = \"true\";\r\n Pair<String, String> optionPair = new Pair<String, String>(String.valueOf(cliChar), optionValue);\r\n this.outputClassOptions.add(optionPair);\r\n } else {\r\n if (tempClassOptionsString.charAt(0) == '-') {\r\n optionValue = \"true\";\r\n Pair<String, String> optionPair = new Pair<String, String>(String.valueOf(cliChar), optionValue);\r\n this.outputClassOptions.add(optionPair);\r\n } else if (tempClassOptionsString.charAt(0) == '(') {\r\n int openBracket = 0;\r\n int closeBracket = 0;\r\n StringBuffer temp = new StringBuffer(\"\");\r\n for (int k = 0; k < tempClassOptionsString.length(); k++) {\r\n char cTemp = tempClassOptionsString.charAt(k);\r\n temp.append(cTemp);\r\n switch (cTemp) {\r\n case '(': {\r\n openBracket += 1;\r\n break;\r\n }\r\n case ')': {\r\n closeBracket += 1;\r\n if (closeBracket == openBracket) {\r\n tempClassOptionsString = tempClassOptionsString.substring(k + 1).trim();\r\n optionValue = temp.toString().trim();\r\n optionValue = optionValue.substring(1, optionValue.length() - 1);\r\n Pair<String, String> optionPair = new Pair<String, String>(String.valueOf(cliChar), optionValue);\r\n this.outputClassObjectOptions.add(optionPair);\r\n optionsString subObject = new optionsString(optionValue);\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n\r\n\r\n } else {\r\n j = tempClassOptionsString.indexOf(\" \");\r\n if (j > 0) {\r\n optionValue = tempClassOptionsString.substring(0, j);\r\n tempClassOptionsString = tempClassOptionsString.substring(j + 1).trim();\r\n Pair<String, String> optionPair = new Pair<String, String>(String.valueOf(cliChar), optionValue);\r\n this.outputClassOptions.add(optionPair);\r\n } else {\r\n optionValue = tempClassOptionsString;\r\n tempClassOptionsString = \"\";\r\n Pair<String, String> optionPair = new Pair<String, String>(String.valueOf(cliChar), optionValue);\r\n this.outputClassOptions.add(optionPair);\r\n }\r\n }\r\n }\r\n\r\n }\r\n }\r\n\r\n i = this.classFullName.lastIndexOf('.');\r\n if (i > 0) {\r\n this.classShortName = this.classFullName.substring(i + 1);\r\n } else\r\n this.classShortName = this.classFullName;\r\n }",
"public MmTelFeature.MmTelCapabilities convertCapabilities(int[] enabledFeatures) {\n boolean[] featuresEnabled = new boolean[enabledFeatures.length];\n int i = 0;\n while (i <= 5 && i < enabledFeatures.length) {\n if (enabledFeatures[i] == i) {\n featuresEnabled[i] = true;\n } else if (enabledFeatures[i] == -1) {\n featuresEnabled[i] = false;\n }\n i++;\n }\n MmTelFeature.MmTelCapabilities capabilities = new MmTelFeature.MmTelCapabilities();\n if (featuresEnabled[0] || featuresEnabled[2]) {\n capabilities.addCapabilities(1);\n }\n if (featuresEnabled[1] || featuresEnabled[3]) {\n capabilities.addCapabilities(2);\n }\n if (featuresEnabled[4] || featuresEnabled[5]) {\n capabilities.addCapabilities(4);\n }\n Log.i(TAG, \"convertCapabilities - capabilities: \" + capabilities);\n return capabilities;\n }",
"void setPlanFeatureArray(org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature[] planFeatureArray);",
"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}",
"protected ModeFlags updateModesFromOptions(ThreadContext context, RubyHash options, ModeFlags modes) {\n if (options == null || options.isNil()) return modes;\n \n Ruby runtime = context.getRuntime();\n \n if (options.containsKey(runtime.newSymbol(\"mode\"))) {\n modes = parseModes19(context, options.fastARef(runtime.newSymbol(\"mode\")).asString());\n }\n \n // This duplicates the non-error behavior of MRI 1.9: the\n // :binmode option is ORed in with other options. It does\n // not obliterate what came before.\n \n if (options.containsKey(runtime.newSymbol(\"binmode\")) &&\n options.fastARef(runtime.newSymbol(\"binmode\")).isTrue()) {\n try {\n modes = new ModeFlags(modes.getFlags() | ModeFlags.BINARY);\n } catch (InvalidValueException e) {\n /* n.b., this should be unreachable\n because we are changing neither read-only nor append\n */\n throw getRuntime().newErrnoEINVALError();\n }\n }\n \n // This duplicates the non-error behavior of MRI 1.9: the\n // :binmode option is ORed in with other options. It does\n // not obliterate what came before.\n \n if (options.containsKey(runtime.newSymbol(\"binmode\")) &&\n options.fastARef(runtime.newSymbol(\"binmode\")).isTrue()) {\n try {\n modes = new ModeFlags(modes.getFlags() | ModeFlags.BINARY);\n } catch (InvalidValueException e) {\n /* n.b., this should be unreachable\n because we are changing neither read-only nor append\n */\n throw getRuntime().newErrnoEINVALError();\n }\n }\n \n // FIXME: check how ruby 1.9 handles this\n \n // if (rubyOptions.containsKey(runtime.newSymbol(\"textmode\")) &&\n // rubyOptions.fastARef(runtime.newSymbol(\"textmode\")).isTrue()) {\n // try {\n // modes = getIOModes(runtime, \"t\");\n // } catch (InvalidValueException e) {\n // throw getRuntime().newErrnoEINVALError();\n // }\n // }\n //\n // if (rubyOptions.containsKey(runtime.newSymbol(\"binmode\")) &&\n // rubyOptions.fastARef(runtime.newSymbol(\"binmode\")).isTrue()) {\n // try {\n // modes = getIOModes(runtime, \"b\");\n // } catch (InvalidValueException e) {\n // throw getRuntime().newErrnoEINVALError();\n // }\n // }\n \n return modes;\n }",
"public void initializeEngines() {\n\t\tfor (int i=0; i < _engineNumber; i++) {\n\t\t\tengineList.add(new Engine(\"Engine_\" + i, \"\", 0.0, 0.0, 0.0, _theAircraft));\n\t\t}\n\t}",
"private RoomType[] getRoomTypeStrings()\r\n\t{\r\n\t\treturn bCtrl.getAllRoomTypes().stream().toArray(RoomType[]::new);\r\n\t}",
"public void setMotorBehaviors(){\n motors = new ArrayList<>();\n motors.add(rf);\n motors.add(rb);\n motors.add(lf);\n motors.add(lb);\n\n //reset motor encoders\n rf.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rb.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lf.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lb.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lift.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n relic_extension.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n //Set motor behaviors\n rf.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rf.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rb.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rb.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lf.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n lf.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lb.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n lb.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rf.setDirection(DcMotorSimple.Direction.REVERSE);\n rb.setDirection(DcMotorSimple.Direction.REVERSE);\n relic_extension.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n relic_extension.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n relic_extension.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n lift.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lift.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lift.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n lift.setDirection(DcMotorSimple.Direction.REVERSE);\n\n //Set servo behaviors\n leftWheel2.setDirection(DcMotorSimple.Direction.REVERSE);\n rightWheel1.setDirection(DcMotorSimple.Direction.REVERSE);\n\n }",
"private static ArrayList<String> transmit(ArrayList<String> array){\n\n\t\tArrayList<String> ret= new ArrayList<String>();\n\t\tfor (int i = 0; i < array.size(); i++) {\n\t\t\tret.add(array.get(i));\n\t\t}\n\t\treturn ret;\t\n\t}",
"public void setWeitereVerwendungszwecke(String[] list) throws RemoteException;",
"public void initialise(String[] GameNames)\n\t{\n\t\tgametype = new GameType[GameNames.length];\n\t\tfor (int i = 0; i < GameNames.length; i++)\n\t\t{\n\t\t\tgametype[i] = new GameType(GameNames[i]);\n\t\t}\n\t}",
"public ArrayList genStates2(){\n ArrayList states = new ArrayList(44);\n List<String> notes = new ArrayList<String>(Arrays.asList(\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\"));\n List<String> beat = new ArrayList<String>(Arrays.asList(\"1\",\"2\",\"3\",\"4\"));\n //List<String> dot = new ArrayList<String>(Arrays.asList(\"1\",\"0\"));\n for(String s : notes){\n for(String d : beat){\n //for(int d = 0; d<=1; d++){\n String state = \"\"; \n state += s;\n state += d;\n //state += dot.get(d);\n states.add(state);\n //}\n }\n }\n return states;\n }",
"public void setExtencionMulti(ArrayList<String> listExtencion) {\n if (listExtencion.size() > 0) {\n for (String i : listExtencion) {\n switch (i) {\n case \"MPEG\": {\n frameSearch.getPnAdvanced().getChAtReading().setSelected(true);\n break;\n }\n case \"WMV\": {\n frameSearch.getPnAdvanced().getChAtSistema().setSelected(true);\n break;\n }\n case \"MP3\": {\n frameSearch.getPnAdvanced().getChAtComprimido().setSelected(true);\n break;\n }\n case \"MP4\": {\n frameSearch.getPnAdvanced().getChAtVideo().setSelected(true);\n break;\n }\n case \"ASF\": {\n frameSearch.getPnAdvanced().getChAtModify().setSelected(true);\n break;\n }\n case \"AVI\": {\n frameSearch.getPnAdvanced().getChAtHidden().setSelected(true);\n break;\n }\n case \"DIVX\": {\n frameSearch.getPnAdvanced().getChAtFolder().setSelected(true);\n\n break;\n }\n case \"FLV\": {\n frameSearch.getPnAdvanced().getChAtEncriptado().setSelected(true);\n break;\n }\n default: {\n break;\n }\n }\n }\n }\n }",
"static void constructor(){\n /*SK*/ /*CZ*/ /*EN*/ \n /*0*/ SK.add(\"Základné nastavenia a konštanty\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); //language String value at position \n/*1*/ SK.add(\"A :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*2*/ SK.add(\"Z :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*3*/ SK.add(\"Dľžka rozpätia \"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*4*/ SK.add(\"Počítaná vzdialenosť od osi vedenia\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*5*/ SK.add(\"\\u0394l \"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*6*/ SK.add(\"Dľžka elementu reťazovky\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*7*/ SK.add(\"Aplikovať terén\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*8*/ SK.add(\"Aplikovat modelovaný terén?\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*9*/ SK.add(\"A/Z hranice\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*10*/ SK.add(\"hranice priestoru su v tvare obdlžnika dopočítaneho na základe hodnôt konštánt AZ\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\");\n/*11*/ SK.add(\"Generované hranice\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*12*/ SK.add(\"hranice priestoru sú generovane an základe vstupných bodov pozn. Comlex Hull\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*13*/ SK.add(\"Teren\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*14*/ SK.add(\"Model terénu\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*15*/ SK.add(\"Hlavná os rozpätia\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*16*/ SK.add(\"X1 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*17*/ SK.add(\"X-sová súradnica stožiara 1\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n /*18*/ SK.add(\"Z1 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*19*/ SK.add(\"Z-sová súradnica stožiara 1\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*20*/ SK.add(\"X2 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*21*/ SK.add(\"X-sová súradnica stožiara 2\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n /*22*/ SK.add(\"Z2 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*23*/ SK.add(\"Z-sová súradnica stožiara 2\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*24*/ SK.add(\"Ukažka terenu\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*25*/ SK.add(\"Y :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*26*/ SK.add(\"Výškový offset\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*27*/ SK.add(\"block offset\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*28*/ SK.add(\"Blokuje daný ofset \"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*29*/ SK.add(\"Strana počitaneho štvorca\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\");\n/*30*/ SK.add(\"H :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*31*/ SK.add(\"Vyska pre vertikalne mapovanie\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n \n \n \n \n \n \n \n \n \n \n \n \n // language_main_frame.LangLabel(constants.getLanguage_option(),0) \n inicializovane = true;\n}",
"@Override\n public void teleopInit() {\n /* factory default values */\n _talonL1.configFactoryDefault();\n _talonL2.configFactoryDefault();\n _talonR1.configFactoryDefault();\n _talonR2.configFactoryDefault();\n\n /* flip values so robot moves forward when stick-forward/LEDs-green */\n _talonL1.setInverted(true); // <<<<<< Adjust this\n _talonL2.setInverted(true); // <<<<<< Adjust this\n _talonR1.setInverted(true); // <<<<<< Adjust this\n _talonR2.setInverted(true); // <<<<<< Adjust this\n\n\n /*\n * WPI drivetrain classes defaultly assume left and right are opposite. call\n * this so we can apply + to both sides when moving forward. DO NOT CHANGE\n */\n _drive.setRightSideInverted(true);\n }",
"@Override\n\tpublic void setStates(){\n\t\tfor(Entry<String, GUIComponentSelector> lightEntry : lightSelectors.entrySet()){\n\t\t\tlightEntry.getValue().selectorState = vehicle.variablesOn.contains(lightEntry.getKey()) ? 1 : 0;\n\t\t}\n\t\t\n\t\t//Set the states of the magneto selectors.\n\t\tif(vehicle.definition.motorized.hasSingleEngineControl){\n\t\t\tmagnetoSelectors.get((byte)-1).visible = !vehicle.engines.isEmpty();\n\t\t\tfor(PartEngine engine : vehicle.engines.values()){\n\t\t\t\tmagnetoSelectors.get((byte)-1).selectorState = engine.state.magnetoOn ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}else{\n\t\t\tfor(Entry<Byte, GUIComponentSelector> magnetoEntry : magnetoSelectors.entrySet()){\n\t\t\t\tif(vehicle.engines.containsKey(magnetoEntry.getKey())){\n\t\t\t\t\tmagnetoEntry.getValue().selectorState = vehicle.engines.get(magnetoEntry.getKey()).state.magnetoOn ? 1 : 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Set the states of the starter selectors.\n\t\tif(vehicle.definition.motorized.hasSingleEngineControl){\n\t\t\tfor(PartEngine engine : vehicle.engines.values()){\n\t\t\t\tstarterSelectors.get(ENGINE_SINGLE_SELECTOR_INDEX).selectorState = engine.state.magnetoOn ? (engine.state.esOn ? 2 : 1) : 0;\n\t\t\t\tstarterSelectors.get(ENGINE_SINGLE_SELECTOR_INDEX).visible = !engine.definition.engine.disableAutomaticStarter;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}else{\n\t\t\tfor(Entry<Byte, GUIComponentSelector> starterEntry : starterSelectors.entrySet()){\n\t\t\t\tif(vehicle.engines.containsKey(starterEntry.getKey())){\n\t\t\t\t\tPartEngine engine = vehicle.engines.get(starterEntry.getKey());\n\t\t\t\t\tstarterEntry.getValue().selectorState = engine.state.magnetoOn ? (engine.state.esOn ? 2 : 1) : 0;\n\t\t\t\t\tstarterEntry.getValue().visible = !engine.definition.engine.disableAutomaticStarter;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t//For every tick we have one of the trim selectors pressed, do the corresponding trim action.\n\t\tif(selectedTrimSelector != null){\n\t\t\tif(inClockPeriod(3, 1)){\n\t\t\t\tif(!appliedTrimThisRender){\n\t\t\t\t\tselectedTrimSelector.selectorState = selectedTrimSelector.selectorState == 0 ? 1 : 0; \n\t\t\t\t\tInterfacePacket.sendToServer(new PacketVehicleControlDigital(vehicle, selectedTrimType, selectedTrimDirection));\n\t\t\t\t\tappliedTrimThisRender = true;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tappliedTrimThisRender = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//If we have reverse thrust, set the selector state.\n\t\tif(reverseSelector != null){\n\t\t\tif(vehicle.definition.motorized.isBlimp){\n\t\t\t\treverseSelector.selectorState = 0;\n\t\t\t\tfor(PartEngine engine : vehicle.engines.values()){\n\t\t\t\t\tif(engine.currentGear < 0){\n\t\t\t\t\t\treverseSelector.selectorState = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\treverseSelector.selectorState = vehicle.reverseThrust ? 1 : 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//If we have autopilot, set the selector state.\n\t\tif(autopilotSelector != null){\n\t\t\tautopilotSelector.selectorState = vehicle.autopilot ? 1 : 0;\n\t\t}\n\t\t\n\t\t//If we have gear, set the selector state.\n\t\tif(gearSelector != null){\n\t\t\tif(vehicle.variablesOn.contains(EntityVehicleF_Physics.GEAR_VARIABLE)){\n\t\t\t\tgearSelector.selectorState = vehicle.gearMovementTime == vehicle.definition.motorized.gearSequenceDuration ? 2 : 3;\n\t\t\t}else{\n\t\t\t\tgearSelector.selectorState = vehicle.gearMovementTime == 0 ? 0 : 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//If we have a hitch, set the selector state.\n\t\tif(trailerSelector != null){\n\t\t\tSwitchEntry switchDef = trailerSwitchDefs.get(0);\n\t\t\tif(switchDef.connectionGroup.hookup){\n\t\t\t\ttrailerSelector.selectorState = switchDef.entityOn.towedByConnection != null ? 0 : 1;\n\t\t\t}else{\n\t\t\t\ttrailerSelector.selectorState = 1;\n\t\t\t\tfor(TrailerConnection connection : switchDef.entityOn.getTowingConnections()){\n\t\t\t\t\tif(connection.hitchGroupIndex == switchDef.connectionGroupIndex){\n\t\t\t\t\t\ttrailerSelector.selectorState = 0;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Set the beaconBox text color depending on if we have an active beacon.\n\t\tif(beaconBox != null){\n\t\t\tbeaconBox.fontColor = vehicle.selectedBeacon != null ? ColorRGB.GREEN : ColorRGB.RED;\n\t\t}\n\t\t\n\t\t//Iterate through custom selectors and set their states.\n\t\tfor(GUIComponentSelector customSelector : customSelectors){\n\t\t\tcustomSelector.selectorState = vehicle.variablesOn.contains(customSelector.text) ? 1 : 0;\n\t\t}\n\t}",
"public Enumeration getSupportedPortletModes() {\r\n return portletModes.elements();\r\n }",
"public void set_array(String type){\n while (true){\n\n General_imp construct = new General_imp();\n\n construct.print_type( type);\n String ans = construct.input();\n if (ans.equals(\"EXIT\"))\n break;\n setatribs(ans, type);\n }\n }",
"private static String[] resetStringArray() {\n String[] st = new String[L_MAX];\n L = 2 << 8;\n W = 9;\n int i;\n // initialize symbol table with all 1-character strings\n for (i = 0; i < R; i++)\n st[i] = \"\" + (char) i;\n st[i++] = \"\"; // (unused) lookahead for EOF\n return st;\n }",
"void setSpeedsArray(int i, org.landxml.schema.landXML11.SpeedsDocument.Speeds speeds);",
"private void buildRoutes(String type) {\r\n\t\tswitch (type.charAt(0)) {\r\n\t\tcase 'F':\r\n\t\t\tthis.wwd.firePropertyChange(\"step\", \"\", \"Création des routes FIR\");\r\n\t\t\tbreak;\r\n\t\tcase 'U':\r\n\t\t\tthis.wwd.firePropertyChange(\"step\", \"\", \"Création des routes UIR\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"@java.lang.Override\n public google.maps.fleetengine.v1.TripType getSupportedTripTypes(int index) {\n return supportedTripTypes_converter_.convert(supportedTripTypes_.get(index));\n }",
"@Override\n public List<Mode> availableModes(List<Mode> modes) {\n if (modes != null) {\n int size = modes.size();\n if (size > 0) {\n // dock everywhere, except editor frame\n return modes.stream()\n .filter(singleMode -> singleMode.getName() != null && !\"editor\".equals(singleMode.getName()))\n .collect(Collectors.toList());\n }\n }\n\n return null;\n }",
"public String[] obtainStops() {\n\n String[] stopsNone = { \"No stops found\" };\n String[] stopsArbutus = { \"Commons Dr. & Park Rd.\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"Administration Dr. Bus Shelter\", \"Hilltop Cir. & Hilltop Rd.\", \"Hilltop Cir. & Walker Ave.\", \"Hilltop Cir. & Center Rd.\", \"Poplar Ave. & Stadium Lot\", \"TRC @ Linden Ave\", \"Westland Blvd. & Circle Dr.\", \"Westland Blvd. & Courtney Rd.\", \"Maiden Choice La. & Westland Blvd\", \"Maiden Choice La. & Warren Tree\", \"Maiden Choice La. & Wilkens Ave\", \"Maiden Choice La. & Grouse Ct\", \"Maiden Choice La. & Symmington Aven.\"};\n String[] stopsArundel = { \"Commons Dr. & Park Rd.\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"BWI Marc Station\", \"Arundel Mills Mall Visitor Entrace #5\", \"BWI Marc Station\", \"Administration Dr. Bus Shelter\", \"Hilltop Circle & Hilltop Rd.\" };\n String[] stopsCatonsville = { \"Commons Dr. & Park Rd.\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"Administration Dr. Bus Shelter\", \"Rolling Rd @YMCA\", \"Rolling Rd @Valley Rd (CCBC)\", \"Catonsville High @Bloomsbury Ave\", \"Mellor Ave & Bloomsbury Ave\" };\n String[] stopsDowntownA = { \"Commons Dr. & Park Rd\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"Greyhound Station @ Haines\",\"MLK Blvd & Pratt St (UMB)\", \"Green St & Fayette St\", \"Green St & Lombard St (UMB)\" };\n\n if ( this.longName.toLowerCase().contains(\"Arbutus\".toLowerCase()) ) {\n return stopsArbutus;\n }\n if ( this.longName.contains(\"Arundel\") ) {\n return stopsArundel;\n }\n if ( this.longName.contains(\"Catonsville\") ) {\n return stopsCatonsville;\n }\n if ( this.longName.contains(\"Downtown\") ) {\n return stopsDowntownA;\n }\n\n return stopsNone;\n\n }",
"public void setValues (String values)\n {\n List<Character> valueList = values.chars().mapToObj(c -> (char)c).collect(Collectors.toList());\n for (State state : this.stateMap.values()) {\n state.values(valueList);\n }\n }",
"public void setMode(int i){\n\tgameMode = i;\n }",
"private void requestWeatherTypes() {\n SharedPreferences preferences = getSharedPreferences(CommonConstants.APP_SETTINGS, MODE_PRIVATE);\n String url = \"https://api.openweathermap.org/data/2.5/forecast?\" +\n \"id=\" + input.get(CommonConstants.ARRIVAL_CITY_ID) +\n \"&appid=\" + CommonConstants.OWM_APP_ID +\n \"&lang=\" + Locale.getDefault().getLanguage() +\n \"&units=\" + preferences.getString(CommonConstants.TEMPERATURE_UNIT, \"Standard\");\n ForecastListener listener = new ForecastListener(weatherList -> {\n try {\n WeatherTypeMapper mapper = new WeatherTypeMapper();\n fillPreview(mapper.from(weatherList));\n if (input.containsKey(CommonConstants.SELECTIONS)) {\n //noinspection unchecked\n setSelections((List<Settings.Selection>) input.get(CommonConstants.SELECTIONS));\n }\n } catch (ExecutionException | InterruptedException e) {\n Log.e(TAG, \"onSuccess: \" + e.getMessage(), e);\n }\n });\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, url, null, listener, null);\n TravelRequestQueue.getInstance(this).addRequest(request);\n }",
"public void replace(List<TemplItem> template, List<Rope> env) {\n Rope r = new Rope();\n // StringBuilder bases = new StringBuilder();\n // Stack<DNAChunk> r = new Stack<>();\n int ndx;\n int len;\n\n for (TemplItem item : template) {\n switch (item.getType()) {\n case BASE:\n // bases.append((char) item.getValue());\n // r.push(new StringChunk(\"\" + (char) item.getValue()));\n r.concat(new Rope(\"\" + (char) item.getValue()));\n break;\n case PROT:\n // if (bases.length() > 0) {\n // r.add(new StringChunk(bases.toString()));\n // bases = new StringBuilder();\n // }\n ndx = item.getValue();\n if (ndx < env.size()) {\n if (item.getProtLevel() == 0) {\n Rope envRope = env.get(item.getValue());\n r.concat(envRope);\n // r.append(env.get(item.getValue()).substring(0));\n // r.add(env.get(item.getValue()));\n } else {\n Rope envStr = protect(item.getProtLevel(), env.get(item.getValue()).substring(0));\n // System.out.println(\n // \" prot(\" + item.getProtLevel() + \") \" + env.get(item.getValue()).substring(0)\n // + \" => \" + envStr);\n\n r.concat(envStr);\n // r.add(new StringChunk(envStr));\n }\n // if (item.getProtLevel() < 1) {\n // r.add(env.get(item.getValue()));\n // } else {\n // System.out.println(\"Protection level \" + item.getProtLevel());\n // DNAChunk envStr = env.get(item.getValue());\n // String prot = protect(item.getProtLevel(), envStr.substring(0));\n // r.add(new StringChunk(prot));\n // }\n }\n break;\n case LEN:\n // if (bases.length() > 0) {\n // r.add(new StringChunk(bases.toString()));\n // bases = new StringBuilder();\n // }\n ndx = item.getValue();\n if (ndx < env.size()) {\n Rope envStr = env.get(item.getValue()).substring(0);\n len = envStr.getLength();\n } else {\n len = 0;\n }\n // r.add(new StringChunk(asnat(len)));\n r.concat(new Rope(asnat(len)));\n break;\n default:\n throw new RuntimeException(\"replace unhandled template \" + item.getType());\n }\n }\n // if (bases.length() > 0) {\n // r.add(new StringChunk(bases.toString()));\n // }\n\n if (r.getLength() > 0) {\n dna.prepend(r);\n }\n // while (!r.empty()) {\n // DNAChunk chunk = r.pop();\n\n // if (chunk.size() > 10) {\n // System.out.println(\" prepend \" + chunk.substring(0, 10) + \"...\");\n // } else {\n // System.out.println(\" prepend \" + chunk.substring(0));\n // }\n // dna.prepend(chunk);\n // }\n }",
"private void initOperationMode() throws IllegalArgumentException {\n String writeModeStr = getProperties().getProperty(WRITE_MODE, \"single\");\n String readModeStr = getProperties().getProperty(READ_MODE, \"single\");\n String sortKeysCountStr = getProperties().getProperty(SORT_KEY_COUNT, \"10\");\n\n int count = Integer.parseInt(sortKeysCountStr);\n startSortKey = String.valueOf(0).getBytes();\n stopSortKey = String.valueOf(count).getBytes();\n while ((--count) >= 0) {\n sortKeys.add(String.valueOf(count).getBytes());\n }\n\n if (writeModeStr.equals(\"single\") && readModeStr.equals(\"single\")) {\n writeMode = WriteMode.SINGLE;\n readMode = ReadMode.SINGLE;\n } else if (writeModeStr.equals(\"batch\") && readModeStr.equals(\"batch\")) {\n writeMode = WriteMode.BATCH;\n readMode = ReadMode.BATCH;\n } else if (writeModeStr.equals(\"multi\") && readModeStr.equals(\"multi\")) {\n writeMode = WriteMode.MULTI;\n readMode = ReadMode.MULTI;\n } else if (writeModeStr.equals(\"multi\") && readModeStr.equals(\"batch\")) {\n writeMode = WriteMode.MULTI;\n readMode = ReadMode.BATCH;\n } else if (writeModeStr.equals(\"multi\") && readModeStr.equals(\"range\")) {\n writeMode = WriteMode.MULTI;\n readMode = ReadMode.RANGE;\n } else if (writeModeStr.equals(\"batch\") && readModeStr.equals(\"multi\")) {\n writeMode = WriteMode.BATCH;\n readMode = ReadMode.MULTI;\n } else {\n writeMode = WriteMode.INVALID;\n readMode = ReadMode.INVALID;\n throw new IllegalArgumentException(\"The operation mode is not been supported\");\n }\n System.out.println(\"OperationMode:writeMode=\" + writeModeStr + \",readMode=\" + readModeStr);\n }",
"public void initialise() {\n\r\n for (String myview : Config.appStruct) {\r\n int i = 0;\r\n String[] str = myview.split(\":\");\r\n if (str[0].trim().equals(\"MyAppList\")) {\r\n i++;\r\n addAppList(str[1].trim(), str[2].trim(), str[3].trim(), i);\r\n\r\n } else if (str[0].trim().equals(\"MyBanner\")) {\r\n i++;\r\n addBanner(str[1].trim(), i);\r\n\r\n } else if (str[0].trim().equals(\"MyCollection\")) {\r\n i++;\r\n addCollection(str[1].trim(), str[2].trim(), i);\r\n\r\n }\r\n else if(str[0].trim().equals(\"VeryBestApps\")){\r\n\r\n i++;\r\n addVeryBestApps(str[1].trim(), i);\r\n\r\n }\r\n\r\n }\r\n }",
"public boolean[] checkAvailableMode()\n {\n if (player == null)\n throw new IllegalStateException(\"Carta: \" + name + \" non appartiene a nessun giocatore.\");//If this card doesn't belong to any player, it launches an exception\n\n\n availableMethod[0] = false;//I suppose that the modes can't be used\n availableMethod[1] = false;\n availableMethod[2] = false;\n\n List<Square> squareList = new ArrayList<>();\n\n squareList.addAll(MethodsWeapons.squareThatSee(player));\n squareList.remove(player.getSquare());\n\n\n if (isLoaded() && MethodsWeapons.areSquareISeeNotMineNotEmpty(player, squareList))\n availableMethod[0] = true;\n\n if (isLoaded() && player.getAmmoBlue() > 0 && (!checkRocketJumpColors().isEmpty()) && availableMethod[0])\n availableMethod[1] = true;\n\n\n if (isLoaded() && player.getAmmoYellow() > 0 && availableMethod[0])\n availableMethod[2] = true;\n\n return availableMethod;\n\n }",
"@Override\r\n public void runOpMode() {\n\r\n mtrFL = hardwareMap.dcMotor.get(\"fl_drive\");\r\n mtrFR = hardwareMap.dcMotor.get(\"fr_drive\");\r\n mtrBL = hardwareMap.dcMotor.get(\"bl_drive\");\r\n mtrBR = hardwareMap.dcMotor.get(\"br_drive\");\r\n\r\n\r\n // Set directions for motors.\r\n mtrFL.setDirection(DcMotor.Direction.REVERSE);\r\n mtrFR.setDirection(DcMotor.Direction.FORWARD);\r\n mtrBL.setDirection(DcMotor.Direction.REVERSE);\r\n mtrBR.setDirection(DcMotor.Direction.FORWARD);\r\n\r\n\r\n //zero power behavior\r\n mtrFL.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n mtrFR.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n mtrBL.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n mtrBR.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\r\n\r\n\r\n // Set power for all motors.\r\n mtrFL.setPower(powFL);\r\n mtrFR.setPower(powFR);\r\n mtrBL.setPower(powBL);\r\n mtrBR.setPower(powBR);\r\n\r\n\r\n // Set all motors to run with given mode\r\n mtrFL.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n mtrFR.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n mtrBL.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n mtrBR.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\r\n\r\n waitForStart();\r\n\r\n // run until the end of the match (driver presses STOP)\r\n while (opModeIsActive()) {\r\n g1ch2 = -gamepad1.left_stick_y;\r\n g1ch3 = gamepad1.right_stick_x;\r\n g2ch2 = -gamepad2.left_stick_x;\r\n g2ch4 = -gamepad2.right_stick_x;\r\n g2left = gamepad2.left_trigger;\r\n g2right = gamepad2.right_trigger;\r\n\r\n\r\n powFL = Range.clip(g1ch2 + g1ch3, -1, 1);\r\n powFR = Range.clip(g1ch2 - g1ch3, -1, 1);\r\n powBL = Range.clip(g1ch2 + g1ch3, -1, 1);\r\n powBR = Range.clip(g1ch2 - g1ch3, -1, 1);\r\n\r\n\r\n mtrFL.setPower(powFL);\r\n mtrFR.setPower(powFR);\r\n mtrBL.setPower(powBL);\r\n mtrBR.setPower(powBR);\r\n sleep(50);\r\n }\r\n }",
"protected void initialize() {\n \tif (temp.equalsIgnoreCase(\"RRR\")) {\n\t\t\tauto = AutoSelect.RightRightRight;\n\t\t}else if (temp.equalsIgnoreCase(\"RRL\")) {\n\t\t\tauto = AutoSelect.RightRightLeft;\n\t\t}else if (temp.equalsIgnoreCase(\"RLR\")) {\n\t\t\tauto = AutoSelect.RightLeftRight;\n\t\t}else if (temp.equalsIgnoreCase(\"RLL\")) {\n\t\t\tauto = AutoSelect.RightLeftLeft;\n\t\t}else if (temp.equalsIgnoreCase(\"LRR\")) {\n\t\t\tauto = AutoSelect.LeftRightRight;\n\t\t}else if (temp.equalsIgnoreCase(\"LRL\")) {\n\t\t\tauto = AutoSelect.LeftRightLeft;\n\t\t}else if (temp.equalsIgnoreCase(\"LLR\")) {\n\t\t\tauto = AutoSelect.LeftLeftRight;\n\t\t}else {\n\t\t\tauto = AutoSelect.LeftLeftLeft;\n\t\t}\n \t\n \tDriverStation.reportError(\"------------------------------------------------\", false);\n \tDriverStation.reportError(\"-------------------AutonomousMid----------------\", false);\n \tDriverStation.reportError(\"------------------\" + auto + \"--------------\", false);\n \tDriverStation.reportError(\"------------------------------------------------\", false);\n }",
"public Builder addAllSupportedTripTypes(\n java.lang.Iterable<? extends google.maps.fleetengine.v1.TripType> values) {\n ensureSupportedTripTypesIsMutable();\n for (google.maps.fleetengine.v1.TripType value : values) {\n supportedTripTypes_.add(value.getNumber());\n }\n onChanged();\n return this;\n }",
"public static void launchPlane(ListArrayBasedGeneric<Runway> runwayList, AOSLArrayBased listOfPlanes) throws IOException // Option # 2\r\n\t{\r\n\t\tint sizeOfAirport = runwayList.size();\r\n\t\tint sizeOfRunway = 0;\r\n\t\tString flightNumber = \"\";\r\n\t\tString runwayName = \"\";\r\n\t\tchar userInput = '!';\r\n\t\tboolean readyToLaunch = false;\r\n\t\tint orderOfLaunch;\r\n\t\tint numberOfPlanes = 0;\r\n\t\t\r\n\t\t// Can't rely on the listOfPlanes' size because if planes are in purgatory, then they\r\n\t\t// are not taken out of the listOfPlanes' list and still CONTRIBUTE to the size even\r\n\t\t// though they are not on the runways to take off, so have to go through each runway \r\n\t\t// and count the size and total them up to get a accurate, updated count for the\r\n\t\t// number of planes\r\n\t\tfor(int i = 1; i < sizeOfAirport; i++)\r\n\t\t{\r\n\t\t\tnumberOfPlanes += runwayList.get(i).getListOfPlanes().size();\r\n\t\t}\r\n\t\t\r\n\t\tif(numberOfPlanes > 0) // Only launch, if there is a runway\r\n\t\t{\r\n\t\t\twhile(readyToLaunch == false)\r\n\t\t\t{\r\n\t\t\t\t// Get the launch order and size of the runway\r\n\t\t\t\torderOfLaunch = getLaunchOrder();\r\n\t\t\t\t\r\n\t\t\t\t// Get the size of the runway that is set to launch\r\n\t\t\t\tsizeOfRunway = runwayList.get(orderOfLaunch).getListOfPlanes().size();\r\n\t\t\t\t\r\n\t\t\t\tif(sizeOfRunway > 0) // Has atleast 1 plane in it\r\n\t\t\t\t{\r\n\t\t\t\t\t// Get the flight number from the runway\r\n\t\t\t\t\tflightNumber = runwayList.get(orderOfLaunch).getListOfPlanes().get(0).getFlightNumber();\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.print(\"\\tFlight \" + flightNumber + \" cleared for takeoff(Y/N): \");\r\n\t\t\t\t\tuserInput = stdin.readLine().trim().charAt(0);\r\n\t\t\t\t\tSystem.out.println(userInput);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(userInput == 'Y' || userInput == 'y') // Yes --> Take off\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Get the runway name to display it\r\n\t\t\t\t\t\trunwayName = runwayList.get(orderOfLaunch).getListOfPlanes().get(0).getRunway();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Launch the plane\r\n\t\t\t\t\t\trunwayList.get(orderOfLaunch).takeOff();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tSystem.out.println(\"\\tFlight \" + flightNumber + \" has now taken off from runway \" + runwayName);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Remove it from the list of planes, so it can be added back in the future\r\n\t\t\t\t\t\tlistOfPlanes.remove(listOfPlanes.search(flightNumber));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Increment flight counter and launch order\r\n\t\t\t\t\t\t/**\r\n\t\t\t\t\t\t * sizeOfAirport - 1 because:\r\n\t\t\t\t\t\t * P A B C\r\n\t\t\t\t\t\t * 1 2 3\r\n\t\t\t\t\t\t * reset to 1 when launchOrder reaches 3 which is\r\n\t\t\t\t\t\t * size of the runway (4) - 1\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tif(launchOrder == sizeOfAirport - 1)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tsetLaunchOrder(1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tincrementLaunchOrder();\r\n\t\t\t\t\t\t} // END IF/ELSE\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Increment flight counter\r\n\t\t\t\t\t\tincrementFlightTakeOffCounter();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse // User didn't give clearance --> Add it to purgatory and increment launch order but not the flight counter\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"\\tFlight \" + flightNumber + \" is now waiting to be allowed to re-enter a runway\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\trunwayList.get(0).addPlane(runwayList.get(orderOfLaunch).removeFromRunway(0));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Increment launch order\r\n\t\t\t\t\t\tif(launchOrder == sizeOfAirport - 1)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tsetLaunchOrder(1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tincrementLaunchOrder();\r\n\t\t\t\t\t\t} // END IF/ELSE\r\n\t\t\t\t\t} // END IF/ELSE\r\n\t\t\t\t\t\r\n\t\t\t\t\treadyToLaunch = true; // Quit after 1 iteration, whether the plane is launched or not\r\n\t\t\t\t}\r\n\t\t\t\telse // Get it to a launch order where it will have a plane\r\n\t\t\t\t{\r\n\t\t\t\t\tif(launchOrder == sizeOfAirport - 1) // It has reached the end of the runway count, so reset it to start at 1 (AFTER purgatory)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsetLaunchOrder(1); // Set it back to 1 so it can start again\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse // Launch order hasn't reached the end, increment it by 1\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tincrementLaunchOrder();\r\n\t\t\t\t\t} // END IF/ELSE\r\n\t\t\t\t} // END IF/ELSE\r\n\t\t\t} // END WHILE\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"\\tNo planes on any runway!\");\r\n\t\t} // END IF/ELSE\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t}",
"public void setTypes(ArrayList<String> types){\n this.types = types;\n }",
"private void getCustomAlarmStrategies() {\n String jsonString = WapiUtil.getCustomAlarmStrategies();\n List<DBAlarmStrategyCustom> dbstrategylist = JSONStr2DBStrategyCusList(jsonString);\n if (dbstrategylist != null) {\n List<AlarmStrategy> strategyCusList = DBStratCusList2StrategyList(dbstrategylist);\n if (null != strategyCusList) {\n // StrategyDBHelper.getInstance().cleanCustomAlarmStrategies();\n StrategyDBHelper.getInstance().updateCustomAlarmStrategies(\n dbstrategylist);\n }\n }\n }",
"private static void populateArtworkTypes() {\r\n if (artworkTypes.isEmpty()) {\r\n artworkTypes.add(TYPE_CLEARART);\r\n artworkTypes.add(TYPE_CLEARLOGO);\r\n artworkTypes.add(TYPE_SEASONTHUMB);\r\n artworkTypes.add(TYPE_TVTHUMB);\r\n artworkTypes.add(TYPE_CHARACTERART);\r\n artworkTypes.add(TYPE_CDART);\r\n }\r\n }",
"public ArrayList<ArrayList<String>> collateWholeDaySchedule(String routeCode, String dayType);",
"void populateDirections(List<List<List<Direction>>> message){\n this.path = message;\n convertMessage(floorSelect.getValue());\n setDirections();\n }",
"private static void standardPopulate(String[] s) {\n\t\tfor(/*int i = 0; i<s.length;i++*//* String z: s*/ int i = 0;i<s.length;i++){\r\n\t\t\t//s[i] = \"String #\"+(i+1);\r\n\t\t\t/*i++;\r\n\t\t\tz = \"String #\"+(i+1); */\r\n\t\t\tString string= \"String #\"+(i+1);\r\n\t\t\ts[i] = string; // setting position i into string\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public void setRateTables(entity.RateTable[] value);",
"public void fillPasswordArrayListChars(ArrayList<String> passwordChars, boolean uppercaseOn, boolean lowercaseOn, boolean numbersOn, boolean specialsOn) {\n\n passwordChars.clear();\n\n if (uppercaseOn) {\n\n for (int i = 0; i < uppercaseStrings.length; i++) {\n\n passwordChars.add(uppercaseStrings[i]);\n }\n }\n\n if (lowercaseOn) {\n\n for (int i = 0; i < lowercaseStrings.length; i++) {\n\n passwordChars.add(lowercaseStrings[i]);\n }\n }\n\n if (numbersOn) {\n\n for (int i = 0; i < numbersStrings.length; i++) {\n\n passwordChars.add(numbersStrings[i]);\n }\n }\n\n if (specialsOn) {\n\n for (int i = 0; i < specialsStrings.length; i++) {\n\n passwordChars.add(specialsStrings[i]);\n }\n }\n\n System.out.println(\"\\nArrayList with all chosen elements: \" + passwordChars + \"\\n\");\n\n int passwordCharsLength = passwordChars.size();\n\n System.out.println(\"Length of ArrayList with all chosen elements: \" + passwordCharsLength + \"\\n\");\n\n MainActivity var = new MainActivity();\n var.makePassword();\n }",
"private void setPatterns(String[] patterns) {\n\t\tthis.patterns.clear();\n\t\tthis.entries.clear();\n\t\taddPatterns(patterns);\n\t}",
"private Map<String, ArrayList<Integer>> createModes(String file) throws FileNotFoundException {\n Map<String, ArrayList<Integer>> tempModes = new HashMap<String, ArrayList<Integer>>();\n Scanner modeScan = new Scanner(new File(file));\n while (modeScan.hasNextLine()) {\n Scanner line = new Scanner(modeScan.nextLine());\n String name = line.next();\n ArrayList<Integer> notes = new ArrayList<Integer>();\n while (line.hasNextInt()) {\n notes.add(line.nextInt());\n }\n tempModes.put(name, notes);\n }\n return tempModes;\n }"
]
| [
"0.58733845",
"0.5577222",
"0.5273984",
"0.5211462",
"0.5023144",
"0.49896955",
"0.4866249",
"0.48386115",
"0.47973555",
"0.47904354",
"0.47487912",
"0.47425237",
"0.47060308",
"0.47040796",
"0.4686035",
"0.46784815",
"0.46743137",
"0.46731052",
"0.46107244",
"0.4586126",
"0.4556841",
"0.453975",
"0.45276988",
"0.45184898",
"0.44974416",
"0.44968316",
"0.44914395",
"0.44890594",
"0.44879022",
"0.44770122",
"0.44600457",
"0.4456639",
"0.44480225",
"0.44281036",
"0.44136083",
"0.44108298",
"0.4375955",
"0.43719664",
"0.43544188",
"0.43507135",
"0.43495804",
"0.43485966",
"0.43485966",
"0.43444315",
"0.43411848",
"0.4338297",
"0.43381125",
"0.4334551",
"0.43344155",
"0.4329404",
"0.43235642",
"0.43071327",
"0.4305491",
"0.4282072",
"0.4281459",
"0.42685342",
"0.42562228",
"0.42518428",
"0.4249177",
"0.4243972",
"0.42405397",
"0.42391083",
"0.4233403",
"0.42091122",
"0.42054087",
"0.42023474",
"0.41958994",
"0.41921508",
"0.41885486",
"0.41882393",
"0.4187123",
"0.41821554",
"0.41815138",
"0.41755664",
"0.41750768",
"0.41727236",
"0.4157434",
"0.41567078",
"0.4154561",
"0.4148721",
"0.4141668",
"0.4140382",
"0.4135389",
"0.41311646",
"0.4130836",
"0.41282415",
"0.41273233",
"0.41263673",
"0.41251203",
"0.4111062",
"0.411063",
"0.4109719",
"0.41081798",
"0.40957794",
"0.40949494",
"0.4086773",
"0.40866953",
"0.40764922",
"0.40758967",
"0.4075856"
]
| 0.5988759 | 0 |
The toCopy method is forcing me to put in this method so it doesn't choke when trying to copy over | @Transient
public List<String> getTransportationModeCodes() {
List<String> codes = new ArrayList<String>();
for (TransportationModeDetail mode : transportationModes) {
codes.add(mode.getTransportationModeCode());
}
return codes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Prototype makeCopy();",
"public void copy() {\n\n\t}",
"@Override\n\tprotected void copy(Object source, Object dest) {\n\t\t\n\t}",
"public abstract INodo copy();",
"@Override\r\n\tpublic Buffer copy() {\n\t\t\r\n\t\treturn null;\r\n\t}",
"public CMObject copyOf();",
"static void setCopying(){isCopying=true;}",
"T copy();",
"@Override\n public Object clone() {\n return super.clone();\n }",
"@Override\n public FieldEntity copy()\n {\n return state.copy();\n }",
"public abstract B copy();",
"@Override\r\n\tprotected Object clone() throws CloneNotSupportedException { // semi-copy\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}",
"Model copy();",
"@Override\n public TopicObject copy() {\n return new TopicObject(this);\n }",
"Buffer copy();",
"@Override\n\tpublic Expression copy() {\n\t\treturn null;\n\t}",
"protected Factorization copy(){\n Factorization newFactor = new Factorization(this.mdc);\n //shallow copy\n newFactor.setRecipes(recipes);\n newFactor.setIngredients(ingredients);\n newFactor.setUserMap(userMap);\n newFactor.setUserMapReversed(userMap_r);\n newFactor.setRecipeMap(recipeMap);\n newFactor.setRecipeMapReversed(recipeMap_r);\n newFactor.setIngredientMap(ingredientMap);\n newFactor.setIngredientMapReversed(ingredientMap_r);\n \n //deep copy\n List<User> userCopy = new ArrayList<User>();\n for(User curr: this.users){\n userCopy.add(new User(curr.getId()));\n }\n newFactor.setUsers(userCopy);\n newFactor.setDataset(dataset.copy());\n newFactor.updateInitialSpace();\n return newFactor;\n }",
"public abstract void copy(Result result, Object object);",
"private Shop deepCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n List<Book> books = new ArrayList<>();\n Iterator<Book> iterator = this.getBooks().iterator();\n while(iterator.hasNext()){\n\n books.add((Book) iterator.next().clone());\n }\n obj.setBooks(books);\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }",
"@Override\n public BoardFramework copyBoard() {\n List<List<GamePiece>> pieceCopies= new ArrayList<>();\n for(List<GamePiece> row: myGamePieces){\n List<GamePiece> rowOfPieceCopies = new ArrayList<>();\n for(GamePiece piece: row){\n rowOfPieceCopies.add(piece.copy());\n }\n pieceCopies.add(rowOfPieceCopies);\n }\n return new Board(pieceCopies,new ArrayList<>(myNeighborhoods),myEmptyState);\n }",
"IDataRow getCopy();",
"public Object clone ()\n\t{\n\t\ttry \n\t\t{\n\t\t\treturn super.clone();\n\t\t}\n\t\tcatch (CloneNotSupportedException e) \n\t\t{\n throw new InternalError(e.toString());\n\t\t}\n\t}",
"public MappingInfo copy()\r\n\t{\r\n\t\tArrayList<MappingCell> mappingCells = new ArrayList<MappingCell>();\r\n\t\tfor(MappingCell mappingCell : mappingCellHash.get())\r\n\t\t\tmappingCells.add(mappingCell);\r\n\t\treturn new MappingInfo(mapping.copy(),mappingCells);\r\n\t}",
"@Override\r\n public NumericObjectArrayList makeDeepCopy() {\r\n NumericObjectArrayList list = new NumericObjectArrayList();\r\n for (int i = 0; i < this.getCount(); i++) {\r\n try {\r\n list.insert(i, this.getValueAt(i));\r\n } catch (IndexRangeException ex) {\r\n //Shouldn't happen\r\n }\r\n }\r\n return list;\r\n }",
"private Object[] deepCopy()\n {\n Object[] newList = new Object[size];\n\n int newListPosition = 0;\n for (int i =0; i < size; i++)\n {\n if (list[i] != null)\n {\n newList[newListPosition++] = list[i];\n }\n }\n\n return newList;\n }",
"static void setNotCopying(){isCopying=false;}",
"@Override\n protected Object clone() throws CloneNotSupportedException {\n\n return super.clone();\n }",
"@Override\n public Connect4GameState copy() {\n //create new array object\n int[][] copy = new int[NUM_ROWS][NUM_COLS];\n\n //copy the elements over to the new array\n for (int i = 0; i < NUM_ROWS; i++) {\n System.arraycopy(board[i], 0, copy[i], 0, NUM_COLS);\n }\n\n //copies the current state of the game;\n return new MyGameState(copy, this.whoseTurn());\n }",
"public SoPickedPoint \ncopy() \n//\n////////////////////////////////////////////////////////////////////////\n{\n SoPickedPoint newCopy = new SoPickedPoint(this);\n return newCopy;\n}",
"public void performCopy() {\n \t\ttext.copy();\n \t}",
"@Override\n public RawStore copy() {\n return new RawStore(this.toRawCopy2D(), myNumberOfColumns);\n }",
"private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }",
"private Object copy ( Object record )\n\t{\n\t try\n {\n ByteArrayOutputStream baos = new ByteArrayOutputStream ();\n ObjectOutputStream oos = new ObjectOutputStream (baos);\n oos.writeObject (record);\n \n ByteArrayInputStream bais = new ByteArrayInputStream ( baos.toByteArray () );\n ObjectInputStream ois = new ObjectInputStream (bais);\n return ois.readObject ();\n }\n catch (Exception e)\n {\n throw new RuntimeException (\"Cannot copy record \" + record.getClass() + \" via serialization \" );\n }\n\t}",
"public abstract SoftwareLight copy();",
"public Object clone() {\n return this.copy();\n }",
"protected Shingle copy() {\n return new Shingle(this);\n }",
"public abstract Node copy();",
"@Override\n public UserProfile copy() {\n UserProfile userProfile = new UserProfile();\n copyTo(userProfile);\n return userProfile;\n }",
"private Shop shallowCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }",
"@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}",
"@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}",
"@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}",
"@Override\n\tpublic CanvasItem copy() {\n\t\treturn null;\n\t}",
"public Object clone() {\n try {\n return super.clone();\n } catch (Exception exception) {\n throw new InternalError(\"Clone failed\");\n }\n }",
"protected AbstractChartModel copy(AbstractChartModel aCopy) {\n aCopy.title = title;\n aCopy.xAxisTitle = xAxisTitle;\n aCopy.yAxisTitle = yAxisTitle;\n aCopy.xRangeMax = xRangeMax;\n aCopy.xRangeMin = xRangeMin;\n aCopy.xRangeIncr = xRangeIncr;\n aCopy.yRangeMax = yRangeMax;\n aCopy.yRangeMin = yRangeMin;\n aCopy.yRangeIncr = yRangeIncr;\n aCopy.simModel = simModel;\n ArrayList list = new ArrayList();\n for (int i = 0, n = dataSources.size(); i < n; i++) {\n GuiChartDataSource ds = (GuiChartDataSource) dataSources.get(i);\n list.add(ds.copy());\n }\n aCopy.dataSources = list;\n\n return aCopy;\n }",
"Object clone();",
"Object clone();",
"public static void copyConstructor(){\n\t}",
"private void copy()\n\t{\n\t\t//for loop for row\n\t\tfor (int row =0; row<nextVersion.length; row++)\n\t\t{\t//for loop for column\n\t\t\tfor (int column =0; column<nextVersion[row].length; column++)\n\t\t\t{\n\t\t\t\t//assigning values for currentVersion to nextVersion array\n\t\t\t\tnextVersion[row][column] = currentVersion[row][column];\n\t\t\t}\n\t\t}\n\t\n\t}",
"@Override\n public AbstractRelic makeCopy() {\n return new Compendium();\n }",
"public Object clone () {\n\t\t\ttry {\n\t\t\t\treturn super.clone();\n\t\t\t} catch (CloneNotSupportedException e) {\n\t\t\t\tthrow new InternalError(e.toString());\n\t\t\t}\n\t\t}",
"public O copy() {\n return value();\n }",
"public Object clone()\n/* */ {\n/* 835 */ return super.clone();\n/* */ }",
"public T copy() {\n T ret = createLike();\n ret.getMatrix().setTo(this.getMatrix());\n return ret;\n }",
"@Override\n public Object clone() throws CloneNotSupportedException{\n return super.clone();\n }",
"@SuppressWarnings(\"unchecked\")\r\n public Object clone() {\r\n try {\r\n OCRSet<E> newSet = (OCRSet<E>) super.clone();\r\n newSet.map = (HashMap<Integer, E>) map.clone();\r\n return newSet;\r\n } catch (CloneNotSupportedException e) {\r\n throw new InternalError();\r\n }\r\n }",
"private Board copy(Board board)\n {\n Board result = new Board(size);\n \n for (int i = 0; i < size; i++)\n for (int j = 0; j < size; j++)\n result.array[i][j] = board.array[i][j];\n \n return result;\n \n }",
"public Object clone() throws CloneNotSupportedException { return super.clone(); }",
"@Override\n\tpublic SecuredRDFList copy();",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}",
"@Override\r\n public weighted_graph copy() {\n weighted_graph copy = new WGraph_DS();\r\n for (node_info curr : this.Graph.getV()) { //The loop passes through all the ver' of the graph\r\n Nodes t = new Nodes(curr); //create new node\r\n copy.addNode(t.key); //copy the the old node to the new node\r\n }\r\n for (node_info curr0 : this.Graph.getV()) {\r\n for (node_info curr1 : this.Graph.getV(curr0.getKey())) { //this loops pass over the all nodes and copy the connection\r\n double i = this.Graph.getEdge(curr0.getKey(), curr1.getKey());\r\n if (i != -1) {\r\n copy.connect(curr0.getKey(), curr1.getKey(), i);\r\n }\r\n }\r\n }\r\n return copy;\r\n\r\n }",
"@Test\n\tpublic void testCopy2() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\t\tSLLSet copied = listObj2.copy();\n\t\tcopied.add(-1);\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tString expectedCopied = \"-1, 1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\t\tint expectedCopiedSize = 6;\n\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t\tassertEquals(expectedCopiedSize, copied.getSize());\n\t\tassertEquals(expectedCopied, copied.toString());\n\n\t}",
"@Override\r\n\tpublic void copy(String from, String to) {\n\t\t\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n @Override\n public <T extends JsonNode> T deepCopy() { return (T) this; }",
"@Override\n public weighted_graph copy() {\n weighted_graph copy = new WGraph_DS(this.ga);//create the copy graph via copy constructor\n return copy;\n }",
"public Object clone() {\n \ttry {\n \tMyClass1 result = (MyClass1) super.clone();\n \tresult.Some2Ob = (Some2)Some2Ob.clone(); ///IMPORTANT: Some2 clone method called for deep copy without calling this Some2.x will be = 12\n \t\n \treturn result;\n \t} catch (CloneNotSupportedException e) {\n \treturn null; \n \t}\n\t}",
"IUnit copy();",
"@Override\r\n\tpublic void copy(Property p) {\n\t\t\r\n\t}",
"@Override\n\tpublic graph copy() {\n\t\tgraph copy = new DGraph();\n\t\tCollection<node_data> nColl = this.GA.getV();\n\t\tfor (node_data node : nColl) {\n\t\t\tnode_data temp = new Node((Node) node );\n\t\t\tcopy.addNode(node);\n\t\t}\n\t\tCollection<node_data> nColl2 = this.GA.getV();\n\t\tfor (node_data node1 : nColl2) {\n\t\t\tCollection<edge_data> eColl = this.GA.getE(node1.getKey());\n\t\t\tif (eColl!=null) {\n\t\t\t\tfor (edge_data edge : eColl) {\n\t\t\t\t\tcopy.connect(edge.getSrc(), edge.getDest(), edge.getWeight());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn copy;\n\t}",
"Field getCopy();",
"public void copy(BlastGraph<HitVertex, ValueEdge> graphToCopy) {\n\t\t// empty this graph\n\t\tthis.empty();\n\n\t\t// union this empty graph with graphToCopy\n\t\tthis.union(graphToCopy);\n\t}",
"private final State copy( State state)\n {\n State copy = new State();\n copy.index = counter++;\n copy.stackOps = Arrays.copyOf( state.stackOps, state.stackOps.length);\n copy.gotos = Arrays.copyOf( state.gotos, state.gotos.length);\n itemSetMap.put( copy, itemSetMap.get( state));\n return copy;\n }",
"public Object clone()\n {\n Object o = null;\n try\n {\n o = super.clone();\n }\n catch (CloneNotSupportedException e)\n {\n e.printStackTrace();\n }\n return o;\n}",
"void copy(Board b) {\n internalCopy(b);\n }",
"public Game copy();",
"@SuppressWarnings(\"All\")\n public <T> void copy(MyList<? super T> to, MyList<? extends T> from) {\n\n System.out.println(\"from size \" + from.size);\n for (int i = 0; i < from.getSize(); i++) {\n to.add(from.getByIndex(i));\n }\n }",
"@Override\r\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\t\r\n\t\treturn super.clone();\r\n\t}",
"@Override\n public String getObjectCopy() {\n return null;\n }",
"@Override\r\n\tpublic LogicalValue copy() {\r\n\t\treturn new Pointer(target);\r\n\t}",
"@Override\n public Operator visitCopy(Copy operator)\n {\n throw new AssertionError();\n }",
"public CopyBuilder copy() {\n return new CopyBuilder(this);\n }",
"@Override\n public LocalStore<V> copy() {\n return this;\n }",
"public abstract Object clone();",
"public Object clone() {\n // No problems cloning here since private variables are immutable\n return super.clone();\n }",
"protected void copy(){\n\t\tthis.model.copy(this.color.getBackground());\n\t}",
"@Override\r\n\tpublic BinaryNodeInterface<E> copy() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}",
"public abstract TreeNode copy();",
"public Object cloner() {\n return cloner((Sommet)origine.cloner(), (Sommet)destination.cloner());\n }",
"private Object deepCopy(Object oldObj) throws MareException {\n UtilidadesLog.info(\"MONVariablesVentaBean.deepCopy(Object oldObj):Entrada\");\n ObjectOutputStream oos = null;\n ObjectInputStream ois = null;\n \n try {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n oos = new ObjectOutputStream(bos);\n \n oos.writeObject(oldObj);\n oos.flush();\n ByteArrayInputStream bin = new ByteArrayInputStream(bos.toByteArray());\n ois = new ObjectInputStream(bin);\n UtilidadesLog.info(\"MONVariablesVentaBean.deepCopy(Object oldObj):Salida\");\n return ois.readObject();\n } catch(Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n UtilidadesLog.debug(\"Exception en deepCopy = \" + e);\n throw new MareException(e);\n } finally {\n try {\n oos.close();\n ois.close();\n } catch(Exception ex) {\n UtilidadesLog.error(\"ERROR \", ex);\n UtilidadesLog.debug(\"Exception en deepCopy = \" + ex);\n throw new MareException(ex);\n }\n }\n }",
"@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\treturn super.clone();\n\t}",
"public abstract Player freshCopy();",
"public Newsletter copy() throws TorqueException\n {\n return copyInto(new Newsletter());\n }"
]
| [
"0.7655451",
"0.7636182",
"0.7476185",
"0.72757286",
"0.70974815",
"0.7046477",
"0.7000582",
"0.6992036",
"0.6933065",
"0.6840063",
"0.68366665",
"0.68131626",
"0.6737858",
"0.67146623",
"0.6702844",
"0.6664892",
"0.662138",
"0.66001934",
"0.658637",
"0.6579788",
"0.6572453",
"0.6562095",
"0.6561687",
"0.6556863",
"0.6537615",
"0.6530695",
"0.6529975",
"0.65275073",
"0.6521518",
"0.65213144",
"0.6517407",
"0.6488898",
"0.64768726",
"0.6473199",
"0.6468027",
"0.64605486",
"0.6453755",
"0.64482874",
"0.64400643",
"0.64318115",
"0.64318115",
"0.64318115",
"0.64298743",
"0.6428373",
"0.64276344",
"0.64242953",
"0.64242953",
"0.64231",
"0.6422373",
"0.64179075",
"0.6416353",
"0.63967776",
"0.6388054",
"0.63846457",
"0.6365946",
"0.6365545",
"0.6364594",
"0.636036",
"0.6351354",
"0.6345694",
"0.6345694",
"0.6345694",
"0.6345694",
"0.6345694",
"0.6345694",
"0.6345694",
"0.6345694",
"0.6345694",
"0.63396806",
"0.63360935",
"0.63315165",
"0.63290745",
"0.63199055",
"0.63184655",
"0.63167226",
"0.6308739",
"0.6306572",
"0.63002604",
"0.629892",
"0.6293429",
"0.6289607",
"0.6287659",
"0.62810236",
"0.62736195",
"0.6269165",
"0.62679034",
"0.6267498",
"0.6266592",
"0.62664634",
"0.6265242",
"0.62639576",
"0.626127",
"0.6260554",
"0.62586135",
"0.6253566",
"0.6250294",
"0.6244719",
"0.62264186",
"0.6221918",
"0.6209222",
"0.62070674"
]
| 0.0 | -1 |
This method adds a new travel expense line to the managed collection | public void addActualExpenseLine(ActualExpense line) {
line.setDocumentLineNumber(getActualExpenses().size() + 1);
final String sequenceName = line.getSequenceName();
final Long sequenceNumber = getSequenceAccessorService().getNextAvailableSequenceNumber(sequenceName, ActualExpense.class);
line.setId(sequenceNumber);
line.setDocumentNumber(this.documentNumber);
notifyChangeListeners(new PropertyChangeEvent(this, TemPropertyConstants.ACTUAL_EXPENSES, null, line));
getActualExpenses().add(line);
logErrors();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void pushSavedExpenseLineItem(){\n //Cursor cursor = getExpenseStatusCursor(SyncStatus.SAVED_REPORT);\n Cursor cursor = getSavedExpenseLineItemCursor();\n\n if(cursor.getCount() != 0) {\n cursor.moveToFirst();\n\n do {\n final Long expenseBaseId = cursor.getLong(\n cursor.getColumnIndex(ExpenseEntry._ID));\n\n ExpenseLineItem expenseLineItem = new ExpenseLineItem();\n\n expenseLineItem.setDescription(\n cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_DESCRIPTION)));\n\n expenseLineItem.setExpenseReportId(cursor.getInt(\n cursor.getColumnIndex(ExpenseEntry.COLUMN_REPORT_ID)));\n\n expenseLineItem.setExpenseDate(\n cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_EXPENSE_DATE)));\n\n expenseLineItem.setCategory(cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_CATEGORY)));\n\n expenseLineItem.setCost(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_COST)));\n\n expenseLineItem.setHst(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_HST)));\n expenseLineItem.setGst(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_GST)));\n expenseLineItem.setQst(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_QST)));\n expenseLineItem.setCurrency(cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_CURRENCY)));\n expenseLineItem.setRegion(cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_REGION)));\n\n //TODO: receipt\n\n try {\n ERTRestApi.apiAddExpenseLineItem(\n expenseLineItem,\n new ERTRestApi.ERTRestApiListener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Gson gson = new GsonBuilder().setDateFormat\n (\"yyyy-MM-dd'T'HH:mm:ss\").create();\n ExpenseLineItem expenseLineItemResponse =\n gson.fromJson(response.toString(),\n ExpenseLineItem.class\n );\n\n updateExpenseLineItemSyncStatus(expenseBaseId,\n SyncStatus.SYNCED\n );\n\n setExpenseLineItemValuesFromServer(\n expenseBaseId,\n expenseLineItemResponse\n );\n\n }\n },\n\n new ERTRestApi.ERTRestApiErrorListener() {\n @Override\n public void onErrorResponse(ERTRestApi\n .ERTRestApiError error) {\n\n Log.e(LOG_TAG, error.getMessage());\n\n }\n }\n );\n } catch (ERTRestApiException | JSONException e) {\n Log.e(LOG_TAG, e.getMessage());\n }\n\n updateExpenseLineItemSyncStatus(expenseBaseId,SyncStatus.SYNC_IN_PROGRESS);\n\n } while (cursor.moveToNext());\n }\n cursor.close();\n }",
"org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine addNewExternalOrderLine();",
"public void addExpense(Expense exp) {\n ContentValues values = new ContentValues();\n SQLiteDatabase db = getWritableDatabase();\n\n values.put(COLUMN_NAME, exp.get_name());\n values.put(COLUMN_DATE, exp.get_date());\n db.insert(TABLE_EXPENSES, null, values);\n db.close();\n }",
"public void addNewExpense(Expense expense) {\n SQLiteDatabase db = this.getWritableDatabase();\n \n ContentValues values = new ContentValues();\n values.put(COLUMN_EXPENSE_AMOUNT, expense.getAmount());\n values.put(COLUMN_EXPENSE_CURRENCY, expense.getCurrency());\n values.put(COLUMN_EXPENSE_CATEGORY, expense.getCategory());\n values.put(COLUMN_EXPENSE_WALLET, expense.getWalletTitle());\n values.put(COLUMN_EXPENSE_WALLET_ID, expense.getWalletId());\n values.put(COLUMN_EXPENSE_NOTE, expense.getNote());\n values.put(COLUMN_EXPENSE_EXPENSE_DATE, expense.getExpenseDate());\n\n // Inserting Row\n db.insert(EXPENSE_TABLE, null, values);\n db.close();\n }",
"public TemSourceAccountingLine createNewAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setCardType(TemConstants.ADVANCE); // really, card type is ignored but it is validated so we have to set something\n accountingLine.setFinancialObjectCode(this.getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE, KFSConstants.EMPTY_STRING));\n return accountingLine;\n }\n catch (IllegalAccessException iae) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", iae);\n }\n catch (InstantiationException ie) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", ie);\n }\n }",
"public void addLineItem (LineItem lineItem){\n if (this.orderStatus != OrderStatus.Closed && !lineItem.isOrdered() && !lineItems.contains(lineItem)){\n lineItems.add(lineItem);\n total += lineItem.getPrice();\n lineItem.setOrdered(true);\n this.getAccount().setBalance(this.getAccount().getBalance() - lineItem.getPrice());\n }\n }",
"public void addPolyLine() {\n abstractEditor.drawNewShape(new ELineDT());\n }",
"Long addTravel(Travel travel);",
"public double addExpenseTransaction(ExpenseEntity expenseEntity);",
"private Line addLine() {\n\t\t// Create a new line\n\t\tLine line = new Line(doily.settings.getPenScale(), \n\t\t\t\tdoily.settings.getPenColor(), doily.settings.isReflect());\n\t\tdoily.lines.add(line);\n\t\treturn line;\n\t}",
"public void createNewExpense(View view) {\n EditText newExpenseNameInput = (EditText) findViewById(R.id.newExpenseName);\n EditText newDateInput = (EditText) findViewById(R.id.addExpenseDateEditText);\n Spinner newWhoPaidSpinner = (Spinner) findViewById(R.id.addExpensePayerSpinner);\n\n String newExpenseName = newExpenseNameInput.getText().toString();\n Long newAmount = totalDebt;\n Date newDate = null;\n try {\n newDate = new SimpleDateFormat(\"dd/MM/yyyy\").parse(newDateInput.getText().toString());\n } catch (ParseException e) {\n e.printStackTrace();\n }\n String newWhoPaid = newWhoPaidSpinner.getSelectedItem().toString();\n List<String> newPayees = new ArrayList<String>();\n\n int payeeListItemHoldersSize = payeeListItemHolders.size();\n List<Long> newOwedAmounts = new ArrayList<Long>();\n\n for (int i = 0; i < payeeListItemHoldersSize; i++) {\n if (payeeListItemHolders.get(i).getCheckBox().isChecked()) {\n newPayees.add(payeeListItemHolders.get(i).getCheckBox().getText().toString());\n newOwedAmounts.add(payeeListItemHolders.get(i).getDebt());\n }\n }\n\n Expense newExpense = new Expense(newExpenseName, newAmount, newDate, newWhoPaid, newPayees, newOwedAmounts, group);\n\n try {\n newExpense.save();\n } catch (com.parse.ParseException e) {\n e.printStackTrace();\n }\n\n // finish activity\n Intent intent = setUpBackIntent();\n setResult(RESULT_OK, intent);\n finish();\n }",
"private void createRequestExpense() {\n ExpensesRequest expensesRequestSuperCLass = new ExpensesRequest();\n ArrayList<ExpensesRequest.ExpenseList> expenseLists = new ArrayList<>();\n ExpensesRequest.ExpenseList expensesRequest = new ExpensesRequest().new ExpenseList();\n expensesRequest.setAmount(edittextExpesneAmount.getText().toString());\n expensesRequest.setClientId(Utility.getInstance().getclientRegId(mContext));\n String currentDate = edittextExpenseDate.getText().toString();\n String currentTime = new SimpleDateFormat(\"HH:mm\", Locale.getDefault()).format(new Date());\n Date date = null;\n try {\n date = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\").parse(currentDate + \" \" + currentTime);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n String expeId = \"\";\n expensesRequest.setExpendDate(date);\n expensesRequest.setExpenditureId(expeId);\n transactionIdToast = expeId;\n expensesRequest.setTransactionId(expeId);\n expensesRequest.setPurpose(edittextExpensePurpose.getText().toString());\n expensesRequest.setExpenseType(edittextExpenseName.getText().toString());\n expenseLists.add(expensesRequest);\n expensesRequestSuperCLass.setRegId(Utility.getInstance().getclientRegId(mContext));\n expensesRequestSuperCLass.setExpenseListArrayList(expenseLists);\n if (Utility.getInstance().isOnline(mContext)) {\n boolean valueStatus = validateExpense();\n if (valueStatus) {\n Utility.getInstance().showProgressDialogue(mContext);\n mPresenter.postExpense(expensesRequestSuperCLass, 1);\n }\n edittextExpenseName.setText(\"\");\n edittextExpesneAmount.setText(\"\");\n edittextExpensePurpose.setText(\"\");\n }\n }",
"String addExpense(String userName, String teamName, ExpenseItem expenseItem) throws RemoteException, InterruptedException;",
"private void requestDeleteExpenseLineItem() throws ERTRestApiException {\n final Cursor cursor = getContext().getContentResolver().query(\n ExpenseEntry.CONTENT_URI,\n null,\n ExpenseEntry.COLUMN_IS_DELETED + \"='true'\",\n null, null\n );\n\n if(cursor.getCount() != 0) {\n cursor.moveToFirst();\n\n do {\n\n final int expenseLineItemId = cursor.getInt(cursor\n .getColumnIndex(ExpenseEntry.COLUMN_EXPENSE_ID));\n\n final long expenseLineItemBaseId = cursor.getLong(cursor\n .getColumnIndex(ExpenseEntry._ID));\n\n ERTRestApi.apiDeleteExpenseLineItem(\n expenseLineItemId,\n new ERTRestApi.ERTRestApiListener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n getContext().getContentResolver().delete(\n ExpenseEntry.buildExpenseUri(expenseLineItemBaseId),\n null, null\n );\n }\n },\n new ERTRestApi.ERTRestApiErrorListener() {\n @Override\n public void onErrorResponse(ERTRestApi.ERTRestApiError error) {\n ContentValues contentValues = new ContentValues();\n contentValues.put(ExpenseEntry.COLUMN_IS_DELETED, \"false\");\n getContext().getContentResolver().update(\n ExpenseEntry.buildExpenseUri(expenseLineItemBaseId),\n contentValues, null, null\n );\n }\n }\n );\n\n } while (cursor.moveToNext());\n cursor.close();\n }\n }",
"public void addAdvanceAccountingLine(TemSourceAccountingLine line) {\n line.setSequenceNumber(this.getNextAdvanceLineNumber());\n this.advanceAccountingLines.add(line);\n this.nextAdvanceLineNumber = new Integer(getNextAdvanceLineNumber().intValue() + 1);\n }",
"public long addExpenseDetail(DBExpensesModel exp) {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_TYPE, exp.type);\n values.put(KEY_AMOUNT, exp.amount);\n values.put(KEY_PLACE, exp.place);\n values.put(KEY_NOTE, exp.note);\n values.put(KEY_CHEQUE, exp.cheque);\n values.put(KEY_DATE, exp.date);\n long insert = db.insert(TABLE_EXPENSE, null, values);\n return insert;\n }",
"void addLine(int index, Coordinate start, Coordinate end);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry addNewDebts();",
"private void addToLineItem(LineItem newLineItem) {\r\n LineItem[] tempItems = new LineItem[lineItems.length + 1];\r\n System.arraycopy(lineItems, 0, tempItems, 0, lineItems.length);\r\n tempItems[lineItems.length] = newLineItem;\r\n lineItems = tempItems;\r\n }",
"void saveLineItem(LineItem lineItem);",
"private static LineOfCredit createLineOfCreditObjectForPost() {\n\n\t\tLineOfCredit lineOfCredit = new LineOfCredit();\n\n\t\tCalendar now = Calendar.getInstance();\n\n\t\tString notes = \"Line of credit note created via API \" + now.getTime();\n\t\tlineOfCredit.setId(\"LOC\" + now.getTimeInMillis());\n\t\tlineOfCredit.setStartDate(now.getTime());\n\t\tnow.add(Calendar.MONTH, 6);\n\t\tlineOfCredit.setExpiryDate(now.getTime());\n\t\tlineOfCredit.setNotes(notes);\n\t\tlineOfCredit.setAmount(new Money(100000));\n\n\t\treturn lineOfCredit;\n\t}",
"org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine insertNewExternalOrderLine(int i);",
"public String addNew() throws Exception {\r\n\t\tgetNavigationPanel(2);\r\n\t\tExpensesCategoryModel model = new ExpensesCategoryModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tmodel.getData(expenses, request);\r\n\t\texpenses.setLoadFlag(true);\r\n\t\treset();\r\n\t\t//\texpenses.setFlag(true);\r\n\r\n\t\texpenses.setPanelFlag(\"2\");\r\n\t\texpenses.setRetrnFlag(\"success\");\r\n\r\n\t\tmodel.terminate();\r\n\t\treturn \"success\";\r\n\r\n\t}",
"void addEntity(IViewEntity entity);",
"public void createLine(long id, SupplierSettlementLine line) throws CoreException {\n try (Response response = clientApi.post(SUPPLIER_SETTLEMENTS + id + \"/lines\", line)) {\n readResponse(response, String.class);\n // extract id from return location\n String locationUri = response.getHeaderString(\"Location\");\n Long lineId = Long.parseLong(locationUri.substring(locationUri.lastIndexOf(\"/\") + 1));\n line.setId(lineId);\n }\n }",
"public void addItem(LineItem lineItem){\n\t\t\n\t\tlineItems.add(lineItem);\n\t}",
"@Test\n\tpublic void saveOrderLine() {\n\t\t// TODO: JUnit - Populate test inputs for operation: saveOrderLine \n\t\tOrderLine orderline_1 = new ecom.domain.OrderLine();\n\t\tservice.saveOrderLine(orderline_1);\n\t}",
"org.landxml.schema.landXML11.DecisionSightDistanceDocument.DecisionSightDistance addNewDecisionSightDistance();",
"public void insertEtsItem(DTOSet lineSet){\n\t try {\r\n\t\t\tZeroTurnModel model = (ZeroTurnModel) sqlProducer;\r\n\t\t\tfor (int i = 0; i < lineSet.getSize(); i++) {\r\n\t\t\t\tZeroTurnLineDTO lineDTO=(ZeroTurnLineDTO) lineSet.getDTO(i);\r\n\t\t\t\tlineDTO.setCreatedBy(userAccount.getUserId());\r\n\t\t\t\tlineDTO.setOrganizationId(userAccount.getOrganizationId());\r\n\t\t\t\tSQLModel updateModel = model.insertEtsItemInfo(lineDTO);\r\n\t\t\t\tDBOperator.updateRecord(updateModel, conn);\r\n\t\t\t}\r\n\t } catch (DataHandleException e) {\r\n//\t\t\tfg=false;\r\n\t\te.printStackTrace();\r\n\t }\r\n//\t return fg;\r\n }",
"public void transferLineasInvestigacion(TransferEvent event) {\r\n try {\r\n for (Object item : event.getItems()) {\r\n int v = item.toString().indexOf(\":\");\r\n Long id = Long.parseLong(item.toString().substring(0, v));\r\n LineaInvestigacion li = lineaInvestigacionService.buscarPorId(new LineaInvestigacion(id));\r\n LineaInvestigacionProyecto lp = new LineaInvestigacionProyecto();\r\n if (li != null) {\r\n lp.setLineaInvestigacionId(li);\r\n }\r\n if (event.isRemove()) {\r\n sessionProyecto.getLineasInvestigacionSeleccionadasTransfer().remove(lp);\r\n sessionProyecto.getLineasInvestigacionRemovidosTransfer().add(lp);\r\n int pos = 0;\r\n for (LineaInvestigacionProyecto lip : sessionProyecto.getLineasInvestigacionProyecto()) {\r\n if (!lip.getLineaInvestigacionId().equals(lp.getLineaInvestigacionId())) {\r\n pos++;\r\n } else {\r\n break;\r\n }\r\n }\r\n sessionProyecto.getLineasInvestigacionSeleccionadas().remove(pos);\r\n } else {\r\n if (event.isAdd()) {\r\n if (contieneLineaInvestigacion(sessionProyecto.getLineasInvestigacionProyecto(), lp)) {\r\n sessionProyecto.getLineasInvestigacionRemovidosTransfer().add(lp);\r\n }\r\n sessionProyecto.getLineasInvestigacionSeleccionadas().add(li);\r\n sessionProyecto.getLineasInvestigacionSeleccionadasTransfer().add(lp);\r\n }\r\n }\r\n }\r\n } catch (NumberFormatException e) {\r\n System.out.println(e);\r\n }\r\n }",
"public void addPoint(Point p) {\r\n line.add(p);\r\n }",
"public void addEntity(AnnexDetail entity) throws Exception {\n\t\t\n\t}",
"@Override\r\n\tpublic Trainee addTrainee(Trainee t) {\n\t\treturn dao.addTrainee(t);\r\n\t}",
"boolean saveExpense(Expenses exp);",
"public void addLineaGasto(long pk,\n\t\tes.davinciti.liferay.model.LineaGasto lineaGasto)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public void addToLinesOfBusiness(entity.AppCritLineOfBusiness element);",
"public void makeLine() {\n \t\tList<Pellet> last_two = new LinkedList<Pellet>();\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 2));\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 1));\n \n \t\tPrimitive line = new Primitive(GL_LINES, last_two);\n \t\tMain.geometry.add(line);\n \n \t\tActionTracker.newPolygonLine(line);\n \t}",
"void addIncomeToBudget();",
"public void processAddLine() {\n AppTextColorEnterDialogSingleton dialog = AppTextColorEnterDialogSingleton.getSingleton();\n\n // POP UP THE DIALOG\n dialog.show(\"Add Metro Line\", \"Enter Name and Color of the Metro Line:\", Color.web(\"#cccc33\"));\n\n // IF THE USER SAID YES\n if (dialog.getSelection()) {\n // CHANGE THE CURSOR\n Scene scene = app.getGUI().getPrimaryScene();\n scene.setCursor(Cursor.CROSSHAIR);\n \n // CHANGE THE STATE\n dataManager.setState(mmmState.ADD_LINE_MODE);\n }\n }",
"public Expense() {\n\t\tsuper();\n\t}",
"public static Line insertLine(SkatelinesDbHelper dbHelper, String lineDescription) {\n ContentValues lineValues = new ContentValues();\n lineValues.put(\"description\", lineDescription);\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n long lineId = db.insert(\"line\", null, lineValues);\n Line line = new Line(lineId, lineDescription);\n return line;\n }",
"public void onAdd(TimelineAddEvent e) {\n\t\tevent = new TimelineEvent(new Booking(), e.getStartDate(), e.getEndDate(), true, e.getGroup());\n\n\t\t// add the new event to the model in case if user will close or cancel the \"Add dialog\"\n\t\t// without to update details of the new event. Note: the event is already added in UI.\n\t\tmodel.add(event);\n\t}",
"public void addClicked(View v){\n android.util.Log.d(this.getClass().getSimpleName(), \"add Clicked. Adding: \" + this.nameET.getText().toString());\n try{\n PartnerDB db = new PartnerDB((Context)this);\n SQLiteDatabase plcDB = db.openDB();\n ContentValues hm = new ContentValues();\n hm.put(\"name\", this.nameET.getText().toString());\n double hours = Double.parseDouble(this.tippableHoursET.getText().toString());\n hm.put(\"tippableHours\", hours);\n double tipsPerHour = Double.parseDouble(this.tipsPerHourET.getText().toString());\n hm.put(\"tipsPerHour\", tipsPerHour);\n //double tips = Double.parseDouble(this.tipsET.getText().toString());\n //hm.put(\"tips\", tips);\n plcDB.insert(\"partner\",null, hm);\n plcDB.close();\n db.close();\n String addedName = this.nameET.getText().toString();\n setupselectSpinner1();\n this.selectedPartner = addedName;\n this.selectSpinner1.setSelection(Arrays.asList(partners).indexOf(this.selectedPartner));\n } catch (Exception ex){\n android.util.Log.w(this.getClass().getSimpleName(),\"Exception adding partner information: \"+\n ex.getMessage());\n }\n }",
"public void addEmergencyContactLine(TravelerDetailEmergencyContact line) {\n if (!ObjectUtils.isNull(getTraveler())) {\n line.setFinancialDocumentLineNumber(getTraveler().getEmergencyContacts().size() + 1);\n line.setDocumentNumber(this.documentNumber);\n line.setTravelerDetailId(getTraveler().getId());\n getTraveler().getEmergencyContacts().add(line);\n }\n }",
"public void addflight(Flight f)\n {\n \t this.mLegs.add(f);\n \t caltotaltraveltime();\n \t caltotalprice();\n }",
"private void addDishToList(String dsName, int amt, int dsPrice, String type) {\n int n, total;\n Map<String, Object> map = new HashMap<String, Object>();\n map.put(DNAME, dsName);\n if ((n = table.addDish(dsName, amt, dsPrice, type,\n vip.getPhone(), vip.getName())) > amt) {\n Map<String, Object> tm = new HashMap<String, Object>();\n tm.put(DNAME, dsName);\n tm.put(AMOUNT, n - amt);\n mList.remove(tm);\n map.put(AMOUNT, n);\n mList.add(map);\n } else {\n map.put(AMOUNT, amt);\n mList.add(map);\n }\n total = vip.getConsumption() + amt * dishes.get(dsName).getPrice();\n vip.setConsumption(total);\n payBtn.setText(PAY + RMB + String.valueOf(total));\n adapter.notifyDataSetChanged();\n listChanged = true;\n }",
"public void addLine(Dialog line) {\n\t\tArrayList<Dialog> temp = new ArrayList<Dialog>();\n\t\ttemp.add(line);\n\t\tdecoupleGenericLines(temp);\n\t\tDialogueSystem.GLOBAL_DIALOG_LIST.add(line);\n\t}",
"public void addCostItem(CostItem item) throws CostManagerException;",
"private void addOnClick() throws CountryAlreadyPresentException, InvalidCountryException, FutureDateException {\n gb.addToVisitedList(nameField.getText().trim().toUpperCase(), dateField.getText().trim(),\n notesField.getText().trim());\n row = new Object[]{nameField.getText().trim().toUpperCase(), dateField.getText().trim(),\n notesField.getText().trim()};\n gb.getTableModel3().addRow(row);\n }",
"@Override\r\n\tpublic void addToCost() {\n\t\t\r\n\t}",
"public void addOrderLine(Interface_IngredientReadOnly nutrient, int amount, double price) {\n orderLines.add(new PurchaseOrderLine(nutrient, amount, price));\n }",
"private void addLine()\n\t{\n\t\tlines.add(printerFormatter.markEOL());\n\t}",
"public void addToOrder() {\n OrderLine orderLine = new OrderLine(order.lineNumber++, sandwhich, sandwhich.price());\n order.add(orderLine);\n ObservableList<Extra> selected = extraSelected.getItems();\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraOptions.getItems().addAll(selected);\n extraSelected.getItems().removeAll(selected);\n pickSandwhich();\n\n\n\n }",
"protected TemSourceAccountingLine initiateAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setDocumentNumber(getDocumentNumber());\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setSequenceNumber(new Integer(1));\n accountingLine.setCardType(TemConstants.ADVANCE);\n if (this.allParametersForAdvanceAccountingLinesSet()) {\n accountingLine.setChartOfAccountsCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART));\n accountingLine.setAccountNumber(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT));\n accountingLine.setFinancialObjectCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE));\n }\n return accountingLine;\n }\n catch (InstantiationException ie) {\n LOG.error(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName(), ie);\n }\n catch (IllegalAccessException iae) {\n LOG.error(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName(), iae);\n }\n }",
"void saveLineItemList(List<LineItem> lineItemList);",
"@Test()\n public void testAddExpense() {\n\tDefaultTableModel model = new DefaultTableModel();\n\tExpense e = new Expense(\"bread\", 8, LocalDate.of(2015, 10, 22), ExpenseType.DAILY);\n\texpenseManager.setBudgetPerMonth(2500);\n\texpenseManager.addExpense(e, model);\n\tassertEquals(5, expenses.size(), 0);\n }",
"public static void addNewRoom() {\n Services room = new Room();\n room = addNewService(room);\n\n ((Room) room).setFreeService(FuncValidation.getValidFreeServices(ENTER_FREE_SERVICES,INVALID_FREE_SERVICE));\n\n //Get room list from CSV\n ArrayList<Room> roomList = FuncGeneric.getListFromCSV(FuncGeneric.EntityType.ROOM);\n\n //Add room to list\n roomList.add((Room) room);\n\n //Write room list to CSV\n FuncReadWriteCSV.writeRoomToFileCSV(roomList);\n System.out.println(\"----Room \"+room.getNameOfService()+\" added to list---- \");\n addNewServices();\n\n }",
"@Override\n public DetalleVenta add(DetalleVenta detalleVenta) {\n return detalleVentaJpaRepository.save(detalleVenta);\n }",
"public synchronized void addLine(Line line)\r\n\t{\r\n\t\tlines.add(line);\r\n\t}",
"public void addLineVehicles(Circle c)\r\n {\r\n this.all_line_vehicles.add(c);\r\n return;\r\n }",
"void addEdges(Collection<ExpLineageEdge> edges);",
"protected void addExperience(double time) {\n\t\t// This task adds no experience.\n\t}",
"public void addCust(Event temp){\n eventLine.add(temp);\n }",
"public void handleAddFoodCommand(int xPos, int yPos) {\n if (Aquarium.money >= FOODPRICE) {\n foodController.addNewEntity(xPos, yPos);\n Aquarium.money -= FOODPRICE;\n }\n }",
"public void addRow(Spedizione spedizione){\n spedizioni.add(spedizione);\n fireTableChanged(new TableModelEvent(this));\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.FinancialStatement addNewFinancialStatements();",
"public void newBufLine() {\n this.buffer.add(new ArrayList<Integer>());\n this.columnT = 0;\n this.lineT++;\n }",
"public void addLineaGasto(long pk, long lineaGastoPK)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public void addPoint(int points){\n\t\tthis.fidelityCard.point += points;\t\t\n\t}",
"private void addEntranceLog(String logType) {\n if(ticketTrans == null || checkedItems.size() == 0) return;\n\n Entrance entrance = new Entrance(EntranceStep2Activity.this);\n\n Log.d(EntranceStep2Activity.class.toString(), logType);\n\n try {\n entrance.add(encryptRefNo, checkedItems, logType);\n } catch (Exception e) {\n String reason = e.getMessage();\n Toast.makeText(getApplicationContext(), reason, Toast.LENGTH_SHORT).show();\n } finally {\n loading.dismiss();\n }\n }",
"@RequestMapping(value = \"/insertOne\", method = RequestMethod.POST)\n\t public ResponseEntity<RestResponse> insertOne(@RequestBody Expense expense) {\n System.out.println(\"*** Amount : \"+expense.getAmount());\n\t\treturn new ResponseEntity<RestResponse>(expenseService.insertOne(expense), HttpStatus.OK);\n\t\t}",
"@Override\n public LineEntity save(LineEntity entity) {\n return null;\n }",
"private ExpandGrid addLine(Grid input_grid, int number, int x, int y, int z, int steps, int x2, int y2, int z2) {\n Grid copy_grid = new Grid(input_grid);\n copy_grid.addLine(number, x, y, z);\n int estimate = manhattanDistance(x, y, x2, y2, z, z2);\n return new ExpandGrid(copy_grid, number, x, y, z, (steps + 1), estimate);\n }",
"public void addItem(StorageCartLine storageCartLine){\n\t\t\n\t\tStorageCartLine searched = this.searchById(storageCartLine.getProduct().getId(), this.getStorageCartLine());\n\t\tif(searched != null){\n\t\t\tthis.addProductFromStorageCart(storageCartLine);\n\t\t}else{\n\t\t\tthis.getStorageCartLine().add(storageCartLine);\n\t\t}\n\t\tthis.totalPrize = calculatePrize(this.getStorageCartLine());\n\t\t\n\t}",
"@GetMapping(\"/add\")\r\n\tpublic String newSave(Model model) {\r\n\t\tmodel.addAttribute(\"trainee\", new Trainee());\r\n\t\treturn \"add-trainee\";\r\n\t}",
"public void createExpense(ExpenseBE expenseBE) {\n\n }",
"public void addPoint(GridPoint newPoint) {\n\t\t//System.out.println(\"Added rubbish at coordinates X=\" + newPoint.getX() + \", Y=\" + newPoint.getY());\n\t\tsolutionRepresentation.add(newPoint);\n\t}",
"@Override\n\tpublic CentreVisite add(CentreVisite chef) {\n\t\treturn CR.save(chef);\n\t}",
"void newRoutePoint(RoutePointDTO routePointDTO, RouteDTO routeDTO, List<RoutePointDTO> points);",
"public com.unitedtote.schema.totelink._2008._06.result.PriceEntity addNewPriceEntity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.unitedtote.schema.totelink._2008._06.result.PriceEntity target = null;\n target = (com.unitedtote.schema.totelink._2008._06.result.PriceEntity)get_store().add_element_user(PRICEENTITY$0);\n return target;\n }\n }",
"@Override\n\tpublic Lead addLead(Lead Lead) {\n\n\t\tthrow new UnsupportedOperationException(\n\t\t\t\"please use instead addLead(Lead, ServiceContext)\");\n\t}",
"@PostMapping(path=\"/expenses/add\")\n\tpublic @ResponseBody Expenses addNewExpense(@RequestBody Expenses n) {\n\t\tExpenses result = new Expenses();\n\t\tif(n.getAmount() == \" \" | n.getCategory() == \" \" | n.getExpensesName() == \" \" | n.getToken() == null) {\n\t\t\tresult.setError(true);\n\t\t\tresult.setError_msg(\"One or more fields is empty\");\n\t\t\treturn result;\n\t\t}\n\t\texpenseRepository.save(n);\n\t\tresult.setError(false);\n\t\treturn result;\n\t}",
"@Override\r\n\tpublic void addSurgeryTreatment(TreatmentDto dto) throws ProviderServiceExn {\n\t\tSurgeryType surType = dto.getSurgery();\r\n\t\tTreatment t = treatmentFactory.createSurgeryTreatment(dto.getDiagnosis(), surType.getDate());\r\n\t\ttreatmentDAO.addTreatment(t);\r\n\t}",
"@Override\n public void addStep(int time, GameUnit gameUnit, int supply, int supplyCap) {\n steps.add(new BuildOrderStep(time, gameUnit, supply, supplyCap));\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability addNewAddressHistory();",
"@Override\n\tprotected void addExperience(double time) {\n\t}",
"void addConstraintEntity(IViewEntity entity);",
"gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi addNewMedlineSi();",
"org.landxml.schema.landXML11.RoadsideDocument.Roadside addNewRoadside();",
"protected void addToSupplyZoneLines(String line) {\r\n\t\tString[] splitedLine = line.split(\",\");\r\n\t\tString zoneName = splitedLine[0];\r\n\t\tString parentZoneName = splitedLine.length == 2 ? splitedLine[1] : null;\t \r\n\t\tsupplyZoneLines.add(new SupplyZone(zoneName, parentZoneName));\r\n\t}",
"@Override\n\tpublic void addTrainee(Web_trainee web_trainee) {\n\t\tpersist(web_trainee);\n\t}",
"@VTID(10)\n @UseDefaultValues(paramIndexMapping = {0, 1, 2, 3, 4, 5, 6, 7, 9}, optParamIndex = {8}, javaType = {java.lang.Object.class}, nativeType = {NativeType.VARIANT}, variantType = {Variant.Type.VT_ERROR}, literal = {\"80020004\"})\n @ReturnValue(index=9)\n com.exceljava.com4j.excel.Trendline add(\n @Optional @DefaultValue(\"-4132\") com.exceljava.com4j.excel.XlTrendlineType type,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object order,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object period,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object forward,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object backward,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object intercept,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object displayEquation,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object displayRSquared);",
"@Override\n\tpublic int add(Forge_Order_Detail t) {\n\t\treturn 0;\n\t}",
"public SalesOrderLine post(final SalesOrderLine newSalesOrderLine) throws ClientException {\n return send(HttpMethod.POST, newSalesOrderLine);\n }",
"@Override\n\tpublic void addExperiencia(\n\t\t\tsimulaSAAB.modeloSimulacion.comunicacion.Experiencia e) {\n\t\t\n\t}",
"public void addPoint( final double x, final double y ){\n points.add(new Point2d(x,y));\n\n dirty = true;\n }",
"public void add() {\n\t\tcart.add(item.createCopy());\n\t}",
"public Cursor getEditedExpenseLineItemCursor() {\n return getContext().getContentResolver().query(\n ExpenseEntry.CONTENT_URI,\n null,\n ExpenseEntry.COLUMN_SYNC_STATUS + \" =? \" +\n //ReportEntry.COLUMN_SYNC_STATUS + \" =? \" +\n \" AND \" + ExpenseEntry.COLUMN_EXPENSE_ID + \"!=?\",\n new String[] {\n SyncStatus.EDITED_REPORT.toString(),\n // SyncStatus.SYNC_IN_PROGRESS.toString(),\n Constants.INTERNAL_EXPENSE_LINE_ITEM_ID\n },\n null\n );\n }",
"org.landxml.schema.landXML11.RoadwayDocument.Roadway addNewRoadway();",
"@VTID(10)\n @UseDefaultValues(paramIndexMapping = {0, 1, 2, 3, 4, 5, 6, 9}, optParamIndex = {7, 8}, javaType = {java.lang.Object.class, java.lang.Object.class}, nativeType = {NativeType.VARIANT, NativeType.VARIANT}, variantType = {Variant.Type.VT_ERROR, Variant.Type.VT_ERROR}, literal = {\"80020004\", \"80020004\"})\n @ReturnValue(index=9)\n com.exceljava.com4j.excel.Trendline add(\n @Optional @DefaultValue(\"-4132\") com.exceljava.com4j.excel.XlTrendlineType type,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object order,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object period,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object forward,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object backward,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object intercept,\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object displayEquation);"
]
| [
"0.6836299",
"0.64533573",
"0.62042564",
"0.59920025",
"0.588998",
"0.58633345",
"0.5732302",
"0.5721199",
"0.57082915",
"0.5687112",
"0.5670075",
"0.5653587",
"0.5621675",
"0.55942947",
"0.55851114",
"0.5574442",
"0.5547312",
"0.5521538",
"0.5471697",
"0.5469808",
"0.5440415",
"0.542854",
"0.5421104",
"0.53940487",
"0.5392406",
"0.5373031",
"0.5358993",
"0.53248435",
"0.52978283",
"0.5297388",
"0.52907443",
"0.5244493",
"0.52433616",
"0.5237801",
"0.52226156",
"0.52208555",
"0.5220057",
"0.5211046",
"0.5208694",
"0.5208296",
"0.51990867",
"0.51854086",
"0.517873",
"0.51774526",
"0.5167307",
"0.5163503",
"0.5155002",
"0.5148506",
"0.5142422",
"0.51298505",
"0.5121166",
"0.51101923",
"0.5096018",
"0.5094807",
"0.5090519",
"0.507126",
"0.5066346",
"0.506426",
"0.5061744",
"0.50576395",
"0.50552076",
"0.5047672",
"0.5043958",
"0.504322",
"0.5039383",
"0.5035342",
"0.5034128",
"0.50184107",
"0.5008898",
"0.50025445",
"0.49996957",
"0.49874976",
"0.4983497",
"0.4962914",
"0.49622637",
"0.49582732",
"0.49575776",
"0.49493644",
"0.4948504",
"0.49461046",
"0.49436447",
"0.49385944",
"0.49363843",
"0.49289602",
"0.4928922",
"0.492629",
"0.4922752",
"0.49154624",
"0.4908016",
"0.49068704",
"0.4905609",
"0.48935091",
"0.4891202",
"0.48854563",
"0.48840576",
"0.4877647",
"0.4877478",
"0.48719856",
"0.48718828",
"0.4868676"
]
| 0.6844584 | 0 |
Sets the TravelAdvance associated with this document | public void setTravelAdvance(TravelAdvance travelAdvance) {
this.travelAdvance = travelAdvance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAdvanceTravelPayment(TravelPayment advanceTravelPayment) {\n this.advanceTravelPayment = advanceTravelPayment;\n }",
"public void setTravel(Travel travel) {\n this.travel = travel;\n }",
"public void propagateAdvanceInformationIfNeeded() {\n if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().getTravelAdvanceRequested() != null) {\n if (!ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setCheckTotalAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n final TemSourceAccountingLine maxAmountLine = getAccountingLineWithLargestAmount();\n if (!TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus())) {\n getAdvanceAccountingLines().get(0).setAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n if (!allParametersForAdvanceAccountingLinesSet() && !TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus()) && !advanceAccountingLinesHaveBeenModified(maxAmountLine)) {\n // we need to set chart, account, sub-account, and sub-object from account with largest amount from regular source lines\n if (maxAmountLine != null) {\n getAdvanceAccountingLines().get(0).setChartOfAccountsCode(maxAmountLine.getChartOfAccountsCode());\n getAdvanceAccountingLines().get(0).setAccountNumber(maxAmountLine.getAccountNumber());\n getAdvanceAccountingLines().get(0).setSubAccountNumber(maxAmountLine.getSubAccountNumber());\n }\n }\n // let's also propogate the due date\n if (getTravelAdvance().getDueDate() != null && !ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setDueDate(getTravelAdvance().getDueDate());\n }\n }\n }",
"protected void initiateAdvancePaymentAndLines() {\n setDefaultBankCode();\n setTravelAdvance(new TravelAdvance());\n getTravelAdvance().setDocumentNumber(getDocumentNumber());\n setAdvanceTravelPayment(new TravelPayment());\n getAdvanceTravelPayment().setDocumentNumber(getDocumentNumber());\n getAdvanceTravelPayment().setDocumentationLocationCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TravelParameters.DOCUMENTATION_LOCATION_CODE,\n getParameterService().getParameterValueAsString(TemParameterConstants.TEM_DOCUMENT.class,TravelParameters.DOCUMENTATION_LOCATION_CODE)));\n getAdvanceTravelPayment().setCheckStubText(getConfigurationService().getPropertyValueAsString(TemKeyConstants.MESSAGE_TA_ADVANCE_PAYMENT_HOLD_TEXT));\n final java.sql.Date currentDate = getDateTimeService().getCurrentSqlDate();\n getAdvanceTravelPayment().setDueDate(currentDate);\n updatePayeeTypeForAuthorization(); // if the traveler is already initialized, set up payee type on advance travel payment\n setWireTransfer(new PaymentSourceWireTransfer());\n getWireTransfer().setDocumentNumber(getDocumentNumber());\n setAdvanceAccountingLines(new ArrayList<TemSourceAccountingLine>());\n resetNextAdvanceLineNumber();\n TemSourceAccountingLine accountingLine = initiateAdvanceAccountingLine();\n addAdvanceAccountingLine(accountingLine);\n }",
"public final void setAdvanceFilterTRModel(AdvanceFilterTRModel advanceFilterTRModel) {\r\n\t\tthis.advanceFilterTRModel = advanceFilterTRModel;\r\n\t}",
"public void addAdvanceAccountingLine(TemSourceAccountingLine line) {\n line.setSequenceNumber(this.getNextAdvanceLineNumber());\n this.advanceAccountingLines.add(line);\n this.nextAdvanceLineNumber = new Integer(getNextAdvanceLineNumber().intValue() + 1);\n }",
"public void setDriveTrain(DriveTrain driveTrain) {\r\n this.driveTrain = driveTrain;\r\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 setCurrentRTTFace(final Face currentRTTFace) { _currentRTTFace = currentRTTFace; }",
"public void setAdvanceAccountingLines(List<TemSourceAccountingLine> advanceAccountingLines) {\n this.advanceAccountingLines = advanceAccountingLines;\n }",
"public void setDirectionOfTravel(typekey.DirectionOfTravelPEL value);",
"@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 TemSourceAccountingLine createNewAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setCardType(TemConstants.ADVANCE); // really, card type is ignored but it is validated so we have to set something\n accountingLine.setFinancialObjectCode(this.getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE, KFSConstants.EMPTY_STRING));\n return accountingLine;\n }\n catch (IllegalAccessException iae) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", iae);\n }\n catch (InstantiationException ie) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", ie);\n }\n }",
"@Required\n\tpublic void setTravelRouteFacade(final TravelRouteFacade travelRouteFacade)\n\t{\n\t\tthis.travelRouteFacade = travelRouteFacade;\n\t}",
"public void setExperience(int e) {\n\t\texperience += e;\n\t\twhile(experience >= getExperienceToNextLevel()) {\n\t\t\texperience -= getExperienceToNextLevel();\n\t\t\tlevel++;\n\t\t}\n\t\tMAX_LIFE+= level*100;\n\t\tlife = MAX_LIFE;\n\t}",
"protected TemSourceAccountingLine initiateAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setDocumentNumber(getDocumentNumber());\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setSequenceNumber(new Integer(1));\n accountingLine.setCardType(TemConstants.ADVANCE);\n if (this.allParametersForAdvanceAccountingLinesSet()) {\n accountingLine.setChartOfAccountsCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART));\n accountingLine.setAccountNumber(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT));\n accountingLine.setFinancialObjectCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE));\n }\n return accountingLine;\n }\n catch (InstantiationException ie) {\n LOG.error(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName(), ie);\n }\n catch (IllegalAccessException iae) {\n LOG.error(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName(), iae);\n }\n }",
"void setAdvanced(boolean advanced)\n\t{\n\t\t((SubTypingModel) this.proofModel).setAdvanced ( advanced );\n\t\t// update all active nodes\n\t\tEnumeration<ProofNode> enumeration = this.proofModel.getRoot().postorderEnumeration();\n\t\twhile (enumeration.hasMoreElements()) {\n\t\t\t// tell the component belonging to this node, that we have a new advanced state\n\t\t\tSubTypingNode node = (SubTypingNode)enumeration.nextElement();\n\t\t\tSubTypingNodeComponent component = (SubTypingNodeComponent)node.getUserObject();\n\t\t\tcomponent.setAdvanced(advanced);\n\t\t}\n\t}",
"public int getAdvance() {\r\n return advance;\r\n }",
"public void setLydoTraVe(String lydoTraVe);",
"public static void setGlobalTidalAcc(double t_acc) {\n\t\tif (t_acc == SweConst.SE_TIDAL_AUTOMATIC) {\n\t\t\ttid_acc = SweConst.SE_TIDAL_DEFAULT;\n\t\t\t// tid_acc.set(SweConst.SE_TIDAL_DEFAULT);\n\t\t\tis_tid_acc_manual = false;\n\t\t\treturn;\n\t\t}\n\t\ttid_acc = t_acc;\n\t\t// tid_acc.set(t_acc);\n\t\tis_tid_acc_manual = true;\n\t}",
"public void setTrv (jkt.hrms.masters.business.EtrTravelreq trv) {\n\t\tthis.trv = trv;\n\t}",
"public void setLearningRate(double rate);",
"void setRoadway(org.landxml.schema.landXML11.RoadwayDocument.Roadway roadway);",
"public void setEngine(Engine e) {\n engine = e;\n if (e.engineValid) {\n setOriginalWalkMP(calculateWalk());\n }\n }",
"@Override\n public void toCopy() throws WorkflowException {\n super.toCopy();\n travelAdvancesForTrip = null;\n setTravelDocumentIdentifier(null);\n if (!(this instanceof TravelAuthorizationCloseDocument)) { // TAC's don't have advances\n initiateAdvancePaymentAndLines();\n }\n }",
"void setSpeed(RobotSpeedValue newSpeed);",
"public void actionTrain(Train t) {\n\t\t\t t.setVitesseScalaire(vitesse);\n\t\t}",
"public void setLearningRate(double learningRate) {\r\n\t\tthis.learningRate = learningRate;\r\n\t}",
"public void setRentWay(Integer rentWay) {\n this.rentWay = rentWay;\n }",
"public void setNumAyuAtracc(int num);",
"public void setEngineeringRate(int value) {\n this.engineeringRate = value;\n }",
"public void setTrainingExp(int exp)\n\t{\n\t\tm_skillTrainingExp = exp;\n\t}",
"public void setWalkSpeed(int n)\n{\n walkSpeed = n;\n}",
"public void set(double speed, CANTalon talon) {\n\t\ttalon.set(speed);\n\t}",
"public void setTrade(Trade t)\n\t{\n\t\tm_trade = t;\n\t}",
"public void setExperience(int experience) {\n _experience = experience;\n }",
"private void setCurrentTurnpike(Point t){\n\t\t\n\t\t_currentTurnpikeStart = t;\n\t\n\t}",
"public void setDecayRate(double newDecayRate ){\n\n decayRate= newDecayRate;\n}",
"public void setLearningRate(double learningRate) {\n this.learningRate = Math.max(0.0, Math.min(1.0, learningRate));\n }",
"public Travel getTravel() {\n return travel;\n }",
"public void setDataRetentionPeriodUnitOfMeasure(com.exacttarget.wsdl.partnerapi.RecurrenceTypeEnum.Enum dataRetentionPeriodUnitOfMeasure)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DATARETENTIONPERIODUNITOFMEASURE$28, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DATARETENTIONPERIODUNITOFMEASURE$28);\n }\n target.setEnumValue(dataRetentionPeriodUnitOfMeasure);\n }\n }",
"void setTrafficControl(org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl trafficControl);",
"@Test\n public void fieldAdvance() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n builder.write(\"This text is in its normal place.\");\n\n // Below are two ways of using the ADVANCE field to adjust the position of text that follows it.\n // The effects of an ADVANCE field continue to be applied until the paragraph ends,\n // or another ADVANCE field updates the offset/coordinate values.\n // 1 - Specify a directional offset:\n FieldAdvance field = (FieldAdvance) builder.insertField(FieldType.FIELD_ADVANCE, true);\n Assert.assertEquals(FieldType.FIELD_ADVANCE, field.getType()); //ExSkip\n Assert.assertEquals(\" ADVANCE \", field.getFieldCode()); //ExSkip\n field.setRightOffset(\"5\");\n field.setUpOffset(\"5\");\n\n Assert.assertEquals(\" ADVANCE \\\\r 5 \\\\u 5\", field.getFieldCode());\n\n builder.write(\"This text will be moved up and to the right.\");\n\n field = (FieldAdvance) builder.insertField(FieldType.FIELD_ADVANCE, true);\n field.setDownOffset(\"5\");\n field.setLeftOffset(\"100\");\n\n Assert.assertEquals(\" ADVANCE \\\\d 5 \\\\l 100\", field.getFieldCode());\n\n builder.writeln(\"This text is moved down and to the left, overlapping the previous text.\");\n\n // 2 - Move text to a position specified by coordinates:\n field = (FieldAdvance) builder.insertField(FieldType.FIELD_ADVANCE, true);\n field.setHorizontalPosition(\"-100\");\n field.setVerticalPosition(\"200\");\n\n Assert.assertEquals(field.getFieldCode(), \" ADVANCE \\\\x -100 \\\\y 200\");\n\n builder.write(\"This text is in a custom position.\");\n\n doc.save(getArtifactsDir() + \"Field.ADVANCE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.ADVANCE.docx\");\n\n field = (FieldAdvance) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_ADVANCE, \" ADVANCE \\\\r 5 \\\\u 5\", \"\", field);\n Assert.assertEquals(\"5\", field.getRightOffset());\n Assert.assertEquals(\"5\", field.getUpOffset());\n\n field = (FieldAdvance) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_ADVANCE, \" ADVANCE \\\\d 5 \\\\l 100\", \"\", field);\n Assert.assertEquals(\"5\", field.getDownOffset());\n Assert.assertEquals(\"100\", field.getLeftOffset());\n\n field = (FieldAdvance) doc.getRange().getFields().get(2);\n\n TestUtil.verifyField(FieldType.FIELD_ADVANCE, \" ADVANCE \\\\x -100 \\\\y 200\", \"\", field);\n Assert.assertEquals(\"-100\", field.getHorizontalPosition());\n Assert.assertEquals(\"200\", field.getVerticalPosition());\n }",
"public void setImprovementRelaxRate(double rate) {\n this.exec = this.exec.withProperty(\"sm.improve.relaxRate\", rate);\n }",
"public void setDirection(float directionDegree);",
"@Override\n\tpublic void setTense(Tense t) {\n\t\tsuper.setTense(t);\n\n\t\tfor (SPhraseSpec s : this.coordinator.coordinates) {\n\t\t\ts.setTense(t);\n\t\t}\n\n\t}",
"public void train() {\r\n\t\texp += 2;\r\n\t\tenergy -= 5;\r\n\t\tSystem.out.println(\"Gained 2 experience.\");\t\r\n\t}",
"public void setTpd(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd tpd)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd)get_store().find_element_user(TPD$34, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd)get_store().add_element_user(TPD$34);\r\n }\r\n target.set(tpd);\r\n }\r\n }",
"public void setSpeed(int newSpeed)\n {\n speed = newSpeed;\n }",
"public void setTravelTime(final Integer travelTime) {\n\t\tthis.travelTime = travelTime;\n\t}",
"public Boolean getPrefAdvance(String strAdvance) {\n\t\treturn sharedPreferences.getBoolean(\"strAdvance\", false);\n\t\t\n\t}",
"private final void setTREditStaus(ViewTestRequirementsAssociation manageTr) {\r\n\t\tuiTestReqEditModel.setExpReqMetPhase(manageTr.getPhaseName());\r\n\t\tuiTestReqEditModel.setFocal(manageTr.getFocal()!=null?manageTr.getFocal().toString():\"\");\r\n\t\tuiTestReqEditModel.setStsAssmblyPhase(manageTr.getStsAssyPhase()!=null ? manageTr.getStsAssyPhase().toString():\"\");\r\n\t\tuiTestReqEditModel.setStsFlightTestPhase(manageTr.getStsFTPhase()!=null ? manageTr.getStsFTPhase().toString():\"\");\r\n\t\tuiTestReqEditModel.setReqFirstFlight(manageTr.getReqFirstFlight()!=null?manageTr.getReqFirstFlight().toString():\"\");\r\n\t\tuiTestReqEditModel.setAssgndToFTPhase(manageTr.getAssignedToFTPhase()!=null ? manageTr.getAssignedToFTPhase().toString():\"\");\r\n\t}",
"@PortedFrom(file = \"Taxonomy.h\", name = \"setCurrent\")\n public void setCurrent(TaxonomyVertex cur) {\n current = cur;\n }",
"static void swe_set_tid_acc(double t_acc) {\n\t\tsetGlobalTidalAcc(t_acc);\n\t}",
"public void setNextRoad(CarAcceptor r) {\n\t\tthis.firstRoad = r;\n\t}",
"public void setLearningRate(final double rate) {\n\t\tthis.learningRate = rate;\n\t}",
"public void setAdvanceFilterModel(AdvanceFilterModel advanceFilterModel) {\r\n\t\tthis.advanceFilterModel = advanceFilterModel;\r\n\t}",
"public void setTurboEngine(Engine engine) {\n System.out.println(\"Car.setEngine\");\n this.engine = engine;\n }",
"public void setCurrentSpeed (double speed);",
"public TankDrive(DriveTrainSubsystem driveTrain) {\n // Use addRequirements() here to declare subsystem dependencies.\n driveTrainSubsystem = driveTrain;\n addRequirements(driveTrainSubsystem);\n }",
"public void setTraversalStrategy(traversalStrategies newStrategy) {\n\t\tcurrentStrategy = strategies.get(newStrategy);\n\t}",
"public void setTurtleActive(boolean turtleActive) {\n isTurtleActive = turtleActive;\n }",
"public void SetLearnRate (double alpha) { this.alpha = alpha; }",
"public void setY_vel(double setYVel) {\n this.y_vel = setYVel;\n }",
"public ArcadeDrive() {\n\t\tthis.drivetrain = Robot.DRIVETRAIN;\n\t\trequires(drivetrain);\n\t}",
"public void setIdTravel(Integer idTravel) {\r\n this.idTravel = idTravel;\r\n }",
"public void setEntrenchmentRate(int value) {\n this.entrenchmentRate = value;\n }",
"public void setExperience(int experience) {\r\n\t\tthis.experience = experience;\r\n\t}",
"public void xsetDataRetentionPeriodUnitOfMeasure(com.exacttarget.wsdl.partnerapi.RecurrenceTypeEnum dataRetentionPeriodUnitOfMeasure)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.exacttarget.wsdl.partnerapi.RecurrenceTypeEnum target = null;\n target = (com.exacttarget.wsdl.partnerapi.RecurrenceTypeEnum)get_store().find_element_user(DATARETENTIONPERIODUNITOFMEASURE$28, 0);\n if (target == null)\n {\n target = (com.exacttarget.wsdl.partnerapi.RecurrenceTypeEnum)get_store().add_element_user(DATARETENTIONPERIODUNITOFMEASURE$28);\n }\n target.set(dataRetentionPeriodUnitOfMeasure);\n }\n }",
"public void accelerationSet(double speed){\n\t\tdouble currentDelta = Math.abs(currentSpeed - speed);\r\n\t\tif(currentDelta > maxDelta){\r\n\t\t\tif(speed > currentSpeed){\r\n\t\t\t\tspeed = currentSpeed + maxDelta;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tspeed = currentSpeed - maxDelta;\r\n\t\t\t}\r\n\t\t}\r\n\t//\tSystem.out.println(\"Speed:\" + speed);\r\n\t\tcurrentSpeed = speed;\r\n\t\tsuper.set(speed * motorDirection);\r\n\t}",
"public void setSpeechRate(int speechRate) {\n mSelf.setSpeechRate(speechRate);\n }",
"public void teleopArcadeDrive(){\r\n\t\tmyRobot.arcadeDrive(-m_controls.driver_Y_Axis(), -m_controls.driver_X_Axis());\r\n\t}",
"public void setExperiment(Experiment exp) {\n \n m_Exp = exp;\n m_StartBut.setEnabled(m_RunThread == null);\n m_StopBut.setEnabled(m_RunThread != null);\n }",
"public void setSelectedTrain(Train train){\n\n this.selectedTrain = train;\n }",
"public void setNext(Level next) {\n\t\tthis.next = next;\n\t}",
"public void setSpeed() {\r\n\t\tthis.currSpeed = this.maxSpeed * this.myStrategy.setEffort(this.distRun);\r\n\t}",
"public void setBudgetExpenditure(String expAppId) {\r\n\t\tdouble cost = 0.0d;\r\n\t\ttry {\r\n\t\t\tTravelProcessModel trvlprcmodel = new TravelProcessModel();\r\n\t\t\ttrvlprcmodel.initiate(context, session);\r\n\t\t\tcost = trvlprcmodel.getApproximateBudget(expAppId);\r\n\t\t\ttrvlClmApprvl.setBudgetExpenditure(Utility.twoDecimals(cost));\r\n\t\t\ttrvlprcmodel.terminate();\r\n\t\t} catch (Exception e) {\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"public void setElevatorSpeed(double spd)\n {\n mSpeed = spd;\n }",
"public void setUnit(Unit newUnit){\r\n tacUnit = newUnit;\r\n }",
"public void liftDown() {\n set(m_defaultLiftSpeedDown);\n }",
"public void setFlywheelTargetVelocity(double target){\r\n\t\twheelTarget = target;\r\n\t}",
"public void setNextNode(ElectionNode nextNode) {\r\n this.nextNode = nextNode;\r\n }",
"public CLPObjective setTerm(double value) {\n\t\t_solver.setObjectiveOffset(value);\n\t\treturn this;\n\t}",
"public void setNext(SlideNode node) {\n\t\tthis.next = node;\n\t}",
"public void setMode(DcMotor.RunMode mode) {\n lDrive.setMode(mode);\n rDrive.setMode(mode);\n }",
"public synchronized void set (double speed){\n m_liftSpeed = speed;\n if (m_liftSpeed < 0 && isLowerLimit() == false) {\n m_liftMotor.set(m_liftSpeed);\n } else if (m_liftSpeed > 0 && isUpperLimit() == false){\n m_liftMotor.set(m_liftSpeed);\n } else {\n m_liftSpeed = 0;\n m_liftMotor.set(0); \n }\n }",
"public static void setForwardAcceleration(int acc) {\n LEFT_MOTOR.setAcceleration(acc);\n RIGHT_MOTOR.setAcceleration(acc);\n }",
"public void setSpeed() {\n //assigns the speed based on the shuffleboard with a default value of zero\n double tempSpeed = setpoint.getDouble(0.0);\n\n //runs the proportional control system based on the aquired speed\n controlRotator.proportionalSpeedSetter(tempSpeed);\n }",
"private final void setTREditCompliance(ViewTestRequirementsAssociation manageTr) {\r\n\t\tuiTestReqEditModel.setBlockComplete(manageTr.getBlockComplete());\r\n\t\tuiTestReqEditModel.setFocalReviewOnly(manageTr.getFocalReviewOnly()!=null?manageTr.getFocalReviewOnly().toString():\"\");\r\n\t\tuiTestReqEditModel.setEstWrk(manageTr.getEstWrkID()!=null?manageTr.getEstWrkID().toString():\"\");\r\n\t\tuiTestReqEditModel.setNewDevReq(manageTr.getNewDevReqChange()!=null?manageTr.getNewDevReqChange().toString():\"\");\r\n\t\tuiTestReqEditModel.setStsWithSE(manageTr.getStsWithID()!=null?manageTr.getStsWithID().toString():\"\");\r\n\t\tuiTestReqEditModel.setCloseOutNotes(manageTr.getCloseOutNotes());\r\n\t\tuiTestReqEditModel.setComments(manageTr.getComments());\r\n\t\tuiTestReqEditModel.setHyperLink(manageTr.getHyperLink());\r\n\t\tuiTestReqEditModel.setComplianceMethodPlanned(manageTr.getComplianceMethodPlanned());\r\n\t}",
"public void setNext(LinearNode<T> node) {\r\n\t\t\r\n\t\tnext = node;\r\n\t\t\r\n\t}",
"public void setManualTension(double speed) {\n if(CommandBase.oi.Button_ManualTensionMode.get()){\n setTension(speed);\n }\n }",
"@Override\r\n\tpublic void setTrade(Trade trade) {\n\t\t this.trade = trade;\r\n\t}",
"public void setAlternateRoute(short trainId, TrainRoute r) {\n\t\ttrainRoutes.put(trainId, r);\n\t}",
"public void setTermType(int ttype){\n if (ttype != TERM_FULL && ttype != TERM_NEAR_OPT &&\n ttype != TERM_EASY && ttype != TERM_PRED_ER ) {\n throw new IllegalArgumentException(\"Unrecognized termination type \"+\n \"code: \"+ttype);\n }\n\n this.ttype = ttype;\n }",
"public void setSpeedLimit(int speedLim) {\n \tthis.currentSpeedLimit = trkMdl.getBlock(this.lineColor,this.currentBlock).getSpeedLimit();\n }",
"public void setRentalFlag(Character aRentalFlag) {\n rentalFlag = aRentalFlag;\n }",
"public void tankDrive() {\n\t\tif (fastBool) {\n\t\t\tmotorRB.set(joystickRYAxis);\n\t\t\tmotorRF.set(joystickRYAxis);\n\t\t\tmotorLB.set(-joystickLYAxis);\n\t\t\tmotorLF.set(-joystickLYAxis);\n\n\t\t} else {\n\t\t\tmotorRB.set(joystickRYAxis/2);\n\t\t\tmotorRF.set(joystickRYAxis/2);\n\t\t\tmotorLB.set(-joystickLYAxis/2);\n\t\t\tmotorLF.set(-joystickLYAxis/2);\n\t\t\t//System.out.println(strongBad.motorMultiplier);\n\t\t\t//SmartDashboard.putNumber(\"MM2\", strongBad.motorMultiplier);\n\n\t\t}\n\t}",
"public void setDriveSpeed(double speed) {\n\t\tdriveMotor.set(speed);\n\t}",
"public void setLineMovement(Timeline t)\r\n {\r\n timeline = t;\r\n }",
"public void advance( )\n {\n // Implemented by student.\n }"
]
| [
"0.6306207",
"0.56873477",
"0.55434775",
"0.53664064",
"0.5325855",
"0.5205953",
"0.50319195",
"0.4967619",
"0.49663508",
"0.49013558",
"0.4883541",
"0.4820081",
"0.4804382",
"0.47597516",
"0.47546935",
"0.4743138",
"0.47423765",
"0.47420248",
"0.47324646",
"0.47105876",
"0.46899635",
"0.4656116",
"0.46232188",
"0.4575533",
"0.45346832",
"0.45109102",
"0.44930166",
"0.44863853",
"0.44596827",
"0.4458238",
"0.4457111",
"0.44432175",
"0.443589",
"0.44345468",
"0.44287828",
"0.44242877",
"0.44212192",
"0.4418273",
"0.44123012",
"0.44081086",
"0.4405925",
"0.44046167",
"0.43850422",
"0.4377252",
"0.43727604",
"0.43696666",
"0.43689272",
"0.4368322",
"0.43665013",
"0.43621597",
"0.43514735",
"0.43444532",
"0.43407267",
"0.43361214",
"0.4333088",
"0.4329062",
"0.43252468",
"0.43248236",
"0.43245503",
"0.43187115",
"0.430732",
"0.42983785",
"0.4298067",
"0.42899525",
"0.4288143",
"0.4274109",
"0.42720056",
"0.42693087",
"0.42666748",
"0.42604595",
"0.4260032",
"0.4258316",
"0.4246597",
"0.42434615",
"0.4240043",
"0.4237135",
"0.42268646",
"0.42210457",
"0.42209437",
"0.4218986",
"0.42174214",
"0.4210439",
"0.42096806",
"0.4208976",
"0.42037904",
"0.4201116",
"0.419484",
"0.41893688",
"0.4188053",
"0.41849583",
"0.41804838",
"0.418013",
"0.41790256",
"0.41787186",
"0.4176376",
"0.4169689",
"0.41672552",
"0.41652152",
"0.41647595",
"0.41638318"
]
| 0.74405926 | 0 |
Initiates the accounting line to go with the advance if all the parameters for the advance are set | protected TemSourceAccountingLine initiateAdvanceAccountingLine() {
try {
TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();
accountingLine.setDocumentNumber(getDocumentNumber());
accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);
accountingLine.setSequenceNumber(new Integer(1));
accountingLine.setCardType(TemConstants.ADVANCE);
if (this.allParametersForAdvanceAccountingLinesSet()) {
accountingLine.setChartOfAccountsCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART));
accountingLine.setAccountNumber(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT));
accountingLine.setFinancialObjectCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE));
}
return accountingLine;
}
catch (InstantiationException ie) {
LOG.error("Could not instantiate new advance accounting line of type: "+getAdvanceAccountingLineClass().getName());
throw new RuntimeException("Could not instantiate new advance accounting line of type: "+getAdvanceAccountingLineClass().getName(), ie);
}
catch (IllegalAccessException iae) {
LOG.error("Illegal access attempting to instantiate advance accounting line of class "+getAdvanceAccountingLineClass().getName());
throw new RuntimeException("Illegal access attempting to instantiate advance accounting line of class "+getAdvanceAccountingLineClass().getName(), iae);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void initiateAdvancePaymentAndLines() {\n setDefaultBankCode();\n setTravelAdvance(new TravelAdvance());\n getTravelAdvance().setDocumentNumber(getDocumentNumber());\n setAdvanceTravelPayment(new TravelPayment());\n getAdvanceTravelPayment().setDocumentNumber(getDocumentNumber());\n getAdvanceTravelPayment().setDocumentationLocationCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TravelParameters.DOCUMENTATION_LOCATION_CODE,\n getParameterService().getParameterValueAsString(TemParameterConstants.TEM_DOCUMENT.class,TravelParameters.DOCUMENTATION_LOCATION_CODE)));\n getAdvanceTravelPayment().setCheckStubText(getConfigurationService().getPropertyValueAsString(TemKeyConstants.MESSAGE_TA_ADVANCE_PAYMENT_HOLD_TEXT));\n final java.sql.Date currentDate = getDateTimeService().getCurrentSqlDate();\n getAdvanceTravelPayment().setDueDate(currentDate);\n updatePayeeTypeForAuthorization(); // if the traveler is already initialized, set up payee type on advance travel payment\n setWireTransfer(new PaymentSourceWireTransfer());\n getWireTransfer().setDocumentNumber(getDocumentNumber());\n setAdvanceAccountingLines(new ArrayList<TemSourceAccountingLine>());\n resetNextAdvanceLineNumber();\n TemSourceAccountingLine accountingLine = initiateAdvanceAccountingLine();\n addAdvanceAccountingLine(accountingLine);\n }",
"public void propagateAdvanceInformationIfNeeded() {\n if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().getTravelAdvanceRequested() != null) {\n if (!ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setCheckTotalAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n final TemSourceAccountingLine maxAmountLine = getAccountingLineWithLargestAmount();\n if (!TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus())) {\n getAdvanceAccountingLines().get(0).setAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n if (!allParametersForAdvanceAccountingLinesSet() && !TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus()) && !advanceAccountingLinesHaveBeenModified(maxAmountLine)) {\n // we need to set chart, account, sub-account, and sub-object from account with largest amount from regular source lines\n if (maxAmountLine != null) {\n getAdvanceAccountingLines().get(0).setChartOfAccountsCode(maxAmountLine.getChartOfAccountsCode());\n getAdvanceAccountingLines().get(0).setAccountNumber(maxAmountLine.getAccountNumber());\n getAdvanceAccountingLines().get(0).setSubAccountNumber(maxAmountLine.getSubAccountNumber());\n }\n }\n // let's also propogate the due date\n if (getTravelAdvance().getDueDate() != null && !ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setDueDate(getTravelAdvance().getDueDate());\n }\n }\n }",
"public boolean allParametersForAdvanceAccountingLinesSet() {\n // not checking the object code because that will need to be set no matter what - every advance accounting line will use that\n return (!StringUtils.isBlank(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT, KFSConstants.EMPTY_STRING)) &&\n !StringUtils.isBlank(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART, KFSConstants.EMPTY_STRING)));\n }",
"public void setAdvanceAccountingLines(List<TemSourceAccountingLine> advanceAccountingLines) {\n this.advanceAccountingLines = advanceAccountingLines;\n }",
"public TemSourceAccountingLine createNewAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setCardType(TemConstants.ADVANCE); // really, card type is ignored but it is validated so we have to set something\n accountingLine.setFinancialObjectCode(this.getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE, KFSConstants.EMPTY_STRING));\n return accountingLine;\n }\n catch (IllegalAccessException iae) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", iae);\n }\n catch (InstantiationException ie) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", ie);\n }\n }",
"public void addAdvanceAccountingLine(TemSourceAccountingLine line) {\n line.setSequenceNumber(this.getNextAdvanceLineNumber());\n this.advanceAccountingLines.add(line);\n this.nextAdvanceLineNumber = new Integer(getNextAdvanceLineNumber().intValue() + 1);\n }",
"public void annualProcess() {\n super.withdraw(annualFee);\n }",
"public void activate() {\n // PROGRAM 1: Student must complete this method\n if (control == 0) { // run and()\n \t\tand();\n \t} else if (control == 1) { //run or()\n \t\tor();\n \t} else if (control == 2) { //run add()\n \t\tadd();\n \t} else if (control == 6) { //run sub()\n \t\tsub();\n \t} else if (control == 7) { //run passB()\n \t\tpassB();\n \t} else {\n \t\tthrow new RuntimeException(\"invalid control\"); //otherwise, there was an invalid control\n \t}\n }",
"public Object creditEarningsAndPayTaxes()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setInitialCash : \" + \"Agent\");\r\n/* 144 */ \tgetPriceFromWorld();\r\n/* 145 */ \tgetDividendFromWorld();\r\n/* */ \r\n/* */ \r\n/* 148 */ \tthis.cash -= (this.price * this.intrate - this.dividend) * this.position;\r\n/* 149 */ \tif (this.cash < this.mincash) {\r\n/* 150 */ \tthis.cash = this.mincash;\r\n/* */ }\t\r\n/* */ \r\n/* 153 */ \tthis.wealth = (this.cash + this.price * this.position);\r\n/* */ \r\n/* 155 */ \treturn this;\r\n/* */ }",
"@Test\n\tpublic void advanceAssemblyLineTest(){\n\t\tcmcSystem.logInUser(1);\n\t\tOrder order1 = makeOrder(new ModelC());\n\t\tOrder order2 = makeOrder(new ModelX());\n\t\tOrder order3 = makeOrder(new ModelC());\n\t\tschedule.placeOrder(order1);\n\t\tschedule.placeOrder(order2);\n\t\tschedule.placeOrder(order3);\n\t\tassertTrue(assemblyLine.getWorkstations()[0].isReady());\n\t\tassemblyLine.advance(order1);\n\t\tassertFalse(assemblyLine.isReadyToAdvance());\n\t\tassertFalse(assemblyLine.getWorkstations()[0].isReady());\n\t}",
"@Override public void activated() {\n\t\t\tApiDemo.INSTANCE.controller().reqFundamentals(m_contract, FundamentalType.ReportRatios, this);\n\t\t}",
"public void activate()\n\t{\n\t\tlineNow = 0f;\n\t\tamp = begAmp;\n\t\tisActivated = true;\n\t}",
"private void setUpLedger() {\n _ledgerLine = new Line();\n _ledgerLine.setStrokeWidth(Constants.STROKE_WIDTH);\n _staffLine = new Line();\n _staffLine.setStrokeWidth(1);\n }",
"public void advance() {\n\n if (length == Length.DAILY) {\n startDate.add(Calendar.DATE, 1);\n } else if (length == Length.WEEKLY) {\n startDate.add(Calendar.WEEK_OF_YEAR, 1);\n } else if (length == Length.BIWEEKLY) {\n startDate.add(Calendar.DATE, 14);\n } else if (length == Length.MONTHLY) {\n startDate.add(Calendar.MONTH, 1);\n } else if (length == Length.YEARLY) {\n startDate.add(Calendar.YEAR, 1);\n }\n\n calculateEndDate();\n\n }",
"public void advance( )\n {\n // Implemented by student.\n }",
"public JSONObject getAdvanceForGSTR3BTaxable(JSONObject reqParams) throws JSONException, ServiceException {\n String companyId=reqParams.optString(\"companyid\");\n JSONObject jSONObject = new JSONObject();\n double taxableAmountAdv = 0d;\n double IGSTAmount = 0d;\n double CGSTAmount = 0d;\n double SGSTAmount = 0d;\n double CESSAmount = 0d;\n reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n if (reqParams.optBoolean(\"at\")) {\n /**\n * Get Advance for which invoice not linked yet\n */\n\n reqParams.put(\"at\", true);\n List<Object> receiptList = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n JSONArray bulkData = gSTR1DeskeraServiceDao.createJsonForAdvanceDataFetchedFromDB(receiptList, reqParams);\n Map<String, JSONArray> advanceMap = AccountingManager.getSortedArrayMapBasedOnJSONAttribute(bulkData, GSTRConstants.receiptadvanceid);\n for (String advdetailkey : advanceMap.keySet()) {\n double rate = 0d;\n JSONArray adDetailArr = advanceMap.get(advdetailkey);\n JSONObject advanceobj = adDetailArr.getJSONObject(0);\n taxableAmountAdv += advanceobj.optDouble(GSTRConstants.receiptamount) - advanceobj.optDouble(GSTRConstants.receipttaxamount);\n for (int index = 0; index < adDetailArr.length(); index++) {\n JSONObject invdetailObj = adDetailArr.getJSONObject(index);\n String defaultterm = invdetailObj.optString(GSTRConstants.defaultterm);\n\n /**\n * Iterate applied GST and put its Percentage and Amount\n * accordingly\n */\n double termamount = invdetailObj.optDouble(GSTRConstants.termamount);\n double taxrate = invdetailObj.optDouble(GSTRConstants.taxrate);\n /**\n * calculate tax amount by considering partial case\n */\n termamount = (advanceobj.optDouble(GSTRConstants.receiptamount) - advanceobj.optDouble(GSTRConstants.receipttaxamount)) * invdetailObj.optDouble(GSTRConstants.taxrate) / 100;\n if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n IGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n CGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n SGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n SGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n CESSAmount += termamount;\n }\n }\n }\n\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n// List<Object> AdvData = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n// for (Object object : AdvData) {\n// Object[] data = (Object[]) object;\n// String term = data[1].toString();\n// double termamount = (Double) data[0];\n// if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n// taxableAmountAdv += (Double) data[2];\n// IGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n// taxableAmountAdv += (Double) data[2];\n// CGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n// SGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n// SGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n// CESSAmount += termamount;\n// }\n// }\n } else {\n /**\n * Get Advance for which invoice isLinked\n */\n reqParams.put(\"atadj\", true);\n List<Object> receiptList = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n JSONArray bulkData = gSTR1DeskeraServiceDao.createJsonForAdvanceDataFetchedFromDB(receiptList, reqParams);\n Map<String, JSONArray> advanceMap = AccountingManager.getSortedArrayMapBasedOnJSONAttribute(bulkData, GSTRConstants.receiptadvanceid);\n for (String advdetailkey : advanceMap.keySet()) {\n double rate = 0d;\n JSONArray adDetailArr = advanceMap.get(advdetailkey);\n JSONObject advanceobj = adDetailArr.getJSONObject(0);\n taxableAmountAdv += advanceobj.optDouble(GSTRConstants.adjustedamount);\n for (int index = 0; index < adDetailArr.length(); index++) {\n JSONObject invdetailObj = adDetailArr.getJSONObject(index);\n String defaultterm = invdetailObj.optString(GSTRConstants.defaultterm);\n\n /**\n * Iterate applied GST and put its Percentage and Amount\n * accordingly\n */\n double termamount = invdetailObj.optDouble(GSTRConstants.termamount);\n double taxrate = invdetailObj.optDouble(GSTRConstants.taxrate);\n /**\n * calculate tax amount by considering partial case\n */\n termamount = advanceobj.optDouble(GSTRConstants.adjustedamount) * invdetailObj.optDouble(GSTRConstants.taxrate) / 100;\n if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n IGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n CGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n SGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n SGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n CESSAmount += termamount;\n }\n }\n }\n\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n// List<Object> AdvDataLinked = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n// for (Object object : AdvDataLinked) {\n// Object[] data = (Object[]) object;\n// String term = data[1].toString();\n// double termamount = (Double) data[0];\n// taxableAmountAdv = (Double) data[2];\n// if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n// taxableAmountAdv += (Double) data[2];\n// IGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n// taxableAmountAdv += (Double) data[2];\n// CGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n// SGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n// SGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n// CESSAmount += termamount;\n// }\n// }\n }\n\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount(taxableAmountAdv,companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount(IGSTAmount,companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount(CGSTAmount,companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount(SGSTAmount,companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount(CESSAmount,companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount(IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount(taxableAmountAdv+IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n return jSONObject;\n }",
"protected void initialize()\n {\n // Set the pid up for driving straight\n Robot.drivetrain.getAngleGyroController().setPID(Constants.DrivetrainAngleGyroControllerP, Constants.DrivetrainAngleGyroControllerI, Constants.DrivetrainAngleGyroControllerD);\n //Robot.drivetrain.resetGyro();\n if (setpointSpecified == true)\n {\n Robot.drivetrain.getAngleGyroController().setSetpoint(Robot.initialGyroAngle); \n }\n else\n {\n Robot.drivetrain.getAngleGyroController().setSetpoint(Robot.drivetrain.getGyroValue());\n }\n Robot.drivetrain.setDirection(driveDirection);\n Robot.drivetrain.setMagnitude(drivePower);\n Robot.drivetrain.getAngleGyroController().enable();\n timer.reset();\n timer.start();\n }",
"public void enableBuyEntrance(){\r\n\t\tbuyEntrance = true;\r\n\t\tbuildHotel = true;\r\n\t}",
"public CreateAccout() {\n initComponents();\n showCT();\n ProcessCtr(true);\n }",
"public void submitLAC() {\n\t\tfor (ReportStatementDto dto : reportStatementDtoList) {\n\t\t\tif (plAcode.getAcCode().equals(dto.getAcCode())) {\n\t\t\t\tplAcode.setcBal(dto.getcBal());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// did two time , to get first result for each\n\t\tfor (ReportStatementDto dto : reportStatementDtoList) {\n\t\t\tif (taxAcode.getAcCode().equals(dto.getAcCode())) {\n\t\t\t\ttaxAcode.setcBal(dto.getcBal());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treportType = ReportType.BS;\n\t\tisReportTypeSelection = true;\n\t\tisCurrencySelection = false;\n\t\tisReportSelection = false;\n\t\tisPreviewDone = false;\n\t\tisLacSelection = false;\n\t\tcreateNewReport();\n\t}",
"public void companyPayRoll(){\n calcTotalSal();\n updateBalance();\n resetHoursWorked();\n topBudget();\n }",
"@Test\n public void loanWithCahargesAndUpfrontAccrualAccountingEnabled() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n Integer percentageDisbursementCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanDisbursementJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\"));\n addCharges(charges, percentageDisbursementCharge, \"1\", null);\n\n Integer percentageSpecifiedDueDateCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", false));\n addCharges(charges, percentageSpecifiedDueDateCharge, \"1\", \"29 September 2011\");\n\n Integer percentageInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", false));\n addCharges(charges, percentageInstallmentFee, \"1\", \"29 September 2011\");\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n Assertions.assertNotNull(collateralId);\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n Assertions.assertNotNull(clientCollateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanProductID = createLoanProduct(false, ACCRUAL_UPFRONT, assetAccount, incomeAccount, expenseAccount,\n overpaymentAccount);\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"12,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n verifyLoanRepaymentSchedule(loanSchedule);\n\n List<HashMap> loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n validateCharge(percentageSpecifiedDueDateCharge, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n\n // check for disbursement fee\n HashMap disbursementDetail = loanSchedule.get(0);\n validateNumberForEqual(\"120.00\", String.valueOf(disbursementDetail.get(\"feeChargesDue\")));\n\n // check for charge at specified date and installment fee\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"149.11\", String.valueOf(firstInstallment.get(\"feeChargesDue\")));\n\n // check for installment fee\n HashMap secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"29.70\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"605.94\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 September 2011\", assetAccountInitialEntry);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 September 2011\",\n new JournalEntry(Float.parseFloat(\"605.94\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"0.0\", \"120.00\", \"0.0\");\n\n LOG.info(\"-------------Make repayment 1-----------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"3300.60\"), loanID);\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"0.00\", \"120.00\", \"0.0\");\n validateCharge(percentageSpecifiedDueDateCharge, loanCharges, \"1\", \"0.00\", \"120.0\", \"0.0\");\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"90.89\", \"29.11\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentageSpecifiedDueDateCharge), \"29 October 2011\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"149.70\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n LOG.info(\"----------- Waive installment charge for 2nd installment ---------\");\n LOAN_TRANSACTION_HELPER.waiveChargesForLoan(loanID, (Integer) getloanCharge(percentageInstallmentFee, loanCharges).get(\"id\"),\n LoanTransactionHelper.getWaiveChargeJSON(String.valueOf(2)));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"61.19\", \"29.11\", \"29.70\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"29.7\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"29.7\"), JournalEntry.TransactionType.DEBIT));\n\n LOG.info(\"----------Make repayment 2------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3271.49\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3271.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3271.49\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"--------------Waive interest---------------\");\n LOAN_TRANSACTION_HELPER.waiveInterest(\"20 December 2011\", String.valueOf(61.79), loanID);\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"60.59\", String.valueOf(thirdInstallment.get(\"interestOutstanding\")));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.DEBIT));\n\n Integer percentagePenaltySpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", true));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentagePenaltySpecifiedDueDate), \"29 September 2011\", \"1\"));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentagePenaltySpecifiedDueDate, loanCharges, \"1\", \"0.00\", \"120.0\", \"0.0\");\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"120\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n // checking the journal entry as applied penalty has been collected\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"----------Make repayment 3 advance------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3301.78\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3301.78\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3301.78\"), JournalEntry.TransactionType.CREDIT));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentagePenaltySpecifiedDueDate), \"10 January 2012\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"120\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3240.58\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Pay applied penalty ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"120\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"0\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3120.58\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Make over payment for repayment 4 ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3220.58\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"3220.58\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3120.58\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForLiabilityAccount(overpaymentAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.CREDIT));\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.getLoanDetail(REQUEST_SPEC, RESPONSE_SPEC, loanID, \"status\");\n LoanStatusChecker.verifyLoanAccountIsOverPaid(loanStatusHashMap);\n }",
"public TemSourceAccountingLine getAdvanceAccountingLine(int index) {\n while (getAdvanceAccountingLines().size() <= index) {\n getAdvanceAccountingLines().add(createNewAdvanceAccountingLine());\n }\n return getAdvanceAccountingLines().get(index);\n }",
"@Override\n public void commucateInitAall() {\n mCommunciation.commucateInitAall();\n }",
"@Test\n public void loanWithCahargesOfTypeAmountPlusInterestPercentageAndUpfrontAccrualAccountingEnabled() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n Integer amountPlusInterestPercentageDisbursementCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanDisbursementJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT_AND_INTEREST, \"1\"));\n addCharges(charges, amountPlusInterestPercentageDisbursementCharge, \"1\", null);\n\n Integer amountPlusInterestPercentageSpecifiedDueDateCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC, ChargesHelper\n .getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT_AND_INTEREST, \"1\", false));\n\n Integer amountPlusInterestPercentageInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT_AND_INTEREST, \"1\", false));\n addCharges(charges, amountPlusInterestPercentageInstallmentFee, \"1\", \"29 September 2011\");\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanProductID = createLoanProduct(false, ACCRUAL_UPFRONT, assetAccount, incomeAccount, expenseAccount,\n overpaymentAccount);\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"12,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n verifyLoanRepaymentSchedule(loanSchedule);\n\n List<HashMap> loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageDisbursementCharge, loanCharges, \"1\", \"126.06\", \"0.0\", \"0.0\");\n validateCharge(amountPlusInterestPercentageInstallmentFee, loanCharges, \"1\", \"126.04\", \"0.0\", \"0.0\");\n\n // check for disbursement fee\n HashMap disbursementDetail = loanSchedule.get(0);\n validateNumberForEqual(\"126.06\", String.valueOf(disbursementDetail.get(\"feeChargesDue\")));\n\n // check for charge at specified date and installment fee\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"31.51\", String.valueOf(firstInstallment.get(\"feeChargesDue\")));\n\n // check for installment fee\n HashMap secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"31.51\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"605.94\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"126.06\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"126.04\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 September 2011\", assetAccountInitialEntry);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 September 2011\",\n new JournalEntry(Float.parseFloat(\"605.94\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"126.06\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"126.04\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper.getSpecifiedDueDateChargesForLoanAsJSON(\n String.valueOf(amountPlusInterestPercentageSpecifiedDueDateCharge), \"29 September 2011\", \"1\"));\n\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageDisbursementCharge, loanCharges, \"1\", \"0.0\", \"126.06\", \"0.0\");\n validateCharge(amountPlusInterestPercentageSpecifiedDueDateCharge, loanCharges, \"1\", \"126.06\", \"0.0\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"29 September 2011\",\n new JournalEntry(Float.parseFloat(\"126.06\"), JournalEntry.TransactionType.DEBIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"29 September 2011\",\n new JournalEntry(Float.parseFloat(\"126.06\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"-------------Make repayment 1-----------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"3309.06\"), loanID);\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageDisbursementCharge, loanCharges, \"1\", \"0.00\", \"126.06\", \"0.0\");\n validateCharge(amountPlusInterestPercentageSpecifiedDueDateCharge, loanCharges, \"1\", \"0.00\", \"126.06\", \"0.0\");\n validateCharge(amountPlusInterestPercentageInstallmentFee, loanCharges, \"1\", \"94.53\", \"31.51\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3309.06\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3309.06\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper.getSpecifiedDueDateChargesForLoanAsJSON(\n String.valueOf(amountPlusInterestPercentageSpecifiedDueDateCharge), \"29 October 2011\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"157.57\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n LOG.info(\"----------- Waive installment charge for 2nd installment ---------\");\n LOAN_TRANSACTION_HELPER.waiveChargesForLoan(loanID,\n (Integer) getloanCharge(amountPlusInterestPercentageInstallmentFee, loanCharges).get(\"id\"),\n LoanTransactionHelper.getWaiveChargeJSON(String.valueOf(2)));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageInstallmentFee, loanCharges, \"1\", \"63.02\", \"31.51\", \"31.51\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"31.51\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"31.51\"), JournalEntry.TransactionType.DEBIT));\n\n LOG.info(\"----------Make repayment 2------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3277.55\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3277.55\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3277.55\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"--------------Waive interest---------------\");\n LOAN_TRANSACTION_HELPER.waiveInterest(\"20 December 2011\", String.valueOf(61.79), loanID);\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"60.59\", String.valueOf(thirdInstallment.get(\"interestOutstanding\")));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.DEBIT));\n\n Integer amountPlusInterestPercentagePenaltySpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", true));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper.getSpecifiedDueDateChargesForLoanAsJSON(\n String.valueOf(amountPlusInterestPercentagePenaltySpecifiedDueDate), \"29 September 2011\", \"1\"));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentagePenaltySpecifiedDueDate, loanCharges, \"1\", \"0.0\", \"120.0\", \"0.0\");\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"120\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n // checking the journal entry as applied penalty has been collected\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3309.06\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3309.06\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"----------Make repayment 3 advance------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3303\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3303\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3303\"), JournalEntry.TransactionType.CREDIT));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper.getSpecifiedDueDateChargesForLoanAsJSON(\n String.valueOf(amountPlusInterestPercentagePenaltySpecifiedDueDate), \"10 January 2012\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"120\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3241.19\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Pay applied penalty ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"120\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"0\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3121.19\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Make over payment for repayment 4 ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3221.61\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"3221.61\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3121.19\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForLiabilityAccount(overpaymentAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"100.42\"), JournalEntry.TransactionType.CREDIT));\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.getLoanDetail(REQUEST_SPEC, RESPONSE_SPEC, loanID, \"status\");\n LoanStatusChecker.verifyLoanAccountIsOverPaid(loanStatusHashMap);\n }",
"public void advance(){\n\t\tswitch(state){\n\t\t\n\t\tcase LOGINID: \n\t\t\tif(currentInput.length() > 0){ //not empty \n\t\t\t\tif(Bank.accountExists(Integer.parseInt(currentInput))){ //shouldn't need to check if int since input can only be int\n\t\t\t\t\taccountID = Integer.parseInt(currentInput);\n\t\t\t\t\tloginPin();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfailedLogin();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\trefreshState();\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase LOGINPIN:\n\t\t\tif(currentInput.length() > 0){\n\t\t\t\tif(Bank.login(accountID, Integer.parseInt(currentInput))){\n\t\t\t\t\ttransactionMenu();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfailedPin();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase TRANSACTION:\n\t\t\ttransactionMenu();\n\t\t\tif(currentInput.equals(\"1\")){\n\t\t\t\tbalanceMenu();\n\t\t\t}\n\t\t\telse if(currentInput.equals(\"2\")){\n\t\t\t\tdepositMenu();\n\t\t\t}\n\t\t\telse if(currentInput.equals(\"3\")){\n\t\t\t\twithdrawalMenu();\n\t\t\t}\n\t\t\telse if(currentInput.equals(\"4\")){\n\t\t\t\taccountID = 0;\n\t\t\t\tloginMenu();\n\t\t\t}\n\t\t\telse{\n\t\t\t\trefreshState();\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase DEPOSIT:\n\t\t\tif(currentInput.length() > 0){\n\t\t\t\tBank.deposit(accountID, Integer.parseInt(currentInput));\n\t\t\t\tsuccessfulDeposit();\n\t\t\t}\n\t\t\t\n\t\t\tbreak;\n\t\t\t\n\t\tcase DEPOSITNOTIFICATION: \n\t\t\ttransactionMenu(); \n\t\t\tbreak;\n\t\t\t\n\t\tcase WITHDRAW:\n\t\t\tif(currentInput.length() > 0){\n\t\t\t\tif(Bank.withdraw(accountID, Integer.parseInt(currentInput))){\n\t\t\t\t\tsucceededWithdraw();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfailedWithdraw();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase BALANCE: \n\t\t\ttransactionMenu();\n\t\t\tbreak;\n\t\t\t\n\t\tcase WITHDRAWALNOTIFICATION: \n\t\t\ttransactionMenu(); \n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcurrentInput = \"\";\n\t}",
"private void executeRicercaAccertamentoPerOrdinativo() {\n \tif (model.getGestioneOrdinativoStep1Model().getAnnoAccertamento() == null || model.getGestioneOrdinativoStep1Model().getNumeroAccertamento() == null) {\n\n \t\tif(!sonoInAggiornamento()){\n \t\t\t\n \t\t\tmodel.getGestioneOrdinativoStep2Model().setListaAccertamento(new ArrayList<Accertamento>());\n \t\t\tmodel.getGestioneOrdinativoStep2Model().setListaAccertamentoOriginale(new ArrayList<Accertamento>());\n \t\t\tmodel.getGestioneOrdinativoStep2Model().setResultSize(0);\n\n \t\t\tRicercaAccertamentiSubAccertamenti request= new RicercaAccertamentiSubAccertamenti();\n \t\t\trequest.setEnte(sessionHandler.getEnte());\n \t\t\trequest.setRichiedente(sessionHandler.getRichiedente());\n\n\n \t\t\tParametroRicercaAccSubAcc param= new ParametroRicercaAccSubAcc();\n \t\t\tparam.setAnnoEsercizio(Integer.parseInt(sessionHandler.getAnnoEsercizio()));\n \t\t\tparam.setAnnoAccertamento(Integer.parseInt(sessionHandler.getAnnoEsercizio()));\n \t\t\tparam.setDisponibilitaAdIncassare(true);\n\n \t\t\t// Capitolo\n \t\t\tif (model.getGestioneOrdinativoStep1Model().getCapitolo() != null) {\n \t\t\t\tparam.setNumeroCapitolo(model.getGestioneOrdinativoStep1Model().getCapitolo().getNumCapitolo());\n \t\t\t\tparam.setNumeroArticolo(model.getGestioneOrdinativoStep1Model().getCapitolo().getArticolo());\n \t\t\t\tif(null!=model.getGestioneOrdinativoStep1Model().getCapitolo().getUeb()){\n \t\t\t\t\tparam.setNumeroUEB(model.getGestioneOrdinativoStep1Model().getCapitolo().getUeb().intValue());\n \t\t\t\t}\n \t\t\t}\n\n\n \t\t\tparam.setCodiceDebitore(model.getGestioneOrdinativoStep1Model().getSoggetto().getCodCreditore());\n \t\t\tparam.setIsRicercaDaAccertamento(false);\n \t\t\trequest.setParametroRicercaAccSubAcc(param);\n\n\n \t\t\taddNumAndPageSize(request, \"listaAccertamentoOrdinativoId\");\n\n \t\t\tRicercaAccertamentiSubAccertamentiResponse response= movimentoGestionService.ricercaAccertamentiSubAccertamentiPerOrdinativoIncasso(request);\n\n \t\t\tif(response.isFallimento() || !response.getErrori().isEmpty()){\n\n \t\t\t\t//setto gli errori cosi che siano segnalati lato app!\n \t\t\t\taddErrori(response.getErrori());\n\n \t\t\t}else{\n\n \t\t\t\tif (response.getListaAccertamenti() != null && response.getListaAccertamenti().size() > 0) {\n \t\t\t\t\tfor (Accertamento currentAccetamento : response.getListaAccertamenti()) {\n \t\t\t\t\t\taddAccertamentiESubAccertamentiInUnicaLista(currentAccetamento);\n \t\t\t\t\t}\n\n \t\t\t\t\tmodel.getGestioneOrdinativoStep2Model().setResultSize(response.getNumRisultati());\n \t\t\t\t\t\n \t\t\t\t\tif(model.getGestioneOrdinativoStep2Model().getListaAccertamento()==null || model.getGestioneOrdinativoStep2Model().getListaAccertamento().size()==0){\n \t\t\t\t\t\taddPersistentActionWarning(ErroreFin.CRU_WAR_1003.getErrore().getCodice()+\" : \"+ErroreFin.CRU_WAR_1003.getErrore(\" accertamenti o subaccertamenti\").getDescrizione());\n \t\t\t\t\t}\n \t\t\t\t} else {\n \t\t\t\t\taddPersistentActionWarning(ErroreFin.CRU_WAR_1003.getErrore().getCodice()+\" : \"+ErroreFin.CRU_WAR_1003.getErrore(\" accertamenti o subaccertamenti\").getDescrizione());\n \t\t\t\t}\n \t\t\t}\n\n \t\t}\n \t}\n }",
"public void addAccount() {\n\t\t\n\t\ttry {\n\t\t\tlog.log(Level.INFO, \"Please enter name\");\n String custName = scan.next();\n validate.checkName(custName);\n \t\tlog.log(Level.INFO, \"Select Account Type: \\n 1 for Savings \\n 2 for Current \\n 3 for FD \\n 4 for DEMAT\");\n\t\t\tint bankAccType = Integer.parseInt(scan.next());\n\t\t\tvalidate.checkAccType(bankAccType);\n\t\t\tlog.log(Level.INFO, \"Please Enter your Aadar Card Number\");\n\t\t\tString aadarNumber = scan.next();\n\t\t\tlog.log(Level.INFO, \"Please Enter Phone Number: \");\n\t\t\tString custMobileNo = scan.next();\n\t\t\tvalidate.checkPhoneNum(custMobileNo);\n\t\t\tlog.log(Level.INFO, \"Please Enter Customer Email Id: \");\n\t\t\tString custEmail = scan.next();\n\t\t\tvalidate.checkEmail(custEmail);\n\t\t\tbankop.add(accountNumber, custName, bankAccType, custMobileNo, custEmail, aadarNumber);\n\t\t\taccountNumber();\n\t\t\n\t\t} catch (AccountDetailsException message) {\n\t\t\tlog.log(Level.INFO, message.getMessage()); \n }\n\n\t}",
"public void continue_billing() {\r\n\t\t\tthis.Continue_Billing.click();\r\n\t\t}",
"public void enableContinue() {\n if (PayBillAccountBox.getValue() != null) continueButton.setDisable(false);\n }",
"private void setDegreeRequired ()\r\n {\r\n int j = 0;\r\n\r\n while (j < CAREERS.length && !CAREERS[j].equalsIgnoreCase (name))\r\n j++;\r\n\r\n if (j <= 3)\r\n degreeRequired = true;\r\n else degreeRequired = false;\r\n }",
"public void advanceSimulation () {\n\t\tstep_++;\n\t}",
"public void withDrawAmount() {\n\t\t\n\t\ttry {\t\n\t\t\tlog.log(Level.INFO, \"Please Enter the account number you want to withdraw: \");\n\t\t\tint withdrawAccountNumber = scan.nextInt();\n\t\t\tlong amount;\n\t\t\tlog.log(Level.INFO, \"Please Enter the amount you want to withdraw : \");\n\t\t\tamount = scan.nextLong();\n\t\t\tbankop.withDraw(withdrawAccountNumber,amount);\n\t\t\t\n\t\t}catch(AccountDetailsException | BalanceException message ) {\n\t\t\tlog.log(Level.INFO, message.getMessage());\n\t\t}\n\n\t}",
"public Object setInitialCash(double initcash)\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setInitialCash : \" + \"Agent\");\r\n/* 86 */ \tthis.initialcash = initcash;\r\n/* 87 */ \treturn this;\r\n/* */ }",
"void startTA() {\r\n ta_employeeAccount.appendText(\"Are you an employee with the shelter? \\n\" +\r\n \"enter your Last name and First Name \\n\" +\r\n \"Then enter a Password to create an account \\n\\n\" +\r\n \"P.S dont forget the employee code given \\n\" +\r\n \"by the shelter\");\r\n }",
"public TimeDepositAccount(double interestRate, double balance, int maturityPeriods, double interestPenaltyRate) // constructor\n {\n super(interestRate,balance);\n this.elapsedPeriods=0;\n this.maturityPeriods=maturityPeriods;\n this.interestPenaltyRate = interestPenaltyRate;\n \n \n }",
"public Savings_Account (int account_num, double initial_balance, double interest_rate) \r\n {\r\n\r\n super (account_num, initial_balance);\r\n\r\n rate = interest_rate;\r\n\r\n }",
"protected void resetNextAdvanceLineNumber() {\n this.nextAdvanceLineNumber = new Integer(1);\n }",
"public CheckingAccount(int no, double cR, Persion o) {\r\n\t\tchargeRate = cR;\r\n\t}",
"public void adjustInitialPosition() {\n\n //TelemetryWrapper.setLine(1,\"landFromLatch...\");\n runtime.reset();\n double maxLRMovingDist = 200.0; //millimeters\n double increamentalDist = 50.0;\n while ( runtime.milliseconds() < 5000 ) {\n int loops0 = 0;\n while ((loops0 < 10) && ( mR.getNumM() == 0 )) {\n mR.update();\n loops0 ++;\n }\n if (mR.getNumM() <= 1) {\n int loops = 0;\n while ( mR.getNumM() <= 1 )\n driveTrainEnc.moveLeftRightEnc(increamentalDist, 2000);\n continue;\n } else if ( mR.getHAlignSlope() > 2.0 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED,Math.atan(mR.getHAlignSlope()),2000);\n continue;\n } else if (! mR.isGoldFound()) {\n\n driveTrainEnc.moveLeftRightEnc(increamentalDist,2000);\n continue;\n } else if ( mR.getFirstGoldAngle() > 1.5 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED, mR.getFirstGoldAngle(),2000);\n continue;\n }\n }\n driveTrainEnc.stop();\n }",
"@OnClick\n public void onClickNext() {\n alipayPhoneLogging();\n String phoneNumber = this.airPhone.phoneInputText();\n String countryCode = this.phoneNumberInput.getCountryCode();\n getAlipayActivity().setPhoneNumber(phoneNumber);\n CreatePaymentInstrumentRequest.forAlipay(new Builder().alipayLoginId(getAlipayActivity().getAlipayId()).mobilePhoneNumber(phoneNumber).mobilePhoneCountry(countryCode).build()).withListener((Observer) this.requestListener).execute(this.requestManager);\n this.nextButton.setState(AirButton.State.Loading);\n }",
"public void payCharge()\r\n\t{\r\n\t\tSystem.out.print(\"This method is used for pay charge\");\t\r\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}",
"@Test\n public void loanWithChargesOfTypeAmountPlusInterestPercentageAndPeriodicAccrualAccountingEnabled() throws InterruptedException {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n Integer amountPlusInterestPercentageDisbursementCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanDisbursementJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT_AND_INTEREST, \"1\"));\n addCharges(charges, amountPlusInterestPercentageDisbursementCharge, \"1\", null);\n\n Integer amountPlusInterestPercentageSpecifiedDueDateCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC, ChargesHelper\n .getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT_AND_INTEREST, \"1\", false));\n addCharges(charges, amountPlusInterestPercentageSpecifiedDueDateCharge, \"1\", \"29 September 2011\");\n\n Integer amountPlusInterestPercentageInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT_AND_INTEREST, \"1\", false));\n addCharges(charges, amountPlusInterestPercentageInstallmentFee, \"1\", \"29 September 2011\");\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n Assertions.assertNotNull(collateralId);\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n Assertions.assertNotNull(clientCollateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanProductID = createLoanProduct(false, ACCRUAL_PERIODIC, assetAccount, incomeAccount, expenseAccount,\n overpaymentAccount);\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"12,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n verifyLoanRepaymentSchedule(loanSchedule);\n\n List<HashMap> loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageDisbursementCharge, loanCharges, \"1\", \"126.06\", \"0.0\", \"0.0\");\n validateCharge(amountPlusInterestPercentageSpecifiedDueDateCharge, loanCharges, \"1\", \"126.06\", \"0.0\", \"0.0\");\n validateCharge(amountPlusInterestPercentageInstallmentFee, loanCharges, \"1\", \"126.04\", \"0.0\", \"0.0\");\n\n // check for disbursement fee\n HashMap disbursementDetail = loanSchedule.get(0);\n validateNumberForEqual(\"126.06\", String.valueOf(disbursementDetail.get(\"feeChargesDue\")));\n\n // check for charge at specified date and installment fee\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"157.57\", String.valueOf(firstInstallment.get(\"feeChargesDue\")));\n\n // check for installment fee\n HashMap secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"31.51\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"126.06\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 September 2011\", assetAccountInitialEntry);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 September 2011\",\n new JournalEntry(Float.parseFloat(\"126.06\"), JournalEntry.TransactionType.CREDIT));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageDisbursementCharge, loanCharges, \"1\", \"0.0\", \"126.06\", \"0.0\");\n\n LOG.info(\"-------------Make repayment 1-----------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"3309.06\"), loanID);\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageDisbursementCharge, loanCharges, \"1\", \"0.00\", \"126.06\", \"0.0\");\n validateCharge(amountPlusInterestPercentageSpecifiedDueDateCharge, loanCharges, \"1\", \"0.00\", \"126.06\", \"0.0\");\n validateCharge(amountPlusInterestPercentageInstallmentFee, loanCharges, \"1\", \"94.53\", \"31.51\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3309.06\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3309.06\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper.getSpecifiedDueDateChargesForLoanAsJSON(\n String.valueOf(amountPlusInterestPercentageSpecifiedDueDateCharge), \"29 October 2011\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"157.57\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n LOG.info(\"----------- Waive installment charge for 2nd installment ---------\");\n LOAN_TRANSACTION_HELPER.waiveChargesForLoan(loanID,\n (Integer) getloanCharge(amountPlusInterestPercentageInstallmentFee, loanCharges).get(\"id\"),\n LoanTransactionHelper.getWaiveChargeJSON(String.valueOf(2)));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageInstallmentFee, loanCharges, \"1\", \"63.02\", \"31.51\", \"31.51\");\n\n /*\n * JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount( assetAccount, \"20 September 2011\", new JournalEntry(\n * Float.parseFloat(\"31.51\"), JournalEntry.TransactionType.CREDIT));\n * JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount (expenseAccount, \"20 September 2011\", new\n * JournalEntry(Float.parseFloat(\"31.51\"), JournalEntry.TransactionType.DEBIT));\n */\n\n final String jobName = \"Add Accrual Transactions\";\n\n SCHEDULER_JOB_HELPER.executeAndAwaitJob(jobName);\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n checkAccrualTransactions(loanSchedule, loanID);\n\n LOG.info(\"----------Make repayment 2------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3277.55\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3277.55\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3277.55\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"--------------Waive interest---------------\");\n LOAN_TRANSACTION_HELPER.waiveInterest(\"20 December 2011\", String.valueOf(61.79), loanID);\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"60.59\", String.valueOf(thirdInstallment.get(\"interestOutstanding\")));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.DEBIT));\n\n Integer amountPlusInterestPercentagePenaltySpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", true));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper.getSpecifiedDueDateChargesForLoanAsJSON(\n String.valueOf(amountPlusInterestPercentagePenaltySpecifiedDueDate), \"29 September 2011\", \"1\"));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentagePenaltySpecifiedDueDate, loanCharges, \"1\", \"0.0\", \"120.0\", \"0.0\");\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"120\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n // checking the journal entry as applied penalty has been collected\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3309.06\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3309.06\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"----------Make repayment 3 advance------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3303\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3303\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3303\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper.getSpecifiedDueDateChargesForLoanAsJSON(\n String.valueOf(amountPlusInterestPercentagePenaltySpecifiedDueDate), \"10 January 2012\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"120\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3241.19\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Pay applied penalty ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"120\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"0\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3121.19\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Make repayment 4 ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3121.19\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"3121.19\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3121.19\"), JournalEntry.TransactionType.CREDIT));\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.getLoanDetail(REQUEST_SPEC, RESPONSE_SPEC, loanID, \"status\");\n LoanStatusChecker.verifyLoanAccountIsClosed(loanStatusHashMap);\n }",
"public boolean allocateIt() {\n\n //\tCreate invoice Allocation -\tSee also MCash.completeIt\n if (getC_Invoice_ID() != 0) {\n return allocateInvoice();\n }\n //\tInvoices of a AP Payment Selection\n if (allocatePaySelection()) {\n return true;\n }\n\n if (getC_Order_ID() != 0) {\n return false;\n }\n\n //\tAllocate to multiple Payments based on entry\n MPaymentAllocate[] pAllocs = MPaymentAllocate.get(this);\n if (pAllocs.length == 0) {\n return false;\n }\n\n /**\n *\n * \t\tModificación para diferenciar\n *\tcobros/pagos en Consulta de Asignación\n *\n */\n MAllocationHdr alloc;\n\n if (isReceipt()) {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"IsReceipt\") + \": \" + getDocumentNo(), get_TrxName());\n } else {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"C_Payment_ID\") + \": \" + getDocumentNo(), get_TrxName());\n }\n alloc.setAD_Org_ID(getAD_Org_ID());\n\n /**\n * 25/11/2010 Camarzana Mariano\n * Estaba tomando mal el nombre de la transaccion\n * usaba getTrxType() en vez de get_TrxName()\n *\n */\n if (!alloc.save(get_TrxName())) {\n log.severe(\"P.Allocations not created\");\n return false;\n }\n //\tLines\n for (int i = 0; i < pAllocs.length; i++) {\n MPaymentAllocate pa = pAllocs[i];\n MAllocationLine aLine = null;\n\n /*\n * 30/05/2012\n * Zynnia - agregado para que actualice el campo pagado\n * JF\n * \n */\n\n String sql = \"SELECT invoiceOpen(C_Invoice_ID, 0) \"\n + \"FROM C_Invoice WHERE C_Invoice_ID=?\";\n BigDecimal open = DB.getSQLValueBD(null, sql, pa.getC_Invoice_ID());\n\n if (open.compareTo(Env.ZERO) == 0) {\n MInvoice invoice = new MInvoice(getCtx(), pa.getC_Invoice_ID(), get_TrxName());\n invoice.setIsPaid(true);\n if (!invoice.save(get_TrxName())) {\n log.severe(\"No se pudo cambiar a estado Pagado la factura \" + invoice.getDocumentNo());\n return false;\n }\n }\n\n\n if (isReceipt()) {\n aLine = new MAllocationLine(alloc, pa.getAmount(),\n pa.getDiscountAmt(), pa.getWriteOffAmt(), pa.getOverUnderAmt());\n } else {\n aLine = new MAllocationLine(alloc, pa.getAmount().negate(),\n pa.getDiscountAmt().negate(), pa.getWriteOffAmt().negate(), pa.getOverUnderAmt().negate());\n }\n aLine.setDocInfo(pa.getC_BPartner_ID(), 0, pa.getC_Invoice_ID());\n aLine.setPaymentInfo(getC_Payment_ID(), 0);\n if (!aLine.save(get_TrxName())) {\n log.warning(\"P.Allocations - line not saved\");\n } else {\n pa.setC_AllocationLine_ID(aLine.getC_AllocationLine_ID());\n pa.save(get_TrxName());\n }\n }\n //\tShould start WF\n alloc.processIt(DocAction.ACTION_Complete);\n m_processMsg = \"@C_AllocationHdr_ID@: \" + alloc.getDocumentNo();\n return alloc.save(get_TrxName());\n }",
"public Object prepareForTrading()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to prepareForTrading : \" + \"Agent\");\r\n/* 230 */ return this;\r\n/* */ }",
"public void checkPairsAndNextStep() {\r\n\t\tsetPairs();\r\n\t\tif (this.criticalPairs != null || this.criticalPairGraGra != null) {\r\n\t\t\tthis.stepPanel.setStep(StepPanel.STEP_FINISH);\r\n\t\t\tthis.nextButton.setText(\"Finish\");\r\n\t\t\tif (this.criticalPairs != null) {\r\n\t\t\t\tthis.criticalPairGraGra = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void initAccount() {\n initAccount(Huobi.PLATFORM_NAME, Gateio.PLATFORM_NAME, \"EOS_USDT\", 14.5632);\n\n\n initAccount(Huobi.PLATFORM_NAME, Fcoin.PLATFORM_NAME, \"LTCUSDT\", 112.610000000);\n initAccount(Huobi.PLATFORM_NAME, Fcoin.PLATFORM_NAME, \"BCHUSDT\", 1032.690000000);\n initAccount(Huobi.PLATFORM_NAME, Fcoin.PLATFORM_NAME, \"ETHUSDT\", 572.300000000);\n\n initAccount(Huobi.PLATFORM_NAME, Dragonex.PLATFORM_NAME, \"EOSUSDT\", 13.1469);\n initAccount(Huobi.PLATFORM_NAME, Dragonex.PLATFORM_NAME, \"NEOUSDT\", 48.4760);\n initAccount(Huobi.PLATFORM_NAME, Dragonex.PLATFORM_NAME, \"ETHUSDT\", 572.1195);\n }",
"private void initiateBuyRiotPointsEnter(JFrame frame, JTextField account, JTextField amount) {\r\n JButton enter = new JButton(\"Confirm\");\r\n new Confirm(enter);\r\n// enter.setPreferredSize(new Dimension(100, 100));\r\n// enter.setFont(new Font(\"Arial\", Font.PLAIN, 20));\r\n enter.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent actionEvent) {\r\n try {\r\n int designated = Integer.parseInt(amount.getText());\r\n selectLeagueOfLegendsAccount(account.getText()).purchasePremium(designated);\r\n displayMessage(printRiotPointsBalance(selectLeagueOfLegendsAccount(account.getText())));\r\n } catch (ImpossibleValue e) {\r\n displayMessage(\"Reload failed, invalid input.\");\r\n }\r\n frame.setVisible(false);\r\n }\r\n });\r\n frame.add(enter);\r\n }",
"public BankAcc(int accNum, double bal, String name, String email, String phone){\r\n System.out.println(\"DONE\");\r\n //can do some validation in the other functions\r\n //not nessacary\r\n setAccNum(accNum);\r\n this.bal=bal;\r\n this.name=name;\r\n this.email=email;\r\n this.phone=phone;\r\n\r\n }",
"public void autoPay() {}",
"public void limpiarCamposActividadesYRecord() {\r\n try {\r\n opcionTableroControlSeguim = \"\";\r\n estadoPanelMisActivid = false;\r\n estadoPanelMisRecordat = false;\r\n estadoPanelActividAsign = false;\r\n estadoPanelRecordatAsign = false;\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".limpiarCamposCita()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }",
"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 void initialiseCred() {\n t1Cred = 0;\n t2Cred = 0;\n t1Sel.getItems().forEach(m -> t1Cred += m.getCredits());\n t2Sel.getItems().forEach(m -> t2Cred += m.getCredits());\n yrSel.getItems().forEach(m -> t1Cred += (m.getCredits() / 2));\n yrSel.getItems().forEach(m -> t2Cred += (m.getCredits() / 2)); //adds yr long credits split to both terms\n txtt1Cred.setText(\"\" + t1Cred);\n txtt2Cred.setText(\"\" + t2Cred);\n }",
"protected void initialize() {\n \tRobot.driveTrain.arcade(MOVE_SPEED_PERCENT, Robot.driveTrain.gyroPReturn(direction));\n }",
"@Test\n public void loanWithFlatCahargesAndUpfrontAccrualAccountingEnabled() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n Integer flatDisbursement = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC, ChargesHelper.getLoanDisbursementJSON());\n addCharges(charges, flatDisbursement, \"100\", null);\n Integer flatSpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"100\", false));\n\n Integer flatInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"50\", false));\n addCharges(charges, flatInstallmentFee, \"50\", null);\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n Assertions.assertNotNull(collateralId);\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n Assertions.assertNotNull(clientCollateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanProductID = createLoanProduct(false, ACCRUAL_UPFRONT, assetAccount, incomeAccount, expenseAccount,\n overpaymentAccount);\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"12,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n verifyLoanRepaymentSchedule(loanSchedule);\n\n List<HashMap> loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatDisbursement, loanCharges, \"100\", \"100.00\", \"0.0\", \"0.0\");\n validateCharge(flatInstallmentFee, loanCharges, \"50\", \"200.00\", \"0.0\", \"0.0\");\n\n // check for disbursement fee\n HashMap disbursementDetail = loanSchedule.get(0);\n validateNumberForEqual(\"100.00\", String.valueOf(disbursementDetail.get(\"feeChargesDue\")));\n\n // check for charge at specified date and installment fee\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"50.00\", String.valueOf(firstInstallment.get(\"feeChargesDue\")));\n\n // check for installment fee\n HashMap secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"50.00\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"605.94\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"200.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 September 2011\", assetAccountInitialEntry);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 September 2011\",\n new JournalEntry(Float.parseFloat(\"605.94\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"200.00\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(flatSpecifiedDueDate), \"29 September 2011\", \"100\"));\n\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatDisbursement, loanCharges, \"100\", \"0.00\", \"100.0\", \"0.0\");\n validateCharge(flatSpecifiedDueDate, loanCharges, \"100\", \"100.00\", \"0.0\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"29 September 2011\",\n new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.DEBIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"29 September 2011\",\n new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"-------------Make repayment 1-----------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"3301.49\"), loanID);\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatDisbursement, loanCharges, \"100\", \"0.00\", \"100.0\", \"0.0\");\n validateCharge(flatSpecifiedDueDate, loanCharges, \"100\", \"0.00\", \"100.0\", \"0.0\");\n validateCharge(flatInstallmentFee, loanCharges, \"50\", \"150.00\", \"50.0\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(flatSpecifiedDueDate), \"29 October 2011\", \"100\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"150.00\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n LOG.info(\"----------- Waive installment charge for 2nd installment ---------\");\n LOAN_TRANSACTION_HELPER.waiveChargesForLoan(loanID, (Integer) getloanCharge(flatInstallmentFee, loanCharges).get(\"id\"),\n LoanTransactionHelper.getWaiveChargeJSON(String.valueOf(2)));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatInstallmentFee, loanCharges, \"50\", \"100.00\", \"50.0\", \"50.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"50.0\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"50.0\"), JournalEntry.TransactionType.DEBIT));\n\n LOG.info(\"----------Make repayment 2------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3251.49\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3251.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3251.49\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"--------------Waive interest---------------\");\n LOAN_TRANSACTION_HELPER.waiveInterest(\"20 December 2011\", String.valueOf(61.79), loanID);\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"60.59\", String.valueOf(thirdInstallment.get(\"interestOutstanding\")));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.DEBIT));\n\n Integer flatPenaltySpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"100\", true));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(flatPenaltySpecifiedDueDate), \"29 September 2011\", \"100\"));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatPenaltySpecifiedDueDate, loanCharges, \"100\", \"0.00\", \"100.0\", \"0.0\");\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"100\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n // checking the journal entry as applied penalty has been collected\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"----------Make repayment 3 advance------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3301.49\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.CREDIT));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(flatPenaltySpecifiedDueDate), \"10 January 2012\", \"100\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"100\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3239.68\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Pay applied penalty ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"100\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"100\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"100\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"0\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3139.68\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Make over payment for repayment 4 ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3220.60\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"3220.60\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3139.68\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForLiabilityAccount(overpaymentAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"80.92\"), JournalEntry.TransactionType.CREDIT));\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.getLoanDetail(REQUEST_SPEC, RESPONSE_SPEC, loanID, \"status\");\n LoanStatusChecker.verifyLoanAccountIsOverPaid(loanStatusHashMap);\n }",
"@Override\n\tprotected void initLateralWeightParams(final Space extendedSpace) throws CommandLineFormatException\n\t{\n\t\thppa = command.get(CNFTCommandLine.WA);\n\t\thpA = command.get(CNFTCommandLine.IA);\n\t\taddParameters(hppa,hpA);\n\t\taddParameters(command.get(CNFTCommandLine.LEARNING_RATE));\n\t}",
"public void beginNextRound() {\n\t\tsetBeginNextRound(true);\n\t}",
"private void init_all() \r\n\t{\r\n\t\tinit_draw_line();\r\n\t\tinit_free_hand_draw();\r\n\t}",
"@Override\n\tpublic void onInit(RptParams params) throws Exception {\n\t}",
"public void makeAccusation(Card card1, Card card2, Card card3)\n {\n //call client controller's makeAccusation method with the 3 cards\n //specified\n clientController.makeAccusation(new Solution(\n ((DestinationCard)card3).getDestination(), \n ((VehicleCard)card2).getVehicle(), \n ((SuspectCard)card1).getSuspect()));\n System.out.println(\"Accuse: \" + card1 + \" \" + card2 + \" \" + card3);\n accusationScreen.setVisible(false);\n }",
"public void panelActivate()\n {\n if (!yesRadio.isSelected())\n {\n parent.lockNextButton();\n }\n }",
"private void makeDeposit() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n // led.setLEDR(false);\n // led.setLEDB(false);\n if(lineState == lineGo.GO){\n isFinished = false;\n }\n else{\n isFinished = true;\n }\n }",
"@Test\n public void loanWithChargesOfTypeAmountPercentageAndPeriodicAccrualAccountingEnabled() throws InterruptedException {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n Integer percentageDisbursementCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanDisbursementJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\"));\n addCharges(charges, percentageDisbursementCharge, \"1\", null);\n\n Integer percentageSpecifiedDueDateCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", false));\n addCharges(charges, percentageSpecifiedDueDateCharge, \"1\", \"29 September 2011\");\n\n Integer percentageInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", false));\n addCharges(charges, percentageInstallmentFee, \"1\", \"29 September 2011\");\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanProductID = createLoanProduct(false, ACCRUAL_PERIODIC, assetAccount, incomeAccount, expenseAccount,\n overpaymentAccount);\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"12,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n verifyLoanRepaymentSchedule(loanSchedule);\n\n List<HashMap> loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n validateCharge(percentageSpecifiedDueDateCharge, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n\n // check for disbursement fee\n HashMap disbursementDetail = loanSchedule.get(0);\n validateNumberForEqual(\"120.00\", String.valueOf(disbursementDetail.get(\"feeChargesDue\")));\n\n // check for charge at specified date and installment fee\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"149.11\", String.valueOf(firstInstallment.get(\"feeChargesDue\")));\n\n // check for installment fee\n HashMap secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"29.70\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n GlobalConfigurationHelper.manageConfigurations(REQUEST_SPEC, RESPONSE_SPEC,\n GlobalConfigurationHelper.ENABLE_AUTOGENERATED_EXTERNAL_ID, true);\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n ArrayList<HashMap> loanTransactionDetails = LOAN_TRANSACTION_HELPER.getLoanTransactionDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n validateAccrualTransactionForDisbursementCharge(loanTransactionDetails);\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 September 2011\", assetAccountInitialEntry);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 September 2011\",\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"0.0\", \"120.00\", \"0.0\");\n\n LOG.info(\"-------------Make repayment 1-----------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"3300.60\"), loanID);\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"0.00\", \"120.00\", \"0.0\");\n validateCharge(percentageSpecifiedDueDateCharge, loanCharges, \"1\", \"0.00\", \"120.0\", \"0.0\");\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"90.89\", \"29.11\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentageSpecifiedDueDateCharge), \"29 October 2011\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"149.70\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n LOG.info(\"----------- Waive installment charge for 2nd installment ---------\");\n LOAN_TRANSACTION_HELPER.waiveChargesForLoan(loanID, (Integer) getloanCharge(percentageInstallmentFee, loanCharges).get(\"id\"),\n LoanTransactionHelper.getWaiveChargeJSON(String.valueOf(2)));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"61.19\", \"29.11\", \"29.70\");\n\n /*\n * JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount( assetAccount, \"20 September 2011\", new\n * JournalEntry(Float.parseFloat(\"29.7\"), JournalEntry.TransactionType.CREDIT));\n * JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount (expenseAccount, \"20 September 2011\", new\n * JournalEntry(Float.parseFloat(\"29.7\"), JournalEntry.TransactionType.DEBIT));\n */\n\n final String jobName = \"Add Accrual Transactions\";\n\n SCHEDULER_JOB_HELPER.executeAndAwaitJob(jobName);\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n checkAccrualTransactions(loanSchedule, loanID);\n\n LOG.info(\"----------Make repayment 2------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3271.49\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3271.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3271.49\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"--------------Waive interest---------------\");\n LOAN_TRANSACTION_HELPER.waiveInterest(\"20 December 2011\", String.valueOf(61.79), loanID);\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"60.59\", String.valueOf(thirdInstallment.get(\"interestOutstanding\")));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.DEBIT));\n\n Integer percentagePenaltySpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", true));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentagePenaltySpecifiedDueDate), \"29 September 2011\", \"1\"));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentagePenaltySpecifiedDueDate, loanCharges, \"1\", \"0.00\", \"120.0\", \"0.0\");\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"120\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n // checking the journal entry as applied penalty has been collected\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"----------Make repayment 3 advance------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3301.78\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3301.78\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3301.78\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentagePenaltySpecifiedDueDate), \"10 January 2012\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"120\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3240.58\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Pay applied penalty ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"120\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"0\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3120.58\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Make repayment 4 ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3120.58\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"3120.58\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3120.58\"), JournalEntry.TransactionType.CREDIT));\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.getLoanDetail(REQUEST_SPEC, RESPONSE_SPEC, loanID, \"status\");\n LoanStatusChecker.verifyLoanAccountIsClosed(loanStatusHashMap);\n }",
"@Override\n public void withdraw(double amount) //Overridden method\n {\n elapsedPeriods++;\n \n if(elapsedPeriods<maturityPeriods)\n {\n double fees = getBalance()*(interestPenaltyRate/100)*elapsedPeriods;\n super.withdraw(fees);//withdraw the penalty\n super.withdraw(amount);//withdraw the actual amount\n \n }\n \n }",
"protected void initialize() {\n done = false;\n\n\n prevAutoShiftState = driveTrain.getAutoShift();\n driveTrain.setAutoShift(false);\n driveTrain.setCurrentGear(DriveTrain.DriveGear.High);\n// double p = SmartDashboard.getNumber(\"drive p\", TTA_P);\n// double i = SmartDashboard.getNumber(\"drive i\", TTA_I);\n// double d = SmartDashboard.getNumber(\"drive d\", TTA_D);\n// double rate = SmartDashboard.getNumber(\"rate\", TTA_RATE);\n// double tolerance = TTA_TOLERANCE; // SmartDashboard.getNumber(\"tolerance\", 2);\n// double min = SmartDashboard.getNumber(\"min\", TTA_MIN);\n// double max = SmartDashboard.getNumber(\"max\", TTA_MAX);\n// double iCap = SmartDashboard.getNumber(\"iCap\", TTA_I_CAP);\n// pid = new PID(p, i, d, min, max, rate, tolerance, iCap);\n pid = new PID(TTA_P, TTA_I, TTA_D, TTA_MIN, TTA_MAX, TTA_RATE, TTA_TOLERANCE, TTA_I_CAP);\n\n driveTrain.setSpeedsPercent(0, 0);\n driveTrain.setCurrentControlMode(ControlMode.Velocity);\n }",
"public void makePayment()\n\t{\n\t\tif(this.inProgress())\n\t\t{\n\t\t\tthis.total += this.getPaymentDue();\n\t\t\tthis.currentTicket.setPaymentTime(this.clock.getTime());\n\t\t}\t\t\n\t}",
"public PayAccountExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public PayAccountExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public void init() {\n//\t\tint anglesToEncTicks = (int) ((90 - currentAngle) * encoderTicksPerRev);\n//\t\tarmMotor.setEncPosition(anglesToEncTicks);\n\t\twhile (armMotor.isFwdLimitSwitchClosed() != true) {\n\t\t\tarmMotor.set(.2);\n\t\t}\n\t\tSystem.out.println(\"Calibrated!\");\n\t\tarmMotor.setEncPosition(0);\n\t}",
"private void initiateEarnBlueEssenceEnter(JFrame frame, JTextField account, JTextField amount) {\r\n JButton enter = new JButton(\"Confirm\");\r\n new Confirm(enter);\r\n// enter.setPreferredSize(new Dimension(100, 100));\r\n// enter.setFont(new Font(\"Arial\", Font.PLAIN, 30));\r\n enter.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent actionEvent) {\r\n try {\r\n int designated = Integer.parseInt(amount.getText());\r\n selectLeagueOfLegendsAccount(account.getText()).earnInGame(designated);\r\n displayMessage(printBlueEssenceBalance(selectLeagueOfLegendsAccount(account.getText())));\r\n } catch (NegativeValue e) {\r\n displayMessage(\"Reload failed, invalid input.\");\r\n }\r\n frame.setVisible(false);\r\n }\r\n });\r\n frame.add(enter);\r\n }",
"@Override\n\tpublic void teleopPeriodic() {\n\n\t\tif (!x_aligning && !y_aligning) {\n\t\t\tm_drive.arcadeDrive(Joy.getY(), Joy.getZ() * -1);\n\t\t}\n\n\t\t// Show status of align modes\n\n\t\t// read values periodically\n\t\tarea = ta.getDouble(0.0);\n\n\t\t// post to smart dashboard periodically\n\t\tSmartDashboard.putNumber(\"LimelightX\", tx.getDouble(0.0));\n\t\tSmartDashboard.putNumber(\"LimelightY\", ty.getDouble(0.0));\n\t\tSmartDashboard.putNumber(\"LimelightArea\", area);\n\n\t\tif (Joy.getRawButtonPressed(2)) {\n\t\t\tdistanceToTarget = getDistance();\n\t\t\tSmartDashboard.putNumber(\"Estimated Distance\", distanceToTarget);\n\n\t\t}\n\t\tif (Joy.getRawButtonPressed(5)) {\n\t\t\talignX();\n\t\t}\n\n\t\tif (Joy.getRawButtonPressed(6)) {\n\t\t\talignY();\n\t\t}\n\n\t\tif (Joy.getTriggerPressed()) {\n\t\t\t/*\n\t\t\t * alignDepth = 0; while ( ((Math.abs(tx.getDouble(0.0)) > 1) ||\n\t\t\t * (Math.abs(ty.getDouble(0.0)) > 1)) || (tx.getDouble(0.0) == 0 &\n\t\t\t * ty.getDouble(0.0) == 0) || (alignDepth < 3)) { alignX(); alignY(); alignDepth\n\t\t\t * ++; } System.out.println(\"FULL ALIGN\");\n\t\t\t */\n\n\t\t\tSystem.out.println(lidarTest());\n\t\t}\n\n\t}",
"@Override\r\n\tpublic void paidBehavior() {\n\t\tSystem.out.println(\"You paid using your Vias card\");\r\n\t\t\r\n\t}",
"public static void Ln1() {\r\n EBAS.L1_Timestamp.setText(GtDates.ldate);\r\n\r\n EBAS.L1_First_Sku.setEnabled(false);\r\n EBAS.L1_Qty_Out.setEnabled(false);\r\n EBAS.L1_First_Desc.setEnabled(false);\r\n EBAS.L1_Orig_Sku.setEnabled(false);\r\n EBAS.L1_Orig_Desc.setEnabled(false);\r\n EBAS.L1_Orig_Attr.setEnabled(false);\r\n EBAS.L1_Orig_Size.setEnabled(false);\r\n EBAS.L1_Orig_Retail.setEnabled(false);\r\n EBAS.L1_Manuf_Inspec.setEnabled(false);\r\n EBAS.L1_New_Used.setEnabled(false);\r\n EBAS.L1_Reason_DropDown.setEnabled(false);\r\n EBAS.L1_Desc_Damage.setEnabled(false);\r\n EBAS.L1_Cust_Satisf_ChkBox.setEnabled(false);\r\n EBAS.L1_Warranty_ChkBox.setEnabled(false);\r\n \r\n try {\r\n upDB();\r\n } catch (ClassNotFoundException | SQLException ex) {\r\n Logger.getLogger(EBAS.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public void setAdvanceTravelPayment(TravelPayment advanceTravelPayment) {\n this.advanceTravelPayment = advanceTravelPayment;\n }",
"public saccoAccount (int account_num, double initial_balance) \r\n {\r\n\r\n account = account_num;\r\n balance = initial_balance;\r\n\r\n }",
"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/* */ }",
"private boolean allocatePaySelection() {\n /**\n *\n * \t\tModificación para diferenciar\n *\tcobros/pagos en Consulta de Asignación\n *\n */\n MAllocationHdr alloc;\n\n if (isReceipt()) {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"IsReceipt\") + \": \" + getDocumentNo() + \" [n]\", get_TrxName());\n } else {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"C_Payment_ID\") + \": \" + getDocumentNo() + \" [n]\", get_TrxName());\n }\n alloc.setAD_Org_ID(getAD_Org_ID());\n\n String sql = \"SELECT psc.C_BPartner_ID, psl.C_Invoice_ID, psl.IsSOTrx, \" //\t1..3\n + \" psl.PayAmt, psl.DiscountAmt, psl.DifferenceAmt, psl.OpenAmt \"\n + \"FROM C_PaySelectionLine psl\"\n + \" INNER JOIN C_PaySelectionCheck psc ON (psl.C_PaySelectionCheck_ID=psc.C_PaySelectionCheck_ID) \"\n + \"WHERE psc.C_Payment_ID=?\";\n PreparedStatement pstmt = null;\n try {\n pstmt = DB.prepareStatement(sql, get_TrxName());\n pstmt.setInt(1, getC_Payment_ID());\n ResultSet rs = pstmt.executeQuery();\n while (rs.next()) {\n int C_BPartner_ID = rs.getInt(1);\n int C_Invoice_ID = rs.getInt(2);\n if (C_BPartner_ID == 0 && C_Invoice_ID == 0) {\n continue;\n }\n boolean isSOTrx = \"Y\".equals(rs.getString(3));\n BigDecimal PayAmt = rs.getBigDecimal(4);\n BigDecimal DiscountAmt = rs.getBigDecimal(5);\n BigDecimal WriteOffAmt = rs.getBigDecimal(6);\n BigDecimal OpenAmt = rs.getBigDecimal(7);\n BigDecimal OverUnderAmt = OpenAmt.subtract(PayAmt).subtract(DiscountAmt).subtract(WriteOffAmt);\n //\n if (alloc.get_ID() == 0 && !alloc.save(get_TrxName())) {\n log.log(Level.SEVERE, \"Could not create Allocation Hdr\");\n rs.close();\n pstmt.close();\n return false;\n }\n MAllocationLine aLine = null;\n if (isSOTrx) {\n aLine = new MAllocationLine(alloc, PayAmt,\n DiscountAmt, WriteOffAmt, OverUnderAmt);\n } else {\n aLine = new MAllocationLine(alloc, PayAmt.negate(),\n DiscountAmt.negate(), WriteOffAmt.negate(), OverUnderAmt.negate());\n }\n aLine.setDocInfo(C_BPartner_ID, 0, C_Invoice_ID);\n aLine.setC_Payment_ID(getC_Payment_ID());\n if (!aLine.save(get_TrxName())) {\n log.log(Level.SEVERE, \"Could not create Allocation Line\");\n }\n }\n rs.close();\n pstmt.close();\n pstmt = null;\n } catch (Exception e) {\n log.log(Level.SEVERE, \"allocatePaySelection\", e);\n }\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n pstmt = null;\n } catch (Exception e) {\n pstmt = null;\n }\n\n //\tShould start WF\n boolean ok = true;\n if (alloc.get_ID() == 0) {\n log.fine(\"No Allocation created - C_Payment_ID=\"\n + getC_Payment_ID());\n ok = false;\n } else {\n alloc.processIt(DocAction.ACTION_Complete);\n ok = alloc.save(get_TrxName());\n m_processMsg = \"@C_AllocationHdr_ID@: \" + alloc.getDocumentNo();\n }\n return ok;\n }",
"public CheckingAccount()\n {\n withdrawals = 0;\n deposits = 0;\n }",
"private void initBeginOfTurn()\n\t{\n\t\tfor(Action action : this.getCurrentPlayer().getPersonalityCard().getActions())\n\t\t{\n\t\t\taction.execute(this);\n\t\t}\n\t\t\n\t\tcanPlayPlayerCard = true;\n\t\tthis.getCurrentPlayer().getDataInput().printMessage(this.getEntireGameStatus());\n\t\tthis.getCurrentPlayer().getDataInput().printMessage(this.getCurrentPlayerGameStatus());\n\t\tthis.showSaveGame = true;\n\t\t\n\t\tfor(Card card : this.getCurrentPlayer().getCityAreaCardDeck())\n\t\t{\n\t\t\tcard.setActiveState(true);\n\t\t}\n\t}",
"public void accomplishGoal() {\r\n isAccomplished = true;\r\n }",
"private void correctParameter(){\n \tint ifObtuse;\r\n \tif(initialState.v0_direction>90)ifObtuse=1;\r\n \telse ifObtuse=0;\r\n \tdouble v0=initialState.v0_val;\r\n \tdouble r0=initialState.r0_val;\r\n \tdouble sintheta2=Math.sin(Math.toRadians(initialState.v0_direction))*Math.sin(Math.toRadians(initialState.v0_direction));\r\n \tdouble eccentricityMG=Math.sqrt(center.massG*center.massG-2*center.massG*v0*v0*r0*sintheta2+v0*v0*v0*v0*r0*r0*sintheta2);\r\n \tdouble cosmiu0=-(v0*v0*r0*sintheta2-center.massG)/eccentricityMG;\r\n \tpe=(v0*v0*r0*r0*sintheta2)/(center.massG+eccentricityMG);\r\n \tap=(v0*v0*r0*r0*sintheta2)/(center.massG-eccentricityMG);\r\n \tsemimajorAxis=(ap+pe)/2;\r\n \tsemiminorAxis=Math.sqrt(ap*pe);\r\n \tsemifocallength=(ap-pe)/2;\r\n \tSystem.out.println(semimajorAxis+\",\"+semiminorAxis+\",\"+semifocallength);\r\n \teccentricity=eccentricityMG/center.massG;\r\n \tperiod=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));\r\n \trotate=(360-Math.toDegrees(Math.acos(cosmiu0)));\r\n \torbitCalculator.angleDelta=(Math.toDegrees(Math.acos(cosmiu0))+360);\r\n \trotate=rotate+initialState.r0_direction;\r\n \t\r\n \tif(ifObtuse==1) {\r\n \t\tdouble rbuf=rotate;\r\n \t\trotate=initialState.r0_direction-rotate;\r\n \t\torbitCalculator.angleDelta+=(2*rbuf-initialState.r0_direction);\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate>360)rotate=rotate-360;\r\n \t\telse break;\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate<0)rotate=rotate+360;\r\n \t\telse break;\r\n \t}\r\n \t/*\r\n \tpe=initialState.r0_val;\r\n rotate=initialState.r0_direction;\r\n ap=(initialState.v0_val*initialState.v0_val*pe*pe)/(2*center.massG-initialState.v0_val*initialState.v0_val*pe);\r\n peSpeed=initialState.v0_val;\r\n apSpeed=(2*center.massG-initialState.v0_val*initialState.v0_val*pe)/(initialState.v0_val*pe);\r\n if(ap<pe){\r\n double lf=ap;ap=pe;pe=lf;\r\n lf=apSpeed;apSpeed=peSpeed;peSpeed=lf;\r\n }\r\n semimajorAxis=(ap+pe)/2;\r\n semifocallength=(ap-pe)/2;\r\n semiminorAxis=Math.sqrt(ap*pe);\r\n eccentricity=semifocallength/semimajorAxis;\r\n period=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));*/\r\n }",
"@Override protected void turnInit(double headingDegrees, int i) {\r\n\r\n // add any turn initialization here\r\n\r\n }",
"public void setInitilaCash(int noOfBills) throws java.lang.Exception;",
"public void activate( float duration, float beginAmp, float endingAmp )\n\t{\n\t\tbegAmp = beginAmp;\n\t\tendAmp = endingAmp;\n\t\tlineTime = duration;\n\t\tactivate();\n\t}",
"public void term()\n \t{\n \t\tTechEditWizardData data = wizard.getTechEditData();\n \t\tdata.setGateLength(TextUtils.atof(length.getText()));\n\t\tdata.setGateWidth(TextUtils.atof(width.getText()));\n \t\tdata.setGateContactSpacing(TextUtils.atof(contactSpacing.getText()));\n \t\tdata.setGateSpacing(TextUtils.atof(spacing.getText()));\n \t}",
"@Test\n public void loanWithFlatChargesAndPeriodicAccrualAccountingEnabled() throws InterruptedException {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n Integer flatDisbursement = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC, ChargesHelper.getLoanDisbursementJSON());\n addCharges(charges, flatDisbursement, \"100\", null);\n Integer flatSpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"100\", false));\n addCharges(charges, flatSpecifiedDueDate, \"100\", \"29 September 2011\");\n Integer flatInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"50\", false));\n addCharges(charges, flatInstallmentFee, \"50\", null);\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanProductID = createLoanProduct(false, ACCRUAL_PERIODIC, assetAccount, incomeAccount, expenseAccount,\n overpaymentAccount);\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"12,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n verifyLoanRepaymentSchedule(loanSchedule);\n\n List<HashMap> loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatDisbursement, loanCharges, \"100\", \"100.00\", \"0.0\", \"0.0\");\n validateCharge(flatSpecifiedDueDate, loanCharges, \"100\", \"100.00\", \"0.0\", \"0.0\");\n validateCharge(flatInstallmentFee, loanCharges, \"50\", \"200.00\", \"0.0\", \"0.0\");\n\n // check for disbursement fee\n HashMap disbursementDetail = loanSchedule.get(0);\n validateNumberForEqual(\"100.00\", String.valueOf(disbursementDetail.get(\"feeChargesDue\")));\n\n // check for charge at specified date and installment fee\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"150.00\", String.valueOf(firstInstallment.get(\"feeChargesDue\")));\n\n // check for installment fee\n HashMap secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"50.00\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 September 2011\", assetAccountInitialEntry);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 September 2011\",\n new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.CREDIT));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatDisbursement, loanCharges, \"100\", \"0.00\", \"100.0\", \"0.0\");\n\n LOG.info(\"-------------Make repayment 1-----------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"3301.49\"), loanID);\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatDisbursement, loanCharges, \"100\", \"0.00\", \"100.0\", \"0.0\");\n validateCharge(flatSpecifiedDueDate, loanCharges, \"100\", \"0.00\", \"100.0\", \"0.0\");\n validateCharge(flatInstallmentFee, loanCharges, \"50\", \"150.00\", \"50.0\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(flatSpecifiedDueDate), \"29 October 2011\", \"100\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"150.00\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n LOG.info(\"----------- Waive installment charge for 2nd installment ---------\");\n LOAN_TRANSACTION_HELPER.waiveChargesForLoan(loanID, (Integer) getloanCharge(flatInstallmentFee, loanCharges).get(\"id\"),\n LoanTransactionHelper.getWaiveChargeJSON(String.valueOf(2)));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatInstallmentFee, loanCharges, \"50\", \"100.00\", \"50.0\", \"50.0\");\n\n /*\n * JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount( assetAccount, \"20 September 2011\", new\n * JournalEntry(Float.parseFloat(\"50.0\"), JournalEntry.TransactionType.CREDIT));\n * JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount (expenseAccount, \"20 September 2011\", new\n * JournalEntry(Float.parseFloat(\"50.0\"), JournalEntry.TransactionType.DEBIT));\n */\n final String jobName = \"Add Accrual Transactions\";\n\n SCHEDULER_JOB_HELPER.executeAndAwaitJob(jobName);\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n checkAccrualTransactions(loanSchedule, loanID);\n\n LOG.info(\"----------Make repayment 2------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3251.49\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3251.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3251.49\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"--------------Waive interest---------------\");\n LOAN_TRANSACTION_HELPER.waiveInterest(\"20 December 2011\", String.valueOf(61.79), loanID);\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"60.59\", String.valueOf(thirdInstallment.get(\"interestOutstanding\")));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.DEBIT));\n\n Integer flatPenaltySpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"100\", true));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(flatPenaltySpecifiedDueDate), \"29 September 2011\", \"100\"));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatPenaltySpecifiedDueDate, loanCharges, \"100\", \"0.00\", \"100.0\", \"0.0\");\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"100\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n // checking the journal entry as applied penalty has been collected\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"----------Make repayment 3 advance------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3301.49\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(flatPenaltySpecifiedDueDate), \"10 January 2012\", \"100\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"100\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3239.68\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Pay applied penalty ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"100\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"100\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"100\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"0\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3139.68\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Make repayment 4 ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3139.68\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"3139.68\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3139.68\"), JournalEntry.TransactionType.CREDIT));\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.getLoanDetail(REQUEST_SPEC, RESPONSE_SPEC, loanID, \"status\");\n LoanStatusChecker.verifyLoanAccountIsClosed(loanStatusHashMap);\n }",
"Credit(int accountNumber, double creditLine, double outstandingBalance, double interestRate){\n super(accountNumber, outstandingBalance);\n this.creditLine = creditLine;\n this.interestRate = interestRate;\n }",
"private boolean allocateInvoice() {\n //\tcalculate actual allocation\n BigDecimal allocationAmt = getPayAmt();\t\t\t//\tunderpayment\n\n //\t\tDANIEL -- 2do.\n float pay = getPayAmt().floatValue();\n //\n\n if (getOverUnderAmt().signum() < 0 && getPayAmt().signum() > 0) {\n allocationAmt = allocationAmt.add(getOverUnderAmt());\t//\toverpayment (negative)\n }\n /**\n *\n * \t\tModificación para diferenciar\n *\tcobros/pagos en Consulta de Asignación\n *\n */\n MAllocationHdr alloc;\n\n if (isReceipt()) {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"IsReceipt\") + \": \" + getDocumentNo() + \" [1]\", get_TrxName());\n } else {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"C_Payment_ID\") + \": \" + getDocumentNo() + \" [1]\", get_TrxName());\n }\n\n alloc.setAD_Org_ID(getAD_Org_ID());\n if (!alloc.save()) {\n log.log(Level.SEVERE, \"Could not create Allocation Hdr\");\n return false;\n }\n MAllocationLine aLine = null;\n if (isReceipt()) {\n aLine = new MAllocationLine(alloc, allocationAmt,\n getDiscountAmt(), getWriteOffAmt(), getOverUnderAmt());\n } else {\n aLine = new MAllocationLine(alloc, allocationAmt.negate(),\n getDiscountAmt().negate(), getWriteOffAmt().negate(), getOverUnderAmt().negate());\n }\n aLine.setDocInfo(getC_BPartner_ID(), 0, getC_Invoice_ID());\n aLine.setC_Payment_ID(getC_Payment_ID());\n if (!aLine.save(get_TrxName())) {\n log.log(Level.SEVERE, \"Could not create Allocation Line\");\n return false;\n }\n //\tShould start WF\n alloc.processIt(DocAction.ACTION_Complete);\n alloc.save(get_TrxName());\n m_processMsg = \"@C_AllocationHdr_ID@: \" + alloc.getDocumentNo();\n\n //\tGet Project from Invoice\n int C_Project_ID = DB.getSQLValue(get_TrxName(),\n \"SELECT MAX(C_Project_ID) FROM C_Invoice WHERE C_Invoice_ID=?\", getC_Invoice_ID());\n if (C_Project_ID > 0 && getC_Project_ID() == 0) {\n setC_Project_ID(C_Project_ID);\n } else if (C_Project_ID > 0 && getC_Project_ID() > 0 && C_Project_ID != getC_Project_ID()) {\n log.warning(\"Invoice C_Project_ID=\" + C_Project_ID\n + \" <> Payment C_Project_ID=\" + getC_Project_ID());\n }\n return true;\n }",
"protected void initialize() {\n \tRobot.m_elevator.setSetpoint(setpoint);\n \tRobot.m_elevator.setAbsoluteTolerance(tolerance);\n \tRobot.m_elevator.setPID(.3, 0, 0);\n \tRobot.m_elevator.enable();\n }",
"public void start() {\n synchronized (car) {\n LOG.fine(\"Validating APPLY Record\");\n try {\n dir = cas.createChannel(epicsTop.buildEpicsChannelName(name + \".DIR\"), Dir.CLEAR);\n dir.registerListener(new DirListener());\n val = cas.createChannel(epicsTop.buildEpicsChannelName(name + \".VAL\"), 0);\n mess = cas.createChannel(epicsTop.buildEpicsChannelName(name + \".MESS\"), \"\");\n omss = cas.createChannel(epicsTop.buildEpicsChannelName(name + \".OMSS\"), \"\");\n clid = cas.createChannel(epicsTop.buildEpicsChannelName(name + \".CLID\"), 0);\n\n car.start();\n for (CadRecord cad : cads) {\n cad.start();\n cad.getCar().registerListener(new CarListener());\n }\n } catch (CAException e) {\n LOG.log(Level.SEVERE, e.getMessage(), e);\n }\n }\n }",
"public void settle() {\n\t\tif (status.equals(FacturaStatus.ABONADA)) {\n\t\t\tthrow new IllegalStateException(\"La factura ya está abonada.\");\n\t\t} else if (this.sumarCargos() != importe) {\n\t\t\tthrow new IllegalStateException(\"Los pagos hehcos no cubren el total del importe de la factura.\");\n\t\t} else {\n\t\t\tthis.status = FacturaStatus.ABONADA;\n\t\t}\n\t}",
"private void ThenPaymentIsProcessed() throws Exception {\n assert true;\n }",
"private void driveForwardEnc()\r\n\t{\r\n\t\t//drive.setPos(0, 0, Config.Auto.encDriveForwardDistance, Config.Auto.encDriveForwardDistance);\r\n\t}",
"public void startRide() {\n\t\tthis.findNearestDriver();\n\t\tint i = 0;\n\t\tthis.currentDriver = this.drivers.get(i);\n\t\twhile(currentDriver.getStatus() != Status.AVAILABLE) {\n\t\t\ti++;\n\t\t\tthis.currentDriver = this.drivers.get(i);\n\t\t}\n\t\tdouble fair = this.getFair(this.currentDriver.getDistanceFromPassenger());\n\t\tif(this.validateFair(fair)) {\n\t\t\tthis.currentDriver.setStatus(Status.ENROUTE);\n\t\t\tthis.currentDriver.setStatus(Status.ARRIVED);\n\t\t\tthis.startTransit();\n\t\t}\n\t}",
"public void teleopPeriodic() {\n \t//driveTrain.setInputSpeed(xbox.getAxisLeftY(), xbox.getAxisRightY());\n \t\n \tdriveTrain.print();\n \t\n \t// funcao PID\n \tif (xbox.getButtonX()) {\n\t\t\tbotaoapertado = true;\n\t\t} else if (xbox.getButtonY()) {\n\t\t\tbotaoapertado = false;\n\t\t\tdriveTrain.start();\n\t\t\tdriveTrain.setSetPoint(0, 0);\n\t\t}\n \tif (botaoapertado) {\n \t\tdriveTrain.setSetPoint(100, 100);\n\t\t}\n \t\n }",
"public SavingsAccount(double rate) //setting interest rate with constructor\r\n { \r\n interestRate = rate;\r\n }",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZCNEW\", \"Y\"); // Generate new card?\n\t\ttransaction.setFieldValue(\"GZCMOD\", \"A\"); // Mode - this must be 'A' when adding\n\t\ttransaction.setFieldValue(\"GZCNM1\", \"TEST AUTO\"); // Card name 1\n\t}",
"public CheckingAccount (double openingBalance) {\n\t\t//super(openingBalance; INT_RATE);\n\t\tsuper(openingBalance);\n\t}"
]
| [
"0.781898",
"0.6862935",
"0.652464",
"0.6391636",
"0.60117346",
"0.5909604",
"0.5834673",
"0.58025575",
"0.5798105",
"0.5707383",
"0.5589243",
"0.5548258",
"0.5505135",
"0.5370642",
"0.53678304",
"0.53111416",
"0.52767074",
"0.5274189",
"0.5214618",
"0.52093357",
"0.51786387",
"0.517328",
"0.5172661",
"0.51554537",
"0.5153035",
"0.51509815",
"0.51245826",
"0.5097294",
"0.5069095",
"0.5061372",
"0.50539565",
"0.504176",
"0.5034923",
"0.5023537",
"0.49775735",
"0.4972452",
"0.4972309",
"0.49584436",
"0.4950472",
"0.49477792",
"0.49465713",
"0.49434263",
"0.49421123",
"0.49404475",
"0.49331886",
"0.4931573",
"0.4925326",
"0.49243695",
"0.49071953",
"0.49057192",
"0.48993528",
"0.4893136",
"0.48896664",
"0.48895085",
"0.48842233",
"0.48832542",
"0.48827916",
"0.4864763",
"0.48645842",
"0.48636597",
"0.48625463",
"0.4855538",
"0.48546296",
"0.48511064",
"0.48504022",
"0.48482192",
"0.48469874",
"0.4846097",
"0.4843593",
"0.4843593",
"0.4839079",
"0.48333353",
"0.48293775",
"0.48277336",
"0.48258796",
"0.4823788",
"0.48230213",
"0.48214433",
"0.48188096",
"0.48096615",
"0.48093823",
"0.480776",
"0.4802873",
"0.4802184",
"0.47961873",
"0.47935843",
"0.47932243",
"0.478749",
"0.47852993",
"0.47845647",
"0.4783548",
"0.47796977",
"0.47772187",
"0.47758892",
"0.47739378",
"0.47702307",
"0.47658205",
"0.4765713",
"0.47647",
"0.4760971"
]
| 0.67651725 | 2 |
Adds a new emergency contact line | public void addEmergencyContactLine(TravelerDetailEmergencyContact line) {
if (!ObjectUtils.isNull(getTraveler())) {
line.setFinancialDocumentLineNumber(getTraveler().getEmergencyContacts().size() + 1);
line.setDocumentNumber(this.documentNumber);
line.setTravelerDetailId(getTraveler().getId());
getTraveler().getEmergencyContacts().add(line);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addContact() throws IOException {\n\t\t\n\t\tContact contact = Contact.getContact();\n\t\twhile (checkPhone(contact.getPhone()) != -1) {\n\t\t\tSystem.out.println(\"Phone already exits. Please input again!\");\n\t\t\tcontact.setPhone(getString(\"phone\"));\n\t\t}\n\t\tlist.add(contact);\n\t\tSystem.out.println(\"---Added\");\n\t}",
"public void add() {\n\t\ttry (RandomAccessFile raf = new RandomAccessFile(\"Address.dat\", \"rw\")) // Create RandomAccessFile object\n\t\t{\n\t\t\traf.seek(raf.length()); // find index in raf file\n\t\t\t // # 0 -> start from 0\n\t\t\t // # 1 -> start from 93 (32 + 32 + 20 + 2 + 5 + '\\n')\n\t\t\t // # 2 -> start from 186 (32 + 32 + 20 + 2 + 5 + '\\n') * 2\n\t\t\t // # 3 -> start from 279 (32 + 32 + 20 + 2 + 5 + '\\n') * 3\n\t\t \twrite(raf); // store the contact information at the above position\n\t\t}\n\t\tcatch (FileNotFoundException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IndexOutOfBoundsException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public void addContact(String tel, String corr){\n\t\n\t\tif(!emergencia_esta_Ocupado[0]){\n\t\t\taddView(0,tel,corr);\n\t\t}else if(!emergencia_esta_Ocupado[1]){\n\t\t\taddView(1,tel,corr);\n\t\t}\n\t}",
"org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine addNewExternalOrderLine();",
"public void addContact() {\n\t\tif (contactCounter == contactList.length) {\n\t\t\tSystem.err.println(\"Maximum contacts reached. \"\n\t\t\t\t\t\t\t\t+ \"No more contact can be added\");\n\t\treturn;\n\t\t}\n\t\t\n\t\treadContactInfo();\t\n\t}",
"void getEmergencyContact();",
"public void addContact() \n\t{\n\t\tSystem.out.printf(\"%n--[ Add Contact ]--%n\");\n\t\tScanner s = new Scanner(System.in);\n\t\tSystem.out.printf(\"%nFirst Name: \");\n\t\tString firstName = s.next();\n\t\tSystem.out.printf(\"%nLast Name: \");\n\t\tString lastName = s.next();\n\t\tSystem.out.printf(\"%nPhone Number: \");\n\t\tString phoneNumber = s.next();\n\t\tSystem.out.printf(\"%nEmail Address: \");\n\t\tString emailAddress = s.next();\n\t\tSystem.out.printf(\"%nCompany: \");\n\t\tString company = s.next();\n\t\tBusinessContact b = new BusinessContact(firstName, lastName,\n\t\t\t\tphoneNumber, emailAddress, company);\n\t\tcontacts.add(b);\n\t}",
"public void addContact() {\n Contacts contacts = new Contacts();\n System.out.println(\"Enter first name\");\n contacts.setFirstName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter last name\");\n contacts.setLastName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter address\");\n contacts.setAddress(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter city\");\n contacts.setCity(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter state\");\n contacts.setState(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter email\");\n contacts.setEmail(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter zip\");\n contacts.setZip(scannerForAddressBook.scannerProvider().nextInt());\n System.out.println(\"Enter phone number\");\n contacts.setPhoneNumber(scannerForAddressBook.scannerProvider().nextLine());\n contactList.add(contacts);\n }",
"void addContact(String name, String number);",
"void addContact(String name,String number);",
"public void addContactItem(Contact cItem) {\n if (!hasContact(cItem)) {\n return;\n }\n // Update visual list\n contactChanged(cItem, true);\n }",
"@Override\n\tpublic String addContact(Contact contact) {\n\t\treturn null;\n\t}",
"public void addContact(String name, String number) {\n\n\t\ttry{\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(\"./src/data/contactInfo.text\", true));\n\t\t\twriter.write(name);\n\t\t\twriter.write(\" | \");\n\t\t\twriter.write(number);\n\t\t\twriter.write(\" |\");\n\t\t\twriter.newLine();\n\t\t\twriter.close();\n\t\t}catch (IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void add(CelPhone phone) {\n\t\t\n\t}",
"public void addAddress(String name,String phone,String email,String company,String lover,String child1,String child2){\n\t\t//Refresh the address book\n\t\tthis.loadAddresses();\n\t\t\n\t\tAddress address=null;\n\t\tfor(Iterator<Address> iter=addresses.iterator();iter.hasNext();){\n\t\t\tAddress temp=iter.next();\n\t\t\tif(temp.getName().trim().equals(name.trim())){\n\t\t\t\t//Found the existed address!\n\t\t\t\taddress=temp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (address == null) {\n\t\t\t//Create new address\n\t\t\taddress = new Address(new Date(), name, phone, email, company, lover, child1, child2);\n\t\t\taddresses.add(address);\n\n\t\t\t// Save to database\n\t\t\ttry {\n\t\t\t\torg.hibernate.Session session = sessionFactory.getCurrentSession();\n\t\t\t\tsession.beginTransaction();\n\t\t\t\tsession.save(address);\n\t\t\t\tsession.getTransaction().commit();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Can't save the message to database.\" + e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\t//Update the address\n\t\t\taddress.setPhone(phone);\n\t\t\taddress.setEmail(email);\n\t\t\taddress.setCompany(company);\n\t\t\taddress.setLover(lover);\n\t\t\taddress.setChild1(child1);\n\t\t\taddress.setChild2(child2);\n\t\t\tthis.updateAddress(address);\n\t\t}\n\t}",
"public void processAddLine() {\n AppTextColorEnterDialogSingleton dialog = AppTextColorEnterDialogSingleton.getSingleton();\n\n // POP UP THE DIALOG\n dialog.show(\"Add Metro Line\", \"Enter Name and Color of the Metro Line:\", Color.web(\"#cccc33\"));\n\n // IF THE USER SAID YES\n if (dialog.getSelection()) {\n // CHANGE THE CURSOR\n Scene scene = app.getGUI().getPrimaryScene();\n scene.setCursor(Cursor.CROSSHAIR);\n \n // CHANGE THE STATE\n dataManager.setState(mmmState.ADD_LINE_MODE);\n }\n }",
"public void addContacts() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void addContact(String on_cloudkibo, String lname, String phone, String uname, String uid, String shareddetails,\r\n \t\tString status) {\r\n\r\n\r\n ContentValues values = new ContentValues();\r\n //values.put(Contacts.CONTACT_FIRSTNAME, fname); // FirstName\r\n //values.put(Contacts.CONTACT_LASTNAME, lname); // LastName\r\n values.put(Contacts.CONTACT_PHONE, phone); // Phone\r\n values.put(\"display_name\", uname); // UserName\r\n values.put(Contacts.CONTACT_UID, uid); // Uid\r\n values.put(Contacts.CONTACT_STATUS, status); // Status\r\n values.put(Contacts.SHARED_DETAILS, shareddetails); // Created At\r\n values.put(\"on_cloudkibo\", on_cloudkibo);\r\n\r\n // Inserting Row\r\n try {\r\n// if(getContactName(phone) != null){\r\n// SQLiteDatabase db = this.getWritableDatabase();\r\n// db.update(Contacts.TABLE_CONTACTS,values,\"phone='\"+phone+\"'\",null);\r\n// db.close();\r\n// }else{\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n db.replace(Contacts.TABLE_CONTACTS, null, values);\r\n db.close();\r\n// }\r\n } catch (android.database.sqlite.SQLiteConstraintException e){\r\n Log.e(\"SQLITE_CONTACTS\", uname + \" - \" + phone);\r\n ACRA.getErrorReporter().handleSilentException(e);\r\n }\r\n // Closing database connection\r\n }",
"public void AddContact(View view){\n Utils.Route_Start(ListContact.this,Contato.class);\n // Notificar, para atualizar a lista.\n\n }",
"com.spirit.crm.entity.ClienteContactoIf addClienteContacto(com.spirit.crm.entity.ClienteContactoIf model) throws GenericBusinessException;",
"public static void addContact() {\n boolean isBadEmail = true;\n boolean keepLooping = true;\n myScanner.nextLine();\n System.out.println(\"Input contact first name: \\t\");\n String firstName = myScanner.nextLine();\n firstName = firstName.substring(0,1).toUpperCase() + firstName.substring(1).toLowerCase();\n System.out.println(\"Input contact last name: \\t\");\n String lastName = myScanner.nextLine();\n lastName = lastName.substring(0,1).toUpperCase() + lastName.substring(1).toLowerCase();\n String email = \"\";\n do {\n System.out.println(\"Input contact email: \\t\");\n email = myScanner.nextLine();\n if(email.contains(\"@\") && email.contains(\".\")) {\n isBadEmail = false;\n } else {\n System.out.println(\"Please input a proper email address.\");\n }\n } while (isBadEmail);\n String phone = \"\";\n do {\n System.out.println(\"Input contact ten digit phone number without any special characters: \\t\");\n try {\n long phoneNumber = Long.valueOf(myScanner.next());\n if(Long.toString(phoneNumber).length() == 10) {\n keepLooping = false;\n phone = Long.toString(phoneNumber);\n }\n } catch(Exception e) {\n System.out.println(\"Invalid input.\");\n }\n } while(keepLooping);\n Contact newContact = new Contact(firstName, lastName, phone, email);\n contactList.add(newContact.toContactString());\n System.out.println(\"You added: \" + newContact.toContactString());\n writeFile();\n }",
"public void addEntry() {\n\t\tSystem.out.print(\"Name: \");\n\t\tString entryName = getInputForName();\n\t\tSystem.out.print(\"Number: \");\n\t\tint entryNumber = getInputForNumber();\n\t\t\n\t\tp = new PhoneEntry(entryName, entryNumber);\n\t\t\n\t\ttry {\n\t\t\tphoneList.add(p);\n\t\t\twriteFile();\n\t\t\t\n\t\t\tSystem.out.println(\"Entry \" + p.getName() + \" has been added.\");\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.err.println(\"Could not write item into array.\");\n\t\t}\n\t}",
"public org.hl7.fhir.Contact addNewContact()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Contact target = null;\n target = (org.hl7.fhir.Contact)get_store().add_element_user(CONTACT$6);\n return target;\n }\n }",
"@Override\n\tpublic void add(GalaxyNote phone) {\n\t\t\n\t}",
"@Override\n public void addContact(User contact) {\n contacts.add(contact);\n\n // overwrite the whole list of contacts in the file\n writeToFile();\n }",
"private void addLine (String line) {\n writer.write (line);\n writer.newLine();\n // blockOut.append (line);\n // blockOut.append (GlobalConstants.LINE_FEED);\n }",
"private void addContact(Contact contact) {\n contactList.add(contact);\n System.out.println(\"contact added whose name is : \" + contact.getFirstName() + \" \" + contact.getLastName());\n\n }",
"public void addRecipient(){\n //mRATable.insert();\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic void addChatLine(String name, String line){\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tListBox lb = nifty.getScreen(\"hud\").findNiftyControl(\"listBoxChat\",ListBox.class);\n\t\tif (line.length() + name.length() > 55){\n\t\t\twhile (line.length() > 35){\n\t\t\t\tString splitLine = line.substring(0,35);\n\t\t\t\tlb.addItem(\"<\"+name+\">\"+\": \"+splitLine);\n\t\t\t\tline = line.substring(35);\n\t\t\t}\n\t\t}\n\t\tlb.addItem(\"<\"+name+\">\"+\": \"+line);\n\t\tlb.showItem(lb.getItems().get(lb.getItems().size()-1));\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressWithDeliverability addNewAddressHistory();",
"protected void add(Contact contact) throws IllegalArgumentException {\n\t\t// Concatenate my lists.\n\t\tsuper.add(contact);\n\t}",
"public void addContact(String id) {\r\n\t\tif (!contacts.contains(id)) {\r\n\t\t\tcontacts.add(id);\r\n\t\t}\r\n\t}",
"public void addContact(Map<String, String> map) {\n notepad.addContact(createContact(map));\n getContact(notepad.getContacts().size() - 1);\n }",
"@Override\n public Contact addContact(String firstName, String secondName, String fathersName,\n String mobilePhoneNumber, String homePhoneNumber,\n String homeAddress, String email, long userId) {\n\n Contact contact = new Contact(firstName, secondName, fathersName, mobilePhoneNumber,\n homePhoneNumber, homeAddress, email, userRepository.findOne(userId));\n\n contactRepository.save(contact);\n return null;\n }",
"public void addContact(Contact contact) {\n SQLiteDatabase db = null;\n try {\n db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n //values.put(KEY_ID, contact.getID()); // Contact ID id identity\n values.put(KEY_DEVICE_ID, contact.getDeviceID()); // Contact DeviceID\n values.put(KEY_DISPLAY_WIDTH, contact.getDisplayWidth()); // Contact DisplayWidth\n values.put(KEY_DISPLAY_HEIGHT, contact.getDisplayHeight()); // Contact DisplayHeight\n values.put(KEY_SURNAME, contact.getSurname()); // Contact Surname\n values.put(KEY_IP, contact.getIP()); // Contact IP\n values.put(KEY_HOST_NAME, contact.getHostName()); // Contact hostName\n values.put(KEY_AVATAR, contact.getAvatar()); // Contact Avatar\n values.put(KEY_OSTYPE, contact.getOSType()); // Contact OSType\n values.put(KEY_VER_NO, contact.getVersionNumber()); // Contact versionNumber\n values.put(KEY_PH_NO, contact.getPhoneNumber()); // Contact PhoneNumber\n values.put(KEY_SERVICE_NAME, contact.getServiceName()); // Contact ServiceName\n values.put(KEY_IS_ONLINE, contact.getOnline()?1:0); // Contact PhoneNumber\n\n // Inserting Row\n db.insert(TABLE_CONTACT, null, values);\n }catch (Exception e){\n Log.e(TAG,\"addContact:\"+e.getMessage());\n throw e;\n }finally {\n if(db!= null && db.isOpen())\n db.close(); // Closing database connection\n }\n\n }",
"public void add(message contact) {\n chats.add(contact);\n notifyItemChanged(chats.size() - 1);\n }",
"public void addContact(Addendance_DB_Model contact) {\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(KEY_COMP_ID, contact.get_CompId()); // Addendance_DB_Model Name\n\t\tvalues.put(KEY_DATETIME, contact.get_DateTime());\n\t\tvalues.put(KEY_EMP_ID,contact.get_EmpId());\n\t\tvalues.put(KEY_IBEACON_ID,contact.get_IbeaconId());// Addendance_DB_Model Phone\n\t\tvalues.put(KEY_Status,contact.getStatus());\n\t\tvalues.put(KEY_Latitude,contact.getLatit());\n\t\tvalues.put(KEY_Longitude,contact.getLogni());\n\t\t// Inserting Row\n\t\tdb.insert(TABLE_CONTACTS, null, values);\n\t\tdb.close(); // Closing database connection\n\t}",
"public void addLine(Dialog line) {\n\t\tArrayList<Dialog> temp = new ArrayList<Dialog>();\n\t\ttemp.add(line);\n\t\tdecoupleGenericLines(temp);\n\t\tDialogueSystem.GLOBAL_DIALOG_LIST.add(line);\n\t}",
"public void addEmptyLine() {\n addLine(\"\");\n }",
"private void addContact(final String Email, final String password)\n throws NoSuchAlgorithmException, UnsupportedEncodingException {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Added contact \" + Email);\n dao.create(new Contact(Email, password));\n Log.i(\"results\", sb.toString());\n }",
"@Override\r\n\tpublic void addContact(Contact contact) {\n\t\tsuper.save(contact);\r\n\t}",
"public static void addContact(Contact contact)\n\t{\t\t\n\t\ttry(PrintWriter file = new PrintWriter(new BufferedWriter(new FileWriter(\"contacts.txt\", true)))) {\n\t\t file.println(contact.getName().toUpperCase() + \"##\" + contact.getPhone().toUpperCase());\n\t\t}catch (Exception ex) {}\n\t}",
"public static void addContact(String user, ContactFormData formData) {\n boolean isNewContact = (formData.id == -1);\n if (isNewContact) {\n Contact contact = new Contact(formData.firstName, formData.lastName, formData.telephone, formData.telephoneType);\n UserInfo userInfo = UserInfo.find().where().eq(\"email\", user).findUnique();\n if (userInfo == null) {\n throw new RuntimeException(\"Could not find user: \" + user);\n }\n userInfo.addContact(contact);\n contact.setUserInfo(userInfo);\n contact.save();\n userInfo.save();\n }\n else {\n Contact contact = Contact.find().byId(formData.id);\n contact.setFirstName(formData.firstName);\n contact.setLastName(formData.lastName);\n contact.setTelephone(formData.telephone);\n contact.setTelephoneType(formData.telephoneType);\n contact.save();\n }\n }",
"void addContact(String name, int number)\r\n\t{\r\n\t\t\r\n\t\tContact a = new Contact(number,name);\r\n\t\tthis.add(a);\r\n\t}",
"private void addLine()\n\t{\n\t\tlines.add(printerFormatter.markEOL());\n\t}",
"public void addEntry(AddressEntry contact) {\r\n insertAlphabeticalOrder(contact);\r\n }",
"public void addLineaGasto(long pk, long lineaGastoPK)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public void addToLinesOfBusiness(entity.AppCritLineOfBusiness element);",
"public void addContact(Contact contact) {\n\t\tif (!isContactExist(findContact(contact.getName()))) {\n\t\t\tcontacts.add(contact);\n\t\t\tSystem.out.println(\"Contact added\");\n\t\t}\n\t\telse System.out.println(\"Contact already exists\");\n\t}",
"private void startEmergency()\n {\n sendUserPresentLocationDetailsToEmergencyConatct();\n\n /*final ClientConfiguration clientConfiguration = getClientConfiguration();\n completedTime = completedTime + clientConfiguration.getTimeDelayEmergency();\n Timer timer = new Timer();\n timer.schedule(new TimerTask()\n {\n @Override\n public void run()\n {\n completedTime = completedTime + clientConfiguration.getTimeDelayEmergency();\n if (clientConfiguration.getMaxTimeEmergency() < completedTime)\n {\n completedTime = 0;\n cancel();\n notifyEmergencyCompleted();\n }\n else\n {\n sendUserPresentLocationDetailsToEmergencyConatct();\n }\n }\n }, clientConfiguration.getTimeDelayEmergency(), clientConfiguration.getTimeDelayEmergency());*/\n }",
"public void appendLine() {\n\t\t\tmBuilder.append(NewLineChar);\n\t\t\tlastAppendNewLine = true;\n\t\t}",
"void addLine(int index, Coordinate start, Coordinate end);",
"public void addDeadline()\n throws StringIndexOutOfBoundsException, ArrayIndexOutOfBoundsException {\n System.out.println(LINEBAR);\n\n try {\n String taskDescription = userIn.split(DEADLINE_IDENTIFIER)[DESCRIPTION].substring(DEADLINE_HEADER);\n String timing = userIn.split(DEADLINE_IDENTIFIER)[TIMING];\n Deadline deadline = new Deadline(taskDescription, timing);\n tasks.add(deadline);\n storage.writeToFile(deadline);\n ui.echoUserInput(deadline, tasks.taskIndex);\n } catch (StringIndexOutOfBoundsException e) {\n ui.printStringIndexOOB();\n } catch (ArrayIndexOutOfBoundsException e) {\n ui.printArrayIndexOOB();\n }\n System.out.println(LINEBAR);\n }",
"public static void addNewRoom() {\n Services room = new Room();\n room = addNewService(room);\n\n ((Room) room).setFreeService(FuncValidation.getValidFreeServices(ENTER_FREE_SERVICES,INVALID_FREE_SERVICE));\n\n //Get room list from CSV\n ArrayList<Room> roomList = FuncGeneric.getListFromCSV(FuncGeneric.EntityType.ROOM);\n\n //Add room to list\n roomList.add((Room) room);\n\n //Write room list to CSV\n FuncReadWriteCSV.writeRoomToFileCSV(roomList);\n System.out.println(\"----Room \"+room.getNameOfService()+\" added to list---- \");\n addNewServices();\n\n }",
"public void addEntry(String name, String postalAddress, String Phone, String email, String note) {\r\n AddressEntry contact = new AddressEntry.Builder(name).postalAddress(postalAddress)\r\n .phoneNumber(Phone).email(email).note(note).build();\r\n insertAlphabeticalOrder(contact);\r\n }",
"public void updateContact() {\r\n\t\tSystem.out.println(\"enter the name of the contact whose details are to be updated\");\r\n\t\tString name = scanner.nextLine();\r\n\t\tContact existing = service.getContact(name); //get the existing contact details from service<-dao\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"1. keep the same address\\n2. update the address\");\r\n\t\tint choice = Integer.parseInt(scanner.nextLine());\r\n\t\tString address;\r\n\t\tif(choice==1) {\r\n\t\t\taddress=existing.getAddress();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"enter new address\");\r\n\t\t\taddress = scanner.nextLine();\r\n\t\t}\r\n\t\t\r\n\t\t//mobile number updation\r\n\t\tSystem.out.println(\"1. keep the same mobile number(s)\\n2. add new mobile number\\n3.remove existing added number\");\r\n\t\tchoice = Integer.parseInt(scanner.nextLine());\r\n\t\tString mobileNumber[];\r\n\t\t\r\n\t\t//if the user wants to keep same mobile number(s)\r\n\t\tif(choice==1) {\r\n\t\t\tmobileNumber=existing.getMobileNumber();\r\n\t\t}\r\n\t\t\r\n\t\t//if the user wants to add a new mobile number to already existing \r\n\t\telse if(choice==2) {\r\n\t\t\tmobileNumber=existing.getMobileNumber();\r\n\t\t\tList<String> numberList = new ArrayList<>(Arrays.asList(mobileNumber));\r\n\t\t\tSystem.out.println(\"enter new mobile number\");\r\n\t\t\tString newNumber = scanner.nextLine();\r\n\t\t\tif(numberList.contains(newNumber)) {\r\n\t\t\t\tSystem.out.println(\"the number is already a part of this contact\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tnumberList.add(newNumber);\r\n\t\t\t}\r\n\t\t\tmobileNumber=numberList.toArray(new String[0]);\r\n\t\t}\r\n\t\t\r\n\t\t//if the user wants to remove some number from existing numbers\r\n\t\telse {\r\n\t\t\tmobileNumber=existing.getMobileNumber();\r\n\t\t\tList<String> numberList = new ArrayList<>(Arrays.asList(mobileNumber));\r\n\t\t\tSystem.out.println(\"enter mobile number to remove\");\r\n\t\t\tString removingNumber = scanner.nextLine();\r\n\t\t\tif(!numberList.contains(removingNumber)) {\r\n\t\t\t\tSystem.out.println(\"no such mobile number exist\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tnumberList.remove(removingNumber);\r\n\t\t\t}\r\n\t\t\tmobileNumber=numberList.toArray(new String[0]);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//updating the profile picture\r\n\t\tSystem.out.println(\"1. keep the same image\\n2. update the image\");\r\n\t\tchoice = Integer.parseInt(scanner.nextLine());\r\n\t\tString imageReference;\r\n\t\tif(choice==1) {\r\n\t\t\timageReference=existing.getImageReference();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"enter new image path\");\r\n\t\t\timageReference = scanner.nextLine();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//updating the date of birth\r\n\t\tSystem.out.println(\"1. keep the same date of birth\\n2. update the date of birth\");\r\n\t\tchoice = Integer.parseInt(scanner.nextLine());\r\n\t\tLocalDate dateOfBirth;\r\n\t\tif(choice==1) {\r\n\t\t\tdateOfBirth=existing.getDateOfBirth();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"enter new date of birth\");\r\n\t\t\tdateOfBirth = LocalDate.parse(scanner.nextLine());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//updating the email - same logic as that of updating mobile number\r\n\t\tSystem.out.println(\"1. keep the same email Id(s)\\n2. add new email Id\\n3.remove existing email Id\");\r\n\t\tchoice = Integer.parseInt(scanner.nextLine());\r\n\t\tString email[];\r\n\t\tif(choice==1) {\r\n\t\t\temail=existing.getEmail();\r\n\t\t}\r\n\t\telse if(choice==2) {\r\n\t\t\temail=existing.getEmail();\r\n\t\t\tList<String> emailList = new ArrayList<>(Arrays.asList(email));\r\n\t\t\tSystem.out.println(\"enter new email Id\");\r\n\t\t\tString newEmail = scanner.nextLine();\r\n\t\t\tif(emailList.contains(newEmail)) {\r\n\t\t\t\tSystem.out.println(\"the email is already a part of this contact\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\temailList.add(newEmail);\r\n\t\t\t}\r\n\t\t\temail=emailList.toArray(new String[0]);\r\n\t\t}\r\n\t\telse {\r\n\t\t\temail=existing.getEmail();\r\n\t\t\tList<String> emailList = new ArrayList<>(Arrays.asList(email));\r\n\t\t\tSystem.out.println(\"enter email to remove\");\r\n\t\t\tString removingEmail = scanner.nextLine();\r\n\t\t\tif(!emailList.contains(removingEmail)) {\r\n\t\t\t\tSystem.out.println(\"no such email exist\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\temailList.remove(removingEmail);\r\n\t\t\t}\r\n\t\t\temail=emailList.toArray(new String[0]);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//updating the group id \r\n\t\tSystem.out.println(\"1. keep the same group Id\\n2. update the group Id\");\r\n\t\tchoice = Integer.parseInt(scanner.nextLine());\r\n\t\tint groupId;\r\n\t\tif(choice==1) {\r\n\t\t\tgroupId = existing.getGroupId();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"enter new group Id\");\r\n\t\t\tshowGroups(service); \t\t\t\t\t//this is static method which shows the available groups\r\n\t\t\tgroupId = Integer.parseInt(scanner.nextLine());\r\n\t\t}\r\n\t\t\r\n\t\t//setting up the contact object \r\n\t\tContact updated = new Contact(name, address, mobileNumber, imageReference, dateOfBirth, email, groupId);\r\n\t\t\r\n\t\t//calling the service update method which calls the DAO to update the contact\r\n\t\tint rowsEffected = service.updateExistingContact(existing, updated);\r\n\t\tSystem.out.println(rowsEffected+\" row(s) updated\");\r\n\t\t\r\n\t}",
"public void addHardwareDeviceToRent()\n {\n try\n {\n String Description=rentDescriptiontxt.getText();\n String Manufacturer=rentManufacturertxt.getText();\n \n int downPayment=Integer.parseInt(downPaymenttxt.getText());\n int dailyRate=Integer.parseInt(dailyRatetxt.getText());\n \n HardwareDeviceToRent HardwareToRent=new HardwareDeviceToRent( Description, Manufacturer, downPayment, dailyRate);\n equipment.add(HardwareToRent);\n \n JOptionPane.showMessageDialog(frame, \"Successfully added GeneratorToRent\",\"Information\", JOptionPane.INFORMATION_MESSAGE);\n }\n catch(NumberFormatException aE)\n {\n JOptionPane.showMessageDialog(frame, aE.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }",
"gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi addNewMedlineSi();",
"public synchronized void addLine(Line line)\r\n\t{\r\n\t\tlines.add(line);\r\n\t}",
"private void addCustomer() {\n try {\n FixCustomerController fixCustomerController = ServerConnector.getServerConnector().getFixCustomerController();\n\n FixCustomer fixCustomer = new FixCustomer(txtCustomerName.getText(), txtCustomerNIC.getText(), String.valueOf(comJobrole.getSelectedItem()), String.valueOf(comSection.getSelectedItem()), txtCustomerTele.getText());\n\n boolean addFixCustomer = fixCustomerController.addFixCustomer(fixCustomer);\n\n if (addFixCustomer) {\n JOptionPane.showMessageDialog(null, \"Customer Added Success !!\");\n } else {\n JOptionPane.showMessageDialog(null, \"Customer Added Fail !!\");\n }\n\n } catch (NotBoundException | MalformedURLException | RemoteException ex) {\n new ServerNull().setVisible(true);\n } catch (ClassNotFoundException | IOException ex) {\n Logger.getLogger(InputCustomers.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@Override\n public void addRecipient(String newRecipient) {\n System.out.println(\"Invalid request cannot add \"\n + newRecipient\n + \" to any mailing list\");\n }",
"public void addContact(ContactBE contact) {\n ContentValues values = getContentValues(contact);\n mDatabase.insert(ContactTable.NAME, null, values);\n }",
"public void addChat(String to, String from, String from_fullname, String msg, String date, String status,\r\n String uniqueid, String type, String file_type) {\r\n\r\n String myPhone = getUserDetails().get(\"phone\");\r\n String contactPhone = \"\";\r\n if(myPhone.equals(to)) contactPhone = from;\r\n if(myPhone.equals(from)) contactPhone = to;\r\n\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(UserChat.USERCHAT_TO, to); // TO\r\n values.put(UserChat.USERCHAT_FROM, from); // FROM\r\n values.put(UserChat.USERCHAT_FROM_FULLNAME, from_fullname); // FROM FULL NAME\r\n values.put(UserChat.USERCHAT_MSG, msg); // CHAT MESSAGE\r\n values.put(UserChat.USERCHAT_DATE, date); // DATE\r\n values.put(\"status\", status); // status: pending, sent, delivered, seen\r\n values.put(\"uniqueid\", uniqueid);\r\n values.put(\"type\", type);\r\n values.put(\"file_type\", file_type);\r\n values.put(\"contact_phone\", contactPhone); // Contact\r\n\r\n // Inserting Row\r\n db.insert(UserChat.TABLE_USERCHAT, null, values);\r\n db.close(); // Closing database connection\r\n }",
"private void addContactHeader(String n,Context ctx){\n\t\theader.numbers.put(n, -1);\n\t\theader.numbersToString(ctx);\n\t}",
"public boolean addContact(Contact c)\n {\n if (!c.addAppointment(this))\n return false;\n \n invitedPeople.add(c);\n return true;\n }",
"public void newChatLine(String line) {\n\t\tSystem.out.println(line);\n\t}",
"public void addHeaderLine(String line) throws MessagingException {\n/* 493 */ throw new IllegalWriteException(\"POP3 messages are read-only\");\n/* */ }",
"public synchronized int addDiagnosis(final Diagnosis smsMsg,\n\t\t\tfinal String userId) {\n\t\tLogger.log(Level.DEBUG, TAG, \"addDiagnosis() function\");\n\n\t\topen();\n\t\tbyte[] b = smsMsg.writeData();\n\t\tint id = add(b, userId);\n\t\tif (id != -1) {\n\t\t\tsmsMsg.setId(id);\n\t\t}\n\t\tclose();\n\t\treturn id;\n\t}",
"public synchronized void addBeacon(RSU rsu, long ID, long x, long y, boolean isEncrypted){\r\n\t\tbeaconInfoText_.append(\"\\n\\nRSU\\n\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(Renderer.getInstance().getTimePassed());\r\n\t\tbeaconInfoText_.append(\"ms\\n\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(ID);\r\n\t\tbeaconInfoText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(x);\r\n\t\tbeaconInfoText_.append(\",\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(y);\r\n\t\tbeaconInfoText_.append(\", encrypted:\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(isEncrypted);\r\n\t}",
"public void addLineaGastoFamilia(long pk, long lineaGastoFamiliaPK)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public void addCallHistory(String type, String contact_phone) {\r\n\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(\"type\", type); // values : placed, received, missed\r\n values.put(\"contact_phone\", contact_phone); // FROM\r\n\r\n // Inserting Row\r\n db.insert(\"call_history\", null, values);\r\n db.close(); // Closing database connection\r\n }",
"public void addCust(Event temp){\n eventLine.add(temp);\n }",
"public void setAddressLine(String addressLine) {\n\t\tthis.addressLine = addressLine;\n\t}",
"public void addContact(String firstName, String lastName,\n\t\t\tString phoneNumber, String emailAddress, String company) \n\t{\n\t\tBusinessContact b = new BusinessContact(firstName, lastName,\n\t\t\t\tphoneNumber, emailAddress, company);\n\t\tcontacts.add(b);\n\t}",
"@Override\r\n\tpublic boolean addContact(ContentResolver contentResolver, ContactInfo cInfo) {\r\n\t\tif(cInfo != null \r\n\t\t\t\t&& cInfo.getDisplayName() != null \r\n\t\t\t\t&& cInfo.getPhoneNumber() != null) {\r\n\t\t\t//Add name\r\n\t\t\tContentValues values = new ContentValues();\r\n\t\t\tvalues.put(People.NAME, cInfo.getDisplayName());\r\n\t\t\tUri uri = contentResolver.insert(People.CONTENT_URI, values);\r\n\t\t\tLog.d(\"ANDROID\", uri.toString());\r\n\t\t\t\r\n\t\t\t//Add Number\r\n\t\t\tUri numberUri = Uri.withAppendedPath(uri, People.Phones.CONTENT_DIRECTORY);\r\n\t\t\tvalues.clear();\r\n\t\t\tvalues.put(Phones.TYPE, Phones.TYPE_MOBILE);\r\n\t\t\tvalues.put(People.NUMBER, cInfo.getPhoneNumber());\r\n\t\t\tcontentResolver.insert(numberUri, values);\r\n\t\t\treturn true;\r\n\t\t}\t\t\r\n\t\treturn false;\r\n\t}",
"public static void addContact ( LinkedList contactsList ) { \n\t\tSystem.out.print ( \"\\n\" + \"Enter the contact's first and last name: \" ); // prompt\n\t\tString [ ] firstAndLastName = CheckInput.getString( ).split( \" \" ); // split the name into first and last\n\t\tString firstName = firstAndLastName [ 0 ]; // assign\n\t\tString lastName = firstAndLastName [ 1 ];\n\t\tSystem.out.print ( \"Enter the contact's phone number: \" );\n\t\tString phoneNumber = CheckInput.getString ( );\n\t\tSystem.out.print ( \"Enter the contact's address: \" );\n\t\tString address = CheckInput.getString ( );\n\t\tSystem.out.print ( \"Enter the contact's city: \" );\n\t\tString city = CheckInput.getString ( );\n\t\tSystem.out.print ( \"Enter the contact's zip code: \" );\n\t\tString zip = CheckInput.getString( );\n\t\tcontactsList.add ( new Contact ( firstName, lastName, phoneNumber, address, city, zip ) );\n\t\t// adds to the LinkedList a new contact with the user given information\n\t\tSystem.out.print ( \"\\n\" );\n\t}",
"private void addLine(int number, int x, int y, int z) {\n grid[x][y][z] = \"L\" + number;\n }",
"private EmergencyContactInfo persistEmergencyContactInfo(Intent data){\n\t //Declarations\n\t\t\tEmergencyContactInfo emergencyContactInfo;\n\t\t\t\n\t\t\t//Get the contact details\n \tContactProvider contactProvider = ContactProvider.getContactProvider(getActivity());\n \tContactDetail contactDetail = contactProvider.getContact(data);\t\t\t \t \t \t\n \t\n \t//Check its availability in data store\n \tif(DataStore.getEmergencyContactInfo(getActivity()) == null)\n \t\temergencyContactInfo = new EmergencyContactInfo();\t \t\n \telse\n \t\temergencyContactInfo = DataStore.getEmergencyContactInfo(getActivity());\n \t\n \temergencyContactInfo.getContactDetails().put(mContactTag, contactDetail);\t \t\n \tDataStore.setEmergencyContactInfo(emergencyContactInfo);\n \tDataStore.commitEmergencyContactInfo(getActivity());\n \t\n \t\n \treturn emergencyContactInfo;\n\t\t}",
"public static void addContacts(ContactFormData formData) {\n long idValue = formData.id;\n if (formData.id == 0) {\n idValue = ++currentIdValue;\n }\n Contact contact = new Contact(idValue, formData.firstName, formData.lastName, formData.telephone);\n contacts.put(idValue, contact);\n }",
"private void addAttendee(int attendeeId) {\n if (!attendToRepo.getMeetingIDs(attendeeId).contains(_Meeting_Id)) {\n Log.d(tag, \"Insert attendee \" + attendeeId + \" to meeting \" + _Meeting_Id);\n AttendTo attendTo = new AttendTo();\n attendTo.meeting_ID = _Meeting_Id;\n attendTo.attendee_ID = attendeeId;\n attendToRepo.insert(attendTo);\n }\n\n /* Updating attendees list */\n ArrayList<Integer> idList = attendToRepo.getAttendeeIDs(_Meeting_Id);\n ArrayList<HashMap<String, String>> attendeeList = new ArrayList<>();\n for(int id : idList){\n HashMap<String, String> attendeeMap = new HashMap<>();\n attendeeMap.put(\"id\", String.valueOf(attendeeRepo.getAttendeeById(id).attendee_ID));\n attendeeMap.put(\"name\", attendeeRepo.getAttendeeById(id).name);\n attendeeList.add(attendeeMap);\n }\n\n /* Refreshing ListView */\n ListAdapter adapter = new SimpleAdapter(this, attendeeList, edit_attendee_entry,\n new String[]{\"id\", \"name\"}, new int[]{R.id.attendee_Id, R.id.attendee_name});\n attendeeListView.setAdapter(adapter);\n }",
"public void edit_contact_list(String old_contact, String new_contact)\n {\n String[] current_data = read();\n try\n {\n dir = new File(contextRef.getFilesDir(), filename);\n PrintWriter writer = new PrintWriter(dir);\n\n for (int i = 0; i < current_data.length; i++)\n {\n String line = current_data[i];\n if (line != null && !line.contains(old_contact))\n {\n writer.println(line);\n }\n }\n writer.println(new_contact);\n writer.close();\n }catch (Exception ex)\n {\n //debug2(\"write_contact_list failure\");\n }\n }",
"public boolean addNewContact(Contact contact){\n if(findContact(contact.getName()) >= 0){\n // recall, x >= 0, if x is true than x is in the index of contact\n // if false, x will return -1 meaning the same contact wasn't found\n System.out.println(\"Contact is already on file\");\n return false; //\n }\n myContacts.add(contact);\n return true;\n }",
"void AddMeeting (Meeting m) throws Exception;",
"org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine insertNewExternalOrderLine(int i);",
"public void enter_chat_room(String line) {\n int start = line.indexOf(\" \") +1;\n String chat_name = line.substring(start);\n HashMap new_chat_room = null;\n\n try{\n if(chat_room.containsKey(chat_name)) {\n \n synchronized(chat_room) {\n cur_chat_room.remove(client_ID);\n new_chat_room = (HashMap)chat_room.get(chat_name);\n cur_chat_room = new_chat_room;\n new_chat_room.put(client_ID,client_PW);\n }\n \n clearScreen(client_PW);\n client_PW.println(\"Entered to \" + chat_name);\n readchat(chat_name);\n client_PW.flush();\n } else {\n client_PW.println(\"Invalid chat room\");\n client_PW.flush();\n }\n } catch (Exception e) {\n client_PW.println(e);\n }\n }",
"@Override\r\n\tpublic void itemAdded() {\r\n\t\tif (sendLines.size() == 1){\r\n\t\t\tgrblPort.addNewLineListener(this);\r\n\t\t\tgrblPort.sendDataLine(sendLines.get(0));\t\t\r\n\t\t}\r\n\t\t\r\n\t}",
"public void addLineVehicles(Circle c)\r\n {\r\n this.all_line_vehicles.add(c);\r\n return;\r\n }",
"public void contact_add(contact contact){\n \t\n \tif (contact.type_get() == contact.TYPE_PERSON) {\n \t\tcontact check_contact = contact_get_person_by_address(contact.address_get());\n \t\tif (check_contact != null) {\n \t\t\tLog.d(\"contact_add\", \"contact exists with address \" + contact.address_get());\n \t\t\treturn;\n \t\t}\n \t} else {\n \t\tcontact check_contact = contact_get_group_by_address_and_group(contact.address_get(), contact.group_get());\n \t\tif (check_contact != null) {\n \t\t\tLog.d(\"contact_add\", \"contact exists with address \" + contact.address_get());\n \t\t\treturn;\n \t\t}\n \t}\n \t\n \t// 1. get reference to writable DB\n \tSQLiteDatabase db = this.getWritableDatabase();\n\n \t// 2. create ContentValues to add key \"column\"/value\n \tContentValues values = new ContentValues();\n \tvalues.put(KEY_CONTACT_ADDRESS, contact.address_get());\n \tvalues.put(KEY_CONTACT_NAME, contact.name_get());\n \tvalues.put(KEY_CONTACT_TYPE, contact.type_get());\n \tvalues.put(KEY_CONTACT_KEYSTAT, contact.keystat_get());\n \tif (contact.type_get() == contact.TYPE_GROUP)\n \t\tvalues.put(KEY_CONTACT_MEMBERS, contact.members_get_string());\n \tvalues.put(KEY_CONTACT_LASTACT, contact.time_lastact_get());\n \tvalues.put(KEY_CONTACT_UNREAD, contact.unread_get());\n \tvalues.put(KEY_CONTACT_GROUP, contact.group_get());\n\n \t// 3. insert\n \tdb.insert(TABLE_CONTACT, // table\n \t\t\tnull, //nullColumnHack\n \t\t\tvalues); // key/value -> keys = column names/ values = column values\n\n \t// 4. close\n \tdb.close();\n }",
"public boolean add(AdressEntry e) {\r\n if (addressEntryList.contains(e)) {\r\n System.out.println(\"Record already exists!!\");\r\n System.out.println(addressEntryList.get((addressEntryList.indexOf(e))));\r\n System.out.println();\r\n return false;\r\n } else {\r\n addressEntryList.add(e);\r\n addressEntryList.sort(Comparator.comparing(AdressEntry::getLastName));\r\n System.out.print(\"Thank you the following contact has been added to your address book:\\n \");\r\n System.out.println(e);\r\n }\r\n System.out.println();\r\n return true;\r\n }",
"public void addLine(String line) {\n if (methodMode) {\n methodCode.add(new AsmLine(line));\n } else {\n program.add(new AsmLine(line));\n }\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription addNewControlPersons();",
"public void fireEmergencyRequest() {\n\t\televatorManager.handleEmergency();\n\t}",
"public abstract int addCause(Guid process, Guid signal)\r\n throws SignalModeConflictException;",
"public void newBufLine() {\n this.buffer.add(new ArrayList<Integer>());\n this.columnT = 0;\n this.lineT++;\n }",
"@Override\n\t\tpublic void emergencyServices() {\n\t\t\tSystem.out.println(\"FH--emergency services\");\t\n\t\t\t\n\t\t}",
"public void addLineaGasto(long pk,\n\t\tes.davinciti.liferay.model.LineaGasto lineaGasto)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"void addPC(PCDevice pc);",
"private void addNewLine(StringBuilder builder, String line){\r\n\t\tbuilder.append(line);\r\n\t\tbuilder.append(\"\\n\");\r\n\t}",
"public void addAddress(String Address, Coord coord);",
"public Builder addContact(org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact value) {\n if (contactBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureContactIsMutable();\n contact_.add(value);\n onChanged();\n } else {\n contactBuilder_.addMessage(value);\n }\n return this;\n }"
]
| [
"0.6206872",
"0.6065404",
"0.58430636",
"0.57400596",
"0.57375896",
"0.56416184",
"0.5613925",
"0.55412525",
"0.5526454",
"0.55245745",
"0.5498782",
"0.5476427",
"0.5455206",
"0.54443574",
"0.53935444",
"0.5351191",
"0.5349369",
"0.5315803",
"0.52901894",
"0.5281983",
"0.5258395",
"0.52545506",
"0.52461296",
"0.51608163",
"0.51300806",
"0.5122493",
"0.512043",
"0.50926614",
"0.50884205",
"0.50788397",
"0.50757706",
"0.5072476",
"0.5060911",
"0.50606185",
"0.5060119",
"0.5052863",
"0.5035361",
"0.5028585",
"0.5028405",
"0.5017719",
"0.5016546",
"0.5010158",
"0.5007986",
"0.5002537",
"0.49938428",
"0.4979555",
"0.4956132",
"0.49525702",
"0.4937817",
"0.49215937",
"0.49160475",
"0.49152476",
"0.491421",
"0.48980102",
"0.48875883",
"0.4885094",
"0.48811877",
"0.48769477",
"0.4873981",
"0.48647684",
"0.4864173",
"0.48617435",
"0.4850133",
"0.48499408",
"0.4847921",
"0.48338038",
"0.4829795",
"0.48262805",
"0.48227763",
"0.48217198",
"0.4821365",
"0.4820928",
"0.48131198",
"0.4808887",
"0.4805133",
"0.47916585",
"0.47911704",
"0.47904736",
"0.47877935",
"0.47815233",
"0.4777788",
"0.47777784",
"0.4766263",
"0.47589475",
"0.47577944",
"0.47542796",
"0.47517025",
"0.4749158",
"0.47469616",
"0.47416914",
"0.4739923",
"0.47373325",
"0.4734832",
"0.47337458",
"0.47335723",
"0.4728532",
"0.47277495",
"0.4727021",
"0.47236216",
"0.47171986"
]
| 0.74862754 | 0 |
Determines if this document should be able to return to the fiscal officer node again. This can happen if the user has rights to reroute and also if the document is already ENROUTE. | @Override
public boolean canReturn() {
return getDocumentHeader().getWorkflowDocument().isEnroute();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean requiresRiskManagementReviewRouting() {\n // Right now this works just like International Travel Reviewer, but may change for next version\n if (ObjectUtils.isNotNull(this.getTripTypeCode()) && getParameterService().getParameterValuesAsString(TemParameterConstants.TEM_DOCUMENT.class, TravelParameters.INTERNATIONAL_TRIP_TYPES).contains(this.getTripTypeCode())) {\n return true;\n }\n if (!ObjectUtils.isNull(getTraveler()) && getTraveler().isLiabilityInsurance()) {\n return true;\n }\n return false;\n }",
"public boolean isReRouting() {\r\n\t\treturn this.reRouting;\r\n\t}",
"protected boolean requiresTravelerApprovalRouting() {\n //If there's travel advances, route to traveler if necessary\n return requiresTravelAdvanceReviewRouting() && !getTravelAdvance().getTravelAdvancePolicy();\n }",
"boolean hasRemarketingAction();",
"@Override\n protected boolean shouldRouteByProfileAccount() {\n return getBlanketTravel() || !getTripType().isGenerateEncumbrance() || hasOnlyPrepaidExpenses();\n }",
"boolean hasIsRedeemed();",
"public boolean reverseAccrualIt() {\n log.info(toString());\n\n if (!isReceipt()) {\n CQChangeStateVP(MVALORPAGO.EMITIDO, MVALORPAGO.REVERTIDO);\n CQChangeStateVP(MVALORPAGO.IMPRESO, MVALORPAGO.REVERTIDO);\n\n }\n\n return false;\n }",
"boolean hasKeyRevocationActionType();",
"@Override\r\n public boolean canDisapprove(Document document) {\n return false;\r\n }",
"public boolean isRemitTo() {\n\t\tObject oo = get_Value(\"IsRemitTo\");\n\t\tif (oo != null) {\n\t\t\tif (oo instanceof Boolean)\n\t\t\t\treturn ((Boolean) oo).booleanValue();\n\t\t\treturn \"Y\".equals(oo);\n\t\t}\n\t\treturn false;\n\t}",
"protected boolean shouldHoldAdvance() {\n if (shouldProcessAdvanceForDocument() && getTravelAdvance().getDueDate() != null) {\n return getTravelEncumbranceService().shouldHoldEntries(getTravelAdvance().getDueDate());\n }\n return false;\n }",
"public boolean isRenewable() {\n return type_ == TYPE_MULTIPLE_USE_RENEWABLE;\n }",
"public boolean isReverseAgency() {\r\n return reverseAgency;\r\n }",
"public boolean isReserved() {\n return target.searchLink(ParentLinkName.ENTERPRISE) != null;\n }",
"@Override\n\tpublic boolean isRented() {\n\t\treturn false;\n\t}",
"public boolean isDeclined()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"DECLINED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"Boolean getIsReentrant();",
"public boolean isRetried ()\r\n {\r\n return hasFailed () && retried_;\r\n }",
"protected boolean isDocErrorCorrectionMode(FinancialSystemTransactionalDocument document) {\n if (StringUtils.isNotBlank(document.getFinancialSystemDocumentHeader().getCorrectedByDocumentId())) {\n return true;\n }\n\n if(((CustomerInvoiceDocument)document).isInvoiceReversal()){\n return true;\n } else {\n // a normal invoice can only be error corrected if document is in a final state\n // and no amounts have been applied (excluding discounts)\n return isDocFinalWithNoAppliedAmountsExceptDiscounts((CustomerInvoiceDocument) document);\n }\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 Long getIsRevisable() {\n return isRevisable;\n }",
"public boolean mayRestore() {\n return Objects.nonNull(serverToken) && Objects.nonNull(clientToken);\n }",
"@Override\n public boolean canErrorCorrect(FinancialSystemTransactionalDocument document) {\n if (StringUtils.isNotBlank(document.getFinancialSystemDocumentHeader().getCorrectedByDocumentId())) {\n return false;\n }\n\n // error correction shouldn't be allowed for previous FY docs\n WorkflowDocument workflowDocument = document.getDocumentHeader().getWorkflowDocument();\n if (!isApprovalDateWithinFiscalYear(workflowDocument)) {\n return false;\n }\n\n if(((CustomerInvoiceDocument)document).isInvoiceReversal()){\n return false;\n } else {\n // a normal invoice can only be error corrected if document is in a final state\n // and no amounts have been applied (excluding discounts)\n return isDocFinalWithNoAppliedAmountsExceptDiscounts((CustomerInvoiceDocument) document);\n }\n }",
"public boolean isRemastered() {\r\n\t\treturn this.remastered;\r\n\t}",
"public boolean getRefuse() {\n return refuse_;\n }",
"protected boolean canManagerCancel(PaymentRequestDocument paymentRequestDocument) {\n if (canProcessorInit(paymentRequestDocument)) {\r\n return false;\r\n }\r\n\r\n String docStatus = paymentRequestDocument.getApplicationDocumentStatus();\r\n boolean requestCancelIndicator = paymentRequestDocument.getPaymentRequestedCancelIndicator();\r\n boolean holdIndicator = paymentRequestDocument.isHoldIndicator();\r\n boolean extracted = paymentRequestDocument.isExtracted();\r\n\r\n boolean preroute =\r\n PaymentRequestStatuses.APPDOC_IN_PROCESS.equals(docStatus) ||\r\n PaymentRequestStatuses.APPDOC_AWAITING_ACCOUNTS_PAYABLE_REVIEW.equals(docStatus);\r\n boolean enroute =\r\n PaymentRequestStatuses.APPDOC_AWAITING_SUB_ACCT_MGR_REVIEW.equals(docStatus) ||\r\n PaymentRequestStatuses.APPDOC_AWAITING_FISCAL_REVIEW.equals(docStatus) ||\r\n PaymentRequestStatuses.APPDOC_AWAITING_ORG_REVIEW.equals(docStatus) ||\r\n PaymentRequestStatuses.APPDOC_AWAITING_PAYMENT_REVIEW.equals(docStatus)\r\n ||\r\n PaymentRequestStatuses.APPDOC_AWAITING_TAX_REVIEW.equals(docStatus);\r\n boolean postroute =\r\n PaymentRequestStatuses.APPDOC_DEPARTMENT_APPROVED.equals(docStatus) ||\r\n PaymentRequestStatuses.APPDOC_AUTO_APPROVED.equals(docStatus);\r\n\r\n boolean can = false;\r\n if (PaymentRequestStatuses.STATUSES_PREROUTE.contains(docStatus) ||\r\n PaymentRequestStatuses.STATUSES_ENROUTE.contains(docStatus)) {\r\n can = true;\r\n } else if (PaymentRequestStatuses.STATUSES_POSTROUTE.contains(docStatus)) {\r\n can = !requestCancelIndicator && !holdIndicator && !extracted;\r\n }\r\n\r\n return can;\r\n }",
"@java.lang.Override\n public boolean hasRevealDocument() {\n return revealDocument_ != null;\n }",
"public void retireLead()\r\n\t{\r\n\t\tisleader = false;\r\n\t}",
"public boolean getResidence() { return resident; }",
"public boolean hasREVENUEREPORTIND() {\n return fieldSetFlags()[6];\n }",
"@ZAttr(id=1132)\n public boolean isReverseProxyUseExternalRouteIfAccountNotExist() {\n return getBooleanAttr(Provisioning.A_zimbraReverseProxyUseExternalRouteIfAccountNotExist, false);\n }",
"protected boolean isDocStatusCodeInitiated(Document document) {\n CustomerInvoiceWriteoffDocument writeoffDoc = (CustomerInvoiceWriteoffDocument) document;\n return (StringUtils.equals(writeoffDoc.getStatusCode(), ArConstants.CustomerInvoiceWriteoffStatuses.INITIATE));\n }",
"protected boolean canProcessorCancel(PaymentRequestDocument paymentRequestDocument) {\n if (canProcessorInit(paymentRequestDocument)) {\r\n return false;\r\n }\r\n\r\n String docStatus = paymentRequestDocument.getApplicationDocumentStatus();\r\n boolean requestCancelIndicator = paymentRequestDocument.getPaymentRequestedCancelIndicator();\r\n boolean holdIndicator = paymentRequestDocument.isHoldIndicator();\r\n boolean extracted = paymentRequestDocument.isExtracted();\r\n\r\n boolean preroute =\r\n PaymentRequestStatuses.APPDOC_IN_PROCESS.equals(docStatus) ||\r\n PaymentRequestStatuses.APPDOC_AWAITING_ACCOUNTS_PAYABLE_REVIEW.equals(docStatus);\r\n boolean enroute =\r\n PaymentRequestStatuses.APPDOC_AWAITING_SUB_ACCT_MGR_REVIEW.equals(docStatus) ||\r\n PaymentRequestStatuses.APPDOC_AWAITING_FISCAL_REVIEW.equals(docStatus) ||\r\n PaymentRequestStatuses.APPDOC_AWAITING_ORG_REVIEW.equals(docStatus) ||\r\n PaymentRequestStatuses.APPDOC_AWAITING_PAYMENT_REVIEW.equals(docStatus)\r\n ||\r\n PaymentRequestStatuses.APPDOC_AWAITING_TAX_REVIEW.equals(docStatus);\r\n boolean postroute =\r\n PaymentRequestStatuses.APPDOC_DEPARTMENT_APPROVED.equals(docStatus) ||\r\n PaymentRequestStatuses.APPDOC_AUTO_APPROVED.equals(docStatus);\r\n\r\n boolean can = false;\r\n if (PaymentRequestStatuses.STATUSES_PREROUTE.contains(docStatus)) {\r\n can = true;\r\n } else if (PaymentRequestStatuses.STATUSES_ENROUTE.contains(docStatus)) {\r\n can = requestCancelIndicator;\r\n } else if (PaymentRequestStatuses.STATUSES_POSTROUTE.contains(docStatus)) {\r\n can = !requestCancelIndicator && !holdIndicator && !extracted;\r\n }\r\n\r\n return can;\r\n }",
"public boolean isSetRecovery() {\n return this.recovery != null;\n }",
"public boolean isXAForbidSameRM()\n {\n return _isXAForbidSameRM;\n }",
"public boolean isSetRappresentanteFiscale()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(RAPPRESENTANTEFISCALE$4) != 0;\r\n }\r\n }",
"public boolean needTryAgain() {\n boolean z = this.mRetryConnectCallAppAbilityCount < 6;\n this.mRetryConnectCallAppAbilityCount++;\n return z;\n }",
"public boolean hasRevealDocument() {\n return revealDocumentBuilder_ != null || revealDocument_ != null;\n }",
"public boolean isRight() {\r\n\t\treturn firstNameState == null && lastNameState == null && steetState == null \r\n\t\t\t\t&& cityState == null && phoneNumberState == null && emailState == null \r\n\t\t\t\t&& usernameState == null && passwordState == null && rolesState == null\r\n\t\t\t\t&& siretState == null && urlState == null && postalCode == null;\r\n\t}",
"boolean getRefuse();",
"boolean isAutoRedeem();",
"@ZAttr(id=779)\n public boolean isReverseProxyUseExternalRoute() {\n return getBooleanAttr(Provisioning.A_zimbraReverseProxyUseExternalRoute, false);\n }",
"public boolean affordRoad() {\n \t\treturn (FREE_BUILD || roads.size() < MAX_ROADS\n \t\t\t\t&& getResources(Type.BRICK) >= 1\n \t\t\t\t&& getResources(Type.LUMBER) >= 1);\n \t}",
"@Override\n @NoProxy\n public boolean isRecurringEntity() {\n return testRecurring() ||\n hasExdates() ||\n hasRdates() ||\n hasExrules() ||\n hasRrules();\n }",
"public boolean getIsRecurring() throws ServiceLocalException {\n\t\treturn this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.IsRecurring) != null;\n\t}",
"public boolean needsResend(){\n return this.getNumNetworkCopies()-this.replicationDegree<0;\n }",
"public boolean isReceiptConfirmationRequested() {\n return getFlow().isReceiptConfirmationRequested();\n }",
"@Override\n\tpublic boolean canEdit(IAccounterServerCore clientObject,\n\t\t\tboolean goingToBeEdit) throws AccounterException {\n\t\treturn true;\n\t}",
"public boolean isForceAccess() {\r\n \t\treturn forceAccess;\r\n \t}",
"@Override\r\n public boolean canCancel(Document document) {\n return false;\r\n }",
"public boolean recovery() {\n if (numOfRecovery < 3) {\n energy = maxEnergy;\n numOfRecovery++;\n return true;\n } else {\n System.out.println(\"This animal can't recovery any more!\");\n return false;\n }\n }",
"@SuppressWarnings(\"unused\")\n private boolean checkIds(CFANode node) {\n\n if (!visited.add(node)) {\n // already handled, do nothing\n return true;\n }\n\n for (CFANode successor : CFAUtils.successorsOf(node)) {\n checkIds(successor);\n }\n\n //node.setReversePostorderId(reversePostorderId2++);\n assert node.getReversePostorderId() == reversePostorderId2++ : \"Node \" + node + \" got \" + node.getReversePostorderId() + \", but should get \" + (reversePostorderId2-1);\n return true;\n }",
"protected boolean verificaRedirecionamentoEsquema(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\t\n \tPlcMsgUtil msgUtil = PlcCDIUtil.getInstance().getInstanceByType(PlcMsgUtil.class, QPlcDefaultLiteral.INSTANCE);\n \t\n \tif (request.getSession().getServletContext().getAttribute(PlcConstants.STARTUP)!=null) {\n \t\t\n \t\tmsgUtil.msg(PlcBeanMessages.JCOMPANY_SCHEMA_SCRIPT_STARTUP, PlcMessage.Cor.msgAmareloPlc.toString()); \t\t\n \t\t\n \t\tif (request.getRequestURI()!=null && request.getRequestURI().indexOf(\"/res-plc/esquema\") < 0 ) { \t\t\t\n\t\t\t\tresponse.sendRedirect(request.getContextPath()+\"/f/t/res-plc/esquema?evento=x\");\n \t\t}\n \t}\n \t\n \t\treturn true;\n\t}",
"boolean getRedact();",
"boolean getRedact();",
"protected boolean isAdvancePendingEntry(GeneralLedgerPendingEntry glpe) {\n return StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CHECK_ACH_DOCUMENT) ||\n StringUtils.equals(glpe.getFinancialDocumentTypeCode(),TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_WIRE_OR_FOREIGN_DRAFT_DOCUMENT);\n }",
"public boolean isReferrerAsOne() {\n return _referrerAsOne;\n }",
"public boolean hasReturnFlightLeg() {\n return returnFlightLeg_ != null;\n }",
"public void checkUnresultedReferral() {\n info(\"We will check, if there is already unresulted referral\");\n BaseWingsSteps.logInAs(Roles.STAFF);\n StaffHomeForm staffHomeForm = new StaffHomeForm();\n if (!staffHomeForm.checkUnresultedReferralsPresent()) {\n Participant participant = new Participant(AccountUtils.getParticipantAccount());\n JobOrder jobOrder = new JobOrder(AccountUtils.getEmployerAccount());\n User staff = new User(Roles.STAFF);\n ReferralSteps.createReferral(participant, jobOrder, staff);\n ReferralSteps.setUnresultedReferralCreationDate(participant);\n BaseWingsSteps.logInAs(Roles.STAFF);\n }\n\n logStep(\"Select unresulted referral->Details->Edit\");\n staffHomeForm.selectUnresultedReferrals();\n }",
"public boolean hasValidRoute() \n {\n return validRoute;\n }",
"@Override\n\t\tpublic boolean wasRetried()\n\t\t{\n\t\t\treturn false;\n\t\t}",
"public boolean isSetAutoForwardToEmailAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AUTOFORWARDTOEMAILADDRESS$10) != 0;\n }\n }",
"public abstract boolean facingRight();",
"public boolean isOnRoute() {\n\t\treturn onRoute;\n\t}",
"public static Boolean tryAgainBtn() throws Exception {\n\t\tboolean checkPage=false;\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"markpage\\\"]/center/button[1]\")).click();\n\t\tif (driver.getPageSource().contains(QandA.getQuestion(0))||driver.getPageSource().contains(QandA.getQuestion(1))||driver.getPageSource().contains(QandA.getQuestion(2))){\n\t\t\tcheckPage=true;\n\t\t}\n\t\treturn checkPage;\n\t}",
"public boolean willNotBeResurrected() {\n return state == State.FRESH || state == State.ERROR;\n }",
"public boolean isConnectedToRendezVous() {\r\n return !rendezVous.isEmpty();\r\n }",
"public boolean isReversible() {\n\t\treturn false;\r\n\t}",
"boolean hasReturnFlightLeg();",
"private boolean isRecruiterRole(String userRole) {\n\t\tlogger.info(\"Entering isRecruiterRole :: USER_ROLE from Session :: \" + userRole);\n\t\tif (\"RECRUITER\".equalsIgnoreCase(userRole)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isCarried() {\n return transportable != null\n && transportable.getLocation() == carrier;\n }",
"@Override\n\t\t\t\t\tpublic boolean isRedirected(HttpRequest request, HttpResponse response, HttpContext context)\n\t\t\t\t\t\t\tthrows ProtocolException {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}",
"boolean hasRevealDocument();",
"public void invalidRoute() \n {\n validRoute = false;\n }",
"public Boolean getRecoveryAttempt() {\n return recoveryAttempt;\n }",
"@Override\n\tpublic final boolean isRedirect()\n\t{\n\t\treturn redirect;\n\t}",
"public boolean isAvailable() {\n return this.isAcceptingRider && this.currentTrip == null;\n }",
"public boolean stopTraversal()\n\t{\n\t\treturn hasCorrelatedCRs;\n\t}",
"public boolean isFacingRight() {\n return isFacingRight;\n }",
"@SystemAPI\n\tboolean needsApproval();",
"public boolean isReclaimed(){\n synchronized (stateLock){\n return state.equals(State.RECLAIMED);\n }\n }",
"public boolean try_toggle() {\n if (Pneumatics.get_instance().get_solenoids()) {\n return retract();\n }\n return try_extend();\n }",
"@Override\n\tpublic boolean isDenied() {\n\t\treturn model.isDenied();\n\t}",
"boolean canRedoExpenseTracker() throws NoUserSelectedException;",
"public void setReRouting() {\r\n\t\tthis.reRouting = true;\r\n\t}",
"private boolean canHaveAsDoctor(Doctor doc) {\n\t\treturn !(doc == null || (this.secopDoc != null && this.secopDoc.equals(doc)));\n\t}",
"@Override\r\n\tpublic boolean checkIfOnTraineeship() {\n\t\treturn false;\r\n\t}",
"public static boolean vacant(Residence r) {\n\t\treturn r.tenant == null;\n\t}",
"public boolean isSetReferer() {\n return this.referer != null;\n }",
"public boolean hasDidUri() {\n return deliveryMethodCase_ == 2;\n }",
"boolean hasResidentYn();",
"@Override\n\tpublic boolean identifiesOffense() {\n\t\treturn false;\n\t}",
"public boolean isLate(){\n Date d = givenBack != null ? givenBack : new Date();\n return expirationDate.before(d);\n }",
"@Override\n\tpublic boolean renew() {\n\t\treturn false;\n\t}",
"public boolean isCorrectEvent()\n {\n return m_fCorrectEvent;\n }",
"public abstract boolean processRouteDocument(Document document);",
"public boolean isSetIs_referral() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __IS_REFERRAL_ISSET_ID);\n }",
"boolean isRepliable();",
"public boolean hasReturnFlightLeg() {\n return returnFlightLegBuilder_ != null || returnFlightLeg_ != null;\n }",
"public boolean isRestricted() {\n return restricted || getFlow().getRestriction() != null;\n }"
]
| [
"0.626645",
"0.60608613",
"0.6044793",
"0.6006933",
"0.59975463",
"0.59469575",
"0.5828336",
"0.5818794",
"0.57645243",
"0.5741783",
"0.5682614",
"0.56738025",
"0.5672024",
"0.5643294",
"0.56207585",
"0.56055534",
"0.55734134",
"0.55006343",
"0.5493765",
"0.5486202",
"0.54546577",
"0.5429927",
"0.5421933",
"0.54207873",
"0.54189974",
"0.5390468",
"0.5388153",
"0.5385132",
"0.5382101",
"0.53557885",
"0.53406364",
"0.5328098",
"0.5309829",
"0.5307707",
"0.5298254",
"0.5293813",
"0.5291062",
"0.5277238",
"0.52582806",
"0.52533907",
"0.5249767",
"0.5237946",
"0.5226981",
"0.5214118",
"0.5207297",
"0.5205485",
"0.5199009",
"0.5187036",
"0.51755726",
"0.5168665",
"0.5159948",
"0.51511544",
"0.51495504",
"0.5145021",
"0.5145021",
"0.51399267",
"0.5138891",
"0.51385057",
"0.5135383",
"0.513274",
"0.51207507",
"0.5112867",
"0.5099528",
"0.50947106",
"0.50873107",
"0.5080326",
"0.50788224",
"0.5076165",
"0.5070845",
"0.5064236",
"0.5059458",
"0.5055488",
"0.5053888",
"0.5048571",
"0.5040765",
"0.5027798",
"0.5027228",
"0.50229794",
"0.50221354",
"0.50200146",
"0.5016942",
"0.50168896",
"0.5014158",
"0.5005542",
"0.5004045",
"0.5002837",
"0.5001006",
"0.5000592",
"0.49997094",
"0.49921814",
"0.4990463",
"0.49902746",
"0.498739",
"0.4985769",
"0.4985237",
"0.49841338",
"0.49778226",
"0.49776757",
"0.4975615",
"0.4972996"
]
| 0.65334874 | 0 |
Customization for "normal" accounting lines the accounting lines which will encumber | protected void customizeExpenseExplicitGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail postable, GeneralLedgerPendingEntry explicitEntry) {
// set the encumbrance update code Set to ENCUMB_UPDT_REFERENCE_DOCUMENT_CD ("R")
explicitEntry.setTransactionEncumbranceUpdateCode(KFSConstants.ENCUMB_UPDT_REFERENCE_DOCUMENT_CD);
// set the offset entry to Debit "D"
explicitEntry.setTransactionDebitCreditCode(KFSConstants.GL_DEBIT_CODE);
explicitEntry.setDocumentNumber(this.getDocumentNumber());
String referenceDocumentNumber = this.getTravelDocumentIdentifier();
if (ObjectUtils.isNotNull(referenceDocumentNumber)) {
explicitEntry.setReferenceFinancialDocumentNumber(referenceDocumentNumber);
explicitEntry.setReferenceFinancialDocumentTypeCode(TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT);
explicitEntry.setReferenceFinancialSystemOriginationCode(TemConstants.ORIGIN_CODE);
}
String balanceType = getTravelEncumbranceService().getEncumbranceBalanceTypeByTripType(this);
if (StringUtils.isNotEmpty(balanceType)) {
explicitEntry.setFinancialBalanceTypeCode(balanceType);
}
explicitEntry.setOrganizationDocumentNumber(getTravelDocumentIdentifier());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void resetAccount() {\r\n super.resetAccount();\r\n this.getNewSourceLine().setAmount(null);\r\n this.getNewSourceLine().setAccountLinePercent(new BigDecimal(0));\r\n }",
"@Override\n public List getSourceAccountingLines() {\n return super.getSourceAccountingLines();\n }",
"public void setLineNetAmt (BigDecimal LineNetAmt);",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZBRNM\", \"LOND\"); // Branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZPBR\", \"IPS2\"); // Posting group id or user id, and group level (5A)\n\t\ttransaction.setFieldValue(\"GZVFR\", \"1000106\"); // Value from date (7S,0)\n\t\ttransaction.setFieldValue(\"GZBRND\", \"LOND\"); // Branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZDRF\", \"0014620010\"); // Users own reference for deals, reconciliation etc (16A)\n\t\ttransaction.setFieldValue(\"GZAMA\", \"1500-\"); // Ordinary amount in minor currency units (15P,0)\n\t\ttransaction.setFieldValue(\"GZCCY\", \"PHP\"); // Currency mnemonic (3A)\n\t\ttransaction.setFieldValue(\"GZNPE\", \"1\"); // Number of posting entries (5P,0)\n\t\ttransaction.setFieldValue(\"GZNR1\", \"STOP\"); // Narrative line 1 (35A)\n\t\ttransaction.setFieldValue(\"GZRFR\", \"N\"); // Referred item? (1A)\n\t\ttransaction.setFieldValue(\"GZAUT\", \"Y\"); // Authorised item? (1A)\n\t\ttransaction.setFieldValue(\"GZSSI\", \"N\"); // Special item? (1A)\n\t\ttransaction.setFieldValue(\"GZTTP\", \"C\"); // Transaction type (1A)\n\t\ttransaction.setFieldValue(\"GZHSRL\", \"0014620010\"); // Serial \"number\" forming the key to a stop order (16A)\n\t\ttransaction.setFieldValue(\"GZHAMT\", \"1500-\"); // Stop order amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZAUTC\", \"MASSEYR1\"); // Referred item authorisation code (12A)\n\t\ttransaction.setFieldValue(\"GZCED\", \"2\"); // Currency edit field (1A)\n\t\ttransaction.setFieldValue(\"GZCHQ\", \"N\"); // Cheque item? (1A)\n\t\ttransaction.setFieldValue(\"GZDRFN\", \"0\"); // Cheque serial number (16P,0)\n\t\ttransaction.setFieldValue(\"GZTCCY\", \"PHP\"); // Transaction currency (3A)\n\t\ttransaction.setFieldValue(\"GZTAMA\", \"1500\"); // Transaction amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZHCCY\", \"PHP\"); // Stop order currency (3A)\n\t\ttransaction.setFieldValue(\"GZPSQ7\", \"0000182\"); // 7 Long posting sequence number (7P,0)\n\t}",
"@Override\n protected boolean beforeSave(boolean newRecord) {\n if (!newRecord){\n if ((is_ValueChanged(X_Z_RemDifInvLinAfecta.COLUMNNAME_PriceEntered)) || (is_ValueChanged(X_Z_RemDifInvLinAfecta.COLUMNNAME_QtyEntered))){\n this.setLineTotalAmt(this.getQtyEntered().multiply(this.getPriceEntered()).setScale(2, RoundingMode.HALF_UP));\n\n MInvoiceLine invoiceLine = (MInvoiceLine) this.getC_InvoiceLine();\n if ((invoiceLine != null) && (invoiceLine.get_ID() > 0)){\n invoiceLine.setQtyInvoiced(this.getQtyEntered());\n invoiceLine.setQtyEntered(this.getQtyEntered());\n invoiceLine.setPriceActual(this.getPriceEntered());\n invoiceLine.setPriceEntered(this.getPriceEntered());\n\n MProduct prod = (MProduct) invoiceLine.getM_Product();\n\n // Impuesto del producto (primero impuesto especial de compra, y si no tiene, entonces el impuesto normal\n if (prod.get_ValueAsInt(\"C_TaxCategory_ID_2\") > 0) {\n MTaxCategory taxCat = new MTaxCategory(getCtx(), prod.get_ValueAsInt(\"C_TaxCategory_ID_2\"), null);\n MTax tax = taxCat.getDefaultTax();\n if (tax != null) {\n if (tax.get_ID() > 0) {\n invoiceLine.setC_Tax_ID(tax.get_ID());\n }\n }\n } else {\n if (prod.getC_TaxCategory_ID() > 0) {\n MTaxCategory taxCat = (MTaxCategory) prod.getC_TaxCategory();\n MTax tax = taxCat.getDefaultTax();\n if (tax != null) {\n if (tax.get_ID() > 0) {\n invoiceLine.setC_Tax_ID(tax.get_ID());\n }\n }\n }\n }\n\n invoiceLine.setLineNetAmt();\n invoiceLine.setTaxAmt();\n invoiceLine.saveEx();\n }\n\n }\n }\n\n return true;\n }",
"public List<TemSourceAccountingLine> getEncumbranceSourceAccountingLines() {\n List<TemSourceAccountingLine> encumbranceLines = new ArrayList<TemSourceAccountingLine>();\n for (TemSourceAccountingLine line : (List<TemSourceAccountingLine>) getSourceAccountingLines()){\n if (TemConstants.ENCUMBRANCE.equals(line.getCardType())){\n encumbranceLines.add(line);\n }\n }\n return encumbranceLines;\n }",
"@Override\n public String toString(){\n return \"\\n\"+String.valueOf(orderId) + \" $\"+String.valueOf(amount)+ \" Name:\"+String.valueOf(vendor);\n }",
"@Override\r\n\tpublic boolean reverseCorrectIt() {\n\t\t\r\n\tMClient client = new MClient(Env.getCtx(), getAD_Client_ID(), get_TrxName());\r\n\t\t\r\n\t\tMCHesLine hline = null;\r\n\t\tfor (int i=0; i < getLines().length; i++){\r\n\t\t\thline = m_lines[i];\r\n\t\t\tMCPreInvoiceLineG lg = new MCPreInvoiceLineG (Env.getCtx(), hline.getC_PreInvoiceLineG_ID(),get_TrxName());\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (getC_Currency_ID()==client.getC_Currency_ID()) \r\n\t\t\t\tlg.setQtyHes_Veb(lg.getQtyHes_Veb().subtract(hline.getQty()));\r\n\t\t\telse \r\n\t\t\t\tlg.setQtyHes_Usd(lg.getQtyHes_Usd().subtract(hline.getQty()));\r\n\t\t\t\r\n\t\t\tlg.save();\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"@Override\n public String getInternalAccounting() {\n\n if(this.internalAccounting == null){\n\n this.internalAccounting = TestDatabase.getInstance().getClientField(token, id, \"internal accounting\");\n }\n return internalAccounting;\n }",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZCCD\", \"B1\"); // Charge code (2A)\n\t\ttransaction.setFieldValue(\"GZAMT\", \"5000\"); // Charge amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZWMN\", \"KSM2020\"); // Warning message (7A)\n\t\ttransaction.setFieldValue(\"GZFLG\", \"N\"); // Stop chqbook issue? (1A)\n\t}",
"public void annualProcess() {\n super.withdraw(annualFee);\n }",
"public interface LaborLedgerExpenseTransferAccountingLine extends AccountingLine, ExternalizableBusinessObject {\n\n /**\n * Gets the emplid\n * \n * @return Returns the emplid.\n */\n public String getEmplid();\n\n /**\n * Gets the laborObject\n * \n * @return Returns the laborObject.\n */\n public LaborLedgerObject getLaborLedgerObject();\n\n /**\n * Gets the payrollEndDateFiscalPeriodCode\n * \n * @return Returns the payrollEndDateFiscalPeriodCode.\n */\n public String getPayrollEndDateFiscalPeriodCode();\n\n /**\n * Gets the payrollEndDateFiscalYear\n * \n * @return Returns the payrollEndDateFiscalYear.\n */\n public Integer getPayrollEndDateFiscalYear();\n\n /**\n * Gets the payrollTotalHours\n * \n * @return Returns the payrollTotalHours.\n */\n public BigDecimal getPayrollTotalHours();\n\n /**\n * Gets the positionNumber\n * \n * @return Returns the positionNumber.\n */\n public String getPositionNumber();\n\n /**\n * Sets the emplid\n * \n * @param emplid The emplid to set.\n */\n public void setEmplid(String emplid);\n\n /**\n * Sets the laborLedgerObject\n * \n * @param laborLedgerObject The laborLedgerObject to set.\n */\n public void setLaborLedgerObject(LaborLedgerObject laborLedgerObject);\n\n /**\n * Sets the payrollEndDateFiscalPeriodCode\n * \n * @param payrollEndDateFiscalPeriodCode The payrollEndDateFiscalPeriodCode to set.\n */\n public void setPayrollEndDateFiscalPeriodCode(String payrollEndDateFiscalPeriodCode);\n\n /**\n * Sets the payrollEndDateFiscalYear\n * \n * @param payrollEndDateFiscalYear The payrollEndDateFiscalYear to set.\n */\n public void setPayrollEndDateFiscalYear(Integer payrollEndDateFiscalYear);\n\n /**\n * Sets the payrollTotalHours\n * \n * @param payrollTotalHours The payrollTotalHours to set.\n */\n public void setPayrollTotalHours(BigDecimal payrollTotalHours);\n\n /**\n * Sets the positionNumber\n * \n * @param positionNumber The positionNumber to set.\n */\n public void setPositionNumber(String positionNumber);\n}",
"@Override\n\tpublic void setupNonExistKeyFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZAB\", \"9999\"); // Account branch (4A)\n\t\ttransaction.setFieldValue(\"GZAN\", \"999999\"); // Basic part of account number (6A)\n\t\ttransaction.setFieldValue(\"GZAS\", \"999\"); // Account suffix (3A)\n\t\ttransaction.setFieldValue(\"GZTCD\", \"999\"); // Transaction code (3A)\n\t}",
"protected void initiateAdvancePaymentAndLines() {\n setDefaultBankCode();\n setTravelAdvance(new TravelAdvance());\n getTravelAdvance().setDocumentNumber(getDocumentNumber());\n setAdvanceTravelPayment(new TravelPayment());\n getAdvanceTravelPayment().setDocumentNumber(getDocumentNumber());\n getAdvanceTravelPayment().setDocumentationLocationCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TravelParameters.DOCUMENTATION_LOCATION_CODE,\n getParameterService().getParameterValueAsString(TemParameterConstants.TEM_DOCUMENT.class,TravelParameters.DOCUMENTATION_LOCATION_CODE)));\n getAdvanceTravelPayment().setCheckStubText(getConfigurationService().getPropertyValueAsString(TemKeyConstants.MESSAGE_TA_ADVANCE_PAYMENT_HOLD_TEXT));\n final java.sql.Date currentDate = getDateTimeService().getCurrentSqlDate();\n getAdvanceTravelPayment().setDueDate(currentDate);\n updatePayeeTypeForAuthorization(); // if the traveler is already initialized, set up payee type on advance travel payment\n setWireTransfer(new PaymentSourceWireTransfer());\n getWireTransfer().setDocumentNumber(getDocumentNumber());\n setAdvanceAccountingLines(new ArrayList<TemSourceAccountingLine>());\n resetNextAdvanceLineNumber();\n TemSourceAccountingLine accountingLine = initiateAdvanceAccountingLine();\n addAdvanceAccountingLine(accountingLine);\n }",
"public static void Ln10() {\r\n EBAS.L10_Timestamp.setText(GtDates.ldate);\r\n \r\n EBAS.L10_First_Sku.setEnabled(false);\r\n EBAS.L10_Qty_Out.setEnabled(false);\r\n EBAS.L10_First_Desc.setEnabled(false);\r\n EBAS.L10_Orig_Sku.setEnabled(false);\r\n EBAS.L10_Orig_Desc.setEnabled(false);\r\n EBAS.L10_Orig_Attr.setEnabled(false);\r\n EBAS.L10_Orig_Size.setEnabled(false);\r\n EBAS.L10_Orig_Retail.setEnabled(false);\r\n EBAS.L10_Manuf_Inspec.setEnabled(false);\r\n EBAS.L10_New_Used.setEnabled(false);\r\n EBAS.L10_Reason_DropDown.setEnabled(false);\r\n EBAS.L10_Desc_Damage.setEnabled(false);\r\n EBAS.L10_Cust_Satisf_ChkBox.setEnabled(false);\r\n EBAS.L10_Warranty_ChkBox.setEnabled(false);\r\n \r\n try {\r\n upDB();\r\n } catch (ClassNotFoundException | SQLException ex) {\r\n Logger.getLogger(EBAS.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"protected List getPersistedAdvanceAccountingLinesForComparison() {\n return SpringContext.getBean(AccountingLineService.class).getByDocumentHeaderIdAndLineType(getAdvanceAccountingLineClass(), getDocumentNumber(), TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n }",
"public Object creditEarningsAndPayTaxes()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setInitialCash : \" + \"Agent\");\r\n/* 144 */ \tgetPriceFromWorld();\r\n/* 145 */ \tgetDividendFromWorld();\r\n/* */ \r\n/* */ \r\n/* 148 */ \tthis.cash -= (this.price * this.intrate - this.dividend) * this.position;\r\n/* 149 */ \tif (this.cash < this.mincash) {\r\n/* 150 */ \tthis.cash = this.mincash;\r\n/* */ }\t\r\n/* */ \r\n/* 153 */ \tthis.wealth = (this.cash + this.price * this.position);\r\n/* */ \r\n/* 155 */ \treturn this;\r\n/* */ }",
"@Override\n\tpublic void tranfermoney() {\n\t\tSystem.out.println(\"hsbc tranfermoney\");\n\t}",
"public void processInternalBilling(ReturnDocument rdoc) {\r\n\r\n if (ObjectUtils.isNull(rdoc.getOrderDocument())\r\n || !this.returnOrderBillingDao.hasAccountsForBilling(rdoc.getDocumentNumber()))\r\n return;\r\n\r\n String docNumber = rdoc.getDocumentNumber();\r\n\r\n String warehouseCode = rdoc.getOrderDocument().getWarehouseCd();\r\n\r\n Map<String, List<FinancialInternalBillingItem>> returnedOrderLines = this.returnOrderBillingDao\r\n .getReturnedOrderLines(docNumber);\r\n Set<String> keys = returnedOrderLines.keySet();\r\n Map<String, List<FinancialAccountingLine>> returnedAccountingLines = getReturnBillingAccountingLines(rdoc);\r\n Warehouse warehouse = rdoc.getOrderDocument().getWarehouse();\r\n\r\n if (warehouse == null)\r\n warehouse = StoresPersistableBusinessObject.getObjectByPrimaryKey(Warehouse.class,\r\n warehouseCode);\r\n\r\n for (String key : keys) {\r\n List<FinancialInternalBillingItem> lineItems = returnedOrderLines.get(key);\r\n List<FinancialAccountingLine> acctLines = returnedAccountingLines.get(key);\r\n if (warehouse != null && warehouse.isActive()) {\r\n FinancialCapitalAssetInformation capitalAssetInformation = null;\r\n String astInfoId = null;\r\n if (key.contains(\"-\") && (astInfoId = key.split(\"-\")[1]) != null) {\r\n capitalAssetInformation = new FinancialCapitalAssetInformation();\r\n MMCapitalAssetInformation assetInfo = SpringContext.getBean(\r\n BusinessObjectService.class).findBySinglePrimaryKey(\r\n MMCapitalAssetInformation.class, astInfoId);\r\n if (assetInfo != null) {\r\n adapt(assetInfo, capitalAssetInformation);\r\n List<MMCapitalAssetInformationDetail> assetInformationDetails = assetInfo\r\n .getCapitalAssetInformationDetails();\r\n if (assetInformationDetails != null) {\r\n for (MMCapitalAssetInformationDetail source : assetInformationDetails) {\r\n FinancialCapitalAssetInformationDetail target = new FinancialCapitalAssetInformationDetail();\r\n adapt(source, target);\r\n capitalAssetInformation.getCapitalAssetInformationDetails().add(\r\n target);\r\n }\r\n }\r\n }\r\n }\r\n DocumentHeader ibDocHeader = processInternalBilling(warehouse, lineItems,\r\n acctLines, capitalAssetInformation);\r\n if (ibDocHeader != null) {\r\n String ibDocNumber = ibDocHeader.getDocumentNumber();\r\n if (astInfoId != null) {\r\n for (ReturnDetail detail : rdoc.getReturnDetails()) {\r\n if (detail.getOrderDetailId().toString().equals(astInfoId)) {\r\n detail.setCreditDocumentNumber(ibDocNumber);\r\n }\r\n }\r\n }\r\n else {\r\n for (ReturnDetail detail : rdoc.getReturnDetails()) {\r\n detail.setCreditDocumentNumber(ibDocNumber);\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n // LOG error here\r\n LOG.warn(\"Warehouse \" + lineItems.get(0).getWarehouseCode()\r\n + \" is not valid, so batch did not post charges to the depts\");\r\n }\r\n }\r\n\r\n }",
"private void creditFundingSection(Locale locale, PdfPTable paymentMethodTable, BigDecimal amount) {\n String message = getMessage(locale, \"pdf.receipt.creditsApplied\");\n Font font = getFont(null, FONT_SIZE_12, Font.NORMAL);\n PdfPCell pinLabelCell = new PdfPCell(new Phrase(message, font));\n PdfPCell amountLabelCell = new PdfPCell(new Phrase(getFormattedAmount(amount), font));\n cellAlignment(pinLabelCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, pinLabelCell, Rectangle.NO_BORDER, 0, 15);\n cellAlignment(amountLabelCell, Element.ALIGN_RIGHT, GRAY_COLOR, Element.ALIGN_BOTTOM);\n cellAddingToTable(paymentMethodTable, amountLabelCell, Rectangle.NO_BORDER, 0, 0);\n }",
"@Override\r\n public String toString() {\r\n String financialAidAsString = \"\";\r\n if (financialAid != 0)\r\n financialAidAsString = \":financial aid $\" + String.format(\"%,.2f\", financialAid);\r\n return super.toString() + \"resident\" + financialAidAsString;\r\n }",
"public BigDecimal getLineNetAmt();",
"@Override\n public String toString () {\n DecimalFormat df= new DecimalFormat(\"####0.00\");\n return \"- $\"+df.format(amount) + \" |\" + entryType.getTypeName() + \"| \" + enterTime;\n }",
"public void savingsWithdrawReceipPrint(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\np.color(0);\np.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Withdrawal ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Withdrawal Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Withdrawal Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Withdrawal Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Withdrawal Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(7).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.addLineSeperator();\np.doubleStrik(true);\n//p.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(12).toString());\n\np.newLine();\np.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }",
"public void invoice(){ //------------------------------->>-----------------------------------void invoice------------------------------->>--------------------------------------------------//\r\n\t\r\n\t\r\n\r\n\t\tSystem.out.println(\"\\n\\n\\n\");\r\n\t\tSystem.out.println(\"--------------------------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"\tSr.No\t||\tName \t||\tQuantity\t||\tPrice\t||\tAmount\t\");\r\n\t\tSystem.out.println(\"--------------------------------------------------------------------------------------------\");\r\n \t\r\n\tfor(i = 1; i <= n; i++){\r\n\r\n\t\tSystem.out.println(\"\\t\"+ i+\"\\t\\t\"+name[i]+\"\\t\\t\"+quantity[i]+\"\\t\\t\\t\"+price[i]+\"\\t\\t\"+amount[i]); \t\t\r\n\t \r\n\t} // end of for loop\r\n\t\tSystem.out.println(\"--------------------------------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"\tTotal\t\t||\t\t\t\t\t\t \t\t\"+ total);\r\n\t\tSystem.out.println(\" For You\t\t||\t\t\t\t\t\t \t\t\"+ cc);\r\n\r\n\t\tSystem.out.println(\"\\n\\n\\n\");\r\n \r\n }",
"@Override\n\tpublic void setupNonExistKeyFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZAB1\", \"9130\"); // Account branch\n\t\ttransaction.setFieldValue(\"GZAN1\", \"234567\"); // Basic number\n\t\ttransaction.setFieldValue(\"GZAS1\", \"034\"); // Account suffix\n\t\ttransaction.setFieldValue(\"GZDRT\", \"010\"); // Dr code\n\t\ttransaction.setFieldValue(\"GZCRT\", \"510\"); // Cr code\n\t\ttransaction.setFieldValue(\"GZPRTS\", \"Y\"); // Statement required\n\t\ttransaction.setFieldValue(\"GZCONR\", \"Y\"); // Confirmation required\n\t\ttransaction.setFieldValue(\"GZCHGE\", \"N\"); // Recalculate charge\n\t}",
"RecordSet generatePremiumAccounting(Record inputRecord);",
"@Override\n\tpublic void setupNonExistKeyFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZAB\", \"0000\"); // Account branch\n\t\ttransaction.setFieldValue(\"GZAN\", \"500035\"); // Account basic number\n\t\ttransaction.setFieldValue(\"GZAS\", \"102\"); // Account suffix\n\t\ttransaction.setFieldValue(\"GZCATP\", \"CARD\"); // Card type\n\t\t// Card type must allow auto generation of card numbers\n\t\ttransaction.setFieldValue(\"GZBCGC\", \"Y\"); // Generate card numbers\n\t}",
"void preWithdraw(double amount) {\n\t\tSystem.out.println(\"Your account is not saver account.\");\n\t}",
"@Override\n\tpublic void encender() {\n\t\tSystem.out.println(\"Encendiendo Computadora\");\n\t\t\n\t}",
"public void addAdvanceAccountingLine(TemSourceAccountingLine line) {\n line.setSequenceNumber(this.getNextAdvanceLineNumber());\n this.advanceAccountingLines.add(line);\n this.nextAdvanceLineNumber = new Integer(getNextAdvanceLineNumber().intValue() + 1);\n }",
"@Override\n\tpublic void setupKeyFieldsAfterMaint(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZRRC\", \"DDC\"); // Return reason code (3A)\n\t\ttransaction.setFieldValue(\"GZCHQS\", \"6\"); // Up to (2S,0)\n\t\ttransaction.setFieldValue(\"GZCHQP\", \"6\"); // Previous up to range (2S,0)\n\t}",
"public void savingsWithdrawReceipPrintStamp(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\np.color(0);\np.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Withdrawal ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Withdrawal Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Withdrawal Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Withdrawal Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Withdrawal Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(7).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.addLineSeperator();\np.doubleStrik(true);\n//p.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(12).toString());\n\np.newLine();\np.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }",
"@Override\r\n\tpublic void NroAccount() {\n\t\t\r\n\t}",
"@Override\n\tpublic void setupKeyFieldsAfterAdd(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZRRC\", \"DDC\"); // Return reason code (3A)\n\t\ttransaction.setFieldValue(\"GZCHQP\", \"5\"); // Up to (2S,0)\n\t\ttransaction.setFieldValue(\"GZCHQS\", \"5\"); // Up to (2S,0)\n\n\t}",
"@Override\n public List<OmOrderHeaders> printPDF(IRequest requestCtx, @StdWho List<OmOrderHeaders> States) {\n PDFReport pdfPrint = new PDFReport();\n\n OmOrderHeaders notice=null;\n //List<OmOrderHeaders> trade=new ArrayList<OmOrderHeaders>();\n\n for (OmOrderHeaders state : States) {\n if (state.getHeaderId() != null) {\n notice=state;\n }\n }\n\n File file = new File(\"C:\\\\Users\\\\PB\\\\Desktop\\\\\"+notice.getOrderNumber()+\".pdf\");\n List<OmOrderLines> omOrderLines = omOrderLinesMapper.selectSumPrice(notice);\n\n\n try {\n\n BaseFont bfChinese=PDFReport.bfChinese;\n Font headfont =PDFReport.headfont;\n Font keyfont=PDFReport.keyfont;\n Font textfont=PDFReport.textfont;\n\n file.createNewFile();\n Document document = new Document();\n\n document.setPageSize(PageSize.A4);\n PdfWriter.getInstance(document, new FileOutputStream(file));\n document.open();\n PdfPTable table= pdfPrint.createTable(6);\n\n table.addCell(pdfPrint.createCell(\".订单打印:\", headfont, Element.ALIGN_LEFT,6,false));\n table.addCell(pdfPrint.createCell(\" \", keyfont, Element.ALIGN_LEFT,6,false));\n table.addCell(pdfPrint.createCell(\" \", keyfont, Element.ALIGN_LEFT,6,false));\n\n\n table.addCell(pdfPrint.createCell(\"订单编号:\", keyfont, Element.ALIGN_RIGHT,0,false));\n //table.addCell(pdfPrint.createCell(notice.getOrderNumber(), textfont, Element.ALIGN_CENTER));\n table.addCell(pdfPrint.createCell(notice.getOrderNumber(), textfont,Element.ALIGN_LEFT));\n table.addCell(pdfPrint.createCell(\"公司名称:\", keyfont, Element.ALIGN_RIGHT,0,false));\n OrgCompanys orgCompanys = orgCompanysMapper.selectByPrimaryKey(notice.getCompanyId());\n table.addCell(pdfPrint.createCell(orgCompanys.getCompanyName(), textfont, Element.ALIGN_LEFT));\n ArCustomers arCustomers = arCustomersMapper.selectByPrimaryKey(notice.getCustomerId());\n table.addCell(pdfPrint.createCell(\"客户名称:\", keyfont, Element.ALIGN_RIGHT,0,false));\n table.addCell(pdfPrint.createCell(arCustomers.getCustomerName(), textfont, Element.ALIGN_LEFT));\n table.addCell(pdfPrint.createCell(\" \", keyfont, Element.ALIGN_LEFT,6,false));\n\n\n table.addCell(pdfPrint.createCell(\"订单日期:\", keyfont, Element.ALIGN_RIGHT,0,false));\n table.addCell(pdfPrint.createCell(new SimpleDateFormat(\"yyyy/MM/dd\").format(notice.getOrderDate()), textfont, Element.ALIGN_LEFT));\n long sum = 0;\n for(int i=0;i<omOrderLines.size();i++) {\n OmOrderLines ot = new OmOrderLines();\n ot = omOrderLines.get(i);\n sum = sum + ot.getOrderdQuantity()*ot.getUnitSellingPrice();\n\n }\n\n\n table.addCell(pdfPrint.createCell(\"订单总金额:\", keyfont, Element.ALIGN_RIGHT,0,false));\n table.addCell(pdfPrint.createCell(String.valueOf(sum), textfont, Element.ALIGN_LEFT));\n table.addCell(pdfPrint.createCell(\"订单状态:\", keyfont, Element.ALIGN_RIGHT,0,false));\n String s=\"\";\n if(notice.getOrderStatus().equals(\"NEW\")){\n s=\"新建\";\n }else if(notice.getOrderStatus().equals(\"SUBMITED\")){\n s=\"已提交\";\n }else if(notice.getOrderStatus().equals(\"APPROVED\")){\n s=\"已审批\";\n }else if(notice.getOrderStatus().equals(\"REJECTED\")){\n s=\"已拒绝\";\n }\n table.addCell(pdfPrint.createCell(s, textfont, Element.ALIGN_LEFT));\n table.addCell(pdfPrint.createCell(\" \", keyfont, Element.ALIGN_LEFT,6,false));\n table.addCell(pdfPrint.createCell(\" \", keyfont, Element.ALIGN_LEFT,6,false));\n\n table.addCell(pdfPrint.createCell(\"主要:\", headfont, Element.ALIGN_LEFT,6,false));\n\t\ttable.addCell(pdfPrint.createCell(\"物料编码\", textfont, Element.ALIGN_CENTER));\n\t\ttable.addCell(pdfPrint.createCell(\"物料描述\", textfont, Element.ALIGN_CENTER));\n\t\ttable.addCell(pdfPrint.createCell(\"产品单位\", textfont, Element.ALIGN_CENTER));\n\t\ttable.addCell(pdfPrint.createCell(\"数量\", textfont, Element.ALIGN_CENTER));\n table.addCell(pdfPrint.createCell(\"销售单价\", textfont, Element.ALIGN_CENTER));\n table.addCell(pdfPrint.createCell(\"金额\", textfont, Element.ALIGN_CENTER));\n\n\t\tfor(int i=0;i<omOrderLines.size();i++){\n OmOrderLines ot = new OmOrderLines ();\n ot = omOrderLines.get(i);\n InvInventoryItems invInventoryItems = invInventoryItemsMapper.selectByPrimaryKey(ot.getInventoryItemId());\n\t\t\ttable.addCell(pdfPrint.createCell(invInventoryItems.getItemCode(), textfont));\n\t\t\ttable.addCell(pdfPrint.createCell(invInventoryItems.getItemDescription(), textfont));\n\t\t\ttable.addCell(pdfPrint.createCell(ot.getOrderQuantityUom(), textfont));\n\t\t\ttable.addCell(pdfPrint.createCell(String.valueOf(ot.getOrderdQuantity()), textfont));\n table.addCell(pdfPrint.createCell(String.valueOf(ot.getUnitSellingPrice()), textfont));\n table.addCell(pdfPrint.createCell(String.valueOf(ot.getOrderdQuantity()*ot.getUnitSellingPrice()), textfont));\n\t\t}\n\t\ttry {\n\t\t\tdocument.add(table);\n\n\t\t}catch(Exception e){e.printStackTrace(); }\n\n\t\tdocument.close();\n }catch(Exception e){e.printStackTrace();}\n\n\n return States;\n }",
"private void generatorder_complete (MInvoice invoice)\r\n\t {\r\n\r\n\t\t trx.commit();\r\n\r\n\t\t // Switch Tabs\r\n\t\t tabbedPane.setSelectedIndex(1);\r\n\t\t //\r\n\t\t iTextInOutGenerated = new StringBuffer();\r\n\t\t iTextInOutGenerated.append(\"<br><br>\")\r\n\t\t .append(\"<b>NOTA DE CREDITO No. \")\r\n\t\t .append(invoice.getDocumentNo())\r\n\t\t .append(\"</b><br><br>\");\r\n\t\t MInvoiceLine[] fromLines = invoice.getLines();\r\n\t\t for (int i = 0; i < fromLines.length; i++)\r\n\t\t {\r\n\t\t\t MInvoiceLine line = fromLines[i];\r\n\t\t\t iTextInOutGenerated.append(line.getQtyInvoiced().setScale(2, BigDecimal.ROUND_HALF_UP));\t\t\t\t\r\n\t\t\t iTextInOutGenerated.append(\" \");\r\n\t\t\t iTextInOutGenerated.append(MUOM.get(Env.getCtx(), line.getC_UOM_ID()).getName());\r\n\t\t\t iTextInOutGenerated.append(\" \");\r\n\t\t\t iTextInOutGenerated.append(line.getName());\r\n\t\t\t iTextInOutGenerated.append(\" \");\r\n\t\t\t iTextInOutGenerated.append(line.getLineNetAmt().setScale(2, BigDecimal.ROUND_HALF_UP));\r\n\t\t\t iTextInOutGenerated.append(\"<br>\");\r\n\t\t }\r\n\t\t info.setText(iTextInOutGenerated.toString());\r\n\r\n\t\t //\tGet results\r\n\t }",
"@Override\n\tpublic void setupExistKeyFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZAB\", \"0543\"); // Account branch (4A)\n\t\ttransaction.setFieldValue(\"GZAN\", \"001462\"); // Basic part of account number (6A)\n\t\ttransaction.setFieldValue(\"GZAS\", \"001\"); // Account suffix (3A)\n\t\ttransaction.setFieldValue(\"GZTCD\", \"209\"); // Transaction code (3A)\n\t}",
"protected List<String> defaultKeyOfExpenseTransferAccountingLine() {\n List<String> defaultKey = new ArrayList<String>();\n\n defaultKey.add(KFSPropertyConstants.POSTING_YEAR);\n defaultKey.add(KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE);\n defaultKey.add(KFSPropertyConstants.ACCOUNT_NUMBER);\n defaultKey.add(KFSPropertyConstants.SUB_ACCOUNT_NUMBER);\n\n defaultKey.add(KFSPropertyConstants.BALANCE_TYPE_CODE);\n defaultKey.add(KFSPropertyConstants.FINANCIAL_OBJECT_CODE);\n defaultKey.add(KFSPropertyConstants.FINANCIAL_SUB_OBJECT_CODE);\n\n defaultKey.add(KFSPropertyConstants.EMPLID);\n defaultKey.add(KFSPropertyConstants.POSITION_NUMBER);\n\n defaultKey.add(LaborPropertyConstants.PAYROLL_END_DATE_FISCAL_YEAR);\n defaultKey.add(LaborPropertyConstants.PAYROLL_END_DATE_FISCAL_PERIOD_CODE);\n\n return defaultKey;\n }",
"private void setUpLedger() {\n _ledgerLine = new Line();\n _ledgerLine.setStrokeWidth(Constants.STROKE_WIDTH);\n _staffLine = new Line();\n _staffLine.setStrokeWidth(1);\n }",
"public static void deleteEncumLines(EfinBudgetManencum encum, AccountingCombination com,\n EscmProposalMgmt proposal, EscmProposalmgmtLine proposalmgmtline) {\n EfinBudgetManencumlines line = null;\n List<EfinBudgetManencumlines> lineList = new ArrayList<EfinBudgetManencumlines>();\n List<EscmProposalmgmtLine> propsallnLs = null;\n try {\n\n OBQuery<EfinBudgetManencumlines> delLineQry = OBDal.getInstance()\n .createQuery(EfinBudgetManencumlines.class, \" as e where e.manualEncumbrance.id=:encumID \"\n + \" and e.accountingCombination.id=:acctID and e.isauto='Y' \");\n delLineQry.setNamedParameter(\"encumID\", encum.getId());\n delLineQry.setNamedParameter(\"acctID\", com.getId());\n delLineQry.setMaxResult(1);\n lineList = delLineQry.list();\n if (lineList.size() > 0) {\n line = lineList.get(0);\n log.debug(\"line:\" + line);\n if (proposal != null) {\n OBQuery<EscmProposalmgmtLine> propsalln = OBDal.getInstance().createQuery(\n EscmProposalmgmtLine.class,\n \" as e where e.escmProposalmgmt.id=:proposalId and e.efinBudgmanencumline.id=:encumLnId\");\n propsalln.setNamedParameter(\"proposalId\", proposal.getId());\n propsalln.setNamedParameter(\"encumLnId\", line.getId());\n propsallnLs = propsalln.list();\n } else {\n OBQuery<EscmProposalmgmtLine> propsalln = OBDal.getInstance().createQuery(\n EscmProposalmgmtLine.class,\n \" as e where e.id=:proposalLineId and e.efinBudgmanencumline.id=:encumLnId\");\n propsalln.setNamedParameter(\"proposalLineId\", proposalmgmtline.getId());\n propsalln.setNamedParameter(\"encumLnId\", line.getId());\n propsallnLs = propsalln.list();\n }\n\n if (propsallnLs.size() > 0) {\n for (EscmProposalmgmtLine prosalline : propsallnLs) {\n prosalline.setEfinBudgmanencumline(null);\n OBDal.getInstance().save(prosalline);\n }\n }\n encum.getEfinBudgetManencumlinesList().remove(line);\n encum.setDocumentStatus(\"DR\");\n OBDal.getInstance().remove(line);\n }\n encum.setDocumentStatus(\"CO\");\n OBDal.getInstance().flush();\n } catch (Exception e) {\n OBDal.getInstance().rollbackAndClose();\n log.error(\"Exception in deleteEncumLines \" + e, e);\n }\n }",
"@Override\n\tpublic void prepareInvoice(){\n\t\tSystem.out.println(\"invoice prepared...\");\n\t}",
"@Override\r\n\tpublic void entregarDinero() {\n\t\tSystem.out.println(\"Total de dinero entrgado\");\r\n\t}",
"@Override\r\n\tvoid withdraw(double amount) {\n\t\tsuper.withdraw(amount);\r\n\t\tif(minimumblc>500)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"you have withdraw rupees\"+ (amount));\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"withdraw failed \");\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n\tpublic void setupExistKeyFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZAB1\", \"9132\"); // Account branch\n\t\ttransaction.setFieldValue(\"GZAN1\", \"234567\"); // Basic number\n\t\ttransaction.setFieldValue(\"GZAS1\", \"012\"); // Account suffix\n\t\ttransaction.setFieldValue(\"GZDRT\", \"010\"); // Dr code\n\t\ttransaction.setFieldValue(\"GZCRT\", \"510\"); // Cr code\n\t\ttransaction.setFieldValue(\"GZPRTS\", \"Y\"); // Statement required\n\t\ttransaction.setFieldValue(\"GZCONR\", \"Y\"); // Confirmation required\n\t\ttransaction.setFieldValue(\"GZCHGE\", \"N\"); // Recalculate charge\n\t}",
"@Override\n public String toString() {\n return \"\" + currency + amount;\n }",
"protected KualiDecimal calculatePendEncum1(boolean isYearEndDocument, String extrnlEncumFinBalanceTypCd, String intrnlEncumFinBalanceTypCd, String preencumbranceFinBalTypeCd, Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String acctSufficientFundsFinObjCd, boolean isEqualDebitCode, List expenditureCodes) {\n Criteria criteria = new Criteria();\n\n Criteria sub1 = new Criteria();\n sub1.addEqualTo(OLEConstants.FINANCIAL_BALANCE_TYPE_CODE_PROPERTY_NAME, extrnlEncumFinBalanceTypCd);\n Criteria sub1_1 = new Criteria();\n sub1_1.addEqualTo(OLEConstants.FINANCIAL_BALANCE_TYPE_CODE_PROPERTY_NAME, intrnlEncumFinBalanceTypCd);\n Criteria sub1_2 = new Criteria();\n sub1_2.addEqualTo(OLEConstants.FINANCIAL_BALANCE_TYPE_CODE_PROPERTY_NAME, preencumbranceFinBalTypeCd);\n sub1_1.addOrCriteria(sub1_2);\n sub1.addOrCriteria(sub1_1);\n criteria.addOrCriteria(sub1);\n\n\n criteria.addEqualTo(OLEConstants.UNIVERSITY_FISCAL_YEAR_PROPERTY_NAME, universityFiscalYear);\n criteria.addEqualTo(OLEConstants.CHART_OF_ACCOUNTS_CODE_PROPERTY_NAME, chartOfAccountsCode);\n criteria.addEqualTo(OLEConstants.ACCOUNT_NUMBER_PROPERTY_NAME, accountNumber);\n criteria.addEqualTo(OLEConstants.ACCOUNT_SUFFICIENT_FUNDS_FINANCIAL_OBJECT_CODE_PROPERTY_NAME, acctSufficientFundsFinObjCd);\n criteria.addIn(OLEConstants.FINANCIAL_OBJECT_TYPE_CODE, expenditureCodes);\n\n if (isEqualDebitCode) {\n criteria.addEqualTo(OLEConstants.TRANSACTION_DEBIT_CREDIT_CODE, OLEConstants.GL_DEBIT_CODE);\n }\n else {\n criteria.addNotEqualTo(OLEConstants.TRANSACTION_DEBIT_CREDIT_CODE, OLEConstants.GL_DEBIT_CODE);\n }\n\n criteria.addNotEqualTo(OLEConstants.DOCUMENT_HEADER_PROPERTY_NAME + \".\" + OLEConstants.DOCUMENT_HEADER_DOCUMENT_STATUS_CODE_PROPERTY_NAME, OLEConstants.DocumentStatusCodes.CANCELLED);\n\n if (isYearEndDocument) {\n criteria.addLike(OLEConstants.FINANCIAL_DOCUMENT_TYPE_CODE, YEAR_END_DOC_PREFIX);\n }\n else {\n criteria.addNotLike(OLEConstants.FINANCIAL_DOCUMENT_TYPE_CODE, YEAR_END_DOC_PREFIX);\n }\n\n ReportQueryByCriteria reportQuery = QueryFactory.newReportQuery(GeneralLedgerPendingEntry.class, criteria);\n reportQuery.setAttributes(new String[] { \"sum(\" + OLEConstants.TRANSACTION_LEDGER_ENTRY_AMOUNT + \")\" });\n\n return executeReportQuery(reportQuery);\n\n\n }",
"@Override\n public String toString()\n {\n return String.format(\"%s %s%s: $%,.2f%n%s: %.2f%n\", \"commission\", super\n .toString(), \"gross sales\", getGrossSales(), \"commission rate\",\n getCommissionRate());\n }",
"public JSONObject getInvoiceForGSTR3BTaxable(JSONObject reqParams) throws JSONException, ServiceException {\n /**\n * Get Invoice total sum\n */\n String companyId=reqParams.optString(\"companyid\");\n reqParams.put(\"entitycolnum\", reqParams.optString(\"invoiceentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"invoiceentityValue\"));\n JSONObject jSONObject = new JSONObject();\n List<Object> invoiceData = accEntityGstDao.getInvoiceDataWithDetailsInSql(reqParams);\n reqParams.remove(\"isb2cs\"); // remove to avoid CN index while fetching data\n double taxableAmountInv = 0d;\n double totalAmountInv = 0d;\n double IGSTAmount = 0d;\n double CGSTAmount = 0d;\n double SGSTAmount = 0d;\n double CESSAmount = 0d;\n int count=0;\n if (!reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n for (Object object : invoiceData) {\n Object[] data = (Object[]) object;\n String term = data[1]!=null?data[1].toString():\"\";\n double termamount = data[0]!=null?(Double) data[0]:0;\n count = data[4]!=null?((BigInteger) data[4]).intValue():0;\n totalAmountInv = data[3]!=null?(Double) data[3]:0;\n if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n taxableAmountInv += data[2]!=null?(Double) data[2]:0;\n IGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n taxableAmountInv += data[2]!=null?(Double) data[2]:0;\n CGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n SGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n SGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n CESSAmount += termamount;\n } else if(StringUtil.isNullOrEmpty(term)){\n taxableAmountInv += data[2]!=null?(Double) data[2]:0;\n }\n }\n jSONObject.put(\"count\", count);\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount(taxableAmountInv, companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount(IGSTAmount,companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount(CGSTAmount,companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount(SGSTAmount,companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount(CESSAmount,companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount(IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount(taxableAmountInv+IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n } else {\n jSONObject = accGSTReportService.getSalesInvoiceJSONArrayForGSTR3B(invoiceData, reqParams, companyId);\n }\n return jSONObject;\n }",
"@Override\n\tpublic void setupMaintFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZCHQP\", \"5\"); // Previous up to range (2S,0)\n\t\ttransaction.setFieldValue(\"GZCHQS\", \"6\"); // Up to (2S,0)\n\t\ttransaction.setFieldValue(\"GZAMT\", \"7500\"); // Charge amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZFLG\", \"Y\"); // Stop chqbook issue? (1A)\n\t}",
"@Override\n\tpublic void setupNonExistKeyFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZRRC\", \"DDC\"); // Return reason code (3A)\n\t\ttransaction.setFieldValue(\"GZCHQS\", \"5\"); // Up to (2S,0)\n\t\ttransaction.setFieldValue(\"GZCHQP\", \"5\"); // Up to (2S,0)\n\n\t}",
"protected FinancialAccountingLine createFinancialAccountingLine(WarehouseAccounts mmAcctLine,\r\n KualiDecimal chargeAmt) {\r\n FinancialAccountingLine finAcctLine = new FinancialAccountingLine();\r\n finAcctLine.setAccountNumber(mmAcctLine.getAccountNbr());\r\n finAcctLine.setAmount(chargeAmt);\r\n finAcctLine.setBalanceTypeCode(\"AC\");\r\n finAcctLine.setChartOfAccountsCode(mmAcctLine.getFinCoaCd());\r\n finAcctLine.setFinancialDocumentLineDescription(\"Pay warehouse\"\r\n + mmAcctLine.getWarehouseCd());\r\n finAcctLine.setFinancialDocumentLineTypeCode(MMConstants.FIN_ACCT_LINE_TYP_TO);\r\n finAcctLine.setFinancialObjectCode(mmAcctLine.getFinObjectCd());\r\n finAcctLine.setFinancialSubObjectCode(mmAcctLine.getFinSubObjCd());\r\n finAcctLine.setObjectBudgetOverride(false);\r\n finAcctLine.setObjectBudgetOverrideNeeded(false);\r\n finAcctLine.setOrganizationReferenceId(\"\");\r\n finAcctLine.setOverrideCode(\"\");\r\n finAcctLine.setPostingYear(SpringContext.getBean(FinancialSystemAdaptorFactory.class)\r\n .getFinancialUniversityDateService().getCurrentFiscalYear());\r\n finAcctLine.setProjectCode(mmAcctLine.getProjectCd());\r\n finAcctLine.setReferenceNumber(\"\");\r\n finAcctLine.setReferenceOriginCode(GlConstants.getFinancialSystemOriginCode());\r\n finAcctLine.setReferenceTypeCode(\"\");\r\n finAcctLine.setSalesTaxRequired(false);\r\n finAcctLine.setSubAccountNumber(mmAcctLine.getSubAcctNbr());\r\n return finAcctLine;\r\n }",
"public void updateAccountingSystem(Sale sale)\n {\n \n }",
"@Payable @Entry\n\tpublic ExternallyOwnedAccount(int initialAmount) {}",
"public void beforeTax() {\n TextView beforeView = findViewById(R.id.checkoutPage_beforeTaxValue);\n beforeView.setText(String.format(\"$%.2f\", beforeTaxTotal));\n }",
"private void updateTransaction() {\n LogUtils.logEnterFunction(Tag);\n\n String inputtedAmount = etAmount.getText().toString().trim().replaceAll(\",\", \"\");\n if (inputtedAmount.equals(\"\") || Double.parseDouble(inputtedAmount) == 0) {\n etAmount.setError(getResources().getString(R.string.Input_Error_Amount_Empty));\n return;\n }\n\n if (mAccount == null) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Account_Empty));\n return;\n }\n\n Double amount = Double.parseDouble(inputtedAmount);\n int categoryId = mCategory != null ? mCategory.getId() : 0;\n String description = tvDescription.getText().toString();\n int accountId = mAccount.getId();\n String strEvent = tvEvent.getText().toString();\n Event event = null;\n\n if (!strEvent.equals(\"\")) {\n event = mDbHelper.getEventByName(strEvent);\n if (event == null) {\n long eventId = mDbHelper.createEvent(new Event(0, strEvent, mCal, null));\n if (eventId != -1) {\n event = mDbHelper.getEvent(eventId);\n }\n }\n }\n\n // Less: Repayment, More: Lend\n if(mCategory.getDebtType() == Category.EnumDebt.LESS || mCategory.getDebtType() == Category.EnumDebt.MORE) {\n\n boolean isDebtValid = true;\n if(mCategory.getDebtType() == Category.EnumDebt.LESS) { // Income -> Debt Collecting\n List<Debt> debts = mDbHelper.getAllDebtByPeople(tvPeople.getText().toString());\n\n Double lend = 0.0, debtCollect = 0.0;\n for(Debt debt : debts) {\n if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) {\n lend += debt.getAmount();\n }\n\n if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) {\n debtCollect += debt.getAmount();\n }\n }\n\n if(debtCollect + amount > lend) {\n isDebtValid = false;\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_collect_invalid));\n }\n\n } // End DebtType() == Category.EnumDebt.LESS\n if(isDebtValid) {\n Transaction transaction = new Transaction(mTransaction.getId(),\n TransactionEnum.Income.getValue(),\n amount,\n categoryId,\n description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n int row = mDbHelper.updateTransaction(transaction);\n if (row == 1) { // Update transaction OK\n\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n Debt debt = mDbHelper.getDebtByTransactionId(mTransaction.getId());\n debt.setCategoryId(mCategory.getId());\n debt.setAmount(amount);\n debt.setPeople(tvPeople.getText().toString());\n\n int debtRow = mDbHelper.updateDebt(debt);\n if(debtRow == 1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_successful));\n cleanup();\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n } else {\n // Revert update\n mDbHelper.updateTransaction(mTransaction);\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_fail));\n }\n } else {\n Debt newDebt = new Debt();\n newDebt.setCategoryId(mCategory.getId());\n newDebt.setTransactionId((int) mTransaction.getId());\n newDebt.setAmount(amount);\n newDebt.setPeople(tvPeople.getText().toString());\n\n long debtId = mDbHelper.createDebt(newDebt);\n if(debtId != -1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));\n cleanup();\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n } else {\n // Revert update\n mDbHelper.updateTransaction(mTransaction);\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_fail));\n }\n } // End create new Debt\n\n } // End Update transaction OK\n } // End isDebtValid\n\n } else { // CATEGORY NORMAL\n Transaction transaction = new Transaction(mTransaction.getId(),\n TransactionEnum.Income.getValue(),\n amount,\n categoryId,\n description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n int row = mDbHelper.updateTransaction(transaction);\n if (row == 1) { // Update transaction OK\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n mDbHelper.deleteDebt(mDbHelper.getDebtByTransactionId(mTransaction.getId()).getId());\n }\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n }\n }\n\n LogUtils.logLeaveFunction(Tag);\n }",
"public void setAdvanceAccountingLines(List<TemSourceAccountingLine> advanceAccountingLines) {\n this.advanceAccountingLines = advanceAccountingLines;\n }",
"@Override\n public String toString() {\n return super.toString() + \", Annual Sales: $\" + this.getAnnualSales();\n }",
"public void credit() {\n \tSystem.out.println(\"HSBC--Credit--from US Bank\");\n }",
"@Override\n public JSONObject viewSLInvoiceByAdmin() {\n\n return in_invoicedao.viewInvoiceByAdmin();\n }",
"public boolean customizeExpenseOffsetGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry) {\n boolean customized = false;\n // set the encumbrance update code\n offsetEntry.setTransactionEncumbranceUpdateCode(KFSConstants.ENCUMB_UPDT_REFERENCE_DOCUMENT_CD);\n\n // set the offset entry to Credit \"C\"\n offsetEntry.setTransactionDebitCreditCode(KFSConstants.GL_CREDIT_CODE);\n offsetEntry.setDocumentNumber(this.getDocumentNumber());\n\n String referenceDocumentNumber = this.getTravelDocumentIdentifier();\n if (ObjectUtils.isNotNull(referenceDocumentNumber)) {\n offsetEntry.setReferenceFinancialDocumentNumber(referenceDocumentNumber);\n offsetEntry.setReferenceFinancialDocumentTypeCode(TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT);\n offsetEntry.setReferenceFinancialSystemOriginationCode(TemConstants.ORIGIN_CODE);\n }\n\n String balanceType = getTravelEncumbranceService().getEncumbranceBalanceTypeByTripType(this);\n if (StringUtils.isNotEmpty(balanceType)) {\n offsetEntry.setFinancialBalanceTypeCode(balanceType);\n customized = true;\n }\n\n offsetEntry.setOrganizationDocumentNumber(getTravelDocumentIdentifier());\n return customized;\n }",
"org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine addNewExternalOrderLine();",
"private void prnFOOTR()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif(cl_dat.M_intLINNO_pbst >= 64)\n\t\t\t{\n\t\t\t\tdosREPORT.writeBytes(\"-------------------------------------------------------------------------------------------------------------------------------------\");\t\t\n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPPRN_pbst) && (M_rdbTEXT.isSelected()))\n\t\t\t\t\tprnFMTCHR(dosREPORT,M_strEJT);\n\t\t\t\tif(M_rdbHTML.isSelected())\n\t\t\t\t\tdosREPORT.writeBytes(\"<P CLASS = \\\"breakhere\\\">\");\t\t\t\t\t\t\t\t\n\t\t\t\tprnHEADER();\n\t\t\t}\n\t\t\tdosREPORT.writeBytes(\"-------------------------------------------------------------------------------------------------------------------------------------\\n\");\n\t\t\tdosREPORT.writeBytes (\"\\n\\n\\n\\n\\n\");\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\" \",10));//margin\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPPRN_pbst) && (M_rdbTEXT.isSelected()))\n\t\t\t\tprnFMTCHR(dosREPORT,M_strBOLD);\n\t\t\tif(M_rdbHTML.isSelected())\n\t\t\t\tdosREPORT.writeBytes(\"<B>\");\n\t\t\tdosREPORT.writeBytes(padSTRING('R',\"PREPARED BY\",40));\n\t\t\tdosREPORT.writeBytes(padSTRING('R',\"CHECKED BY \",40));\n\t\t\tdosREPORT.writeBytes(padSTRING('R',\"H.O.D (MHD) \",40));\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPPRN_pbst) && (M_rdbTEXT.isSelected()))\n\t\t\t\tprnFMTCHR(dosREPORT,M_strNOBOLD);\n\t\t\tif(M_rdbHTML.isSelected())\n\t\t\t\tdosREPORT.writeBytes(\"</B>\");\n\t\t\tdosREPORT.writeBytes(\"\\n\");\n\t\t\tdosREPORT.writeBytes(\"-------------------------------------------------------------------------------------------------------------------------------------\\n\");\n\t\t\t\n\t\t\tdosREPORT.writeBytes(\" System generated report, hence signature not required \\n\");\n\t\t\tcl_dat.M_intLINNO_pbst += 8;\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPPRN_pbst))\n\t\t { \n\t\t\t\tprnFMTCHR(dosREPORT,M_strEJT);\n\t\t\t\tprnFMTCHR(dosREPORT,M_strNOCPI17);\n\t\t\t\tprnFMTCHR(dosREPORT,M_strCPI10);\n\t\t\t}\t\n\t\t}\n\t catch(Exception L_EX)\n\t {\n\t\t\tsetMSG(L_EX + \" prnFOOTR\",'E');\n\t\t}\t\n\t}",
"@Payable @Entry\n\tpublic ExternallyOwnedAccount(long initialAmount) {}",
"@Payable @Entry\n\tpublic ExternallyOwnedAccount(BigInteger initialAmount) {}",
"private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }",
"public static void updateManualEncumAppAmt(EscmProposalMgmt proposalmgmt, Boolean iscancel) {\n\n try {\n EscmProposalMgmt baseProposalObj = proposalmgmt.getEscmBaseproposal();\n OBContext.setAdminMode();\n List<EscmProposalmgmtLine> prolineList = proposalmgmt.getEscmProposalmgmtLineList();\n // checking with propsal line\n if (baseProposalObj == null) {\n for (EscmProposalmgmtLine proposalline : prolineList) {\n if (!proposalline.isSummary()) {\n EfinBudgetManencumlines encline = proposalline.getEfinBudgmanencumline();\n if (encline != null) {\n if (\"PAWD\".equals(proposalmgmt.getProposalstatus())) {\n encline.setAPPAmt(encline.getAPPAmt().subtract(proposalline.getAwardedamount()));\n } else {\n encline.setAPPAmt(encline.getAPPAmt().subtract(proposalline.getLineTotal()));\n }\n OBDal.getInstance().save(encline);\n }\n if (iscancel) {\n // BidManagementDAO.insertEncumbranceModification(encline,\n // proposalline.getLineTotal().negate(), null, \"PRO\", null, null);\n } else {\n proposalline.setEfinBudgmanencumline(null);\n OBDal.getInstance().save(proposalline);\n }\n }\n }\n } else if (baseProposalObj != null) {\n for (EscmProposalmgmtLine lines : prolineList) {\n if (!lines.isSummary()) {\n if (lines.getStatus() == null) {\n EfinBudgetManencumlines encline = lines.getEscmOldProposalline()\n .getEfinBudgmanencumline();\n // if reserved then consider new proposal line total\n BigDecimal amountDiffernce = lines.getEscmOldProposalline().getLineTotal()\n .subtract(lines.getLineTotal());\n\n // update in remaining amount\n EfinBudgetManencumlines encumLn = Utility.getObject(EfinBudgetManencumlines.class,\n encline.getId());\n encumLn.setAPPAmt(encumLn.getAPPAmt().add(amountDiffernce));\n encumLn.setRemainingAmount(encumLn.getRemainingAmount().subtract(amountDiffernce));\n OBDal.getInstance().save(encumLn);\n } else if (lines.getStatus() != null && lines.getEscmOldProposalline() != null\n && lines.getEscmOldProposalline().getStatus() == null) {\n EfinBudgetManencumlines encline = lines.getEscmOldProposalline()\n .getEfinBudgmanencumline();\n // if reserved then consider new proposal line total\n BigDecimal amountDiffernce = lines.getEscmOldProposalline().getLineTotal();\n\n // update in remaining amount\n EfinBudgetManencumlines encumLn = Utility.getObject(EfinBudgetManencumlines.class,\n encline.getId());\n encumLn.setAPPAmt(encumLn.getAPPAmt().add(amountDiffernce));\n encumLn.setRemainingAmount(encumLn.getRemainingAmount().subtract(amountDiffernce));\n OBDal.getInstance().save(encumLn);\n }\n }\n }\n }\n\n } catch (final Exception e) {\n log.error(\"Exception in updateManualEncumAppAmt after Reject : \", e);\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"public void addIncomeAmount(KualiDecimal incomeAmount) {\n this.incomeAmount = this.incomeAmount.add(incomeAmount); \n this.totalNumberOfTransactionLines++;\n \n }",
"public void credit() {\n\t System.out.println(\"HSBC--Credit\");\t\t\n\t}",
"protected TemSourceAccountingLine initiateAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setDocumentNumber(getDocumentNumber());\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setSequenceNumber(new Integer(1));\n accountingLine.setCardType(TemConstants.ADVANCE);\n if (this.allParametersForAdvanceAccountingLinesSet()) {\n accountingLine.setChartOfAccountsCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART));\n accountingLine.setAccountNumber(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT));\n accountingLine.setFinancialObjectCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE));\n }\n return accountingLine;\n }\n catch (InstantiationException ie) {\n LOG.error(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName(), ie);\n }\n catch (IllegalAccessException iae) {\n LOG.error(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName(), iae);\n }\n }",
"@Override\r\n\tpublic void operateAmount(String AccountID, BigDecimal amount) {\n\r\n\t}",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZCNEW\", \"Y\"); // Generate new card?\n\t\ttransaction.setFieldValue(\"GZCMOD\", \"A\"); // Mode - this must be 'A' when adding\n\t\ttransaction.setFieldValue(\"GZCNM1\", \"TEST AUTO\"); // Card name 1\n\t}",
"public void withdraw (double amount)\n {\n super.withdraw (amount);\n imposeTransactionFee ();\n }",
"public TemSourceAccountingLine getAdvanceAccountingLine(int index) {\n while (getAdvanceAccountingLines().size() <= index) {\n getAdvanceAccountingLines().add(createNewAdvanceAccountingLine());\n }\n return getAdvanceAccountingLines().get(index);\n }",
"public LoanAccounting getAccounting();",
"public void withdrawalMenu(){\n\t\tstate = ATM_State.WITHDRAW;\n\t\tgui.setDisplay(\"Amount to withdraw: \\n$\");\n\t}",
"public void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);",
"public static void Ln1() {\r\n EBAS.L1_Timestamp.setText(GtDates.ldate);\r\n\r\n EBAS.L1_First_Sku.setEnabled(false);\r\n EBAS.L1_Qty_Out.setEnabled(false);\r\n EBAS.L1_First_Desc.setEnabled(false);\r\n EBAS.L1_Orig_Sku.setEnabled(false);\r\n EBAS.L1_Orig_Desc.setEnabled(false);\r\n EBAS.L1_Orig_Attr.setEnabled(false);\r\n EBAS.L1_Orig_Size.setEnabled(false);\r\n EBAS.L1_Orig_Retail.setEnabled(false);\r\n EBAS.L1_Manuf_Inspec.setEnabled(false);\r\n EBAS.L1_New_Used.setEnabled(false);\r\n EBAS.L1_Reason_DropDown.setEnabled(false);\r\n EBAS.L1_Desc_Damage.setEnabled(false);\r\n EBAS.L1_Cust_Satisf_ChkBox.setEnabled(false);\r\n EBAS.L1_Warranty_ChkBox.setEnabled(false);\r\n \r\n try {\r\n upDB();\r\n } catch (ClassNotFoundException | SQLException ex) {\r\n Logger.getLogger(EBAS.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"@Override\r\n public String toString() {\r\n return String.format(\"Commission Compensation With:\\nGross Sales of: \" + super.grossSales\r\n + \"\\nCommission Rate of: \" + super.commissionRate + \"\\nEarnings: \" + super.earnings());\r\n }",
"public void printAccountInfo(){\n System.out.printf(\"%5d %-20s %8.2f\\n\",accountNum,customerName,balance);\n }",
"@Override\r\n\tpublic void writeRents() {\n\t\t\r\n\t}",
"public void writeBaseSavings(Account account, BufferedWriter bufferedWriter) throws IOException {\n bufferedWriter.write(\"BS @ \" + account.getBaseSavings() + \"\\n\");\n }",
"Credit(int accountNumber, double creditLine, double outstandingBalance, double interestRate){\n super(accountNumber, outstandingBalance);\n this.creditLine = creditLine;\n this.interestRate = interestRate;\n }",
"public String toString()\r\n\t{\r\n\t return \"Accnt nbr \"+getAcctNbr()+\" has balance of $\"+twoDigits.format(getBalance());\r\n\t}",
"private void resolveInlined(ArrayList<String> order_content) {\n for (int i = 0; i < order_content.size(); i++) {\n String line = order_content.get(i);\n if (ColesReceiptItem.Contain_Price(line)) {\n if (!ColesReceiptItem.Is_Per_Unit_Price_Line(line) && (!ColesReceiptItem.Is_Price(line))) {\n String[] items = line.split(\" \");\n order_content.remove(i);\n for (int j = 0; j < items.length; j++)\n order_content.add(i + j, items[j]);\n }\n }\n }\n }",
"public void setAccountNo(String AccountNo) {\n super.setAccountNo(MPaymentValidate.checkNumeric(AccountNo));\n }",
"public void createInvoice() {\n\t}",
"public abstract String withdrawAmount(double amountToBeWithdrawn);",
"public static void Ln4() {\r\n EBAS.L4_Timestamp.setText(GtDates.ldate);\r\n \r\n EBAS.L4_First_Sku.setEnabled(false);\r\n EBAS.L4_Qty_Out.setEnabled(false);\r\n EBAS.L4_First_Desc.setEnabled(false);\r\n EBAS.L4_Orig_Sku.setEnabled(false);\r\n EBAS.L4_Orig_Desc.setEnabled(false);\r\n EBAS.L4_Orig_Attr.setEnabled(false);\r\n EBAS.L4_Orig_Size.setEnabled(false);\r\n EBAS.L4_Orig_Retail.setEnabled(false);\r\n EBAS.L4_Manuf_Inspec.setEnabled(false);\r\n EBAS.L4_New_Used.setEnabled(false);\r\n EBAS.L4_Reason_DropDown.setEnabled(false);\r\n EBAS.L4_Desc_Damage.setEnabled(false);\r\n EBAS.L4_Cust_Satisf_ChkBox.setEnabled(false);\r\n EBAS.L4_Warranty_ChkBox.setEnabled(false);\r\n \r\n try {\r\n upDB();\r\n } catch (ClassNotFoundException | SQLException ex) {\r\n Logger.getLogger(EBAS.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"@Override\n\tpublic boolean withdraw(int accNo, double money) {\n\t\treturn false;\n\t}",
"public void savingsReceipPrint(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\n//p.color(0);\n//p.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Made Receipt ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Savings Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Savings Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Savings Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Savings Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.addLineSeperator();\np.doubleStrik(true);\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(12).toString());\n////p.newLine();\n//p.addLineSeperatorX();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }",
"@Override\n public BigDecimal withdraw(Account account, BigDecimal bigDecimal) {\n return null;\n }",
"private synchronized void print4() {\n try {\n int jNum = 0;\n\n byte[] printText22 = new byte[10240];\n\n byte[] oldText = setAlignCenter('0');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setInternationalCharcters('3');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setWH('4');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = getGbk(\"FoodCiti\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setWH('4');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = getGbk(\"\\nOrder No : \" + order.getOrderNo());\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"\\n-----------------------\\n\");\n oldText = getGbk(\"\\n........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(SessionManager.get(getActivity()).getRestaurantName() + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n String location = SessionManager.get(getActivity()).getRestaurantLocation();\n int spacecount = commacount(location);\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n if (spacecount >= 1) {\n oldText = getGbk(location.substring(0, location.indexOf(',')) + \"\\n\" + location.substring(location.indexOf(',') + 1) + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n } else {\n oldText = getGbk(location + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n }\n\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = getGbk(SessionManager.get(getActivity()).getRestaurantPostalCode() + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"Tel:\" + SessionManager.get(getActivity()).getRestaurantPhonenumber());\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"\\n-----------------------\\n\");\n oldText = getGbk(\"\\n........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n if (order.getOrderSpecialInstruction() != null) {\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(order.getOrderSpecialInstruction());\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"\\n-----------------------\\n\");\n oldText = getGbk(\"\\n........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n }\n\n oldText = setAlignCenter('0');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setWH('5');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setCusorPosition(390);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\" \" + \"GBP\" + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n // Toast.makeText(getContext(),\"Size \"+order.getOrderedItemList().size(),Toast.LENGTH_LONG).show();\n\n for (int i = 0; i < order.getOrderedItemList().size(); i++) {\n\n OrderedItem orderedItem = order.getOrderedItemList().get(i);\n\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('5');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// int qntity = Integer.parseInt(orderedItem.getQuantity());\n oldText = getGbk(\" \" + orderedItem.getQuantity() + \" x \" + orderedItem.getItemData().getItemName());\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setCusorPosition(390);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n Double total_price = Double.valueOf(orderedItem.getTotalPrice()) * Double.valueOf(orderedItem.getQuantity());\n\n oldText = getGbk(\" \" + String.format(Locale.getDefault(), \"%.2f\", total_price) + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n for (int j = 0; j < orderedItem.getSubItemList().size(); j++) {\n\n oldText = setWH('5');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setCusorPosition(35);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n SubItem subItem = orderedItem.getSubItemList().get(j);\n\n String subitemname = subItem.getItemName();\n int subItemOrderQty = Integer.parseInt(subItem.getOrderedQuantity());\n\n if (subItemOrderQty > 1) {\n oldText = getGbk(\" \" + subItem.getOrderedQuantity() + \" x \" + subitemname + \"\\n\");\n } else {\n oldText = getGbk(\" \" + subitemname + \"\\n\");\n }\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n // By Ravi\n// oldText = getGbk(\"........................\\n\");\n// System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n// jNum += oldText.length;\n//////////////////////////////////////////////////////////////////////////////////////////////////////////\n /** TODO\n * change here for print suboptions text\n * **/\n //print text for suboptions items\n if (subItem.getSubOptions() != null && subItem.getSubOptions().size() > 0) {\n List<SubOptions> subOptions = subItem.getSubOptions();\n for (int k = 0; k < subOptions.size(); k++) {\n SubOptions options = subOptions.get(k);\n oldText = getGbk(\" - \" + options.getName() + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n }\n }\n\n }\n\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n /*oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;*/\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"-----------------------\\n\");\n oldText = getGbk(\"........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n }\n\n oldText = setAlignCenter('0');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('5');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"Subtotal : \");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setCusorPosition(390);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = getGbk(\" \" + String.format(\" %.2f\", Double.valueOf(order.getOrderSubtotal())) + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n if (Double.valueOf(order.getDiscount()) > 0) {\n oldText = setAlignCenter('0');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('5');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"Discount : \");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setCusorPosition(390);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = getGbk(\" \" + String.format(\" %.2f\", Double.valueOf(order.getDiscount())) + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n }\n\n\n if (Double.valueOf(order.getTax()) > 0) {\n oldText = setAlignCenter('0');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('5');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"Service Charge : \");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setCusorPosition(390);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n if (order.getTax() != null) {\n oldText = getGbk(\" \" + String.format(\" %.2f\", Double.valueOf(order.getTax())) + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n } else {\n oldText = getGbk(\" \" + \"0.00\" + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n }\n }\n\n if (!order.getOrderDelivery().equals(Consts.PICK_UP) && Double.valueOf(order.getDeliveryCharges()) > 0) {\n oldText = setAlignCenter('0');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('5');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"Delivery Charges : \");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setCusorPosition(390);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = getGbk(\" \" + String.format(\" %.2f\", Double.valueOf(order.getDeliveryCharges())) + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n }\n\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"\\n-----------------------\\n\");\n oldText = getGbk(\"........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('0');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"TOTAL Price: \");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setCusorPosition(370);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n //Toast.makeText(getActivity(),String.valueOf(order.getOrderTotal()),Toast.LENGTH_LONG).show();\n\n oldText = getGbk(\" \" + String.format(\" %.2f\", Double.valueOf(order.getOrderTotal())));\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"\\n-----------------------\\n\");\n oldText = getGbk(\"\\n........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n if (order.getFreenDrinkText() != null && !TextUtils.isEmpty(order.getFreenDrinkText())) {\n oldText = setAlignCenter('0');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n String freeTxt = \"Free \" + order.getFreenDrinkText();\n oldText = getGbk(freeTxt);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n }\n\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"\\n-----------------------\\n\");\n oldText = getGbk(\"\\n........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('4');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n /** TODO\n * change here to print payment method text\n * **/\n //print text for payment method\n if (order.getOrderPaid().equalsIgnoreCase(\"paypal\") || order.getOrderPaid().equalsIgnoreCase(\"worldpay\")) {\n oldText = getGbk(order.getOrderPaid() + \" PAID \" + \"\\n\");\n } else {\n oldText = getGbk(order.getOrderPaid() + \" NOT PAID \" + \"\\n\");\n }\n// oldText = getGbk(\"ORDER BY \" + order.getOrderPaid() + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setWH('4');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n if (order.getOrderDelivery().equals(Consts.PICK_UP)) {\n oldText = getGbk(\"COLLECTION\" + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n } else {\n oldText = getGbk(\"DELIVERY\" + \"\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n }\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n // String strTmp2 = new SimpleDateFormat(\"dd-MM-yyyy hh:mm a\", Locale.UK).format(new Date());\n oldText = getGbk(getDate(order.getOrderTime()));\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"\\n-----------------------\\n\");\n oldText = getGbk(\"\\n........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('0');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('4');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"Customer Details: \" + \"\\n\" +\n order.getUser().getUserName().toUpperCase() + \"\\n\" +\n order.getUser().getAddress().toUpperCase() + \"\\n\" +\n order.getUser().getCity().toUpperCase() + \"\\n\" +\n order.getUser().getPostalCode().toUpperCase() + \"\\n\" +\n order.getUser().getPhNo().toUpperCase()\n );\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"\\n-----------------------\\n\");\n oldText = getGbk(\"\\n........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('5');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"Ref:\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = getGbk(order.getOrderId());\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(false);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n// oldText = getGbk(\"\\n-----------------------\\n\");\n oldText = getGbk(\"\\n........................\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setAlignCenter('1');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = setBold(true);\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = setWH('2');\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n\n oldText = getGbk(\"www.foodciti.co.uk\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n oldText = getGbk(\"\\n\\n\");\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n /*String s = new String(printText22);\n Toast.makeText(getActivity(),s,Toast.LENGTH_LONG).show();*/\n\n oldText = CutPaper();\n System.arraycopy(oldText, 0, printText22, jNum, oldText.length);\n jNum += oldText.length;\n\n Intent intent = new Intent(PrintUtils.ACTION_PRINT_REQUEST);\n intent.putExtra(PrintUtils.PRINT_DATA, printText22);\n localBroadcastManager.sendBroadcast(intent);\n\n// mOutputStream.write(printText22);\n\n } catch (Exception ex) {\n Exlogger exlogger = new Exlogger();\n exlogger.setErrorType(\"Print Error\");\n exlogger.setErrorMessage(ex.getMessage());\n exlogger.setScreenName(\"OrderInfo->>print4() function\");\n logger.addException(exlogger);\n Toast.makeText(getActivity(), ex.getMessage(), Toast.LENGTH_LONG).show();\n\n\n }\n }",
"public void setLINE_NO(BigDecimal LINE_NO) {\r\n this.LINE_NO = LINE_NO;\r\n }",
"public void setLINE_NO(BigDecimal LINE_NO) {\r\n this.LINE_NO = LINE_NO;\r\n }",
"public void setLINE_NO(BigDecimal LINE_NO) {\r\n this.LINE_NO = LINE_NO;\r\n }",
"public void setLINE_NO(BigDecimal LINE_NO) {\r\n this.LINE_NO = LINE_NO;\r\n }",
"@Override\n public String toString()//to show data\n {\n return \"the balance = \" + balance + \"\\n the account_number = \" + account_number + \"\\n\";\n }",
"public void setC_OrderLine_ID (int C_OrderLine_ID);",
"public CustMnjOntSoObinSizline_LineEOImpl() {\n }",
"@Override\npublic void investment() {\n\t\n}"
]
| [
"0.5746537",
"0.56003654",
"0.5513055",
"0.5496479",
"0.54800427",
"0.5455229",
"0.53490615",
"0.5333196",
"0.5304755",
"0.529758",
"0.5280227",
"0.5266371",
"0.5245667",
"0.5243505",
"0.5233789",
"0.52273864",
"0.51924384",
"0.5179395",
"0.51548404",
"0.5153954",
"0.5152909",
"0.5140536",
"0.51254714",
"0.51232636",
"0.51154",
"0.5094382",
"0.50940853",
"0.50874656",
"0.5085128",
"0.5082731",
"0.50788176",
"0.5071275",
"0.5056176",
"0.50434196",
"0.50399053",
"0.50271565",
"0.50232035",
"0.50083464",
"0.50068897",
"0.5004873",
"0.49933293",
"0.49774423",
"0.49769884",
"0.49447095",
"0.49413016",
"0.49399844",
"0.4939707",
"0.49352643",
"0.49314496",
"0.49300444",
"0.4929209",
"0.49286452",
"0.49266374",
"0.4925851",
"0.4918126",
"0.49178725",
"0.49135488",
"0.49135038",
"0.4904933",
"0.49030012",
"0.48969078",
"0.48934478",
"0.48868158",
"0.48842493",
"0.48713368",
"0.4865548",
"0.48641416",
"0.48588544",
"0.48585546",
"0.4855411",
"0.48409215",
"0.4830844",
"0.4827089",
"0.48249286",
"0.4820291",
"0.48194593",
"0.48178384",
"0.4815427",
"0.4813256",
"0.48045433",
"0.48022646",
"0.4797063",
"0.47967505",
"0.47939917",
"0.47905695",
"0.47840348",
"0.47832173",
"0.4775648",
"0.47739935",
"0.47737694",
"0.47734204",
"0.47675908",
"0.47628844",
"0.47602344",
"0.47602344",
"0.47602344",
"0.47602344",
"0.47588003",
"0.4757951",
"0.47566015",
"0.47551844"
]
| 0.0 | -1 |
Customization for accounting lines associated with travel advances | protected void customizeAdvanceExplicitGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail postable, GeneralLedgerPendingEntry explicitEntry) {
final String paymentDocumentType = StringUtils.isBlank(getTravelAdvancePaymentDocumentType()) ? TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CHECK_ACH_DOCUMENT : getTravelAdvancePaymentDocumentType();
explicitEntry.setFinancialDocumentTypeCode(paymentDocumentType);
final String description = MessageFormat.format(getConfigurationService().getPropertyValueAsString(TemKeyConstants.TA_MESSAGE_ADVANCE_ACCOUNTING_LINES_GLPE_DESCRIPTION), getDataDictionaryService().getDocumentTypeNameByClass(getClass()), getDocumentNumber());
final int maxLength = getDataDictionaryService().getAttributeMaxLength(GeneralLedgerPendingEntry.class, KFSPropertyConstants.TRANSACTION_LEDGER_ENTRY_DESC);
explicitEntry.setTransactionLedgerEntryDescription(StringUtils.abbreviate(description, maxLength));
explicitEntry.setOrganizationDocumentNumber(getTravelDocumentIdentifier());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void initiateAdvancePaymentAndLines() {\n setDefaultBankCode();\n setTravelAdvance(new TravelAdvance());\n getTravelAdvance().setDocumentNumber(getDocumentNumber());\n setAdvanceTravelPayment(new TravelPayment());\n getAdvanceTravelPayment().setDocumentNumber(getDocumentNumber());\n getAdvanceTravelPayment().setDocumentationLocationCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TravelParameters.DOCUMENTATION_LOCATION_CODE,\n getParameterService().getParameterValueAsString(TemParameterConstants.TEM_DOCUMENT.class,TravelParameters.DOCUMENTATION_LOCATION_CODE)));\n getAdvanceTravelPayment().setCheckStubText(getConfigurationService().getPropertyValueAsString(TemKeyConstants.MESSAGE_TA_ADVANCE_PAYMENT_HOLD_TEXT));\n final java.sql.Date currentDate = getDateTimeService().getCurrentSqlDate();\n getAdvanceTravelPayment().setDueDate(currentDate);\n updatePayeeTypeForAuthorization(); // if the traveler is already initialized, set up payee type on advance travel payment\n setWireTransfer(new PaymentSourceWireTransfer());\n getWireTransfer().setDocumentNumber(getDocumentNumber());\n setAdvanceAccountingLines(new ArrayList<TemSourceAccountingLine>());\n resetNextAdvanceLineNumber();\n TemSourceAccountingLine accountingLine = initiateAdvanceAccountingLine();\n addAdvanceAccountingLine(accountingLine);\n }",
"protected TemSourceAccountingLine initiateAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setDocumentNumber(getDocumentNumber());\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setSequenceNumber(new Integer(1));\n accountingLine.setCardType(TemConstants.ADVANCE);\n if (this.allParametersForAdvanceAccountingLinesSet()) {\n accountingLine.setChartOfAccountsCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART));\n accountingLine.setAccountNumber(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT));\n accountingLine.setFinancialObjectCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE));\n }\n return accountingLine;\n }\n catch (InstantiationException ie) {\n LOG.error(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName(), ie);\n }\n catch (IllegalAccessException iae) {\n LOG.error(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName(), iae);\n }\n }",
"public TemSourceAccountingLine createNewAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setCardType(TemConstants.ADVANCE); // really, card type is ignored but it is validated so we have to set something\n accountingLine.setFinancialObjectCode(this.getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE, KFSConstants.EMPTY_STRING));\n return accountingLine;\n }\n catch (IllegalAccessException iae) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", iae);\n }\n catch (InstantiationException ie) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", ie);\n }\n }",
"public void addAdvanceAccountingLine(TemSourceAccountingLine line) {\n line.setSequenceNumber(this.getNextAdvanceLineNumber());\n this.advanceAccountingLines.add(line);\n this.nextAdvanceLineNumber = new Integer(getNextAdvanceLineNumber().intValue() + 1);\n }",
"public void propagateAdvanceInformationIfNeeded() {\n if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().getTravelAdvanceRequested() != null) {\n if (!ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setCheckTotalAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n final TemSourceAccountingLine maxAmountLine = getAccountingLineWithLargestAmount();\n if (!TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus())) {\n getAdvanceAccountingLines().get(0).setAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n if (!allParametersForAdvanceAccountingLinesSet() && !TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus()) && !advanceAccountingLinesHaveBeenModified(maxAmountLine)) {\n // we need to set chart, account, sub-account, and sub-object from account with largest amount from regular source lines\n if (maxAmountLine != null) {\n getAdvanceAccountingLines().get(0).setChartOfAccountsCode(maxAmountLine.getChartOfAccountsCode());\n getAdvanceAccountingLines().get(0).setAccountNumber(maxAmountLine.getAccountNumber());\n getAdvanceAccountingLines().get(0).setSubAccountNumber(maxAmountLine.getSubAccountNumber());\n }\n }\n // let's also propogate the due date\n if (getTravelAdvance().getDueDate() != null && !ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setDueDate(getTravelAdvance().getDueDate());\n }\n }\n }",
"public void setAdvanceAccountingLines(List<TemSourceAccountingLine> advanceAccountingLines) {\n this.advanceAccountingLines = advanceAccountingLines;\n }",
"protected List getPersistedAdvanceAccountingLinesForComparison() {\n return SpringContext.getBean(AccountingLineService.class).getByDocumentHeaderIdAndLineType(getAdvanceAccountingLineClass(), getDocumentNumber(), TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n }",
"public TemSourceAccountingLine getAdvanceAccountingLine(int index) {\n while (getAdvanceAccountingLines().size() <= index) {\n getAdvanceAccountingLines().add(createNewAdvanceAccountingLine());\n }\n return getAdvanceAccountingLines().get(index);\n }",
"public double get_additional_line_cost() {\n\t\treturn additionallinecost;\n\t}",
"public interface LaborLedgerExpenseTransferAccountingLine extends AccountingLine, ExternalizableBusinessObject {\n\n /**\n * Gets the emplid\n * \n * @return Returns the emplid.\n */\n public String getEmplid();\n\n /**\n * Gets the laborObject\n * \n * @return Returns the laborObject.\n */\n public LaborLedgerObject getLaborLedgerObject();\n\n /**\n * Gets the payrollEndDateFiscalPeriodCode\n * \n * @return Returns the payrollEndDateFiscalPeriodCode.\n */\n public String getPayrollEndDateFiscalPeriodCode();\n\n /**\n * Gets the payrollEndDateFiscalYear\n * \n * @return Returns the payrollEndDateFiscalYear.\n */\n public Integer getPayrollEndDateFiscalYear();\n\n /**\n * Gets the payrollTotalHours\n * \n * @return Returns the payrollTotalHours.\n */\n public BigDecimal getPayrollTotalHours();\n\n /**\n * Gets the positionNumber\n * \n * @return Returns the positionNumber.\n */\n public String getPositionNumber();\n\n /**\n * Sets the emplid\n * \n * @param emplid The emplid to set.\n */\n public void setEmplid(String emplid);\n\n /**\n * Sets the laborLedgerObject\n * \n * @param laborLedgerObject The laborLedgerObject to set.\n */\n public void setLaborLedgerObject(LaborLedgerObject laborLedgerObject);\n\n /**\n * Sets the payrollEndDateFiscalPeriodCode\n * \n * @param payrollEndDateFiscalPeriodCode The payrollEndDateFiscalPeriodCode to set.\n */\n public void setPayrollEndDateFiscalPeriodCode(String payrollEndDateFiscalPeriodCode);\n\n /**\n * Sets the payrollEndDateFiscalYear\n * \n * @param payrollEndDateFiscalYear The payrollEndDateFiscalYear to set.\n */\n public void setPayrollEndDateFiscalYear(Integer payrollEndDateFiscalYear);\n\n /**\n * Sets the payrollTotalHours\n * \n * @param payrollTotalHours The payrollTotalHours to set.\n */\n public void setPayrollTotalHours(BigDecimal payrollTotalHours);\n\n /**\n * Sets the positionNumber\n * \n * @param positionNumber The positionNumber to set.\n */\n public void setPositionNumber(String positionNumber);\n}",
"public JSONObject getAdvanceForGSTR3BTaxable(JSONObject reqParams) throws JSONException, ServiceException {\n String companyId=reqParams.optString(\"companyid\");\n JSONObject jSONObject = new JSONObject();\n double taxableAmountAdv = 0d;\n double IGSTAmount = 0d;\n double CGSTAmount = 0d;\n double SGSTAmount = 0d;\n double CESSAmount = 0d;\n reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n if (reqParams.optBoolean(\"at\")) {\n /**\n * Get Advance for which invoice not linked yet\n */\n\n reqParams.put(\"at\", true);\n List<Object> receiptList = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n JSONArray bulkData = gSTR1DeskeraServiceDao.createJsonForAdvanceDataFetchedFromDB(receiptList, reqParams);\n Map<String, JSONArray> advanceMap = AccountingManager.getSortedArrayMapBasedOnJSONAttribute(bulkData, GSTRConstants.receiptadvanceid);\n for (String advdetailkey : advanceMap.keySet()) {\n double rate = 0d;\n JSONArray adDetailArr = advanceMap.get(advdetailkey);\n JSONObject advanceobj = adDetailArr.getJSONObject(0);\n taxableAmountAdv += advanceobj.optDouble(GSTRConstants.receiptamount) - advanceobj.optDouble(GSTRConstants.receipttaxamount);\n for (int index = 0; index < adDetailArr.length(); index++) {\n JSONObject invdetailObj = adDetailArr.getJSONObject(index);\n String defaultterm = invdetailObj.optString(GSTRConstants.defaultterm);\n\n /**\n * Iterate applied GST and put its Percentage and Amount\n * accordingly\n */\n double termamount = invdetailObj.optDouble(GSTRConstants.termamount);\n double taxrate = invdetailObj.optDouble(GSTRConstants.taxrate);\n /**\n * calculate tax amount by considering partial case\n */\n termamount = (advanceobj.optDouble(GSTRConstants.receiptamount) - advanceobj.optDouble(GSTRConstants.receipttaxamount)) * invdetailObj.optDouble(GSTRConstants.taxrate) / 100;\n if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n IGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n CGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n SGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n SGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n CESSAmount += termamount;\n }\n }\n }\n\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n// List<Object> AdvData = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n// for (Object object : AdvData) {\n// Object[] data = (Object[]) object;\n// String term = data[1].toString();\n// double termamount = (Double) data[0];\n// if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n// taxableAmountAdv += (Double) data[2];\n// IGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n// taxableAmountAdv += (Double) data[2];\n// CGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n// SGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n// SGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n// CESSAmount += termamount;\n// }\n// }\n } else {\n /**\n * Get Advance for which invoice isLinked\n */\n reqParams.put(\"atadj\", true);\n List<Object> receiptList = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n JSONArray bulkData = gSTR1DeskeraServiceDao.createJsonForAdvanceDataFetchedFromDB(receiptList, reqParams);\n Map<String, JSONArray> advanceMap = AccountingManager.getSortedArrayMapBasedOnJSONAttribute(bulkData, GSTRConstants.receiptadvanceid);\n for (String advdetailkey : advanceMap.keySet()) {\n double rate = 0d;\n JSONArray adDetailArr = advanceMap.get(advdetailkey);\n JSONObject advanceobj = adDetailArr.getJSONObject(0);\n taxableAmountAdv += advanceobj.optDouble(GSTRConstants.adjustedamount);\n for (int index = 0; index < adDetailArr.length(); index++) {\n JSONObject invdetailObj = adDetailArr.getJSONObject(index);\n String defaultterm = invdetailObj.optString(GSTRConstants.defaultterm);\n\n /**\n * Iterate applied GST and put its Percentage and Amount\n * accordingly\n */\n double termamount = invdetailObj.optDouble(GSTRConstants.termamount);\n double taxrate = invdetailObj.optDouble(GSTRConstants.taxrate);\n /**\n * calculate tax amount by considering partial case\n */\n termamount = advanceobj.optDouble(GSTRConstants.adjustedamount) * invdetailObj.optDouble(GSTRConstants.taxrate) / 100;\n if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n IGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n CGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n SGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n SGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n CESSAmount += termamount;\n }\n }\n }\n\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n// List<Object> AdvDataLinked = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n// for (Object object : AdvDataLinked) {\n// Object[] data = (Object[]) object;\n// String term = data[1].toString();\n// double termamount = (Double) data[0];\n// taxableAmountAdv = (Double) data[2];\n// if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n// taxableAmountAdv += (Double) data[2];\n// IGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n// taxableAmountAdv += (Double) data[2];\n// CGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n// SGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n// SGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n// CESSAmount += termamount;\n// }\n// }\n }\n\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount(taxableAmountAdv,companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount(IGSTAmount,companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount(CGSTAmount,companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount(SGSTAmount,companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount(CESSAmount,companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount(IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount(taxableAmountAdv+IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n return jSONObject;\n }",
"public void setLineNetAmt (BigDecimal LineNetAmt);",
"public Object creditEarningsAndPayTaxes()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setInitialCash : \" + \"Agent\");\r\n/* 144 */ \tgetPriceFromWorld();\r\n/* 145 */ \tgetDividendFromWorld();\r\n/* */ \r\n/* */ \r\n/* 148 */ \tthis.cash -= (this.price * this.intrate - this.dividend) * this.position;\r\n/* 149 */ \tif (this.cash < this.mincash) {\r\n/* 150 */ \tthis.cash = this.mincash;\r\n/* */ }\t\r\n/* */ \r\n/* 153 */ \tthis.wealth = (this.cash + this.price * this.position);\r\n/* */ \r\n/* 155 */ \treturn this;\r\n/* */ }",
"public void setTravelAdvance(TravelAdvance travelAdvance) {\n this.travelAdvance = travelAdvance;\n }",
"private void setUpLedger() {\n _ledgerLine = new Line();\n _ledgerLine.setStrokeWidth(Constants.STROKE_WIDTH);\n _staffLine = new Line();\n _staffLine.setStrokeWidth(1);\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 }",
"protected void setLineTaxInformation(JSONObject lineJson) throws JSONException {\n final JSONObject taxes = lineJson.getJSONObject(\"taxLines\");\n final JSONArray names = taxes.names();\n BigDecimal totalTax = BigDecimal.ZERO;\n for (int i = 0; i < names.length(); i++) {\n final String name = names.getString(i);\n final JSONObject taxInfo = taxes.getJSONObject(name);\n if (i == 0) {\n lineJson.put(\"tax\", name);\n }\n if (!lineJson.has(\"lineRate\") && taxInfo.has(\"rate\")) {\n lineJson.put(\"lineRate\", (double) ((100.0 + taxInfo.getInt(\"rate\")) / 100.0));\n }\n totalTax = totalTax.add(new BigDecimal(taxInfo.getDouble(\"amount\")));\n }\n if (!lineJson.has(\"taxAmount\")) {\n lineJson.put(\"taxAmount\", totalTax.doubleValue());\n }\n }",
"@Override\n public List getSourceAccountingLines() {\n return super.getSourceAccountingLines();\n }",
"org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine addNewExternalOrderLine();",
"public interface CreditLineService {\n\n\t/**\n\t * Calcula o montante <i>amount</i> final que cada {@link Client} tem ja com o juros\n\t * calculados conforme regra.\n\t * \n\t * @param client - O client relativo.\n\t * @param venture - O tipo de Risco. Veja mais em {@link Venture}\n\t * @param value - O valor solicitado de emprestimo.\n\t * @return - O objeto contendo valor calculado mais os dados do cliente Veja mais em {@link Amount}.\n\t */\n\tAmount calculateAmount(Client client, Venture venture, BigDecimal value);\n\n\t/**\n\t * Calcula o valor do montante final que cada {@link Client} tem ja com o juros\n\t * calculados conforme regra.\n\t * \n\t * @param client - O client relativo.\n\t * @param venture - O tipo de Risco. Veja mais em {@link Venture}\n\t * @param value - O valor solicitado de emprestimo.\n\t * @return - O objeto contendo valor calculado mais os dados do cliente Veja mais em {@link Amount}.\n\t */\n\tBigDecimal calculateAmountValue(Venture venture, BigDecimal value);\n}",
"public void setOrderLine (MOrderLine oLine, int M_Locator_ID, BigDecimal Qty)\n\t{\n\t\tMOrgPOS orgpos = MOrgPOS.getOrgPos(getCtx(), oLine.getParent().getAD_Org_ID(), get_Trx());\n\t\tif(M_Locator_ID > 0 && (oLine.getParent().getC_DocTypeTarget_ID() == orgpos.getDocType_Ticket_ID()))\n\t\t\tM_Locator_ID = oLine.get_ValueAsInt(\"M_Locator_ID\")>0?oLine.get_ValueAsInt(\"M_Locator_ID\"):orgpos.getM_LocatorStock_ID();\n\t\tsetC_OrderLine_ID(oLine.getC_OrderLine_ID());\n\t\tsetLine(oLine.getLine());\n\t\tsetC_UOM_ID(oLine.getC_UOM_ID());\n\t\tMProduct product = oLine.getProduct();\n\t\tif (product == null)\n\t\t{\n\t\t\tsetM_Product_ID(0);\n\t\t\tsetM_AttributeSetInstance_ID(0);\n\t\t\tsuper.setM_Locator_ID(0);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetM_Product_ID(oLine.getM_Product_ID());\n\t\t\tsetM_AttributeSetInstance_ID(oLine.getM_AttributeSetInstance_ID());\n\t\t\t//\n\t\t\tif (product.isItem())\n\t\t\t{\n\t\t\t\tif (M_Locator_ID == 0)\n\t\t\t\t\tsetM_Locator_ID(Qty);\t//\trequires warehouse, product, asi\n\t\t\t\telse\n\t\t\t\t\tsetM_Locator_ID(M_Locator_ID);\n\t\t\t}\n\t\t\telse\n\t\t\t\tsuper.setM_Locator_ID(0);\n\t\t}\n\t\tsetC_Charge_ID(oLine.getC_Charge_ID());\n\t\tsetDescription(oLine.getDescription());\n\t\tsetIsDescription(oLine.isDescription());\n\t\t//\n\t\tsetAD_Org_ID(oLine.getAD_Org_ID());\n\t\tsetC_Project_ID(oLine.getC_Project_ID());\n\t\tsetC_ProjectPhase_ID(oLine.getC_ProjectPhase_ID());\n\t\tsetC_ProjectTask_ID(oLine.getC_ProjectTask_ID());\n\t\tsetC_Activity_ID(oLine.getC_Activity_ID());\n\t\tsetC_Campaign_ID(oLine.getC_Campaign_ID());\n\t\tsetAD_OrgTrx_ID(oLine.getAD_OrgTrx_ID());\n\t\tsetUser1_ID(oLine.getUser1_ID());\n\t\tsetUser2_ID(oLine.getUser2_ID());\n\t}",
"private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }",
"public void setAdvanceTravelPayment(TravelPayment advanceTravelPayment) {\n this.advanceTravelPayment = advanceTravelPayment;\n }",
"public BigDecimal getLineNetAmt();",
"public boolean allParametersForAdvanceAccountingLinesSet() {\n // not checking the object code because that will need to be set no matter what - every advance accounting line will use that\n return (!StringUtils.isBlank(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT, KFSConstants.EMPTY_STRING)) &&\n !StringUtils.isBlank(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART, KFSConstants.EMPTY_STRING)));\n }",
"public OMAbstractLine() {\n super();\n }",
"protected FinancialAccountingLine createFinancialAccountingLine(WarehouseAccounts mmAcctLine,\r\n KualiDecimal chargeAmt) {\r\n FinancialAccountingLine finAcctLine = new FinancialAccountingLine();\r\n finAcctLine.setAccountNumber(mmAcctLine.getAccountNbr());\r\n finAcctLine.setAmount(chargeAmt);\r\n finAcctLine.setBalanceTypeCode(\"AC\");\r\n finAcctLine.setChartOfAccountsCode(mmAcctLine.getFinCoaCd());\r\n finAcctLine.setFinancialDocumentLineDescription(\"Pay warehouse\"\r\n + mmAcctLine.getWarehouseCd());\r\n finAcctLine.setFinancialDocumentLineTypeCode(MMConstants.FIN_ACCT_LINE_TYP_TO);\r\n finAcctLine.setFinancialObjectCode(mmAcctLine.getFinObjectCd());\r\n finAcctLine.setFinancialSubObjectCode(mmAcctLine.getFinSubObjCd());\r\n finAcctLine.setObjectBudgetOverride(false);\r\n finAcctLine.setObjectBudgetOverrideNeeded(false);\r\n finAcctLine.setOrganizationReferenceId(\"\");\r\n finAcctLine.setOverrideCode(\"\");\r\n finAcctLine.setPostingYear(SpringContext.getBean(FinancialSystemAdaptorFactory.class)\r\n .getFinancialUniversityDateService().getCurrentFiscalYear());\r\n finAcctLine.setProjectCode(mmAcctLine.getProjectCd());\r\n finAcctLine.setReferenceNumber(\"\");\r\n finAcctLine.setReferenceOriginCode(GlConstants.getFinancialSystemOriginCode());\r\n finAcctLine.setReferenceTypeCode(\"\");\r\n finAcctLine.setSalesTaxRequired(false);\r\n finAcctLine.setSubAccountNumber(mmAcctLine.getSubAcctNbr());\r\n return finAcctLine;\r\n }",
"public LoanAccounting getAccounting();",
"@Override\n public List generateSaveEvents() {\n List events = super.generateSaveEvents();\n\n if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().isAtLeastPartiallyFilledIn() && !(getDocumentHeader().getWorkflowDocument().isInitiated() || getDocumentHeader().getWorkflowDocument().isSaved())) {\n // only check advance accounting lines if the travel advance is filled in\n final List<TemSourceAccountingLine> persistedAdvanceAccountingLines = getPersistedAdvanceAccountingLinesForComparison();\n final List<TemSourceAccountingLine> currentAdvanceAccountingLines = getAdvanceAccountingLinesForComparison();\n\n final List advanceEvents = generateEventsForAdvanceAccountingLines(persistedAdvanceAccountingLines, currentAdvanceAccountingLines);\n events.addAll(advanceEvents);\n }\n\n return events;\n }",
"public void transferLineasInvestigacion(TransferEvent event) {\r\n try {\r\n for (Object item : event.getItems()) {\r\n int v = item.toString().indexOf(\":\");\r\n Long id = Long.parseLong(item.toString().substring(0, v));\r\n LineaInvestigacion li = lineaInvestigacionService.buscarPorId(new LineaInvestigacion(id));\r\n LineaInvestigacionProyecto lp = new LineaInvestigacionProyecto();\r\n if (li != null) {\r\n lp.setLineaInvestigacionId(li);\r\n }\r\n if (event.isRemove()) {\r\n sessionProyecto.getLineasInvestigacionSeleccionadasTransfer().remove(lp);\r\n sessionProyecto.getLineasInvestigacionRemovidosTransfer().add(lp);\r\n int pos = 0;\r\n for (LineaInvestigacionProyecto lip : sessionProyecto.getLineasInvestigacionProyecto()) {\r\n if (!lip.getLineaInvestigacionId().equals(lp.getLineaInvestigacionId())) {\r\n pos++;\r\n } else {\r\n break;\r\n }\r\n }\r\n sessionProyecto.getLineasInvestigacionSeleccionadas().remove(pos);\r\n } else {\r\n if (event.isAdd()) {\r\n if (contieneLineaInvestigacion(sessionProyecto.getLineasInvestigacionProyecto(), lp)) {\r\n sessionProyecto.getLineasInvestigacionRemovidosTransfer().add(lp);\r\n }\r\n sessionProyecto.getLineasInvestigacionSeleccionadas().add(li);\r\n sessionProyecto.getLineasInvestigacionSeleccionadasTransfer().add(lp);\r\n }\r\n }\r\n }\r\n } catch (NumberFormatException e) {\r\n System.out.println(e);\r\n }\r\n }",
"private Line addLine() {\n\t\t// Create a new line\n\t\tLine line = new Line(doily.settings.getPenScale(), \n\t\t\t\tdoily.settings.getPenColor(), doily.settings.isReflect());\n\t\tdoily.lines.add(line);\n\t\treturn line;\n\t}",
"private static LineOfCredit createLineOfCreditObjectForPost() {\n\n\t\tLineOfCredit lineOfCredit = new LineOfCredit();\n\n\t\tCalendar now = Calendar.getInstance();\n\n\t\tString notes = \"Line of credit note created via API \" + now.getTime();\n\t\tlineOfCredit.setId(\"LOC\" + now.getTimeInMillis());\n\t\tlineOfCredit.setStartDate(now.getTime());\n\t\tnow.add(Calendar.MONTH, 6);\n\t\tlineOfCredit.setExpiryDate(now.getTime());\n\t\tlineOfCredit.setNotes(notes);\n\t\tlineOfCredit.setAmount(new Money(100000));\n\n\t\treturn lineOfCredit;\n\t}",
"public void addCommissionAccounts(CommissionAccount commissionAccount);",
"public static void main(String[] args) throws CantAdd, CoronaWarn {\n\t\tTravelAgency TravelAgency = new TravelAgency();\r\n\r\n\t\tPlane p=new Plane(200,2,\"first plane max travelers\");\r\n\t\tPlane p1=new Plane(100,1,\"second plan min traelers\");\r\n\r\n\t\tTrip i=new Trip(p,Country.Australia,Country.Canada);\r\n\t\tTrip io=new Trip(p1,Country.Australia,Country.Canada);\r\n\t\t \r\n\t\tDate date=new Date(1,2,5);\r\n\t\tPassport passprt1=new Passport(\"anton\",44,date);\r\n\t\tPassport passprt2=new Passport(\"abdo\",44,date);\r\n\t\tPassport passprt3=new Passport(\"julie\",44,date);\r\n\t\tPassport passprt4=new Passport(\"juliana\",44,date);\r\n\t\tPassport passprt5=new Passport(\"bella\",44,date);\r\n\t\tPassport passprt6=new Passport(\"geris\",44,date);\r\n\t\tTraveler t1=new Traveler(passprt1,true,true);\r\n\t\tTraveler t2=new Traveler(passprt2,true,true);\r\n\t\tTraveler t3=new Traveler(passprt3,true,true);\r\n\t\tTraveler t4=new Traveler(passprt4,true,true);\r\n\t\tTraveler t5=new Traveler(passprt5,true,true);\r\n\t\tTraveler t6=new Traveler(passprt6,true,true);\r\n\t\t\r\n\t\t\r\n\t\tio.addTraveler(t1);\r\n\t\tio.addTraveler(t2);\r\n\t\tio.addTraveler(t3);\r\n\t\tio.addTraveler(t6);\r\n\t\tio.addTraveler(t5);\r\n\t\tio.addTraveler(t4);\r\n\t\tio.addTraveler(t6);\r\n \r\n\t\ti.addTraveler(t1);\r\n\t\ti.addTraveler(t2);\r\n\t\ti.addTraveler(t3);\r\n\t\ti.addTraveler(t4);\r\n\t\r\n\t\ti.addTraveler(t6);\r\n\t\t\r\n\t\tTravelAgency.addTrip(i);\t\r\n\t\tTravelAgency.addTrip(io);\r\n\t\tSystem.out.print(TravelAgency.findUnsafeTrips());\r\n\r\n\t\t\r\n\t\tTravelAgency.AddTraveler(t1);\r\n\t\tTravelAgency.AddTraveler(t2);\r\n\t\tTravelAgency.AddTraveler(t3);\r\n\t\tTravelAgency.AddTraveler(t4);\r\n\t\tTravelAgency.AddTraveler(t5);\r\n\t\tTravelAgency.AddTraveler(t6);\r\n\t\t\r\n\t}",
"public void annualProcess() {\n super.withdraw(annualFee);\n }",
"public void addLineItem (LineItem lineItem){\n if (this.orderStatus != OrderStatus.Closed && !lineItem.isOrdered() && !lineItems.contains(lineItem)){\n lineItems.add(lineItem);\n total += lineItem.getPrice();\n lineItem.setOrdered(true);\n this.getAccount().setBalance(this.getAccount().getBalance() - lineItem.getPrice());\n }\n }",
"public void savingsWithdrawReceipPrint(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\np.color(0);\np.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Withdrawal ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Withdrawal Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Withdrawal Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Withdrawal Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Withdrawal Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(7).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.addLineSeperator();\np.doubleStrik(true);\n//p.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(12).toString());\n\np.newLine();\np.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }",
"public DerivationLine()\n {\n super();\n this.clauses = new ArrayList<>();\n }",
"@Override\n protected boolean beforeSave(boolean newRecord) {\n if (!newRecord){\n if ((is_ValueChanged(X_Z_RemDifInvLinAfecta.COLUMNNAME_PriceEntered)) || (is_ValueChanged(X_Z_RemDifInvLinAfecta.COLUMNNAME_QtyEntered))){\n this.setLineTotalAmt(this.getQtyEntered().multiply(this.getPriceEntered()).setScale(2, RoundingMode.HALF_UP));\n\n MInvoiceLine invoiceLine = (MInvoiceLine) this.getC_InvoiceLine();\n if ((invoiceLine != null) && (invoiceLine.get_ID() > 0)){\n invoiceLine.setQtyInvoiced(this.getQtyEntered());\n invoiceLine.setQtyEntered(this.getQtyEntered());\n invoiceLine.setPriceActual(this.getPriceEntered());\n invoiceLine.setPriceEntered(this.getPriceEntered());\n\n MProduct prod = (MProduct) invoiceLine.getM_Product();\n\n // Impuesto del producto (primero impuesto especial de compra, y si no tiene, entonces el impuesto normal\n if (prod.get_ValueAsInt(\"C_TaxCategory_ID_2\") > 0) {\n MTaxCategory taxCat = new MTaxCategory(getCtx(), prod.get_ValueAsInt(\"C_TaxCategory_ID_2\"), null);\n MTax tax = taxCat.getDefaultTax();\n if (tax != null) {\n if (tax.get_ID() > 0) {\n invoiceLine.setC_Tax_ID(tax.get_ID());\n }\n }\n } else {\n if (prod.getC_TaxCategory_ID() > 0) {\n MTaxCategory taxCat = (MTaxCategory) prod.getC_TaxCategory();\n MTax tax = taxCat.getDefaultTax();\n if (tax != null) {\n if (tax.get_ID() > 0) {\n invoiceLine.setC_Tax_ID(tax.get_ID());\n }\n }\n }\n }\n\n invoiceLine.setLineNetAmt();\n invoiceLine.setTaxAmt();\n invoiceLine.saveEx();\n }\n\n }\n }\n\n return true;\n }",
"public double getCreditLimit(){\n return creditLine;\n }",
"public void savingsWithdrawReceipPrintStamp(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\np.color(0);\np.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Withdrawal ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Withdrawal Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Withdrawal Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Withdrawal Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Withdrawal Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(7).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.addLineSeperator();\np.doubleStrik(true);\n//p.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(12).toString());\n\np.newLine();\np.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }",
"public void addPolyLine() {\n abstractEditor.drawNewShape(new ELineDT());\n }",
"@Override\r\n public void resetAccount() {\r\n super.resetAccount();\r\n this.getNewSourceLine().setAmount(null);\r\n this.getNewSourceLine().setAccountLinePercent(new BigDecimal(0));\r\n }",
"@Override\r\n\tpublic void addAccessories() {\n\t\tSystem.out.println(\"Fitting accessories Luxory car\");\r\n\t\t\r\n\t}",
"private static void addTaxesToResponseItinerariesTotal(JSONObject reqJson, JSONObject resJson, JSONObject taxEngResJson) {\n\t\tMap<String, Map<String, JSONArray>> taxBySuppDestMap = getTaxesBySupplierAndDestination(taxEngResJson);\n\t\t\n\t\t// The order of vehicleAvail in service response JSON is not the same as it is in tax engine response JSON. \n\t\t// Therefore, we need to keep track of each supplier/destination occurrence of vehicleAvail. This may be an \n\t\t// overkill in context of reprice service from where this class is called but does not hurt. \n\t\tMap<String, Integer> suppDestIndexMap = new HashMap<String, Integer>();\n\t\tJSONObject resBodyJson = resJson.getJSONObject(JSON_PROP_RESBODY);\n\t\tJSONArray carRentalJsonArr = resBodyJson.getJSONArray(JSON_PROP_CARRENTALARR);\n\t\tfor (int i=0; i < carRentalJsonArr.length(); i++) {\n\t\t\t\n\t\t\tJSONArray vehicleAvailArr = carRentalJsonArr.getJSONObject(i).getJSONArray(JSON_PROP_VEHICLEAVAIL);\n\t\t\tfor(int j =0; j< vehicleAvailArr.length(); j++) {\n\t\t\t\tJSONObject vehicleAvailJson = vehicleAvailArr.getJSONObject(j);\n\t\t\t\t\n\t\t\t\tString suppID = vehicleAvailJson.getString(JSON_PROP_SUPPREF);\n\t\t\t\tString cityCode = RentalSearchProcessor.deduceDropOffCity(vehicleAvailJson);\n\t\t\t\tif (cityCode == null || cityCode.isEmpty()) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tMap<String,Object> cityInfo = RedisCityData.getCityCodeInfo(cityCode);\n\t\t\t\tMap<String, JSONArray> travelDtlsMap = taxBySuppDestMap.get(suppID);\n\t\t\t\t//TODO: Uncomment later.\n\t\t\t\tString travelDtlsMapKey = String.format(\"%s|%s|%s\", cityInfo.getOrDefault(JSON_PROP_VALUE, \"\"), cityInfo.getOrDefault(JSON_PROP_STATE, \"\"), cityInfo.getOrDefault(JSON_PROP_COUNTRY, \"\"));\n//\t\t\t\tString travelDtlsMapKey = String.format(\"%s|%s|%s\", \"Mumbai\", \"Maharashtra\", \"India\");\n\t\t\t\tJSONArray fareDtlsJsonArr = travelDtlsMap.get(travelDtlsMapKey);\n\t\t\t\t\n\t\t\t\tString suppDestIndexMapKey = String.format(\"%s|%s\", suppID, travelDtlsMapKey);\n\t\t\t\tint idx = (suppDestIndexMap.containsKey(suppDestIndexMapKey)) ? (suppDestIndexMap.get(suppDestIndexMapKey) + 1) : 0;\n\t\t\t\tsuppDestIndexMap.put(suppDestIndexMapKey, idx);\n\t\t\t\t\n\t\t\t\tif (idx < fareDtlsJsonArr.length()) {\n\t\t\t\t\tJSONObject totalPriceInfoJson = vehicleAvailJson.getJSONObject(JSON_PROP_TOTALPRICEINFO);\n\t\t\t\t\tJSONObject totalFareJson = totalPriceInfoJson.getJSONObject(JSON_PROP_TOTALFARE);\n\t\t\t\t\tBigDecimal totalFareAmt = totalFareJson.getBigDecimal(JSON_PROP_AMOUNT);\n\t\t\t\t\tString totalFareCcy = totalFareJson.getString(JSON_PROP_CCYCODE);\n\t\t\t\t\t\n\t\t\t\t\tBigDecimal companyTaxTotalAmt = BigDecimal.ZERO;\n\t\t\t\t\tJSONObject fareDtlsJson = fareDtlsJsonArr.getJSONObject(idx);\n\t\t\t\t\tJSONArray companyTaxJsonArr = new JSONArray();\n\t\t\t\t\tJSONArray appliedTaxesJsonArr = fareDtlsJson.optJSONArray(JSON_PROP_APPLIEDTAXDTLS);\n\t\t\t\t\tif (appliedTaxesJsonArr == null) {\n\t\t\t\t\t\tlogger.warn(\"No service taxes applied on car-rental\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tfor (int k=0; k < appliedTaxesJsonArr.length(); k++) {\n\t\t\t\t\t\tJSONObject appliedTaxesJson = appliedTaxesJsonArr.getJSONObject(k);\n\t\t\t\t\t\tJSONObject companyTaxJson = new JSONObject();\n\t\t\t\t\t\tBigDecimal taxAmt = appliedTaxesJson.optBigDecimal(JSON_PROP_TAXVALUE, BigDecimal.ZERO);\n\t\t\t\t\t\tcompanyTaxJson.put(JSON_PROP_TAXCODE, appliedTaxesJson.optString(JSON_PROP_TAXNAME, \"\"));\n\t\t\t\t\t\tcompanyTaxJson.put(JSON_PROP_TAXPCT, appliedTaxesJson.optBigDecimal(JSON_PROP_TAXPERCENTAGE, BigDecimal.ZERO));\n\t\t\t\t\t\tcompanyTaxJson.put(JSON_PROP_AMOUNT, taxAmt);\n\t\t\t\t\t\t//TaxComponent added on finance demand\n\t\t\t\t\t\tcompanyTaxJson.put(JSON_PROP_TAXCOMP, appliedTaxesJson.optString(JSON_PROP_TAXCOMP));\n\t\t\t\t\t\tcompanyTaxJson.put(JSON_PROP_CCYCODE, totalFareCcy);\n\t\t\t\t\t\tcompanyTaxJson.put(JSON_PROP_HSNCODE, appliedTaxesJson.optString(JSON_PROP_HSNCODE));\n\t\t\t\t\t\tcompanyTaxJson.put(JSON_PROP_SACCODE, appliedTaxesJson.optString(JSON_PROP_SACCODE));\n\t\t\t\t\t\tcompanyTaxJsonArr.put(companyTaxJson);\n\t\t\t\t\t\tcompanyTaxTotalAmt = companyTaxTotalAmt.add(taxAmt);\n\t\t\t\t\t\ttotalFareAmt = totalFareAmt.add(taxAmt);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Append the taxes retrieved from tax engine response in itineraryTotalFare element of pricedItinerary JSON\n\t\t\t\t\tJSONObject companyTaxesJson = new JSONObject();\n\t\t\t\t\tcompanyTaxesJson.put(JSON_PROP_AMOUNT, companyTaxTotalAmt);\n\t\t\t\t\tcompanyTaxesJson.put(JSON_PROP_CCYCODE, totalFareCcy);\n\t\t\t\t\tcompanyTaxesJson.put(JSON_PROP_COMPANYTAX, companyTaxJsonArr);\n\t\t\t\t\ttotalFareJson.put(JSON_PROP_COMPANYTAXES, companyTaxesJson);\n\t\t\t\t\ttotalFareJson.put(JSON_PROP_AMOUNT, totalFareAmt);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tprotected String[] getSpecificLines() {\r\n\t\tString[] lines = new String[4];\r\n\t\tlines[0] = \"\";\r\n\t\tif (items.toString().lastIndexOf('_') < 0) {\r\n\t\t\tlines[1] = items.toString();\r\n\t\t\tlines[2] = \"\";\r\n\t\t} else {\r\n\t\t\tlines[1] = items.toString().substring(0, items.toString().lastIndexOf('_'));\r\n\t\t\tlines[2] = items.toString().substring(items.toString().lastIndexOf('_') + 1);\r\n\t\t}\r\n\t\tlines[3] = String.valueOf(cost);\r\n\t\treturn lines;\r\n\t}",
"public void setLINE_NO(BigDecimal LINE_NO) {\r\n this.LINE_NO = LINE_NO;\r\n }",
"public void setLINE_NO(BigDecimal LINE_NO) {\r\n this.LINE_NO = LINE_NO;\r\n }",
"public void setLINE_NO(BigDecimal LINE_NO) {\r\n this.LINE_NO = LINE_NO;\r\n }",
"public void setLINE_NO(BigDecimal LINE_NO) {\r\n this.LINE_NO = LINE_NO;\r\n }",
"public void loanStatament(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\np.color(0);\np.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Withdrawal ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Withdrawal Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Withdrawal Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Withdrawal Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Withdrawal Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(7).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\np.addLineSeperator();\np.doubleStrik(true);\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\n//p.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\n//p.addLineSeperatorX();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(17).toString());\np.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }",
"public boolean customizeAdvanceOffsetGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry) {\n final String paymentDocumentType = StringUtils.isBlank(getTravelAdvancePaymentDocumentType()) ? TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CHECK_ACH_DOCUMENT : getTravelAdvancePaymentDocumentType();\n offsetEntry.setFinancialDocumentTypeCode(paymentDocumentType);\n offsetEntry.setOrganizationDocumentNumber(getTravelDocumentIdentifier());\n return true;\n }",
"public void addTaxManagerToPR(ApprovalRequest ar, Approvable lic) {\r\n\t\tLog.customer.debug(\"%s ::: addTaxManagerToPR - %s\", className, lic);\r\n\t\tProcureLineItemCollection plic = (ProcureLineItemCollection) lic;\r\n\r\n\t\tString TaxRole = \"Tax Manager\";\r\n\t\tString TaxReason = \"Tax Reason\";\r\n\t\tboolean flag1 = true;\r\n\t\tObject obj = Role.getRole(TaxRole);\r\n\t\t// plic.setFieldValue(\"ProjectID\",\"F\");\r\n\t\tLog.customer.debug(\r\n\t\t\t\t\"%s ::: isTaxManagerRequired - plic bfore create %s\",\r\n\t\t\t\tclassName, plic.toString());\r\n\t\tApprovalRequest approvalrequest1 = ApprovalRequest.create(plic,\r\n\t\t\t\t((ariba.user.core.Approver) (obj)), flag1, \"RuleReasons\",\r\n\t\t\t\tTaxReason);\r\n\t\tLog.customer.debug(\"%s ::: approvalrequest1 got activated- %s\",\r\n\t\t\t\tclassName);\r\n\r\n\t\tBaseVector basevector1 = plic.getApprovalRequests();\r\n\t\tLog.customer.debug(\"%s ::: basevector1 got activated- %s\", className);\r\n\r\n\t\tBaseVector basevector2 = approvalrequest1.getDependencies();\r\n\t\tLog.customer.debug(\"%s ::: basevector2 got activated- %s\", className);\r\n\r\n\t\tbasevector2.add(0, ar);\r\n\t\tLog.customer.debug(\"%s ::: ar added to basevector2 %s\", className);\r\n\r\n\t\tapprovalrequest1.setFieldValue(\"Dependencies\", basevector2);\r\n\t\tar.setState(2);\r\n\t\tLog.customer.debug(\"%s ::: ar.setState- %s\", className);\r\n\r\n\t\tar.updateLastModified();\r\n\t\tLog.customer.debug(\"%s ::: ar.updatelastmodified- %s\", className);\r\n\r\n\t\tbasevector1.removeAll(ar);\r\n\t\tLog.customer.debug(\"%s ::: basevecotr1 .removeall %s\", className);\r\n\r\n\t\tbasevector1.add(0, approvalrequest1);\r\n\t\tLog.customer.debug(\"%s ::: basevector1 .add- %s\", className);\r\n\r\n\t\tplic.setApprovalRequests(basevector1);\r\n\t\tLog.customer.debug(\"%s ::: ir .setApprovalRequests got activated- %s\",\r\n\t\t\t\tclassName);\r\n\r\n\t\tjava.util.List list = ListUtil.list();\r\n\t\tjava.util.Map map = MapUtil.map();\r\n\t\tboolean flag6 = approvalrequest1.activate(list, map);\r\n\r\n\t\tLog.customer.debug(\"%s ::: New TaxAR Activated - %s\", className);\r\n\t\tLog.customer.debug(\"%s ::: State (AFTER): %s\", className);\r\n\t\tLog.customer.debug(\"%s ::: Approved By: %s\", className);\r\n\r\n\t}",
"@Override\n public void withdraw(double amount) //Overridden method\n {\n elapsedPeriods++;\n \n if(elapsedPeriods<maturityPeriods)\n {\n double fees = getBalance()*(interestPenaltyRate/100)*elapsedPeriods;\n super.withdraw(fees);//withdraw the penalty\n super.withdraw(amount);//withdraw the actual amount\n \n }\n \n }",
"public OrderLine() {\n }",
"private void addLine()\n\t{\n\t\tlines.add(printerFormatter.markEOL());\n\t}",
"public LineInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"protected List generateEventsForAdvanceAccountingLines(List<TemSourceAccountingLine> persistedAdvanceAccountingLines, List<TemSourceAccountingLine> currentAdvanceAccountingLines) {\n List events = new ArrayList();\n Map persistedLineMap = buildAccountingLineMap(persistedAdvanceAccountingLines);\n final String errorPathPrefix = KFSConstants.DOCUMENT_PROPERTY_NAME + \".\" + TemPropertyConstants.ADVANCE_ACCOUNTING_LINES;\n final String groupErrorPathPrefix = errorPathPrefix + KFSConstants.ACCOUNTING_LINE_GROUP_SUFFIX;\n\n // (iterate through current lines to detect additions and updates, removing affected lines from persistedLineMap as we go\n // so deletions can be detected by looking at whatever remains in persistedLineMap)\n int index = 0;\n for (TemSourceAccountingLine currentLine : currentAdvanceAccountingLines) {\n String indexedErrorPathPrefix = errorPathPrefix + \"[\" + index + \"]\";\n Integer key = currentLine.getSequenceNumber();\n\n AccountingLine persistedLine = (AccountingLine) persistedLineMap.get(key);\n\n if (persistedLine != null) {\n ReviewAccountingLineEvent reviewEvent = new ReviewAccountingLineEvent(indexedErrorPathPrefix, this, currentLine);\n events.add(reviewEvent);\n\n persistedLineMap.remove(key);\n }\n else {\n // it must be a new addition\n AddAccountingLineEvent addEvent = new AddAccountingLineEvent(indexedErrorPathPrefix, this, currentLine);\n events.add(addEvent);\n }\n }\n\n // detect deletions\n List<TemSourceAccountingLine> remainingPersistedLines = new ArrayList<TemSourceAccountingLine>();\n remainingPersistedLines.addAll(persistedLineMap.values());\n for (TemSourceAccountingLine persistedLine : remainingPersistedLines) {\n DeleteAccountingLineEvent deleteEvent = new DeleteAccountingLineEvent(groupErrorPathPrefix, this, persistedLine, true);\n events.add(deleteEvent);\n }\n return events;\n }",
"Credit(int accountNumber, double creditLine, double outstandingBalance, double interestRate){\n super(accountNumber, outstandingBalance);\n this.creditLine = creditLine;\n this.interestRate = interestRate;\n }",
"public void loanStatamentStamp(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\np.color(0);\np.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Withdrawal ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Withdrawal Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Withdrawal Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Withdrawal Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Withdrawal Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(7).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\n//p.addLineSeperatorX();\n//p.newLine();\n//p.setText(\"OFFICE NUMBER: \"+receiptDetails.get(17).toString());\np.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }",
"protected void printTextLineDetailWithLineNumber(ProcureLineItem lineItem, PrintWriter out, String uomStr, Locale locale)\r\r\n {\r\r\n\t\tLog.customer.debug(\"%s *** printTextLineDetailWithLineNumber!\",THISCLASS);\r\r\n\r\r\n Fmt.F(out, \"%s\", Fmt.Sil(locale, \"resource.ordering\", \"ItemQtyUOMAmount\", Integer.toString(lineItem.getNumberInCollection()),\r\r\n \t\t\t\t\t\t\t\t\tBigDecimalFormatter.getStringValue(lineItem.getQuantity(), locale),\r\r\n \t\t\t\t\t\t\t\t\tuomStr,\r\r\n \t\t\t\t\t\t\t\t\tMoneyFormatter.getStringValue(lineItem.getDescription().getPrice(), locale, null, true, PRECISION),\r\r\n \t\t\t\t\t\t\t\t\tlineItem.getAmount().asString()));\r\r\n Fmt.F(out, \"%s\", Fmt.Sil(locale, \"resource.ordering\", \"DescriptionLine\", lineItem.getDescription().getDescription()));\r\r\n }",
"public void afterTax() {\n TextView afterView = findViewById(R.id.checkoutPage_afterTaxValue);\n afterTaxTotal = beforeTaxTotal + tpsTaxTotal + tvqTaxTotal;\n afterView.setText(String.format(\"$%.2f\", afterTaxTotal));\n }",
"public void printInfoVehicleClick(Circle c, Text lines_info)\r\n {\r\n if (this.getLineVehicles().contains(c)) {\r\n if (c.getFill() == this.getTransportLineColor()) {\r\n c.setFill(this.getTransportLineSelectedColor());\r\n } else {\r\n c.setFill(this.getTransportLineColor());\r\n }\r\n\r\n lines_info.setText(\"Line number: \" + this.getLineId() + \"\\n\");\r\n lines_info.setText(lines_info.getText() + \"Route: \" + this.printRouteStops() + \"\\n\");\r\n lines_info.setText(lines_info.getText() + \"Line delay: +\" + this.getDelay() + \"\\n\");\r\n\r\n // get actual coordinates of vehicle\r\n int vehicle_actual_x = (int) Math.round(c.getCenterX());\r\n int vehicle_actual_y = (int) Math.round(c.getCenterY());\r\n\r\n Coordinate vehicle_actual_coordinates = new Coordinate(vehicle_actual_x, vehicle_actual_y);\r\n\r\n // print next stop and previous stops of line\r\n for (int i = 0; i < this.transportLinePath().size() - 1; i++) {\r\n Coordinate coordinates1 = this.transportLinePath().get(i);\r\n Coordinate coordinates2 = this.transportLinePath().get(i + 1);\r\n String id_coordinates_2 = this.transportLinePathIDs().get(i + 1);\r\n\r\n if (vehicle_actual_coordinates.isBetweenTwoCoordinates(coordinates1, coordinates2) == true) {\r\n lines_info.setText(lines_info.getText() + \"Previous stops:\" + \"\\n\");\r\n for (int j = 0; j < this.transportLinePathIDs().size(); j++) {\r\n if (j < this.transportLinePathIDs().indexOf(id_coordinates_2) && this.transportLinePathIDs().get(j).contains(\"Stop\")) {\r\n lines_info.setText(lines_info.getText() + this.transportLinePathIDs().get(j) + \" -> \");\r\n } else if (this.transportLinePathIDs().get(j).contains(\"Stop\")) {\r\n lines_info.setText(lines_info.getText() + \"\\n\" + \"Next stop: \" + this.transportLinePathIDs().get(j) + \"\\n\");\r\n break;\r\n }\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n }",
"private double calculateCommissionAmountFlights(PrintItinerary itinerary) {\n\t\tdouble commissionAmount = 0.0;\n\t\tif (itinerary.getFlights() != null && itinerary.getFlights().size() > 0) {\n\t\t\tfor (com.kcdata.abe.data.dto.TripFlight flight : itinerary\n\t\t\t\t\t.getFlights()) {\n\t\t\t\tcommissionAmount = commissionAmount\n\t\t\t\t\t\t+ flight.getPrice().getCommissionAmount();\n\t\t\t}\n\t\t}\n\n\t\treturn commissionAmount;\n\t}",
"@Override\n public PurchaseOrderLine getOrderLine(int index) {\n return orderLines.get(index);\n }",
"@Override\n\tpublic boolean withdraw(int accNo, double money) {\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic boolean reverseCorrectIt() {\n\t\t\r\n\tMClient client = new MClient(Env.getCtx(), getAD_Client_ID(), get_TrxName());\r\n\t\t\r\n\t\tMCHesLine hline = null;\r\n\t\tfor (int i=0; i < getLines().length; i++){\r\n\t\t\thline = m_lines[i];\r\n\t\t\tMCPreInvoiceLineG lg = new MCPreInvoiceLineG (Env.getCtx(), hline.getC_PreInvoiceLineG_ID(),get_TrxName());\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (getC_Currency_ID()==client.getC_Currency_ID()) \r\n\t\t\t\tlg.setQtyHes_Veb(lg.getQtyHes_Veb().subtract(hline.getQty()));\r\n\t\t\telse \r\n\t\t\t\tlg.setQtyHes_Usd(lg.getQtyHes_Usd().subtract(hline.getQty()));\r\n\t\t\t\r\n\t\t\tlg.save();\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"TemporalService accountingForTransmissionTime();",
"private static void logLineOfCreditDetails(LineOfCredit lineOfCredit) {\n\n\t\tif (lineOfCredit != null) {\n\t\t\tSystem.out.println(\"Line of credit details:\");\n\t\t\tSystem.out.println(\"\\tID:\" + lineOfCredit.getId());\n\t\t\tSystem.out.println(\"\\tClientKey:\" + lineOfCredit.getClientKey());\n\t\t\tSystem.out.println(\"\\tGroupKey:\" + lineOfCredit.getGroupKey());\n\t\t\tSystem.out.println(\"\\tStartDate:\" + lineOfCredit.getStartDate());\n\t\t\tSystem.out.println(\"\\tExpireDate:\" + lineOfCredit.getExpireDate());\n\t\t\tSystem.out.println(\"\\tAmount:\" + lineOfCredit.getAmount());\n\t\t\tSystem.out.println(\"\\tState:\" + lineOfCredit.getState());\n\t\t\tSystem.out.println(\"\\tCreationDate:\" + lineOfCredit.getCreationDate());\n\t\t\tSystem.out.println(\"\\tLastModifiedDate:\" + lineOfCredit.getLastModifiedDate());\n\t\t\tSystem.out.println(\"\\tNotes:\" + lineOfCredit.getNotes());\n\t\t\n\t\t\t// log the CFs details\n\t\t\tlogCustomFieldValuesDetails(lineOfCredit.getCustomFieldValues());\n\t\t}\n\t}",
"public POSLineItemWrapper(POSLineItemDetail detail) {\n this.id = detail.getLineItem().getItem().getId();\n this.desc = detail.getLineItem().getItemDescription();\n this.qty++;\n this.price = detail.getLineItem().getItemRetailPrice();\n this.isReturn = detail.getLineItem() instanceof com.chelseasystems.cr.pos.ReturnLineItem;\n this.vat = detail.getVatAmount();\n this.itemOriginalVat = detail.getLineItem().getNetAmount().multiply(detail.getLineItem().\n getItem().getVatRate().doubleValue()).round();\n Reduction[] reds = detail.getReductionsArray();\n for (int idx = 0; idx < reds.length; idx++) {\n String reason = reds[idx].getReason();\n // if(reason.equalsIgnoreCase(\"PRIVILEGE Discount\"))\n // {\n // privAmt = reds[idx].getAmount();\n // PrivilegeDiscount disc = getPrivilegeDiscount();\n // try\n // {\n // privPct = disc.getPercent(detail.getLineItem(), compositePOSTransaction.getStore().getId());\n // continue;\n // }\n // catch(Exception e)\n // {\n // }\n // }\n // else if(reason.equalsIgnoreCase(\"DRIVERS Discount\"))\n // {\n // coachAmt = reds[idx].getAmount();\n // DriversDiscount disc = getDriversDiscount();\n // try\n // {\n // coachPct = disc.getPercent(detail.getLineItem(), compositePOSTransaction.getStore().getId());\n // continue;\n // }\n // catch(Exception e)\n // {\n // }\n // }\n // else if(reason.equalsIgnoreCase(\"CONCESSIONAIRE Discount\"))\n // {\n // concessAmt = reds[idx].getAmount();\n // ConcessionaireDiscount disc = getConcessionaireDiscount();\n // try\n // {\n // concessPct = disc.getPercent(detail.getLineItem(), compositePOSTransaction.getStore().getId());\n // continue;\n // }\n // catch(Exception e)\n // {\n // }\n // }\n // else if(reason.equalsIgnoreCase(\"SETTLEMENT\"))\n // {\n // settleAmt = reds[idx].getAmount();\n // SettlementDiscount disc = getSettlementDiscount();\n // try\n // {\n // settlePct = disc.getPercent();\n // continue;\n // }\n // catch(Exception e)\n // {\n // }\n // }\n // else\n if (reason.equalsIgnoreCase(\"Manual Markdown\")) {\n manualAmt = reds[idx].getAmount();\n } else {\n promoAmt = reds[idx].getAmount();\n }\n }\n }",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZBRNM\", \"LOND\"); // Branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZPBR\", \"IPS2\"); // Posting group id or user id, and group level (5A)\n\t\ttransaction.setFieldValue(\"GZVFR\", \"1000106\"); // Value from date (7S,0)\n\t\ttransaction.setFieldValue(\"GZBRND\", \"LOND\"); // Branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZDRF\", \"0014620010\"); // Users own reference for deals, reconciliation etc (16A)\n\t\ttransaction.setFieldValue(\"GZAMA\", \"1500-\"); // Ordinary amount in minor currency units (15P,0)\n\t\ttransaction.setFieldValue(\"GZCCY\", \"PHP\"); // Currency mnemonic (3A)\n\t\ttransaction.setFieldValue(\"GZNPE\", \"1\"); // Number of posting entries (5P,0)\n\t\ttransaction.setFieldValue(\"GZNR1\", \"STOP\"); // Narrative line 1 (35A)\n\t\ttransaction.setFieldValue(\"GZRFR\", \"N\"); // Referred item? (1A)\n\t\ttransaction.setFieldValue(\"GZAUT\", \"Y\"); // Authorised item? (1A)\n\t\ttransaction.setFieldValue(\"GZSSI\", \"N\"); // Special item? (1A)\n\t\ttransaction.setFieldValue(\"GZTTP\", \"C\"); // Transaction type (1A)\n\t\ttransaction.setFieldValue(\"GZHSRL\", \"0014620010\"); // Serial \"number\" forming the key to a stop order (16A)\n\t\ttransaction.setFieldValue(\"GZHAMT\", \"1500-\"); // Stop order amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZAUTC\", \"MASSEYR1\"); // Referred item authorisation code (12A)\n\t\ttransaction.setFieldValue(\"GZCED\", \"2\"); // Currency edit field (1A)\n\t\ttransaction.setFieldValue(\"GZCHQ\", \"N\"); // Cheque item? (1A)\n\t\ttransaction.setFieldValue(\"GZDRFN\", \"0\"); // Cheque serial number (16P,0)\n\t\ttransaction.setFieldValue(\"GZTCCY\", \"PHP\"); // Transaction currency (3A)\n\t\ttransaction.setFieldValue(\"GZTAMA\", \"1500\"); // Transaction amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZHCCY\", \"PHP\"); // Stop order currency (3A)\n\t\ttransaction.setFieldValue(\"GZPSQ7\", \"0000182\"); // 7 Long posting sequence number (7P,0)\n\t}",
"public KochLine getLineA(){\n\t\tKochLine lineA= new KochLine(p1,p2);\n\t\treturn lineA;\n\t\t\n\t}",
"private final void d(com.iqoption.core.microservices.billing.response.deposit.d r21) {\n /*\n r20 = this;\n r0 = r20;\n r1 = r20.asp();\n r1 = r1.cCg;\n r2 = \"binding.depositAmountEdit\";\n kotlin.jvm.internal.i.e(r1, r2);\n if (r21 == 0) goto L_0x0158;\n L_0x000f:\n r2 = r0.cFG;\n r3 = 1;\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r2 = r1.getText();\n r2 = r2.toString();\n r4 = r0.cFG;\n r2 = kotlin.jvm.internal.i.y(r2, r4);\n r2 = r2 ^ r3;\n if (r2 == 0) goto L_0x0027;\n L_0x0025:\n goto L_0x0158;\n L_0x0027:\n r2 = r20.ass();\n r4 = 0;\n if (r2 == 0) goto L_0x0068;\n L_0x002e:\n r2 = (java.lang.Iterable) r2;\n r2 = r2.iterator();\n L_0x0034:\n r5 = r2.hasNext();\n if (r5 == 0) goto L_0x0050;\n L_0x003a:\n r5 = r2.next();\n r6 = r5;\n r6 = (com.iqoption.core.features.c.a) r6;\n r6 = r6.getName();\n r7 = r21.getName();\n r6 = kotlin.jvm.internal.i.y(r6, r7);\n if (r6 == 0) goto L_0x0034;\n L_0x004f:\n goto L_0x0051;\n L_0x0050:\n r5 = r4;\n L_0x0051:\n r5 = (com.iqoption.core.features.c.a) r5;\n if (r5 == 0) goto L_0x0068;\n L_0x0055:\n r6 = r5.Xy();\n if (r6 == 0) goto L_0x0068;\n L_0x005b:\n r7 = 0;\n r8 = 0;\n r9 = 1;\n r10 = 0;\n r11 = 0;\n r12 = 19;\n r13 = 0;\n r2 = com.iqoption.core.util.e.a(r6, r7, r8, r9, r10, r11, r12, r13);\n goto L_0x0069;\n L_0x0068:\n r2 = r4;\n L_0x0069:\n r5 = r0.ayL;\n if (r5 == 0) goto L_0x0084;\n L_0x006d:\n r5 = r5.Km();\n if (r5 == 0) goto L_0x0084;\n L_0x0073:\n r5 = r5.aar();\n if (r5 == 0) goto L_0x0084;\n L_0x0079:\n r6 = r21.getName();\n r5 = r5.get(r6);\n r5 = (java.util.ArrayList) r5;\n goto L_0x0085;\n L_0x0084:\n r5 = r4;\n L_0x0085:\n if (r2 != 0) goto L_0x00a5;\n L_0x0087:\n if (r5 == 0) goto L_0x00a5;\n L_0x0089:\n r2 = r20.asr();\n r2 = r2.getItems();\n r2 = kotlin.collections.u.bV(r2);\n r2 = (com.iqoption.deposit.light.d.b) r2;\n if (r2 == 0) goto L_0x00a4;\n L_0x0099:\n r2 = r2.asL();\n if (r2 == 0) goto L_0x00a4;\n L_0x009f:\n r2 = com.iqoption.deposit.f.a(r2);\n goto L_0x00a5;\n L_0x00a4:\n r2 = r4;\n L_0x00a5:\n r6 = r0.cxs;\n r7 = r0.cFE;\n r8 = r4;\n r8 = (java.lang.Double) r8;\n if (r2 != 0) goto L_0x00f4;\n L_0x00ae:\n r9 = r6 instanceof com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d;\n if (r9 == 0) goto L_0x00f4;\n L_0x00b2:\n if (r7 == 0) goto L_0x00f4;\n L_0x00b4:\n r6 = (com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d) r6;\n r6 = r6.aaI();\n if (r6 == 0) goto L_0x00cd;\n L_0x00bc:\n r7 = r7.getName();\n r6 = r6.get(r7);\n r6 = (com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d.b) r6;\n if (r6 == 0) goto L_0x00cd;\n L_0x00c8:\n r6 = r6.OL();\n goto L_0x00ce;\n L_0x00cd:\n r6 = r4;\n L_0x00ce:\n if (r6 == 0) goto L_0x00f5;\n L_0x00d0:\n r7 = r0.f(r6);\n if (r7 != 0) goto L_0x00f5;\n L_0x00d6:\n r8 = r6.doubleValue();\n r10 = 0;\n r11 = 0;\n r12 = 1;\n r13 = 0;\n r14 = 0;\n r15 = 0;\n r16 = 0;\n r2 = java.util.Locale.US;\n r7 = \"Locale.US\";\n kotlin.jvm.internal.i.e(r2, r7);\n r18 = 115; // 0x73 float:1.61E-43 double:5.7E-322;\n r19 = 0;\n r17 = r2;\n r2 = com.iqoption.core.util.e.a(r8, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19);\n goto L_0x00f5;\n L_0x00f4:\n r6 = r8;\n L_0x00f5:\n if (r2 == 0) goto L_0x00f8;\n L_0x00f7:\n goto L_0x00fa;\n L_0x00f8:\n r2 = \"\";\n L_0x00fa:\n r0.cFG = r2;\n r2 = (java.lang.CharSequence) r2;\n r1.setText(r2);\n r1 = r2.length();\n r2 = 0;\n if (r1 != 0) goto L_0x010a;\n L_0x0108:\n r1 = 1;\n goto L_0x010b;\n L_0x010a:\n r1 = 0;\n L_0x010b:\n if (r1 == 0) goto L_0x0155;\n L_0x010d:\n r1 = r0.cxs;\n r7 = r1 instanceof com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d;\n if (r7 != 0) goto L_0x0114;\n L_0x0113:\n r1 = r4;\n L_0x0114:\n r1 = (com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d) r1;\n if (r1 == 0) goto L_0x011e;\n L_0x0118:\n r1 = r1.aaE();\n if (r1 == r3) goto L_0x0155;\n L_0x011e:\n if (r6 == 0) goto L_0x0122;\n L_0x0120:\n r1 = r6;\n goto L_0x0138;\n L_0x0122:\n if (r5 == 0) goto L_0x0137;\n L_0x0124:\n r5 = (java.util.List) r5;\n r1 = kotlin.collections.u.bV(r5);\n r1 = (com.iqoption.core.microservices.billing.response.deposit.e) r1;\n if (r1 == 0) goto L_0x0137;\n L_0x012e:\n r5 = r1.ZC();\n r1 = java.lang.Double.valueOf(r5);\n goto L_0x0138;\n L_0x0137:\n r1 = r4;\n L_0x0138:\n if (r1 == 0) goto L_0x013b;\n L_0x013a:\n goto L_0x0141;\n L_0x013b:\n r5 = 0;\n r1 = java.lang.Double.valueOf(r5);\n L_0x0141:\n r1 = r0.f(r1);\n if (r1 == 0) goto L_0x014b;\n L_0x0147:\n r4 = r1.getErrorMessage();\n L_0x014b:\n if (r1 == 0) goto L_0x0151;\n L_0x014d:\n r2 = r1.aso();\n L_0x0151:\n r0.u(r4, r2);\n goto L_0x0158;\n L_0x0155:\n r0.u(r4, r2);\n L_0x0158:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.d(com.iqoption.core.microservices.billing.response.deposit.d):void\");\n }",
"public ManageAirliner(JPanel cjp, AirlinerDirectory ad,TravelAgencyClass travelAgency) {\n initComponents();\n CardSequenceJPanel = cjp;\n airlinerDirectory = ad;\n this.travelAgency = travelAgency;\n refreshTable();\n }",
"protected void resetNextAdvanceLineNumber() {\n this.nextAdvanceLineNumber = new Integer(1);\n }",
"protected void printTextLineDetailWithoutLineNumber(ProcureLineItem lineItem, PrintWriter out, String uomStr, Locale locale)\r\r\n {\r\r\n\t\tLog.customer.debug(\"%s *** printTextLineDetailWithoutLineNumber!\",THISCLASS);\r\r\n\r\r\n Fmt.F(out, \"%s\", Fmt.Sil(locale, \"resource.ordering\", \"QtyUOMAmount\",\r\r\n \t\t\t\t\t\t\t\tBigDecimalFormatter.getStringValue(lineItem.getQuantity(), locale),\r\r\n \t\t\t\t\t\t\t\tuomStr,\r\r\n \t\t\t\t\t\t\t\tMoneyFormatter.getStringValue(lineItem.getDescription().getPrice(), locale, null, true, PRECISION),\r\r\n \t\t\t\t\t\t\t\tlineItem.getAmount().asString()));\r\r\n Fmt.F(out, \"%s\", Fmt.Sil(locale, \"resource.ordering\", \"DescriptionLine\", lineItem.getDescription().getDescription()));\r\r\n }",
"public int parseAdditionalConfig(List<String> lines, int line_i) {\n RTGraphComponent mycomp = (RTGraphComponent) getRTComponent();\n // Parse the extents\n if (lines.get(line_i).startsWith(\"#AC extents|\")) {\n StringTokenizer st = new StringTokenizer(lines.get(line_i++),\"|\");\n st.nextToken();\n extents = new Rectangle2D.Double(Double.parseDouble(st.nextToken()),\n Double.parseDouble(st.nextToken()),\n\t\t\t\t Double.parseDouble(st.nextToken()),\n\t\t\t\t Double.parseDouble(st.nextToken()));\n }\n // Parse the retained nodes\n if (lines.get(line_i).startsWith(\"#AC retain|\")) {\n StringTokenizer st = new StringTokenizer(lines.get(line_i++),\"|\"); st.nextToken();\n Set<String> new_retained_nodes = new HashSet<String>();\n while (st.hasMoreTokens()) new_retained_nodes.add(Utils.decFmURL(st.nextToken()));\n if (retained_nodes != null) {\n retained_nodes.clear();\n retained_nodes.addAll(new_retained_nodes);\n } else retained_nodes = new_retained_nodes;\n }\n // Parse the sticky labels\n if (lines.get(line_i).startsWith(\"#AC sticky|\")) {\n StringTokenizer st = new StringTokenizer(lines.get(line_i++),\"|\"); st.nextToken();\n Set<String> new_sticky_labels = new HashSet<String>();\n while (st.hasMoreTokens()) new_sticky_labels.add(Utils.decFmURL(st.nextToken()));\n if (mycomp.sticky_labels != null) {\n mycomp.sticky_labels.clear();\n mycomp.sticky_labels.addAll(new_sticky_labels);\n } else mycomp.sticky_labels = new_sticky_labels;\n }\n // Parse the coordinates\n while (lines.get(line_i).startsWith(\"#AC wxy|\")) {\n StringTokenizer st = new StringTokenizer(lines.get(line_i++),\"|\"); st.nextToken();\n String entity = Utils.decFmURL(st.nextToken());\n double x = Double.parseDouble(st.nextToken()),\n y = Double.parseDouble(st.nextToken());\n entity_to_wxy.put(entity, new Point2D.Double(x,y));\n }\n if (lines.get(line_i).equals(\"#AC graphend\")) line_i++;\n else throw new RuntimeException(\"Incorrect Ending For LinkNode Parser \\\"\" + lines.get(line_i) + \"\\\"\");\n\n // Apply the settings\n newBundlesRoot(getRTParent().getRootBundles());\n transform();\n return line_i;\n }",
"public void addToLinesOfBusiness(entity.AppCritLineOfBusiness element);",
"public abstract String withdrawAmount(double amountToBeWithdrawn);",
"@Override\n\tpublic int getLineType() {\n\t\treturn 0;\n\t}",
"private void redrawLines()\n {\n for(int i =0; i<currentRide;i++)\n {\n rides[i].moveTogether(650,60 + 40*i);//move all elemetnts of ride lines\n \n }\n }",
"@Override\n public List<PurchaseOrderLine> getOrderlines() {\n return orderLines;\n }",
"com.google.ads.googleads.v14.services.AudienceInsightsDynamicLineup getDynamicLineup();",
"private void processCalculation(String line) {\n\t\t//TODO: fill\n\t}",
"private void creditFundingSection(Locale locale, PdfPTable paymentMethodTable, BigDecimal amount) {\n String message = getMessage(locale, \"pdf.receipt.creditsApplied\");\n Font font = getFont(null, FONT_SIZE_12, Font.NORMAL);\n PdfPCell pinLabelCell = new PdfPCell(new Phrase(message, font));\n PdfPCell amountLabelCell = new PdfPCell(new Phrase(getFormattedAmount(amount), font));\n cellAlignment(pinLabelCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, pinLabelCell, Rectangle.NO_BORDER, 0, 15);\n cellAlignment(amountLabelCell, Element.ALIGN_RIGHT, GRAY_COLOR, Element.ALIGN_BOTTOM);\n cellAddingToTable(paymentMethodTable, amountLabelCell, Rectangle.NO_BORDER, 0, 0);\n }",
"private ExpandGrid addLine(Grid input_grid, int number, int x, int y, int z, int steps, int x2, int y2, int z2) {\n Grid copy_grid = new Grid(input_grid);\n copy_grid.addLine(number, x, y, z);\n int estimate = manhattanDistance(x, y, x2, y2, z, z2);\n return new ExpandGrid(copy_grid, number, x, y, z, (steps + 1), estimate);\n }",
"public CustMnjOntSoObinSizline_LineEOImpl() {\n }",
"private void pdfPaymentMethod(CartReceiptResponse receiptResponse, Document document, Locale locale)\n throws DocumentException, IOException {\n\n LOGGER.debug(\"Entered in 'pdfPaymentMethod' method\");\n Double totalPaymentApplied = 0.0;\n PdfPTable paymentMethodTable = new PdfPTable(2);\n paymentMethodTable.setWidths(new int[]{200, 50});\n PdfPCell paymentMethodBlankSpaceCell = new PdfPCell(new Phrase(\" \", getFont(WHITE_COLOR, 8, Font.BOLD)));\n String message = getMessage(locale, \"pdf.receipt.paymentMethod\");\n Font font = getFont(BLACK_COLOR, FONT_SIZE_18, Font.BOLD);\n PdfPCell paymentMethodHeaderCell = new PdfPCell(new Phrase(message, font));\n cellAlignment(paymentMethodHeaderCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodHeaderCell, Rectangle.NO_BORDER, 0, 0);\n\n cellAlignment(paymentMethodBlankSpaceCell, 0, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n cellAlignment(paymentMethodBlankSpaceCell, 0, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n\n FundingSourceResponse[] fundingSources = receiptResponse.getFundingSources();\n\n if (fundingSources.length != 0) {\n for (final FundingSourceResponse aFundingSource1 : fundingSources) {\n if (aFundingSource1 != null) {\n if (aFundingSource1.getType().equalsIgnoreCase(PdfConstants.CREDIT)) {\n LOGGER.debug(\"Entered in to credits section : \" + aFundingSource1.getType());\n creditFundingSection(locale, paymentMethodTable,\n new BigDecimal(getUsedAmountFromFunding(aFundingSource1)));\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n totalPaymentApplied = totalPaymentApplied + getUsedAmountFromFunding(aFundingSource1);\n }\n }\n }\n for (final FundingSourceResponse aFundingSource : fundingSources) {\n if (aFundingSource instanceof VestaFundingSourceResponse) {\n VestaFundingSourceResponse vestaFundingSourceResponse =\n (VestaFundingSourceResponse) aFundingSource;\n String tenderType = vestaFundingSourceResponse.getTenderType();\n CardBrand cardBrand = vestaFundingSourceResponse.getCardBrand();\n if (tenderType.equalsIgnoreCase(PdfConstants.DEBIT) ||\n tenderType.equalsIgnoreCase(PdfConstants.CREDIT)) {\n PdfPCell cardNumberCell = new PdfPCell(new Phrase(getMessage(locale, \"pdf.receipt.cardPinMsg\",\n getTenderTypeForCard(tenderType,\n locale),\n getCardBrandText(cardBrand,\n locale),\n vestaFundingSourceResponse\n .getCardLast4()),\n getFont(null, FONT_SIZE_12, Font.NORMAL)));\n PdfPCell amountSectionCell = new PdfPCell(new Phrase(getFormattedAmount(new BigDecimal(\n getUsedAmountFromFunding(vestaFundingSourceResponse))),\n getFont(null, FONT_SIZE_12, Font.NORMAL)));\n cellAlignment(cardNumberCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, cardNumberCell, Rectangle.NO_BORDER, 0, 15);\n\n cellAlignment(amountSectionCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, amountSectionCell, Rectangle.NO_BORDER, 0, 0);\n chargedOnSection(locale, paymentMethodTable, paymentMethodBlankSpaceCell, receiptResponse);\n totalPaymentApplied =\n totalPaymentApplied + getUsedAmountFromFunding(vestaFundingSourceResponse);\n continue;\n }\n }\n\n if (aFundingSource != null) {\n if (getCashStatus(aFundingSource.getType())) {\n cashFundingSection(paymentMethodTable, locale, aFundingSource);\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n totalPaymentApplied = totalPaymentApplied + getUsedAmountFromFunding(aFundingSource);\n }\n }\n }\n } else {\n creditFundingSection(locale, paymentMethodTable, new BigDecimal(0));\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n totalPaymentApplied = totalPaymentApplied + 0;\n }\n\n\n calculateTotalPayment(locale, paymentMethodTable, totalPaymentApplied);\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n generatedNewCredits(locale, paymentMethodTable, receiptResponse.getCreditsGenerated());\n document.add(paymentMethodTable);\n }",
"public void grabarLineasInvestigacionProyecto() {\r\n try {\r\n if (!sessionProyecto.getEstadoActual().getCodigo().equalsIgnoreCase(EstadoProyectoEnum.INICIO.getTipo())) {\r\n return;\r\n }\r\n for (LineaInvestigacionProyecto lineaInvestigacionProyecto : sessionProyecto.getLineasInvestigacionSeleccionadasTransfer()) {\r\n if (lineaInvestigacionProyecto.getId() == null) {\r\n lineaInvestigacionProyecto.setProyectoId(sessionProyecto.getProyectoSeleccionado());\r\n lineaInvestigacionProyectoService.guardar(lineaInvestigacionProyecto);\r\n grabarIndividuoLP(lineaInvestigacionProyecto);\r\n logDao.create(logDao.crearLog(\"LineaInvestigacionProyecto\", lineaInvestigacionProyecto.getId() + \"\",\r\n \"CREAR\", \"Proyecto=\" + sessionProyecto.getProyectoSeleccionado().getId() + \"|LineaInvestigacion=\"\r\n + lineaInvestigacionProyecto.getLineaInvestigacionId().getId(), sessionUsuario.getUsuario()));\r\n continue;\r\n }\r\n lineaInvestigacionProyectoService.actulizar(lineaInvestigacionProyecto);\r\n }\r\n } catch (Exception e) {\r\n }\r\n \r\n }",
"public boolean customizeExpenseOffsetGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry) {\n boolean customized = false;\n // set the encumbrance update code\n offsetEntry.setTransactionEncumbranceUpdateCode(KFSConstants.ENCUMB_UPDT_REFERENCE_DOCUMENT_CD);\n\n // set the offset entry to Credit \"C\"\n offsetEntry.setTransactionDebitCreditCode(KFSConstants.GL_CREDIT_CODE);\n offsetEntry.setDocumentNumber(this.getDocumentNumber());\n\n String referenceDocumentNumber = this.getTravelDocumentIdentifier();\n if (ObjectUtils.isNotNull(referenceDocumentNumber)) {\n offsetEntry.setReferenceFinancialDocumentNumber(referenceDocumentNumber);\n offsetEntry.setReferenceFinancialDocumentTypeCode(TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT);\n offsetEntry.setReferenceFinancialSystemOriginationCode(TemConstants.ORIGIN_CODE);\n }\n\n String balanceType = getTravelEncumbranceService().getEncumbranceBalanceTypeByTripType(this);\n if (StringUtils.isNotEmpty(balanceType)) {\n offsetEntry.setFinancialBalanceTypeCode(balanceType);\n customized = true;\n }\n\n offsetEntry.setOrganizationDocumentNumber(getTravelDocumentIdentifier());\n return customized;\n }",
"public void processAddLine() {\n AppTextColorEnterDialogSingleton dialog = AppTextColorEnterDialogSingleton.getSingleton();\n\n // POP UP THE DIALOG\n dialog.show(\"Add Metro Line\", \"Enter Name and Color of the Metro Line:\", Color.web(\"#cccc33\"));\n\n // IF THE USER SAID YES\n if (dialog.getSelection()) {\n // CHANGE THE CURSOR\n Scene scene = app.getGUI().getPrimaryScene();\n scene.setCursor(Cursor.CROSSHAIR);\n \n // CHANGE THE STATE\n dataManager.setState(mmmState.ADD_LINE_MODE);\n }\n }",
"public void addActualExpenseLine(ActualExpense line) {\n line.setDocumentLineNumber(getActualExpenses().size() + 1);\n final String sequenceName = line.getSequenceName();\n final Long sequenceNumber = getSequenceAccessorService().getNextAvailableSequenceNumber(sequenceName, ActualExpense.class);\n line.setId(sequenceNumber);\n line.setDocumentNumber(this.documentNumber);\n notifyChangeListeners(new PropertyChangeEvent(this, TemPropertyConstants.ACTUAL_EXPENSES, null, line));\n getActualExpenses().add(line);\n logErrors();\n }",
"protected void addAccounts(AccountsPayableDocument accountsPayableDocument, PaymentDetail paymentDetail, String documentType) {\r\n String creditMemoDocType = getDataDictionaryService().getDocumentTypeNameByClass(VendorCreditMemoDocument.class);\r\n List<SourceAccountingLine> sourceAccountingLines = purapAccountingService.generateSourceAccountsForVendorRemit(accountsPayableDocument);\r\n for (SourceAccountingLine sourceAccountingLine : sourceAccountingLines) {\r\n KualiDecimal lineAmount = sourceAccountingLine.getAmount();\r\n PaymentAccountDetail paymentAccountDetail = new PaymentAccountDetail();\r\n paymentAccountDetail.setAccountNbr(sourceAccountingLine.getAccountNumber());\r\n\r\n if (creditMemoDocType.equals(documentType)) {\r\n lineAmount = lineAmount.negated();\r\n }\r\n\r\n paymentAccountDetail.setAccountNetAmount(sourceAccountingLine.getAmount());\r\n paymentAccountDetail.setFinChartCode(sourceAccountingLine.getChartOfAccountsCode());\r\n paymentAccountDetail.setFinObjectCode(sourceAccountingLine.getFinancialObjectCode());\r\n\r\n paymentAccountDetail.setFinSubObjectCode(StringUtils.defaultIfEmpty(sourceAccountingLine.getFinancialSubObjectCode(), OLEConstants.getDashFinancialSubObjectCode()));\r\n paymentAccountDetail.setOrgReferenceId(sourceAccountingLine.getOrganizationReferenceId());\r\n paymentAccountDetail.setProjectCode(StringUtils.defaultIfEmpty(sourceAccountingLine.getProjectCode(), OLEConstants.getDashProjectCode()));\r\n paymentAccountDetail.setSubAccountNbr(StringUtils.defaultIfEmpty(sourceAccountingLine.getSubAccountNumber(), OLEConstants.getDashSubAccountNumber()));\r\n paymentDetail.addAccountDetail(paymentAccountDetail);\r\n }\r\n }",
"public XpeDccContractLineImpl() {\n }",
"@Override \npublic double getPaymentAmount() { \n return getCommissionRate() * getGrossSales(); \n}",
"@Override\n\tpublic String updateATourneyDesc() {\n\t\treturn null;\n\t}",
"public void setLineCarriageprice(Long lineCarriageprice) {\n this.lineCarriageprice = lineCarriageprice;\n }",
"public abstract void calcuteTax(Transfer aTransfer);",
"public void beforeTax() {\n TextView beforeView = findViewById(R.id.checkoutPage_beforeTaxValue);\n beforeView.setText(String.format(\"$%.2f\", beforeTaxTotal));\n }",
"public void withdrawalMenu(){\n\t\tstate = ATM_State.WITHDRAW;\n\t\tgui.setDisplay(\"Amount to withdraw: \\n$\");\n\t}",
"public BigDecimal getLINE_NO() {\r\n return LINE_NO;\r\n }"
]
| [
"0.6850824",
"0.66087466",
"0.6503315",
"0.6409674",
"0.63556415",
"0.60568887",
"0.59357774",
"0.5910547",
"0.56425506",
"0.552856",
"0.5503778",
"0.5488682",
"0.5420114",
"0.5374609",
"0.5363476",
"0.5333808",
"0.53216475",
"0.52869725",
"0.52748424",
"0.52695906",
"0.51967424",
"0.5184521",
"0.51702935",
"0.5168741",
"0.5156417",
"0.5150932",
"0.5148201",
"0.51226884",
"0.5116752",
"0.50912863",
"0.5072465",
"0.5060856",
"0.5060662",
"0.50272286",
"0.50260794",
"0.49785674",
"0.49648604",
"0.49543846",
"0.49540728",
"0.494847",
"0.49425557",
"0.49414864",
"0.4939905",
"0.49132508",
"0.4907891",
"0.49020714",
"0.48899916",
"0.48899916",
"0.48899916",
"0.48899916",
"0.48865297",
"0.48847324",
"0.48729965",
"0.4869742",
"0.4849628",
"0.48494127",
"0.48423204",
"0.48423055",
"0.48357463",
"0.48283446",
"0.4813386",
"0.4804913",
"0.48048848",
"0.48027495",
"0.48021877",
"0.4800053",
"0.47978365",
"0.4794776",
"0.47912577",
"0.47901577",
"0.47881466",
"0.47870362",
"0.47737697",
"0.47668043",
"0.47597852",
"0.47574675",
"0.47534367",
"0.47518077",
"0.4751345",
"0.47510302",
"0.4750075",
"0.47364125",
"0.4726791",
"0.47225893",
"0.47108272",
"0.47097912",
"0.47088575",
"0.4707384",
"0.47060508",
"0.47050557",
"0.4704367",
"0.46986502",
"0.46967036",
"0.46950665",
"0.4692408",
"0.46922827",
"0.46912643",
"0.4688193",
"0.4684846",
"0.46829045",
"0.46794873"
]
| 0.0 | -1 |
Customizes offset GLPE's for "normal" accounting lines which are offsetting entries which are paying off expenses | public boolean customizeExpenseOffsetGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry) {
boolean customized = false;
// set the encumbrance update code
offsetEntry.setTransactionEncumbranceUpdateCode(KFSConstants.ENCUMB_UPDT_REFERENCE_DOCUMENT_CD);
// set the offset entry to Credit "C"
offsetEntry.setTransactionDebitCreditCode(KFSConstants.GL_CREDIT_CODE);
offsetEntry.setDocumentNumber(this.getDocumentNumber());
String referenceDocumentNumber = this.getTravelDocumentIdentifier();
if (ObjectUtils.isNotNull(referenceDocumentNumber)) {
offsetEntry.setReferenceFinancialDocumentNumber(referenceDocumentNumber);
offsetEntry.setReferenceFinancialDocumentTypeCode(TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT);
offsetEntry.setReferenceFinancialSystemOriginationCode(TemConstants.ORIGIN_CODE);
}
String balanceType = getTravelEncumbranceService().getEncumbranceBalanceTypeByTripType(this);
if (StringUtils.isNotEmpty(balanceType)) {
offsetEntry.setFinancialBalanceTypeCode(balanceType);
customized = true;
}
offsetEntry.setOrganizationDocumentNumber(getTravelDocumentIdentifier());
return customized;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initOffset(){\n\t\tdouble maxDistance = Math.sqrt(Math.pow(getBattleFieldWidth(),2) + Math.pow(getBattleFieldHeight(),2));\n\n\t\tif(eDistance < 100) { \n\t\t\toffset = 0;\n\t\t} else if (eDistance <=700){\n\t\t\tif((getHeadingRadians()-enemy)<-(3.14/2) && (enemy-getHeadingRadians())>= (3.14/2)) {\n\n\t\t\t\toffset=eDistance / maxDistance*0.4;\n\t\t\t} else {\n\t\t\t\toffset=-eDistance / maxDistance*0.4;\n\t\t\t}\n\t\t\toffset*=velocity/8;\n\t\t}\n\t\telse {\n\t\t\tif((getHeadingRadians()-enemy)<-(3.14/2) && (enemy-getHeadingRadians())>= (3.14/2)) {\n\t\t\t\toffset = eDistance / maxDistance*0.4;\n\t\t\t} else {\n\t\t\t\toffset = -eDistance / maxDistance*0.4;\n\t\t\t}\n\t\t\toffset*=velocity/4;\n\t\t}\n\t}",
"void setOffset(double offset);",
"com.walgreens.rxit.ch.cda.IVLPPDPQ addNewOffset();",
"protected final List<LocRefPoint> checkAndAdjustOffsets(\n\t\t\tfinal LocRefData lrd, final OpenLREncoderProperties properties)\n\t\t\tthrows OpenLRProcessingException {\n\t\tList<LocRefPoint> checkedAndAdjusted = lrd.getLocRefPoints();\n\t\tLocation location = lrd.getLocation();\n\t\tExpansionData expansion = lrd.getExpansionData();\n\t\tint startLength = checkedAndAdjusted.get(0).getDistanceToNext();\n\t\tint totalPosOff = location.getPositiveOffset()\n\t\t\t\t+ expansion.getExpansionLengthStart();\n\t\twhile (totalPosOff > startLength) {\n\t\t\tif (expansion.hasExpansionStart()) {\n\t\t\t\tif (!expansion.modifyExpansionAtStart(checkedAndAdjusted.get(0)\n\t\t\t\t\t\t.getRoute())) {\n\t\t\t\t\tthrow new OpenLREncoderProcessingException(\n\t\t\t\t\t\t\tEncoderProcessingError.OFFSET_TRIMMING_FAILED);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlrd.addToReducedPosOff(startLength);\n\t\t\t}\n\t\t\tcheckedAndAdjusted.remove(0);\n\t\t\tif (checkedAndAdjusted.size() < 2) {\n\t\t\t\tthrow new OpenLREncoderProcessingException(\n\t\t\t\t\t\tEncoderProcessingError.OFFSET_TRIMMING_FAILED);\n\t\t\t}\n\t\t\tstartLength = checkedAndAdjusted.get(0).getDistanceToNext();\n\t\t\ttotalPosOff = location.getPositiveOffset()\n\t\t\t\t\t+ expansion.getExpansionLengthStart()\n\t\t\t\t\t- lrd.getReducedPosOff();\n\t\t}\n\n\t\tint endLength = checkedAndAdjusted.get(checkedAndAdjusted.size() - 2)\n\t\t\t\t.getDistanceToNext();\n\t\tint totalNegOff = location.getNegativeOffset()\n\t\t\t\t+ expansion.getExpansionLengthEnd();\n\t\twhile (totalNegOff > endLength) {\n\t\t\tif (expansion.hasExpansionEnd()) {\n\t\t\t\tif (!expansion.modifyExpansionAtEnd(checkedAndAdjusted.get(\n\t\t\t\t\t\tcheckedAndAdjusted.size() - 2).getRoute())) {\n\t\t\t\t\tthrow new OpenLREncoderProcessingException(\n\t\t\t\t\t\t\tEncoderProcessingError.OFFSET_TRIMMING_FAILED);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlrd.addToReducedNegOff(endLength);\n\t\t\t}\n\t\t\t// remove last LRP\n\t\t\tcheckedAndAdjusted.remove(checkedAndAdjusted.size() - 1);\n\t\t\tif (checkedAndAdjusted.size() < 2) {\n\t\t\t\tthrow new OpenLREncoderProcessingException(\n\t\t\t\t\t\tEncoderProcessingError.OFFSET_TRIMMING_FAILED);\n\t\t\t}\n\t\t\t\n\t\t\tLocRefPoint oldLastLRP = checkedAndAdjusted.get(checkedAndAdjusted\n\t\t\t\t\t.size() - 1);\n\t\t\tLocRefPoint prevLRP = checkedAndAdjusted.get(checkedAndAdjusted\n\t\t\t\t\t.size() - 2);\n\t\t\tLocRefPoint newLastLRP;\n\t\t\tif (oldLastLRP.isLRPOnLine()) {\n\t\t\t\tnewLastLRP = new LocRefPoint(oldLastLRP.getLine(), oldLastLRP.getLongitudeDeg(), oldLastLRP.getLatitudeDeg(), properties, true);\n\t\t\t} else {\n\t\t\t\tnewLastLRP = new LocRefPoint(prevLRP.getLastLineOfSubRoute(), properties);\n\t\t\t}\n\t\t\tcheckedAndAdjusted.remove(checkedAndAdjusted.size() - 1);\n\t\t\tprevLRP.setNextLRP(newLastLRP);\n\t\t\tcheckedAndAdjusted.add(newLastLRP);\n\t\t\t\n\t\t\tendLength = checkedAndAdjusted.get(checkedAndAdjusted.size() - 2)\n\t\t\t\t\t.getDistanceToNext();\n\t\t\ttotalNegOff = location.getNegativeOffset()\n\t\t\t\t\t+ expansion.getExpansionLengthEnd()\n\t\t\t\t\t- lrd.getReducedNegOff();\n\t\t}\n\t\treturn checkedAndAdjusted;\n\t}",
"protected abstract float getRequiredLegendOffset();",
"double getCalibrationOffset();",
"void setOffset(com.walgreens.rxit.ch.cda.IVLPPDPQ offset);",
"double getOffset();",
"Double getOffset();",
"public void setOffset(double offset) {\n this.offset = offset;\n }",
"public static int offset_cost() {\n return (56 / 8);\n }",
"public static int offset_sum_e() {\n return (104 / 8);\n }",
"@Override\n public Location offsetLocation(int offset) {\n int line = 1;\n int lineOffset;\n for (int lo : lineOffsets) {\n if (lo > offset) {\n break;\n } else {\n line++;\n }\n }\n if (line == 1) {\n lineOffset = 0;\n } else {\n lineOffset = lineOffsets.get(line - 2);\n }\n\n return Location.newLocation(line, offset - lineOffset);\n }",
"public void setOffset(final double offset) {\r\n\t\tthis.offset = offset;\r\n\t}",
"public void autopvaloffset(double new_pvaloffset, boolean auto_offset)\n\t{\n\t\tpvaloffset = new_pvaloffset; //will be overwritten by auto_offset\n\t\tif(auto_offset)\n\t\t{\n\t\t\tdouble apvaloffset = 0.0;\n\t\t\tdouble inv_num = 1/( (double)((long)use_frames * (long)Idata.getWidth() * (long)Idata.getHeight() * 0.75) );//hexes cover 3/4 of models\n\t\t\tfor (int val = datamax; val >= datamin; --val) //logprobs for biggest datavalues are typically the smallest\n\t\t\t{\tapvaloffset += (double)histogram[val-datamin] * poissonlogprob(val,datamean);} //These two should be like x and ln(x)\n\t\t\tpvaloffset = apvaloffset * inv_num;\n\t\t}\n\t}",
"public void calculateOffsets() {\n /* 113 */\n float legendLeft = 0.0F, legendRight = 0.0F, legendBottom = 0.0F, legendTop = 0.0F;\n /* */\n /* 115 */\n if (this.mLegend != null && this.mLegend.isEnabled() && !this.mLegend.isDrawInsideEnabled()) {\n /* */\n /* 117 */\n float yLegendOffset, fullLegendWidth = Math.min(this.mLegend.mNeededWidth, this.mViewPortHandler\n/* 118 */.getChartWidth() * this.mLegend.getMaxSizePercent());\n /* */\n /* 120 */\n switch (this.mLegend.getOrientation()) {\n /* */\n case VERTICAL:\n /* 122 */\n float xLegendOffset = 0.0F;\n /* */\n /* 124 */\n if (this.mLegend.getHorizontalAlignment() == Legend.LegendHorizontalAlignment.LEFT || this.mLegend\n/* 125 */.getHorizontalAlignment() == Legend.LegendHorizontalAlignment.RIGHT) {\n /* 126 */\n if (this.mLegend.getVerticalAlignment() == Legend.LegendVerticalAlignment.CENTER) {\n /* */\n /* 128 */\n float spacing = Utils.convertDpToPixel(13.0F);\n /* */\n /* 130 */\n xLegendOffset = fullLegendWidth + spacing;\n /* */\n }\n /* */\n else {\n /* */\n /* 134 */\n float spacing = Utils.convertDpToPixel(8.0F);\n /* */\n /* 136 */\n float legendWidth = fullLegendWidth + spacing;\n /* 137 */\n float legendHeight = this.mLegend.mNeededHeight + this.mLegend.mTextHeightMax;\n /* */\n /* 139 */\n MPPointF center = getCenter();\n /* */\n /* */\n /* */\n /* 143 */\n float bottomX = (this.mLegend.getHorizontalAlignment() == Legend.LegendHorizontalAlignment.RIGHT) ? (getWidth() - legendWidth + 15.0F) : (legendWidth - 15.0F);\n /* */\n /* 145 */\n float bottomY = legendHeight + 15.0F;\n /* 146 */\n float distLegend = distanceToCenter(bottomX, bottomY);\n /* */\n /* 148 */\n MPPointF reference = getPosition(center, getRadius(),\n /* 149 */ getAngleForPoint(bottomX, bottomY));\n /* */\n /* 151 */\n float distReference = distanceToCenter(reference.x, reference.y);\n /* 152 */\n float minOffset = Utils.convertDpToPixel(5.0F);\n /* */\n /* 154 */\n if (bottomY >= center.y && getHeight() - legendWidth > getWidth()) {\n /* 155 */\n xLegendOffset = legendWidth;\n /* 156 */\n } else if (distLegend < distReference) {\n /* */\n /* 158 */\n float diff = distReference - distLegend;\n /* 159 */\n xLegendOffset = minOffset + diff;\n /* */\n }\n /* */\n /* 162 */\n MPPointF.recycleInstance(center);\n /* 163 */\n MPPointF.recycleInstance(reference);\n /* */\n }\n /* */\n }\n /* */\n /* 167 */\n switch (this.mLegend.getHorizontalAlignment()) {\n /* */\n// case VERTICAL:\n// /* 169 */\n// legendLeft = xLegendOffset;\n// /* */\n// break;\n// /* */\n// /* */\n// case HORIZONTAL:\n// /* 173 */\n// legendRight = xLegendOffset;\n// break;\n }\n switch (this.mLegend.getVerticalAlignment())\n /* */ {\n// case VERTICAL:\n// /* 179 */\n// legendTop = Math.min(this.mLegend.mNeededHeight, this.mViewPortHandler\n///* 180 */.getChartHeight() * this.mLegend.getMaxSizePercent());\n// break;\n// /* */\n// case HORIZONTAL:\n// /* */\n// case null:\n// /* 183 */\n// break;\n }\n legendBottom = Math.min(this.mLegend.mNeededHeight, this.mViewPortHandler\n/* 184 */.getChartHeight() * this.mLegend.getMaxSizePercent());\n /* */\n break;\n /* */\n /* */\n /* */\n /* */\n /* */\n /* */\n /* */\n case HORIZONTAL:\n /* 193 */\n yLegendOffset = 0.0F;\n /* */\n /* 195 */\n if (this.mLegend.getVerticalAlignment() == Legend.LegendVerticalAlignment.TOP || this.mLegend\n/* 196 */.getVerticalAlignment() == Legend.LegendVerticalAlignment.BOTTOM) {\n /* */\n /* */\n /* */\n /* */\n /* 201 */\n float yOffset = getRequiredLegendOffset();\n /* */\n /* 203 */\n yLegendOffset = Math.min(this.mLegend.mNeededHeight + yOffset, this.mViewPortHandler\n/* 204 */.getChartHeight() * this.mLegend.getMaxSizePercent());\n /* */\n /* 206 */\n switch (this.mLegend.getVerticalAlignment())\n /* */ {\n// case VERTICAL:\n// /* 208 */\n// legendTop = yLegendOffset;\n// break;\n// /* */\n// case HORIZONTAL:\n// /* */\n// case null:\n// /* 211 */\n// break;\n }\n legendBottom = yLegendOffset;\n /* */\n }\n /* */\n break;\n /* */\n }\n /* */\n /* */\n /* */\n /* 218 */\n legendLeft += getRequiredBaseOffset();\n /* 219 */\n legendRight += getRequiredBaseOffset();\n /* 220 */\n legendTop += getRequiredBaseOffset();\n /* 221 */\n legendBottom += getRequiredBaseOffset();\n /* */\n }\n /* */\n /* 224 */\n float minOffset = Utils.convertDpToPixel(this.mMinOffset);\n /* */\n /* 226 */\n if (this instanceof RadarChart) {\n /* 227 */\n XAxis x = getXAxis();\n /* */\n /* 229 */\n if (x.isEnabled() && x.isDrawLabelsEnabled()) {\n /* 230 */\n minOffset = Math.max(minOffset, x.mLabelRotatedWidth);\n /* */\n }\n /* */\n }\n /* */\n /* 234 */\n legendTop += getExtraTopOffset();\n /* 235 */\n legendRight += getExtraRightOffset();\n /* 236 */\n legendBottom += getExtraBottomOffset();\n /* 237 */\n legendLeft += getExtraLeftOffset();\n /* */\n /* 239 */\n float offsetLeft = Math.max(minOffset, legendLeft);\n /* 240 */\n float offsetTop = Math.max(minOffset, legendTop);\n /* 241 */\n float offsetRight = Math.max(minOffset, legendRight);\n /* 242 */\n float offsetBottom = Math.max(minOffset, Math.max(getRequiredBaseOffset(), legendBottom));\n /* */\n /* 244 */\n this.mViewPortHandler.restrainViewPort(offsetLeft, offsetTop, offsetRight, offsetBottom);\n /* */\n /* 246 */\n if (this.mLogEnabled) {\n /* 247 */\n Log.i(\"MPAndroidChart\", \"offsetLeft: \" + offsetLeft + \", offsetTop: \" + offsetTop + \", offsetRight: \" + offsetRight + \", offsetBottom: \" + offsetBottom);\n /* */\n }\n /* */\n }",
"int getCurrentOffset()\t\t\t\t{ return patch_delta; }",
"@Override\n public MPPointF getOffset() {\n return new MPPointF(-(getWidth() / 2.0f), -getHeight() - (getHeight() / 4.0f));\n }",
"public static double potOffset() {\n\t\t\treturn Preferences.getInstance().getDouble(\"potOffset\", 45);\n\t\t}",
"private LatLng getAdjustedLatLon(LatLng points) { \n\t\tdouble offsetLat = 1000;\n\t\tdouble offsetLon = 1000;\n\t\t//double offsetAlt = 1;\n\n\tdouble objLat = points.latitude;\n\tdouble objLon = points.longitude;\n\tdouble[] latlon = new double[2];\n\tdouble dLat = offsetLat/6378100.0;\n\tdouble dLon = offsetLon/(6378100.0*Math.cos(Math.PI*objLat/180.));\n\tlatlon[0] = objLat + dLat * 180./Math.PI;\n\tlatlon[1] = objLon + dLon * 180./Math.PI;\n\t\n\treturn new LatLng(latlon[0] , latlon[1]);\n\t}",
"protected abstract float getRequiredBaseOffset();",
"com.walgreens.rxit.ch.cda.IVLPPDPQ getOffset();",
"@XmlElement(\"PerpendicularOffset\")\n Expression getPerpendicularOffset();",
"public int getPotionOffset()\n {\n if (!Minecraft.getMinecraft().thePlayer.getActivePotionEffects().isEmpty())\n {\n this.initWithPotion = true;\n return 60 + getPotionOffsetNEI();\n }\n\n // No potions, no offset needed\n this.initWithPotion = false;\n return 0;\n }",
"private void applyLvlUpCost() {\n }",
"List<Integer> lineOffsets();",
"private int adjustOffsetForUnitTests(int offset)\n\t{\n\t\tif (System.getProperty(\"fdbunit\")==null) //$NON-NLS-1$\n\t\t\treturn offset;\n\t\telse\n\t\t\treturn 0;\n\t}",
"public void setInitalOffset(double offset){\n \tmodule.forEach(m -> m.setInitialOffset(offset));\n }",
"public gb_Vector3 getModOffset(){\n\t\treturn modOffset;\n\t}",
"BigDecimal getEndingElevation();",
"@Test\n\tpublic void testGetOffsetsAgainstGeographiclibData() {\n\t\tfor(Point p: s_testPoints) {\n\t\t\tAssert.assertEquals(p.m, Geoid.getOffset(p.l), 0.015);\n\t\t}\n\t}",
"public Point2D\ngetPerpLinePtFromOffSetPt(Point2D offsetPt)\n{\n\treturn (this.ptAtT(this.offsetPtTValue(offsetPt)));\n}",
"private static Text createOffset(int line) {\n String offset = Integer.toHexString(line * 16);\n StringBuilder stringBuilder = new StringBuilder();\n for (int j = 0; j < (8 - offset.length()); j++) {\n stringBuilder.append(0);\n }\n stringBuilder.append(offset).append(' ');\n Text result = new Text(stringBuilder.toString());\n //noinspection HardCodedStringLiteral\n result.getStyleClass().add(\"normal\");\n return result;\n }",
"public int getDesplaceOffsetX(){\n\t\tif(style==Style.ROUTES){\r\n\t\t\treturn -10;\r\n\t\t}else{\r\n\t\t\treturn -6;\r\n\t\t}\r\n\t}",
"@Override\r\n public void setOffset(long offset) {\n }",
"public void setLiningOffset(IfcLengthMeasure LiningOffset)\n\t{\n\t\tthis.LiningOffset = LiningOffset;\n\t\tfireChangeEvent();\n\t}",
"protected void applyOffsetCorrection() {\n\t\t// Check collision with the left side of the window\n\t\tint overflow = -x;\n\t\tint balloonWidth = balloonTip.getWidth();\n\n\t\tif (overflow > 0) {\n\t\t\tx += overflow;\n\t\t\thOffset -= overflow;\n\t\t\t// Take into account the minimum horizontal offset\n\t\t\tif (hOffset < minimumHorizontalOffset) {\n\t\t\t\thOffset = minimumHorizontalOffset;\n\t\t\t\tif (flipX) {\n\t\t\t\t\tx += -overflow + (balloonWidth - preferredHorizontalOffset) - minimumHorizontalOffset;\n\t\t\t\t}else {\n\t\t\t\t\tx += -overflow + preferredHorizontalOffset - minimumHorizontalOffset;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Check collision with the right side of the window\n\t\toverflow = (x+balloonWidth) - balloonTip.getTopLevelContainer().getWidth();\n\t\tif (overflow > 0) {\n\t\t\tx -= overflow;\n\t\t\thOffset += overflow;\n\n\t\t\t// Take into account the minimum horizontal offset\n\t\t\tif (hOffset > balloonWidth - minimumHorizontalOffset) {\n\t\t\t\thOffset = balloonWidth - minimumHorizontalOffset;\n\t\t\t\tif (flipX) {\n\t\t\t\t\tx += overflow + preferredHorizontalOffset + minimumHorizontalOffset;\n\t\t\t\t}else {\n\t\t\t\t\tx += overflow - (balloonWidth - preferredHorizontalOffset) + minimumHorizontalOffset;\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}",
"public double getOffset() {\n return offset;\n }",
"Offset createOffset();",
"@Test\n\tpublic void testGetGridOffsetValues() {\n\t\tAssert.assertEquals(13.68, Geoid.getGridOffset(90.0, 0.0), EPSILON);\n\t\tAssert.assertEquals(-29.79, Geoid.getGridOffset(-90.0, 0.0), EPSILON);\n\n\t\t// random grid params from EGM.complete.txt.gz\n\t\t// 89.74 5.75 13.89\n\t\t// 86.5 217.25 11.76\n\t\t// 71.25 8.0 43.56\n\t\t// 54.0 182.25 2.35\n\t\t// 35.5 186.0 -12.91\n\t\t// 14.75 213.5 -8.07\n\t\t// -22.25 221.5 -10.18\n\t\t// -37.5 13.0 25.61\n\t\t// -51.75 157.25 -17.88\n\t\t// -70.5 346.0 5.18\n\t\t// -74.5 22.0 17.5\n\t\t// -84.5 306.25 -25.71\n\t\t// -86.75 328.75 -21.81\n\n\t\tAssert.assertEquals(13.89, Geoid.getGridOffset(89.74, 5.75), EPSILON); \n\t\tAssert.assertEquals(11.76, Geoid.getGridOffset(86.5, 217.25), EPSILON);\n\t\tAssert.assertEquals(43.56, Geoid.getGridOffset(71.25, 8.0), EPSILON);\n\t\tAssert.assertEquals(2.35, Geoid.getGridOffset(54.0, 182.25), EPSILON);\n\t\tAssert.assertEquals(-12.91, Geoid.getGridOffset(35.5, 186.0), EPSILON);\n\t\tAssert.assertEquals(-8.07, Geoid.getGridOffset(14.75, 213.5), EPSILON);\n\t\tAssert.assertEquals(-10.18, Geoid.getGridOffset(-22.25, 221.5), EPSILON);\n\t\tAssert.assertEquals(25.61, Geoid.getGridOffset(-37.5, 13.0), EPSILON);\n\t\tAssert.assertEquals(-17.88, Geoid.getGridOffset(-51.75, 157.25), EPSILON);\n\t\tAssert.assertEquals(5.18, Geoid.getGridOffset(-70.5, 346.0), EPSILON);\n\t\tAssert.assertEquals(17.5, Geoid.getGridOffset(-74.5, 22.0), EPSILON);\n\t\tAssert.assertEquals(-25.71, Geoid.getGridOffset(-84.5, 306.25), EPSILON);\n\t\tAssert.assertEquals(-21.81, Geoid.getGridOffset(-86.75, 328.75), EPSILON);\n\t\tAssert.assertEquals(-29.79, Geoid.getGridOffset(-90.0, 0.0), EPSILON);\n\t}",
"public abstract double[] roughOffsets();",
"double getExpoBracketingStopsPref();",
"public double getOffset() {\r\n\t\treturn offset;\r\n\t}",
"public void AdjustmentSave(float slope, float offset) {\n\t\t\n\t\tSharedPreferences adjustmentPref = getSharedPreferences(\"User Define\", MODE_PRIVATE);\n\t\tSharedPreferences.Editor adjustmentedit = adjustmentPref.edit();\n\t\t\n\t\tadjustmentedit.putFloat(\"AF SlopeVal\", slope);\n\t\tadjustmentedit.putFloat(\"AF OffsetVal\", offset);\n\t\tadjustmentedit.commit();\n\t\t\n\t\tRunActivity.AF_Slope = slope;\n\t\tRunActivity.AF_Offset = offset;\n\t}",
"double getElevationWithFlooring();",
"protected int[] getRemoveUpdateRebuildOffsetRange(DocumentEvent evt) {\n DocumentEvent.ElementChange lineChange = evt.getChange(evt.getDocument().getDefaultRootElement());\n if (lineChange == null) {\n return null;\n }\n\n int startOffset = evt.getOffset();\n int endOffset = startOffset;\n int[] offsetRange = new int[] {startOffset, endOffset};\n Element[] addedLines = lineChange.getChildrenAdded();\n ElementUtilities.updateOffsetRange(addedLines, offsetRange);\n Element[] removedLines = lineChange.getChildrenRemoved();\n ElementUtilities.updateOffsetRange(removedLines, offsetRange);\n return offsetRange;\n }",
"BigDecimal getElevation();",
"@JSProperty(\"offset\")\n void setOffset(double value);",
"public int getDesplaceOffsetY(){\n\t\tif(style==Style.ROUTES){\r\n\t\t\treturn -17;\r\n\t\t}else{\r\n\t\t\treturn -10;\r\n\t\t}\r\n\t}",
"@Override\n public void offsetChange (float xOffset, float yOffset, float xOffsetStep, float yOffsetStep, int xPixelOffset, int yPixelOffset) {\n pixelOffset = xPixelOffset;\n }",
"public void setUseOffset(boolean useOffset) {\n\t\tthis.useOffset = useOffset;\n\t}",
"public void usedOxygen() {\n\t\tthis.oxygenPoints -=1;\n\t}",
"@Override\r\n\tpublic int getGela_kop() {\n\t\treturn super.getGela_kop();\r\n\t}",
"public final double getOffset() {\n\t\treturn offset;\n\t}",
"public void setBaseline(Double offset) {\n if (offset == null) {\n getOrCreateProperties().setBaseline(null);\n } else {\n getOrCreateProperties().setBaseline((int) (offset * 1000));\n }\n }",
"private void setMapSlopes(){\n\t\tMapObjects mapSlopes = map.getLayers().get(\"SLOPES\").getObjects();\n\t\tfor (int ii = 0; ii < mapSlopes.getCount(); ++ii){\n\t\t\tRectangleMapObject mapSlope = (RectangleMapObject) mapSlopes.get(ii);\n\t\t\tslopes.add(new Rectangle(mapSlope.getRectangle()));\n\t\t}\n\t}",
"private int getExpansionOffset(RuleBasedCollator collator, int ce)\n {\n return ((ce & 0xFFFFF0) >> 4) - collator.m_expansionOffset_;\n }",
"public void setOffset(int offset) {\r\n\t\tthis.offSet = offset;\r\n\t}",
"static long OPL_CALC_SLOT(OPL_SLOT SLOT) {\n /* calcrate envelope generator */\n if ((SLOT.evc += SLOT.evs) >= SLOT.eve) {\n switch (SLOT.evm) {\n case ENV_MOD_AR:\n /* ATTACK . DECAY1 */\n /* next DR */\n\n SLOT.evm = ENV_MOD_DR;\n SLOT.evc = EG_DST;\n SLOT.eve = SLOT.SL;\n SLOT.evs = SLOT.evsd;\n break;\n case ENV_MOD_DR:\n /* DECAY . SL or RR */\n\n SLOT.evc = SLOT.SL;\n SLOT.eve = EG_DED;\n if (SLOT.eg_typ != 0) {\n SLOT.evs = 0;\n } else {\n SLOT.evm = ENV_MOD_RR;\n SLOT.evs = SLOT.evsr;\n }\n break;\n case ENV_MOD_RR:\n /* RR . OFF */\n\n SLOT.evc = EG_OFF;\n SLOT.eve = EG_OFF + 1;\n SLOT.evs = 0;\n break;\n }\n }\n /* calcrate envelope */\n return ((SLOT.TLL + ENV_CURVE[SLOT.evc >> ENV_BITS] + (SLOT.ams != 0 ? ams : 0)) & 0xFFFFFFFFL);\n //return SLOT->TLL+ENV_CURVE[SLOT->evc>>ENV_BITS]+(SLOT->ams ? ams : 0);\n }",
"public String getElev(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\tString[] array = dataBase.readLine().split(\"\\\\|\");\n\t\treturn array[16];\n\t}",
"protected void offset(int offset) {\n super.offset(offset);\n offsetRange(this.fCloseBodyRange, offset);\n offsetRange(this.fExtendsRange, offset);\n offsetRange(this.fImplementsRange, offset);\n offsetRange(this.fInterfacesRange, offset);\n offsetRange(this.fOpenBodyRange, offset);\n offsetRange(this.fSuperclassRange, offset);\n offsetRange(this.fTypeRange, offset);\n }",
"public void setSubscript(Double offset) {\n setBaseline(offset == null ? null : -Math.abs(offset));\n }",
"@Override\r\n public KualiDecimal getOffsetToCashAmount(GeneralLedgerPostingDocument glPostingDocument) {\r\n KualiDecimal total = KualiDecimal.ZERO;\r\n for (GeneralLedgerPendingEntry glpe : glPostingDocument.getGeneralLedgerPendingEntries()) {\r\n if (isOffsetToCash(glpe)) {\r\n if (glpe.getTransactionDebitCreditCode().equals(OLEConstants.GL_DEBIT_CODE)) {\r\n total = total.subtract(glpe.getTransactionLedgerEntryAmount());\r\n }\r\n else if (glpe.getTransactionDebitCreditCode().equals(OLEConstants.GL_CREDIT_CODE)) {\r\n total = total.add(glpe.getTransactionLedgerEntryAmount());\r\n }\r\n }\r\n }\r\n return total;\r\n }",
"protected int[] getInsertUpdateRebuildOffsetRange(DocumentEvent evt) {\n DocumentEvent.ElementChange lineChange = evt.getChange(evt.getDocument().getDefaultRootElement());\n if (lineChange == null) {\n return null;\n }\n\n int startOffset = evt.getOffset();\n int endOffset = startOffset + evt.getLength();\n int[] offsetRange = new int[] {startOffset, endOffset};\n Element[] addedLines = lineChange.getChildrenAdded();\n ElementUtilities.updateOffsetRange(addedLines, offsetRange);\n Element[] removedLines = lineChange.getChildrenRemoved();\n ElementUtilities.updateOffsetRange(removedLines, offsetRange);\n return offsetRange;\n }",
"private void extrapolation(HashMap<Long,Double> extraV){\n double g = 0;\n double h = 0;\n double newV = 0;\n for (long i=0; i<n; i++) {\n g = (oldv.get(i)-extraV.get(i));\n g = g*g;//compute g\n h = v.get(i) - 2*oldv.get(i) + extraV.get(i);\n newV = v.get(i) - g/h;\n if(g >= 1e-8 && h >= 1e-8){\n v.put(i, newV);\n }\n }\n }",
"public void setOffset(int offset) {\r\n this.offset = offset;\r\n }",
"org.openxmlformats.schemas.drawingml.x2006.main.STGeomGuideFormula xgetFmla();",
"public void setOffset(int offset) {\n this.offset = offset;\n }",
"public double calculateXOffset(AxisAlignedBB axis, double offSet) {\n\t\tif (axis.maxY > this.minY && axis.minY < this.maxY) {\n\t\t\tif (axis.maxZ > this.minZ && axis.minZ < this.maxZ) {\n\t\t\t\tdouble var4;\n\n\t\t\t\tif (offSet > 0.0D && axis.maxX <= this.minX) {\n\t\t\t\t\tvar4 = this.minX - axis.maxX;\n\n\t\t\t\t\tif (var4 < offSet) {\n\t\t\t\t\t\toffSet = var4;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (offSet < 0.0D && axis.minX >= this.maxX) {\n\t\t\t\t\tvar4 = this.maxX - axis.minX;\n\n\t\t\t\t\tif (var4 > offSet) {\n\t\t\t\t\t\toffSet = var4;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn offSet;\n\t\t\t} else {\n\t\t\t\treturn offSet;\n\t\t\t}\n\t\t} else {\n\t\t\treturn offSet;\n\t\t}\n\t}",
"@Override\r\n\tpublic void setOffset(IOffset offset) {\n\t\t\r\n\t}",
"void updateTotals () {\n\n speed_kts_mph_kmh_ms_info = make_speed_kts_mph_kmh_ms_info(velocity);\n double lift = foil_lift();\n double drag = total_drag();\n \n // This computes location of the center of gravity of the craft\n // (rider, roughly) in relation to the leading edge (aka LE) of the\n // mast (roughly, front bolt of DT). \n //\n // Mtipping is 0.5*eff_strut_span*strut,drag\n //\n // cg_pos: x-axis offset relative to strut bottom LE. \"fore\" is -, \"aft\" is +,\n dash.cg_pos = find_cg_xpos(); \n // cg_pos_board_level: at board level where x=0 at strut's board-side LE.\n // strut tilt correction is required. example:\n // cg_pos=-35cm, xoff_tip=5cm (horue,dmitry) cg_pos_board_level=-30-5=-35\n dash.cg_pos_board_level = dash.cg_pos;\n\n // foilboard AOA correction. when the board is at high angle of\n // attack, the computed offset is only an approximation, rider is more\n // forward *alone the board surface* in reality. for 90 degree strut,\n // it is the hypotenuse where the adjasent is -dash.cg_pos + cos(\n // BOARD_THICKNESS + strut.span)\n if (rider_xpos_tilt_correction) {\n double pitch_rad = Math.toRadians(craft_pitch);\n double hypo = BOARD_THICKNESS + strut.span;\n double deck_rot_adj = - // when AOA is positive, and cg_pos is\n // negative, increses the magnitude\n hypo * Math.sin(pitch_rad);\n\n // board deck offset is hypotenuse; adjasent value is dash.cg_pos plus\n // deck_rot_adjn\n \n // deck_x_offset is the 'hypotenuse' H = A / cos(A)\n double deck_x_offset = (dash.cg_pos + deck_rot_adj) // the 'adjasent'\n / Math.cos(pitch_rad);\n\n // apply correction\n dash.cg_pos_board_level = deck_x_offset;\n }\n\n // cg_pos_board_level: at board level where x=0 at strut's board-side LE.\n // strut tilt correction is required. example for AoA=0:\n // cg_pos=-30cm, xoff_tip=5cm (horue,dmitry) cg_pos_board_level=-30-5=-35\n dash.cg_pos_board_level -= strut.xoff_tip;\n\n \n // rider_countering_x_offset is computed and saved to reflect posture\n // change due to (a) headwind (b) propulsion pull as follows below\n double rider_countering_x_offset = 0;\n\n // (a) Headwind.\n // Two square triangles: rider_offset/height = rider.drag/weight\n if (!in.opts.ignore_air_resistance)\n rider_countering_x_offset += -(rider.drag/rider.weight)* RIDER_CG_HEIGHT;\n\n // (b) Propulsion pull. \n // Rider's force-countering stance is in effect only if the drive force is applied\n // above the board, which implies it goes through rider's body\n if (DRIVING_FORCE_HEIGHT > 0) {\n // drive force, scaled to be considering coming from the rider CG height spot\n double drive_force_scaled = \n (in.opts.ignore_drive_moment)\n ? 0\n : (total_drag() * DRIVING_FORCE_HEIGHT/RIDER_CG_HEIGHT);\n // two square triangles: rider_offset/height = drive_force_scaled/weight\n rider_countering_x_offset += (drive_force_scaled/rider.weight)* RIDER_CG_HEIGHT; // wasFF 0.86;\n }\n rider.force_countering_x_offest = rider_countering_x_offset;\n dash.cg_pos_of_rider = dash.cg_pos_board_level + rider.force_countering_x_offest;\n\n // factored out to dash.loadPanel()\n // if (can_do_gui_updates) {\n // dash.loadPanel();\n // }\n }",
"public Location getOffset() {\n\t\treturn gfPos;\n\t}",
"int getLatE6();",
"int getLatE6();",
"public void setBalloonOffset(int balloonOffset)\n {\n this.balloonOffset = balloonOffset;\n }",
"public WorldImage drawLose() {\r\n return new OverlayOffsetAlign(\"center\", \"bottom\",\r\n new TextImage(\"Flood-It!\", Cnst.textHeight, Color.BLUE),\r\n 0, Cnst.boardHeight + Cnst.scale,\r\n new AboveAlignImage(\"center\",\r\n new TextImage(\"You Lose!\", Cnst.textHeight, Color.BLACK),\r\n this.indexHelp(0,0).drawBoard(this.blocks)).movePinhole(0, (Cnst.scale * 7) / 2)\r\n ).movePinhole(0, (Cnst.scale * 76) / 10)\r\n .movePinhole(-Cnst.boardWidth / 2, -Cnst.boardHeight / 2);\r\n }",
"public IfcOffsetCurve2DItemProvider(AdapterFactory adapterFactory) {\n\t\tsuper(adapterFactory);\n\t}",
"@Test\n\tpublic void testGetOffsetsAgainstNgaTests() {\n\t\t// tolerances are tweaked to accept currently implemented model\n\t\tAssert.assertEquals(-31.628, Geoid.getOffset(new Location( 38.6281550, 269.7791550)), 0.45);\n\t\tAssert.assertEquals( -2.969, Geoid.getOffset(new Location(-14.6212170, 305.0211140)), 0.45);\n\t\tAssert.assertEquals(-43.575, Geoid.getOffset(new Location( 46.8743190, 102.4487290)), 0.05);\n\t\tAssert.assertEquals( 15.871, Geoid.getOffset(new Location(-23.6174460, 133.8747120)), 1.1);\n\t\tAssert.assertEquals( 50.066, Geoid.getOffset(new Location( 38.6254730, 359.9995000)), 0.25);\n\t\tAssert.assertEquals( 17.329, Geoid.getOffset(new Location( -0.4667440, 0.0023000)), 0.12);\n\n\t\t// test things at poles \n\t\t// TODO verify target offsets \n\t\tAssert.assertEquals( 13.73, Geoid.getOffset(new Location( 89.8, 0.1)), 0.05);\n\t\tAssert.assertEquals(-29.85, Geoid.getOffset(new Location(-89.8, 180.2)), 0.05);\n\n\t}",
"int getLabelOffset();",
"@Override\n\tpublic void modifyView(TipCalcModel tipCalcModel) {\n\t\t\tDecimalFormat dFormat=new DecimalFormat(\"#.##\");\n\t\t\tTipCalcView.getInstance().totalTip.setText(String.valueOf(dFormat.format(tipCalcModel.getTotalTip())));\n\t\t\tTipCalcView.getInstance().totalBill.setText(String.valueOf(dFormat.format(tipCalcModel.getTotalBill())));\n\t\t\t\n\t\t\n\t\t\n\t}",
"public void adjustHorizontalOffset(int offset) {\n OFFSET_HOZ += offset;\n }",
"void setRawOffset(int rawOffset);",
"void setDeltaPInfo(String dpLoadcase, Double refDP);",
"@Override\r\n\t\tpublic double getPrince()\r\n\t\t{\n\t\t\treturn 25.2;\r\n\t\t}",
"public static int offset_min() {\n return (56 / 8);\n }",
"private List<Double> getAreaOfReinforcementLayers(List<Integer> diameters, List<Integer> additionalDiameters, List<Integer> spacings) {\n\n return IntStream.range(0, diameters.size())\n .mapToObj(i -> 0.25 * Math.PI * (diameters.get(i) * diameters.get(i) + additionalDiameters.get(i) * additionalDiameters.get(i)) * 1000 / spacings.get(i))\n .collect(Collectors.toList());\n }",
"@Override\n\tpublic double getMyRidingOffset() {\n\t\treturn -0.6D;\n\t}",
"public void setTransomOffset(IfcLengthMeasure TransomOffset)\n\t{\n\t\tthis.TransomOffset = TransomOffset;\n\t\tfireChangeEvent();\n\t}",
"private int parseOffsetDefaultLocalizedGMT(String text, int start, int[] parsedLen) {\n int sign;\n int idx;\n int offset = 0;\n int parsed = 0;\n int gmtLen = 0;\n String[] strArr = ALT_GMT_STRINGS;\n int length = strArr.length;\n int i = 0;\n while (true) {\n if (i >= length) {\n break;\n }\n String gmt = strArr[i];\n int len = gmt.length();\n if (text.regionMatches(true, start, gmt, 0, len)) {\n gmtLen = len;\n break;\n }\n i++;\n }\n if (gmtLen != 0) {\n int idx2 = start + gmtLen;\n if (idx2 + 1 < text.length()) {\n char c = text.charAt(idx2);\n if (c == '+') {\n sign = 1;\n } else if (c == '-') {\n sign = -1;\n }\n int idx3 = idx2 + 1;\n int[] lenWithSep = {0};\n int offsetWithSep = parseDefaultOffsetFields(text, idx3, DEFAULT_GMT_OFFSET_SEP, lenWithSep);\n if (lenWithSep[0] == text.length() - idx3) {\n idx = idx3 + lenWithSep[0];\n offset = offsetWithSep * sign;\n } else {\n int[] lenAbut = {0};\n int offsetAbut = parseAbuttingOffsetFields(text, idx3, lenAbut);\n if (lenWithSep[0] > lenAbut[0]) {\n offset = offsetWithSep * sign;\n idx = idx3 + lenWithSep[0];\n } else {\n offset = offsetAbut * sign;\n idx = idx3 + lenAbut[0];\n }\n }\n parsed = idx - start;\n }\n }\n parsedLen[0] = parsed;\n return offset;\n }",
"protected abstract int localOffsetTransform(int outOffset, boolean inclusive);",
"@SuppressWarnings(\"deprecation\")\n protected float getPreTab(float x, int tabOffset) {\n Document d = getDocument();\n View v = getViewAtPosition(tabOffset, null);\n if ((d instanceof StyledDocument) && v != null) {\n // Assume f is fixed point.\n Font f = ((StyledDocument)d).getFont(v.getAttributes());\n Container c = getContainer();\n FontMetrics fm = (c != null) ? c.getFontMetrics(f) :\n Toolkit.getDefaultToolkit().getFontMetrics(f);\n int width = getCharactersPerTab() * fm.charWidth('W');\n int tb = (int)getTabBase();\n return (float)((((int)x - tb) / width + 1) * width + tb);\n }\n return 10.0f + x;\n }",
"private void updateOffsets() {\n /*\n // Can't load method instructions: Load method exception: null in method: android.renderscript.AllocationAdapter.updateOffsets():void, dex: in method: android.renderscript.AllocationAdapter.updateOffsets():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.renderscript.AllocationAdapter.updateOffsets():void\");\n }",
"public void setLifepointsIncrease(int amount) {\r\n this.lifepointsIncrease = amount;\r\n }",
"public void setPriceLimitOld (BigDecimal PriceLimitOld);",
"public BigDecimal getLineNetAmt();",
"@Override\r\n\tpublic Nationals getOffset(MeDataSource meDataSource, long offset) {\n\t\treturn null;\r\n\t}",
"public void setOffset(Location value) {\n\t\tgfPos = value;\n\t}",
"private String E19Gages() {\n StringBuilder buffer = new StringBuilder();\n int numCols = 60;\n int leftMargin = 68;\n String[] crit1 = null;\n String[] crit2 = null;\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 2);\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_GAGES + \"\\n\\n\");\n buffer.append(\n \" DCP TELEM\\n\\n\");\n\n buffer.append(String.format(\n \" NESS ID: %-9s %12s TYPE OF TELEMETRY: %s\\n\",\n data.getDcp().getGoes(), \" \", data.getTelem().getType()));\n buffer.append(String.format(\n \" OWNER: %-11s %12s OWNER: %s\\n\",\n data.getDcp().getOwner(), \" \", data.getTelem().getOwner()));\n buffer.append(String.format(\n \" REPORT TIME: %-9s %12s PHONE NUMBER: %s\\n\",\n data.getDcp().getRptime(), \" \", data.getTelem().getPhone()));\n buffer.append(String.format(\n \" INTERVAL: %-5s %12s INTERVAL: %s\\n\",\n data.getDcp().getRptfreq(), \" \", data.getTelem().getRptFreq()));\n\n // Create the first criteria\n int dcpNumCols = 20;\n int dcpLeftMargin = 0;\n\n if (data.getDcp().getCriteria() != null) {\n crit1 = TextUtil.wordWrap(data.getDcp().getCriteria(), dcpNumCols,\n dcpLeftMargin);\n }\n\n // Create the second criteria\n int telmNumCols = 15;\n int telmLeftMargin = 0;\n\n if (data.getTelem().getCriteria() != null) {\n crit2 = TextUtil.wordWrap(data.getTelem().getCriteria(),\n telmNumCols, telmLeftMargin);\n }\n\n int crit1Size = 0;\n int crit2Size = 0;\n\n // formatting for line 1\n if (crit1 != null) {\n buffer.append(String.format(\" CRITERIA: %-20s %12s\", crit1[0],\n \" \"));\n crit1Size = crit1.length - 1;\n }\n\n if (crit2 != null) {\n buffer.append(String.format(\"CRITERIA: %-20s\\n\", crit2[0]));\n crit2Size = crit2.length - 1;\n }\n\n int index = 1;\n\n // formatting for all additional lines\n while ((crit1Size > 0) || (crit2Size < 0)) {\n if (crit1Size > 0) {\n buffer.append(String.format(\" %-20s %12s\",\n crit1[index], \" \"));\n crit1Size--;\n }\n\n if (crit2Size > 0) {\n buffer.append(String.format(\" %-20s\", crit2[index]));\n crit2Size--;\n buffer.append(\"\\n\");\n }\n index++;\n }\n\n String cost = \" \";\n if (data.getTelem().getCost() > 0) {\n cost = String.format(\"%-7.2f\", data.getTelem().getCost());\n }\n\n buffer.append(String.format(\n \" %18s PAYOR/COST OF LINE: %s / $ %s\\n\\n\",\n \" \", data.getTelem().getPayor(), cost));\n\n int count1 = countNewlines(buffer.toString());\n\n // Do column header.\n buffer.append(\n \" GAGE TYPE OWNER MAINTENANCE BEGAN ENDED GAGE LOCATION/REMARKS\\n\");\n buffer.append(\n \" ----------- ----------- ----------- ---------- ---------- ------------------------------------------------------------\\n\");\n\n int count2 = countNewlines(buffer.toString()) - count1;\n int loop = 0;\n int available = getLinesPerPage() - count1 - count2 - 5;\n int avail = available;\n int needed = 0;\n TextReportData dataGage = TextReportDataManager.getInstance()\n .getGageQueryData(lid);\n\n ArrayList<Gage> gageList = dataGage.getGageList();\n\n String indent = \"\";\n for (int i = 0; i < leftMargin; i++) {\n indent = indent.concat(\" \");\n }\n\n for (Gage gage : gageList) {\n // Get the remark field\n // Compute the number of lines needed for this record\n String[] lines = TextUtil.wordWrap(gage.getRemark(), numCols, 0);\n needed = (countNewlines(gage.getRemark()) + 1) + 1;\n\n if (needed <= avail) {\n // Formatting for line 1\n String remarkLine = \"\";\n\n if (lines != null) {\n remarkLine = lines[0];\n }\n String beginDate = \" \";\n String endDate = \" \";\n\n if (gage.getBegin() != null) {\n\n beginDate = sdf.format(gage.getBegin());\n }\n if (gage.getEnd() != null) {\n endDate = sdf.format(gage.getEnd());\n\n }\n\n buffer.append(String.format(\n \" %-11s %-11s %-11s %10s %10s %-23s\\n\",\n gage.getType(), gage.getOwner(), gage.getMaint(),\n beginDate, endDate, remarkLine));\n\n // Formatting for all additional lines\n if ((lines != null) && (lines.length > 0)) {\n for (int i = 1; i < lines.length; i++) {\n if (lines[i].length() > 1) {\n buffer.append(indent + lines[i] + \"\\n\");\n }\n }\n }\n\n avail = avail - needed;\n } else if (needed > avail) {\n // try to place FOOTER at the bottom\n for (int i = 0; i < (((getLinesPerPage() * loop)\n + getFooterPosition())\n - countNewlines(buffer.toString())); i++) {\n buffer.append(\"\\n\");\n }\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"))\n .getTime();\n String footer = createFooter(dataGage, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_GAGES, \"GAGES\",\n null, E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer);\n\n // Do column header.\n buffer.append(\n \" GAGE TYPE OWNER MAINTENANCE BEGAN ENDED GAGE LOCATION/REMARKS\\n\");\n buffer.append(\n \" ----------- ----------- ----------- ---------- ---------- ------------------------------------------------------------\\n\");\n\n // Reset available value & continue from top of loop.\n avail = available + count1;\n loop++;\n }\n }\n\n buffer.append(\"\\n\");\n\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\")).getTime();\n String footer = createFooter(dataGage, E19_RREVISE_TYPE, sdf.format(d),\n \"NWS FORM E-19\", E19_GAGES, \"GAGES\", null,\n E19_STANDARD_LEFT_MARGIN);\n\n buffer.append(footer);\n\n return buffer.toString();\n }",
"public void setDropDownHorizontalOffset(int offset) {\n/* 317 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"java.lang.String getTxpowerOffset();"
]
| [
"0.5583206",
"0.5463955",
"0.53452474",
"0.5331012",
"0.5319597",
"0.5282894",
"0.52269423",
"0.5203896",
"0.51998615",
"0.5196713",
"0.5092641",
"0.50510544",
"0.5048191",
"0.49954158",
"0.49919033",
"0.4987443",
"0.49792108",
"0.49209023",
"0.49121714",
"0.49060667",
"0.48828533",
"0.48369956",
"0.48332807",
"0.4809531",
"0.4808129",
"0.47909075",
"0.4769315",
"0.4761075",
"0.47588378",
"0.4749957",
"0.4748227",
"0.4730403",
"0.47137168",
"0.46993437",
"0.46701035",
"0.46583897",
"0.46548927",
"0.4638259",
"0.46147323",
"0.46147174",
"0.4608146",
"0.46037602",
"0.45894766",
"0.45815057",
"0.45813876",
"0.45787376",
"0.45715398",
"0.45665577",
"0.45583043",
"0.45413166",
"0.45221654",
"0.45014295",
"0.4499517",
"0.4499025",
"0.44880235",
"0.4482085",
"0.44789323",
"0.44770905",
"0.44763094",
"0.44754875",
"0.44749033",
"0.44736746",
"0.4466646",
"0.44598183",
"0.44576874",
"0.44520724",
"0.44444975",
"0.4428645",
"0.44257706",
"0.4423497",
"0.44058973",
"0.4404465",
"0.43991035",
"0.43991035",
"0.43927348",
"0.43915367",
"0.43896726",
"0.43869838",
"0.43824407",
"0.4381669",
"0.43794402",
"0.43767455",
"0.43692857",
"0.43681365",
"0.43663403",
"0.43603706",
"0.4356462",
"0.43531018",
"0.4351639",
"0.4351385",
"0.43480453",
"0.43461004",
"0.4344852",
"0.43394476",
"0.4339054",
"0.4337709",
"0.4333555",
"0.43289676",
"0.4327981",
"0.43261057"
]
| 0.4845422 | 21 |
Customizes offset GLPE's for accounting lines associated with advances | public boolean customizeAdvanceOffsetGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry) {
final String paymentDocumentType = StringUtils.isBlank(getTravelAdvancePaymentDocumentType()) ? TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CHECK_ACH_DOCUMENT : getTravelAdvancePaymentDocumentType();
offsetEntry.setFinancialDocumentTypeCode(paymentDocumentType);
offsetEntry.setOrganizationDocumentNumber(getTravelDocumentIdentifier());
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initOffset(){\n\t\tdouble maxDistance = Math.sqrt(Math.pow(getBattleFieldWidth(),2) + Math.pow(getBattleFieldHeight(),2));\n\n\t\tif(eDistance < 100) { \n\t\t\toffset = 0;\n\t\t} else if (eDistance <=700){\n\t\t\tif((getHeadingRadians()-enemy)<-(3.14/2) && (enemy-getHeadingRadians())>= (3.14/2)) {\n\n\t\t\t\toffset=eDistance / maxDistance*0.4;\n\t\t\t} else {\n\t\t\t\toffset=-eDistance / maxDistance*0.4;\n\t\t\t}\n\t\t\toffset*=velocity/8;\n\t\t}\n\t\telse {\n\t\t\tif((getHeadingRadians()-enemy)<-(3.14/2) && (enemy-getHeadingRadians())>= (3.14/2)) {\n\t\t\t\toffset = eDistance / maxDistance*0.4;\n\t\t\t} else {\n\t\t\t\toffset = -eDistance / maxDistance*0.4;\n\t\t\t}\n\t\t\toffset*=velocity/4;\n\t\t}\n\t}",
"protected abstract float getRequiredLegendOffset();",
"double getCalibrationOffset();",
"double getOffset();",
"List<Integer> lineOffsets();",
"protected abstract float getRequiredBaseOffset();",
"protected final List<LocRefPoint> checkAndAdjustOffsets(\n\t\t\tfinal LocRefData lrd, final OpenLREncoderProperties properties)\n\t\t\tthrows OpenLRProcessingException {\n\t\tList<LocRefPoint> checkedAndAdjusted = lrd.getLocRefPoints();\n\t\tLocation location = lrd.getLocation();\n\t\tExpansionData expansion = lrd.getExpansionData();\n\t\tint startLength = checkedAndAdjusted.get(0).getDistanceToNext();\n\t\tint totalPosOff = location.getPositiveOffset()\n\t\t\t\t+ expansion.getExpansionLengthStart();\n\t\twhile (totalPosOff > startLength) {\n\t\t\tif (expansion.hasExpansionStart()) {\n\t\t\t\tif (!expansion.modifyExpansionAtStart(checkedAndAdjusted.get(0)\n\t\t\t\t\t\t.getRoute())) {\n\t\t\t\t\tthrow new OpenLREncoderProcessingException(\n\t\t\t\t\t\t\tEncoderProcessingError.OFFSET_TRIMMING_FAILED);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlrd.addToReducedPosOff(startLength);\n\t\t\t}\n\t\t\tcheckedAndAdjusted.remove(0);\n\t\t\tif (checkedAndAdjusted.size() < 2) {\n\t\t\t\tthrow new OpenLREncoderProcessingException(\n\t\t\t\t\t\tEncoderProcessingError.OFFSET_TRIMMING_FAILED);\n\t\t\t}\n\t\t\tstartLength = checkedAndAdjusted.get(0).getDistanceToNext();\n\t\t\ttotalPosOff = location.getPositiveOffset()\n\t\t\t\t\t+ expansion.getExpansionLengthStart()\n\t\t\t\t\t- lrd.getReducedPosOff();\n\t\t}\n\n\t\tint endLength = checkedAndAdjusted.get(checkedAndAdjusted.size() - 2)\n\t\t\t\t.getDistanceToNext();\n\t\tint totalNegOff = location.getNegativeOffset()\n\t\t\t\t+ expansion.getExpansionLengthEnd();\n\t\twhile (totalNegOff > endLength) {\n\t\t\tif (expansion.hasExpansionEnd()) {\n\t\t\t\tif (!expansion.modifyExpansionAtEnd(checkedAndAdjusted.get(\n\t\t\t\t\t\tcheckedAndAdjusted.size() - 2).getRoute())) {\n\t\t\t\t\tthrow new OpenLREncoderProcessingException(\n\t\t\t\t\t\t\tEncoderProcessingError.OFFSET_TRIMMING_FAILED);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlrd.addToReducedNegOff(endLength);\n\t\t\t}\n\t\t\t// remove last LRP\n\t\t\tcheckedAndAdjusted.remove(checkedAndAdjusted.size() - 1);\n\t\t\tif (checkedAndAdjusted.size() < 2) {\n\t\t\t\tthrow new OpenLREncoderProcessingException(\n\t\t\t\t\t\tEncoderProcessingError.OFFSET_TRIMMING_FAILED);\n\t\t\t}\n\t\t\t\n\t\t\tLocRefPoint oldLastLRP = checkedAndAdjusted.get(checkedAndAdjusted\n\t\t\t\t\t.size() - 1);\n\t\t\tLocRefPoint prevLRP = checkedAndAdjusted.get(checkedAndAdjusted\n\t\t\t\t\t.size() - 2);\n\t\t\tLocRefPoint newLastLRP;\n\t\t\tif (oldLastLRP.isLRPOnLine()) {\n\t\t\t\tnewLastLRP = new LocRefPoint(oldLastLRP.getLine(), oldLastLRP.getLongitudeDeg(), oldLastLRP.getLatitudeDeg(), properties, true);\n\t\t\t} else {\n\t\t\t\tnewLastLRP = new LocRefPoint(prevLRP.getLastLineOfSubRoute(), properties);\n\t\t\t}\n\t\t\tcheckedAndAdjusted.remove(checkedAndAdjusted.size() - 1);\n\t\t\tprevLRP.setNextLRP(newLastLRP);\n\t\t\tcheckedAndAdjusted.add(newLastLRP);\n\t\t\t\n\t\t\tendLength = checkedAndAdjusted.get(checkedAndAdjusted.size() - 2)\n\t\t\t\t\t.getDistanceToNext();\n\t\t\ttotalNegOff = location.getNegativeOffset()\n\t\t\t\t\t+ expansion.getExpansionLengthEnd()\n\t\t\t\t\t- lrd.getReducedNegOff();\n\t\t}\n\t\treturn checkedAndAdjusted;\n\t}",
"public void calculateOffsets() {\n /* 113 */\n float legendLeft = 0.0F, legendRight = 0.0F, legendBottom = 0.0F, legendTop = 0.0F;\n /* */\n /* 115 */\n if (this.mLegend != null && this.mLegend.isEnabled() && !this.mLegend.isDrawInsideEnabled()) {\n /* */\n /* 117 */\n float yLegendOffset, fullLegendWidth = Math.min(this.mLegend.mNeededWidth, this.mViewPortHandler\n/* 118 */.getChartWidth() * this.mLegend.getMaxSizePercent());\n /* */\n /* 120 */\n switch (this.mLegend.getOrientation()) {\n /* */\n case VERTICAL:\n /* 122 */\n float xLegendOffset = 0.0F;\n /* */\n /* 124 */\n if (this.mLegend.getHorizontalAlignment() == Legend.LegendHorizontalAlignment.LEFT || this.mLegend\n/* 125 */.getHorizontalAlignment() == Legend.LegendHorizontalAlignment.RIGHT) {\n /* 126 */\n if (this.mLegend.getVerticalAlignment() == Legend.LegendVerticalAlignment.CENTER) {\n /* */\n /* 128 */\n float spacing = Utils.convertDpToPixel(13.0F);\n /* */\n /* 130 */\n xLegendOffset = fullLegendWidth + spacing;\n /* */\n }\n /* */\n else {\n /* */\n /* 134 */\n float spacing = Utils.convertDpToPixel(8.0F);\n /* */\n /* 136 */\n float legendWidth = fullLegendWidth + spacing;\n /* 137 */\n float legendHeight = this.mLegend.mNeededHeight + this.mLegend.mTextHeightMax;\n /* */\n /* 139 */\n MPPointF center = getCenter();\n /* */\n /* */\n /* */\n /* 143 */\n float bottomX = (this.mLegend.getHorizontalAlignment() == Legend.LegendHorizontalAlignment.RIGHT) ? (getWidth() - legendWidth + 15.0F) : (legendWidth - 15.0F);\n /* */\n /* 145 */\n float bottomY = legendHeight + 15.0F;\n /* 146 */\n float distLegend = distanceToCenter(bottomX, bottomY);\n /* */\n /* 148 */\n MPPointF reference = getPosition(center, getRadius(),\n /* 149 */ getAngleForPoint(bottomX, bottomY));\n /* */\n /* 151 */\n float distReference = distanceToCenter(reference.x, reference.y);\n /* 152 */\n float minOffset = Utils.convertDpToPixel(5.0F);\n /* */\n /* 154 */\n if (bottomY >= center.y && getHeight() - legendWidth > getWidth()) {\n /* 155 */\n xLegendOffset = legendWidth;\n /* 156 */\n } else if (distLegend < distReference) {\n /* */\n /* 158 */\n float diff = distReference - distLegend;\n /* 159 */\n xLegendOffset = minOffset + diff;\n /* */\n }\n /* */\n /* 162 */\n MPPointF.recycleInstance(center);\n /* 163 */\n MPPointF.recycleInstance(reference);\n /* */\n }\n /* */\n }\n /* */\n /* 167 */\n switch (this.mLegend.getHorizontalAlignment()) {\n /* */\n// case VERTICAL:\n// /* 169 */\n// legendLeft = xLegendOffset;\n// /* */\n// break;\n// /* */\n// /* */\n// case HORIZONTAL:\n// /* 173 */\n// legendRight = xLegendOffset;\n// break;\n }\n switch (this.mLegend.getVerticalAlignment())\n /* */ {\n// case VERTICAL:\n// /* 179 */\n// legendTop = Math.min(this.mLegend.mNeededHeight, this.mViewPortHandler\n///* 180 */.getChartHeight() * this.mLegend.getMaxSizePercent());\n// break;\n// /* */\n// case HORIZONTAL:\n// /* */\n// case null:\n// /* 183 */\n// break;\n }\n legendBottom = Math.min(this.mLegend.mNeededHeight, this.mViewPortHandler\n/* 184 */.getChartHeight() * this.mLegend.getMaxSizePercent());\n /* */\n break;\n /* */\n /* */\n /* */\n /* */\n /* */\n /* */\n /* */\n case HORIZONTAL:\n /* 193 */\n yLegendOffset = 0.0F;\n /* */\n /* 195 */\n if (this.mLegend.getVerticalAlignment() == Legend.LegendVerticalAlignment.TOP || this.mLegend\n/* 196 */.getVerticalAlignment() == Legend.LegendVerticalAlignment.BOTTOM) {\n /* */\n /* */\n /* */\n /* */\n /* 201 */\n float yOffset = getRequiredLegendOffset();\n /* */\n /* 203 */\n yLegendOffset = Math.min(this.mLegend.mNeededHeight + yOffset, this.mViewPortHandler\n/* 204 */.getChartHeight() * this.mLegend.getMaxSizePercent());\n /* */\n /* 206 */\n switch (this.mLegend.getVerticalAlignment())\n /* */ {\n// case VERTICAL:\n// /* 208 */\n// legendTop = yLegendOffset;\n// break;\n// /* */\n// case HORIZONTAL:\n// /* */\n// case null:\n// /* 211 */\n// break;\n }\n legendBottom = yLegendOffset;\n /* */\n }\n /* */\n break;\n /* */\n }\n /* */\n /* */\n /* */\n /* 218 */\n legendLeft += getRequiredBaseOffset();\n /* 219 */\n legendRight += getRequiredBaseOffset();\n /* 220 */\n legendTop += getRequiredBaseOffset();\n /* 221 */\n legendBottom += getRequiredBaseOffset();\n /* */\n }\n /* */\n /* 224 */\n float minOffset = Utils.convertDpToPixel(this.mMinOffset);\n /* */\n /* 226 */\n if (this instanceof RadarChart) {\n /* 227 */\n XAxis x = getXAxis();\n /* */\n /* 229 */\n if (x.isEnabled() && x.isDrawLabelsEnabled()) {\n /* 230 */\n minOffset = Math.max(minOffset, x.mLabelRotatedWidth);\n /* */\n }\n /* */\n }\n /* */\n /* 234 */\n legendTop += getExtraTopOffset();\n /* 235 */\n legendRight += getExtraRightOffset();\n /* 236 */\n legendBottom += getExtraBottomOffset();\n /* 237 */\n legendLeft += getExtraLeftOffset();\n /* */\n /* 239 */\n float offsetLeft = Math.max(minOffset, legendLeft);\n /* 240 */\n float offsetTop = Math.max(minOffset, legendTop);\n /* 241 */\n float offsetRight = Math.max(minOffset, legendRight);\n /* 242 */\n float offsetBottom = Math.max(minOffset, Math.max(getRequiredBaseOffset(), legendBottom));\n /* */\n /* 244 */\n this.mViewPortHandler.restrainViewPort(offsetLeft, offsetTop, offsetRight, offsetBottom);\n /* */\n /* 246 */\n if (this.mLogEnabled) {\n /* 247 */\n Log.i(\"MPAndroidChart\", \"offsetLeft: \" + offsetLeft + \", offsetTop: \" + offsetTop + \", offsetRight: \" + offsetRight + \", offsetBottom: \" + offsetBottom);\n /* */\n }\n /* */\n }",
"@Override\n public Location offsetLocation(int offset) {\n int line = 1;\n int lineOffset;\n for (int lo : lineOffsets) {\n if (lo > offset) {\n break;\n } else {\n line++;\n }\n }\n if (line == 1) {\n lineOffset = 0;\n } else {\n lineOffset = lineOffsets.get(line - 2);\n }\n\n return Location.newLocation(line, offset - lineOffset);\n }",
"com.walgreens.rxit.ch.cda.IVLPPDPQ addNewOffset();",
"void setOffset(double offset);",
"Double getOffset();",
"@Override\n public MPPointF getOffset() {\n return new MPPointF(-(getWidth() / 2.0f), -getHeight() - (getHeight() / 4.0f));\n }",
"public static int offset_cost() {\n return (56 / 8);\n }",
"int getCurrentOffset()\t\t\t\t{ return patch_delta; }",
"private static Text createOffset(int line) {\n String offset = Integer.toHexString(line * 16);\n StringBuilder stringBuilder = new StringBuilder();\n for (int j = 0; j < (8 - offset.length()); j++) {\n stringBuilder.append(0);\n }\n stringBuilder.append(offset).append(' ');\n Text result = new Text(stringBuilder.toString());\n //noinspection HardCodedStringLiteral\n result.getStyleClass().add(\"normal\");\n return result;\n }",
"void setOffset(com.walgreens.rxit.ch.cda.IVLPPDPQ offset);",
"public abstract double[] roughOffsets();",
"public int getDesplaceOffsetX(){\n\t\tif(style==Style.ROUTES){\r\n\t\t\treturn -10;\r\n\t\t}else{\r\n\t\t\treturn -6;\r\n\t\t}\r\n\t}",
"int getLabelOffset();",
"public void initConstants() {\n //-0.85832\n double approxAngle = -0.84532;\n fac = Params.arrowSpeed;\n\n switch (course) {\n case 0: //TL\n offsetY = 0;\n offsetX = -15;\n angle = -approxAngle; // In rad, approximation with Maple\n fac *= -1;\n offsetShadow = new Point(12, 0);\n GoffsetArrow = new Point(16, -12);\n break;\n case 1: //TR\n angle = approxAngle;\n offsetY = -8;\n offsetX = -2;\n offsetShadow = new Point(-25, 0);\n GoffsetArrow = new Point(-30, -20);\n break;\n case 2: //R\n offsetY = 0;\n offsetX = 0;\n offsetShadow = new Point(-5, -12);\n GoffsetArrow = new Point(-10, -25);\n break;\n case 3: //BR\n angle = -approxAngle;\n offsetX = -16;\n offsetY = -5;\n offsetShadow = new Point(10, 0);\n GoffsetArrow = new Point(12, -15);\n break;\n case 4: //BL\n angle = approxAngle; // In rad, approximation with Maple\n fac *= -1;\n offsetY = -1;\n offsetX = 1;\n offsetShadow = new Point(-25, 0);\n GoffsetArrow = new Point(-22, -20);\n break;\n case 5: //L\n offsetY = 0;\n offsetX = 0;\n offsetShadow = new Point(-5, -12);\n GoffsetArrow = new Point(-8, -25);\n break;\n default: //TL\n try {\n throw (new Exception(\"Wrong ori\"));\n } catch (Exception e) {\n }\n break;\n }\n }",
"public static int offset_sum_e() {\n return (104 / 8);\n }",
"public void setOffset(double offset) {\n this.offset = offset;\n }",
"com.walgreens.rxit.ch.cda.IVLPPDPQ getOffset();",
"int getLineOfOffset(int offset) throws BadLocationException;",
"public gb_Vector3 getModOffset(){\n\t\treturn modOffset;\n\t}",
"public int getDesplaceOffsetY(){\n\t\tif(style==Style.ROUTES){\r\n\t\t\treturn -17;\r\n\t\t}else{\r\n\t\t\treturn -10;\r\n\t\t}\r\n\t}",
"@XmlElement(\"PerpendicularOffset\")\n Expression getPerpendicularOffset();",
"Offset createOffset();",
"@Override\n public void offsetChange (float xOffset, float yOffset, float xOffsetStep, float yOffsetStep, int xPixelOffset, int yPixelOffset) {\n pixelOffset = xPixelOffset;\n }",
"int getLineOffset(int line) throws BadLocationException;",
"@Override\n public void recalculatePositions() { \n \n }",
"protected float getOffset(int line,int column) {\n prepareLine(line);\n mPaint.setTypeface(mTypefaceText);\n return measureText(mChars,0,column) + measureLineNumber() + mDividerMargin * 2 + mDividerWidth - getOffsetX();\n }",
"private void updateLinePositions() {\n\n\t\tif (alLabelLines.size() == 0) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tfloat fXLinePosition = fXContainerLeft + CONTAINER_BOUNDARY_SPACING;\n\n\t\t\tLabelLine firstLine = alLabelLines.get(0);\n\t\t\tfloat fYLinePosition = fYContainerCenter + (fHeight / 2.0f)\n\t\t\t\t\t- CONTAINER_BOUNDARY_SPACING - firstLine.getHeight();\n\t\t\tfirstLine.setPosition(fXLinePosition, fYLinePosition);\n\n\t\t\tfor (int i = 1; i < alLabelLines.size(); i++) {\n\t\t\t\tLabelLine currentLine = alLabelLines.get(i);\n\t\t\t\tfYLinePosition -= (currentLine.getHeight() + CONTAINER_LINE_SPACING);\n\t\t\t\tcurrentLine.setPosition(fXLinePosition, fYLinePosition);\n\t\t\t}\n\t\t}\n\t}",
"void updateStepCoordiantes(){\n if(xIncreasing) {\n lat = lat + STEP_LENGTH * yCompMotion * degToMRatio;\n displayLat = displayLat + STEP_LENGTH*yCompMotion*degToMRatio;\n }\n else{\n lat = lat - STEP_LENGTH * yCompMotion * degToMRatio;\n displayLat = displayLat - STEP_LENGTH*yCompMotion*degToMRatio;\n }\n if(yIncreasing) {\n lon = lon + STEP_LENGTH * xCompMotion * degToMRatio;\n dispalyLon= dispalyLon + STEP_LENGTH*xCompMotion*degToMRatio;\n }\n else{\n lon = lon - STEP_LENGTH * xCompMotion * degToMRatio;\n dispalyLon= dispalyLon - STEP_LENGTH*xCompMotion*degToMRatio;\n }\n }",
"public void setInitalOffset(double offset){\n \tmodule.forEach(m -> m.setInitialOffset(offset));\n }",
"public int getPotionOffset()\n {\n if (!Minecraft.getMinecraft().thePlayer.getActivePotionEffects().isEmpty())\n {\n this.initWithPotion = true;\n return 60 + getPotionOffsetNEI();\n }\n\n // No potions, no offset needed\n this.initWithPotion = false;\n return 0;\n }",
"public static int offset_counter() {\n return (8 / 8);\n }",
"private void drawtab(Graphics g1, int startoffset, int endoffset, boolean isUpwardTab, String text, Color color, String flag){\n\n // ~~~~ 1 ~~~~ revursive for one situation that this annotation are \n // layout on more than one line\n try{\n \n // ~~~~ 1.1 ~~~~ get rectangle of the annotation\n Rectangle rect1 = this.getUI().modelToView(this, startoffset);\n int y1 = rect1.y; // get the Y coordinate of the upper-left corner of the Rectangle.\n Rectangle rect2 = this.getUI().modelToView(this, endoffset);\n int y2 = rect2.y; // get the Y coordinate of the upper-left corner of the Rectangle.\n \n // ~~~~ 1.2 ~~~~ get \n // this annotation are layout on more than one line, if the span \n // start and the span end have different Y coordinate of their \n // upper-left corner of the their rectangle.\n if( y1!=y2){\n for( int i=startoffset; i<=endoffset;i++){\n Rectangle recttemp = this.getUI().modelToView(this, i);\n int ytemp = recttemp.y;\n if( ytemp == y1 )\n continue;\n else{\n //System.out.println(\"i=\"+i+\", start = \" + startoffset + \", endoffset = \"+ endoffset);\n drawtab(g1, startoffset, i-1, isUpwardTab, text.substring(0, i-1-startoffset), color, flag);//\n drawtab(g1, i, endoffset, isUpwardTab, text.substring(i-startoffset, text.length()), color, \"dead\");//\n return;\n }\n\n }\n }\n\n }catch(Exception ex){\n log.LoggingToFile.log( Level.SEVERE, ex.getMessage() );\n }\n\n \n // ~~~~ 2 ~~~~\n // This part is used to draw the rectangle area of a tab \n try {\n // color for line\n //Color linecolor_outer = new Color(153,153,102);\n Color linecolor;\n \n if(( flag!=null)&&(flag.equals(\"father\")))\n linecolor = new Color(204,0,0);\n else\n linecolor = new Color(0,0,204);\n \n Color linecolor_outer = linecolor;\n Color linecolor_inner = new Color(204,204,204);\n \n\n // get rectangle of the annotation\n Rectangle re = this.getUI().modelToView(this, startoffset);\n\n // coordinates (x1,y1) of the upper left point of the rectangle\n // view to this caret point\n int rect_upperleftX = re.x, rect_upperleftY = re.y;\n int rect_height = re.height;\n // coordinates (x2,y2) of the upper right point of the rectangle\n // view to this caret point\n re = this.getUI().modelToView(this, endoffset);\n int rect_upperrightX = re.x, rect_upperrightY = re.y;\n\n int extraheight = 3;\n\n // dirction of tab's head: to top or to bottom\n if( isUpwardTab ){\n\n Color fillcolor;\n fillcolor = ( color==null? new Color(204,204,204) : color);\n \n //g1.setColor( new Color(204,204,204) );\n //g1.fillRect(rect_upperleftX+3, rect_upperleftY-extraheight+3, \n // Math.abs(rect_upperrightX - rect_upperleftX)-3,\n // rect_height+extraheight-3);\n\n //g1.setColor(fillcolor);\n //g1.fillRect(rect_upperleftX, rect_upperleftY - extraheight , rect_upperrightX - rect_upperleftX + 2, extraheight+4);\n\n //g1.setColor(linecolor_outer);\n //g1.drawRect(rect_upperleftX, rect_upperleftY - extraheight-1, rect_upperrightX - rect_upperleftX, rect_height+extraheight+2);\n \n g1.setColor( Color.WHITE ); \n g1.fillRect(rect_upperleftX, rect_upperleftY - extraheight , rect_upperrightX - rect_upperleftX + 2, re.height + 2);\n g1.setColor( linecolor );\n //g1.fillRoundRect(re.x, re.y, re.width, re.height, 10, 10);\n g1.fillRect(rect_upperleftX, rect_upperleftY - extraheight , rect_upperrightX - rect_upperleftX + 2, re.height + 2 );\n g1.setColor( color );\n g1.fillRect(rect_upperleftX+2, rect_upperleftY - extraheight + 2 , rect_upperrightX - rect_upperleftX -2, re.height - 2 );\n //g1.drawRect(+1, rect_upperleftY - extraheight, rect_upperrightX - rect_upperleftX-2, rect_height+extraheight-0);\n //.setColor(linecolor_inner);\n //g1.drawRect(rect_upperleftX+2, rect_upperleftY - extraheight+1, rect_upperrightX - rect_upperleftX-4, rect_height+extraheight-2);\n\n g1.setColor(Color.black);\n\n // draw point\n if(( flag!=null)&&(flag.equals(\"dead\"))){\n \n } else {\n\n int cx = rect_upperleftX+2;\n int cy = rect_upperleftY - extraheight+2;\n g1.fillOval( cx, cy, 10, 10);\n\n if(( flag!=null)&&(flag.equals(\"father\")))\n g1.setColor( Color.red );\n else\n g1.setColor( new Color(255,153,0) );\n \n g1.fillOval( cx, cy, 8, 8);\n }\n\n g1.setColor(Color.black);\n int elementindex = this.getDocument().getDefaultRootElement().getElementIndex(startoffset);\n Element e = this.getDocument().getDefaultRootElement().getElement(elementindex);\n Font font = this.getStyledDocument().getFont( e.getAttributes() );\n\n int r = color.getAlpha();\n int b = color.getBlue();\n int gg = color.getGreen();\n double grayLevel = r * 0.299 + gg * 0.587 + b * 0.114;\n Color textcolor = grayLevel > 192 ? Color.BLACK : Color.white;\n \n g1.setFont( font );\n g1.setColor( textcolor );\n // draw text\n if((text!=null)&&(text.length()>0))\n //g1.drawString(text, rect_upperleftX+2, rect_upperleftY + rect_height-2);\n g1.drawString(text, rect_upperleftX, rect_upperleftY + re.height - 7 );\n \n // opinion1: draw rect\n /*\n\n // lining: lowerleft - lowerright\n g1.drawLine(rect_upperleftX+i, rect_upperleftY-i+rect_height, rect_upperrightX - i,\n rect_upperleftY - i+rect_height );\n\n // lining: topleft - lowerleft\n g1.drawLine(rect_upperleftX+i, rect_upperleftY+i, rect_upperleftX+i,\n rect_upperleftY - i + rect_height );\n\n // lining: topright - lowerright\n g1.drawLine(rect_upperrightX - i, rect_upperrightY + i, rect_upperrightX - i,\n rect_upperrightY - i + rect_height );\n */\n\n }\n\n\n\n //System.out.println(\"start startOffset = \" + re2.startOffset + \", endOffset = \" + re2.endOffset + \"; width = \"+re2.width + \", height = \" + re2.height);\n\n } catch (Exception ex) {\n log.LoggingToFile.log( Level.SEVERE, \"Error 1010140012:: fail to draw tab\" + ex.toString());\n }\n }",
"protected final int offsetFromClue(final int clue) {\n\t\tassert isValidRange(clue) : \" clue=\" + clue;\n\t\tfinal int diff = clue - mark;\n\t\treturn diff >= 0 ? diff : diff + length();\n\t}",
"public Location getOffset() {\n\t\treturn gfPos;\n\t}",
"IRegion getLineInformationOfOffset(int offset) throws BadLocationException;",
"@Test\n\tpublic void testGetOffsetsAgainstGeographiclibData() {\n\t\tfor(Point p: s_testPoints) {\n\t\t\tAssert.assertEquals(p.m, Geoid.getOffset(p.l), 0.015);\n\t\t}\n\t}",
"public void autopvaloffset(double new_pvaloffset, boolean auto_offset)\n\t{\n\t\tpvaloffset = new_pvaloffset; //will be overwritten by auto_offset\n\t\tif(auto_offset)\n\t\t{\n\t\t\tdouble apvaloffset = 0.0;\n\t\t\tdouble inv_num = 1/( (double)((long)use_frames * (long)Idata.getWidth() * (long)Idata.getHeight() * 0.75) );//hexes cover 3/4 of models\n\t\t\tfor (int val = datamax; val >= datamin; --val) //logprobs for biggest datavalues are typically the smallest\n\t\t\t{\tapvaloffset += (double)histogram[val-datamin] * poissonlogprob(val,datamean);} //These two should be like x and ln(x)\n\t\t\tpvaloffset = apvaloffset * inv_num;\n\t\t}\n\t}",
"public double getOffset() {\n return offset;\n }",
"public Point2D\ngetPerpLinePtFromOffSetPt(Point2D offsetPt)\n{\n\treturn (this.ptAtT(this.offsetPtTValue(offsetPt)));\n}",
"public void setOffset(final double offset) {\r\n\t\tthis.offset = offset;\r\n\t}",
"public double getOffset() {\r\n\t\treturn offset;\r\n\t}",
"protected final int clueFromOffset(final int offset) {\n\t\tfinal int size = length();\n\t\tfinal int mark = this.mark;\n\t\tassert isValidRange(mark) : \" mark=\" + mark;\n\t\tassert isValidRange(offset) : \" offset=\" + offset;\n\t\tint clue = mark + offset;\n\t\tif (clue >= size) {\n\t\t\tclue -= size;\n\t\t}\n\t\tassert isValidRange(clue) : \" clue=\" + clue;\n\t\treturn clue;\n\t}",
"public static int offset_min() {\n return (56 / 8);\n }",
"public static double potOffset() {\n\t\t\treturn Preferences.getInstance().getDouble(\"potOffset\", 45);\n\t\t}",
"int getOffset();",
"int getOffset();",
"int getOffset();",
"private void ncpStep(double height) {\n/* 56 */ double posX = mc.field_71439_g.field_70165_t;\n/* 57 */ double posZ = mc.field_71439_g.field_70161_v;\n/* 58 */ double y = mc.field_71439_g.field_70163_u;\n/* 59 */ if (height >= 1.1D) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 80 */ if (height < 1.6D) {\n/* */ double[] offset;\n/* 82 */ for (double off : offset = new double[] { 0.42D, 0.33D, 0.24D, 0.083D, -0.078D }) {\n/* 83 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y += off, posZ, false));\n/* */ }\n/* 85 */ } else if (height < 2.1D) {\n/* */ double[] heights;\n/* 87 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D }) {\n/* 88 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false));\n/* */ }\n/* */ } else {\n/* */ double[] heights;\n/* 92 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D, 2.019D, 1.907D })\n/* 93 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false)); \n/* */ } \n/* */ return;\n/* */ } \n/* */ double first = 0.42D;\n/* */ double d1 = 0.75D;\n/* */ if (height != 1.0D) {\n/* */ first *= height;\n/* */ d1 *= height;\n/* */ if (first > 0.425D)\n/* */ first = 0.425D; \n/* */ if (d1 > 0.78D)\n/* */ d1 = 0.78D; \n/* */ if (d1 < 0.49D)\n/* */ d1 = 0.49D; \n/* */ } \n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + first, posZ, false));\n/* */ if (y + d1 < y + height)\n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + d1, posZ, false)); \n/* */ }",
"@Override\r\n \tpublic final int getOffset() {\r\n \t\tAssert.isTrue(hasSourceRangeInfo());\r\n \t\treturn getStartPos();\r\n \t}",
"private void updateOffsets() {\n /*\n // Can't load method instructions: Load method exception: null in method: android.renderscript.AllocationAdapter.updateOffsets():void, dex: in method: android.renderscript.AllocationAdapter.updateOffsets():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.renderscript.AllocationAdapter.updateOffsets():void\");\n }",
"public static int offset_sum_a() {\n return (72 / 8);\n }",
"void find_it () {\n xt = 210; yt = 105; fact = 50.0;\n if (viewflg != VIEW_FORCES) zoom_slider_pos_y = 50;\n current_part.spanfac = (int)(2.0*fact*current_part.aspect_rat*.3535);\n xt1 = xt + current_part.spanfac;\n yt1 = yt - current_part.spanfac;\n xt2 = xt - current_part.spanfac;\n yt2 = yt + current_part.spanfac;\n \n }",
"int getFixedLines();",
"public int getPolyA() { \n\t\treturn( getEndOfBEDentry( getBEDentry().getBlockAtRelativePosition(-1)));\n\t}",
"@Override\r\n public void setOffset(long offset) {\n }",
"public void recalculate(){\n\t\t\n\t\tLinkedList<Line> primaryLines = lineLists.get(0);\n\t\t\n\t\tfor (int i = 0; i < controlPoints.size()-1; i++){\n\t\t\tControlPoint current = controlPoints.get(i);\n\t\t\tControlPoint next = controlPoints.get(i+1);\n\t\t\t\n\t\t\tLine line = primaryLines.get(i);\n\t\t\t\n\t\t\tline.setStartX(current.getCenterX());\n\t\t\tline.setStartY(current.getCenterY());\n\t\t\tline.setEndX(next.getCenterX());\n\t\t\tline.setEndY(next.getCenterY());\n\t\t}\n\t}",
"public float getScroll_px_per_line() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 48);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 48);\n\t\t}\n\t}",
"public Exo2_Editeurpolylignes() {\n valeur_maximum = 5;\n initComponents();\n Tools.windowsInit(this);\n Tools.setIcone(\"./src/Icones/Icone_Lines.bmp\", this);\n this.setTitle(\"Editeur de poly-Lignes\");\n etat = Etat.Init;\n //rien\n initNombrePoints();\n\n }",
"@Override\n public void affiche(){\n System.out.println(\"Loup : \\n points de vie : \"+this.ptVie+\"\\n pourcentage d'attaque : \"+this.pourcentageAtt+\n \"\\n dégâts d'attaque : \"+this.degAtt+\"\\n pourcentage de parade :\"+this.pourcentagePar+\n \"\\n position : \"+this.pos.toString());\n\n }",
"private int adjustOffsetForUnitTests(int offset)\n\t{\n\t\tif (System.getProperty(\"fdbunit\")==null) //$NON-NLS-1$\n\t\t\treturn offset;\n\t\telse\n\t\t\treturn 0;\n\t}",
"protected void resetNextAdvanceLineNumber() {\n this.nextAdvanceLineNumber = new Integer(1);\n }",
"protected abstract int getXOffset();",
"double getExpoBracketingStopsPref();",
"public void setOffset(Location value) {\n\t\tgfPos = value;\n\t}",
"public void adjustHorizontalOffset(int offset) {\n OFFSET_HOZ += offset;\n }",
"private void updateShapeOffset() {\n int offsetX = scroller.getOffsetX();\n int offsetY = scroller.getOffsetY();\n shape.setOffset(offsetX, offsetY);\n }",
"protected final int getLeadOffset(char paramChar) {\n/* 294 */ return getRawOffset(0, paramChar);\n/* */ }",
"private int countReadjusting(int pos, int l){\n\t\treturn (yb[pos] + l * (int)pow(2,k));\n\t}",
"public static int offset_crc() {\n return (272 / 8);\n }",
"@Override\r\n\tpublic void setOffset(IOffset offset) {\n\t\t\r\n\t}",
"private int getExpansionOffset(RuleBasedCollator collator, int ce)\n {\n return ((ce & 0xFFFFF0) >> 4) - collator.m_expansionOffset_;\n }",
"@android.annotation.TargetApi(17)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void resolveLayoutDirection(int r6) {\n /*\n r5 = this;\n int r0 = r5.leftMargin\n int r1 = r5.rightMargin\n super.resolveLayoutDirection(r6)\n r6 = -1\n r5.ad = r6\n r5.ae = r6\n r5.ab = r6\n r5.ac = r6\n r5.af = r6\n r5.ag = r6\n int r2 = r5.t\n r5.af = r2\n int r2 = r5.v\n r5.ag = r2\n float r2 = r5.z\n r5.ah = r2\n int r2 = r5.a\n r5.ai = r2\n int r2 = r5.b\n r5.aj = r2\n float r2 = r5.c\n r5.ak = r2\n int r2 = r5.getLayoutDirection()\n r3 = 0\n r4 = 1\n if (r4 != r2) goto L_0x0036\n r2 = 1\n goto L_0x0037\n L_0x0036:\n r2 = 0\n L_0x0037:\n if (r2 == 0) goto L_0x00ac\n int r2 = r5.p\n if (r2 == r6) goto L_0x0043\n int r2 = r5.p\n r5.ad = r2\n L_0x0041:\n r3 = 1\n goto L_0x004c\n L_0x0043:\n int r2 = r5.q\n if (r2 == r6) goto L_0x004c\n int r2 = r5.q\n r5.ae = r2\n goto L_0x0041\n L_0x004c:\n int r2 = r5.r\n if (r2 == r6) goto L_0x0055\n int r2 = r5.r\n r5.ac = r2\n r3 = 1\n L_0x0055:\n int r2 = r5.s\n if (r2 == r6) goto L_0x005e\n int r2 = r5.s\n r5.ab = r2\n r3 = 1\n L_0x005e:\n int r2 = r5.x\n if (r2 == r6) goto L_0x0066\n int r2 = r5.x\n r5.ag = r2\n L_0x0066:\n int r2 = r5.y\n if (r2 == r6) goto L_0x006e\n int r2 = r5.y\n r5.af = r2\n L_0x006e:\n r2 = 1065353216(0x3f800000, float:1.0)\n if (r3 == 0) goto L_0x0078\n float r3 = r5.z\n float r3 = r2 - r3\n r5.ah = r3\n L_0x0078:\n boolean r3 = r5.Y\n if (r3 == 0) goto L_0x00dc\n int r3 = r5.S\n if (r3 != r4) goto L_0x00dc\n float r3 = r5.c\n r4 = -1082130432(0xffffffffbf800000, float:-1.0)\n int r3 = (r3 > r4 ? 1 : (r3 == r4 ? 0 : -1))\n if (r3 == 0) goto L_0x0092\n float r3 = r5.c\n float r2 = r2 - r3\n r5.ak = r2\n r5.ai = r6\n r5.aj = r6\n goto L_0x00dc\n L_0x0092:\n int r2 = r5.a\n if (r2 == r6) goto L_0x009f\n int r2 = r5.a\n r5.aj = r2\n r5.ai = r6\n r5.ak = r4\n goto L_0x00dc\n L_0x009f:\n int r2 = r5.b\n if (r2 == r6) goto L_0x00dc\n int r2 = r5.b\n r5.ai = r2\n r5.aj = r6\n r5.ak = r4\n goto L_0x00dc\n L_0x00ac:\n int r2 = r5.p\n if (r2 == r6) goto L_0x00b4\n int r2 = r5.p\n r5.ac = r2\n L_0x00b4:\n int r2 = r5.q\n if (r2 == r6) goto L_0x00bc\n int r2 = r5.q\n r5.ab = r2\n L_0x00bc:\n int r2 = r5.r\n if (r2 == r6) goto L_0x00c4\n int r2 = r5.r\n r5.ad = r2\n L_0x00c4:\n int r2 = r5.s\n if (r2 == r6) goto L_0x00cc\n int r2 = r5.s\n r5.ae = r2\n L_0x00cc:\n int r2 = r5.x\n if (r2 == r6) goto L_0x00d4\n int r2 = r5.x\n r5.af = r2\n L_0x00d4:\n int r2 = r5.y\n if (r2 == r6) goto L_0x00dc\n int r2 = r5.y\n r5.ag = r2\n L_0x00dc:\n int r2 = r5.r\n if (r2 != r6) goto L_0x012e\n int r2 = r5.s\n if (r2 != r6) goto L_0x012e\n int r2 = r5.q\n if (r2 != r6) goto L_0x012e\n int r2 = r5.p\n if (r2 != r6) goto L_0x012e\n int r2 = r5.f\n if (r2 == r6) goto L_0x00fd\n int r2 = r5.f\n r5.ad = r2\n int r2 = r5.rightMargin\n if (r2 > 0) goto L_0x010d\n if (r1 <= 0) goto L_0x010d\n r5.rightMargin = r1\n goto L_0x010d\n L_0x00fd:\n int r2 = r5.g\n if (r2 == r6) goto L_0x010d\n int r2 = r5.g\n r5.ae = r2\n int r2 = r5.rightMargin\n if (r2 > 0) goto L_0x010d\n if (r1 <= 0) goto L_0x010d\n r5.rightMargin = r1\n L_0x010d:\n int r1 = r5.d\n if (r1 == r6) goto L_0x011e\n int r6 = r5.d\n r5.ab = r6\n int r6 = r5.leftMargin\n if (r6 > 0) goto L_0x012e\n if (r0 <= 0) goto L_0x012e\n r5.leftMargin = r0\n return\n L_0x011e:\n int r1 = r5.e\n if (r1 == r6) goto L_0x012e\n int r6 = r5.e\n r5.ac = r6\n int r6 = r5.leftMargin\n if (r6 > 0) goto L_0x012e\n if (r0 <= 0) goto L_0x012e\n r5.leftMargin = r0\n L_0x012e:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.ConstraintLayout.LayoutParams.resolveLayoutDirection(int):void\");\n }",
"private void drawLengthsOverlay(Graphics2D g2){\n\t\tFont font = new Font(\"default\", Font.BOLD, (int) (14));\n\t\tg2.setFont(new Font(\"default\", Font.BOLD, (int) (14)));\n\t\tint length_vert_spacing = getVerticalSpacing();\n\t\t// Get some useful coordinate values.\n\t\tint startX = toScaledX(0);\n\t\tint startY = toScaledY(0);\n\t\tif (!isBeforeObstacle()) {\n\t\t\tstartX = toScaledX(getDefaultTORA() - getRedeclaredTORA());\n\t\t}\n\t\t// Get the points.\n\t\tPoint scr_start = overlayPoint(startX, startY);\n\t\tPoint scr_tora = overlayPoint(startX + scaleX(getRedeclaredTORA()),\n\t\t\t\tstartY);\n\t\tPoint scr_toda = overlayPoint(startX + scaleX(getRedeclaredTODA()),\n\t\t\t\tstartY);\n\t\tPoint scr_asda = overlayPoint(startX + scaleX(getRedeclaredASDA()),\n\t\t\t\tstartY);\n\t\t// Draw the arrows.\n\t\tdrawLineBetween(g2, font, scr_start, scr_tora, \"TORA = \"\n\t\t\t\t+ getRedeclaredTORA() + \"m\", 0);\n\t\tdrawLineBetween(g2, font, scr_start, scr_toda, \"TODA = \"\n\t\t\t\t+ getRedeclaredTODA() + \"m\", length_vert_spacing);\n\t\tdrawLineBetween(g2, font, scr_start, scr_asda, \"ASDA = \"\n\t\t\t\t+ getRedeclaredASDA() + \"m\", 2 * length_vert_spacing);\n\t\tif (isBeforeObstacle()) {\n\t\t\tPoint scr_thr = overlayPoint(startX + scaleX(getDefaultTHR()),\n\t\t\t\t\tstartY);\n\t\t\tPoint scr_lda = overlayPoint(startX\n\t\t\t\t\t+ scaleX(getDefaultTHR() + getRedeclaredLDA()), startY);\n\t\t\tdrawLineBetween(g2, font, scr_thr, scr_lda, \"LDA = \"\n\t\t\t\t\t+ getRedeclaredLDA() + \"m\", -length_vert_spacing);\n\t\t\tdrawLineBetween(g2, font, scr_start, scr_thr, \"Threshold = \"\n\t\t\t\t\t+ getDefaultTHR() + \"m\", -2 * length_vert_spacing);\n\t\t} else {\n\t\t\tPoint scr_thr = overlayPoint(toScaledX(getDefaultTODA()\n\t\t\t\t\t- getRedeclaredLDA()), startY);\n\t\t\tdrawLineBetween(g2, font, scr_thr, scr_tora, \"LDA = \"\n\t\t\t\t\t+ getRedeclaredLDA() + \"m\", -length_vert_spacing);\n\t\t}\n\t}",
"@Test\n\tpublic void testGetGridOffsetValues() {\n\t\tAssert.assertEquals(13.68, Geoid.getGridOffset(90.0, 0.0), EPSILON);\n\t\tAssert.assertEquals(-29.79, Geoid.getGridOffset(-90.0, 0.0), EPSILON);\n\n\t\t// random grid params from EGM.complete.txt.gz\n\t\t// 89.74 5.75 13.89\n\t\t// 86.5 217.25 11.76\n\t\t// 71.25 8.0 43.56\n\t\t// 54.0 182.25 2.35\n\t\t// 35.5 186.0 -12.91\n\t\t// 14.75 213.5 -8.07\n\t\t// -22.25 221.5 -10.18\n\t\t// -37.5 13.0 25.61\n\t\t// -51.75 157.25 -17.88\n\t\t// -70.5 346.0 5.18\n\t\t// -74.5 22.0 17.5\n\t\t// -84.5 306.25 -25.71\n\t\t// -86.75 328.75 -21.81\n\n\t\tAssert.assertEquals(13.89, Geoid.getGridOffset(89.74, 5.75), EPSILON); \n\t\tAssert.assertEquals(11.76, Geoid.getGridOffset(86.5, 217.25), EPSILON);\n\t\tAssert.assertEquals(43.56, Geoid.getGridOffset(71.25, 8.0), EPSILON);\n\t\tAssert.assertEquals(2.35, Geoid.getGridOffset(54.0, 182.25), EPSILON);\n\t\tAssert.assertEquals(-12.91, Geoid.getGridOffset(35.5, 186.0), EPSILON);\n\t\tAssert.assertEquals(-8.07, Geoid.getGridOffset(14.75, 213.5), EPSILON);\n\t\tAssert.assertEquals(-10.18, Geoid.getGridOffset(-22.25, 221.5), EPSILON);\n\t\tAssert.assertEquals(25.61, Geoid.getGridOffset(-37.5, 13.0), EPSILON);\n\t\tAssert.assertEquals(-17.88, Geoid.getGridOffset(-51.75, 157.25), EPSILON);\n\t\tAssert.assertEquals(5.18, Geoid.getGridOffset(-70.5, 346.0), EPSILON);\n\t\tAssert.assertEquals(17.5, Geoid.getGridOffset(-74.5, 22.0), EPSILON);\n\t\tAssert.assertEquals(-25.71, Geoid.getGridOffset(-84.5, 306.25), EPSILON);\n\t\tAssert.assertEquals(-21.81, Geoid.getGridOffset(-86.75, 328.75), EPSILON);\n\t\tAssert.assertEquals(-29.79, Geoid.getGridOffset(-90.0, 0.0), EPSILON);\n\t}",
"protected int[] getRemoveUpdateRebuildOffsetRange(DocumentEvent evt) {\n DocumentEvent.ElementChange lineChange = evt.getChange(evt.getDocument().getDefaultRootElement());\n if (lineChange == null) {\n return null;\n }\n\n int startOffset = evt.getOffset();\n int endOffset = startOffset;\n int[] offsetRange = new int[] {startOffset, endOffset};\n Element[] addedLines = lineChange.getChildrenAdded();\n ElementUtilities.updateOffsetRange(addedLines, offsetRange);\n Element[] removedLines = lineChange.getChildrenRemoved();\n ElementUtilities.updateOffsetRange(removedLines, offsetRange);\n return offsetRange;\n }",
"public final double getOffset() {\n\t\treturn offset;\n\t}",
"protected void offset(int offset) {\n super.offset(offset);\n offsetRange(this.fCloseBodyRange, offset);\n offsetRange(this.fExtendsRange, offset);\n offsetRange(this.fImplementsRange, offset);\n offsetRange(this.fInterfacesRange, offset);\n offsetRange(this.fOpenBodyRange, offset);\n offsetRange(this.fSuperclassRange, offset);\n offsetRange(this.fTypeRange, offset);\n }",
"protected float measurePrefix() {\n return measureLineNumber() + mDividerMargin * 2 + mDividerWidth;\n }",
"void setupDragLines() {\n\t\tmouseLockedToLine = true;\n\t\tbeginOffsetP.set(P); // lock the beginning position of the offset vector\n\t\tfor (int i = 0; i < amount; i++)\n\t\t\tline[i].resetLockPoints(P); // check\n\t}",
"public void usedOxygen() {\n\t\tthis.oxygenPoints -=1;\n\t}",
"int getLatE6();",
"int getLatE6();",
"public void gripGlyph(){\n grabberRearLeft.setPosition(glyphClosePosBL);\n grabberFrontLeft.setPosition(glyphClosePosFL);\n grabberFrontRight.setPosition(glyphClosePosFR);\n grabberRearRight.setPosition(glyphClosePosBR);\n isGripped = true;\n }",
"@Override\n protected void beforeDraw(UI ui, PGraphics pg) {\n pointLight(0, 0, 40, model.cx, model.cy, LengthUnit.FOOT.toMillimetres(-20L));\n pointLight(0, 0, 50, model.cx, model.yMax + LengthUnit.FOOT.toMillimetres(10L), model.cz);\n pointLight(0, 0, 20, model.cx, model.yMin - LengthUnit.FOOT.toMillimetres(10L), model.cz);\n //hint(ENABLE_DEPTH_TEST);\n }",
"public final int getOffset(int r5) {\n /*\n r4 = this;\n r0 = -1\n if (r5 >= 0) goto L_0x0004\n return r0\n L_0x0004:\n androidx.recyclerview.widget.ChildHelper$Callback r1 = r4.mCallback\n androidx.recyclerview.widget.RecyclerView$5 r1 = (androidx.recyclerview.widget.RecyclerView.AnonymousClass5) r1\n int r1 = r1.getChildCount()\n r2 = r5\n L_0x000d:\n if (r2 >= r1) goto L_0x0029\n androidx.recyclerview.widget.ChildHelper$Bucket r3 = r4.mBucket\n int r3 = r3.countOnesBefore(r2)\n int r3 = r2 - r3\n int r3 = r5 - r3\n if (r3 != 0) goto L_0x0027\n L_0x001b:\n androidx.recyclerview.widget.ChildHelper$Bucket r5 = r4.mBucket\n boolean r5 = r5.get(r2)\n if (r5 == 0) goto L_0x0026\n int r2 = r2 + 1\n goto L_0x001b\n L_0x0026:\n return r2\n L_0x0027:\n int r2 = r2 + r3\n goto L_0x000d\n L_0x0029:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.ChildHelper.getOffset(int):int\");\n }",
"double compute_lift_pos () {\n return AC_OFFSET_K * this.chord + \n (convert_moments_to_AC_offset ? -1*this.moment/this.lift : 0);\n }",
"public abstract int positionBonus();",
"void setRawOffset(int rawOffset);",
"@Override\n\tpublic void definePosicaoArma(double ang,double startX,double startY) {\n\t\tangulo=(ang);\n\t\tX=(startX);\n\t\tY=(startY);\n\n\t}",
"public void TeleopCode() {\n\t\tMLeft.set(-Controls.joy2.getRawAxis(5)+ 0.06); //(Controls.joy2.getRawAxis5 + 0.06);\n\t}",
"public void setLiningOffset(IfcLengthMeasure LiningOffset)\n\t{\n\t\tthis.LiningOffset = LiningOffset;\n\t\tfireChangeEvent();\n\t}",
"org.openxmlformats.schemas.drawingml.x2006.main.STGeomGuideFormula xgetFmla();",
"protected abstract int localOffsetTransform(int outOffset, boolean inclusive);",
"@Test\n public void fieldAdvance() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n builder.write(\"This text is in its normal place.\");\n\n // Below are two ways of using the ADVANCE field to adjust the position of text that follows it.\n // The effects of an ADVANCE field continue to be applied until the paragraph ends,\n // or another ADVANCE field updates the offset/coordinate values.\n // 1 - Specify a directional offset:\n FieldAdvance field = (FieldAdvance) builder.insertField(FieldType.FIELD_ADVANCE, true);\n Assert.assertEquals(FieldType.FIELD_ADVANCE, field.getType()); //ExSkip\n Assert.assertEquals(\" ADVANCE \", field.getFieldCode()); //ExSkip\n field.setRightOffset(\"5\");\n field.setUpOffset(\"5\");\n\n Assert.assertEquals(\" ADVANCE \\\\r 5 \\\\u 5\", field.getFieldCode());\n\n builder.write(\"This text will be moved up and to the right.\");\n\n field = (FieldAdvance) builder.insertField(FieldType.FIELD_ADVANCE, true);\n field.setDownOffset(\"5\");\n field.setLeftOffset(\"100\");\n\n Assert.assertEquals(\" ADVANCE \\\\d 5 \\\\l 100\", field.getFieldCode());\n\n builder.writeln(\"This text is moved down and to the left, overlapping the previous text.\");\n\n // 2 - Move text to a position specified by coordinates:\n field = (FieldAdvance) builder.insertField(FieldType.FIELD_ADVANCE, true);\n field.setHorizontalPosition(\"-100\");\n field.setVerticalPosition(\"200\");\n\n Assert.assertEquals(field.getFieldCode(), \" ADVANCE \\\\x -100 \\\\y 200\");\n\n builder.write(\"This text is in a custom position.\");\n\n doc.save(getArtifactsDir() + \"Field.ADVANCE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.ADVANCE.docx\");\n\n field = (FieldAdvance) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_ADVANCE, \" ADVANCE \\\\r 5 \\\\u 5\", \"\", field);\n Assert.assertEquals(\"5\", field.getRightOffset());\n Assert.assertEquals(\"5\", field.getUpOffset());\n\n field = (FieldAdvance) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_ADVANCE, \" ADVANCE \\\\d 5 \\\\l 100\", \"\", field);\n Assert.assertEquals(\"5\", field.getDownOffset());\n Assert.assertEquals(\"100\", field.getLeftOffset());\n\n field = (FieldAdvance) doc.getRange().getFields().get(2);\n\n TestUtil.verifyField(FieldType.FIELD_ADVANCE, \" ADVANCE \\\\x -100 \\\\y 200\", \"\", field);\n Assert.assertEquals(\"-100\", field.getHorizontalPosition());\n Assert.assertEquals(\"200\", field.getVerticalPosition());\n }"
]
| [
"0.6174367",
"0.608607",
"0.5916314",
"0.58435786",
"0.58404994",
"0.580183",
"0.57910293",
"0.5789053",
"0.57563955",
"0.57320833",
"0.5678128",
"0.5616743",
"0.5597861",
"0.5577411",
"0.5481979",
"0.546519",
"0.545385",
"0.54047346",
"0.53663707",
"0.53589946",
"0.53413033",
"0.53396535",
"0.52378595",
"0.5233886",
"0.5193254",
"0.5173228",
"0.51661813",
"0.51630765",
"0.51557636",
"0.51523817",
"0.51457286",
"0.5138588",
"0.51167876",
"0.51149875",
"0.51006377",
"0.507702",
"0.50642407",
"0.5052203",
"0.5041439",
"0.50382406",
"0.50346935",
"0.5023735",
"0.5016062",
"0.5015229",
"0.5011567",
"0.5004893",
"0.50044644",
"0.497456",
"0.4971806",
"0.4970159",
"0.49550393",
"0.49520892",
"0.49520892",
"0.49520892",
"0.49505773",
"0.49427852",
"0.49358848",
"0.4934862",
"0.4932439",
"0.49308723",
"0.4925914",
"0.49248582",
"0.491911",
"0.49190998",
"0.49149418",
"0.4912207",
"0.4906526",
"0.49032304",
"0.48892474",
"0.4884002",
"0.48818603",
"0.48783216",
"0.4876302",
"0.48718035",
"0.4866505",
"0.4859579",
"0.48495138",
"0.4849347",
"0.48440725",
"0.48404872",
"0.48362434",
"0.48296228",
"0.4827704",
"0.4817823",
"0.48160324",
"0.48158178",
"0.48118162",
"0.48114777",
"0.48114777",
"0.480761",
"0.48070887",
"0.4800235",
"0.47936645",
"0.47903815",
"0.47893825",
"0.47879568",
"0.47876847",
"0.47798592",
"0.4776058",
"0.47760218",
"0.47740847"
]
| 0.0 | -1 |
Determines if this document should hold its encumbrances because the trip end date belongs to a fiscal year which does not yet exist | protected boolean shouldHoldEncumbrance() {
if (getTripEnd() == null) {
return false; // we won't hold encumbrances if we don't know when the trip is ending
}
final java.sql.Date tripEnd = new java.sql.Date(getTripEnd().getTime());
return getTravelEncumbranceService().shouldHoldEntries(tripEnd);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasEndDate();",
"public boolean hasEndDate() {\n return fieldSetFlags()[2];\n }",
"protected boolean shouldHoldAdvance() {\n if (shouldProcessAdvanceForDocument() && getTravelAdvance().getDueDate() != null) {\n return getTravelEncumbranceService().shouldHoldEntries(getTravelAdvance().getDueDate());\n }\n return false;\n }",
"private static boolean checkIfYearContinue(Sheet sheet) {\r\n String last = sheet.getCellAt(\"A\" + sheet.getRowCount()).getTextValue(); \r\n return !last.equals(\"end\");\r\n }",
"@java.lang.Override\n public boolean hasAcademicYear() {\n return academicYear_ != null;\n }",
"private static Boolean checkYear(){\r\n try{\r\n int year = Integer.parseInt(yearField.getText().trim());\r\n int now = LocalDate.now().getYear();\r\n \r\n if(LocalDate.now().getMonth().compareTo(Month.SEPTEMBER) < 0){\r\n now--;\r\n }\r\n //SIS stores the schedule for last 3 years only \r\n if(year <= now && year >= now - 3 ){\r\n return true;\r\n }\r\n }\r\n catch(Exception e){\r\n Logger.getLogger(\"Year checker\").log(Level.WARNING, \"Exception while resolving the year \", e);\r\n }\r\n return false;\r\n }",
"protected boolean isInYearEndLowerBound(Date runDate, String yearEndPeriodLowerBound, String lastDayOfFiscalYear) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"MMdd\");\n String today = sdf.format(runDate);\n return today.compareTo(yearEndPeriodLowerBound) >= 0 && today.compareTo(lastDayOfFiscalYear) <= 0;\n }",
"public boolean experired() {\n\t\tint month = Calendar.getInstance().get(Calendar.MONTH) + 1;\n\t\tint year = Calendar.getInstance().get(Calendar.YEAR);\n\t\tString[] parts = this.experiation.split(\"/\");\n\t\tString originalMonth = parts[0];\n\t\tint oM = Integer.parseInt(originalMonth);\n\t\tString originalYear = parts[1];\n\t\tint oY = Integer.parseInt(originalYear);\n\t\t\n\t\tif(oY < year) {\n\t\t\treturn true;\n\t\t}\n\t\tif(oY == year && oM < month) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"protected boolean isDocFinalWithNoAppliedAmountsExceptDiscounts(CustomerInvoiceDocument document) {\n boolean isFinal = document.getDocumentHeader().getWorkflowDocument().isFinal();\n\n InvoicePaidAppliedService<CustomerInvoiceDetail> paidAppliedService = SpringContext.getBean(InvoicePaidAppliedService.class);\n boolean hasAppliedAmountsExcludingDiscounts = paidAppliedService.doesInvoiceHaveAppliedAmounts(document);\n\n return isFinal && !hasAppliedAmountsExcludingDiscounts;\n }",
"public boolean hasAcademicYear() {\n return academicYearBuilder_ != null || academicYear_ != null;\n }",
"boolean hasSettlementDate();",
"abstract void fiscalCodeValidity();",
"public boolean isEnCours() {\n\t\tLocalDate date = LocalDate.now();\n\t\tif (date.plusDays(1).isAfter(dateDebut) && date.isBefore(dateFin)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean expired(){\n return !Period.between(dateOfPurchase.plusYears(1), LocalDate.now()).isNegative();\n }",
"boolean hasTradeDate();",
"@Override\n @NoProxy\n public boolean isRecurringEntity() {\n return testRecurring() ||\n hasExdates() ||\n hasRdates() ||\n hasExrules() ||\n hasRrules();\n }",
"protected boolean isInYearEndUpperBound(Date runDate, String yearEndPeriodUpperBound, String lastDayOfFiscalYear) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"MMdd\");\n String today = sdf.format(runDate);\n\n String month = StringUtils.mid(lastDayOfFiscalYear, 0, 2);\n String date = StringUtils.mid(lastDayOfFiscalYear, 2, 2);\n\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.MONTH, Integer.parseInt(month) - 1);\n calendar.set(Calendar.DATE, Integer.parseInt(date));\n calendar.add(Calendar.DATE, 1);\n String firstDayOfNewFiscalYear = sdf.format(calendar.getTime());\n\n return today.compareTo(yearEndPeriodUpperBound) <= 0 && today.compareTo(firstDayOfNewFiscalYear) >= 0;\n }",
"boolean hasDepositEndTime();",
"public boolean checkDate(){\n Calendar c = Calendar.getInstance();\n Date currentDate = new Date(c.get(Calendar.DAY_OF_MONTH),c.get(Calendar.MONTH)+1, c.get(Calendar.YEAR));\n return (isEqualOther(currentDate) || !isEarlyThanOther(currentDate));\n\n }",
"public boolean isSetTradingDay() {\n return this.tradingDay != null;\n }",
"protected boolean isInYearEndPeriod(Date runDate, String yearEndPeriodLowerBound, String yearEndPeriodUpperBound, String lastDayOfFiscalYear) {\n return isInYearEndLowerBound(runDate, yearEndPeriodLowerBound, lastDayOfFiscalYear) || isInYearEndUpperBound(runDate, yearEndPeriodUpperBound, lastDayOfFiscalYear);\n }",
"private boolean dateDiffOfWeekend(LocalDate date) {\n\n if (date.getDayOfWeek().getValue() != 6 && date.getDayOfWeek().getValue() != 7 && date.getYear() == LocalDate.now().getYear()) {\n\n return true;\n }\n\n return false;\n }",
"boolean hasStartDate();",
"@Override\r\n public boolean taxHoliday(Date receiptDate) {\r\n \r\n Date taxHolidayStartdate = new GregorianCalendar(2019, Calendar.AUGUST, 10).getTime();\r\n Date taxHolidayEnddate = new GregorianCalendar(2019, Calendar.AUGUST, 11).getTime();\r\n\r\n if (receiptDate.equals(taxHolidayStartdate) || receiptDate.equals(taxHolidayEnddate)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"private boolean acceptDayG(DayG day) {\r\n if(day.getYear() != endDate.get(Calendar.YEAR))\r\n return false;\r\n \r\n int dayOfYear = day.getCalendar().get(Calendar.DAY_OF_YEAR);\r\n if(dayOfYear == acceptedDatesRange[0] || dayOfYear == \r\n acceptedDatesRange[1] || (dayOfYear < acceptedDatesRange[1] &&\r\n dayOfYear > acceptedDatesRange[0])) {\r\n \r\n //MiscStuff.writeToLog(\"\" + dayOfYear + \" \" + acceptedDatesRange[0] +\r\n // \" \" + acceptedDatesRange[1]); //print year.....................................................................................\r\n return true;\r\n }\r\n return false;\r\n }",
"private boolean isPeriodEndOnInDocGeneratorResponse(DocumentGeneratorResponse response) {\n\n if (response.getDescriptionValues() == null ||\n !response.getDescriptionValues().containsKey(PERIOD_END_ON) ||\n StringUtils.isBlank(response.getDescriptionValues().get(PERIOD_END_ON))) {\n\n Map<String, Object> logMap = new HashMap<>();\n logMap.put(LOG_MESSAGE_KEY,\n \"Period end on has not been set within the description_values in the Document Generator Response\");\n\n LOGGER.error(LOG_DOC_GENERATOR_RESPONSE_INVALID_MESSAGE_KEY, logMap);\n return false;\n }\n\n return true;\n }",
"boolean isOutOfDate(String end) {\n SimpleDateFormat ddMMyyyy = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.UK);\n Calendar c = Calendar.getInstance();\n Date current = c.getTime();\n current.setTime(current.getTime() - 86400000);\n try {\n Date endDate = ddMMyyyy.parse(end);\n return (endDate.compareTo(current) < 0);\n } catch (ParseException e) {\n System.out.println(\"Error occurred parsing Date\");\n }\n return false;\n }",
"public boolean hasEndDate() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }",
"public boolean hasEndDate() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }",
"@Override\n public boolean canErrorCorrect(FinancialSystemTransactionalDocument document) {\n if (StringUtils.isNotBlank(document.getFinancialSystemDocumentHeader().getCorrectedByDocumentId())) {\n return false;\n }\n\n // error correction shouldn't be allowed for previous FY docs\n WorkflowDocument workflowDocument = document.getDocumentHeader().getWorkflowDocument();\n if (!isApprovalDateWithinFiscalYear(workflowDocument)) {\n return false;\n }\n\n if(((CustomerInvoiceDocument)document).isInvoiceReversal()){\n return false;\n } else {\n // a normal invoice can only be error corrected if document is in a final state\n // and no amounts have been applied (excluding discounts)\n return isDocFinalWithNoAppliedAmountsExceptDiscounts((CustomerInvoiceDocument) document);\n }\n }",
"boolean isSetFoundingDate();",
"boolean hasContinuousDay();",
"public Boolean isExpired() {\n\t\tCalendar today = Calendar.getInstance();\n\t\treturn today.get(Calendar.DAY_OF_YEAR) != date.get(Calendar.DAY_OF_YEAR);\n\t}",
"private boolean hasDateThreshold() {\r\n if (entity.getExpirationDate() == null) {\r\n return false;\r\n }\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.add(Calendar.MONTH, 1);\r\n if (entity.getExpirationDate().before(calendar.getTime())) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public boolean isWeekend()\r\n {\r\n DayOfWeek dd=getDay(getDepartingDate());\r\n DayOfWeek rd=getDay(getReturningDate());\r\n if((dd==DayOfWeek.FRIDAY||dd==DayOfWeek.SATURDAY||dd==DayOfWeek.SUNDAY)||(rd==DayOfWeek.FRIDAY||rd==DayOfWeek.SATURDAY||rd==DayOfWeek.SUNDAY))\r\n return true;\r\n else \r\n return false;\r\n }",
"@Test\r\n public void testifHoliday() {\r\n LocalDate date1 = LocalDate.parse(\"2018-01-12\");\r\n assertTrue(DateUtil.ifHoliday(date1));\r\n\r\n date1 = LocalDate.parse(\"2018-01-14\");\r\n assertFalse(DateUtil.ifHoliday(date1));\r\n }",
"public boolean isALeapYear(int year){\n\n if (((year%4 == 0) && (year%100!=0)) || (year%400==0)){\n return true;\n }\n return false;\n }",
"boolean hasAcquireDate();",
"public boolean isEnd() { return (_dateExpiration - System.currentTimeMillis()) <= 0; }",
"public boolean bookable() {\n for (Flight flight : itinerary) {\n if (flight.getNumSeats() <= 0) {\n return false;\n }\n }\n return true;\n }",
"public boolean isLeapYear() {\n\n return ((this.cyear % 4) == 3);\n\n }",
"boolean hasExpirationDate();",
"boolean isIntraday();",
"private boolean validateLicenseFile()\n{\n\n FileInputStream fileInputStream = null;\n InputStreamReader inputStreamReader = null;\n BufferedReader in = null;\n\n try{\n\n fileInputStream = new FileInputStream(licenseFilename);\n inputStreamReader = new InputStreamReader(fileInputStream);\n in = new BufferedReader(inputStreamReader);\n\n //read in the expiration date\n String expiryDateS = in.readLine();\n //read in the encoded version of the expiration date\n String encodedExpiryDateS = in.readLine();\n //fail if lines were not read\n if (expiryDateS == null || encodedExpiryDateS == null) {return(false);}\n\n long expiryDate, encodedExpiryDate;\n try{\n expiryDate = Long.valueOf(expiryDateS);\n encodedExpiryDate = Long.valueOf(encodedExpiryDateS);\n }\n catch(NumberFormatException e){\n return(false); //fail on error converting either value\n }\n\n //if the unencoded value does not match the encoded value, fail\n if (expiryDate != encodeDecode(encodedExpiryDate)) {return(false);}\n\n Date now = new Date(); //get the current date\n Date expire = new Date(expiryDate); //create the expiry date\n \n int daysLeftOnLicense = calculateDaysLeftOnLicense(now, expire);\n \n //if the valid remaining days are zero or negative, write a bogus expiry\n //date which will fail on validation every time due to integrity and not\n //expiration date\n \n //note that daysLeftOnLicense rounds off, so will generally report\n //one less day than expected\n\n if (daysLeftOnLicense <= 0){\n saveLicenseFile(expiryDate, true);\n return(false);\n }\n\n }\n catch(IOException e){\n logSevere(e.getMessage() + \" - Error: 214\");\n return(false); //invalid file if error reading\n }\n finally{\n\n try{if (in != null) {in.close();}}\n catch(IOException e){}\n try{if (inputStreamReader != null) {inputStreamReader.close();}}\n catch(IOException e){}\n try{if (fileInputStream != null) {fileInputStream.close();}}\n catch(IOException e){}\n }\n\n return(true); //file valid and unexpired\n\n}",
"public int getEndingYear()\n {\n return -1;\n }",
"boolean hasBeginDate();",
"boolean hasOrderDate();",
"final boolean isDateRollEnforced() {\n return this.dateRollEnforced;\n }",
"protected KualiDecimal calculatePendEncum1(boolean isYearEndDocument, String extrnlEncumFinBalanceTypCd, String intrnlEncumFinBalanceTypCd, String preencumbranceFinBalTypeCd, Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String acctSufficientFundsFinObjCd, boolean isEqualDebitCode, List expenditureCodes) {\n Criteria criteria = new Criteria();\n\n Criteria sub1 = new Criteria();\n sub1.addEqualTo(OLEConstants.FINANCIAL_BALANCE_TYPE_CODE_PROPERTY_NAME, extrnlEncumFinBalanceTypCd);\n Criteria sub1_1 = new Criteria();\n sub1_1.addEqualTo(OLEConstants.FINANCIAL_BALANCE_TYPE_CODE_PROPERTY_NAME, intrnlEncumFinBalanceTypCd);\n Criteria sub1_2 = new Criteria();\n sub1_2.addEqualTo(OLEConstants.FINANCIAL_BALANCE_TYPE_CODE_PROPERTY_NAME, preencumbranceFinBalTypeCd);\n sub1_1.addOrCriteria(sub1_2);\n sub1.addOrCriteria(sub1_1);\n criteria.addOrCriteria(sub1);\n\n\n criteria.addEqualTo(OLEConstants.UNIVERSITY_FISCAL_YEAR_PROPERTY_NAME, universityFiscalYear);\n criteria.addEqualTo(OLEConstants.CHART_OF_ACCOUNTS_CODE_PROPERTY_NAME, chartOfAccountsCode);\n criteria.addEqualTo(OLEConstants.ACCOUNT_NUMBER_PROPERTY_NAME, accountNumber);\n criteria.addEqualTo(OLEConstants.ACCOUNT_SUFFICIENT_FUNDS_FINANCIAL_OBJECT_CODE_PROPERTY_NAME, acctSufficientFundsFinObjCd);\n criteria.addIn(OLEConstants.FINANCIAL_OBJECT_TYPE_CODE, expenditureCodes);\n\n if (isEqualDebitCode) {\n criteria.addEqualTo(OLEConstants.TRANSACTION_DEBIT_CREDIT_CODE, OLEConstants.GL_DEBIT_CODE);\n }\n else {\n criteria.addNotEqualTo(OLEConstants.TRANSACTION_DEBIT_CREDIT_CODE, OLEConstants.GL_DEBIT_CODE);\n }\n\n criteria.addNotEqualTo(OLEConstants.DOCUMENT_HEADER_PROPERTY_NAME + \".\" + OLEConstants.DOCUMENT_HEADER_DOCUMENT_STATUS_CODE_PROPERTY_NAME, OLEConstants.DocumentStatusCodes.CANCELLED);\n\n if (isYearEndDocument) {\n criteria.addLike(OLEConstants.FINANCIAL_DOCUMENT_TYPE_CODE, YEAR_END_DOC_PREFIX);\n }\n else {\n criteria.addNotLike(OLEConstants.FINANCIAL_DOCUMENT_TYPE_CODE, YEAR_END_DOC_PREFIX);\n }\n\n ReportQueryByCriteria reportQuery = QueryFactory.newReportQuery(GeneralLedgerPendingEntry.class, criteria);\n reportQuery.setAttributes(new String[] { \"sum(\" + OLEConstants.TRANSACTION_LEDGER_ENTRY_AMOUNT + \")\" });\n\n return executeReportQuery(reportQuery);\n\n\n }",
"protected boolean isEncumbrancePendingEntry(GeneralLedgerPendingEntry glpe) {\n return StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT) ||\n StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_AMEND_DOCUMENT) ||\n StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CLOSE_DOCUMENT);\n }",
"public boolean getFiscalYearStart()\r\n {\r\n return (m_fiscalYearStart);\r\n }",
"public boolean isValid() {\n if (this.month >= 1 && this.month <= 12 && this.day >= 1 && this.day < 32) {\n\n if ((this.month == 1 || this.month == 3 || this.month == 5 || this.month == 7 || this.month == 8\n || this.month == 10 || this.month == 12) && this.day > 30) {\n return false;\n } else if (this.month == 2 && this.day > 29) {\n return false;\n } else if (this.month == 2 && this.day > 28 && !isLeap(this.year)) {\n return false;\n } else {\n return true;\n }\n\n } else {\n return false;\n }\n }",
"boolean containsSpecifiedEnd(AssociationEnd specifiedEnd);",
"boolean isSetRecurrenceTimeZoneCode();",
"public boolean validateDate() {\r\n\t\tDate now = new Date();\r\n\t\t// expire date should be in the future\r\n\t\tif (now.compareTo(getExpireDate()) != -1)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}",
"boolean hasExpiredTrialLicense() {\n return false;\n }",
"public boolean validDateRange() {\n\t\treturn dateEnd.compareTo(dateStart) > 0;\n\t}",
"public boolean isFuture()\n {\n GregorianCalendar currentDate = new GregorianCalendar();\n int dayT = currentDate.get(GregorianCalendar.DATE);\n int monthT = currentDate.get(GregorianCalendar.MONTH) + 1;\n int yearT = currentDate.get(GregorianCalendar.YEAR);\n int hourT = currentDate.get(GregorianCalendar.HOUR_OF_DAY);\n int minuteT = currentDate.get(GregorianCalendar.MINUTE);\n\n if (yearT < year)\n {\n return true;\n }\n else if (yearT == year && monthT < month)\n {\n return true;\n }\n else if (yearT == year && monthT == month && dayT < day)\n {\n return true;\n }\n else if (yearT == year && monthT == month && dayT == day && hourT < hour)\n {\n return true;\n }\n else if (yearT == year && monthT == month && dayT == day && hourT == hour\n && minuteT < minute)\n {\n return true;\n }\n else\n {\n return false;\n }\n }",
"public boolean isValid() {\n\t\tboolean result;\n\t\tDate mySD = this.getStartDate();\n\t\tDate myED = this.getEndDate();\n\t\tTime myST = this.getStartTime();\n\t\tTime myET = this.getEndTime();\n\n\t\tif (myED.isBefore(mySD)) { //end is before start\n\t\t\tresult = false;\n\t\t} else if (myED.isEquals(mySD)) { //start and end same day\n\t\t\tif (myET.compareTo(myST) < 0) { //end time before start time\n\t\t\t\tresult = false;\n\t\t\t} else { result = true;\t}\n\t\t} else { result = true;\t}\n\n\t\treturn result;\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 boolean validarFechaNac() {\n\t\treturn fecha_nac != null;\n\t}",
"boolean hasDeliveryDateAfter();",
"@Property\n void centurialNonLeapYearTest(@ForAll(\"centurialNonLeapYears\") int year){\n assertThat(!ly.isLeapYear(year));\n }",
"@Test\n public void isLeapYear() {\n assertFalse(Deadline.isLeapYear(Integer.parseInt(VALID_YEAR_2018)));\n\n // Valid leap year -> returns true\n assertTrue(Deadline.isLeapYear(Integer.parseInt(LEAP_YEAR_2020)));\n\n // Valid year divisible by 4 but is common year -> returns false\n assertFalse(Deadline.isLeapYear(Integer.parseInt(NON_LEAP_YEAR_2100)));\n\n // Valid year divisible by 100 but is leap year -> returns true\n assertTrue(Deadline.isLeapYear(Integer.parseInt(LEAP_YEAR_2400)));\n }",
"public void setFiscalYearStart(boolean fiscalYearStart)\r\n {\r\n m_fiscalYearStart = fiscalYearStart;\r\n }",
"public boolean isSetRelease_date() {\n return this.release_date != null;\n }",
"public boolean isSetRelease_date() {\r\n return this.release_date != null;\r\n }",
"@Override\r\n\tpublic boolean checkBudget() {\n\t\treturn false;\r\n\t}",
"@Test\n public void test6() {\n boolean res = object.checkLeapYear(-400);\n assertEquals(false, res);\n }",
"private ArrayList<String> parseBusinessYears(String fiscalYearEnd) {\n\n Calendar todayCalendar = GregorianCalendar.getInstance();\n\n Calendar geschaeftsjahresendeCalendar = GregorianCalendar.getInstance();\n geschaeftsjahresendeCalendar.set(\n todayCalendar.get(Calendar.YEAR),\n Integer.parseInt(fiscalYearEnd.substring(3, 5)) - 1,\n Integer.parseInt(fiscalYearEnd.substring(0, 2)),\n 23, 59, 59);\n log.info(geschaeftsjahresendeCalendar.getTime().toString());\n\n\n String nextYearString = null;\n String currentYearString = null;\n String lastYearString = null;\n String twoYearsAgoString = null;\n String threeYearsAgoString = null;\n\n int inTwoYears = todayCalendar.get(Calendar.YEAR) + 2;\n int nextYear = todayCalendar.get(Calendar.YEAR) + 1;\n int currentYear = todayCalendar.get(Calendar.YEAR);\n int lastYear = todayCalendar.get(Calendar.YEAR) - 1;\n int twoYearsAgo = todayCalendar.get(Calendar.YEAR) - 2;\n int threeYearsAgo = todayCalendar.get(Calendar.YEAR) - 3;\n int fourYearsAgo = todayCalendar.get(Calendar.YEAR) - 4;\n\n if (fiscalYearEnd.equals(\"31.12.\")) {\n nextYearString = nextYear + \"e\";\n currentYearString = currentYear + \"e\";\n lastYearString = String.valueOf(lastYear);\n twoYearsAgoString = String.valueOf(twoYearsAgo);\n threeYearsAgoString = String.valueOf(threeYearsAgo);\n } else if (todayCalendar.before(geschaeftsjahresendeCalendar)){\n nextYearString = String.valueOf(currentYear).substring(2, 4) + \"/\" + String.valueOf(nextYear).substring(2, 4) + \"e\";\n currentYearString = String.valueOf(lastYear).substring(2, 4) + \"/\" + String.valueOf(currentYear).substring(2, 4) + \"e\";\n lastYearString = String.valueOf(twoYearsAgo).substring(2, 4) + \"/\" + String.valueOf(lastYear).substring(2, 4);\n twoYearsAgoString = String.valueOf(threeYearsAgo).substring(2, 4) + \"/\" + String.valueOf(twoYearsAgo).substring(2, 4);\n threeYearsAgoString = String.valueOf(fourYearsAgo).substring(2, 4) + \"/\" + String.valueOf(threeYearsAgo).substring(2, 4);\n } else if (todayCalendar.after(geschaeftsjahresendeCalendar)) {\n nextYearString = String.valueOf(nextYear).substring(2, 4) + \"/\" + String.valueOf(inTwoYears).substring(2, 4) + \"e\";\n currentYearString = String.valueOf(currentYear).substring(2, 4) + \"/\" + String.valueOf(nextYear).substring(2, 4) + \"e\";\n lastYearString = String.valueOf(lastYear).substring(2, 4) + \"/\" + String.valueOf(currentYear).substring(2, 4);\n twoYearsAgoString = String.valueOf(twoYearsAgo).substring(2, 4) + \"/\" + String.valueOf(lastYear).substring(2, 4);\n threeYearsAgoString = String.valueOf(threeYearsAgo).substring(2, 4) + \"/\" + String.valueOf(twoYearsAgo).substring(2, 4);\n }\n\n ArrayList<String> jahresArray = new ArrayList<>();\n jahresArray.addAll(Arrays.asList(nextYearString, currentYearString, lastYearString, twoYearsAgoString, threeYearsAgoString));\n\n log.info(jahresArray.toString());\n\n return jahresArray;\n }",
"boolean isSetEnd();",
"private boolean validAdd(Flight flight) {\n double stopOverTime = getStopOverTime(flight);\n return (destination.equals(flight.getOrigin()) \n && stopOverTime <= 6 && stopOverTime >= 0 /*= 0 creates error*/\n && !(places.contains(flight.getDestination())));\n }",
"public boolean isSetYearPay() {\n return EncodingUtils.testBit(__isset_bitfield, __YEARPAY_ISSET_ID);\n }",
"boolean hasHasInjury();",
"private boolean validateEventEndDate(){\n //get event end date\n String eventEndDateInput = eventEndDateTV.getText().toString().trim();\n\n //if event end date == null\n if(eventEndDateInput.isEmpty())\n {\n eventEndDateTV.setError(\"Please set the end date for the event\");\n return false;\n }\n else{\n eventEndDateTV.setError(null);\n return true;\n }\n }",
"protected boolean isDocErrorCorrectionMode(FinancialSystemTransactionalDocument document) {\n if (StringUtils.isNotBlank(document.getFinancialSystemDocumentHeader().getCorrectedByDocumentId())) {\n return true;\n }\n\n if(((CustomerInvoiceDocument)document).isInvoiceReversal()){\n return true;\n } else {\n // a normal invoice can only be error corrected if document is in a final state\n // and no amounts have been applied (excluding discounts)\n return isDocFinalWithNoAppliedAmountsExceptDiscounts((CustomerInvoiceDocument) document);\n }\n }",
"boolean hasExpireDate();",
"private boolean checkEmployeesAnnualLeaveRecordForYear(AbsentYear absYear, long numDaysRequested, int empId) {\n\t\tlong numDaysAbsent = empAbsentRepo.numDaysEmployeeHasBeenAbsent(absYear.getYear(), empId, \"Annual Leave\");\n\t\tlong annualLeave = rasRepo.findSeniority(empId).getHolidayEntitlement();\n\t\tlong diff = (annualLeave - numDaysAbsent) - numDaysRequested;\n\t\treturn (numDaysRequested <= (diff)) ? true : false;\n\t}",
"boolean isSetAppliesPeriod();",
"public boolean isLate(){\n Date d = givenBack != null ? givenBack : new Date();\n return expirationDate.before(d);\n }",
"public boolean valid() {\n return start != null && ends != null && weavingRegion != null;\n }",
"@Test\r\n\tpublic void testCancelAuctionOnAuctionExsistsForNonProfitEqualAuctionDate(){\r\n\t\t\r\n\t\tCalendar c = new Calendar();\t\t\r\n\t\tc.addAuction(new AuctionRequest(d1, t1, myNonProfit.getOrgName()));\t\t\r\n\t\tassertFalse(c.cancelAuction(myNonProfit, myCurrDate, myCurrDate));\r\n\t\t\r\n\t}",
"public boolean hasDScrAmtFinPayhstLntot()\r\n {\r\n return this._has_dScrAmtFinPayhstLntot;\r\n }",
"public boolean isSetDateClose()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATECLOSE$4) != 0;\n }\n }",
"@Override\n public boolean isValid() {\n return dateFrom != null && dateTo != null;\n }",
"public void setEndYear(int endYear) {\n\t\tthis.endYear = endYear;\n\t}",
"boolean hasFkocs();",
"private boolean checkEvenings(Schedule sched)\n\t{\n\t\tint tempSectionNumber; //In his example he has a course with lecture section 95\n\t\t//Traverse through all the courses and look at their time slot start time\n\t\tfor(int i = 0; i<sched.getCourses().size(); i++)\n\t\t{\n\t\t\tif(sched.getCourses().get(i).getSlot() != null)\n\t\t\t{\n\t\t\t\ttempSectionNumber = sched.getCourses().get(i).getSection();\n\t\t\t\t\n\t\t\t while (tempSectionNumber > 9) \n\t\t\t {\n\t\t\t tempSectionNumber /= 10;\n\t\t\t }\n\t\t\t \n\t\t\t\t//If a CPSC course has section number that starts in 9 and \n\t\t\t //starts before 1800 the check failed\n\t\t\t\tif((tempSectionNumber == 9) &&\n\t\t\t\t\t\t(sched.getCourses().get(i).getSlot().getStartTime() <1800) )\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//I commented this out because i don't think we need to for labs\n\t\t/*\n\t\t//Traverse through all the labs and look at their time slot start time\n\t\tfor(int i = 0; i<sched.getLabs().size(); i++)\n\t\t{\n\t\t\t//If a CPSC course has section number 9 and starts before 1800 the check failed\n\t\t\tif((sched.getLabs().get(i).getLectureNum() == 9) &&\n\t\t\t\t\t(sched.getLabs().get(i).getSlot().getStartTime() <1800) &&\n\t\t\t\t\t(sched.getCourses().get(i).getDepartment().equals(\"CSPC\")))\n\t\t\t\treturn false;\t\n\t\t}\n\t\t*/\n\t\t\n\t\t//If we made it here, there were no conflicts. Check passes\n\t\treturn true;\n\t}",
"public boolean isValid_ToBuyTicket() {\n if (this.tktSold < this.museum.getMaxVisit() && isNowTime_in_period()) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"public boolean hasAmountF() {\n return amountF_ != null;\n }",
"@Property\n void nonCenturialNonLeapyearTest(@ForAll(\"nonCenturialNonLeapyears\") int year){\n assertThat(!ly.isLeapYear(year));\n }",
"public boolean isDate() {\n if ( expiryDate==null) return false;\n else return expiryDate.isSIPDate();\n }",
"public static boolean valido(Certificado certificado) throws NfeException {\r\n\r\n\t\tif (DataValidade(certificado) != null && DataValidade(certificado).after(new Date())) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}",
"public Date validarFechaFinGarantia(Date fechaFinGarantia) {\r\n\r\n\r\n try {\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.setTime(fechaFinGarantia);\r\n if (calendar.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY) {\r\n List<Date> festivos = Utils.calcularFestivosCol(String.valueOf(calendar.get(Calendar.YEAR)));\r\n do {\r\n calendar.add(Calendar.DAY_OF_MONTH, 1);\r\n } while (festivos.contains(calendar.getTime()));\r\n\r\n fechaFinGarantia = calendar.getTime();\r\n }\r\n\r\n } catch (ParseException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return fechaFinGarantia;\r\n\r\n }",
"public boolean isTimeContextDependent() {\r\n\t\treturn (_numberOfIntervals[MONTH_INTERVAL] != 0\r\n\t\t\t\t|| _numberOfIntervals[YEAR_INTERVAL] != 0\r\n\t\t\t\t|| _numberOfIntervals[DECADE_INTERVAL] != 0 || _numberOfIntervals[CENTURY_INTERVAL] != 0);\r\n\t}",
"public boolean getIsRecurring() throws ServiceLocalException {\n\t\treturn this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.IsRecurring) != null;\n\t}",
"public boolean wasToday() {\n\t\tlong endInMillis = endTime.getTime();\n\t\tCalendar endTimeDate = Calendar.getInstance();\n\t\tendTimeDate.setTimeInMillis(endInMillis);\n\t\tCalendar today = Calendar.getInstance();\n\t\tif (today.get(Calendar.YEAR) == endTimeDate.get(Calendar.YEAR) && today.get(Calendar.DAY_OF_YEAR) == endTimeDate.get(Calendar.DAY_OF_YEAR)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"boolean hasDate();",
"boolean endDateAfter(String start, String end) {\n SimpleDateFormat ddMMyyyy = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.UK);\n Calendar c = Calendar.getInstance();\n try {\n Date startDate = ddMMyyyy.parse(start);\n Date endDate = ddMMyyyy.parse(end);\n c.setTime(startDate);\n return startDate.compareTo(endDate) <= 0;\n } catch (ParseException e) {\n System.out.println(\"Error occurred parsing Date\");\n }\n return true;\n }",
"public static boolean esAnoBisiesto(int year) {\r\n\t\t assert year >= 1583; // not valid before this date.\r\n\t\t return ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0);\r\n\t}"
]
| [
"0.6106312",
"0.60385954",
"0.6023568",
"0.5996845",
"0.59846944",
"0.5966867",
"0.5800611",
"0.5777117",
"0.56882334",
"0.5664486",
"0.5662999",
"0.55785257",
"0.5555423",
"0.55467886",
"0.5519053",
"0.55007744",
"0.54644704",
"0.5458349",
"0.54248166",
"0.5415816",
"0.5375817",
"0.5368556",
"0.53566027",
"0.53507364",
"0.5348779",
"0.5327948",
"0.5326421",
"0.53252196",
"0.53239733",
"0.5305634",
"0.5287883",
"0.5276744",
"0.52661926",
"0.5256044",
"0.5255946",
"0.5230115",
"0.5229111",
"0.52286637",
"0.5218746",
"0.521411",
"0.5207292",
"0.52007717",
"0.5192533",
"0.5182307",
"0.5141701",
"0.5138947",
"0.51360345",
"0.51333797",
"0.5132842",
"0.51292455",
"0.5125863",
"0.51217127",
"0.51042056",
"0.5092846",
"0.50822777",
"0.5082173",
"0.50757843",
"0.50706905",
"0.50558937",
"0.5046379",
"0.50300765",
"0.5003424",
"0.500151",
"0.4998856",
"0.49917176",
"0.49897066",
"0.4984625",
"0.4983215",
"0.49827787",
"0.49760136",
"0.4975785",
"0.4973943",
"0.4970455",
"0.49650213",
"0.4959992",
"0.49556762",
"0.49538913",
"0.4950596",
"0.494928",
"0.49462885",
"0.49461436",
"0.49443763",
"0.49404126",
"0.49398065",
"0.4939666",
"0.49328852",
"0.4930436",
"0.49289834",
"0.49211505",
"0.49197334",
"0.49185538",
"0.49132836",
"0.49028274",
"0.4896172",
"0.48892373",
"0.48859695",
"0.48845553",
"0.488107",
"0.48733133",
"0.48672348"
]
| 0.6500647 | 0 |
Determines if this document has an advance and the due date for the advance occurs in a nonexisting fiscal year, in which case, the advance's glpes should be held | protected boolean shouldHoldAdvance() {
if (shouldProcessAdvanceForDocument() && getTravelAdvance().getDueDate() != null) {
return getTravelEncumbranceService().shouldHoldEntries(getTravelAdvance().getDueDate());
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean experired() {\n\t\tint month = Calendar.getInstance().get(Calendar.MONTH) + 1;\n\t\tint year = Calendar.getInstance().get(Calendar.YEAR);\n\t\tString[] parts = this.experiation.split(\"/\");\n\t\tString originalMonth = parts[0];\n\t\tint oM = Integer.parseInt(originalMonth);\n\t\tString originalYear = parts[1];\n\t\tint oY = Integer.parseInt(originalYear);\n\t\t\n\t\tif(oY < year) {\n\t\t\treturn true;\n\t\t}\n\t\tif(oY == year && oM < month) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean hasAcademicYear() {\n return academicYearBuilder_ != null || academicYear_ != null;\n }",
"@java.lang.Override\n public boolean hasAcademicYear() {\n return academicYear_ != null;\n }",
"protected boolean isOverdue() {\n\t\t// this might be backwards, go back and check later\n\t\t/*int i = todaysDate.compareTo(returnDate);// returns 0, a positive num, or a negative num\n\t\tif (i == 0) { return false;}\t\t// the dates are equal, not overdue\n\t\telse if (i > 0) { return true; }\t// positive value if the invoking object is later than date\n\t\telse { return false; } */\t\t\t// negative value if the invoking object is earlier than date\n\t\t\n\t\t// can also do\n\t\tif (todaysDate.getTime() > returnDate.getTime() ) { return true; }\n\t\telse { return false; }\t// if the difference in time is less than or equal\n\t}",
"public boolean checkDate(){\n Calendar c = Calendar.getInstance();\n Date currentDate = new Date(c.get(Calendar.DAY_OF_MONTH),c.get(Calendar.MONTH)+1, c.get(Calendar.YEAR));\n return (isEqualOther(currentDate) || !isEarlyThanOther(currentDate));\n\n }",
"private static Boolean checkYear(){\r\n try{\r\n int year = Integer.parseInt(yearField.getText().trim());\r\n int now = LocalDate.now().getYear();\r\n \r\n if(LocalDate.now().getMonth().compareTo(Month.SEPTEMBER) < 0){\r\n now--;\r\n }\r\n //SIS stores the schedule for last 3 years only \r\n if(year <= now && year >= now - 3 ){\r\n return true;\r\n }\r\n }\r\n catch(Exception e){\r\n Logger.getLogger(\"Year checker\").log(Level.WARNING, \"Exception while resolving the year \", e);\r\n }\r\n return false;\r\n }",
"boolean hasAcquireDate();",
"public void checkOverDue() {\n\t\tif (state == loanState.current && //changed 'StAtE' to 'state' and ' lOaN_sTaTe.CURRENT to loanState.current\r\n\t\t\tCalendar.getInstance().getDate().after(date)) { //changed Calendar.gEtInStAnCe to Calender.getInstance and gEt_DaTe to getDate and DaTe to date\r\n\t\t\tthis.state = loanState.overDue; //changed 'StAtE' to 'state' and lOaN_sTaTe.OVER_DUE to loanState.overDue\t\t\t\r\n\t\t} //added curly brackets\r\n\t}",
"public boolean expired(){\n return !Period.between(dateOfPurchase.plusYears(1), LocalDate.now()).isNegative();\n }",
"private void checksOldExpense() {\n DateUtils dateUtils = new DateUtils();\n\n // Breaking date string from date base\n String[] expenseDate = dateDue.getText().toString().split(\"-\");\n\n if((Integer.parseInt(expenseDate[GET_MONTH]) < Integer.parseInt(dateUtils.currentMonth))\n && (Integer.parseInt(expenseDate[GET_YEAR]) <= Integer.parseInt(dateUtils.currentYear))){\n\n }\n }",
"@Test\n public void isLeapYear() {\n assertFalse(Deadline.isLeapYear(Integer.parseInt(VALID_YEAR_2018)));\n\n // Valid leap year -> returns true\n assertTrue(Deadline.isLeapYear(Integer.parseInt(LEAP_YEAR_2020)));\n\n // Valid year divisible by 4 but is common year -> returns false\n assertFalse(Deadline.isLeapYear(Integer.parseInt(NON_LEAP_YEAR_2100)));\n\n // Valid year divisible by 100 but is leap year -> returns true\n assertTrue(Deadline.isLeapYear(Integer.parseInt(LEAP_YEAR_2400)));\n }",
"public boolean isOverdue(int today);",
"public boolean isOverDue() {\n\t\treturn state == loanState.overDue; //changed 'StAtE' to 'state' and lOaN_sTaTe.OVER_DUE to loanState.overDue\r\n\t}",
"protected boolean isDocFinalWithNoAppliedAmountsExceptDiscounts(CustomerInvoiceDocument document) {\n boolean isFinal = document.getDocumentHeader().getWorkflowDocument().isFinal();\n\n InvoicePaidAppliedService<CustomerInvoiceDetail> paidAppliedService = SpringContext.getBean(InvoicePaidAppliedService.class);\n boolean hasAppliedAmountsExcludingDiscounts = paidAppliedService.doesInvoiceHaveAppliedAmounts(document);\n\n return isFinal && !hasAppliedAmountsExcludingDiscounts;\n }",
"private static boolean checkIfYearContinue(Sheet sheet) {\r\n String last = sheet.getCellAt(\"A\" + sheet.getRowCount()).getTextValue(); \r\n return !last.equals(\"end\");\r\n }",
"private void givenExchangeRateExistsForABaseAndDate() {\n }",
"public boolean isDeviceOverdue() throws DateFormatException {\r\n \tString today = Helper.getCurrentDate();\r\n \tString due = this.rentSettings.getDueDate();\r\n \tSystem.out.println(\"Duedate \" + due);\r\n \tboolean good = Helper.isValidDate(due);\r\n \tif(good) {\r\n \t\tif(Helper.timeDifference(today, due) < 0) {\r\n \t\t\tSystem.out.println(\"Device \" + this + \" is Overdue\");\r\n \t\t\treturn true;\r\n \t\t}\r\n \t\telse \r\n \t\t\tSystem.out.println(\"Device \" + this + \" is NOT overdue yet\");\r\n \t}\r\n return false;\r\n }",
"public boolean isALeapYear(int year){\n\n if (((year%4 == 0) && (year%100!=0)) || (year%400==0)){\n return true;\n }\n return false;\n }",
"private boolean checkEmployeesAnnualLeaveRecordForYear(AbsentYear absYear, long numDaysRequested, int empId) {\n\t\tlong numDaysAbsent = empAbsentRepo.numDaysEmployeeHasBeenAbsent(absYear.getYear(), empId, \"Annual Leave\");\n\t\tlong annualLeave = rasRepo.findSeniority(empId).getHolidayEntitlement();\n\t\tlong diff = (annualLeave - numDaysAbsent) - numDaysRequested;\n\t\treturn (numDaysRequested <= (diff)) ? true : false;\n\t}",
"public Date validarFechaFinGarantia(Date fechaFinGarantia) {\r\n\r\n\r\n try {\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.setTime(fechaFinGarantia);\r\n if (calendar.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY) {\r\n List<Date> festivos = Utils.calcularFestivosCol(String.valueOf(calendar.get(Calendar.YEAR)));\r\n do {\r\n calendar.add(Calendar.DAY_OF_MONTH, 1);\r\n } while (festivos.contains(calendar.getTime()));\r\n\r\n fechaFinGarantia = calendar.getTime();\r\n }\r\n\r\n } catch (ParseException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return fechaFinGarantia;\r\n\r\n }",
"public boolean isLeapYear() {\n\n return ((this.cyear % 4) == 3);\n\n }",
"public void propagateAdvanceInformationIfNeeded() {\n if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().getTravelAdvanceRequested() != null) {\n if (!ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setCheckTotalAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n final TemSourceAccountingLine maxAmountLine = getAccountingLineWithLargestAmount();\n if (!TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus())) {\n getAdvanceAccountingLines().get(0).setAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n if (!allParametersForAdvanceAccountingLinesSet() && !TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus()) && !advanceAccountingLinesHaveBeenModified(maxAmountLine)) {\n // we need to set chart, account, sub-account, and sub-object from account with largest amount from regular source lines\n if (maxAmountLine != null) {\n getAdvanceAccountingLines().get(0).setChartOfAccountsCode(maxAmountLine.getChartOfAccountsCode());\n getAdvanceAccountingLines().get(0).setAccountNumber(maxAmountLine.getAccountNumber());\n getAdvanceAccountingLines().get(0).setSubAccountNumber(maxAmountLine.getSubAccountNumber());\n }\n }\n // let's also propogate the due date\n if (getTravelAdvance().getDueDate() != null && !ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setDueDate(getTravelAdvance().getDueDate());\n }\n }\n }",
"public Boolean isExpired() {\n\t\tCalendar today = Calendar.getInstance();\n\t\treturn today.get(Calendar.DAY_OF_YEAR) != date.get(Calendar.DAY_OF_YEAR);\n\t}",
"boolean hasRemainDays();",
"public boolean isSetExam_date() {\n return this.exam_date != null;\n }",
"public boolean Leap_Gregorian(double year)\n {\n return ((year % 4) == 0) && (!(((year % 100) == 0) && ((year % 400) != 0)));\n }",
"private boolean isMissingProjectData(String title, String assignee, LocalDate deadline) {\n return isEmptyText(title) || isEmptyText(assignee) || isEmptyText(deadline.toString());\n }",
"public static boolean dueDateHasPassed(String currentDate, String dueDate){\n if(getYear(currentDate)>getYear(dueDate)){\n return true;\n }\n else if(getYear(currentDate) == getYear(dueDate)){\n if(getMonth(currentDate)>getMonth(dueDate)){\n return true;\n }\n else if(getMonth(currentDate) == getMonth(dueDate)){\n if(getDay(currentDate)>getDay(dueDate)){\n return true;\n }\n }\n }\n return false;\n }",
"public boolean isLeapYear(){\n\t if (((this.year % 4 == 0) && (this.year % 100 != 0)) || (this.year %400 == 0))\n\t return true;\n\treturn false;\n }",
"protected boolean isAdvancePendingEntry(GeneralLedgerPendingEntry glpe) {\n return StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CHECK_ACH_DOCUMENT) ||\n StringUtils.equals(glpe.getFinancialDocumentTypeCode(),TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_WIRE_OR_FOREIGN_DRAFT_DOCUMENT);\n }",
"@Override\r\n\tpublic boolean checkBudget() {\n\t\treturn false;\r\n\t}",
"@Override\n public boolean canErrorCorrect(FinancialSystemTransactionalDocument document) {\n if (StringUtils.isNotBlank(document.getFinancialSystemDocumentHeader().getCorrectedByDocumentId())) {\n return false;\n }\n\n // error correction shouldn't be allowed for previous FY docs\n WorkflowDocument workflowDocument = document.getDocumentHeader().getWorkflowDocument();\n if (!isApprovalDateWithinFiscalYear(workflowDocument)) {\n return false;\n }\n\n if(((CustomerInvoiceDocument)document).isInvoiceReversal()){\n return false;\n } else {\n // a normal invoice can only be error corrected if document is in a final state\n // and no amounts have been applied (excluding discounts)\n return isDocFinalWithNoAppliedAmountsExceptDiscounts((CustomerInvoiceDocument) document);\n }\n }",
"private boolean checkAngle() {\n\t\tint bornes = FILTER_BORNES;\n\t\treturn checkAngleBornes(angle, 0d, bornes) || checkAngleBornes(angle, 90d, bornes) || checkAngleBornes(angle, 180d, bornes);\n\t}",
"public boolean getOccupied(GregorianCalendar date)// --> Sjekker om lokalet er ledig på den datoen som blir tatt imot som parameter.\n\t{\n\t\tGregorianCalendar[] reserved = getReservedDates();\n\n\t\tif(reserved == null)\n\t\t\treturn false;\n\n\t\tGregorianCalendar check = Utilities.getCleanDate(date);\n\n\t\tfor(GregorianCalendar c : reserved)\n\t\t\tif(check.get(Calendar.YEAR) == c.get(Calendar.YEAR) && check.get(Calendar.MONTH) == c.get(Calendar.MONTH)\n\t\t\t\t&& check.get(Calendar.DAY_OF_MONTH) == c.get(Calendar.DAY_OF_MONTH))\n\t\t\t\treturn true;\n\n\t\treturn false;\n\t}",
"public static boolean isPastDue(Date date) {\n\t\tthrow new IllegalStateException(\"no database connection\");\r\n\t}",
"public boolean isDate (int year, int doy)\n {\n return ((year >= FIRST_YEAR)\n && (1 <= doy && doy <= getLengthOfYear (year)));\n }",
"@Property\n void centurialNonLeapYearTest(@ForAll(\"centurialNonLeapYears\") int year){\n assertThat(!ly.isLeapYear(year));\n }",
"abstract void fiscalCodeValidity();",
"@Property\n void nonCenturialNonLeapyearTest(@ForAll(\"nonCenturialNonLeapyears\") int year){\n assertThat(!ly.isLeapYear(year));\n }",
"private boolean employeeDoesNotHaveAnAbsentRecordForThisYear(AbsentYear absYear, int empId) {\n\t\tList<EmployeeAbsent> empAbs = empAbsentRepo.findEmployeeAbsentRecordsForYear(absYear.getYear(), empId);\n\t\treturn (empAbs.isEmpty()) ? true : false;\n\t}",
"private Bool checkCreditReviewDate(Person person) {\n\t\tBool holdProcessSwitch = Bool.FALSE;\n\t\tQuery<Date> query = createQuery(CmDelinquencyProcessConstant.PER_COL_FROM_PERSON_QUERY.toString(), \"CmHoldDelinquencyProcessCriteriaDueToCreditReviewDtAlgComp_Impl\");\n\t\tquery.bindEntity(\"person\", person);\n\t\tquery.addResult(\"postponeCreditRevieDate\", \"PERCOL.postponeCreditReviewUntil\");\n\t\tDate postponeCreditRevieDate = query.firstRow();\n\t\t\n\t\t// If credit review date is after process date time\n\t\tif (notNull(postponeCreditRevieDate) && postponeCreditRevieDate.isAfter(getProcessDateTime().getDate())) {\n\t\t\tholdProcessSwitch = Bool.TRUE;\n\t\t\n\t\t\t// Fetch existing delinquency process log for particular char value\n\t\t\tQuery<QueryResultRow> existingLogQuery = createQuery(CmHoldDelinquencyProcessConstants.FETCH_EXISTING_DEL_PROC_LOG.toString(), \"CmHoldDelinquencyProcessCriteriaDueToCreditReviewDtAlgComp_Impl\");\n\t\t\texistingLogQuery.bindId(\"delProcId\", delinquencyProcessId);\n\t\t\texistingLogQuery.bindStringProperty(\"boStatus\", CmDelinquencyProcess.properties.status, delinquencyProcessId.getEntity().getStatus());\n\t\t\texistingLogQuery.bindId(\"msgCategoryNumber\", MessageRepository.addDelProcLogForCharVal(getPostponeCreditReviewDateHoldReason()).getMessageId().getMessageCategoryId());\n\t\t\texistingLogQuery.bindBigInteger(\"msgNumber\", MessageRepository.addDelProcLogForCharVal(getPostponeCreditReviewDateHoldReason()).getMessageId().getMessageNumber());\n\t\t\texistingLogQuery.bindEntity(\"charType\", getHoldReasonCharacteristicType());\n\t\t\texistingLogQuery.bindStringProperty(\"charValue\", CmDelinquencyProcessCharacteristic.properties.characteristicValue, getPostponeCreditReviewDateHoldReason());\n\t\t\texistingLogQuery.addResult(\"delProcessId\", \"DPL.id.delinquencyProcess.id\");\n\t\t\texistingLogQuery.addResult(\"sequence\", \"DPL.id.sequence\");\n\t\t\t\n\t\t\t// If no existing log entry found\n\t\t\tif(existingLogQuery.list().isEmpty()){\n\t\t\t\t\n\t\t\t\t// No existing log entry add new log entry \n\t\t\t\tCharacteristicValue_Id charValId = new CharacteristicValue_Id(getHoldReasonCharacteristicType(), getPostponeCreditReviewDateHoldReason());\n\t\t\t\tMaintenanceObjectLogHelper<CmDelinquencyProcess, CmDelinquencyProcessLog> logHelper = new MaintenanceObjectLogHelper<CmDelinquencyProcess, CmDelinquencyProcessLog>(\n\t\t\t\t\t\tdelinquencyProcessId.getEntity().getBusinessObject().getMaintenanceObject(), delinquencyProcessId.getEntity());\n\t\t\t\tlogHelper.addLogEntry(LogEntryTypeLookup.constants.SYSTEM, MessageRepository.addDelProcLogForCharVal(charValId.getEntity().fetchLanguageDescription()), null, charValId.getEntity());\n\t\t\t} \n\t\t\t\n\t\t}\n\t\t\n\t\treturn holdProcessSwitch;\n\t}",
"public boolean hasRefSeason() {\n return refSeasonBuilder_ != null || refSeason_ != null;\n }",
"@Test\r\n\tpublic void testCancelAuctionOnAuctionDoesntExistForNonProfit(){\r\n\t\tCalendar c = new Calendar();\t\r\n\t\tassertFalse(c.cancelAuction(myNonProfit, myAuctDateMoreThan2Days, myCurrDate));\t\t\r\n\t}",
"private static boolean checkIfYearExist(SpreadSheet spreadSheet, int year) {\r\n Sheet sheet = spreadSheet.getSheet(String.valueOf(year));\r\n return sheet != null;\r\n }",
"public boolean isAuMoinsUneCompetenceAutrefEstEnCoursDeModification() {\n\t\tboolean result = false;\n\t\tint i = 0;\n\t\twhile (!result && i < tosRepartFdpCompetencesAutres().count()) {\n\t\t\tEORepartFdpAutre repart = (EORepartFdpAutre) tosRepartFdpCompetencesAutres().objectAtIndex(i);\n\t\t\tif (repart.isEnCoursDeModification()) {\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn result;\n\t}",
"public boolean isInflated() {\n // TODO(cgavidia): This rule needs to be improved!\n\n boolean fixIsDelayed = false;\n\n if (this.isReportedSevere()) {\n fixIsDelayed = isFixDelayed(MAXIMUM_RELEASES_FOR_SEVERE);\n }\n\n if (this.isReportedDefault()) {\n fixIsDelayed = isFixDelayed(MAXIMUM_RELEASES_FOR_DEFAULT);\n }\n\n boolean fixIsRejected = isFixRejected();\n boolean issueIsIgnored = isIssueIgnored();\n\n return fixIsDelayed || fixIsRejected || issueIsIgnored;\n }",
"boolean isSetAppliesPeriod();",
"public boolean pastDueDate(Date d){\r\n if(dueDate.after(d)){\r\n return false;\r\n }\r\n return true;\r\n }",
"private boolean checksForAnnualLeaveAreOk(String reason, AbsentYear absYear, long numDaysRequested, int empId) {\n\t\tif(reason.compareTo(\"Annual Leave\") == 0) {\n\t\t\treturn (checkAnnualLeaveRequest(absYear, numDaysRequested, empId)) ? true : false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isLate(){\n Date d = givenBack != null ? givenBack : new Date();\n return expirationDate.before(d);\n }",
"public boolean isGraduatingYear(Education education) {\n return education.toString().equals(\"JC 2\") || education.toString().equals(\"Primary 6\")\n || education.toString().equals(\"Secondary 4\") || education.toString().equals(\"Secondary 5\");\n }",
"public boolean accrualEOMAdjustment()\n\t{\n\t\treturn _lsPeriod.get (0).periods().get (0).accrualEOMAdjustment();\n\t}",
"@Test\r\n\tpublic void testCancelAuctionOnAuctionExsistsForNonProfitEqualAuctionDate(){\r\n\t\t\r\n\t\tCalendar c = new Calendar();\t\t\r\n\t\tc.addAuction(new AuctionRequest(d1, t1, myNonProfit.getOrgName()));\t\t\r\n\t\tassertFalse(c.cancelAuction(myNonProfit, myCurrDate, myCurrDate));\r\n\t\t\r\n\t}",
"public Boolean checkPeriod( ){\r\n\r\n Date dstart = new Date();\r\n Date dend = new Date();\r\n Date dnow = new Date();\r\n\r\n\r\n\r\n // this part will read the openndate file in specific formate\r\n try (BufferedReader in = new BufferedReader(new FileReader(\"opendate.txt\"))) {\r\n String str;\r\n while ((str = in.readLine()) != null) {\r\n // splitting lines on the basis of token\r\n String[] tokens = str.split(\",\");\r\n String [] d1 = tokens[0].split(\"-\");\r\n String [] d2 = tokens[1].split(\"-\");\r\n \r\n int a = Integer.parseInt(d1[0]);\r\n dstart.setDate(a);\r\n a = Integer.parseInt(d1[1]);\r\n dstart.setMonth(a);\r\n a = Integer.parseInt(d1[2]);\r\n dstart.setYear(a);\r\n\r\n a = Integer.parseInt(d2[0]);\r\n dend.setDate(a);\r\n a = Integer.parseInt(d2[1]);\r\n dend.setMonth(a);\r\n a = Integer.parseInt(d2[2]);\r\n dend.setYear(a);\r\n\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"File Read Error\");\r\n }\r\n\r\n \r\n\r\n if ( dnow.before(dend) && dnow.after(dstart) )\r\n return true; \r\n\r\n return true;\r\n }",
"public boolean isLeapYear(int year){\r\n if(year%4 != 0){\r\n return false;\r\n } else if(year%100 == 0){\r\n if(year%400 != 0) return false; \r\n }\r\n return true;\r\n }",
"@Property\n void nonCenturialLeapYearTest(@ForAll(\"nonCenturialLeapYears\") int year){\n assertThat(ly.isLeapYear(year));\n }",
"public static int countDaysLeft(String currentDate, String dueDate){\n // Part 1. In the case where the current date has passed the due date, the dueDateHasPassed method is called with the currentDate and dueDate arguments \n // as inputs. \n if(dueDateHasPassed(currentDate, dueDate)){\n return 0;\n }\n // Part 2. In the case where the current date and the due date share the same month and year, the remaining days is calculated.\n else if((getMonth(currentDate) == getMonth(dueDate)) && (getYear(currentDate) == getYear(dueDate))){\n int numofDays = getDay(dueDate) - getDay(currentDate);\n return numofDays;\n }\n // Part 3. In the case where the current date and the due date share only the same year, the remaining days is calculated. \n else if(getYear(currentDate) == getYear(dueDate)){\n int i = getMonth(currentDate);\n int j = getMonth(dueDate);\n int totalDaysFromMonths = 0;\n while(i<j){\n totalDaysFromMonths += getDaysInAMonth(i,getYear(currentDate));\n i++;\n }\n int totalDaysOfSameYear = totalDaysFromMonths - getDay(currentDate) + getDay(dueDate);\n return totalDaysOfSameYear;\n }\n // Part 4. All other cases will result in the due date being in the futre of a different year, that of the current date. The remaining days will be \n // calculated. \n else{\n int b = getYear(dueDate);\n int a = getYear(currentDate);\n int totalDaysFromYears = 0;\n while(a<b){\n if(isLeapYear(a)){\n totalDaysFromYears += 366;\n }\n else{ \n totalDaysFromYears += 365;\n }\n a++;\n }\n int i = 1;\n int totalDaysFromMonthsOfcurrentDateYear = 0;\n while(i<getMonth(currentDate)){\n totalDaysFromMonthsOfcurrentDateYear += getDaysInAMonth(i, getYear(currentDate));\n i++;\n }\n int j = 1;\n int totalDaysFromMonthsOfdueDateYear = 0;\n while(j<getMonth(dueDate)){\n totalDaysFromMonthsOfdueDateYear +=getDaysInAMonth(j, getYear(dueDate));\n j++;\n }\n int totalDays = totalDaysFromYears - totalDaysFromMonthsOfcurrentDateYear - getDay(currentDate) + totalDaysFromMonthsOfdueDateYear + getDay(dueDate);\n return totalDays;\n }\n }",
"private boolean isDivisibleBy400(int year) {\n\t\treturn checkDivisibility(year, 400);\n\t}",
"public boolean checkDate() {\n\t\tboolean cd = checkDate(this.year, this.month, this.day, this.hour);\n\t\treturn cd;\n\t}",
"public boolean validate(AttributedDocumentEvent event) {\n boolean result = true;\n \n Document documentForValidation = getDocumentForValidation();\n \n LaborExpenseTransferDocumentBase expenseTransferDocument = (LaborExpenseTransferDocumentBase) documentForValidation;\n \n List sourceLines = expenseTransferDocument.getSourceAccountingLines();\n\n // allow a negative amount to be moved from one account to another but do not allow a negative amount to be created when the\n // balance is positive\n Map<String, ExpenseTransferAccountingLine> accountingLineGroupMap = this.getAccountingLineGroupMap(sourceLines, ExpenseTransferSourceAccountingLine.class);\n if (result) {\n boolean canNegtiveAmountBeTransferred = canNegtiveAmountBeTransferred(accountingLineGroupMap);\n if (!canNegtiveAmountBeTransferred) {\n GlobalVariables.getMessageMap().putError(KFSPropertyConstants.SOURCE_ACCOUNTING_LINES, LaborKeyConstants.ERROR_CANNOT_TRANSFER_NEGATIVE_AMOUNT);\n result = false;\n }\n }\n \n return result; \n }",
"protected boolean isDocErrorCorrectionMode(FinancialSystemTransactionalDocument document) {\n if (StringUtils.isNotBlank(document.getFinancialSystemDocumentHeader().getCorrectedByDocumentId())) {\n return true;\n }\n\n if(((CustomerInvoiceDocument)document).isInvoiceReversal()){\n return true;\n } else {\n // a normal invoice can only be error corrected if document is in a final state\n // and no amounts have been applied (excluding discounts)\n return isDocFinalWithNoAppliedAmountsExceptDiscounts((CustomerInvoiceDocument) document);\n }\n }",
"private boolean validateData() {\n if (!mCommon.validateData()) return false;\n\n Core core = new Core(this);\n\n // Due Date is required\n if (TextUtils.isEmpty(getRecurringTransaction().getDueDateString())) {\n core.alert(R.string.due_date_required);\n return false;\n }\n\n if (TextUtils.isEmpty(mCommon.viewHolder.dateTextView.getText().toString())) {\n core.alert(R.string.error_next_occurrence_not_populate);\n\n return false;\n }\n\n // Payments Left must have a value\n if (getRecurringTransaction().getPaymentsLeft() == null) {\n core.alert(R.string.payments_left_required);\n return false;\n }\n return true;\n }",
"private boolean isDivisibleBy100(int year) {\n\t\treturn checkDivisibility(year, 100);\n\t}",
"public final boolean mo2031a() {\n return this.f4204a.exists() || this.f4205b.exists();\n }",
"public boolean hasBonus() {\r\n return strDate.equals(game.settings.getBonusDay());\r\n }",
"@Test\r\n\tpublic void testCancelAuctionOnAuctionExsistsForNonProfitPastAuctionDate(){\r\n\t\t\r\n\t\tCalendar c = new Calendar();\t\t\r\n\t\tc.addAuction(new AuctionRequest(d1, t1, myNonProfit.getOrgName()));\t\t\r\n\t\tassertFalse(c.cancelAuction(myNonProfit, myAuctDateAfterAuctionDate, myCurrDate));\r\n\t\t\r\n\t}",
"@Test\r\n\tpublic void testCancelAuctionOnAuctionExsistsForNonProfitLessThan2Days(){\r\n\t\t\r\n\t\tCalendar c = new Calendar();\t\t\r\n\t\tc.addAuction(new AuctionRequest(d1, t1, myNonProfit.getOrgName()));\t\t\r\n\t\tassertFalse(c.cancelAuction(myNonProfit, myAuctDateLessThan2Days, myCurrDate));\r\n\t\t\r\n\t}",
"public static boolean getLeapYear() {\n boolean tag = false;\n Date date = new Date();\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy\");\n String dt = df.format(date);\n int pastYear = Integer.parseInt(dt) - 1;\n if (pastYear % 4 == 0 && (pastYear % 100 != 0 || pastYear % 400 == 0)) tag = true;\n return tag;\n }",
"private boolean isFixedDayOff(final Calendar date) {\n return isChristmasDay(date) || isAugustFifteenth(date)\n || isJanuaryFirst(date) || isJulyFourteenth(date)\n || isMayFirst(date) || isMayEighth(date)\n || isNovemberFirst(date) || isNovemberEleventh(date);\n\n }",
"private boolean isDivisibleBy4(int year) {\n\t\treturn checkDivisibility(year,4);\n\t}",
"public boolean hasRefSeason() {\n return refSeason_ != null;\n }",
"private void checkYearDeviation() {\n val yearDeviation = config.getInt(\"year_deviation\");\n\n checkArgument(yearDeviation > 0, \"year_deviation is less than or equal to 0!\");\n }",
"public boolean validarFechaNac() {\n\t\treturn fecha_nac != null;\n\t}",
"private boolean isPeriodEndOnInDocGeneratorResponse(DocumentGeneratorResponse response) {\n\n if (response.getDescriptionValues() == null ||\n !response.getDescriptionValues().containsKey(PERIOD_END_ON) ||\n StringUtils.isBlank(response.getDescriptionValues().get(PERIOD_END_ON))) {\n\n Map<String, Object> logMap = new HashMap<>();\n logMap.put(LOG_MESSAGE_KEY,\n \"Period end on has not been set within the description_values in the Document Generator Response\");\n\n LOGGER.error(LOG_DOC_GENERATOR_RESPONSE_INVALID_MESSAGE_KEY, logMap);\n return false;\n }\n\n return true;\n }",
"private static boolean isLeapYear(int year) {\n return year % 400 == 0 || (year % 100 != 0 && year % 4 == 0);\n }",
"public boolean isLeapYear(int year) {\n\t\tboolean isALeapYear = year % 400 == 0 || year % 4 == 0 && year % 100 != 0;\n\t\treturn isALeapYear;\n\t}",
"public static Boolean isAdult(long dob_millis) {\n Calendar calendar_dob = Calendar.getInstance();\n calendar_dob.setTimeInMillis(dob_millis);\n\n Calendar calendar_min_adult = Calendar.getInstance();\n calendar_min_adult.set(Calendar.MINUTE, 0);\n calendar_min_adult.set(Calendar.SECOND, 0);\n calendar_min_adult.set(Calendar.HOUR, 0);\n calendar_min_adult.add(Calendar.YEAR, -18);\n\n // //// //Log.e(\"recc_compcal\", \"==\"+calendar_dob.getTimeInMillis()+\"==\"+calendar_min_adult.getTimeInMillis());\n\n return (calendar_dob.getTimeInMillis() < calendar_min_adult.getTimeInMillis());\n }",
"public boolean isFuture()\n {\n GregorianCalendar currentDate = new GregorianCalendar();\n int dayT = currentDate.get(GregorianCalendar.DATE);\n int monthT = currentDate.get(GregorianCalendar.MONTH) + 1;\n int yearT = currentDate.get(GregorianCalendar.YEAR);\n int hourT = currentDate.get(GregorianCalendar.HOUR_OF_DAY);\n int minuteT = currentDate.get(GregorianCalendar.MINUTE);\n\n if (yearT < year)\n {\n return true;\n }\n else if (yearT == year && monthT < month)\n {\n return true;\n }\n else if (yearT == year && monthT == month && dayT < day)\n {\n return true;\n }\n else if (yearT == year && monthT == month && dayT == day && hourT < hour)\n {\n return true;\n }\n else if (yearT == year && monthT == month && dayT == day && hourT == hour\n && minuteT < minute)\n {\n return true;\n }\n else\n {\n return false;\n }\n }",
"boolean isSetFoundingDate();",
"private static boolean isLeapYear(int year)\n\t{\n\t\treturn ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0);\n\t}",
"public boolean isEnCours() {\n\t\tLocalDate date = LocalDate.now();\n\t\tif (date.plusDays(1).isAfter(dateDebut) && date.isBefore(dateFin)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private static boolean isLeapYear(int year)\n\t{\n \t if ((year % 4 == 0) && (year % 100 != 0)) return true;\n\t\t if (year % 400 == 0) return true;\n\t\t return true;\n }",
"public boolean LeapYearValidation(int year) {\r\n\t\tif (year >= 1582 && year <= 9999)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\r\n\t}",
"@Override\r\n\tpublic boolean updateReviewOfPastYearDetails(ExemptTeamMember exemptTeamMember, int year) {\n\t\treturn exemptTeamMemberDAO.updateReviewOfPastYearDetails(exemptTeamMember,year);\r\n\t}",
"@Test\n public void test6() {\n boolean res = object.checkLeapYear(-400);\n assertEquals(false, res);\n }",
"public boolean IsElectionYear(int Year) {\n\t\tif (Year % 4 == 0 && Year!=0) {\n\t\t\tif(debug) logger.info(\"IsElectionYear: true\");\n\t\t\treturn(true);\n\t\t}\n\t\telse {\n\t\t\tif(debug) logger.info(\"IsElectionYear: false\");\n\t\t\treturn(false);\t\n\t\t}\t\n\t}",
"private boolean checkDivisibility(int year, int num) {\n\t\treturn (year%num==0);\n\t}",
"private boolean isDisqualified(Application a) {\n\t if( Float.parseFloat(a.getStudent().getGpa()) < 3.0f) {\n\t a.setScore(Application.SCORE_DISQUALIFIED);\n\t a.setDisqualReason(\"Reported GPA too low\");\n\t return true;\n\t }\n /*\n //Eliminate students who are unable to serve all year\n\t //EDIT getServeAllYear() when appropriate field is added to application\n\t if(a.getApprenticeshipInfo().getServeAllYear().equals(\"No\")){\n a.setScore(Application.SCORE_DISQUALIFIED);\n a.setDisqualReason(\"Students must be able to serve in DLA all year\");\n return true\t\t\n }\n\t \n\t //Eliminate students who do not meet project requirements\n\t //EDIT getMeetRequirements() when field is added to application\n\t if(a.getApprenticeshipInfo().getMeetRequirements().equals(\"No\")){\n a.setScore(Application.SCORE_DISQUALIFIED);\n\t\ta.setDisqualReason(\"Students must meet project requirements\");\n\t\treturn true;\n\t }\n\t \n\t //Eliminate students in DLA in the past year\n\t //EDIT getGraduateStudent() when field is added to student application\n\t if(a.getApprenticeshipInfo().getGraduateStudent().equals(\"Yes\")){\n a.setScore(Application.SCORE_DISQUALIFIED);\n\t\ta.setDisqualReason(\"Graduate students are ineligible\");\n\t\treturn true;\n\t }\n\t \n\t //PLACEHOLDER\n\t //Eliminate MS/BS students in MS year\n\t //MS/BS students would be eliminated as graduate students above\n\t //However, if separation is required, it can be done here\n\t \n\t //PLACEHOLDER\n\t //Eliminate students not in College of Engineering\n\t //Currently, these students shouldn't be able to apply as their\n\t //majors would not show up under the student application\n\t //majors list\n\t //If this functionality is changed in the future, the following\n\t //can be used to eliminate them, modify getEngineering() when added\n\t //if(a.getStudent.getEngineering.equals(\"No\")){\n // a.setScore(Application.SCORE_DISQUALIFIED);\n\t // a.setDisqualReason(\"Students not in College of Engineering and Applied Science are ineligible\");\n\t //return true;\n\t //}\n\t \n\t //Eliminate graduate students\n\t if(a.getApprenticeshipInfo().getServed().equals(\"Yes\")){\n a.setScore(Application.SCORE_DISQUALIFIED);\n\t\ta.setDisqualReason(\"Students who served in the DLA in the past year are ineligible\");\n\t\treturn true;\n\t }\n\t \n\t */\n\t return false;\n\t}",
"private boolean validaFechasPrimerDiaLaboral(int indice,boolean isSol, int CodEmp, int CodLoc){\n boolean blnRes=false;\n try{\n if(objTblMod.getValueAt(indice, INT_TBL_DAT_EST_FAC_PRI_DIA_LAB).toString().equals(\"S\")){\n if(isSol){\n if(getFechaLab(CodEmp,CodLoc).equals(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL).toString())){\n blnRes=true;\n }\n //strFechaSol=objUti.formatearFecha(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL).toString(),\"dd/MM/yyyy\",objParSis.getFormatoFechaBaseDatos());\n }\n else{\n if(getFechaLab(CodEmp,CodLoc).equals(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL_FAC_AUT).toString())){\n blnRes=true;\n }\n //strFechaSol=objUti.formatearFecha(objTblMod.getValueAt(indice, INT_TBL_DAT_FEC_SOL_FAC_AUT).toString(),\"dd/MM/yyyy\",objParSis.getFormatoFechaBaseDatos());\n }\n }\n else{\n blnRes=true;\n }\n \n } \n catch(Exception e){\n objUti.mostrarMsgErr_F1(null, e);\n blnRes=false;\n }\n return blnRes;\n }",
"public boolean isLeap(int year) {\n\n if (year % 4 == 0) {\n if (year % 100 == 0) {\n if (year % 400 == 0) {\n return true;\n } else {\n return false;\n }\n\n } else\n return true;\n } else {\n return false;\n }\n\n }",
"@Override\r\n public boolean taxHoliday(Date receiptDate) {\r\n \r\n Date taxHolidayStartdate = new GregorianCalendar(2019, Calendar.AUGUST, 10).getTime();\r\n Date taxHolidayEnddate = new GregorianCalendar(2019, Calendar.AUGUST, 11).getTime();\r\n\r\n if (receiptDate.equals(taxHolidayStartdate) || receiptDate.equals(taxHolidayEnddate)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"private boolean validateTask(JTextField textFieldName,\r\n JTextField textFieldDescription,\r\n JFormattedTextField textFieldDueDate,\r\n JComboBox<Priority> comboPriority) {\r\n if (textFieldName.getText().equals(\"\") || textFieldDescription.getText().equals(\"\")\r\n || textFieldDueDate.getText().equals(\"\") || (comboPriority.getSelectedIndex() == -1)) {\r\n JOptionPane.showMessageDialog(null, \"Please Enter All Data!\");\r\n return false;\r\n }\r\n if (LocalDate.parse(textFieldDueDate.getText()).isBefore(LocalDate.now())) {\r\n JOptionPane.showMessageDialog(null, \"Enter a due date in the future!\");\r\n return false;\r\n }\r\n return true;\r\n }",
"public boolean checkDefaultDueDateValue() {\n waitForVisibleElement(eleDueDateValue, \"Engagement Due date\");\n waitForVisibleElement(eleIdDueDate, \"Default Due date\");\n String engagementDueDate = eleDueDateValue.getText().substring(5, eleDueDateValue.getText().length());\n String defaultDueDate = eleIdDueDate.getText();\n getLogger().info(engagementDueDate);\n getLogger().info(defaultDueDate);\n return engagementDueDate.equals(defaultDueDate);\n }",
"public static boolean isLeap (int yyyy)\n {\n // if you change this code, make sure you make corresponding changes to\n // jan01OfYear, toGregorian, MondayIsZeroAdjustment, SundayIsZeroAdjustment,\n // AD_epochAdjustment and BC_epochAdjustment\n // yyyy & 3 is a fast way of saying yyyy % 4\n if ( yyyy < Leap100RuleYYYY )\n if ( yyyy < 0 )\n {\n return((yyyy + 1) & 3) == 0;\n }\n else\n {\n return(yyyy & 3) == 0;\n }\n if ( (yyyy & 3) != 0 ) return false;\n if ( yyyy % 100 != 0 ) return true;\n if ( yyyy < Leap400RuleYYYY ) return false;\n if ( yyyy % 400 != 0 ) return false;\n return true;\n }",
"public boolean isSetDateClose()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATECLOSE$4) != 0;\n }\n }",
"private static boolean addIfAxiomIsAbsent(final List<OWLLogicalAxiom> correctFormulas, final OWLClassAssertionAxiom axiom) {\r\n boolean isAxiomAlreadyPresent = false;\r\n final int size = correctFormulas.size();\r\n for (int i = 0; i < size && !isAxiomAlreadyPresent; i++) {\r\n final OWLLogicalAxiom _ax = correctFormulas.get(i);\r\n if (_ax instanceof OWLClassAssertionAxiom) {\r\n final OWLClassAssertionAxiom ax = (OWLClassAssertionAxiom) _ax;\r\n final Set<OWLClass> axClassesInSignature = ax.getClassesInSignature();\r\n final OWLIndividual axIndividual = ax.getIndividual();\r\n\r\n final Set<OWLClass> axiomClassesInSignature = axiom.getClassesInSignature();\r\n final OWLIndividual axiomIndividual = axiom.getIndividual();\r\n\r\n final boolean areEqualClassesInSignature = axClassesInSignature.equals(axiomClassesInSignature);\r\n isAxiomAlreadyPresent = (areEqualClassesInSignature && axIndividual.isAnonymous() && axiomIndividual.isAnonymous());\r\n }\r\n }\r\n\r\n return !isAxiomAlreadyPresent && correctFormulas.add(axiom);\r\n }",
"private boolean leapyear(int yr){\n if(yr%4 == 0 && yr%100 != 0){ //If year is divisible by 4 but not by 100\r\n days[1] = 29; //Set February's days to 29\r\n return true; //Retrn true.\r\n }\r\n return false; //Otherwise, return false.\r\n }",
"private boolean checkValidDay() {\n return numDays >= 0 && numDays <= 7;\n }",
"public boolean checkDiary() {\n if (this.activities.size() % 2 == 0) return false; //we have to end with an stay! so the number must be odd!\n for (int i = 0; i < this.activities.size(); i++) {\n if (((i % 2) == 0 && !this.activities.get(i).stay) || //even and not a stay: bad!\n ((i % 2) == 1 && this.activities.get(i).stay) // odd and not a trip: bad!\n ) {\n return false;\n }\n if (this.activities.get(i).getDurtation() <= 0) {\n if (this.activities.get(i).start_min == 0 && this.activities.get(i).end_min == 0)\n continue;//starts at midnight are ok!\n System.out.println(\"Error in diary!\");\n this.activities.get(i).printElement();\n return false;\n }\n }\n //now check if the first and last stays are home\n return this.activities.size() > 0 && this.activities.get(0).home && this.activities.get(\n this.activities.size() - 1).home;\n }",
"boolean hasContinuousDay();"
]
| [
"0.6058103",
"0.599478",
"0.59573907",
"0.5820195",
"0.5717746",
"0.5661284",
"0.5624506",
"0.56169903",
"0.5586345",
"0.55745625",
"0.55552477",
"0.55250674",
"0.5467151",
"0.5463386",
"0.5376043",
"0.5373747",
"0.5345962",
"0.5337557",
"0.53257525",
"0.53088725",
"0.53016156",
"0.52977335",
"0.5291773",
"0.527499",
"0.52740234",
"0.52666223",
"0.5262013",
"0.5252763",
"0.5225999",
"0.52068424",
"0.51745844",
"0.5165411",
"0.51613146",
"0.5132336",
"0.5129014",
"0.51192635",
"0.50890654",
"0.50831985",
"0.50773495",
"0.50754225",
"0.50666404",
"0.5051312",
"0.5047581",
"0.50459975",
"0.50411916",
"0.5038809",
"0.5037916",
"0.5028588",
"0.50279605",
"0.5022671",
"0.50202",
"0.501925",
"0.50167763",
"0.50126874",
"0.50003946",
"0.49923798",
"0.4990392",
"0.49783987",
"0.49774835",
"0.4975816",
"0.49741575",
"0.4967188",
"0.4961731",
"0.4955632",
"0.4944497",
"0.49385282",
"0.4922211",
"0.4921233",
"0.49175313",
"0.4915819",
"0.4905018",
"0.48872212",
"0.48746413",
"0.48744354",
"0.48689055",
"0.48673075",
"0.48638684",
"0.4860795",
"0.48572913",
"0.48564795",
"0.4849178",
"0.48243415",
"0.48206404",
"0.48153222",
"0.4813623",
"0.48124358",
"0.48116678",
"0.48098266",
"0.4807936",
"0.48062575",
"0.4805026",
"0.4804997",
"0.48034996",
"0.47893682",
"0.47824937",
"0.47769737",
"0.47754157",
"0.47709966",
"0.47701904",
"0.47689402"
]
| 0.63220316 | 0 |
Determines if the given general ledger pending entry represents an encumbrance entry | protected boolean isEncumbrancePendingEntry(GeneralLedgerPendingEntry glpe) {
return StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT) ||
StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_AMEND_DOCUMENT) ||
StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CLOSE_DOCUMENT);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean isAdvancePendingEntry(GeneralLedgerPendingEntry glpe) {\n return StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CHECK_ACH_DOCUMENT) ||\n StringUtils.equals(glpe.getFinancialDocumentTypeCode(),TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_WIRE_OR_FOREIGN_DRAFT_DOCUMENT);\n }",
"@Override\r\n public boolean isOffsetToCash(GeneralLedgerPendingEntry generalLedgerPendingEntry) {\r\n if (generalLedgerPendingEntry.isTransactionEntryOffsetIndicator()) {\r\n final Chart entryChart = chartService.getByPrimaryId(generalLedgerPendingEntry.getChartOfAccountsCode());\r\n if (!ObjectUtils.isNull(entryChart)) {\r\n return (entryChart.getFinancialCashObjectCode().equals(generalLedgerPendingEntry.getFinancialObjectCode()));\r\n }\r\n }\r\n return false;\r\n }",
"@Override\n public boolean isDebit(GeneralLedgerPendingEntrySourceDetail postable) {\n if (postable instanceof AccountingLine && TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE.equals(((AccountingLine)postable).getFinancialDocumentLineTypeCode())) {\n return true; // we're an advance accounting line? then we're debiting...\n }\n return false; // we're not an advance accounting line? then we should return false...\n }",
"boolean hasPlainRedeem();",
"boolean hasPlainApprove();",
"public boolean isCompletelyGeneralized(HashGroupifyEntry entry) {\n if (entry.hashcode != this.suppressedHashCode) {\n return false;\n }\n int column = 0;\n entry.read();\n while (entry.hasNext()) {\n if (suppressedCodes[column++] != (entry.next() & Data.REMOVE_OUTLIER_MASK)) {\n return false;\n }\n }\n return true;\n }",
"public boolean customizeExpenseOffsetGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry) {\n boolean customized = false;\n // set the encumbrance update code\n offsetEntry.setTransactionEncumbranceUpdateCode(KFSConstants.ENCUMB_UPDT_REFERENCE_DOCUMENT_CD);\n\n // set the offset entry to Credit \"C\"\n offsetEntry.setTransactionDebitCreditCode(KFSConstants.GL_CREDIT_CODE);\n offsetEntry.setDocumentNumber(this.getDocumentNumber());\n\n String referenceDocumentNumber = this.getTravelDocumentIdentifier();\n if (ObjectUtils.isNotNull(referenceDocumentNumber)) {\n offsetEntry.setReferenceFinancialDocumentNumber(referenceDocumentNumber);\n offsetEntry.setReferenceFinancialDocumentTypeCode(TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT);\n offsetEntry.setReferenceFinancialSystemOriginationCode(TemConstants.ORIGIN_CODE);\n }\n\n String balanceType = getTravelEncumbranceService().getEncumbranceBalanceTypeByTripType(this);\n if (StringUtils.isNotEmpty(balanceType)) {\n offsetEntry.setFinancialBalanceTypeCode(balanceType);\n customized = true;\n }\n\n offsetEntry.setOrganizationDocumentNumber(getTravelDocumentIdentifier());\n return customized;\n }",
"public boolean hasPlainApprove() {\n return dataCase_ == 4;\n }",
"public static boolean isSigned_entries_receiveEst() {\n return false;\n }",
"public boolean hasPlainRedeem() {\n return dataCase_ == 3;\n }",
"public boolean hasPlainApprove() {\n return dataCase_ == 4;\n }",
"boolean hasAccountBudgetProposal();",
"public boolean hasPlainRedeem() {\n return dataCase_ == 3;\n }",
"boolean hasCompoundKey();",
"boolean hasLedger();",
"protected boolean shouldHoldEncumbrance() {\n if (getTripEnd() == null) {\n return false; // we won't hold encumbrances if we don't know when the trip is ending\n }\n final java.sql.Date tripEnd = new java.sql.Date(getTripEnd().getTime());\n return getTravelEncumbranceService().shouldHoldEntries(tripEnd);\n\n }",
"protected void customizeExpenseExplicitGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail postable, GeneralLedgerPendingEntry explicitEntry) {\n // set the encumbrance update code Set to ENCUMB_UPDT_REFERENCE_DOCUMENT_CD (\"R\")\n explicitEntry.setTransactionEncumbranceUpdateCode(KFSConstants.ENCUMB_UPDT_REFERENCE_DOCUMENT_CD);\n\n // set the offset entry to Debit \"D\"\n explicitEntry.setTransactionDebitCreditCode(KFSConstants.GL_DEBIT_CODE);\n explicitEntry.setDocumentNumber(this.getDocumentNumber());\n\n String referenceDocumentNumber = this.getTravelDocumentIdentifier();\n if (ObjectUtils.isNotNull(referenceDocumentNumber)) {\n explicitEntry.setReferenceFinancialDocumentNumber(referenceDocumentNumber);\n explicitEntry.setReferenceFinancialDocumentTypeCode(TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT);\n explicitEntry.setReferenceFinancialSystemOriginationCode(TemConstants.ORIGIN_CODE);\n }\n\n String balanceType = getTravelEncumbranceService().getEncumbranceBalanceTypeByTripType(this);\n if (StringUtils.isNotEmpty(balanceType)) {\n explicitEntry.setFinancialBalanceTypeCode(balanceType);\n }\n explicitEntry.setOrganizationDocumentNumber(getTravelDocumentIdentifier());\n }",
"public boolean containsAMneumonics() {\n\t\tswitch(this) {\n\t\t\n\t\tcase BR -> \t\t{return true;}\n\t\tcase BRLE -> \t{return true;}\n\t\tcase BRLT -> \t{return true;}\n\t\tcase BREQ -> \t{return true;}\n\t\tcase BRNE -> \t{return true;}\n\t\tcase BRGE -> \t{return true;}\n\t\tcase BRGT -> \t{return true;}\n\t\tcase BRV -> \t{return true;}\n\t\tcase BRC -> \t{return true;}\n\t\tcase CALL -> \t{return true;}\n\t\t\n\t\tdefault -> {return false;}\n\t\n\t\t}\n\t\t\n\t}",
"boolean antecedentsContain(LayerType type) {\n if (this.antecedents.size() == 0)\n return false;\n\n boolean antecendentsContainType = false;\n\n for (LayerType t: this.antecedents)\n if (t == type)\n antecendentsContainType = true;\n\n return antecendentsContainType;\n }",
"private boolean isEncapsulatingBet(BetSlipResponse betSlipResponse) {\n boolean result = betSlipResponse.getTransactions().size() > 0;\n\n for (TransactionResponse transactionResponse : betSlipResponse.getTransactions()) {\n result &= transactionResponse.getTransactionTypeId() == TransactionType.BET.getId();\n }\n\n return result;\n }",
"public boolean isIncomingInvitePending();",
"public abstract boolean isAcceptable(Bid plannedBid);",
"public abstract boolean isEdible(final Inhabitant inhabitant);",
"boolean hasTxnrequest();",
"public boolean hasLedger() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public boolean hasLedger() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"private boolean isBilancioInFaseEsercizioProvvisorio() {\n\t\tbilancioDad.setEnteEntity(req.getEnte());\n\t\treturn bilancioDad.isFaseEsercizioProvvisiorio(req.getBilancio().getAnno());\n\t}",
"public static Message checkEncumbranceUpdateCode(LaborTransaction transaction) {\n // The encumbrance update code can only be space, N, R or D. Nothing else\n if ((StringUtils.isNotBlank(transaction.getTransactionEncumbranceUpdateCode())) && (!\" \".equals(transaction.getTransactionEncumbranceUpdateCode())) && (!KFSConstants.ENCUMB_UPDT_NO_ENCUMBRANCE_CD.equals(transaction.getTransactionEncumbranceUpdateCode())) && (!KFSConstants.ENCUMB_UPDT_REFERENCE_DOCUMENT_CD.equals(transaction.getTransactionEncumbranceUpdateCode())) && (!KFSConstants.ENCUMB_UPDT_DOCUMENT_CD.equals(transaction.getTransactionEncumbranceUpdateCode()))) {\n return new Message(\"Invalid Encumbrance Update Code (\" + transaction.getTransactionEncumbranceUpdateCode() + \")\", Message.TYPE_FATAL);\n }\n return null;\n }",
"@Override\n public boolean contains(BankAccount anEntry) {\n for(int i=0; i<getSize(); i++){\n if(bankArrays[i].compare(anEntry) == 0){\n return true;\n }\n }\n return false;\n }",
"com.lvl6.proto.EventQuestProto.QuestAcceptResponseProto.QuestAcceptStatus getStatus();",
"boolean hasAchievementType();",
"boolean isConcealed();",
"public boolean checkAccountClosed() {\n return this.accountStatus == \"Closed\";\n }",
"boolean isIntraday();",
"public boolean isAnnullaAbilitatoAccertamento(String stato){\n\t\t\n\t\t//solo per il subaccertamento e' Annullabile anche da stato provvisorio\n\t\t\n\t\t//questo primo controllo riguarda logiche comuni per\n\t\t//sub accertamenti e sub impegni:\n\t\tboolean abilitatazioniComuniImpEAcc = super.isAnnullaAbilitato(stato);\n\t\tif(!abilitatazioniComuniImpEAcc){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//controllo fase bilancio:\n\t\tboolean abilita = isFaseBilancioAbilitata();\n\t\tif(!abilita){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//SIAC-4949 IMPEGNI e ACCERTAMENTI Aggiornamento per decentrati CR 912\n\t\t// quando l'utente ha il'azione DecentratoP deve essere disabilitata l'azione AGGIORNA e ANNULLA \n\t\t//dei subimpegni/subaccertamenti definitivi \n\t\tif(stato.equals(\"D\") && isAzioneAbilitata(CodiciOperazioni.OP_ENT_gestisciAccertamentoDecentratoP)){\n\t\t\treturn false;\n\t\t}\n\t\t//\n\t\t\t\n\t\treturn true;\n\t}",
"public boolean isBankrupt() {\n\t\tif (money < 0) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"protected boolean isClaimTypeCovered(ClaimCashflowPacket grossClaim) {\n return grossClaim.getBaseClaim().getClaimType().equals(ClaimType.EVENT)\n || grossClaim.getBaseClaim().getClaimType().equals(ClaimType.AGGREGATED_EVENT);\n }",
"boolean hasAccountBudget();",
"public boolean hasBASECURRENCYID() {\n return fieldSetFlags()[2];\n }",
"public boolean isBenefitAvailableFor(Account account, Dining dining);",
"@Override\r\n\t\t\tpublic boolean apply(DT_ENTRADAS_REQI_ENTRADAItem arg0) {\n\t\t\t\treturn arg0.getEBELP().equals(val);\r\n\t\t\t}",
"boolean isAccepting();",
"public boolean checkIn()\r\n\t{\r\n\t\tif(this.status == 'B')\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}",
"public boolean isSubcontracting() {\n\t\tObject oo = get_Value(\"IsSubcontracting\");\n\t\tif (oo != null) {\n\t\t\tif (oo instanceof Boolean)\n\t\t\t\treturn ((Boolean) oo).booleanValue();\n\t\t\treturn \"Y\".equals(oo);\n\t\t}\n\t\treturn false;\n\t}",
"boolean canAcceptTrade();",
"boolean hasB22();",
"private static boolean isContactContainsInvitationBeginner(String contact) {\n Logger.d(TAG, \"isContactContainsInvitation() entry contact is \"\n + contact);\n boolean ret = false;\n if (contact.contains(GROUP_CONTACT_STRING_BEGINNER\n + GROUP_CHAT_INVITATION_TAG_BEGINNER)) {\n ret = true;\n } else {\n Logger.d(TAG, \"isContactContainsInvitation() entry contact is \"\n + contact);\n }\n return ret;\n }",
"boolean hasDidcommInvitation();",
"public static boolean isInBank(){\n return isInBank(Players.localPlayer());\n }",
"AcctgTransEntryType getAcctgTransEntryType();",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof StdHrAcadBackgr)) {\n return false;\n }\n StdHrAcadBackgr other = (StdHrAcadBackgr) object;\n if ((this.stdHrAcadBackgrPK == null && other.stdHrAcadBackgrPK != null) || (this.stdHrAcadBackgrPK != null && !this.stdHrAcadBackgrPK.equals(other.stdHrAcadBackgrPK))) {\n return false;\n }\n return true;\n }",
"public static boolean chkManualEncumbranceRejValid(EscmProposalMgmt proposalmgmt) {\n try {\n OBContext.setAdminMode();\n EscmProposalMgmt baseProposal = proposalmgmt.getEscmBaseproposal();\n if (baseProposal == null) {\n OBQuery<EfinBudgetManencumlines> encline = OBDal.getInstance().createQuery(\n EfinBudgetManencumlines.class,\n \" as e where e.manualEncumbrance.id=:encumId and e.id in \"\n + \" ( select b.efinBudgmanencumline.id from Escm_Proposalmgmt_Line b \"\n + \" where b.escmProposalmgmt.id=:proposalId) and e.usedAmount > 0 \");\n encline.setNamedParameter(\"encumId\", proposalmgmt.getEfinEncumbrance().getId());\n encline.setNamedParameter(\"proposalId\", proposalmgmt.getId());\n\n if (encline.list().size() > 0) {\n return true;\n } else\n return false;\n } else if (baseProposal != null) {\n for (EscmProposalmgmtLine lines : proposalmgmt.getEscmProposalmgmtLineList()) {\n if (!lines.isSummary() && lines.getStatus() == null) {\n EfinBudgetManencumlines encline = lines.getEscmOldProposalline()\n .getEfinBudgmanencumline();\n // if reserved then consider new proposal line total\n BigDecimal amountDiffernce = lines.getEscmOldProposalline().getLineTotal()\n .subtract(lines.getLineTotal());\n if (amountDiffernce.compareTo(BigDecimal.ZERO) > 0\n && encline.getRemainingAmount().compareTo(amountDiffernce) < 0\n && encline.getManualEncumbrance().getEncumMethod().equals(\"M\")) {\n return true;\n } else {\n return false;\n }\n }\n }\n }\n\n } catch (final Exception e) {\n log.error(\"Exception in chkManualEncumbranceValidation after Reject : \", e);\n return false;\n } finally {\n OBContext.restorePreviousMode();\n }\n return false;\n }",
"boolean hasAlreadCheckCard();",
"public boolean isAggiornaAbilitatoAccertamento(String stato){\n\t\t\n\t\t//questo primo controllo riguarda logiche comuni per\n\t\t//sub accertamenti e sub impegni:\n\t\tboolean abilitatazioniComuniImpEAcc = super.isAggiornaAbilitato(stato);\n\t\tif(!abilitatazioniComuniImpEAcc){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//SIAC-4949 IMPEGNI e ACCERTAMENTI Aggiornamento per decentrati CR 912\n\t\t// quando l'utente ha il'azione DecentratoP deve essere disabilitata l'azione AGGIORNA e ANNULLA \n\t\t//dei subimpegni/subaccertamenti definitivi \n\t\tif(stato.equals(\"D\") && isAzioneAbilitata(CodiciOperazioni.OP_ENT_gestisciAccertamentoDecentratoP)){\n\t\t\treturn false;\n\t\t}\n\t\t//\n\t\t\t\n\t\treturn true;\n\t}",
"boolean hasTxnresponse();",
"private boolean isPartyApprovedTransfer(TransferPointRequest transferPointRequest) {\n Customer requestor = transferPointRequest.getFromCustomer();\n\n Customer approver = customerService.findByCusCustomerNo(transferPointRequest.getApproverCustomerNo());\n\n // Check if there is a entry in the LinkingApproval table\n PartyApproval partyApproval = partyApprovalService.getExistingPartyApproval(approver, requestor, PartyApprovalType.PARTY_APPROVAL_TRANSFER_POINT_REQUEST, transferPointRequest.getPtrId());\n\n // If the partyApproval is not found, then return false\n if ( partyApproval == null) {\n\n // Log the information\n log.info(\"isPartyApproved -> Party has not approved linking\");\n\n // return false\n return false;\n\n } else {\n\n return transferPointRequest.isApproved();\n }\n\n }",
"boolean hasSettlementCurrency();",
"public boolean customizeAdvanceOffsetGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry) {\n final String paymentDocumentType = StringUtils.isBlank(getTravelAdvancePaymentDocumentType()) ? TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CHECK_ACH_DOCUMENT : getTravelAdvancePaymentDocumentType();\n offsetEntry.setFinancialDocumentTypeCode(paymentDocumentType);\n offsetEntry.setOrganizationDocumentNumber(getTravelDocumentIdentifier());\n return true;\n }",
"@Override\n\tpublic boolean checkEWaybillNoExceptPDAPending(String waybillNo) {\n\t\treturn true;\n\t}",
"public boolean interestingTask(Task t) {\n boolean hasTransitVerb = t.getVerb().equals (Constants.Verb.TRANSIT);\n boolean hasTransportVerb = t.getVerb().equals (Constants.Verb.TRANSPORT);\n boolean hasVishnu = prepHelper.hasPrepNamed (t, \"VISHNU\");\n\n if (hasTransitVerb && hasVishnu) {\n if (isDebugEnabled())\n\tdebug (getName () + \".interestingTask - interested in TRANSIT task \" + t.getUID ());\n return true;\n }\n\n if (hasTransportVerb && hasVishnu) {\n if (isDebugEnabled())\n\tdebug (getName () + \".interestingTask - interested in TRANSPORT task \" + t.getUID ());\n return true;\n }\n\n if (isDebugEnabled())\n debug (getName () + \".interestingTask - NOT interested in \" + t.getUID ());\n\n return false;\n }",
"public boolean isCashTrx() {\n return \"X\".equals(getTenderType());\n }",
"public boolean hasE() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"boolean hasNestedEnum();",
"public boolean isBancrupt(){\r\n \treturn _budget <= 0;\r\n }",
"boolean isConfirmed();",
"public boolean hasE() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"boolean hasByte();",
"boolean isOrderCertain();",
"@java.lang.Override\n public boolean hasDidcommInvitation() {\n return deliveryMethodCase_ == 3;\n }",
"public boolean isStillValid() {\n if (!this.mAbortOnInflation && this.mEntry.getSbn().getGroupKey() == this.mOriginalNotification.getGroupKey() && this.mEntry.getSbn().getNotification().isGroupSummary() == this.mOriginalNotification.getNotification().isGroupSummary()) {\n return true;\n }\n return false;\n }",
"public boolean hasE() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"boolean hasTradeCurrency();",
"@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\t\r\n\t\tif ( this == obj ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\tif ( !(obj instanceof Good) ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tGood good = (Good) obj;\r\n\t\t\r\n\t\treturn\r\n\t\t\t\tthis.isBaseTaxFree() == good.isBaseTaxFree() &&\r\n\t\t\t\tthis.isImported() == good.isImported() &&\r\n\t\t\t\tthis.getDescription().equalsIgnoreCase(good.getDescription());\r\n\t}",
"boolean hasB24();",
"public boolean hasE() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"@Override\n\tpublic boolean queryExcepSignResultByWaybillNo(String originalWaybillNo) {\n\t\treturn false;\n\t}",
"boolean hasBidrequest();",
"boolean hasExternalAttributionCredit();",
"public boolean isContradicting(Item item){\r\n if(item.getType() == BASEBALL_BAT.getType()) {\r\n if (unitMap.containsKey(FOOTBALL.getType())) return true;\r\n else return false;\r\n }\r\n if (item.getType() ==FOOTBALL.getType()){\r\n if (unitMap.containsKey(BASEBALL_BAT.getType())) return true;\r\n else return false;\r\n }\r\n return false;\r\n }",
"protected void customizeAdvanceExplicitGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail postable, GeneralLedgerPendingEntry explicitEntry) {\n final String paymentDocumentType = StringUtils.isBlank(getTravelAdvancePaymentDocumentType()) ? TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CHECK_ACH_DOCUMENT : getTravelAdvancePaymentDocumentType();\n explicitEntry.setFinancialDocumentTypeCode(paymentDocumentType);\n final String description = MessageFormat.format(getConfigurationService().getPropertyValueAsString(TemKeyConstants.TA_MESSAGE_ADVANCE_ACCOUNTING_LINES_GLPE_DESCRIPTION), getDataDictionaryService().getDocumentTypeNameByClass(getClass()), getDocumentNumber());\n final int maxLength = getDataDictionaryService().getAttributeMaxLength(GeneralLedgerPendingEntry.class, KFSPropertyConstants.TRANSACTION_LEDGER_ENTRY_DESC);\n explicitEntry.setTransactionLedgerEntryDescription(StringUtils.abbreviate(description, maxLength));\n explicitEntry.setOrganizationDocumentNumber(getTravelDocumentIdentifier());\n }",
"@Test\n public void binDebitTest() {\n assertFalse(authResponse.isBinDebit());\n }",
"@java.lang.Override\n public boolean hasDidcommInvitation() {\n return deliveryMethodCase_ == 3;\n }",
"public boolean isBinaryExpositionSelected();",
"public boolean isAllCap() throws PDFNetException {\n/* 605 */ return IsAllCap(this.a);\n/* */ }",
"public boolean isContinuingEducationPassed(CapIDModel capID) throws AAException, RemoteException;",
"public abstract boolean isConfirmed();",
"private boolean getCashStatus(String type) {\n boolean flag = false;\n if (type.equalsIgnoreCase(PdfConstants.PROMO_CREDIT) || type.equalsIgnoreCase(PdfConstants.BLACKHAWK)\n || type.equalsIgnoreCase(PdfConstants.PRECASH) || type.equalsIgnoreCase(PdfConstants.INCOMM)) {\n flag = true;\n }\n return flag;\n }",
"public boolean isEuropeanTrade(GoodsType type) {\n return transportable instanceof AIGoods\n && ((AIGoods)transportable).getGoodsType() == type\n && getCarrierTarget() instanceof Europe;\n }",
"public boolean equals(Object obj)\n {\n return (obj instanceof EASInBandExceptionDescriptor) ? equals((EASInBandExceptionDescriptor) obj) : false;\n }",
"boolean isMBIntra()\n {\n return ((mbType & INTRA) != 0);\n }",
"boolean hasB25();",
"public boolean approveCheckIn(SoftwareEngineer e){\n int i;\n\n for(i=0;i<this.curHeadCount;i++){\n if(employee[i].equals(e)) break;\n }\n\n return (i<this.curHeadCount && e.access);\n }",
"public boolean hasAlternations() {\n boolean b = false;\n POSLineItemDetail[] lineDetails = compositePOSTransaction.getLineItemDetailsArray();\n if (lineDetails == null || lineDetails.length == 0) {\n return false;\n }\n for (int i = 0; i < lineDetails.length; i++) {\n if (lineDetails[i] instanceof CMSSaleLineItemDetail) {\n CMSSaleLineItemDetail saleDetail = (CMSSaleLineItemDetail)lineDetails[i];\n AlterationLineItemDetail[] alternationsArray = saleDetail.getAlterationLineItemDetailArray();\n if (alternationsArray != null && alternationsArray.length > 0) {\n return true;\n }\n }\n }\n return b;\n }",
"boolean hasBasisValue();",
"boolean isDisplayMessageOnRedeem();",
"public boolean hasDebitKeyCode() {\n return genClient.cacheHasKey(CacheKey.debitKeyCode);\n }",
"boolean hasContKey();",
"boolean isSetCapitalPayed();",
"boolean hasBadge();",
"public int checkEND(BattleEvent be, int amount, boolean burnStun);"
]
| [
"0.67546785",
"0.5796372",
"0.53471255",
"0.5335143",
"0.52424896",
"0.5219965",
"0.520439",
"0.51787823",
"0.5173039",
"0.51594144",
"0.5130951",
"0.51185787",
"0.51031643",
"0.50805146",
"0.50294614",
"0.5014363",
"0.5002975",
"0.49884182",
"0.49646997",
"0.49625367",
"0.4956449",
"0.49445304",
"0.49362686",
"0.48996234",
"0.48849866",
"0.48762032",
"0.48575443",
"0.48523316",
"0.48517892",
"0.48327234",
"0.48122808",
"0.48069164",
"0.4790652",
"0.47794273",
"0.47762546",
"0.47690764",
"0.4768448",
"0.47674358",
"0.47628385",
"0.47478023",
"0.47297913",
"0.47284916",
"0.47150105",
"0.47109166",
"0.47038823",
"0.46908972",
"0.46888953",
"0.4688724",
"0.46869707",
"0.4686718",
"0.46743032",
"0.46712607",
"0.4669629",
"0.4663908",
"0.46603262",
"0.46516725",
"0.4651194",
"0.46498528",
"0.46342745",
"0.46305823",
"0.4628093",
"0.4625725",
"0.46188688",
"0.4615821",
"0.4609839",
"0.4599031",
"0.4597714",
"0.45928296",
"0.4592685",
"0.4577746",
"0.45749086",
"0.45628136",
"0.4562783",
"0.45626238",
"0.45532373",
"0.45492998",
"0.45486274",
"0.4547385",
"0.4542231",
"0.45390677",
"0.4538759",
"0.45383805",
"0.45342982",
"0.45336232",
"0.45327604",
"0.45313781",
"0.45210093",
"0.45208865",
"0.4513078",
"0.4510743",
"0.45089826",
"0.4503523",
"0.45032835",
"0.44976056",
"0.449222",
"0.4484442",
"0.4476521",
"0.44741935",
"0.4471576",
"0.4467051"
]
| 0.7824591 | 0 |
Determines if the given pending entry represents an advance | protected boolean isAdvancePendingEntry(GeneralLedgerPendingEntry glpe) {
return StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CHECK_ACH_DOCUMENT) ||
StringUtils.equals(glpe.getFinancialDocumentTypeCode(),TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_WIRE_OR_FOREIGN_DRAFT_DOCUMENT);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean processAdvance() throws BattleEventException {\n \n \n return true;\n }",
"@Override\n\tpublic boolean isAdvanceable() {\n\t\treturn false;\n\t}",
"protected boolean isEncumbrancePendingEntry(GeneralLedgerPendingEntry glpe) {\n return StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT) ||\n StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_AMEND_DOCUMENT) ||\n StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CLOSE_DOCUMENT);\n }",
"protected boolean advance()\n/* */ {\n/* 66 */ while (++this.m_offset < this.m_array.length) {\n/* 67 */ if (this.m_array[this.m_offset] != null) {\n/* 68 */ return true;\n/* */ }\n/* */ }\n/* 71 */ return false;\n/* */ }",
"protected abstract boolean computeHasNext();",
"public boolean isReached();",
"public boolean advance_lookahead() {\r\n this.lookahead_pos++;\r\n if (this.lookahead_pos < error_sync_size()) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public boolean advance() {\n currentFrame ++;\n if(currentFrame >= frames.size()) {\n return false;\n }\n// LogU.d(\" advance 222 \"+ currentFrame);\n return true;\n }",
"public boolean processAdvance() {\n if ( AttackTreeModel.DEBUG > 0 ) System.out.println(\"Node \" + name + \" exited.\");\n \n return true;\n }",
"@Override\r\n public boolean isOffsetToCash(GeneralLedgerPendingEntry generalLedgerPendingEntry) {\r\n if (generalLedgerPendingEntry.isTransactionEntryOffsetIndicator()) {\r\n final Chart entryChart = chartService.getByPrimaryId(generalLedgerPendingEntry.getChartOfAccountsCode());\r\n if (!ObjectUtils.isNull(entryChart)) {\r\n return (entryChart.getFinancialCashObjectCode().equals(generalLedgerPendingEntry.getFinancialObjectCode()));\r\n }\r\n }\r\n return false;\r\n }",
"public boolean isDone(){\n\t\tif(generated)\n\t\t\treturn curr >= deck.size();\n\t\treturn true;\n\t}",
"public boolean getContinueFlag()\r\n {\r\n if (curTurn > 1) return false;\r\n return true;\r\n }",
"public boolean next() {\n return actualBit < size;\n }",
"public abstract boolean nextOrFinishPressed();",
"public boolean isNextTransitionForward() {\n int transit = this.mAppTransition.getAppTransition();\n return transit == 6 || transit == 8 || transit == 10;\n }",
"public boolean hasNextEvent() {\n \treturn next != null;\n }",
"public boolean getHasNext() {\n\t\t\treturn !endsWithIgnoreCase(getCursor(), STARTEND);\n\t\t}",
"private boolean checkNext(){\n boolean ret = this.hasNext;\n if ((this.allStatesIterator.hasNext()) || (this.allSubsetsIterator.hasNext()) || (this.allTransitionsIterator.hasNext())){\n hasNext = true;\n return hasNext;\n }\n hasNext = false;\n return ret;\n }",
"boolean isImmediate();",
"public void advance() {\n\t\tif(isFinalFrame(current)) {\n\t\t\tthrow new IllegalStateException(\"Invalid Entry\"); // input sanitization if last frame (cant advance further )\n\t\t\t\n\t\t}\n\t\tif (!current.movesFinished()) { // input sanitization -- cant advance if the user hasnt exercised all the frames moves\n\t\t\tthrow new IllegalStateException(\"Invalid Entry\");\n\t\t}\n\t\telse current = frames.get(frames.indexOf(current) + 1); // else updates the current frame to frame at next index. \n\t}",
"boolean hasExchangeTime();",
"protected boolean shouldHoldAdvance() {\n if (shouldProcessAdvanceForDocument() && getTravelAdvance().getDueDate() != null) {\n return getTravelEncumbranceService().shouldHoldEntries(getTravelAdvance().getDueDate());\n }\n return false;\n }",
"public boolean advanceStep() {\n\t\t// TODO: Implement\n\t\t/*System.out.println(\"Before:\");\n\t\tfor(int i=0; i < getSlotCount(); i++)\n\t\t{\n\t\t\tif(inFlightBeans.get(i)==null)\n\t\t\t\tSystem.out.println(i+\"=null\");\n\t\t\telse\n\t\t\t\tSystem.out.println(i+\" not null:\" + inFlightBeans.get(i).getXPos());\n\t\t}*/\n\t\t\n\t\tboolean anyStatusChange=false;\n\t\tBean prev=null; \n\t\tBean bean=inFlightBeans.get(0);\n\t\t\n\t\tfor(int i=0; i < getSlotCount(); i++)\n\t\t{\n\t\t\tif(i < getSlotCount()-1)\n\t\t\t{\n\t\t\t\t//System.out.println(\"i < count-2\");\n\t\t\t\tprev = bean;\n\t\t\t\tbean = inFlightBeans.get(i+1);\n\t\t\t\tif(prev!=null) prev.choose();\n\t\t\t\tinFlightBeans.set(i+1, prev);\t\t\n\t\t\t\tanyStatusChange = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//System.out.println(\"i else: \" + i);\n\t\t\t\tif(bean != null) {\n\t\t\t\t\tthis.slotBean.get(bean.getXPos()).add(bean);\n\t\t\t\t\tanyStatusChange= true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\t\t\t\n\t\t}\n\t\tinsertBean();\n\t\tif(inFlightBeans.get(0) != null) inFlightBeans.get(0).reset();\n\t\t//System.out.println(\"After:\");\n\t\t/*for(int i=0; i < getSlotCount(); i++)\n\t\t{\n\t\t\tif(inFlightBeans.get(i)==null)\n\t\t\t\tSystem.out.println(i+\"=null\");\n\t\t\telse\n\t\t\t\tSystem.out.println(i+\" not null:\" + inFlightBeans.get(i).getXPos());\n\t\t}*/\n\t\treturn anyStatusChange;\n\n\t}",
"boolean isGoalReached(ExerciseSessionData data);",
"public boolean isNextClockChangeCalled();",
"private boolean factor() {\r\n return MARK(ATOM) && atom() && postops();\r\n }",
"public abstract boolean isNextVisited();",
"boolean hasOffset();",
"public boolean isRepeatRewind()\n\t{\n\t\treturn isRepeat();\n\t}",
"boolean hasPerformAt();",
"private boolean checkMoveNext(PositionTracker tracker) {\n\t\t \n\t\t GeneralUtility generalTool = new GeneralUtility();\n\t\t \n\t\t if((tracker.getExactRow() + 1) == tracker.getMaxRows()) { //initiate if statement\n\t\t\t if((tracker.getExactColumn() + 1) == tracker.getMaxColumns()) //initiate if statement\n\t\t\t\t generalTool.beatGame();\n\t\t }\n\t\t \n\t\t return true; //returns the value true\t\n\t }",
"boolean playerHasAdvancement(String namespacedKey) {\n Advancement adv = null;\n for (Iterator<Advancement> iter = Bukkit.getServer().advancementIterator(); iter.hasNext(); ) {\n Advancement serverAdv = iter.next();\n if (serverAdv.getKey().getKey().equals(namespacedKey)) {\n adv = serverAdv;\n break;\n }\n }\n AdvancementProgress advProgress = player.getAdvancementProgress(adv);\n\n return advProgress.isDone();\n }",
"public boolean advance(int tickID) {\n if (tickID == ltid) {\n return false;\n }\n \n Cell at = park.graph.getCell(intendedPath.get(index));\n \n int nextIndex = index + 1;\n if (nextIndex >= intendedPath.size()) {\n at.setPerson(null); /* exit the park */\n return true;\n }\n\n Cell tryGo = park.graph.getCell(intendedPath.get(nextIndex));\n if (tryGo.getPerson() != null) {\n return false;\n } else {\n tryGo.setPerson(this);\n at.setPerson(null);\n this.index = nextIndex;\n return true;\n }\n }",
"public static boolean isReconciliationPausedWithAnnotation(ObjectMeta metadata) {\n return Annotations.booleanAnnotation(metadata, ANNO_STRIMZI_IO_PAUSE_RECONCILIATION, false);\n }",
"boolean hasEndingHadithNo();",
"boolean nextItem();",
"public boolean advance(final String name) {\r\n\t\tadvanceObjectsCollection();\r\n\t\treturn advanceObjects(name);\r\n\t}",
"public boolean hasNextAction(){\n return bufferIndex < listAction.size;\n }",
"public static boolean lastCheckpointReached(Order order) {\n\t\treturn (order.getCheckpoint3()!=null && order.getCheckpoint3().exists()) ? order.isReachedCheckpoint3() :\n\t\t\t(order.getCheckpoint2()!=null && order.getCheckpoint2().exists()) ? order.isReachedCheckpoint2() :\n\t\t\t(order.getCheckpoint1()!=null && order.getCheckpoint1().exists()) ? order.isReachedCheckpoint1() : true;\n\t}",
"public boolean isEarned(GeyserAdvancement advancement) {\n boolean earned = false;\n if (advancement.getRequirements().size() == 0) {\n // Minecraft handles this case, so we better as well\n return false;\n }\n Map<String, Long> progress = storedAdvancementProgress.get(advancement.getId());\n if (progress != null) {\n // Each advancement's requirement must be fulfilled\n // For example, [[zombie, blaze, skeleton]] means that one of those three categories must be achieved\n // But [[zombie], [blaze], [skeleton]] means that all three requirements must be completed\n for (List<String> requirements : advancement.getRequirements()) {\n boolean requirementsDone = false;\n for (String requirement : requirements) {\n Long obtained = progress.get(requirement);\n // -1 means that this particular component required for completing the advancement\n // has yet to be fulfilled\n if (obtained != null && !obtained.equals(-1L)) {\n requirementsDone = true;\n break;\n }\n }\n if (!requirementsDone) {\n return false;\n }\n }\n earned = true;\n }\n return earned;\n }",
"@Override\r\n public boolean hasNext() {\r\n // variable auxiliar t y s para simplificar accesos...\r\n Entry<K, V> t[] = TSB_OAHashtable.this.table;\r\n int s[] = TSB_OAHashtable.this.states;\r\n\r\n if(current_entry >= t.length) { return false; }\r\n\r\n // busco el siguiente indice cerrado\r\n int next_entry = current_entry + 1;\r\n for (int i = next_entry ; i < t.length; i++) {\r\n if (s[i] == 1) return true;\r\n }\r\n\r\n // Si no encontro ninguno retorno false\r\n return false;\r\n }",
"@Override\r\n public boolean hasNext() {\r\n // variable auxiliar t y s para simplificar accesos...\r\n Entry<K, V> t[] = TSB_OAHashtable.this.table;\r\n int s[] = TSB_OAHashtable.this.states;\r\n\r\n if(current_entry >= t.length) { return false; }\r\n\r\n // busco el siguiente indice cerrado\r\n int next_entry = current_entry + 1;\r\n for (int i = next_entry ; i < t.length; i++) {\r\n if (s[i] == 1) return true;\r\n }\r\n\r\n // Si no encontro ninguno retorno false\r\n return false;\r\n }",
"@Override\r\n public boolean hasNext() {\r\n // variable auxiliar t y s para simplificar accesos...\r\n Entry<K, V> t[] = TSB_OAHashtable.this.table;\r\n int s[] = TSB_OAHashtable.this.states;\r\n\r\n if(current_entry >= t.length) { return false; }\r\n\r\n // busco el siguiente indice cerrado\r\n int next_entry = current_entry + 1;\r\n for (int i = next_entry ; i < t.length; i++) {\r\n if (s[i] == 1) return true;\r\n }\r\n\r\n // Si no encontro ninguno retorno false\r\n return false;\r\n }",
"public abstract boolean isRetained(Coordinate c);",
"public boolean customizeAdvanceOffsetGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySourceDetail accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry) {\n final String paymentDocumentType = StringUtils.isBlank(getTravelAdvancePaymentDocumentType()) ? TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CHECK_ACH_DOCUMENT : getTravelAdvancePaymentDocumentType();\n offsetEntry.setFinancialDocumentTypeCode(paymentDocumentType);\n offsetEntry.setOrganizationDocumentNumber(getTravelDocumentIdentifier());\n return true;\n }",
"public boolean isNextRedoEditPageAction() {\n/* 960 */ if (!this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* 961 */ return false;\n/* */ }\n/* */ \n/* 964 */ String info = null;\n/* */ try {\n/* 966 */ info = this.mPdfViewCtrl.getNextRedoInfo();\n/* 967 */ if (sDebug)\n/* 968 */ Log.d(TAG, \"next redo: \" + info); \n/* 969 */ return isEditPageAction(this.mContext, info);\n/* 970 */ } catch (Exception e) {\n/* 971 */ if (info == null || !info.equals(\"state not found\")) {\n/* 972 */ AnalyticsHandlerAdapter.getInstance().sendException(e, \"next redo info: \" + ((info == null) ? \"null\" : info));\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 977 */ return false;\n/* */ } \n/* */ }",
"public boolean possibleNextInput() {\n return _index < _input.length();\n }",
"protected final boolean computeHasNext() {\n return this.getEnds().getGraph().getSuccessorEdges(this.getNext()).isEmpty();\n }",
"boolean isCalledNext();",
"boolean isIncomplete();",
"private boolean amIleader() {\n \t\treturn vs.getRank(myEndpt) == 0;\n \t}",
"@Override\n public boolean tryAdvance(Consumer<? super SampleDescriptor> action) {\n boolean retVal;\n if (pos < samples.size()) {\n // Here we have another sample to process.\n retVal = true;\n action.accept(samples.get(pos));\n pos++;\n } else {\n // Denote we are at the end.\n retVal = false;\n }\n return retVal;\n }",
"private boolean nextWorkorder() {\n\t\treturn Console.readString(\" Any other workorder? (y/n) \").equalsIgnoreCase(\"y\");\n\t}",
"private boolean _seqHasNext() {\n // If the ISPSeqComponent's builder has a next configuration, then the\n // observation has a next sequence too.\n if (_seqBuilder == null)\n return false;\n\n // Does the current seq builder have next\n if (_seqBuilder.hasNext())\n return true;\n\n // The current seq builder has no more are there more seqbuilders?\n _seqBuilder = _getTopLevelBuilder(_seqBuilderIndex + 1);\n if (_seqBuilder == null)\n return false;\n _seqBuilderIndex++;\n\n // Now reset the new seq builder run\n _doReset(_options);\n\n // Now that it has been moved, try again\n return _seqHasNext();\n }",
"public boolean isComplete()\n\t{\n\t\treturn getStep() == getRepeatCount() * 2 + 1;\n\t}",
"boolean isOffset();",
"boolean isOffset();",
"@Test\n @DisplayName(\"After one player makes one move, verify conditions for next player toggle\")\n void doesPlayerContinue() {\n Player player = playerService.getP1();\n Pit pit = boardService.getPitByID(0);\n Move move = new Move(player, pit);\n boardService.updateBoardForMove(move);\n Assert.assertTrue(boardService.doesPlayerContinue());\n\n // For the next move, if player 1 moves from pit 1, player will not continue\n pit = boardService.getPitByID(1);\n move = new Move(player, pit);\n boardService.updateBoardForMove(move);\n Assert.assertFalse(boardService.doesPlayerContinue());\n }",
"public boolean verifyMentorRequestContinue(){\n\t\treturn mentorConnectRequestObjects.almostDoneText.isDisplayed();\n\t}",
"public static boolean nextActivityPossible(int activityID, Map<Integer, ActivityPredictionEdge> followerPredictionEdgeMap) {\n boolean possible = false;\n Set<Integer> possibleSuccessors = getPossibleSuccessors(followerPredictionEdgeMap);\n if (possibleSuccessors.contains(activityID)) {\n possible = true;\n } else {\n possible = false;\n }\n return possible;\n }",
"public boolean isCompleted()\n\t{\n\t\treturn pieces.length == existing.cardinality();\n\t}",
"public boolean inDelaySlot() {\r\n\t\treturn !empty() && backSteps.peek().inDelaySlot;\r\n\t}",
"@Override\n public boolean isDebit(GeneralLedgerPendingEntrySourceDetail postable) {\n if (postable instanceof AccountingLine && TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE.equals(((AccountingLine)postable).getFinancialDocumentLineTypeCode())) {\n return true; // we're an advance accounting line? then we're debiting...\n }\n return false; // we're not an advance accounting line? then we should return false...\n }",
"private boolean checkCurrentIterator(Iterator<Integer> iter) {\n return iter != null;\n }",
"public boolean isLegalMove() {\n return iterator().hasNext();\n }",
"public boolean hasNext() {\n\t\treturn this.onAction.hasNext() || this.offAction.hasNext();\t\t\n\t}",
"@Override\n public boolean anotherPlayIsPossible()\n {\n \t\n List<Integer> test = cardIndexes();\n return containsSum13(test) || containsK(test);\n \n }",
"private boolean reachedEndOfReplay(String lastQuestionRefReplayed) {\n return lastQuestionRefReplayed.equals(formEntrySession.getStopRef());\n }",
"public boolean isIncomplete()\n {\n\treturn toDo.size() > 0;\n }",
"public boolean hasNext() {\r\n\t\t\trequireModificationCountUnchanged();\r\n\r\n\t\t\treturn nextEntry != null;\r\n\t\t}",
"public boolean encountered(){\n boolean encounter = false;\n\n int stepsNeeded = player.getDestination().getStepsNeeded();\n\n float percent = (chance * 1.0f / stepsNeeded * 1.0f) * 100;\n float result = r.nextFloat() * 100;\n\n if(result <= percent && percent >= 20) {\n encounter = true;\n }\n\n return encounter;\n }",
"public boolean isNextUndoEditPageAction() {\n/* 934 */ if (!this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* 935 */ return false;\n/* */ }\n/* */ \n/* 938 */ String info = null;\n/* */ try {\n/* 940 */ info = this.mPdfViewCtrl.getNextUndoInfo();\n/* 941 */ if (sDebug)\n/* 942 */ Log.d(TAG, \"next undo: \" + info); \n/* 943 */ return isEditPageAction(this.mContext, info);\n/* 944 */ } catch (Exception e) {\n/* 945 */ if (info == null || !info.equals(\"state not found\")) {\n/* 946 */ AnalyticsHandlerAdapter.getInstance().sendException(e, \"next undo info: \" + ((info == null) ? \"null\" : info));\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 951 */ return false;\n/* */ } \n/* */ }",
"public boolean hasInstInQueue() {\n\t\treturn CurrentInstTomasulo <= lstInstructionsTomasulo.size();\n\t}",
"@Override\r\n protected boolean isGoal(Point node) {\r\n return (node.equals(finish));\r\n }",
"public boolean hasNext()\n/* */ {\n/* 82 */ return this.m_offset < this.m_array.length;\n/* */ }",
"private boolean isNextMoveRochade(Move move)\r\n\t{\r\n\t\tif (!(move.from.piece instanceof King)) return false;\r\n\t\tint xDiffAbs = Math.abs(move.to.coordinate.x - move.from.coordinate.x); \r\n\t\treturn xDiffAbs == 2;\r\n\t}",
"private boolean isAnExaminedPosition() {\n\t\treturn this\n\t\t\t\t.getFindedThreats()\n\t\t\t\t.stream()\n\t\t\t\t.anyMatch(\n\t\t\t\t\t\tthreat -> threat.getPosition().equals(\n\t\t\t\t\t\t\t\tthis.getCurrentPosition().getCoordinate()));\n\t}",
"@Override\n\tpublic boolean canMoveToNext() {\n\t\treturn true;\n\t}",
"public boolean adjacent(Actor predator, Actor prey, GameMap gameMap) {\n Location currentLocation = gameMap.locationOf(predator);\n\n for (Exit exit: currentLocation.getExits()) {\n if (gameMap.getActorAt(exit.getDestination()) == prey) {\n return true;\n }\n }\n\n return false;\n }",
"private boolean validate(K key,\n\t\t\tDictionaryEntry<K,V> pre,\n\t\t\tDictionaryEntry<K,V> cur) {\n\t\treturn (!pre.isMarked()\n\t\t\t\t&& (cur == pre.getNext())\n\t\t\t\t&& (cur.isSentinel()\n\t\t\t\t\t\t|| (key.compareTo(cur.getKey()) <= 0))\n\t\t\t\t);\n\t}",
"void goToNext(boolean isCorrect);",
"default boolean isNext(int vidxa, int vidxb) {\n return findIndexOfNext(vidxa, vidxb) != -1;\n }",
"public static boolean bankerRequest(Instruction currInstruction){\n Task currTask = taskList.get(currInstruction.taskNumber - 1);\n int resourceType = currInstruction.resourceType;\n int amountRequested = currInstruction.resourceAmount;\n if(currTask.claimsArr[resourceType - 1] < currTask.resourceHoldings[resourceType - 1] + amountRequested ){\n System.out.println(\"During Cycle \" + time + \"-\" + (time + 1) + \" of Banker's algorithm, Task \" + currTask.taskNumber + \" request exceeds its claim; aborted \");\n for(int j = 0 ; j < currTask.resourceHoldings.length; j ++){\n System.out.println(currTask.resourceHoldings[j] + \" units of resource \" + (j+ 1) +\" available next cycle\");\n }\n currTask.isAborted = true;\n terminatedCount ++;\n releaseAll(currTask);\n return false;\n }\n\n if(resourceArr[resourceType - 1] >= amountRequested){\n currTask.resourceHoldings[resourceType - 1] += amountRequested;\n resourceArr[resourceType - 1] -= amountRequested;\n\n if(isSafe(currTask)){\n return true;\n }else{\n currTask.resourceHoldings[resourceType - 1] -= amountRequested;\n resourceArr[resourceType - 1] += amountRequested;\n\n if(!waitingList.contains(currInstruction)){\n currInstruction.arrivalTime = time;\n waitingList.add(currInstruction);\n }\n currTask.waitingCount += 1;\n\n return false;\n }\n }else{\n\n if(!waitingList.contains(currInstruction)){\n currInstruction.arrivalTime = time;\n waitingList.add(currInstruction);\n }\n currTask.waitingCount += 1;\n }\n return false;\n }",
"public boolean checkForAce() {\n\t\thandIterator = new HandIterator(hand.getCards());\n\t\twhile (handIterator.hasNext()) {\n\t\t\tCard card = (Card) handIterator.next();\n\t\t\tif (card.getCardName().equals(\"A\"))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public static boolean request(Instruction currInstruction){\n Task currTask = taskList.get(currInstruction.taskNumber - 1);\n int resourceType = currInstruction.resourceType;\n int amountRequested = currInstruction.resourceAmount;\n if(resourceArr[resourceType - 1] >= amountRequested){\n currTask.resourceHoldings[resourceType - 1] += amountRequested;\n resourceArr[resourceType - 1] -= amountRequested;\n return true;\n }else{\n if(!waitingList.contains(currInstruction)){\n currInstruction.arrivalTime = time;\n waitingList.add(currInstruction);\n }\n currTask.waitingCount += 1;\n }\n return false;\n }",
"@Override\n public boolean tryAdvance(LongConsumer action){\n Objects.requireNonNull(action);\n if(count==-2){\n action.accept(first);\n count=-1;\n return true;\n }else{\n return false;\n }\n }",
"public boolean checkToProceed(){\n return getGame().getCurrentPlayer().getRemainingActions() > 0;\n }",
"boolean advanceExact(int docId) throws IOException;",
"private boolean peek(int index, TokenType expectedType) {\n return peekType(index) == expectedType;\n }",
"public boolean isItaDraw(){\n\t\tboolean flag=false;\n\t\tfor(int row=0;row<9;row++){\n\t\t\tfor(int column=0;column<25;column++){\n\t\t\t\tif(Board[row][column] == 'O'){\n\t\t\t\t\tflag=false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tflag=true;\n\t\t\t}\n\t\t\tif(flag==false)\n\t\t\t\tbreak;\n\t\t}\n\t\tif (flag == true)\n\t\t\tSystem.out.println(\"It's a draw\");\n\t\treturn flag;\n\t}",
"public boolean isEnumerated() {\r\n return enumerated;\r\n }",
"public boolean hasNext() {\r\n if (current + 1 >= elem.length) {\r\n current = 0;\r\n }\r\n return elem[current + 1] != null;\r\n }",
"public abstract boolean isNextBlocked();",
"protected boolean isTraversalAvailable(int key, char c) {\r\n return true;\r\n }",
"public synchronized boolean hasNext() {\n\t\treturn peek(1) != CharacterIterator.DONE;\n\t}",
"@Override\n public boolean hasNext() {\n // Made into a `while` loop to fix issue reported by @Nim\n // In a while loop because we may find an entry with 'null' in it and we don't want that.\n while (next == null && stop > 0) {\n // Scan to the next non-free node.\n while (stop > 0 && it.free.get() == true) {\n it = it.next;\n // Step down 1.\n stop -= 1;\n }\n if (stop > 0) {\n next = it.element;\n }\n }\n return next != null;\n }",
"public boolean hasNext() {\n\t\treturn actual!=null;\t\t\n\t}",
"@Override\r\n\tpublic int isMoveNextTo18Plus()\r\n\t{\r\n\t\treturn 1;\r\n\t}",
"boolean hasPrevious();",
"boolean hasPrevious();"
]
| [
"0.61026514",
"0.5673256",
"0.5652542",
"0.56516176",
"0.56047076",
"0.55450326",
"0.55271095",
"0.54643834",
"0.544849",
"0.53886104",
"0.53705835",
"0.5350862",
"0.5294646",
"0.528633",
"0.52796763",
"0.52538824",
"0.5209881",
"0.51893",
"0.5184434",
"0.5175187",
"0.51713395",
"0.51712954",
"0.5157375",
"0.5135717",
"0.51262826",
"0.5126193",
"0.5107371",
"0.51047206",
"0.5099686",
"0.50989294",
"0.5098121",
"0.50952536",
"0.50879186",
"0.5073112",
"0.5070298",
"0.50659114",
"0.50651747",
"0.5062186",
"0.5056175",
"0.5054955",
"0.5035648",
"0.5035648",
"0.5035648",
"0.50292325",
"0.5026984",
"0.50268173",
"0.502563",
"0.5022004",
"0.50205684",
"0.501584",
"0.5008831",
"0.50078195",
"0.5007758",
"0.50018674",
"0.49829227",
"0.49796453",
"0.49796453",
"0.49746197",
"0.49717772",
"0.4968274",
"0.49645773",
"0.4961214",
"0.495612",
"0.49521124",
"0.4948737",
"0.49461657",
"0.49379644",
"0.49335337",
"0.49329022",
"0.4931954",
"0.49284253",
"0.49191833",
"0.4913521",
"0.4912656",
"0.48902667",
"0.48875225",
"0.4885728",
"0.48846328",
"0.48800984",
"0.48777193",
"0.48776165",
"0.4872365",
"0.4869331",
"0.48638797",
"0.48559126",
"0.48557875",
"0.4854456",
"0.48482725",
"0.48463097",
"0.48456714",
"0.4838996",
"0.48364097",
"0.4835545",
"0.48348868",
"0.4830522",
"0.4830056",
"0.48297924",
"0.48268205",
"0.48267296",
"0.48267296"
]
| 0.6827285 | 0 |
Sets the doc status for previous authorizations to "Retired" | protected void retirePreviousAuthorizations() {
List<Document> relatedDocs = getTravelDocumentService().getDocumentsRelatedTo(this, TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT,
TravelDocTypes.TRAVEL_AUTHORIZATION_AMEND_DOCUMENT);
//updating the related's document appDocStatus to be retired
final DocumentAttributeIndexingQueue documentAttributeIndexingQueue = KewApiServiceLocator.getDocumentAttributeIndexingQueue();
try {
for (Document document : relatedDocs){
if (!document.getDocumentNumber().equals(this.getDocumentNumber())) {
((TravelAuthorizationDocument) document).updateAndSaveAppDocStatus(TravelAuthorizationStatusCodeKeys.RETIRED_VERSION);
documentAttributeIndexingQueue.indexDocument(document.getDocumentNumber());
}
}
}
catch (WorkflowException we) {
throw new RuntimeException("Workflow document exception while updating related documents", we);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDocStatus (String DocStatus);",
"public void setDocStatus (String DocStatus);",
"public void setDocStatus (String DocStatus);",
"public void setRelDocStatus(int v) \n {\n \n if (this.relDocStatus != v)\n {\n this.relDocStatus = v;\n setModified(true);\n }\n \n \n }",
"public void retireLead()\r\n\t{\r\n\t\tisleader = false;\r\n\t}",
"public int setInactiveForNoRebill();",
"public void toReturn(Document doc){\n documents.remove(doc);\n doc.setCopies(doc.copiesNumber() + 1);\n //TODO check data and fee\n //TODO rewrite list of documents\n }",
"public void reset() \n throws SignedDocException;",
"public void setPrevYear()\n\t{\n\t\tm_calendar.set(Calendar.YEAR,getYear()-1);\n\n\t}",
"void resetExcStatuses()\n\t\t{\n\t\t}",
"@Override\n\tpublic void setStatus(int status) {\n\t\t_scienceApp.setStatus(status);\n\t}",
"protected boolean isDocStatusCodeInitiated(Document document) {\n CustomerInvoiceWriteoffDocument writeoffDoc = (CustomerInvoiceWriteoffDocument) document;\n return (StringUtils.equals(writeoffDoc.getStatusCode(), ArConstants.CustomerInvoiceWriteoffStatuses.INITIATE));\n }",
"public void markRefreshed() {\n tozAdCampaignRetrievalCounter = 0;\n }",
"@Override\r\n\tpublic int reset() throws NotesApiException {\n\t\treturn 0;\r\n\t}",
"protected void onCancelRequestReceipts() {\n \tmTxtStatus.setText(\"requestReceipts onCancel\");\n }",
"@Override\n\tpublic void setStatus(int status) {\n\t\t_dictData.setStatus(status);\n\t}",
"void markForSecOp(Doctor from) throws InvalidDoctorException {\n\t\tif (!canHaveAsDoctor(from))\n\t\t\tthrow new InvalidDoctorException(\"Invalid Doctor given to request for second opinion!\");\n\t\tthis.secOpFlag = true;\n\t\tthis.approved = false;\n\t\tthis.secopDoc = from;\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public void checkout(Document doc){\n if (this.documents.contains(doc)){\n System.out.println(\"user \" + this.name + \" already have this document\");\n return;\n }\n if (doc.copiesNumber() > 0) {\n //System.out.println(\"patron \" + this.name + \" checked \" + doc.getTitle());\n if (doc.getKeys().contains(\"reference\")){\n System.out.println(\"Impossible to checkout. The document \" + doc.getTitle() + \" is reference book\");\n return;\n }\n documents.add(doc);\n doc.setCopies(doc.copiesNumber() - 1);\n if (!doc.getClass().toString().equals(\"class Documents.Book\")){\n doc.daysRemained = 14;\n }\n else if (this.type.equals(\"faculty\")){\n doc.daysRemained = 28;\n } else{\n Book b = (Book) doc;\n if (b.isBestSeller()){\n doc.daysRemained = 14;\n }\n else {\n doc.daysRemained = 21;\n }\n }\n System.out.println(\"The book \\\"\" + doc.getTitle() + \"\\\" are checked out by \" + name);\n }\n\n else{\n System.out.println(\"No available documents for \" + name);\n }\n\n //TODO: rewrite list of documents\n }",
"private void unmarkForSecOp() {\n\t\tthis.secOpFlag = false;\n\t\tthis.secopDoc = null;\n\t}",
"public void setRevokeDate(String revokeDate) {\r\n this.revokeDate = revokeDate;\r\n\r\n }",
"public void markAsUpToDate() {\n\t\tlog.debug(\"No chain to catch up.\");\n\t\tupToDate = true;\n\t}",
"public void setStateToExpired() {\n state = VALID_STATES[1];\n }",
"public void setRenovated(int value) {\n this.renovated = value;\n }",
"@Override\n\tpublic boolean renew() {\n\t\treturn false;\n\t}",
"public void approve() {\r\n\t\tif (readDocument != null) {\r\n\t\t\tif (incorrectWords.size() > 0) {\r\n\t\t\t\tScanner sc = new Scanner(System.in);\r\n\t\t\t\tObject[] incorrectWordsArray = incorrectWords.toArray();\r\n\t\t\t\tfor (int i = 0; i < incorrectWordsArray.length; i++) {\r\n\t\t\t\t\tSystem.out.print(\"Would you like to add '\" + incorrectWordsArray[i] + \"' to the dictionary? (Y/N): \");\r\n\t\t\t\t\tString response = sc.next();\r\n\t\t\t\t\tif (response.equalsIgnoreCase(\"Y\")) {\r\n\t\t\t\t\t\tdictionary.add((String)incorrectWordsArray[i]);\r\n\t\t\t\t\t\tincorrectWords.remove((String)incorrectWordsArray[i]);\r\n\t\t\t\t\t\tSystem.out.println(\"Your changes were made to the dicitonary.\");\r\n\t\t\t\t\t\tmodified = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"There were no misspelled words.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"You have not read in a document to be spell checked. Please indicate file name\"\r\n\t\t\t\t\t+ \" before using this feature.\");\r\n\t\t}\r\n\t}",
"void setShowRevokedStatus(boolean b);",
"@Override\n public void setStatus(int sc) {\n this._getHttpServletResponse().setStatus(sc);\n }",
"public void setStatus(typekey.RateBookStatus value);",
"public void setStatus(TReturnStatus status) {\n\n\t\tthis.retStatus = status;\n\t}",
"void reinstate() {\n\t\tisSuspended = false;\n\t\tSystem.out.println(\"Reinstate account successfully.\");\n\t}",
"public void setRet(int ret) {\n\t\tthis.ret = ret;\n\t}",
"@Override\n\tpublic void setStatusDate(java.util.Date statusDate) {\n\t\t_scienceApp.setStatusDate(statusDate);\n\t}",
"public void setUpdatingTaskStatusUpdatesResourceStatus(boolean flag)\r\n {\r\n m_updatingTaskStatusUpdatesResourceStatus = flag;\r\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"public String getRevokeDate() {\r\n return revokeDate;\r\n }",
"public void markUnsold(){\n\n myMaxRejectCountCount--;\n }",
"public void setRenewalEffectiveDate(java.util.Date value);",
"public void setLastRenewedDate(Date lrd) { lastRenewedDate = lrd; }",
"protected boolean afterSave(boolean newRecord, boolean success) {\n /**\n * 26/07/2013 Maria Jesus Martin\n * Modificación realizada para que si la OP esta en borrador o en proceso se calculen nuevamente\n * las retenciones.\n */\n if (!Env.getContext(Env.getCtx(), \"OmitRetentionCalculation\").equals(\"Y\") \n && !this.isReceipt() \n && (super.isRetenciones()) \n && ( (DOCSTATUS_Drafted.equals(getDocStatus())) \n || (DOCSTATUS_InProgress.equals(getDocStatus()))\n )\n ) {\n System.out.println(\"Entrando a evaluar el calcular retenciones\");\n\n if (this.flagSave == false && this.retencion == true) {\n System.out.println(\"Entrando a calcular retenciones\");\n recalcularRetenciones();\n }\n }\n return true;\n\n }",
"public void setIssuedDate(Date v) \n {\n \n if (!ObjectUtils.equals(this.issuedDate, v))\n {\n this.issuedDate = v;\n setModified(true);\n }\n \n \n }",
"@Override\n public void onClick(View v) {\n\n Log.d(\"accepted\", \"confirm button clicked\");\n\n bookRef.get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\n if (task.isSuccessful()) {\n DocumentSnapshot document = task.getResult();\n if (document.exists()) {\n // set borrower status to 'borrowed'\n Map<String, String> status = (Map<String, String>) document.getData().get(\"status\");\n status.put(\"borrower\", null);\n\n bookRef.update(\"status\", status);\n\n finish();\n }\n }\n }\n });\n }",
"public final void cancelResv() {\n ApiUtil.getApi2().cancelCourseResv(this.reserveId).compose(RxUtil.applyIO()).subscribe(new MyResvDetailActivity$cancelResv$1(this, this));\n }",
"public void setStatus( boolean avtive ){\r\n\t\tthis.activ = avtive;\r\n\t}",
"@Override\n public void prepareForSave(KualiDocumentEvent event) {\n super.prepareForSave(event);\n if (!(this instanceof TravelAuthorizationCloseDocument)) {\n if (!ObjectUtils.isNull(getTravelAdvance())) {\n getTravelAdvance().setTravelDocumentIdentifier(getTravelDocumentIdentifier());\n final String checkStubPrefix = getConfigurationService().getPropertyValueAsString(TemKeyConstants.MESSAGE_TA_ADVANCE_PAYMENT_CHECK_TEXT_PREFIX);\n getAdvanceTravelPayment().setCheckStubText(checkStubPrefix+\" \"+getDocumentHeader().getDocumentDescription());\n getAdvanceTravelPayment().setDueDate(getTravelAdvance().getDueDate());\n getAdvanceTravelPayment().setDocumentNumber(getDocumentNumber()); // this should already be set but no harm in resetting...\n updatePayeeTypeForAuthorization();\n }\n }\n\n if(maskTravelDocumentIdentifierAndOrganizationDocNumber()) {\n this.getDocumentHeader().setOrganizationDocumentNumber(null);\n }\n }",
"public void remoteOfficeCancel() {\r\n\t\tif (isChanged) {\r\n\t\t\tlogTrace(this.getClass().getName(), \"remoteOfficeCancel()\", \"Going to cancel the currrent changes.\");\r\n\t\t\tloadStatus();\r\n\t\t\tisChanged = false;\r\n\t\t\tlogTrace(this.getClass().getName(), \"remoteOfficeCancel()\", \"Current changes are ignored\");\r\n\t\t}\r\n\r\n\t}",
"public void redo()\r\n {\r\n if (changes!=null)\r\n {\r\n if (changes.getNext()!=null)\r\n {\r\n ignoreChange=true;\r\n changes = changes.getNext();\r\n changes.getElement().redo(doc);\r\n \r\n }\r\n }\r\n }",
"public void setAccepted() {\r\n\t\tstatus = \"Accepted\";\r\n\t}",
"public void setRequested(){\n this.status = \"Requested\";\n }",
"public void setIsVoidPrevDocs (boolean IsVoidPrevDocs);",
"public final void setStatus(int sts) {\n\t\tm_status = sts;\n\t}",
"protected void aktualisieren() {\r\n\r\n\t}",
"public void settle() {\n\t\tif (status.equals(FacturaStatus.ABONADA)) {\n\t\t\tthrow new IllegalStateException(\"La factura ya está abonada.\");\n\t\t} else if (this.sumarCargos() != importe) {\n\t\t\tthrow new IllegalStateException(\"Los pagos hehcos no cubren el total del importe de la factura.\");\n\t\t} else {\n\t\t\tthis.status = FacturaStatus.ABONADA;\n\t\t}\n\t}",
"public void setStatus(Review review) {\n\t\tReview old=getById(review.getId());\n\t\told.setStatus(review.getStatus());\n\t\tsaveReview(old);\n\t}",
"public void action (int rsid, int id, LocalDateTime ld) {\n\t\tTR_Request tr = adao.getRequestById(id);\n\t\tRS rs = RS.valueOfStatusCode(rsid);\n\t\tadao.setApprovalStatus(rs, tr, ld);\n\t\tLogThis.LogIt(\"info\", \"Request \"+ id + \" was changed to status \" + rs.toString());\n\t\t\n\t}",
"private void setStatus() {\n\t\t// adjust the status of the rest\n\t\tif (rest.getState().equals(RestState.INACTIVE)) {\n\t\t\t// set status to heating\n\t\t\trest.setState(RestState.HEATING);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.HEATING) && temperatureSensor.getTemperature() >= (rest.getTemperature() - tolerance)) {\n\t\t\t// set status to active\n\t\t\trest.setState(RestState.ACTIVE);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.ACTIVE)\n\t\t\t\t&& (new GregorianCalendar().getTimeInMillis() - rest.getActive().getTimeInMillis()) / 1000 / 60 > rest.getDuration()) {\n\t\t\t// time is up :)\n\t\t\tif (rest.isContinueAutomatically()) {\n\t\t\t\trest.setState(RestState.COMPLETED);\n\t\t\t} else {\n\t\t\t\trest.setState(RestState.WAITING_COMPLETE);\n\t\t\t}\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t}\n\t}",
"@Override\n\tpublic void setStatus(int status);",
"public void setExpiredRenewalFlag(Character aExpiredRenewalFlag) {\n expiredRenewalFlag = aExpiredRenewalFlag;\n }",
"public synchronized void setComplete() {\n status = Status.COMPLETE;\n }",
"public static void expired(HttpServletResponse resp) {\n resp.setHeader(\"Cache-Control\", \"no-store, no-cache, max-age=0, must-revalidate\");\n // Set IE extended HTTP/1.1 no-cache headers (use addHeader).\n resp.addHeader(\"Cache-Control\", \"post-check=0, pre-check=0\");\n // Set standard HTTP/1.0 no-cache header.\n resp.setHeader(\"Pragma\", \"no-cache\");\n resp.setDateHeader(\"Expires\", 0L);\n }",
"private void repaired() { //active\n activate();\n this.damageState = DamageState.DAMAGED;\n this.setCurrentLife(this.maxLife / REPAIR_LIFE_FACTOR);\n }",
"@Override\n @Secured(SecurityRoles.ADMINISTRATOR)\n public void reindex() {\n revisionDao.deleteAll();\n // OK, launches a new indexation\n indexFromLatest();\n }",
"@Override\n\tpublic void updateStatus(DeliveryCake cake) {\n\t\tSystem.out.println(\"Cake Theme Decoration done\");\n cake.setCurrentState(OrderCompleted.order());\n\t\t\n\t}",
"public void approveAll() {\r\n\t\tif (readDocument != null) {\r\n\t\t\tif (incorrectWords.size() > 0) {\r\n\t\t\t\tScanner sc = new Scanner(System.in);\r\n\t\t\t\tObject[] incorrectWordsArray = incorrectWords.toArray();\r\n\t\t\t\tSystem.out.println(\"Would you like to add the following misspelled words to the dictionary?\");\r\n\t\t\t\tfor (int i = 0; i < incorrectWordsArray.length; i++) {\r\n\t\t\t\t\tSystem.out.println(incorrectWordsArray[i]);\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.print(\"(Y/N): \");\r\n\t\t\t\tString response = sc.next();\r\n\t\t\t\tif (response.equalsIgnoreCase(\"Y\")) {\r\n\t\t\t\t\tfor (int i = 0; i < incorrectWordsArray.length; i++) {\r\n\t\t\t\t\t\tdictionary.add((String)incorrectWordsArray[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tincorrectWords.clear();\r\n\t\t\t\t\tSystem.out.println(\"Your changes were made to the dictionary.\");\r\n\t\t\t\t\tmodified = true;\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"There were no misspelled words.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"You have not read in a document to be spell checked. Please indicate file name\"\r\n\t\t\t\t\t+ \" before using this feature.\");\r\n\t\t}\r\n\t}",
"public void setRetained(boolean retained) {\n this.retained = retained;\n }",
"private void concede() {\n this.claimStatus = new ClaimOrConcession(); // conceded claim\n }",
"public void resetNew() {\n setC_Payment_ID(0);\t\t//\tforces new Record\n set_ValueNoCheck(\"DocumentNo\", null);\n setDocAction(DOCACTION_Prepare);\n setDocStatus(DOCSTATUS_Drafted);\n setProcessed(false);\n setPosted(false);\n setIsReconciled(false);\n setIsAllocated(false);\n setIsOnline(false);\n setIsDelayedCapture(false);\n //\tsetC_BPartner_ID(0);\n setC_Invoice_ID(0);\n setC_Order_ID(0);\n setC_Charge_ID(0);\n setC_Project_ID(0);\n setIsPrepayment(false);\n }",
"@Override\r\n\tpublic int yearsTillRetirement() //calculate years until retirement\r\n\t{\n\t\tint retire = (int)Math.round((35 - (super.getYears() + (double)(usedUnpaidVacation + usedVacation* 2 + usedSickDays)/260)));\r\n\t\t\r\n\t\treturn retire;\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic boolean approveIt() {\n\t\treturn false;\n\t}",
"private void updateResorce() {\n }",
"@Override\r\n\tpublic void onBeforeUpdate(Record record) throws DeadlineExceededException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tint newStatus = (Integer) record.getValue(\"resignationstatusid\");\r\n\t\tint oldStatus = (Integer) record.getOldValue(\"resignationstatusid\");\r\n\t\tif((oldStatus == HRISConstants.RESIGNATION_NEW || oldStatus == HRISConstants.RESIGNATION_ONHOLD || oldStatus == HRISConstants.RESIGNATION_REJECTED)&& newStatus == HRISConstants.RESIGNATION_ACCEPTED){\r\n\t\t\t\r\n\t\t\tString TODAY_DATE = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(SystemParameters.getCurrentDateTime());\r\n\t\t\trecord.addUpdate(\"approveddate\",TODAY_DATE);\r\n\t\t}\r\n\t}",
"@Override\n public void setStatus(int arg0) {\n\n }",
"private void checkOcspResponseFresh(SingleResp resp) throws OCSPException\n {\n\n Date curDate = Calendar.getInstance().getTime();\n\n Date thisUpdate = resp.getThisUpdate();\n if (thisUpdate == null)\n {\n throw new OCSPException(\"OCSP: thisUpdate field is missing in response (RFC 5019 2.2.4.)\");\n }\n Date nextUpdate = resp.getNextUpdate();\n if (nextUpdate == null)\n {\n throw new OCSPException(\"OCSP: nextUpdate field is missing in response (RFC 5019 2.2.4.)\");\n }\n if (curDate.compareTo(thisUpdate) < 0)\n {\n LOG.error(curDate + \" < \" + thisUpdate);\n throw new OCSPException(\"OCSP: current date < thisUpdate field (RFC 5019 2.2.4.)\");\n }\n if (curDate.compareTo(nextUpdate) > 0)\n {\n LOG.error(curDate + \" > \" + nextUpdate);\n throw new OCSPException(\"OCSP: current date > nextUpdate field (RFC 5019 2.2.4.)\");\n }\n LOG.info(\"OCSP response is fresh\");\n }",
"private void cancelOrder(String docId, final String cancel) {\n db.collection(\"orders\")\n .document(docId)\n .update(\"Status\",cancel)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.d(\"This done\", \"DocumentSnapshot successfully updated!\");\n //Toast.makeText(getActivity().getApplicationContext(),foodList.get(position).getFoodName()+\":Updated\",Toast.LENGTH_LONG).show();\n\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.w(\"This error\", \"Error updating document\", e);\n Toast.makeText(getActivity().getApplicationContext(), \"Server issue\", Toast.LENGTH_LONG).show();\n }\n });\n }",
"public void setStatus(boolean newstatus){activestatus = newstatus;}",
"@Override\n\tpublic void getStatus() {\n\t\t\n\t}",
"@Override\n\tpublic void setYear(int year) throws RARException {\n\t\tthis.year = year;\n\t}",
"protected void redoSuccess() {\n this.isRedoable = false;\n this.isUndoable = true;\n }",
"public void setStatus(int newStatus) {\n status = newStatus;\n }",
"HrDocumentRequest approve(HrDocumentRequest hrDocumentRequest);",
"public int getRenovated() {\n return renovated;\n }",
"public String getDocStatus();",
"public String getDocStatus();",
"public String getDocStatus();",
"private void setStatusTelaExibir () {\n setStatusTelaExibir(-1);\n }",
"@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\t// if (resultCode == RESULT_OK) {\r\n\t\t// if (requestCode == editRequest) { //修改成功后的状态一定是审核状态\r\n\t\t// m_nstatus = HeadhunterPublic.TASK_STATUS_AUDIT;\r\n\t\t// rewardInfo.setTask_status(String.valueOf(m_nstatus));\r\n\t\t// refresh();\r\n\t\t// setResult(RESULT_OK);\r\n\t\t// }\r\n\t\t// }\r\n\t}",
"public void restart() {\r\n\t\tthis.cancel = false;\r\n\t}",
"protected final void undo() {\n requireAllNonNull(model, previousResidentBook, previousEventBook);\n model.resetData(previousResidentBook, previousEventBook);\n model.updateFilteredPersonList(PREDICATE_SHOW_ALL_PERSONS);\n model.updateFilteredEventList(PREDICATE_SHOW_ALL_EVENTS);\n\n }",
"private void getStatus() {\n\t\t\n\t}",
"@Override\n\t\tpublic int getStatus() {\n\t\t\treturn 0;\n\t\t}",
"private void actionResume() {\n\t\tselectedDownload.resume();\n\t\tupdateButtons();\n\t}",
"public void resetChanges() {\n\t\tthis.resetStatus();\n\t\ttheStructures.resetStatus();\n\n\t\tfireDocumentInit();\n\t}",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"private void cancel() {\n recoTransaction.cancel();\n }",
"private void resetCounter() {\n // Obtain the most recent changelist available on the client\n String depot = parent.getDepot();\n Client client = Client.getClient();\n Changelist toChange = Changelist.getChange(depot, client);\n\n // Reset the Perforce counter value\n String counterName = parent.getCounter();\n Counter.setCounter(counterName, toChange.getNumber());\n }",
"protected void undoSuccess() {\n this.isRedoable = true;\n this.isUndoable = false;\n }",
"public void yearEndNotification() {\n\t\tif ((this.isActive()) && (!this.hasInfiniteAge())) {\n\t\t\tage++;\n\n\t\t\tif (age >= maximum_age)\n\t\t\t\tactive_status = false;\n\t\t}\n\t}",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setTermsApproved() {\n mTermsApproved = true;\n }"
]
| [
"0.5545196",
"0.5545196",
"0.5545196",
"0.5422187",
"0.5245473",
"0.523629",
"0.52251285",
"0.5175165",
"0.5166159",
"0.5092579",
"0.5076672",
"0.5076463",
"0.50749063",
"0.50664717",
"0.49979344",
"0.499135",
"0.49788618",
"0.49656108",
"0.49611986",
"0.49593776",
"0.49429855",
"0.4923253",
"0.49013466",
"0.48983788",
"0.4873437",
"0.48512465",
"0.48335612",
"0.4826381",
"0.48081926",
"0.48076063",
"0.48072258",
"0.47998935",
"0.47970602",
"0.47924492",
"0.47900093",
"0.47840264",
"0.47778985",
"0.47766167",
"0.4767041",
"0.4760032",
"0.4758199",
"0.4748444",
"0.4732102",
"0.47301415",
"0.47285536",
"0.47234604",
"0.47217566",
"0.4719559",
"0.47108713",
"0.4709537",
"0.47054136",
"0.47042567",
"0.47040242",
"0.46921957",
"0.4690029",
"0.46854338",
"0.46689025",
"0.46666947",
"0.46631134",
"0.46625948",
"0.4660691",
"0.46576902",
"0.46545163",
"0.4641216",
"0.46408",
"0.46387577",
"0.4636251",
"0.46335214",
"0.4628885",
"0.46269616",
"0.4612532",
"0.46041602",
"0.46041438",
"0.45980728",
"0.45944825",
"0.45843223",
"0.45736104",
"0.4572846",
"0.45688906",
"0.4565968",
"0.45558485",
"0.4553085",
"0.4553085",
"0.4553085",
"0.45487228",
"0.45458704",
"0.4544172",
"0.4542206",
"0.4542131",
"0.45419794",
"0.45390022",
"0.45389342",
"0.45387492",
"0.4533331",
"0.4530244",
"0.45291975",
"0.4528405",
"0.4524157",
"0.4524157",
"0.4523705"
]
| 0.7319802 | 0 |
NOTE: need to find out all reference to TA's source accounting lines | @Override
public List getSourceAccountingLines() {
return super.getSourceAccountingLines();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void parseListSources(String source) {\r\n\t\t// Gets a scanner from the source\r\n\t\tInputStream in = new ByteArrayInputStream(source.getBytes());\r\n\t\t_assertedFacs = new HashSet<String>();\r\n\t\tScanner scan = new Scanner(in);\r\n\t\tString file = null;\r\n\t\tString line = null;\r\n\t\tboolean isFile = false;\r\n\t\tboolean isAsserted = false;\r\n\t\tint initLine = -1;\r\n\t\tint endLine = -1;\r\n\t\t\r\n\t\t// Puts the wait cursor\r\n\t\tAcideDataViewReplaceWindow.getInstance().setCursor(\r\n\t\t\t\tCursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\r\n\t\t\t\t\t\r\n\t\t// reads the line and chechks that is not a end nor an error\r\n\t\twhile (scan.hasNextLine()\r\n\t\t\t\t&& !(line = scan.nextLine()).replaceAll(\" \", \"\").equals(\r\n\t\t\t\t\t\t\"$error\") && !line.replaceAll(\" \", \"\").equals(\"$eot\")) {\r\n\t\t\t// checks if the next lines corresponds to a file\r\n\t\t\tif (line.replaceAll(\" \", \"\").equals(\"$file\")) {\r\n\t\t\t\tisAsserted = false;\r\n\t\t\t\tisFile = true;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t// checks if the next lines corresponds to an asserted predicate\r\n\t\t\tif (line.replaceAll(\" \", \"\").equals(\"$asserted\")) {\r\n\t\t\t\tisAsserted = true;\r\n\t\t\t\tisFile = false;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (isAsserted) {\r\n\t\t\t\t_assertedFacs.add(this._query);\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (isFile) {\r\n\t\t\t\t// checks if the line is a number of line or the file path\r\n\t\t\t\tif (line.replaceAll(\" \", \"\").matches(\"(\\\\d)+\")) {\r\n\t\t\t\t\t// gets the initial and the end line and adds the lines to\r\n\t\t\t\t\t// the highlight\r\n\t\t\t\t\tif (initLine == -1)\r\n\t\t\t\t\t\tinitLine = Integer.parseInt(line.replaceAll(\" \", \"\"));\r\n\t\t\t\t\telse if (endLine == -1) {\r\n\t\t\t\t\t\tendLine = Integer.parseInt(line.replaceAll(\" \", \"\"));\r\n\t\t\t\t\t\tfor (int i = initLine - 1; i < endLine; i++)\r\n\t\t\t\t\t\t\taddLine(file, i);\r\n\t\t\t\t\t\tinitLine = -1;\r\n\t\t\t\t\t\tendLine = -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfile = line.substring(line.indexOf(\"'\") + 1,\r\n\t\t\t\t\t\t\tline.lastIndexOf(\"'\"));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Puts the default cursor\r\n\t\tAcideDataViewReplaceWindow.getInstance().setCursor(\r\n\t\t\tCursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\r\n\t\t\t\t\t\r\n\t\tscan.close();\r\n\t}",
"public List<TemSourceAccountingLine> getEncumbranceSourceAccountingLines() {\n List<TemSourceAccountingLine> encumbranceLines = new ArrayList<TemSourceAccountingLine>();\n for (TemSourceAccountingLine line : (List<TemSourceAccountingLine>) getSourceAccountingLines()){\n if (TemConstants.ENCUMBRANCE.equals(line.getCardType())){\n encumbranceLines.add(line);\n }\n }\n return encumbranceLines;\n }",
"public List<CommissionDistribution> lookupHistory(Long sourceAccount) {\n throw new UnsupportedOperationException(\"Not Implemented yet.\");\n }",
"protected List getPersistedAdvanceAccountingLinesForComparison() {\n return SpringContext.getBean(AccountingLineService.class).getByDocumentHeaderIdAndLineType(getAdvanceAccountingLineClass(), getDocumentNumber(), TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n }",
"LineReferenceType getLineReference();",
"private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }",
"public List<Docl> getMaintenanceCreditARTaxList(MaintenanceRequest mrq){\n\t\tList<Docl> taxDoclList = new ArrayList<Docl>();\n\t\ttry{\n\t\t\tList<DoclPK> taxDoclPKList = maintenanceInvoiceDAO.getMaintenanceCreditARTaxDoclPKs(mrq);\n\t\t\tfor(DoclPK doclPK : taxDoclPKList){\n\t\t\t\ttaxDoclList.add(doclDAO.findById(doclPK).orElse(null));\n\t\t\t}\n\t\t\treturn taxDoclList;\n\t\t}catch(Exception ex){\n\t\t\tthrow new MalException(\"generic.error.occured.while\", \n\t\t\t\t\tnew String[] { \"retrieving creditAR tax for purchase order number: \" + mrq.getJobNo()}, ex);\n\t\t}\n\t}",
"public List<Docl> getMaintenanceCreditARLinesWithoutMarkupAndTaxList(MaintenanceRequest mrq){\n\t\tList<Docl> taxDoclList = new ArrayList<Docl>();\n\t\ttry{\n\t\t\tList<DoclPK> taxDoclPKList = maintenanceInvoiceDAO.getMaintenanceCreditARDoclPKsWithoutTaxAndMarkupLines(mrq);\n\t\t\tfor(DoclPK doclPK : taxDoclPKList){\n\t\t\t\ttaxDoclList.add(doclDAO.findById(doclPK).orElse(null));\n\t\t\t}\n\t\t\treturn taxDoclList;\n\t\t}catch(Exception ex){\n\t\t\tthrow new MalException(\"generic.error.occured.while\", \n\t\t\t\t\tnew String[] { \"retrieving creditAR tax for purchase order number: \" + mrq.getJobNo()}, ex);\n\t\t}\n\t}",
"public List<MaintenanceInvoiceCreditVO> getMaintenanceCreditAPLines(MaintenanceRequest mrq){\n\t\ttry{\n\t\t\treturn maintenanceInvoiceDAO.getMaintenanceCreditAPLines(mrq);\n\t\t}catch(Exception ex){\n\t\t\tthrow new MalException(\"generic.error.occured.while\", \n\t\t\t\t\tnew String[] { \"retrieving creditAP lines for po: \" + mrq.getJobNo()}, ex);\n\t\t}\n\t}",
"public static AccountsFromLineOfCredit testGetAccountsForLineOfCredit() throws MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testGetAccountsForLineOfCredit\");\n\t\t// Test Get Accounts for a line of credit\n\n\t\tString lineOfCreditId = DemoUtil.demoLineOfCreditId;\n\t\tif (lineOfCreditId == null) {\n\t\t\tSystem.out.println(\"WARNING: No Demo Line of credit defined\");\n\t\t\treturn null;\n\t\t}\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\n\t\tSystem.out.println(\"\\nGetting all accounts for LoC with ID= \" + lineOfCreditId);\n\t\tAccountsFromLineOfCredit accountsForLoC = linesOfCreditService.getAccountsForLineOfCredit(lineOfCreditId);\n\t\t// Log returned results\n\t\tList<LoanAccount> loanAccounts = accountsForLoC.getLoanAccounts();\n\t\tList<SavingsAccount> savingsAccounts = accountsForLoC.getSavingsAccounts();\n\t\tSystem.out.println(\"Total Loan Accounts=\" + loanAccounts.size() + \"\\tTotal Savings Accounts=\"\n\t\t\t\t+ savingsAccounts.size() + \" for LoC=\" + lineOfCreditId);\n\n\t\treturn accountsForLoC;\n\t}",
"public static void testGetDetailsForLineOfCredit() throws MambuApiException {\n\t\tString methodName = new Object() {}.getClass().getEnclosingMethod().getName();\n\t\tSystem.out.println(\"\\nIn \" + methodName);\n\t\t\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tInteger offset = 0;\n\t\tInteger limit = 100;\n\t\t\n\t\tList<LineOfCredit> linesOfCredit = linesOfCreditService.getAllLinesOfCredit(offset, limit);\n\t\t\n\t\tif(CollectionUtils.isNotEmpty(linesOfCredit)){\n\n\t\t\t/* Get all details for first line of credit found */\n\t\t\tLineOfCredit firstLineOfCredit = linesOfCredit.get(0);\n\t\t\t\n\t\t\tSystem.out.println(\"Getting all details for Line of Credit ID= \" + firstLineOfCredit.getEncodedKey());\n\t\t\t\n\t\t\tLineOfCredit lineOfCreditDetails = linesOfCreditService.getLineOfCreditDetails(firstLineOfCredit.getEncodedKey());\n\t\t\t\n\t\t\t// Log returned LoC details\n\t\t\tlogLineOfCreditDetails(lineOfCreditDetails);\n\t\t}else{\n\t\t\tSystem.out.println(\"WARNING: No Credit lines were found in order to run test \" + methodName);\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic List<String> getAGBVersion1WithLineNumbers() {\n\t\t\n\t\treturn version1WithLineNumbers;\n\t}",
"private static List<RefSeqEntry> getAllRefSeqEntries(VariantContext vc) {\n List<RefSeqEntry> allRefSeq = new LinkedList<RefSeqEntry>();\n\n for (Map.Entry<String, String> entryToName : getRefSeqEntriesToNames(vc).entrySet()) {\n String entry = entryToName.getKey();\n String entrySuffix = entry.replaceFirst(NAME_KEY, \"\");\n allRefSeq.add(new RefSeqEntry(vc, entrySuffix));\n }\n\n return allRefSeq;\n }",
"@Override\n public List<GeneralLedgerPendingEntrySourceDetail> getGeneralLedgerPendingEntrySourceDetails() {\n if (TemConstants.TravelAuthorizationStatusCodeKeys.CLOSED.equals(getAppDocStatus()) || TemConstants.TravelAuthorizationStatusCodeKeys.CANCELLED.equals(getAppDocStatus())) {\n return new ArrayList<GeneralLedgerPendingEntrySourceDetail>(); // hey, we're closed or cancelled. Let's not generate entries\n }\n return super.getGeneralLedgerPendingEntrySourceDetails();\n }",
"public LineNumberDebugInfo[] lineNumbers();",
"public String method_110() {\r\n String[] var10000 = field_5917;\r\n return \"FlatLevelSource\";\r\n }",
"private List<FIN_ReconciliationLineTemp> getRecTempLines(FIN_BankStatementLine bsline) {\n OBContext.setAdminMode();\n try {\n final OBCriteria<FIN_ReconciliationLineTemp> obc = OBDal.getInstance().createCriteria(\n FIN_ReconciliationLineTemp.class);\n obc.add(Restrictions.eq(FIN_ReconciliationLineTemp.PROPERTY_BANKSTATEMENTLINE, bsline));\n return obc.list();\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"@Override\r\n\tprotected String[] getSpecificLines() {\r\n\t\tString[] lines = new String[4];\r\n\t\tlines[0] = \"\";\r\n\t\tif (items.toString().lastIndexOf('_') < 0) {\r\n\t\t\tlines[1] = items.toString();\r\n\t\t\tlines[2] = \"\";\r\n\t\t} else {\r\n\t\t\tlines[1] = items.toString().substring(0, items.toString().lastIndexOf('_'));\r\n\t\t\tlines[2] = items.toString().substring(items.toString().lastIndexOf('_') + 1);\r\n\t\t}\r\n\t\tlines[3] = String.valueOf(cost);\r\n\t\treturn lines;\r\n\t}",
"@Override\r\n public void populateExplicitGeneralLedgerPendingEntry(GeneralLedgerPendingEntrySource glpeSource, GeneralLedgerPendingEntrySourceDetail glpeSourceDetail, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, GeneralLedgerPendingEntry explicitEntry) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"populateExplicitGeneralLedgerPendingEntry(AccountingDocument, AccountingLine, GeneralLedgerPendingEntrySequenceHelper, GeneralLedgerPendingEntry) - start\");\r\n }\r\n\r\n explicitEntry.setFinancialDocumentTypeCode(glpeSource.getFinancialDocumentTypeCode());\r\n explicitEntry.setVersionNumber(new Long(1));\r\n explicitEntry.setTransactionLedgerEntrySequenceNumber(new Integer(sequenceHelper.getSequenceCounter()));\r\n Timestamp transactionTimestamp = new Timestamp(dateTimeService.getCurrentDate().getTime());\r\n explicitEntry.setTransactionDate(new java.sql.Date(transactionTimestamp.getTime()));\r\n explicitEntry.setTransactionEntryProcessedTs(transactionTimestamp);\r\n explicitEntry.setAccountNumber(glpeSourceDetail.getAccountNumber());\r\n\r\n // JHK: changing implementation to work around object refresh issues\r\n// if (ObjectUtils.isNull(glpeSourceDetail.getAccount()) && getPersistenceStructureService().hasReference(glpeSourceDetail.getClass(), OLEPropertyConstants.ACCOUNT)) {\r\n// glpeSourceDetail.refreshReferenceObject(OLEPropertyConstants.ACCOUNT);\r\n// }\r\n//\r\n// if ((ObjectUtils.isNull(glpeSourceDetail.getObjectCode()) || StringUtils.isBlank(glpeSourceDetail.getObjectCode().getFinancialObjectTypeCode())) && getPersistenceStructureService().hasReference(glpeSourceDetail.getClass(), OLEPropertyConstants.OBJECT_CODE)) {\r\n// glpeSourceDetail.refreshReferenceObject(OLEPropertyConstants.OBJECT_CODE);\r\n// }\r\n\r\n Account account = SpringContext.getBean(AccountService.class).getByPrimaryIdWithCaching(glpeSourceDetail.getChartOfAccountsCode(), glpeSourceDetail.getAccountNumber());\r\n ObjectCode objectCode = SpringContext.getBean(ObjectCodeService.class).getByPrimaryIdWithCaching( glpeSource.getPostingYear(), glpeSourceDetail.getChartOfAccountsCode(), glpeSourceDetail.getFinancialObjectCode());\r\n\r\n if ( account != null ) {\r\n if ( LOG.isDebugEnabled() ) {\r\n LOG.debug(\"GLPE: Testing to see what should be used for SF Object Code: \" + glpeSourceDetail );\r\n }\r\n String sufficientFundsCode = account.getAccountSufficientFundsCode();\r\n if (StringUtils.isBlank(sufficientFundsCode)) {\r\n sufficientFundsCode = OLEConstants.SF_TYPE_NO_CHECKING;\r\n if ( LOG.isDebugEnabled() ) {\r\n LOG.debug(\"Code was blank on the account - using 'N'\");\r\n }\r\n }\r\n\r\n if (objectCode != null) {\r\n if ( LOG.isDebugEnabled() ) {\r\n LOG.debug(\"SF Code / Object: \" + sufficientFundsCode + \" / \" + objectCode);\r\n }\r\n String sifficientFundsObjectCode = SpringContext.getBean(SufficientFundsService.class).getSufficientFundsObjectCode(objectCode, sufficientFundsCode);\r\n explicitEntry.setAcctSufficientFundsFinObjCd(sifficientFundsObjectCode);\r\n } else {\r\n LOG.debug( \"Object code object was null, skipping setting of SF object field.\" );\r\n }\r\n }\r\n\r\n if ( objectCode != null ) {\r\n explicitEntry.setFinancialObjectTypeCode(objectCode.getFinancialObjectTypeCode());\r\n }\r\n\r\n explicitEntry.setFinancialDocumentApprovedCode(GENERAL_LEDGER_PENDING_ENTRY_CODE.NO);\r\n explicitEntry.setTransactionEncumbranceUpdateCode(BLANK_SPACE);\r\n explicitEntry.setFinancialBalanceTypeCode(BALANCE_TYPE_ACTUAL); // this is the default that most documents use\r\n explicitEntry.setChartOfAccountsCode(glpeSourceDetail.getChartOfAccountsCode());\r\n explicitEntry.setTransactionDebitCreditCode(glpeSource.isDebit(glpeSourceDetail) ? OLEConstants.GL_DEBIT_CODE : OLEConstants.GL_CREDIT_CODE);\r\n explicitEntry.setFinancialSystemOriginationCode(SpringContext.getBean(HomeOriginationService.class).getHomeOrigination().getFinSystemHomeOriginationCode());\r\n explicitEntry.setDocumentNumber(glpeSourceDetail.getDocumentNumber());\r\n explicitEntry.setFinancialObjectCode(glpeSourceDetail.getFinancialObjectCode());\r\n\r\n explicitEntry.setOrganizationDocumentNumber(glpeSource.getDocumentHeader().getOrganizationDocumentNumber());\r\n explicitEntry.setOrganizationReferenceId(glpeSourceDetail.getOrganizationReferenceId());\r\n explicitEntry.setProjectCode(getEntryValue(glpeSourceDetail.getProjectCode(), GENERAL_LEDGER_PENDING_ENTRY_CODE.getBlankProjectCode()));\r\n explicitEntry.setReferenceFinancialDocumentNumber(getEntryValue(glpeSourceDetail.getReferenceNumber(), BLANK_SPACE));\r\n explicitEntry.setReferenceFinancialDocumentTypeCode(getEntryValue(glpeSourceDetail.getReferenceTypeCode(), BLANK_SPACE));\r\n explicitEntry.setReferenceFinancialSystemOriginationCode(getEntryValue(glpeSourceDetail.getReferenceOriginCode(), BLANK_SPACE));\r\n explicitEntry.setSubAccountNumber(getEntryValue(glpeSourceDetail.getSubAccountNumber(), GENERAL_LEDGER_PENDING_ENTRY_CODE.getBlankSubAccountNumber()));\r\n explicitEntry.setFinancialSubObjectCode(getEntryValue(glpeSourceDetail.getFinancialSubObjectCode(), GENERAL_LEDGER_PENDING_ENTRY_CODE.getBlankFinancialSubObjectCode()));\r\n explicitEntry.setTransactionEntryOffsetIndicator(false);\r\n explicitEntry.setTransactionLedgerEntryAmount(glpeSource.getGeneralLedgerPendingEntryAmountForDetail(glpeSourceDetail));\r\n explicitEntry.setTransactionLedgerEntryDescription(getEntryValue(glpeSourceDetail.getFinancialDocumentLineDescription(), glpeSource.getDocumentHeader().getDocumentDescription()));\r\n explicitEntry.setUniversityFiscalPeriodCode(null); // null here, is assigned during batch or in specific document rule\r\n // classes\r\n explicitEntry.setUniversityFiscalYear(glpeSource.getPostingYear());\r\n // TODO wait for core budget year data structures to be put in place\r\n // explicitEntry.setBudgetYear(accountingLine.getBudgetYear());\r\n // explicitEntry.setBudgetYearFundingSourceCode(budgetYearFundingSourceCode);\r\n\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"populateExplicitGeneralLedgerPendingEntry(AccountingDocument, AccountingLine, GeneralLedgerPendingEntrySequenceHelper, GeneralLedgerPendingEntry) - end\");\r\n }\r\n }",
"public void testExistingSeqWithChangedSrc() throws Exception\n {\n Integer C30 = this.cellLineLookup.lookup(\"C30\");\n String sql = \"select * from prb_source where _source_key \" +\n \"= -40 and _cellLine_key = \" + C30.toString();\n ResultsNavigator nav = sqlMgr.executeQuery(sql);\n assertTrue(!nav.next()); // assure no records found\n String accid = \"T00313\";\n MSRawAttributes raw = new MSRawAttributes();\n raw.setOrganism(\"mouse, laboratory\");\n raw.setCellLine(\"C30\");\n Integer seqKey = new Integer(-200);\n msProcessor.processExistingSeqSrc(accid, seqKey, null, raw);\n nav = sqlMgr.executeQuery(sql);\n assertTrue(nav.next()); // assure a record was found\n }",
"@Override\n\tpublic void readAGBVersionsWithLineNumbers() {\n\t\t\n\t\tString lineVersion1 = null;\n\t\tString lineVersion2 = null;\n\t\t\n\t\ttry \n\t\t{\n BufferedReader br1 = new BufferedReader(new FileReader(\"AGB1-SelectedVersion.txt\"));\n \n while ((lineVersion1 = br1.readLine()) != null) \n {\n \tversion1WithLineNumbers.add(lineVersion1);\n //System.out.println(line);\n }\n } \n\t\tcatch (IOException e) \n\t\t{\n e.printStackTrace();\n }\n\t\t\n\t\ttry \n\t\t{\n BufferedReader br2 = new BufferedReader(new FileReader(\"AGB2-SelectedVersion.txt\"));\n \n while ((lineVersion2 = br2.readLine()) != null) \n {\n \tversion2WithLineNumbers.add(lineVersion2);\n //System.out.println(line);\n }\n } \n\t\tcatch (IOException e) \n\t\t{\n e.printStackTrace();\n }\n\t\t\n\t\t\n\t}",
"public boolean calcMatchingSourceStmts (JBLine blineref)\n\t{\n\t\treturn this.stmtIndex.size() == blineref.stmtIndex.size();\n\t}",
"public java.util.List<ReferenceLine> getReferenceLines() {\n return referenceLines;\n }",
"public List<CommissionDistribution> lookupHistory(Long sourceAccount, LocalDateTime from,\n LocalDateTime to) {\n throw new UnsupportedOperationException(\"Not Implemented yet.\");\n }",
"public String getSourceLine (int line);",
"private static void logLineOfCreditDetails(LineOfCredit lineOfCredit) {\n\n\t\tif (lineOfCredit != null) {\n\t\t\tSystem.out.println(\"Line of credit details:\");\n\t\t\tSystem.out.println(\"\\tID:\" + lineOfCredit.getId());\n\t\t\tSystem.out.println(\"\\tClientKey:\" + lineOfCredit.getClientKey());\n\t\t\tSystem.out.println(\"\\tGroupKey:\" + lineOfCredit.getGroupKey());\n\t\t\tSystem.out.println(\"\\tStartDate:\" + lineOfCredit.getStartDate());\n\t\t\tSystem.out.println(\"\\tExpireDate:\" + lineOfCredit.getExpireDate());\n\t\t\tSystem.out.println(\"\\tAmount:\" + lineOfCredit.getAmount());\n\t\t\tSystem.out.println(\"\\tState:\" + lineOfCredit.getState());\n\t\t\tSystem.out.println(\"\\tCreationDate:\" + lineOfCredit.getCreationDate());\n\t\t\tSystem.out.println(\"\\tLastModifiedDate:\" + lineOfCredit.getLastModifiedDate());\n\t\t\tSystem.out.println(\"\\tNotes:\" + lineOfCredit.getNotes());\n\t\t\n\t\t\t// log the CFs details\n\t\t\tlogCustomFieldValuesDetails(lineOfCredit.getCustomFieldValues());\n\t\t}\n\t}",
"default List<PendingAttestation> get_matching_source_attestations(BeaconState state, EpochNumber epoch) {\n assertTrue(epoch.equals(get_current_epoch(state)) || epoch.equals(get_previous_epoch(state)));\n return epoch.equals(get_current_epoch(state)) ?\n state.getCurrentEpochAttestations().listCopy() : state.getPreviousEpochAttestations().listCopy();\n }",
"private List<String> findAnts(String inputFileName) {\n\nList<String> lines = new ArrayList<>();\ntry {\nBufferedReader br = new BufferedReader(new FileReader(inputFileName));\nString line = br.readLine();\nwhile (line != null) {\nlines.add(line);\nline = br.readLine();\n}\n} catch (Exception e) {\n\n}\n\nchar[] splitLineByLetterOrDigit;\nList<String> saveAnts = new ArrayList<>();\n\nfor (int k = 0; k < lines.size(); k++) {\nString singleLine = lines.get(k);\nsplitLineByLetterOrDigit = singleLine.toCharArray();\nfor (int i = 0; i < splitLineByLetterOrDigit.length; i++) {\nif (Character.isLetter(splitLineByLetterOrDigit[i])) {\n// first is row\nsaveAnts.add(String.format(\"%d %d %s\", k, i, splitLineByLetterOrDigit[i]));\n}\n}\n}\n\nreturn saveAnts;\n}",
"@SuppressWarnings({ \"unused\", \"resource\" })\n public JSONObject selectLines(VariablesSecureApp vars, String fromDate, String InitialBalance,\n String YearInitialBal, String strClientId, String accountId, String BpartnerId,\n String productId, String projectId, String DeptId, String BudgetTypeId, String FunclassId,\n String User1Id, String User2Id, String AcctschemaId, String strOrgFamily, String ClientId,\n String OrgId, String DateTo, String strAccountFromValue, String strAccountToValue,\n String strStrDateFC, String FrmPerStDate, String uniqueCode, String inpcElementValueIdFrom) {\n File file = null;\n String sqlQuery = \"\", sqlQuery1 = \"\", tempUniqCode = \"\", date = \"\", groupClause = \"\",\n tempStartDate = \"\", periodId = \"\";\n BigDecimal initialDr = new BigDecimal(0);\n BigDecimal initialCr = new BigDecimal(0);\n BigDecimal initialNet = new BigDecimal(0);\n PreparedStatement st = null;\n ResultSet rs = null;\n String RoleId = vars.getRole();\n List<GLJournalApprovalVO> list = null;\n JSONObject obj = null;\n int count = 0;\n JSONObject result = new JSONObject();\n JSONArray array = new JSONArray();\n JSONArray arr = null;\n String listofuniquecode = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n\n sqlQuery = \"select a.id,a.c_period_id as periodid,a.periodno,to_char(a.startdate,'dd-MM-yyyy') as startdate ,a.name ,ev.accounttype as type,COALESCE(A.EM_EFIN_UNIQUECODE,ev.value) as account_id, ev.name, a.EM_EFIN_UNIQUECODE as uniquecode,a.defaultdep, a.depart,ev.value as account ,\"\n + \" replace(a.EM_EFIN_UNIQUECODE,'-'||a.depart||'-','-'||a.defaultdep||'-') as replaceacct, \"\n + \" sum(initalamtdr)as initalamtdr, sum(intialamtcr)as intialamtcr , sum(a.initialnet )as SALDO_INICIAL,sum( a.amtacctcr) as amtacctcr, sum(a.amtacctdr) as amtacctdr, sum(A.AMTACCTDR)-sum(A.AMTACCTCR) AS SALDO_FINAL ,\"\n + \" sum(initalamtdr)+sum( a.amtacctdr) as finaldr, sum(a.intialamtcr)+sum( a.amtacctcr) as finalcr , sum(a.initialnet)+sum(A.AMTACCTDR)-sum(A.AMTACCTCR) as finalnet \"\n + \" from( SELECT per.startdate,per.name ,per.periodno ,(case when (DATEACCT < TO_DATE(?) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?)) then F.AMTACCTDR else 0 end) as initalamtdr, \"\n + \"(case when (DATEACCT < TO_DATE(?) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?)) then F.AMTACCTCR else 0 end) as intialamtcr, \"\n + \" (case when (DATEACCT < TO_DATE(?) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?)) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialnet, \"\n + \" (case when (DATEACCT >= TO_DATE(?) AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?) then F.AMTACCTDR else 0 end) as AMTACCTDR, \"\n + \" (case when (DATEACCT >= TO_DATE(?) AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?) then F.AMTACCTCR else 0 end) as AMTACCTCR, \"\n + \" F.ACCOUNT_ID AS ID,F.EM_EFIN_UNIQUECODE,reg.value as depart,f.c_period_id , \"\n + \" (select REG.value from c_salesregion REG where REG.isdefault='Y' \";\n\n if (strClientId != null)\n sqlQuery += \"AND REG.AD_CLIENT_ID IN \" + strClientId;\n sqlQuery += \") as defaultdep \" + \" FROM FACT_ACCT F \"\n + \" left join (select name,periodno,startdate,c_period_id from c_period ) per on per.c_period_id=f.c_period_id left join c_salesregion reg on reg.c_salesregion_id= f.c_salesregion_id where 1=1 \";\n if (strOrgFamily != null)\n sqlQuery += \"AND F.AD_ORG_ID IN (\" + strOrgFamily + \")\";\n if (ClientId != null)\n sqlQuery += \"AND F.AD_CLIENT_ID IN (\" + ClientId + \")\";\n if (ClientId != null)\n sqlQuery += \"AND F.AD_ORG_ID IN (\" + OrgId + \")\";\n // sqlQuery += \" AND DATEACCT > TO_DATE(?) AND DATEACCT < TO_DATE(?) AND 1=1 \";\n sqlQuery += \" AND DATEACCT >= TO_DATE(?) AND DATEACCT < TO_DATE(?) AND 1=1 \";\n if (accountId != null)\n sqlQuery += \"AND F.account_ID='\" + accountId + \"'\";\n if (BpartnerId != null)\n sqlQuery += \"AND F.C_BPARTNER_ID IN (\" + BpartnerId.replaceFirst(\",\", \"\") + \")\";\n if (productId != null)\n sqlQuery += \"AND F.M_PRODUCT_ID IN \" + productId;\n if (projectId != null)\n sqlQuery += \"AND F.C_PROJECT_ID IN (\" + projectId.replaceFirst(\",\", \"\") + \")\";\n if (DeptId != null)\n sqlQuery += \"AND F.C_SALESREGION_ID IN (\" + DeptId.replaceFirst(\",\", \"\") + \")\";\n if (BudgetTypeId != null)\n sqlQuery += \"AND coalesce(F.C_CAMPAIGN_ID, (select c.C_CAMPAIGN_ID from C_CAMPAIGN c where em_efin_iscarryforward = 'N' and ad_client_id = F.ad_client_id limit 1))='\"\n + BudgetTypeId + \"'\";\n if (FunclassId != null)\n sqlQuery += \"AND F.C_ACTIVITY_ID IN (\" + FunclassId.replaceFirst(\",\", \"\") + \")\";\n if (User1Id != null)\n sqlQuery += \"AND F.USER1_ID IN (\" + User1Id.replaceFirst(\",\", \"\") + \")\";\n if (User2Id != null)\n sqlQuery += \"AND F.USER2_ID IN (\" + User2Id.replaceFirst(\",\", \"\") + \")\";\n if (AcctschemaId != null)\n sqlQuery += \"AND F.C_ACCTSCHEMA_ID ='\" + AcctschemaId + \"'\";\n if (uniqueCode != null)\n sqlQuery += \"\t\tAND (F.EM_EFIN_UNIQUECODE = '\" + uniqueCode + \"' or F.acctvalue='\"\n + uniqueCode + \"')\";\n\n sqlQuery += \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \";\n\n sqlQuery += \" AND F.ISACTIVE='Y' \" + \" ) a, c_elementvalue ev \"\n + \" where a.id = ev.c_elementvalue_id and ev.elementlevel = 'S' \";\n if (strAccountFromValue != null)\n sqlQuery += \"\t\tAND EV.VALUE >= '\" + strAccountFromValue + \"'\";\n if (strAccountToValue != null)\n sqlQuery += \"\t\tAND EV.VALUE <= '\" + strAccountToValue + \"'\";\n\n sqlQuery += \" \";\n\n sqlQuery += \" and (a.initialnet <>0 or a.amtacctcr <>0 or a.amtacctdr<>0) group by a.c_period_id,a.name,ev.accounttype, a.startdate , a.id ,a.periodno, A.EM_EFIN_UNIQUECODE,ev.value,ev.name,a.defaultdep,a.depart \"\n + \" order by uniquecode,a.startdate, account_id ,ev.value, ev.name, id \";\n\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, fromDate);\n st.setString(2, fromDate);\n st.setString(3, InitialBalance);\n st.setString(4, fromDate);\n st.setString(5, fromDate);\n st.setString(6, InitialBalance);\n st.setString(7, fromDate);\n st.setString(8, fromDate);\n st.setString(9, InitialBalance);\n st.setString(10, fromDate);\n st.setString(11, fromDate);\n st.setString(12, YearInitialBal);\n st.setString(13, fromDate);\n st.setString(14, fromDate);\n st.setString(15, YearInitialBal);\n st.setString(16, fromDate);\n st.setString(17, DateTo);\n // st.setString(16, DateTo);\n log4j.debug(\"ReportTrialBalancePTD:\" + st.toString());\n rs = st.executeQuery();\n // Particular Date Range if we get record then need to form the JSONObject\n while (rs.next()) {\n // Group UniqueCode Wise Transaction\n // if same uniquecode then Group the transaction under the uniquecode\n if (tempUniqCode.equals(rs.getString(\"uniquecode\"))) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n if (rs.getInt(\"periodno\") == 1\n && (rs.getString(\"type\").equals(\"E\") || rs.getString(\"type\").equals(\"R\"))) {\n initialDr = new BigDecimal(0);\n initialCr = new BigDecimal(0);\n initialNet = new BigDecimal(0);\n FrmPerStDate = getPedStrEndDate(OrgId, ClientId, rs.getString(\"periodid\"), null);\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n } else {\n if (rs.getInt(\"periodno\") > 1) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, rs.getString(\"periodid\"));\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"account_id\"),\n rs.getString(\"startdate\"), FrmPerStDate, strStrDateFC, rs.getString(\"type\"), 2,\n RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO vo = initial.get(0);\n initialDr = vo.getInitDr();\n initialCr = vo.getInitCr();\n initialNet = vo.getInitNet();\n }\n }\n tra.put(\"startdate\", rs.getString(\"name\"));\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(rs.getString(\"startdate\"))));\n tra.put(\"perDr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctdr\")));\n tra.put(\"perCr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctcr\")));\n tra.put(\"finalpernet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"SALDO_FINAL\")));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctdr\").add(initialDr))));\n tra.put(\"finalcr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctcr\").add(initialCr))));\n tra.put(\"finalnet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"SALDO_FINAL\").add(initialNet))));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", rs.getString(\"periodid\"));\n tra.put(\"type\", \"1\");\n arr.put(tra);\n\n }\n // if different uniquecode then form new Uniquecode JsonObject\n else {\n if (listofuniquecode == null)\n listofuniquecode = \"'\" + rs.getString(\"uniquecode\") + \"'\";\n else\n listofuniquecode += \",'\" + rs.getString(\"uniquecode\") + \"'\";\n obj = new JSONObject();\n obj.put(\"uniquecode\", (rs.getString(\"uniquecode\") == null ? rs.getString(\"account\")\n : rs.getString(\"uniquecode\")));\n obj.put(\"accountId\", (rs.getString(\"id\") == null ? \"\" : rs.getString(\"id\")));\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n if (rs.getInt(\"periodno\") == 1\n && (rs.getString(\"type\").equals(\"E\") || rs.getString(\"type\").equals(\"R\"))) {\n initialDr = new BigDecimal(0);\n initialCr = new BigDecimal(0);\n initialNet = new BigDecimal(0);\n FrmPerStDate = getPedStrEndDate(OrgId, ClientId, rs.getString(\"periodid\"), null);\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n } else {\n if (rs.getInt(\"periodno\") > 1) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, rs.getString(\"periodid\"));\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"account_id\"),\n rs.getString(\"startdate\"), FrmPerStDate, strStrDateFC, rs.getString(\"type\"), 1,\n RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO vo = initial.get(0);\n initialDr = vo.getInitDr();\n initialCr = vo.getInitCr();\n initialNet = vo.getInitNet();\n }\n }\n tra.put(\"startdate\", rs.getString(\"name\"));\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(rs.getString(\"startdate\"))));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"perDr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctdr\")));\n tra.put(\"perCr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctcr\")));\n tra.put(\"finalpernet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"SALDO_FINAL\")));\n tra.put(\"finaldr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctdr\").add(initialDr))));\n tra.put(\"finalcr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctcr\").add(initialCr))));\n tra.put(\"finalnet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"SALDO_FINAL\").add(initialNet))));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", rs.getString(\"periodid\"));\n /*\n * if((initialDr.compareTo(new BigDecimal(0)) > 0) || (initialCr.compareTo(new\n * BigDecimal(0)) > 0) || (initialNet.compareTo(new BigDecimal(0)) > 0)) { tra.put(\"type\",\n * \"1\"); } else\n */\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = rs.getString(\"uniquecode\");\n }\n\n result.put(\"list\", array);\n }\n log4j.debug(\"has lsit:\" + result.has(\"list\"));\n if (result.has(\"list\")) {\n JSONArray finalres = result.getJSONArray(\"list\");\n JSONObject json = null, json1 = null, json2 = null;\n log4j.debug(\"json.length:\" + finalres.length());\n for (int i = 0; i < finalres.length(); i++) {\n json = finalres.getJSONObject(i);\n log4j.debug(\"json.getString:\" + json.getString(\"uniquecode\"));\n if (json.getString(\"uniquecode\") != null) {\n String UniqueCode = json.getString(\"uniquecode\");\n String acctId = json.getString(\"accountId\");\n ElementValue type = OBDal.getInstance().get(ElementValue.class, acctId);\n JSONArray transaction = json.getJSONArray(\"transaction\");\n List<GLJournalApprovalVO> period = getAllPeriod(ClientId, fromDate, DateTo);\n List<String> periodIds = new ArrayList<String>(), tempPeriods = new ArrayList<String>();\n\n for (GLJournalApprovalVO vo : period) {\n periodIds.add(vo.getId());\n }\n\n tempPeriods = periodIds;\n\n for (int j = 0; j < transaction.length(); j++) {\n json1 = transaction.getJSONObject(j);\n periodId = json1.getString(\"periodid\");\n tempPeriods.remove(periodId);\n }\n log4j.debug(\"size:\" + tempPeriods.size());\n if (tempPeriods.size() > 0) {\n log4j.debug(\"jtempPeriods:\" + tempPeriods);\n count = 0;\n for (String missingPeriods : tempPeriods) {\n json2 = new JSONObject();\n json2.put(\"startdate\", Utility.getObject(Period.class, missingPeriods).getName());\n Date startdate = Utility.getObject(Period.class, missingPeriods).getStartingDate();\n json2.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\").format(startdate));\n json2.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"id\", acctId);\n json2.put(\"periodid\", missingPeriods);\n Long periodNo = Utility.getObject(Period.class, missingPeriods).getPeriodNo();\n if (new BigDecimal(periodNo).compareTo(new BigDecimal(1)) == 0\n && (type.getAccountType().equals(\"E\") || type.getAccountType().equals(\"R\"))) {\n json2.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"type\", \"1\");\n\n /*\n * count++; if(count > 0) { FrmPerStDate = getPedStrEndDate(OrgId, ClientId,\n * missingPeriods, null); FrmPerStDate = new\n * SimpleDateFormat(\"dd-MM-yyyy\").format(new\n * SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate)); }\n */\n\n } else {\n // Get the Last Opening and closing Balance Entry Date\n // If closing and opening is not happened then assign financial year start date\n Boolean isThereOpeningBeforeThePeriod = false;\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, missingPeriods);\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n isThereOpeningBeforeThePeriod = true;\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n\n FrmPerStDate = getPedStrEndDate(OrgId, ClientId, missingPeriods, null);\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n List<GLJournalApprovalVO> initial = selectInitialBal(UniqueCode,\n new SimpleDateFormat(\"dd-MM-yyyy\").format(startdate), FrmPerStDate,\n strStrDateFC, type.getAccountType(), 2, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO vo = initial.get(0);\n json2.put(\"initialDr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, (vo.getInitDr())));\n json2.put(\"initialCr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, (vo.getInitCr())));\n json2.put(\"initialNet\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, (vo.getInitNet())));\n if (((vo.getInitDr().compareTo(new BigDecimal(0)) > 0)\n || (vo.getInitCr().compareTo(new BigDecimal(0)) > 0)\n || (vo.getInitNet().compareTo(new BigDecimal(0)) > 0))\n || isThereOpeningBeforeThePeriod) {\n json2.put(\"type\", \"1\");\n } else\n json2.put(\"type\", \"0\");\n\n json2.put(\"finaldr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, new BigDecimal(0).add(vo.getInitDr())));\n json2.put(\"finalcr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, new BigDecimal(0).add(vo.getInitCr())));\n json2.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n new BigDecimal(0).add(vo.getInitNet())));\n\n }\n }\n\n transaction.put(json2);\n }\n }\n\n json.put(\"transaction\", transaction);\n }\n\n }\n log4j.debug(\"LIST:\" + list);\n log4j.debug(\"Acct PTD listofuniquecode:\" + listofuniquecode);\n\n List<GLJournalApprovalVO> period = getAllPeriod(ClientId, fromDate, DateTo);\n String tempYear = null;\n sqlQuery1 = \" select a.uniquecode,a.id from( select distinct coalesce(em_efin_uniquecode,acctvalue) as uniquecode ,f.account_id as id from fact_acct f where 1=1 \";\n if (strOrgFamily != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + strOrgFamily + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_CLIENT_ID IN (\" + ClientId + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + OrgId + \")\";\n sqlQuery1 += \" AND DATEACCT < TO_DATE(?) AND 1=1 \";\n if (accountId != null)\n sqlQuery1 += \"AND F.account_ID='\" + accountId + \"'\";\n if (BpartnerId != null)\n sqlQuery1 += \"AND F.C_BPARTNER_ID IN (\" + BpartnerId.replaceFirst(\",\", \"\") + \")\";\n if (productId != null)\n sqlQuery1 += \"AND F.M_PRODUCT_ID IN (\" + productId.replaceFirst(\",\", \"\") + \")\";\n if (projectId != null)\n sqlQuery1 += \"AND F.C_PROJECT_ID IN (\" + projectId.replaceFirst(\",\", \"\") + \")\";\n if (DeptId != null)\n sqlQuery1 += \"AND F.C_SALESREGION_ID IN (\" + DeptId.replaceFirst(\",\", \"\") + \")\";\n if (BudgetTypeId != null)\n sqlQuery1 += \"AND coalesce(F.C_CAMPAIGN_ID, (select c.C_CAMPAIGN_ID from C_CAMPAIGN c where em_efin_iscarryforward = 'N' and ad_client_id = F.ad_client_id limit 1))='\"\n + BudgetTypeId + \"'\";\n if (FunclassId != null)\n sqlQuery1 += \"AND F.C_ACTIVITY_ID IN (\" + FunclassId.replaceFirst(\",\", \"\") + \")\";\n if (User1Id != null)\n sqlQuery1 += \"AND F.USER1_ID IN (\" + User1Id.replaceFirst(\",\", \"\") + \")\";\n if (User2Id != null)\n sqlQuery1 += \"AND F.USER2_ID IN (\" + User2Id.replaceFirst(\",\", \"\") + \")\";\n if (AcctschemaId != null)\n sqlQuery1 += \"AND F.C_ACCTSCHEMA_ID ='\" + AcctschemaId + \"'\";\n\n if (uniqueCode != null)\n sqlQuery1 += \" AND (F.EM_EFIN_UNIQUECODE = '\" + uniqueCode\n + \"' or F.acctvalue='\" + uniqueCode + \"')\";\n if (listofuniquecode != null)\n sqlQuery1 += \" AND F.EM_EFIN_UNIQUECODE not in ( \" + listofuniquecode + \")\";\n sqlQuery1 += \" AND F.ISACTIVE='Y' \" + \" ) a, c_elementvalue ev \"\n + \" where a.id = ev.c_elementvalue_id and ev.elementlevel = 'S' \";\n if (strAccountFromValue != null)\n sqlQuery1 += \" AND EV.VALUE >= '\" + strAccountFromValue + \"'\";\n if (strAccountToValue != null)\n sqlQuery1 += \" AND EV.VALUE <= '\" + strAccountToValue + \"'\";\n st = conn.prepareStatement(sqlQuery1);\n st.setString(1, DateTo);\n log4j.debug(\"Acct PTD afterlist:\" + st.toString());\n rs = st.executeQuery();\n while (rs.next()) {\n ElementValue type = OBDal.getInstance().get(ElementValue.class, rs.getString(\"id\"));\n for (GLJournalApprovalVO vo : period) {\n\n if (tempYear != null) {\n if (!tempYear.equals(vo.getStartdate().split(\"-\")[2])) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n } else {\n tempYear = vo.getStartdate().split(\"-\")[2];\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, vo.getId());\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"uniquecode\"),\n vo.getStartdate(), FrmPerStDate, strStrDateFC, type.getAccountType(), 1, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO VO = initial.get(0);\n initialDr = VO.getInitDr();\n initialCr = VO.getInitCr();\n initialNet = VO.getInitNet();\n\n }\n if (tempUniqCode.equals(rs.getString(\"uniquecode\"))) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n } else {\n obj = new JSONObject();\n obj.put(\"uniquecode\", rs.getString(\"uniquecode\"));\n obj.put(\"accountId\", rs.getString(\"id\"));\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = rs.getString(\"uniquecode\");\n }\n }\n\n }\n }\n // Transaction not exists for the period\n else if (!result.has(\"list\")) {\n\n List<GLJournalApprovalVO> period = getAllPeriod(ClientId, fromDate, DateTo);\n String tempYear = null;\n\n if (uniqueCode != null) {\n ElementValue type = OBDal.getInstance().get(ElementValue.class, inpcElementValueIdFrom);\n for (GLJournalApprovalVO vo : period) {\n\n if (tempYear != null) {\n if (!tempYear.equals(vo.getStartdate().split(\"-\")[2])) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n } else {\n tempYear = vo.getStartdate().split(\"-\")[2];\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, vo.getId());\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n\n List<GLJournalApprovalVO> initial = selectInitialBal(uniqueCode, vo.getStartdate(),\n FrmPerStDate, strStrDateFC, type.getAccountType(), 1, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO VO = initial.get(0);\n initialDr = VO.getInitDr();\n initialCr = VO.getInitCr();\n initialNet = VO.getInitNet();\n\n }\n if (tempUniqCode.equals(uniqueCode)) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n } else {\n obj = new JSONObject();\n obj.put(\"uniquecode\", uniqueCode);\n obj.put(\"accountId\", accountId);\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = uniqueCode;\n }\n }\n result.put(\"list\", array);\n } else {\n\n sqlQuery1 = \" select a.uniquecode,a.id from( select distinct coalesce(em_efin_uniquecode,acctvalue) as uniquecode ,f.account_id as id from fact_acct f where 1=1 \";\n if (strOrgFamily != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + strOrgFamily + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_CLIENT_ID IN (\" + ClientId + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + OrgId + \")\";\n sqlQuery1 += \" AND DATEACCT < TO_DATE(?) AND 1=1 \";\n if (accountId != null)\n sqlQuery1 += \"AND F.account_ID='\" + accountId + \"'\";\n if (BpartnerId != null)\n sqlQuery1 += \"AND F.C_BPARTNER_ID IN (\" + BpartnerId.replaceFirst(\",\", \"\") + \")\";\n if (productId != null)\n sqlQuery1 += \"AND F.M_PRODUCT_ID IN \" + productId;\n if (projectId != null)\n sqlQuery1 += \"AND F.C_PROJECT_ID IN (\" + projectId.replaceFirst(\",\", \"\") + \")\";\n if (DeptId != null)\n sqlQuery1 += \"AND F.C_SALESREGION_ID IN (\" + DeptId.replaceFirst(\",\", \"\") + \")\";\n if (BudgetTypeId != null)\n sqlQuery1 += \"AND coalesce(F.C_CAMPAIGN_ID, (select c.C_CAMPAIGN_ID from C_CAMPAIGN c where em_efin_iscarryforward = 'N' and ad_client_id = F.ad_client_id limit 1))='\"\n + BudgetTypeId + \"'\";\n if (FunclassId != null)\n sqlQuery1 += \"AND F.C_ACTIVITY_ID IN (\" + FunclassId.replaceFirst(\",\", \"\") + \")\";\n if (User1Id != null)\n sqlQuery1 += \"AND F.USER1_ID IN (\" + User1Id.replaceFirst(\",\", \"\") + \")\";\n if (User2Id != null)\n sqlQuery1 += \"AND F.USER2_ID IN (\" + User2Id.replaceFirst(\",\", \"\") + \")\";\n if (AcctschemaId != null)\n sqlQuery1 += \"AND F.C_ACCTSCHEMA_ID ='\" + AcctschemaId + \"'\";\n if (uniqueCode != null)\n sqlQuery1 += \"\t\tAND (F.EM_EFIN_UNIQUECODE = '\" + uniqueCode\n + \"' or F.acctvalue='\" + uniqueCode + \"')\";\n sqlQuery1 += \" AND F.ISACTIVE='Y' \" + \" ) a, c_elementvalue ev \"\n + \" where a.id = ev.c_elementvalue_id and ev.elementlevel = 'S' \";\n if (strAccountFromValue != null)\n sqlQuery1 += \"\t\tAND EV.VALUE >= '\" + strAccountFromValue + \"'\";\n if (strAccountToValue != null)\n sqlQuery1 += \"\t\tAND EV.VALUE <= '\" + strAccountToValue + \"'\";\n st = conn.prepareStatement(sqlQuery1);\n st.setString(1, DateTo);\n log4j.debug(\"Acct PTD:\" + st.toString());\n rs = st.executeQuery();\n while (rs.next()) {\n ElementValue type = OBDal.getInstance().get(ElementValue.class, rs.getString(\"id\"));\n for (GLJournalApprovalVO vo : period) {\n\n if (tempYear != null) {\n if (!tempYear.equals(vo.getStartdate().split(\"-\")[2])) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n } else {\n tempYear = vo.getStartdate().split(\"-\")[2];\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, vo.getId());\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"uniquecode\"),\n vo.getStartdate(), FrmPerStDate, strStrDateFC, type.getAccountType(), 1, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO VO = initial.get(0);\n initialDr = VO.getInitDr();\n initialCr = VO.getInitCr();\n initialNet = VO.getInitNet();\n\n }\n if (tempUniqCode.equals(rs.getString(\"uniquecode\"))) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n } else {\n obj = new JSONObject();\n obj.put(\"uniquecode\", rs.getString(\"uniquecode\"));\n obj.put(\"accountId\", rs.getString(\"id\"));\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = rs.getString(\"uniquecode\");\n }\n }\n result.put(\"list\", array);\n }\n }\n }\n\n } catch (Exception e) {\n log4j.error(\"Exception Creating Excel Sheet\", e);\n }\n return result;\n\n }",
"public static void logLinesOfCreditAndDetails(List<LineOfCredit> linesOfCredit){\n\t\t\n\t\tif(CollectionUtils.isEmpty(linesOfCredit)){\n\t\t\tSystem.out.println(\"WARNING: No lines of credit was povided in order to log its details\");\n\t\t}else{\n\t\t\tfor(LineOfCredit loc: linesOfCredit){\n\t\t\t\tlogLineOfCreditDetails(loc);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic List<FilghtDetails> searchFlightBySourceInUser(String source) {\n\t\tArrayList<FilghtDetails> sl = new ArrayList<FilghtDetails>();\n\t\tfor (int i = 0; i <= Repository.FLIGHT_DETAILS.size() - 1; i++) {\n\t\t\tFilghtDetails rf = Repository.FLIGHT_DETAILS.get(i);\n\t\t\tString rfs = rf.getSource();\n\t\t\tif (source.equalsIgnoreCase(rfs)) {\n\t\t\t\tsl.add(rf);\n\t\t\t}\n\t\t}\n\t\tif (sl.size() == 0) {\n\t\t\tthrow new AirlineException(\"Flight not found\");\n\t\t} else {\n\t\t\treturn sl;\n\t\t}\n\t}",
"protected String getFromSource() {\n return sourceTable;\n }",
"public TransmissionStats\n getSourceTransmissionStats();",
"private static int importCompletionInfoFromLog(File source, \n Frontier frontier, boolean retainFailures) throws IOException {\n // Scan log for all 'Fs' lines: add as 'alreadyIncluded'\n BufferedInputStream is = getBufferedInput(source);\n // create MutableString of good starting size (will grow if necessary)\n MutableString read = new MutableString(UURI.MAX_URL_LENGTH); \n int lines = 0; \n try {\n while (readLine(is,read)) {\n lines++;\n boolean wasSuccess = read.startsWith(F_SUCCESS);\n if (wasSuccess\n\t\t\t\t\t\t|| (retainFailures && read.startsWith(F_FAILURE))) {\n // retrieve first (only) URL on line \n String s = read.subSequence(3,read.length()).toString();\n try {\n UURI u = UURIFactory.getInstance(s);\n frontier.considerIncluded(u);\n if(wasSuccess) {\n if (frontier.getFrontierJournal() != null) {\n frontier.getFrontierJournal().\n finishedSuccess(u);\n }\n } else {\n // carryforward failure, in case future recovery\n // wants to no retain them as finished \n if (frontier.getFrontierJournal() != null) {\n frontier.getFrontierJournal().\n finishedFailure(u);\n }\n }\n } catch (URIException e) {\n e.printStackTrace();\n }\n }\n if((lines%PROGRESS_INTERVAL)==0) {\n // every 1 million lines, print progress\n LOGGER.info(\n \"at line \" + lines \n + \" alreadyIncluded count = \" +\n frontier.discoveredUriCount());\n }\n }\n } catch (EOFException e) {\n // expected in some uncleanly-closed recovery logs; ignore\n } finally {\n is.close();\n }\n return lines;\n }",
"@Override\n\tpublic void readAllAGBSources() {\n\t\t\n\t\tAPIController apic = new APIController();\n\t\t\n\t\tString s = apic.getAllAGBSources().toString();\n\t\t\n\t\tString [] sarray = s.split(\"],\");\n\t\t\n\t\tSystem.out.println(\"Alle AGBs der Datenbank: \");\n\t\tSystem.out.println(\" \");\n\t\t\n\t\tfor (int i=0; i<sarray.length; i++)\n\t\t{\n\t\t\tallAGBSources.add(sarray[i]);\n\t\t\t//System.out.println(sarray[i]);\n\t\t}\n\t\t\n\t\t\n\t\tIterator iter = allAGBSources.iterator();\n\t\t\n\t\twhile (iter.hasNext())\n\t\t{\n\t\t\tSystem.out.println(iter.next());\n\t\t}\n\n\t}",
"public ArrayList<String> ExtractAlignments(String src, String trg, String moses){\n\t\tArrayList<String> alignPoints = new ArrayList<String>();\n\t\t\n\t\tString patternString = \"\\\\s\\\\|(\\\\d+)\\\\-(\\\\d+)\\\\|\"; // pattern for alignment points, the indexes (ref to source phrase) are grouped\n\t\t\n\t\tPattern pattern = Pattern.compile(patternString);\n\t\tMatcher matcher = pattern.matcher(moses);\n\t\t\n\t\tint count=0; // how many times are we matching the pattern\n\t\tint istart=0; // index of input string\n\t\tString[] sourceWords = src.split(\" \");\n\t\tint src_start = 0;\n\t\tint src_end = 0;\n\t\tString src_phr = new String();\n\t\t\n\t\t// Traverse through each of the matches\n\t\t// the numbers inside the matched pattern will give us the index of the source phrases\n\t\t// the string preceding he matched pattern will give us the corresponding target string translation\n\t\twhile(matcher.find()) {\n\t\t\tcount++;\n\t\t\t//System.out.println(\"found: \" + count + \" : \" + matcher.start() + \" - \" + matcher.end() + \" for \" + matcher.group());\n\t\t\t\n\t\t\tsrc_start = new Integer(matcher.group(1)).intValue();\n\t\t\tsrc_end = new Integer(matcher.group(2)).intValue();\n\t\t\t//System.out.println(\"Srcphr: \" + matcher.group(1) + \" to \" + matcher.group(2) + sourceWords[src_start] + \" \" + sourceWords[src_end]);\n\t\t\t\n\t\t\t//alignPoints.add(moses.substring(istart,matcher.start()) + \" ||| \" + istart + \" ||| \" + matcher.start());\n\t\t\tsrc_phr = new String(sourceWords[src_start]);\n\t\t\tfor(int i=src_start+1; i<=src_end; i++){ // get the source phrases referenced by the alignment points\n\t\t\t\tsrc_phr += \" \" + sourceWords[i];\n\t\t\t}\n\t\t\talignPoints.add(src_phr + \" ||| \" + moses.substring(istart,matcher.start())); // add the source phrase and the corresponding target string translation separated by |||\n\t\t\tistart = matcher.end() + 1;\n\t\t}\n\t\t//System.out.println(\"The number of times we match patterns is \" + count);\n\t\t\n\t\treturn alignPoints;\n\t}",
"private void extractFile() {\n try (BufferedReader buffered_reader = new BufferedReader(new FileReader(source_file))) {\n String line;\n while((line = buffered_reader.readLine()) != null) {\n String spaceEscaped = line.replace(\" \", \"\");\n //file was read, each line is one of the elements of the file_read_lines list\n //line 0 is keyword \"TELL\"\n //line 1 is the knowledge base\n //line 2 is the keyword \"ASK\"\n //line 3 is the query\n file_read_lines.add(spaceEscaped);\n }\n\n //generate list of Horn clauses (raw) from the KB raw sentence\n //replace \\/ by |\n String kbLine = file_read_lines.get(1).replace(\"\\\\/\", \"|\");\n rawClauses = Arrays.asList(kbLine.split(\";\"));\n //query - a propositional symbol\n query = file_read_lines.get(3);\n } catch (IOException e) {\n //Return error if file cannot be opened\n error = true;\n System.out.println(source_file.toString() + \" is not found!\");\n }\n }",
"void showsame() {\n\t\tint count;\n\t\tprintstatus = idle;\n\t\tif (newinfo.other[printnewline] != printoldline) {\n\t\t\tSystem.err.println(\"BUG IN LINE REFERENCING\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tcount = blocklen[printoldline];\n\t\tprintoldline += count;\n\t\tprintnewline += count;\n\t}",
"public interface ICorrelateSource {\n\n\t/**\n\t * Decorates parseTree adding line and column attributes \n\t * to the concrete syntax nodes. \n\t * Concrete syntax node types are defined in \n\t * docs/schemas/SourceAST.xsd.\n\t * Line index origin is 0, and Column index origin is 0.\n\t */\n\tpublic Document decoratePosition (Document parseTree);\n\n\t/**\n\t * Checks if node is concrete syntax node.\n\t * Concrete syntax is carried by Element nodes\n\t * with \"@ID\" attribute or text child node.\n\t */\n\tpublic boolean isConcreteSyntax (Node node);\n\n\t/**\n\t * Gets text value for concrete syntax node.\n\t * @return value of DELIMITER ID attribute, or\n\t *\tfirst text node child, or null otherwise.\n\t */\n\tpublic String getTextValue (Node node);\n\n\t/**\n\t * Gets line number for given decorated node.\n\t * @return line, or -1 if not numeric or \"line\" attribute not found.\n\t */\n\tpublic int getDecoratedLine (Node node);\n\n\t/**\n\t * Gets beginning column number for given decorated node.\n\t * @return column, or -1 if not numeric or \"column\" attribute not found.\n\t */\n\tpublic int getDecoratedColumn (Node node);\n\n\t/**\n\t * Finds closest bounding decorated concrete syntax nodes\n\t * in AST for given span in source. \n\t * Source can be subset of ParseTree, e.g., for Groovy we\n\t * preserve \";\" in Deconstructed.xsl but it is removed from source.\n\t * So ignores a parse token if it is not found as next token in source,\n\t * i.e., is found but separated by non-whitespace.\n\t * Line index origin is 0, and Column index origin is 0.\n\t * fromLine < 0 is first line; fromColumn < 0 is first column.\n\t * toLine < 0 is last line; toColumn < 0 is end of toLine.\n\t * @return [fromLine, fromColumn, toLine, toColumn]\n\t */\n\tpublic int[] findDecoratedSpan (Document parseTree,\n\t\t\tint fromLine, int fromColumn,\n\t\t\tint toLine, int toColumn);\n\n\t/**\n\t * Extracts lines from source for the span defined by the line\n\t * and column numbers in the closest bounding decorated nodes.\n\t * Decorates extracted lines with \"^\" symbols for span start and end.\n\t * Line index origin is 0, and Column index origin is 0.\n\t * fromLine < 0 is first line; fromColumn < 0 is first column.\n\t * toLine < 0 is last line; toColumn < 0 is end of toLine.\n\t */\n\tpublic String extractDecoratedLines (int fromLine, int fromColumn,\n\t\t\tint toLine, int toColumn);\n\n\t/**\n\t * Extracts line with corresponding line number from source.\n\t * Line index origin is 0.\n\t * @return Last line if line > number of lines in source,\n\t *\tor entire source if line < 0,\n\t *\tor empty string if source was null.\n\t */\n\tpublic String getSourceLine (int line);\n\n\t/**\n\t * Gets number of lines in source.\n\t */\n\tpublic int getNumLines ();\n\n //====================================================================\n // Setters and defaults.\n // The setters are non-static for Spring dependency injection.\n //====================================================================\n\n\t/**\n\t * Gets default source line separator.\n\t */\n\tpublic String getDefaultSourceLineSeparator ();\n\n\t/**\n\t * Sets default source line separator.\n\t */\n\tpublic void setDefaultSourceLineSeparator (String linesep);\n\n\t/**\n\t * Gets default line separator for decorated extracts.\n\t */\n\tpublic String getDefaultExtractLineSeparator ();\n\n\t/**\n\t * Sets default line separator for decorated extracts.\n\t */\n\tpublic void setDefaultExtractLineSeparator (String linesep);\n\n\t/**\n\t * Gets source line separator.\n\t */\n\tpublic String getSourceLineSeparator ();\n\n\t/**\n\t * Sets source line separator.\n\t */\n\tpublic void setSourceLineSeparator (String linesep);\n\n\t/**\n\t * Gets line separator for decorated extracts \n\t * using extractDecoratedLines.\n\t */\n\tpublic String getExtractLineSeparator ();\n\n\t/**\n\t * Sets line separator for decorated extracts\n\t * using extractDecoratedLines.\n\t */\n\tpublic void setExtractLineSeparator (String linesep);\n\n\t/**\n\t * Gets XML concrete syntax node names used in correlating source.\n\t */\n\tpublic String[] getConcreteSyntaxNodes ();\n\n\t/**\n\t * Sets XML concrete syntax node names used in correlating source.\n\t */\n\tpublic void setConcreteSyntaxNodes (String[] nodes);\n\n\t/**\n\t * Gets source to correlate.\n\t */\n\tpublic String getSource ();\n\n\t/**\n\t * Sets source to correlate.\n\t */\n\tpublic void setSource (String source);\n\n}",
"public ArrayList<TransactionDetailByAccount> getMissionChecksByAccount(\n\t\t\tlong accountId, FinanceDate start, FinanceDate end, long companyId)\n\t\t\tthrows AccounterException {\n\t\tSession session = HibernateUtil.getCurrentSession();\n\t\tArrayList<TransactionDetailByAccount> list = new ArrayList<TransactionDetailByAccount>();\n\n\t\tAccount account = (Account) session.get(Account.class, accountId);\n\t\tif (account == null) {\n\t\t\tthrow new AccounterException(Global.get().messages()\n\t\t\t\t\t.pleaseSelect(Global.get().messages().account()));\n\t\t}\n\t\tList result = new ArrayList();\n\t\tif (account.getType() == Account.TYPE_OTHER_CURRENT_ASSET) {\n\t\t\tresult = session\n\t\t\t\t\t.getNamedQuery(\"get.all.invoices.by.account\")\n\t\t\t\t\t.setParameter(\"startDate\", start.getDate())\n\t\t\t\t\t.setParameter(\"endDate\", end.getDate())\n\t\t\t\t\t.setParameter(\"companyId\", companyId)\n\t\t\t\t\t.setParameter(\"accountId\", accountId)\n\t\t\t\t\t.setParameter(\"tobePrint\", \"TO BE PRINTED\",\n\t\t\t\t\t\t\tEncryptedStringType.INSTANCE)\n\t\t\t\t\t.setParameter(\"empty\", \"\", EncryptedStringType.INSTANCE)\n\t\t\t\t\t.list();\n\t\t} else if (account.getType() == ClientAccount.TYPE_BANK) {\n\t\t\tresult = session\n\t\t\t\t\t.getNamedQuery(\"get.missing.checks.by.account\")\n\t\t\t\t\t.setParameter(\"accountId\", accountId)\n\t\t\t\t\t.setParameter(\"startDate\", start.getDate())\n\t\t\t\t\t.setParameter(\"endDate\", end.getDate())\n\t\t\t\t\t.setParameter(\"companyId\", companyId)\n\t\t\t\t\t.setParameter(\"tobePrint\", \"TO BE PRINTED\",\n\t\t\t\t\t\t\tEncryptedStringType.INSTANCE)\n\t\t\t\t\t.setParameter(\"empty\", \"\", EncryptedStringType.INSTANCE)\n\t\t\t\t\t.list();\n\t\t}\n\t\tIterator iterator = result.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tObject[] objects = (Object[]) iterator.next();\n\t\t\tTransactionDetailByAccount detailByAccount = new TransactionDetailByAccount();\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionId((Long) (objects[0] != null ? objects[0]\n\t\t\t\t\t\t\t: 0));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionType((Integer) (objects[1] != null ? objects[1]\n\t\t\t\t\t\t\t: 0));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionNumber((String) (objects[2] != null ? objects[2]\n\t\t\t\t\t\t\t: \"\"));\n\t\t\tClientFinanceDate date = new ClientFinanceDate(\n\t\t\t\t\t(Long) (objects[3] != null ? objects[3] : 0));\n\t\t\tdetailByAccount.setTransactionDate(date);\n\t\t\tdetailByAccount.setName((String) (objects[4] != null ? objects[4]\n\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setAccountName((String) (objects[5] != null ? objects[5]\n\t\t\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount.setMemo((String) (objects[6] != null ? objects[6]\n\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount.setTotal((Double) (objects[7] != null ? objects[7]\n\t\t\t\t\t: 0.0));\n\t\t\tlist.add(detailByAccount);\n\n\t\t}\n\t\treturn list;\n\t}",
"@Override\n\tpublic void readAllAGBVersionsOfSource(int sourceId, int version1, int version2) {\n\t\t\n\t\tAPIController apic = new APIController();\n\t\tString sources = apic.getAllAGBVersionsOfSource(sourceId).toString();\n\t\t\n\t\tString agbtext1 = null;\n\t\tString agbtext2 = null;\n\t\t\n\t\t// Version in allAGBVersions[0] ist die neuste Version, z.B. Version 3\n\t\t// allAGBVersions[1], Version 2\n\t\t// allAGBVersions[2], Version 1\n\t\tallAGBVersions = sources.split(\"],\");\n\t\t//System.out.println(\"Array-Laenge: \" + allAGBVersions.length);\n\t\tint counter = allAGBVersions.length;\n\t\t//System.out.println(\"Counter-Laenge: \" + counter);\n\t\t\n\t\tallAGBVersionsCorrectOrder = new String[counter+1];\n\t\t//System.out.println(\"Array-Laenge: \" + allAGBVersionsCorrectOrder.length);\n\t\tint counter2 = counter;\n\t\t\n\t\tfor (int i = 0; i < allAGBVersions.length; i++)\n\t\t{\n\t\t\tallAGBVersionsCorrectOrder[counter2] = allAGBVersions[i];\n\t\t\tcounter2--;\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\tfor (int i = counter; i < 0 ; i--)\n\t\t{\n\t\t\tallAGBVersionsCorrectOrder[c] = allAGBVersions[i];\n\t\t\tc++;\n\t\t\t\n\t\t}*/\n\t\t\n\t\t//System.out.print(\"Korrigierte Arraylaenge: \" + allAGBVersionsCorrectOrder.length);\n\t\t\n\t\tfor (int i = 1; i < allAGBVersionsCorrectOrder.length; i++)\n\t\t{\n\t\t\tif (i == version1)\n\t\t\t{\n\t\t\t\tagbtext1 = allAGBVersionsCorrectOrder[i];\n\t\t\t\t//System.out.println(\"AGB1-Version gesetzt: \");\n\t\t\t}\n\t\t\t\n\t\t\tif (i == version2)\n\t\t\t{\n\t\t\t\tagbtext2 = allAGBVersionsCorrectOrder[i];\n\t\t\t\t//System.out.println(\"AGB2-Version gesetzt: \");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Suche nach AGB-Version: \");\n\t\t\t}\n\t\t} //endfor\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//System.out.println(\"AGB-Version1: \"+ agbtext1);\n\t\t//System.out.println(\"AGB-Version2: \"+ agbtext2);\n\t\t\n\t\t// Speichere Version1 mit BreakIterator in ArrayListe\n\t\tSystem.out.println(\"Verarbeite AGB-Version1 mit BreakIterator: \");\n\n\t\tLocale currentLocale1 = new Locale(\"de\", \"DE\");\n\t\t\n\t\tBreakIterator sentenceIterator1 = BreakIterator.getSentenceInstance(currentLocale1);\n\t\tsentenceIterator1.setText(agbtext1);\n\n\t\tfor (int last = sentenceIterator1.first(), next = sentenceIterator1.next();\n\t\t next != BreakIterator.DONE;\n\t\t last = next, next = sentenceIterator1.next())\n\t\t {\n\t\t CharSequence part = agbtext1.subSequence( last, next );\n\t\t \n\t\t if (Character.isLetterOrDigit(part.charAt(0)))\n\t\t {\n\t\t \t//System.out.println(part);\n\t\t \tagbversion1.add((String)part);\n\t\t } // endif\n\t\t \n\t\t } //endfor\n\t\t\n\t\t\n\t\t// Speichere Version2 mit BreakIterator in ArrayListe\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\"Verarbeite AGB-Version2 mit BreakIterator: \");\n\t\tSystem.out.println(\" \");\n\n\t\tLocale currentLocale2 = new Locale(\"de\", \"DE\");\n\t\t\n\t\tBreakIterator sentenceIterator2 = BreakIterator.getSentenceInstance(currentLocale2);\n\t\tsentenceIterator2.setText(agbtext2);\n\n\t\tfor (int last = sentenceIterator2.first(), next = sentenceIterator2.next();\n\t\t next != BreakIterator.DONE;\n\t\t last = next, next = sentenceIterator2.next())\n\t\t {\n\t\t CharSequence part = agbtext2.subSequence( last, next );\n\t\t \n\t\t if (Character.isLetterOrDigit(part.charAt(0)))\n\t\t {\n\t\t \t//System.out.println(part);\n\t\t \tagbversion2.add((String)part);\n\t\t } // endif\n\t\t \n\t\t } //endfor\n\t\t\n\t\t\n\t}",
"public void findEquivalentNamedNodes(String domsource){\n \t\tIndexHits<Node> hits = null;\n \t\tNode startnode = null;\n \ttry{\n \t\thits = ALLTAXA.getNodeIndex(NodeIndexDescription.TAX_SOURCES).get(\"source\", domsource);\n \t\tstartnode = hits.getSingle().getSingleRelationship(RelType.METADATAFOR, Direction.OUTGOING).getEndNode();//there should only be one source with that name\n \t}finally{\n \t\thits.close();\n \t}\n \tIndex<Node> taxNames = ALLTAXA.getNodeIndex(NodeIndexDescription.TAXON_BY_NAME);\n \t\n \tfor(Node curnode: TAXCHILDOF_TRAVERSAL.traverse(startnode).nodes()){\n \t\tIndexHits<Node> nhits = null;\n \t\tSystem.out.println((String)curnode.getProperty(\"name\")+\":\"+curnode);\n \t\ttry{\n \t\t\tnhits = taxNames.get(\"name\", (String)curnode.getProperty(\"name\"));\n \t\t\tfor (Node tnode: nhits){\n \t\t\t\tSystem.out.println(tnode);\n \t\t\t}\n \t\t}finally{\n \t\t\tnhits.close();\n \t\t}\n \t}\n }",
"public ArrayList getSourceTableList(String tableName) {\r\n\t\tArrayList sourceTableList = new ArrayList();\r\n\t\tHashSet tableSet = new HashSet();\r\n\t\t// whether the table is a volatile table\r\n\t\tint index = -1;\r\n\t\tindex = volatileIndex(tableName);\r\n\t\t// is a volatile table\r\n\t\tif (index >= 0) {\r\n\t\t\tfor (int i = 0; i < volatileTableSourceList.size(); i++) {\r\n\t\t\t\tHashMap volatileTable = (HashMap) volatileTableSourceList.get(i);\r\n\t\t\t\tInteger volatileIndex = (Integer) volatileTable.get(\"sqlIndex\");\r\n\t\t\t\tif (index == volatileIndex.intValue()) {\r\n\t\t\t\t\ttableSet = (HashSet) volatileTable.get(\"sourceTableList\");\r\n\t\t\t\t\tArrayList tableList = new ArrayList(tableSet);\r\n\r\n\t\t\t\t\tfor (int j = 0; j < tableList.size(); j++) {\r\n\t\t\t\t\t\tHashMap table = (HashMap) tableList.get(j);\r\n\t\t\t\t\t\tString sTable_name = (String) table.get(\"sourceTable\");\r\n\t\t\t\t\t\t// String expressionExp = (String) table.get(\"expression\");\r\n\t\t\t\t\t\tHashMap sTable = new HashMap();\r\n\t\t\t\t\t\tsTable.put(\"sourceTable\", sTable_name);\r\n\t\t\t\t\t\tsTable.put(\"targetTable\", tableName);\r\n\t\t\t\t\t\t// sTable.put(\"expression\",expressionExp);\r\n\t\t\t\t\t\tsourceTableList.add(sTable);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tindex = commonIndex(tableName);\r\n\t\t\tif (index >= 0) {\r\n\t\t\t\tfor (int i = 0; i < commonTableSourceList.size(); i++) {\r\n\t\t\t\t\tHashMap commonTable = (HashMap) commonTableSourceList.get(i);\r\n\t\t\t\t\tInteger commonIndex = (Integer) commonTable.get(\"sqlIndex\");\r\n\t\t\t\t\tif (index == commonIndex.intValue()) {\r\n\t\t\t\t\t\ttableSet = (HashSet) commonTable.get(\"sourceTableList\");\r\n\t\t\t\t\t\tArrayList tableList = new ArrayList(tableSet);\r\n\r\n\t\t\t\t\t\tfor (int j = 0; j < tableList.size(); j++) {\r\n\t\t\t\t\t\t\tHashMap table = (HashMap) tableList.get(j);\r\n\t\t\t\t\t\t\tString sTable_name = (String) table.get(\"sourceTable\");\r\n\t\t\t\t\t\t\t// String expressionExp = (String) table.get(\"expression\");\r\n\t\t\t\t\t\t\tHashMap sTable = new HashMap();\r\n\t\t\t\t\t\t\tsTable.put(\"sourceTable\", sTable_name);\r\n\t\t\t\t\t\t\tsTable.put(\"targetTable\", tableName);\r\n\t\t\t\t\t\t\t// sTable.put(\"expression\",expressionExp);\r\n\t\t\t\t\t\t\tsourceTableList.add(sTable);\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\tHashMap sourceTable = new HashMap();\r\n\t\t\t\tsourceTable.put(\"sourceTable\", \"\");\r\n\t\t\t\tsourceTable.put(\"targetTable\", tableName);\r\n\t\t\t\t// sourceTable.put(\"expression\",expString);\r\n\t\t\t\tsourceTableList.add(sourceTable);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new ArrayList(new HashSet(sourceTableList));\r\n\t}",
"public static List<PlannedTerm> getPlannedTermsFromStartAtp() {\r\n PlanItemLookupableHelperBase planItemLookupableHelperBase = new PlanItemLookupableHelperBase();\r\n List<PlannedCourseDataObject> plannedCourseDataObjects = new ArrayList<PlannedCourseDataObject>();\r\n String startAtp = AtpHelper.getFirstPlanTerm();\r\n try {\r\n plannedCourseDataObjects = planItemLookupableHelperBase.getPlannedCoursesFromAtp(PlanConstants.LEARNING_PLAN_ITEM_TYPE_PLANNED, getUserSessionHelper().getStudentId(), startAtp, false);\r\n } catch (Exception e) {\r\n logger.error(\"Could not retrieve the planItems\" + e);\r\n }\r\n return populatePlannedTerms(plannedCourseDataObjects, null, null, null, null, 6, false);\r\n }",
"List<TargetTable> retrieveShortCadenceTargetTable(TargetTable ttable);",
"java.util.List getAlignmentRefs();",
"@Override\n\tpublic List<String> getAGBVersion2WithLineNumbers() {\n\t\t\n\t\treturn version2WithLineNumbers;\n\t}",
"BillingSource billingSource();",
"public List<String> getAllXrefs() {\n\t List<String> xrefList = new ArrayList<String>();\n\t // Select All Query\n\t String selectQuery = \"SELECT * FROM \" + XREF_TABLE;\n\t \n\t SQLiteDatabase db = this.getWritableDatabase();\n\t Cursor cursor = db.rawQuery(selectQuery, null);\n\t \n\t // looping through all rows and adding to list\n\t if (cursor.moveToFirst()) {\n\t do {\n\t xrefList.add(\"Barcode Number: \" + cursor.getString(0) + \" Order Number: \" + cursor.getString(1));\n\t } while (cursor.moveToNext());\n\t }\n\t \n\t // return contact list\n\t return xrefList;\n\t}",
"public String getJP_BankName_Kana_Line();",
"public static void testGetLinesOfCredit() throws MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testGetLinesOfCredit\");\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tInteger offset = 0;\n\t\tInteger limit = 5;\n\n\t\t// Test getting all lines of credit\n\t\tList<LineOfCredit> linesOfCredit = linesOfCreditService.getAllLinesOfCredit(offset, limit);\n\t\tSystem.out.println(\"Total Lines of Credit=\" + linesOfCredit.size());\n\t\tif (linesOfCredit.size() == 0) {\n\t\t\tSystem.out.println(\"*** No Lines of Credit to test ***\");\n\t\t\treturn;\n\t\t}\n\t\tfor (LineOfCredit loc : linesOfCredit) {\n\t\t\tSystem.out.println(\"\\tID=\" + loc.getId() + \"\\tAmount=\" + loc.getAmount() + \"\\tAvailable Credit Amount=\"\n\t\t\t\t\t+ loc.getAvailableCreditAmount());\n\t\t}\n\t\t// Test get Line Of Credit details\n\t\tString lineofcreditId = linesOfCredit.get(0).getId();\n\t\tSystem.out.println(\"Getting details for Line of Credit ID=\" + lineofcreditId);\n\t\tLineOfCredit lineOfCredit = linesOfCreditService.getLineOfCredit(lineofcreditId);\n\t\t// Log returned LoC\n\t\tSystem.out.println(\"Line of Credit. ID=\" + lineOfCredit.getId() + \"\\tAmount=\" + lineOfCredit.getAmount()\n\t\t\t\t+ \"\\tOwnerType=\" + lineOfCredit.getOwnerType() + \"\\tHolderKey=\"\n\t\t\t\t+ lineOfCredit.getAccountHolder().getAccountHolderKey());\n\t\t\n\t}",
"public TemSourceAccountingLine getAdvanceAccountingLine(int index) {\n while (getAdvanceAccountingLines().size() <= index) {\n getAdvanceAccountingLines().add(createNewAdvanceAccountingLine());\n }\n return getAdvanceAccountingLines().get(index);\n }",
"protected int[] parserLine(String source, int Line) {\n\t\tint[] Offset = new int[2];\n\t\tString[] Source = source.split(\"\\n\");\n\t\tint actualLine = 1;\n\t\tint counterChar = 0;\n\t\tfor(String src:Source){\n\t\t\tif(actualLine == Line){ // desired line\n\t\t\t\tOffset[0] = counterChar; //first char\n\t\t\t\tOffset[1] = counterChar+src.length()+1; //last char\n\t\t\t\treturn Offset;\n\t\t\t}\n\t\t\tcounterChar+=src.length()+1;\n\t\t\tactualLine++;\n\t\t}\n\t\treturn null;\n\t}",
"public String getCitationStringForSource(DenotationalTerm source,\n CycAccess cycAccess) throws CycConnectionException;",
"public void testExistingSeqWithChangedNamedSrc() throws Exception\n {\n Integer C30 = this.cellLineLookup.lookup(\"C30\");\n String sql = \"select * from prb_source where _source_key \" +\n \"= -20 and _cellLine_key = \" + C30.toString();\n ResultsNavigator nav = sqlMgr.executeQuery(sql);\n assertTrue(!nav.next()); // assure no records found\n String accid = \"T00313\";\n MSRawAttributes raw = new MSRawAttributes();\n raw.setOrganism(\"mouse, laboratory\");\n raw.setLibraryName(\"name2\");\n raw.setCellLine(\"C30\");\n Integer seqKey = new Integer(-300);\n msProcessor.processExistingSeqSrc(accid, seqKey, \"oldRaw\", raw);\n nav = sqlMgr.executeQuery(sql);\n assertTrue(!nav.next()); // assure no records still not found\n // the association should have changed\n sql = \"select _source_key from seq_source_assoc where \" +\n \"_sequence_key = -300\";\n nav = sqlMgr.executeQuery(sql);\n nav.next();\n assertEquals(nav.getRowReference().getInt(1), new Integer(-30));\n }",
"private String getAdress(NodoAvl tmp){\n StringBuilder sb = new StringBuilder();\n sb.append(tmp.direcciones.graphBigList(tmp.nom+\"Add\"));\n sb.append(tmp.nom).append(\"->\").append(tmp.nom).append(\"Add0\")\n .append(\";\\n\");\n return sb.toString();\n }",
"public ArrayList<String> getMaterialCreditNotes() {\n\t\tArrayList<String> materialCreditNotes = new ArrayList<String>();\n\t\t\n\t\t// Assumption: These notes follow a well defined structure.\n\t\t// I.e. <intergalactic number string> <Material Name> is <Number> Credits\n\t\t// Material names are expected to begin with a capital letter\n\t\t// The word Credits is also expected to begin with a capital letter\n\t\tString validNoteRegex = \"^([a-z]+\\\\s+)*[A-Z]{1}[a-z]*\\\\s+is\\\\s+[0-9]+\\\\s+Credits$\";\n\t\t\n\t\tfor (String line : contentsByLine) {\n\t\t\t\n\t\t\tPattern notePattern = Pattern.compile(validNoteRegex);\n\t\t\tMatcher match = notePattern.matcher(line);\n\t\t\t\n\t\t\tif (match.find()) {\n\t\t\t\tmaterialCreditNotes.add(line);\n\t\t\t}\n\t\t}\n\t\n\t\treturn materialCreditNotes;\n\t}",
"public String getSourceTable();",
"private void getDetailedDebitAgingDATE(List<DebtorsDetailedAgingHelper> agingList, Date atDate, EMCUserData userData) {\n getDetailedDebitAgingNONE(agingList, atDate, userData);\n\n for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n//Lines to be removed from aging helper. (Transactions allocated in full) These should be ignored while processing.\n//List<DebtorsDetailedAgingLineDS> toRemove = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n//Get all debit and credit transactions in date range and allocate. Allocate credits to debits.\n//The list of aging lines will be ordered by date.\ncredit: for (DebtorsDetailedAgingLineDS agingLine : agingHelper.getAgingLines()) {\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) < 0 && agingLine.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n DebtorsDetailedAgingLineDS credit = agingLine;\n\n//Loop again, looking for debits\ndebit: for (DebtorsDetailedAgingLineDS otherAgingLine : agingHelper.getAgingLines()) {\n if (otherAgingLine.getAmount().compareTo(BigDecimal.ZERO) < 0 && otherAgingLine.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n DebtorsDetailedAgingLineDS debit = otherAgingLine;\n\n //Get difference between debit and credit balances.\n BigDecimal difference = debit.getBalance().add(credit.getBalance());\n if (difference.compareTo(BigDecimal.ZERO) > 0) {\n //Debit greater than credit. Allocate credit in full.\n credit.setBalance(BigDecimal.ZERO);\n debit.setBalance(debit.getBalance().add(credit.getBalance()));\n\n //toRemove.add(credit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n } else if (difference.compareTo(BigDecimal.ZERO) < 0) {\n //Credit greater than debit.\n debit.setBalance(BigDecimal.ZERO);\n credit.setBalance(credit.getBalance().subtract(debit.getBalance()));\n\n //toRemove.add(debit);\n\n //Debit consumed\n continue;\n } else {\n //Debit == credit. Consume both.\n debit.setBalance(BigDecimal.ZERO);\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n //toRemove.add(debit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n }\n } else {\n //Credit, continue to next line.\n continue;\n }\n }\n } else {\n //Debit, continue to next line\n continue;\n }\n }\n\n //Remove balanced lines.\n //agingHelper.getAgingLines().removeAll(toRemove);\n }\n }",
"private static Set<EMailAddress> getFlowLaneSampleTrackingRecipients(Sample flowLaneSample)\n {\n // Recipients are taken from properties of sequencing sample\n // that is a parent of the flow lane sample.\n assert flowLaneSample != null;\n return getSequencingSampleTrackingRecipients(flowLaneSample.getParents());\n }",
"@RequestMapping(value = \"/txfilesource\", method = RequestMethod.GET)\n public\n @ResponseBody\n Collection<Description> getTxFileSourceList(Locale locale) {\n return Collections2.transform(\n translationSourceService.getTxFileSourceList(),\n Description.fromDescriptible(strings, locale)\n );\n }",
"public List<String> codeAnalyse(List<String> srcLines) {\n\t\t// Initializes the return List\n\t\tList<String> listForCsv = new ArrayList<String>();\n\t\t\n\t\t// Declares main comment pattern\n\t\tPattern patComments = Pattern.compile(\"^\\\\*.*|//.*|/\\\\*.*\");\n\t\t\n\t\t/*\n\t\t * Initializes our metrics loc(Lines of code),\n\t\t * noc(Number of classes), nom(Number of methods)\n\t\t */\n\t\tint loc = 0;\n\t\tint noc = 0;\n\t\tint nom = 0;\n\t\t\n\t\t// Variable to check if the loop is inside a multiple line comment\n\t\tboolean multLine = false;\n\t\t\n\t\t// Looping through the lines of code\n\t\tfor (String line: srcLines) {\n\t\t\tMatcher matcher = patComments.matcher(line);\n\t\t\t// If line is not a comment\n\t\t\tif (!matcher.matches()) {\n\t\t\t\tif (multLine == false) {\n\t\t\t\t\t// Regex for checking if line represents the beginning of a class\n\t\t\t\t\tif (line.matches(\"(?:\\\\s*(public|private|native|abstract|strictfp|abstract\"\n\t\t\t\t\t\t\t+ \"|protected|final)\\\\s+)?(?:static\\\\s+)?class.*\")) {\n\t\t\t\t\t\t// If true then increases noc by 1\n\t\t\t\t\t\tnoc ++;\n\t\t\t\t\t}\n\t\t\t\t\t// Regex for checking if line represents the beginning of a method\n\t\t\t\t\tif (line.matches(\"((public|private|native|static|final|protected\"\n\t\t\t\t\t\t\t+ \"|abstract|transient)+\\\\s)+[\\\\$_\\\\w\\\\<\\\\>\\\\[\\\\]]*\\\\s+[\\\\$_\\\\w]+\\\\([^\"\n\t\t\t\t\t\t\t+ \"\\\\)]*\\\\)?\\\\s*\\\\{?[^\\\\}]*\\\\}?\")) {\n\t\t\t\t\t\t// If true then increases nom by 1\n\t\t\t\t\t\tnom ++;\n\t\t\t\t\t}\n\t\t\t\t\t/*\n\t\t\t\t\t * Line is not a comment neither a blank line(insured while\n\t\t\t\t\t * reading the file) so we add 1 to the loc variable\n\t\t\t\t\t */ \n\t\t\t\t\tloc ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Potential multiple line comment starter\n\t\t\tif (line.matches(\"/\\\\*.*\")) {\n\t\t\t\tmultLine = true;\n\t\t\t}\n\t\t\t// Potential multiple line comment ender\n\t\t\tif (line.matches(\".*\\\\*/.*$\")) {\n\t\t\t\tmultLine = false;\n\t\t\t}\n\t\t}\n\t\t// Adds metrics to the return list\n\t\tlistForCsv.add(String.valueOf(loc));\n\t\tlistForCsv.add(String.valueOf(noc));\n\t\tlistForCsv.add(String.valueOf(nom));\n\t\t\n\t\t// Returns the list\n\t\treturn listForCsv;\n\t}",
"private void IdentifyHeaderAndFooter() {\n receipt_Header = receipt_lines.length > 0 ? receipt_lines[0] : null;\n receipt_Footer = receipt_lines.length > 1 ? receipt_lines[receipt_lines.length - 1].split(\" \")[0] : null;\n }",
"public List<org.notima.generic.businessobjects.AccountingVoucher> toBoVouchers(AccountingReport ar, String lang) {\n\t\t\n\t\tList<org.notima.generic.businessobjects.AccountingVoucher> result = new ArrayList<org.notima.generic.businessobjects.AccountingVoucher>();\n\t\tif (ar==null || ar.getVouchers()==null) return result;\n\t\t\n\t\torg.notima.generic.businessobjects.AccountingVoucher dst;\n\n\t\tAccountingVoucherLine avl = null;\n\t\tList<AccountingVoucher> srcList = ar.getVouchers();\n\t\tfor (AccountingVoucher src : srcList) {\n\t\t\tdst = new org.notima.generic.businessobjects.AccountingVoucher();\n\t\t\tdst.setPrecision(DEFAULT_PRECISION);\n\t\t\tdst.setDescription(\"Svea Webpay \" + \n\t\t\t\t\tsrc.getPaymentTypeReference() + \" \" + Translator.getTranslation(src.getPaymentType(), lang));\n\t\t\t\n\t\t\tdst.setCostCenter(src.getCostCenter());\n\t\t\tdst.setProjectCode(src.getProjectCode());\n\t\t\t\n\t\t\tdst.setAcctDate(src.getAcctDate());\n\t\t\tdst.setSourceCurrency(src.getCurrency());\n\t\t\t\n\t\t\tresult.add(dst);\n\n\t\t\tif (src.getRevenues()!=null) {\n\t\t\t\tfor (RevenueLine rl : src.getRevenues()) {\n\t\t\t\t\t\n\t\t\t\t\tavl = null;\n\t\t\t\t\t\n\t\t\t\t\tif (rl.getTaxAmount()!=0) {\n\t\t\t\t\t\tavl = new AccountingVoucherLine(BigDecimal.valueOf(-rl.getTaxAmount()), AccountingType.LIABILITY_VAT);\n\t\t\t\t\t\tavl.setTaxKey(rl.getTaxKey());\n\t\t\t\t\t\tdst.addVoucherLine(avl);\n\t\t\t\t\t}\n\t\t\t\t\tif (rl.getTaxBase()!=0) {\n\t\t\t\t\t\tavl = new AccountingVoucherLine(BigDecimal.valueOf(-rl.getTaxBase()), \"?\".equals(rl.getTaxKey()) ? AccountingType.REVENUE_UNCLEAR : AccountingType.REVENUE);\n\t\t\t\t\t\tavl.setTaxKey(rl.getTaxKey());\n\t\t\t\t\t\tif (rl.getRevenueAcctNo()!=null && rl.getRevenueAcctNo().trim().length()>0) {\n\t\t\t\t\t\t\tavl.setAcctNo(rl.getRevenueAcctNo());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdst.addVoucherLine(avl);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (avl!=null && rl.getDescription()!=null) {\n\t\t\t\t\t\tavl.setDescription(rl.getDescription());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (src.getPayouts()!=null) {\n\t\t\t\tfor (PayoutLine pl : src.getPayouts()) {\n\t\t\t\t\t\n\t\t\t\t\tif (pl.getFeeAmount()!=0 || (pl.getFeeSpecification()!=null && pl.getFeeSpecification().size()>1)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (pl.getFeeSpecification()==null || pl.getFeeSpecification().isEmpty()) {\n\t\t\t\t\t\t\tavl = new AccountingVoucherLine(BigDecimal.valueOf(pl.getFeeAmount()), AccountingType.OTHER_EXPENSES_SALES);\n\t\t\t\t\t\t\tavl.setTaxKey(pl.getTaxKey());\n\t\t\t\t\t\t\tdst.addVoucherLine(avl);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// We have a fee specification\n\t\t\t\t\t\t\tdouble unspecifiedFee = pl.getFeeAmount() - pl.getSpecifiedFeeAmount();\n\t\t\t\t\t\t\tif (unspecifiedFee!=0) {\n\t\t\t\t\t\t\t\tavl = new AccountingVoucherLine(BigDecimal.valueOf(unspecifiedFee), AccountingType.OTHER_EXPENSES_SALES);\n\t\t\t\t\t\t\t\tavl.setTaxKey(pl.getTaxKey());\n\t\t\t\t\t\t\t\tdst.addVoucherLine(avl);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Iterate through fee specifications\n\t\t\t\t\t\t\tfor (FeeDetail fd : pl.getFeeSpecification()) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tavl = new AccountingVoucherLine(BigDecimal.valueOf(fd.getFee()), null);\n\t\t\t\t\t\t\t\tif (fd.getDescription()!=null && fd.getDescription().trim().length()>0) {\n\t\t\t\t\t\t\t\t\tavl.setDescription(fd.getDescription());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tavl.setTaxKey(pl.getTaxKey());\n\t\t\t\t\t\t\t\tmapWebpayFeeTypesToAccountingType(fd.getFeeType(), avl);\n\t\t\t\t\t\t\t\tdst.addVoucherLine(avl);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif (pl.getTaxAmount()!=0) {\n\t\t\t\t\t\tavl = new AccountingVoucherLine(BigDecimal.valueOf(pl.getTaxAmount()), AccountingType.CLAIM_VAT);\n\t\t\t\t\t\tavl.setTaxKey(pl.getTaxKey());\n\t\t\t\t\t\tdst.addVoucherLine(avl);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Change of balance\n\t\t\t\t\tif (pl.getChangeOfBalance()!=0) {\n\t\t\t\t\t\t avl = new AccountingVoucherLine(BigDecimal.valueOf(pl.getChangeOfBalance()), AccountingType.LIABILITY_OTHER);\n\t\t\t\t\t\tdst.addVoucherLine(avl);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (pl.getPaidOut()>0) {\n\t\t\t\t\t\tavl = new AccountingVoucherLine(BigDecimal.valueOf(pl.getPaidOut()), AccountingType.LIQUID_ASSET_CASH);\n\t\t\t\t\t\tdst.addVoucherLine(avl);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (dst.getBalance().abs().doubleValue() > maxRounding) {\n\t\t\t\tdst.balanceWithLine(AccountingType.UNKNOWN_BALANCE_TRX);\n\t\t\t} else {\n\t\t\t\t// Purge voucher (round to precision, remove zero lines and round the rest)\n\t\t\t\tdst.purge();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn result;\n\t\t\n\t}",
"private List<DataRecord> loadRefTableChanges() {\n \n final DataSource changesDataSource =\n ProjectUpdateWizardUtilities\n .createDataSourceForTable(ProjectUpdateWizardConstants.AFM_FLDS_TRANS);\n changesDataSource.addRestriction(Restrictions.in(\n ProjectUpdateWizardConstants.AFM_FLDS_TRANS, CHANGE_TYPE, DifferenceMessage.NEW.name()\n + \",\" + DifferenceMessage.REF_TABLE.name()));\n changesDataSource.addRestriction(Restrictions.eq(\n ProjectUpdateWizardConstants.AFM_FLDS_TRANS, CHOSEN_ACTION,\n Actions.APPLY_CHANGE.getMessage()));\n\n return changesDataSource.getRecords();\n }",
"public String getAllSources(Attribute attr){\r\n\t\tString allSources = attr.getSource();\r\n\t\tfor(Attribute curAttr: valInstances) {\r\n\t\t\tif(attr.getName().equals(curAttr.getName()) && attr.getVal().equals(curAttr.getVal())) {\r\n\t\t\t\tif(!allSources.contains(curAttr.getSource())){\r\n\t\t\t\t\tallSources += \",\" + curAttr.getSource();\r\n\t\t\t\t}\t\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\treturn allSources;\r\n\t}",
"public CheckpointRecord() {\r\n\t\tthis.txNums = new ArrayList<Long>();\r\n\t}",
"private void getTraceExpressionsInformation()\r\n {\r\n \tif (traceExpressionDataTable == null) {\r\n\t\t\t// getTraceExpressionsInformation is called implicitly when\r\n\t\t\t// super(config) is called in the constructor. Thus, we have to\r\n\t\t\t// initialize it here.\r\n \t\ttraceExpressionDataTable = new Hashtable<String, TraceExpressionInformationHolder>();\r\n \t}\r\n // erase existing information\r\n traceExpressionDataTable.clear();\r\n\r\n /*\r\n * Retrieve the TE file and create a document provider. This document\r\n * provider will be used to connect to the file editor input for\r\n * the TE file so that a Document representation of the file can\r\n * be created in the following try block. We disconnect the document\r\n * provider in the finally block for this try block in order to avoid\r\n * a memory leak.\r\n */\r\n IFile teFile = getModel().getTraceExplorerTLAFile();\r\n FileEditorInput teFileEditorInput = new FileEditorInput((IFile) teFile);\r\n\t\t// Use LegacyFileDocumentProvider to fix race condition which causes Trace\r\n\t\t// Explorer Exploration to label the expression as __trace_var_XXXXXXXX instead\r\n\t\t// of the actual expression. The broken label is accompanied by an exception:\r\n // java.lang.IllegalArgumentException: Attempted to beginRule: F/DijkstraMutex/Model_1, \r\n // does not match outer scope rule: org.lamport.tla.toolbox.tool.tlc.launch.TLCModelLaunchDelegate$MutexRule@1e6cad2d\r\n FileDocumentProvider teFileDocumentProvider = new LegacyFileDocumentProvider();\r\n try\r\n {\r\n\r\n teFileDocumentProvider.connect(teFileEditorInput);\r\n\r\n // the document connected to the TE file\r\n IDocument teDocument = teFileDocumentProvider.getDocument(teFileEditorInput);\r\n\r\n // the search adapter on the TE file\r\n FindReplaceDocumentAdapter teSearcher = new FindReplaceDocumentAdapter(teDocument);\r\n\r\n // search for comments containing the information about trace explorer expressions\r\n String regularExpression = FindReplaceDocumentAdapter.escapeForRegExPattern(\"\\\\* \") + \":[0-2]:\"\r\n + ModelWriter.TRACE_EXPR_VAR_SCHEME + \"_[0-9]{17,}:[\\\\s\\\\S]*?\"\r\n + Pattern.quote(ModelWriter.CONSTANT_EXPRESSION_EVAL_IDENTIFIER) + \"\\n\";\r\n IRegion region = teSearcher.find(0, regularExpression, true, true, false, true);\r\n\r\n while (region != null)\r\n {\r\n // found a region\r\n // first character should be the level of the expression\r\n String commentString = teDocument.get(region.getOffset(), region.getLength());\r\n // commentString should be of the form \"\\* :x:___trace_var_12321312312312:expr\"$!@$!@$!@$!@$!\"\"\r\n // where x is the level of the expression\r\n String[] stringSections = commentString.split(\":\", 4);\r\n int level = Integer.parseInt(stringSections[1]);\r\n String variableName = stringSections[2];\r\n // should be expr\"$!@$!@$!@$!@$!\" where \"$!@$!@$!@$!@$!\" is the delimiter\r\n String expressionAndDelimiter = stringSections[3];\r\n String expression = expressionAndDelimiter.substring(0, expressionAndDelimiter\r\n .indexOf(ModelWriter.CONSTANT_EXPRESSION_EVAL_IDENTIFIER));\r\n\r\n TraceExpressionInformationHolder expressionData = new TraceExpressionInformationHolder(expression,\r\n null, variableName);\r\n expressionData.setLevel(level);\r\n this.traceExpressionDataTable.put(variableName.trim(), expressionData);\r\n\r\n region = teSearcher.find(region.getOffset() + region.getLength(), regularExpression, true, true, false,\r\n true);\r\n }\r\n\r\n } catch (CoreException e)\r\n {\r\n TLCUIActivator.getDefault().logError(\"Error finding trace expression information in TE.tla file.\", e);\r\n } catch (BadLocationException e)\r\n {\r\n TLCUIActivator.getDefault().logError(\"Error finding trace expression information in TE.tla file.\", e);\r\n } finally\r\n {\r\n /*\r\n * The document provider is not needed. Always disconnect it to avoid a memory leak.\r\n * \r\n * Keeping it connected only seems to provide synchronization of\r\n * the document with file changes. That is not necessary in this context.\r\n */\r\n teFileDocumentProvider.disconnect(teFileEditorInput);\r\n }\r\n }",
"private static List<Address> parseAddress(String source) throws IOException {\n FileReader file = new FileReader(source);\n reader = new BufferedReader(file);\n List<Address> addresses = new ArrayList<>();\n String line;\n\n while((line = reader.readLine()) != null){\n int length = 0;\n String number = line.substring(0, line.indexOf(\" \"));\n length += number.length() + 1;\n String street = line.substring(length, line.indexOf(\",\"));\n length += street.length() + 2;\n String city = line.substring(length, line.indexOf(\",\", length));\n length += city.length() + 2;\n String zip = line.substring(length);\n\n addresses.add(new Address(city, zip, number, street));\n }\n\n reader.close();\n return addresses;\n }",
"public String[] getSrcPhrases(ArrayList<String> alignments){\n\t\tString[] phrases = new String[alignments.size()];\n\t\t\n\t\tString patternString = \"\\\\s\\\\|\\\\|\\\\|\"; // pattern for alignment points\n\t\t\n\t\tfor (int i=0; i<alignments.size(); i++){\n\t\t\tString[] items = alignments.get(i).split(patternString);\n\t\t\tphrases[i] = items[0]; // get source phrase\n\t\t\tSystem.out.println(phrases[i]);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn phrases;\n\t}",
"private void returnCardFundingSourceInfo(PdfPTable paymentSectionTable, PdfPCell cardNumberCell, Locale locale\n , BigDecimal amount, Date date) {\n PdfPCell amountSectionCell =\n new PdfPCell(new Phrase(getFormattedAmount(amount), getFont(null, FONT_SIZE_12, Font.NORMAL)));\n cellAlignment(cardNumberCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentSectionTable, cardNumberCell, Rectangle.NO_BORDER, 2, 15);\n\n cellAlignment(amountSectionCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentSectionTable, amountSectionCell, Rectangle.NO_BORDER, 0, 0);\n String message = getMessage(locale, \"pdf.receipt.refunded\", convertToDate(date.getTime()));\n PdfPCell amountChangedOnCell = new PdfPCell(new Phrase(message, getFont(null, FONT_SIZE_10, Font.ITALIC)));\n cellAlignment(amountChangedOnCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentSectionTable, amountChangedOnCell, Rectangle.NO_BORDER, 3, 15);\n PdfPCell localBlankSpaceCell = new PdfPCell(new Phrase(\" \", getFont(WHITE_COLOR, 8, Font.BOLD)));\n cellAlignment(localBlankSpaceCell, 0, GRAY_COLOR, 0);\n cellAddingToTable(paymentSectionTable, localBlankSpaceCell, Rectangle.NO_BORDER, 3, 0);\n }",
"public String determineTaskDetailsFromFileLine(String line) {\n int indexOfFirstSquareBracket = line.indexOf(\"[\");\n String details = line.substring(indexOfFirstSquareBracket + 8); // from unnecessary info at the front of line.\n return details;\n }",
"public double get_additional_line_cost() {\n\t\treturn additionallinecost;\n\t}",
"public String toString()\n{\n StringBuffer buf = new StringBuffer();\n buf.append(\"[SOURCE: \" + for_source.getName() + \",\\n\");\n if (getTransforms() != null) {\n buf.append(\"TRANS:\");\n for (S6Transform.Memo m : getTransforms()) {\n\tbuf.append(\" \");\n\tbuf.append(m.getTransformName());\n }\n }\n else {\n buf.append(\" TEXT: \" + getFragment().getText());\n }\n buf.append(\"]\");\n\n return buf.toString();\n}",
"@Override\n\tpublic void showAGBVersion1WithLineNumbers() {\n\t\t\n\t\tSystem.out.println(\"Zeige AGBVersion1 mit Zeilennummern an: \");\n\t\tIterator iter = version1WithLineNumbers.iterator();\n\t\t\n\t\twhile (iter.hasNext())\n\t\t{\n\t\t\tSystem.out.println(iter.next());\n\t\t}\n\t\t\n\t}",
"protected void fixLineNumbers() {\n int prevLn = -1;\n for (DexlibAbstractInstruction instruction : instructions) {\n Unit unit = instruction.getUnit();\n int lineNumber = unit.getJavaSourceStartLineNumber();\n if (lineNumber < 0) {\n if (prevLn >= 0) {\n unit.addTag(new LineNumberTag(prevLn));\n unit.addTag(new SourceLineNumberTag(prevLn));\n }\n } else {\n prevLn = lineNumber;\n }\n }\n }",
"private Collection<String> getRefseqIds(File file) {\n\t\tCollection<String> refseqIds = new HashSet<String>();\n\t\t\n\t\tSAMFileHeader header = new SAMFileReader(file).getFileHeader();\n\t\tfor (SAMSequenceRecord record : header.getSequenceDictionary().getSequences()) {\n\t\t\trefseqIds.add(record.getSequenceName());\n\t\t}\n\t\tSystem.err.println(\"Read \"+refseqIds.size()+\" RefSeq ids.\");\n\t\treturn refseqIds;\n\t}",
"public ArrayList<Coordinate> getAffectedPointsTraffic(ArrayList<Line> affected_lines)\r\n {\r\n ArrayList<Coordinate> new_affected_points = new ArrayList<Coordinate>();\r\n\r\n for (Street s : this.getStreetsMap()) {\r\n for (Line l : affected_lines) {\r\n if (s.begin().getX() == l.getStartX() && s.begin().getY() == l.getStartY() && s.end().getX() == l.getEndX() && s.end().getY() == l.getEndY()) {\r\n System.out.println(\"Street of line is affected with traffic now\");\r\n\r\n for (int i = 0; i < this.transportLinePath().size(); i++) {\r\n if (this.transportLinePath().get(i).isBetweenTwoCoordinates(s.begin(), s.end()) || (this.transportLinePath().get(i).getX() == s.begin().getX() && this.transportLinePath().get(i).getY() == s.begin().getY()) || (this.transportLinePath().get(i).getX() == s.end().getX() && this.transportLinePath().get(i).getY() == s.end().getY())) {\r\n System.out.println(\"Affected points: \" + this.transportLinePath().get(i).getX() + \", \" + this.transportLinePath().get(i).getY());\r\n new_affected_points.add(this.transportLinePath().get(i));\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n return new_affected_points;\r\n }",
"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}",
"private void GetDetailAnalysisText() {\n\t\tMap<Integer, ArrayList<ReportPluDayComboModifier>> combMap = getCombItemMap(this.comb);\n\n\t\tComparatorPluDayItem comparatorPluDayItem = new ComparatorPluDayItem();\n\t\tCollections.sort(reportPluDayItems, comparatorPluDayItem);\n//\t\tList<ReportPluDayItem> cop = new ArrayList<ReportPluDayItem>();\n\t\tint allQty = 0;\n\t\tBigDecimal allAmount = BH.getBD(ParamConst.DOUBLE_ZERO);\n//\t\t\tboolean showMainCategory = true;\n//\t\t\tint mainCategoryId = 0;\n\t\tboolean lastLinePrinted = false;\n//\t\tBigDecimal categoryAmount = BH.getBD(ParamConst.DOUBLE_ZERO);\n//\t\tString name = \"\";\n//\t\tint id = 0;\n\t\tMap<Integer, ReportPluDayItem> map = new HashMap<Integer, ReportPluDayItem>();\n\t\tfor (int j = 0; j < reportPluDayItems.size(); j++) {\n\n\t\t\tReportPluDayItem reportPluDayItem = reportPluDayItems.get(j);\n\t\t\t//ObjectFactory.getInstance().getReportPluDayItem(reportPluDayItem);\n\t\t\tif(map.containsKey(reportPluDayItem.getItemMainCategoryId().intValue())){\n\t\t\t\tReportPluDayItem amountReportPluDayItem = map.get(reportPluDayItem.getItemMainCategoryId().intValue());\n\t\t\t\tBigDecimal amount = BH.add(BH.getBD(amountReportPluDayItem.getItemAmount()), BH.getBD(reportPluDayItem.getItemAmount()), false);\n\t\t\t\tamountReportPluDayItem.setItemAmount(amount.toString());\n\t\t\t}else{\n\t\t\t\tReportPluDayItem rr = new ReportPluDayItem();\n\t\t\t\trr.setItemMainCategoryId(reportPluDayItem.getItemMainCategoryId());\n\t\t\t\trr.setItemMainCategoryName(reportPluDayItem.getItemMainCategoryName());\n\t\t\t\trr.setItemAmount(BH.formatMoney(reportPluDayItem.getItemAmount()));\n\t\t\t\tmap.put(reportPluDayItem.getItemMainCategoryId().intValue(), rr);\n\t\t\t}\n//\t\t\t\tif(mainCategoryId == 0 || mainCategoryId == reportPluDayItem.getItemMainCategoryId().intValue()){\n//\t\t\t\t\tcategoryAmount = BH.add(categoryAmount,\n//\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n//\t\t\t\t\tname = reportPluDayItem.getItemMainCategoryName();\n//\t\t\t\t\tid = reportPluDayItem.getItemMainCategoryId().intValue();\n//\n//\t\t\t\t\tif(mainCategoryId == 0)\n//\t\t\t\t\t\tmainCategoryId = id;\n//\n//\t\t\t\t\tif( j == reportPluDayItems.size() - 1){\n//\t\t\t\t\t\tReportPluDayItem rr = new ReportPluDayItem();\n//\t\t\t\t\t\trr.setItemMainCategoryId(id);\n//\t\t\t\t\t\trr.setItemMainCategoryName(name);\n//\t\t\t\t\t\trr.setItemAmount(categoryAmount.toString());\n//\t\t\t\t\t\tcop.add(rr);\n//\t\t\t\t\t}\n//\t\t\t\t}else{\n//\t\t\t\t\tReportPluDayItem rr = new ReportPluDayItem();\n//\t\t\t\t\trr.setItemMainCategoryId(id);\n//\t\t\t\t\trr.setItemMainCategoryName(name);\n//\t\t\t\t\trr.setItemAmount(categoryAmount.toString());\n//\t\t\t\t\tcop.add(rr);\n//\t\t\t\t\tname = reportPluDayItem.getItemMainCategoryName();\n//\t\t\t\t\tid = reportPluDayItem.getItemMainCategoryId().intValue();\n//\t\t\t\t\tmainCategoryId = id;\n//\t\t\t\t\tcategoryAmount = BH.getBD(ParamConst.DOUBLE_ZERO);\n//\t\t\t\t\tcategoryAmount = BH.add(categoryAmount,\n//\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n//\n//\t\t\t\t}\n\t\t}\n\n\t\tIterator<Map.Entry<Integer, ReportPluDayItem>> entries = map.entrySet().iterator();\n\t\tboolean isFirst = true;\n\t\twhile (entries.hasNext()){\n\t\t\tMap.Entry<Integer, ReportPluDayItem> entry = entries.next();\n\t\t\tif(!isFirst){\n\t\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\t}\n\t\t\tisFirst = false;\n\t\t\tReportPluDayItem amontReportPluDayItem = entry.getValue();\n\t\t\tthis.AddItem(amontReportPluDayItem.getItemMainCategoryName(), \"\", \"\", BH.formatMoney(amontReportPluDayItem.getItemAmount()).toString(), 1);\n\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\tfor (int j = 0; j < reportPluDayItems.size(); j++) {\n\n\t\t\t\tReportPluDayItem reportPluDayItem = reportPluDayItems.get(j);\n\t\t\t\tif (amontReportPluDayItem.getItemMainCategoryId().intValue() == reportPluDayItem.getItemMainCategoryId().intValue()) {\n\t\t\t\t\t// Print comb modifier\n\t\t\t\t\tint itmId = reportPluDayItem.getItemDetailId().intValue();\n\t\t\t\t\tArrayList<ReportPluDayComboModifier> comItems = combMap.get(itmId);\n\t\t\t\t\tif (comItems != null && comItems.size() > 0) {\n\n\t\t\t\t\t\tint mm = 0;\n\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), BH.formatMoney(reportPluDayItem.getItemPrice()),\n\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(),\n\t\t\t\t\t\t\t\tBH.formatThree(reportPluDayItem.getItemAmount()), 1);\n\t\t\t\t\t\tlastLinePrinted = false;\n\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\t\t\t\tfor (mm = 0; mm < comItems.size(); mm++) {\n\t\t\t\t\t\t\tReportPluDayComboModifier pluModifier = comItems.get(mm);\n\t\t\t\t\t\t\tint count = pluModifier.getModifierCount().intValue() - pluModifier.getVoidModifierCount().intValue() - pluModifier.getBillVoidCount().intValue();\n\t\t\t\t\t\t\tif (count > 0) {\n\t\t\t\t\t\t\t\tBigDecimal modifierAmount = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierPrice()), true);\n\t\t\t\t\t\t\t\tBigDecimal modifierPrice = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierItemPrice()), true);\n\t\t\t\t\t\t\t\tthis.AddItem(\" (\" + pluModifier.getModifierName() + \")\",\n\t\t\t\t\t\t\t\t\t\t\"(\" + BH.formatThree(modifierPrice.toString()) + \")\", \"(\" + String.valueOf(count) + \")\", \"(\" + BH.formatThree(modifierAmount.toString())+ \")\", 1);\n\t\t\t\t\t\t\t\tlastLinePrinted = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mm == comItems.size() && mm > 0) {\n\t\t\t\t\t\t\tif (!lastLinePrinted)\n\t\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\t\t\t\t\tlastLinePrinted = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), BH.formatMoney(reportPluDayItem.getItemPrice()),\n\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(), \"\" + BH.formatMoney(reportPluDayItem.getItemAmount()), 1);\n\t\t\t\t\t\tlastLinePrinted = false;\n\t\t\t\t\t}\n\t\t\t\t\t//END Comb modifier print\n\t\t\t\t\tallQty += reportPluDayItem.getItemCount();\n\t\t\t\t\tallAmount = BH.add(allAmount,\n\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\tfor(ReportPluDayItem category : cop) {\n//\t\t\t\tif(cop.indexOf(category) != 0){\n//\t\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\t}\n//\t\t\t\tthis.AddItem(category.getItemMainCategoryName(), \"\", \"\", category.getItemAmount(), 1);\n//\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\tfor (int j = 0; j < reportPluDayItems.size(); j++) {\n//\n//\t\t\t\t\tReportPluDayItem reportPluDayItem = reportPluDayItems.get(j);\n////\t\t\t\t\tif (mainCategoryId != reportPluDayItem.getItemMainCategoryId().intValue()) {\n////\t\t\t\t\t\tif (mainCategoryId != 0) {\n////\t\t\t\t\t\t\tif (!lastLinePrinted)\n////\t\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n////\t\t\t\t\t\t\tlastLinePrinted = true;\n////\t\t\t\t\t\t}\n////\t\t\t\t\t\tmainCategoryId = reportPluDayItem.getItemMainCategoryId().intValue();\n////\t\t\t\t\t\tshowMainCategory = true;\n////\t\t\t\t\t}\n////\t\t\t\t\tif (showMainCategory) {\n////\t\t\t\t\t\tthis.AddItem(reportPluDayItem.getItemMainCategoryName(), \"\", \"\", \"\", 1);\n////\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n////\t\t\t\t\t\tshowMainCategory = false;\n////\t\t\t\t\t\tlastLinePrinted = true;\n////\t\t\t\t\t}\n//\t\t\t\t\tif (category.getItemMainCategoryId().intValue() == reportPluDayItem.getItemMainCategoryId().intValue()) {\n//\t\t\t\t\t\t//Bob: Print comb modifier\n//\t\t\t\t\t\tint itmId = reportPluDayItem.getItemDetailId().intValue();\n//\t\t\t\t\t\tArrayList<ReportPluDayComboModifier> comItems = combMap.get(itmId);\n//\t\t\t\t\t\tif (comItems != null && comItems.size() > 0) {\n//\n//\t\t\t\t\t\t\tint mm = 0;\n//\t\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), reportPluDayItem.getItemPrice(),\n//\t\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(),\n//\t\t\t\t\t\t\t\t\treportPluDayItem.getItemAmount(), 1);\n//\t\t\t\t\t\t\tlastLinePrinted = false;\n//\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\t\t\t\tfor (mm = 0; mm < comItems.size(); mm++) {\n//\t\t\t\t\t\t\t\tReportPluDayComboModifier pluModifier = comItems.get(mm);\n//\t\t\t\t\t\t\t\tint count = pluModifier.getModifierCount().intValue() - pluModifier.getVoidModifierCount().intValue() - pluModifier.getBillVoidCount().intValue();\n//\t\t\t\t\t\t\t\tif (count > 0) {\n//\t\t\t\t\t\t\t\t\tBigDecimal modifierAmount = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierPrice()), true);\n//\t\t\t\t\t\t\t\t\tBigDecimal modifierPrice = BH.mul(BH.getBD(1.00), BH.getBD(pluModifier.getModifierItemPrice()), true);\n//\t\t\t\t\t\t\t\t\tthis.AddItem(\" (\" + pluModifier.getModifierName() + \")\",\n//\t\t\t\t\t\t\t\t\t\t\t\"(\" + modifierPrice.toString() + \")\", \"(\" + String.valueOf(count) + \")\", \"(\" + modifierAmount.toString() + \")\", 1);\n//\t\t\t\t\t\t\t\t\tlastLinePrinted = false;\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tif (mm == comItems.size() && mm > 0) {\n//\t\t\t\t\t\t\t\tif (!lastLinePrinted)\n//\t\t\t\t\t\t\t\t\tthis.addHortionalLine(this.charSize);\n//\t\t\t\t\t\t\t\tlastLinePrinted = true;\n//\t\t\t\t\t\t\t}\n//\n//\t\t\t\t\t\t} else {\n//\n//\t\t\t\t\t\t\tthis.AddItem(\" \"+reportPluDayItem.getItemName(), reportPluDayItem.getItemPrice(),\n//\t\t\t\t\t\t\t\t\treportPluDayItem.getItemCount().toString(), \"\" + reportPluDayItem.getItemAmount(), 1);\n//\t\t\t\t\t\t\tlastLinePrinted = false;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t//END Comb modifier print\n//\t\t\t\t\t\tallQty += reportPluDayItem.getItemCount();\n//\t\t\t\t\t\tallAmount = BH.add(allAmount,\n//\t\t\t\t\t\t\t\tBH.getBD(reportPluDayItem.getItemAmount()), true);\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n\t\tif (allQty != 0) {\n\t\t\tthis.addHortionalLine(this.charSize);\n\t\t\tthis.AddItem(PrintService.instance.getResources().getString(R.string.total), \"\", allQty + \"\", BH.formatMoney(allAmount.toString()), 1);\n\t\t}\n\n\n\t}",
"public java.lang.String getBIndPrevAfcars()\r\n {\r\n return this._bIndPrevAfcars;\r\n }",
"public ArrayList<String> get_AC_String()\r\n\t{\r\n\t\tupdateAC();\r\n\t\tArrayList<String> tab = new ArrayList<String>();\r\n\t\tfor (int i = 0; i < this.getAC().size(); i++)\r\n\t\t{\r\n\t\t\ttab.add(Integer.toString(this.getAC().get(i).getCodePostal()));\r\n\t\t}\r\n\t\treturn tab;\r\n\t}",
"public String getLBR_DocLine_ICMS_UU();",
"@RequestMapping(value = \"/txsource\", method = RequestMethod.GET)\n public\n @ResponseBody\n Collection<Description> getTxSourceList(Locale locale) {\n return Collections2.transform(\n translationSourceService.getTranslationSourceList(),\n Description.fromDescriptible(strings, locale)\n );\n }",
"public String toString() {\n String allSources = \"\";\n for (String source : sourceList) {\n allSources += \"\\n\" + source;\n Log.d(\"wattdroid\", \"returning source...\" + source);\n }\n return allSources;\n }",
"fileInfo(){\n\t\tsymbol = new node[MAXLINECOUNT + 2];\n\t\tother = null; // allocated later!\n\t}",
"public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}",
"private void _generateATa(TaInfo ta) {\n\t String id = _getId(CS_C_GRADSTUD, ta.indexInGradStud);\n writer_.startAboutSection(CS_C_TA, id);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#TeachingAssistant\", true);\t \t \t \t \n }\n writer_.addProperty(CS_P_TAOF, _getId(CS_C_COURSE, ta.indexInCourse), true);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#teachingAssistantOf\", _getId(CS_C_COURSE, ta.indexInCourse), true);\t \t \t \t \n }\n writer_.endSection(CS_C_TA);\n }",
"public int[] getDependLineIDArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(DEPENDLINEID$26, targetList);\n int[] result = new int[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getIntValue();\n return result;\n }\n }",
"public JSONObject getDNAgainstSalesForGSTR3BTaxable(JSONObject reqParams) throws JSONException, ServiceException {\n String companyId=reqParams.optString(\"companyid\");\n JSONObject jSONObject = new JSONObject();\n double taxableAmountCN = 0d;\n double totalAmountCN = 0d;\n double IGSTAmount = 0d;\n double CGSTAmount = 0d;\n double SGSTAmount = 0d;\n double CESSAmount = 0d;\n\n /**\n * Get CN amount\n */\n reqParams.put(\"entitycolnum\", reqParams.optString(\"dnentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"dnentityValue\"));\n List<Object> cnData = accEntityGstDao.getDNAgainstCustomer(reqParams);\n if (!reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n for (Object object : cnData) {\n Object[] data = (Object[]) object;\n String term = data[1] != null ? data[1].toString() : \"\";\n double termamount = data[0] != null ? (Double) data[0] : 0;\n\n totalAmountCN = (Double) data[3];\n if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n taxableAmountCN += data[2] != null ? (Double) data[2] : 0;\n IGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n taxableAmountCN += data[2] != null ? (Double) data[2] : 0;\n CGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n SGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n SGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n CESSAmount += termamount;\n } else if (StringUtil.isNullOrEmpty(term)) {\n taxableAmountCN += data[2] != null ? (Double) data[2] : 0;\n }\n }\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount(taxableAmountCN,companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount(IGSTAmount,companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount(CGSTAmount,companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount(SGSTAmount,companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount(CESSAmount,companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount(IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n jSONObject.put(\"totalamount\",authHandler.formattedAmount(taxableAmountCN+IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n } else {\n reqParams.put(\"isDebitNoteTransaction\", true);\n jSONObject = accGSTReportService.getCreditNoteJSONArrayForGSTR3B(cnData, reqParams, companyId);\n reqParams.remove(\"isDebitNoteTransaction\");\n }\n return jSONObject;\n }",
"public static void readAcu() throws IOException, ClassNotFoundException, SQLException\n\t{\n\tString line;\n\tFile worksheet = new File(\"/Users/sturtevantauto/Pictures/Car_Pictures/XPS/6715329.acu\");\n\t\tBufferedReader reader = new BufferedReader(new FileReader(worksheet));\n\t\tint i = 1;\n\t\tString namebegin = null;\n\t\tboolean sw = false;\n\t\tint linebegin = 0;\n\t\twhile ((line = reader.readLine()) != null)\n\t\t{\n\t\t\tif(line.contains(\"-\"))\n\t\t\t{\n\t\t\t\tString[] lines = line.split(\"-\");\n\t\t\t\tif(Character.isDigit(lines[0].charAt((lines[0].length() - 1))))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString[] endlines = lines[1].split(\" \");\n\t\t\t\t\t\t\tendlines[0] = endlines[0].trim();\n\t\t\t\t\t\t\tint partnum = Integer.parseInt(lines[0].substring((lines[0].length() - 3), lines[0].length()));\n\t\t\t\t\t\t\tString partend = endlines[0];\n\t\t\t\t\t\t\t//System.out.println(findLine(DATReader.findPartName(partnum)));\n\t\t\t\t\t\t\tString name = DATReader.findPartName(partnum);\n\t\t\t\t\t\t\tif(!name.equals(namebegin))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnamebegin = name;\n\t\t\t\t\t\t\tsw = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(sw)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsw = false;\n\t\t\t\t\t\t\tlinebegin = findLine(name);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] linetext = findText(linebegin, i, name);\n\t\t\t\t\t\t\tint q = 1;\n\t\t\t\t\t\t\tfor(String print : linetext)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(print != null)\n\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\tprint = print.replace(\".\", \"\");\n\t\t\t\t\t\t\t\tSystem.out.println(q + \": \" + print);\n\t\t\t\t\t\t\t\tq++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlinebegin = i;\n\t\t\t\t\t\t\t//System.out.println(partnum + \"-\" + partend);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t }\n\t\treader.close();\n\n\t}",
"private void loadTermLoanAccounts(String termLoanAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(termLoanAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n char loanType = splitLine[10].charAt(0);\n TermLoanType termLoanType;\n\n //this determines whether the loan is long or short.\n if (loanType == 'S')\n {\n termLoanType = TermLoanType.SHORT;\n }\n else\n {\n termLoanType = TermLoanType.LONG;\n }\n\n int years = Integer.parseInt(splitLine[11]);\n\n TermLoan termLoanAccount = new TermLoan(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n termLoanType,\n years);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n termLoanAccount.setTransactions(accountTransactions);\n\n //adds term loan accounts\n accounts.add(termLoanAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }",
"public ArrayList<String> refactorSourceOutline(ArrayList<ArrayList<String>> attributes, ArrayList<String> sourceCode, int[] lines){\n\t\tArrayList<String> sourceOutline = sourceCode;\n\t\tString[] currentAttribute = attributes.get(0).toArray(new String[attributes.get(0).size()]);\n\n\t\tfor(int i = 0; i < sourceOutline.size(); i++){\n\t\t\tString[] temp = attributes.get(i).toArray(new String[attributes.get(i).size()]); //temporarily make into an array for comparison\n\t\t\t\n\t\t\tif(!Arrays.equals(currentAttribute, temp) && temp.length > 0){\n\t\t\t\tint line = i + 1;\n\t\t\t\tsourceOutline.set(i,\"//Insert Calling Statement Line: \" + line + \" \\t\" + String.valueOf(attributes.get(i)));\n\t\t\t\tcurrentAttribute = temp;\n\t\t\t\tnumberOfCalls++;\n\t\t\t}\n\t\t\telse if(!Arrays.equals(currentAttribute,temp)){\n\t\t\t\tcurrentAttribute = temp;\n\t\t\t}\n\t\t\telse if(Arrays.equals(currentAttribute, temp) && temp.length > 0){\n\t\t\t\tsourceOutline.set(i,\"//<remove>\");\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t//before removing, go back and make sure all function calls exist, increase number of calls if it didn't exist previously\n\t\tfor(int i = 0; i < lines.length; i++){\n\t\t\t\n\t\t\tint line = lines[i] - 1;\t\n\t\t\tString temp = sourceOutline.get(line);\n\t\t\t\n\t\t\tif((temp.length() < 33)){\n\t\t\t\tsourceOutline.set(line, \"//Insert Calling Statement Line: \" + line + \" \\t\" + String.valueOf(attributes.get(line)));\n\t\t\t\tnumberOfCalls++;\n\t\t\t}\n\t\t}\n\t\tsourceOutline.removeAll(Collections.singleton(\"//<remove>\")); //deletes all \"//<remove>\" comments\n\t\treturn sourceOutline;\n\t}",
"private List<String> applySSA() {\n\t\t//String content = Utility.getStringFromFile(filePath);\n\t\tList<String> ssa = new ArrayList<String>();\n\t\tInputStream stream = new ByteArrayInputStream(source.getBytes());\n\t\ttry {\n\t\t\tANTLRInputStream input = new ANTLRInputStream(stream);\n\t\t\tEntryLexer lexer = new EntryLexer(input);\n\t\t\tCommonTokenStream tokens = new CommonTokenStream(lexer);\n\t\t\tEntryParser parser = new EntryParser(tokens);\n\t\t\tProgContext prog = parser.prog();\n\t\t\tconvertToSSAString(prog, ssa);\n\t\t\treturn ssa;\n\t\t} catch (IOException e) {\n\t\t\t//\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic String getCpQueryStatusLine(int asCuu) {\r\n\t\treturn String.format(\"TAPE %03X ON TAPE %03X\", asCuu, asCuu);\r\n\t}",
"public org.apache.xmlbeans.XmlInt[] xgetDependLineIDArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(DEPENDLINEID$26, targetList);\n org.apache.xmlbeans.XmlInt[] result = new org.apache.xmlbeans.XmlInt[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public JSONObject getAdvanceForGSTR3BTaxable(JSONObject reqParams) throws JSONException, ServiceException {\n String companyId=reqParams.optString(\"companyid\");\n JSONObject jSONObject = new JSONObject();\n double taxableAmountAdv = 0d;\n double IGSTAmount = 0d;\n double CGSTAmount = 0d;\n double SGSTAmount = 0d;\n double CESSAmount = 0d;\n reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n if (reqParams.optBoolean(\"at\")) {\n /**\n * Get Advance for which invoice not linked yet\n */\n\n reqParams.put(\"at\", true);\n List<Object> receiptList = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n JSONArray bulkData = gSTR1DeskeraServiceDao.createJsonForAdvanceDataFetchedFromDB(receiptList, reqParams);\n Map<String, JSONArray> advanceMap = AccountingManager.getSortedArrayMapBasedOnJSONAttribute(bulkData, GSTRConstants.receiptadvanceid);\n for (String advdetailkey : advanceMap.keySet()) {\n double rate = 0d;\n JSONArray adDetailArr = advanceMap.get(advdetailkey);\n JSONObject advanceobj = adDetailArr.getJSONObject(0);\n taxableAmountAdv += advanceobj.optDouble(GSTRConstants.receiptamount) - advanceobj.optDouble(GSTRConstants.receipttaxamount);\n for (int index = 0; index < adDetailArr.length(); index++) {\n JSONObject invdetailObj = adDetailArr.getJSONObject(index);\n String defaultterm = invdetailObj.optString(GSTRConstants.defaultterm);\n\n /**\n * Iterate applied GST and put its Percentage and Amount\n * accordingly\n */\n double termamount = invdetailObj.optDouble(GSTRConstants.termamount);\n double taxrate = invdetailObj.optDouble(GSTRConstants.taxrate);\n /**\n * calculate tax amount by considering partial case\n */\n termamount = (advanceobj.optDouble(GSTRConstants.receiptamount) - advanceobj.optDouble(GSTRConstants.receipttaxamount)) * invdetailObj.optDouble(GSTRConstants.taxrate) / 100;\n if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n IGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n CGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n SGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n SGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n CESSAmount += termamount;\n }\n }\n }\n\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n// List<Object> AdvData = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n// for (Object object : AdvData) {\n// Object[] data = (Object[]) object;\n// String term = data[1].toString();\n// double termamount = (Double) data[0];\n// if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n// taxableAmountAdv += (Double) data[2];\n// IGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n// taxableAmountAdv += (Double) data[2];\n// CGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n// SGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n// SGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n// CESSAmount += termamount;\n// }\n// }\n } else {\n /**\n * Get Advance for which invoice isLinked\n */\n reqParams.put(\"atadj\", true);\n List<Object> receiptList = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n JSONArray bulkData = gSTR1DeskeraServiceDao.createJsonForAdvanceDataFetchedFromDB(receiptList, reqParams);\n Map<String, JSONArray> advanceMap = AccountingManager.getSortedArrayMapBasedOnJSONAttribute(bulkData, GSTRConstants.receiptadvanceid);\n for (String advdetailkey : advanceMap.keySet()) {\n double rate = 0d;\n JSONArray adDetailArr = advanceMap.get(advdetailkey);\n JSONObject advanceobj = adDetailArr.getJSONObject(0);\n taxableAmountAdv += advanceobj.optDouble(GSTRConstants.adjustedamount);\n for (int index = 0; index < adDetailArr.length(); index++) {\n JSONObject invdetailObj = adDetailArr.getJSONObject(index);\n String defaultterm = invdetailObj.optString(GSTRConstants.defaultterm);\n\n /**\n * Iterate applied GST and put its Percentage and Amount\n * accordingly\n */\n double termamount = invdetailObj.optDouble(GSTRConstants.termamount);\n double taxrate = invdetailObj.optDouble(GSTRConstants.taxrate);\n /**\n * calculate tax amount by considering partial case\n */\n termamount = advanceobj.optDouble(GSTRConstants.adjustedamount) * invdetailObj.optDouble(GSTRConstants.taxrate) / 100;\n if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n IGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n CGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n SGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n SGSTAmount += termamount;\n } else if (defaultterm.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n CESSAmount += termamount;\n }\n }\n }\n\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n// List<Object> AdvDataLinked = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n// for (Object object : AdvDataLinked) {\n// Object[] data = (Object[]) object;\n// String term = data[1].toString();\n// double termamount = (Double) data[0];\n// taxableAmountAdv = (Double) data[2];\n// if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n// taxableAmountAdv += (Double) data[2];\n// IGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n// taxableAmountAdv += (Double) data[2];\n// CGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n// SGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n// SGSTAmount += termamount;\n// } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n// CESSAmount += termamount;\n// }\n// }\n }\n\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount(taxableAmountAdv,companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount(IGSTAmount,companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount(CGSTAmount,companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount(SGSTAmount,companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount(CESSAmount,companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount(IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount(taxableAmountAdv+IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n return jSONObject;\n }",
"public static void testGetCustomerLinesOfCredit() throws MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testGetCustomerLinesOfCredit\");\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tInteger offset = 0;\n\t\tInteger limit = 30;\n\t\t// Test Get line of credit for a Client\n\t\t// Get Demo Client ID first\n\n\t\tfinal String clientId = DemoUtil.getDemoClient().getId();\n\t\t// Get Lines of Credit for a client\n\t\tList<LineOfCredit> clientLoCs = linesOfCreditService.getClientLinesOfCredit(clientId, offset, limit);\n\t\tSystem.out.println(clientLoCs.size() + \" lines of credit for Client \" + clientId);\n\n\t\t// Test Get line of credit for a Group\n\t\t// Get Demo Group ID first\n\t\tfinal String groupId = DemoUtil.getDemoGroup().getId();\n\t\t// Get Lines of Credit for a group\n\t\tList<LineOfCredit> groupLoCs = linesOfCreditService.getGroupLinesOfCredit(groupId, offset, limit);\n\t\tSystem.out.println(groupLoCs.size() + \" lines of credit for Group \" + groupId);\n\n\t}",
"String getCADENA_TRAMA();",
"private void _generateRaTa() {\n\t if(instances_[CS_C_TA].total == 0) return;\n ArrayList list, courseList;\n TaInfo ta;\n RaInfo ra;\n ArrayList tas, ras;\n int i;\n\n tas = new ArrayList();\n ras = new ArrayList();\n list = _getRandomList(instances_[CS_C_TA].total + instances_[CS_C_RA].total,\n 0, instances_[CS_C_GRADSTUD].total - 1);\n System.out.println(\"underCourses \" + (underCourses_.size() - 1));\n System.out.println(\"instances ta \" + instances_[CS_C_TA].total);\n courseList = _getRandomList(instances_[CS_C_TA].total, 0,\n underCourses_.size() - 1);\n\n for (i = 0; i < courseList.size(); i++) {\n ta = new TaInfo();\n ta.indexInGradStud = ( (Integer) list.get(i)).intValue();\n ta.indexInCourse = ( (CourseInfo) underCourses_.get( ( (Integer)\n courseList.get(i)).intValue())).globalIndex;\n _generateATa(ta);\n }\n while (i < list.size()) {\n ra = new RaInfo();\n ra.indexInGradStud = ( (Integer) list.get(i)).intValue();\n _generateAnRa(ra);\n i++;\n }\n }"
]
| [
"0.5724583",
"0.5548832",
"0.53977776",
"0.5318948",
"0.5158906",
"0.49734503",
"0.49572915",
"0.49539572",
"0.49437296",
"0.4934458",
"0.49090233",
"0.4897166",
"0.4856507",
"0.48508817",
"0.4841734",
"0.48258552",
"0.4819792",
"0.4809363",
"0.4809263",
"0.47874725",
"0.47836313",
"0.47586143",
"0.47409472",
"0.47395968",
"0.47380453",
"0.47292006",
"0.47137198",
"0.4689701",
"0.46872506",
"0.46835348",
"0.46757305",
"0.4666955",
"0.46567282",
"0.46551684",
"0.46466324",
"0.46398944",
"0.46377838",
"0.46294075",
"0.46288455",
"0.46121678",
"0.46005887",
"0.4594624",
"0.45889115",
"0.45854142",
"0.45842132",
"0.4577099",
"0.45704094",
"0.45687535",
"0.45674354",
"0.45653024",
"0.4558132",
"0.45372513",
"0.452545",
"0.45223862",
"0.4519839",
"0.45105162",
"0.45081308",
"0.45032832",
"0.45022458",
"0.4502179",
"0.44862455",
"0.44836068",
"0.44808578",
"0.44664264",
"0.44655254",
"0.4465188",
"0.4459831",
"0.4459321",
"0.44493225",
"0.44484743",
"0.44460666",
"0.4446043",
"0.44446936",
"0.44411287",
"0.44409445",
"0.44287777",
"0.44247532",
"0.44169298",
"0.44134822",
"0.44131705",
"0.44105244",
"0.44073164",
"0.44066003",
"0.4406587",
"0.44034994",
"0.43996012",
"0.439893",
"0.43937495",
"0.43924075",
"0.4391774",
"0.43851334",
"0.43801594",
"0.43762428",
"0.43757227",
"0.4372104",
"0.43707195",
"0.43679196",
"0.43671346",
"0.4359116",
"0.43554065"
]
| 0.63460785 | 0 |
Get all of the encumbrance source accounting lines (for estimated expenses) do not include any import expense lines | public List<TemSourceAccountingLine> getEncumbranceSourceAccountingLines() {
List<TemSourceAccountingLine> encumbranceLines = new ArrayList<TemSourceAccountingLine>();
for (TemSourceAccountingLine line : (List<TemSourceAccountingLine>) getSourceAccountingLines()){
if (TemConstants.ENCUMBRANCE.equals(line.getCardType())){
encumbranceLines.add(line);
}
}
return encumbranceLines;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public List getSourceAccountingLines() {\n return super.getSourceAccountingLines();\n }",
"protected List getPersistedAdvanceAccountingLinesForComparison() {\n return SpringContext.getBean(AccountingLineService.class).getByDocumentHeaderIdAndLineType(getAdvanceAccountingLineClass(), getDocumentNumber(), TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n }",
"public TemSourceAccountingLine getAdvanceAccountingLine(int index) {\n while (getAdvanceAccountingLines().size() <= index) {\n getAdvanceAccountingLines().add(createNewAdvanceAccountingLine());\n }\n return getAdvanceAccountingLines().get(index);\n }",
"List<FinancingSourceEntity> getAllFinancingSource();",
"public List<MaintenanceInvoiceCreditVO> getMaintenanceCreditAPLines(MaintenanceRequest mrq){\n\t\ttry{\n\t\t\treturn maintenanceInvoiceDAO.getMaintenanceCreditAPLines(mrq);\n\t\t}catch(Exception ex){\n\t\t\tthrow new MalException(\"generic.error.occured.while\", \n\t\t\t\t\tnew String[] { \"retrieving creditAP lines for po: \" + mrq.getJobNo()}, ex);\n\t\t}\n\t}",
"@GetMapping(\"/invoice-lines\")\n public List<InvoiceLinesDTO> getAllInvoiceLines() {\n log.debug(\"REST request to get all InvoiceLines\");\n return invoiceLinesService.findAll();\n }",
"public void setAdvanceAccountingLines(List<TemSourceAccountingLine> advanceAccountingLines) {\n this.advanceAccountingLines = advanceAccountingLines;\n }",
"public static AccountsFromLineOfCredit testGetAccountsForLineOfCredit() throws MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testGetAccountsForLineOfCredit\");\n\t\t// Test Get Accounts for a line of credit\n\n\t\tString lineOfCreditId = DemoUtil.demoLineOfCreditId;\n\t\tif (lineOfCreditId == null) {\n\t\t\tSystem.out.println(\"WARNING: No Demo Line of credit defined\");\n\t\t\treturn null;\n\t\t}\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\n\t\tSystem.out.println(\"\\nGetting all accounts for LoC with ID= \" + lineOfCreditId);\n\t\tAccountsFromLineOfCredit accountsForLoC = linesOfCreditService.getAccountsForLineOfCredit(lineOfCreditId);\n\t\t// Log returned results\n\t\tList<LoanAccount> loanAccounts = accountsForLoC.getLoanAccounts();\n\t\tList<SavingsAccount> savingsAccounts = accountsForLoC.getSavingsAccounts();\n\t\tSystem.out.println(\"Total Loan Accounts=\" + loanAccounts.size() + \"\\tTotal Savings Accounts=\"\n\t\t\t\t+ savingsAccounts.size() + \" for LoC=\" + lineOfCreditId);\n\n\t\treturn accountsForLoC;\n\t}",
"public List<Garantia> getxEnte(EnteExterno ente ) {\n\t \n\t\t\n\t\tList<Garantia> entities = null; \n\t\t\n Session em =SessionDao.getInstance().getCurrentSession( );\n Transaction tx = null;\n \n try { \n \ttx = em.beginTransaction();\n \tentities = em.createCriteria(Garantia.class).add(Restrictions.eq(\"ente\",ente)).list();\n tx.commit();\n } catch (Exception e) { \n \ttx.rollback();\n \te.printStackTrace();\n } \n return entities; \n\t}",
"@Override\n\tpublic String[] getExpenseEntryLineFromSql(Long id) throws SQLException, NoSuchElementException {\n\t\tResultSet set = getResult(\"select * from expenses where id='\" + id + \"';\");\n\t\tString amount, date, comment, billto, type;\n\t\tif (set.next()) {\n\t\t\tamount = set.getString(\"amount\");\n\t\t\tdate = set.getString(\"date\");\n\t\t\tcomment = set.getString(\"comment\");\n\t\t\tbillto = set.getString(\"billto\");\n\t\t\ttype = set.getString(\"type\");\n\t\t\tset.close();\n\t\t\treturn new String[] { \"\" + id, amount, date, comment, billto, type };\n\t\t} else {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t}",
"@SuppressWarnings({ \"unused\", \"resource\" })\n public JSONObject selectLines(VariablesSecureApp vars, String fromDate, String InitialBalance,\n String YearInitialBal, String strClientId, String accountId, String BpartnerId,\n String productId, String projectId, String DeptId, String BudgetTypeId, String FunclassId,\n String User1Id, String User2Id, String AcctschemaId, String strOrgFamily, String ClientId,\n String OrgId, String DateTo, String strAccountFromValue, String strAccountToValue,\n String strStrDateFC, String FrmPerStDate, String uniqueCode, String inpcElementValueIdFrom) {\n File file = null;\n String sqlQuery = \"\", sqlQuery1 = \"\", tempUniqCode = \"\", date = \"\", groupClause = \"\",\n tempStartDate = \"\", periodId = \"\";\n BigDecimal initialDr = new BigDecimal(0);\n BigDecimal initialCr = new BigDecimal(0);\n BigDecimal initialNet = new BigDecimal(0);\n PreparedStatement st = null;\n ResultSet rs = null;\n String RoleId = vars.getRole();\n List<GLJournalApprovalVO> list = null;\n JSONObject obj = null;\n int count = 0;\n JSONObject result = new JSONObject();\n JSONArray array = new JSONArray();\n JSONArray arr = null;\n String listofuniquecode = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n\n sqlQuery = \"select a.id,a.c_period_id as periodid,a.periodno,to_char(a.startdate,'dd-MM-yyyy') as startdate ,a.name ,ev.accounttype as type,COALESCE(A.EM_EFIN_UNIQUECODE,ev.value) as account_id, ev.name, a.EM_EFIN_UNIQUECODE as uniquecode,a.defaultdep, a.depart,ev.value as account ,\"\n + \" replace(a.EM_EFIN_UNIQUECODE,'-'||a.depart||'-','-'||a.defaultdep||'-') as replaceacct, \"\n + \" sum(initalamtdr)as initalamtdr, sum(intialamtcr)as intialamtcr , sum(a.initialnet )as SALDO_INICIAL,sum( a.amtacctcr) as amtacctcr, sum(a.amtacctdr) as amtacctdr, sum(A.AMTACCTDR)-sum(A.AMTACCTCR) AS SALDO_FINAL ,\"\n + \" sum(initalamtdr)+sum( a.amtacctdr) as finaldr, sum(a.intialamtcr)+sum( a.amtacctcr) as finalcr , sum(a.initialnet)+sum(A.AMTACCTDR)-sum(A.AMTACCTCR) as finalnet \"\n + \" from( SELECT per.startdate,per.name ,per.periodno ,(case when (DATEACCT < TO_DATE(?) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?)) then F.AMTACCTDR else 0 end) as initalamtdr, \"\n + \"(case when (DATEACCT < TO_DATE(?) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?)) then F.AMTACCTCR else 0 end) as intialamtcr, \"\n + \" (case when (DATEACCT < TO_DATE(?) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?)) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialnet, \"\n + \" (case when (DATEACCT >= TO_DATE(?) AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?) then F.AMTACCTDR else 0 end) as AMTACCTDR, \"\n + \" (case when (DATEACCT >= TO_DATE(?) AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?) then F.AMTACCTCR else 0 end) as AMTACCTCR, \"\n + \" F.ACCOUNT_ID AS ID,F.EM_EFIN_UNIQUECODE,reg.value as depart,f.c_period_id , \"\n + \" (select REG.value from c_salesregion REG where REG.isdefault='Y' \";\n\n if (strClientId != null)\n sqlQuery += \"AND REG.AD_CLIENT_ID IN \" + strClientId;\n sqlQuery += \") as defaultdep \" + \" FROM FACT_ACCT F \"\n + \" left join (select name,periodno,startdate,c_period_id from c_period ) per on per.c_period_id=f.c_period_id left join c_salesregion reg on reg.c_salesregion_id= f.c_salesregion_id where 1=1 \";\n if (strOrgFamily != null)\n sqlQuery += \"AND F.AD_ORG_ID IN (\" + strOrgFamily + \")\";\n if (ClientId != null)\n sqlQuery += \"AND F.AD_CLIENT_ID IN (\" + ClientId + \")\";\n if (ClientId != null)\n sqlQuery += \"AND F.AD_ORG_ID IN (\" + OrgId + \")\";\n // sqlQuery += \" AND DATEACCT > TO_DATE(?) AND DATEACCT < TO_DATE(?) AND 1=1 \";\n sqlQuery += \" AND DATEACCT >= TO_DATE(?) AND DATEACCT < TO_DATE(?) AND 1=1 \";\n if (accountId != null)\n sqlQuery += \"AND F.account_ID='\" + accountId + \"'\";\n if (BpartnerId != null)\n sqlQuery += \"AND F.C_BPARTNER_ID IN (\" + BpartnerId.replaceFirst(\",\", \"\") + \")\";\n if (productId != null)\n sqlQuery += \"AND F.M_PRODUCT_ID IN \" + productId;\n if (projectId != null)\n sqlQuery += \"AND F.C_PROJECT_ID IN (\" + projectId.replaceFirst(\",\", \"\") + \")\";\n if (DeptId != null)\n sqlQuery += \"AND F.C_SALESREGION_ID IN (\" + DeptId.replaceFirst(\",\", \"\") + \")\";\n if (BudgetTypeId != null)\n sqlQuery += \"AND coalesce(F.C_CAMPAIGN_ID, (select c.C_CAMPAIGN_ID from C_CAMPAIGN c where em_efin_iscarryforward = 'N' and ad_client_id = F.ad_client_id limit 1))='\"\n + BudgetTypeId + \"'\";\n if (FunclassId != null)\n sqlQuery += \"AND F.C_ACTIVITY_ID IN (\" + FunclassId.replaceFirst(\",\", \"\") + \")\";\n if (User1Id != null)\n sqlQuery += \"AND F.USER1_ID IN (\" + User1Id.replaceFirst(\",\", \"\") + \")\";\n if (User2Id != null)\n sqlQuery += \"AND F.USER2_ID IN (\" + User2Id.replaceFirst(\",\", \"\") + \")\";\n if (AcctschemaId != null)\n sqlQuery += \"AND F.C_ACCTSCHEMA_ID ='\" + AcctschemaId + \"'\";\n if (uniqueCode != null)\n sqlQuery += \"\t\tAND (F.EM_EFIN_UNIQUECODE = '\" + uniqueCode + \"' or F.acctvalue='\"\n + uniqueCode + \"')\";\n\n sqlQuery += \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \";\n\n sqlQuery += \" AND F.ISACTIVE='Y' \" + \" ) a, c_elementvalue ev \"\n + \" where a.id = ev.c_elementvalue_id and ev.elementlevel = 'S' \";\n if (strAccountFromValue != null)\n sqlQuery += \"\t\tAND EV.VALUE >= '\" + strAccountFromValue + \"'\";\n if (strAccountToValue != null)\n sqlQuery += \"\t\tAND EV.VALUE <= '\" + strAccountToValue + \"'\";\n\n sqlQuery += \" \";\n\n sqlQuery += \" and (a.initialnet <>0 or a.amtacctcr <>0 or a.amtacctdr<>0) group by a.c_period_id,a.name,ev.accounttype, a.startdate , a.id ,a.periodno, A.EM_EFIN_UNIQUECODE,ev.value,ev.name,a.defaultdep,a.depart \"\n + \" order by uniquecode,a.startdate, account_id ,ev.value, ev.name, id \";\n\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, fromDate);\n st.setString(2, fromDate);\n st.setString(3, InitialBalance);\n st.setString(4, fromDate);\n st.setString(5, fromDate);\n st.setString(6, InitialBalance);\n st.setString(7, fromDate);\n st.setString(8, fromDate);\n st.setString(9, InitialBalance);\n st.setString(10, fromDate);\n st.setString(11, fromDate);\n st.setString(12, YearInitialBal);\n st.setString(13, fromDate);\n st.setString(14, fromDate);\n st.setString(15, YearInitialBal);\n st.setString(16, fromDate);\n st.setString(17, DateTo);\n // st.setString(16, DateTo);\n log4j.debug(\"ReportTrialBalancePTD:\" + st.toString());\n rs = st.executeQuery();\n // Particular Date Range if we get record then need to form the JSONObject\n while (rs.next()) {\n // Group UniqueCode Wise Transaction\n // if same uniquecode then Group the transaction under the uniquecode\n if (tempUniqCode.equals(rs.getString(\"uniquecode\"))) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n if (rs.getInt(\"periodno\") == 1\n && (rs.getString(\"type\").equals(\"E\") || rs.getString(\"type\").equals(\"R\"))) {\n initialDr = new BigDecimal(0);\n initialCr = new BigDecimal(0);\n initialNet = new BigDecimal(0);\n FrmPerStDate = getPedStrEndDate(OrgId, ClientId, rs.getString(\"periodid\"), null);\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n } else {\n if (rs.getInt(\"periodno\") > 1) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, rs.getString(\"periodid\"));\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"account_id\"),\n rs.getString(\"startdate\"), FrmPerStDate, strStrDateFC, rs.getString(\"type\"), 2,\n RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO vo = initial.get(0);\n initialDr = vo.getInitDr();\n initialCr = vo.getInitCr();\n initialNet = vo.getInitNet();\n }\n }\n tra.put(\"startdate\", rs.getString(\"name\"));\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(rs.getString(\"startdate\"))));\n tra.put(\"perDr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctdr\")));\n tra.put(\"perCr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctcr\")));\n tra.put(\"finalpernet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"SALDO_FINAL\")));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctdr\").add(initialDr))));\n tra.put(\"finalcr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctcr\").add(initialCr))));\n tra.put(\"finalnet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"SALDO_FINAL\").add(initialNet))));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", rs.getString(\"periodid\"));\n tra.put(\"type\", \"1\");\n arr.put(tra);\n\n }\n // if different uniquecode then form new Uniquecode JsonObject\n else {\n if (listofuniquecode == null)\n listofuniquecode = \"'\" + rs.getString(\"uniquecode\") + \"'\";\n else\n listofuniquecode += \",'\" + rs.getString(\"uniquecode\") + \"'\";\n obj = new JSONObject();\n obj.put(\"uniquecode\", (rs.getString(\"uniquecode\") == null ? rs.getString(\"account\")\n : rs.getString(\"uniquecode\")));\n obj.put(\"accountId\", (rs.getString(\"id\") == null ? \"\" : rs.getString(\"id\")));\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n if (rs.getInt(\"periodno\") == 1\n && (rs.getString(\"type\").equals(\"E\") || rs.getString(\"type\").equals(\"R\"))) {\n initialDr = new BigDecimal(0);\n initialCr = new BigDecimal(0);\n initialNet = new BigDecimal(0);\n FrmPerStDate = getPedStrEndDate(OrgId, ClientId, rs.getString(\"periodid\"), null);\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n } else {\n if (rs.getInt(\"periodno\") > 1) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, rs.getString(\"periodid\"));\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"account_id\"),\n rs.getString(\"startdate\"), FrmPerStDate, strStrDateFC, rs.getString(\"type\"), 1,\n RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO vo = initial.get(0);\n initialDr = vo.getInitDr();\n initialCr = vo.getInitCr();\n initialNet = vo.getInitNet();\n }\n }\n tra.put(\"startdate\", rs.getString(\"name\"));\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(rs.getString(\"startdate\"))));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"perDr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctdr\")));\n tra.put(\"perCr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctcr\")));\n tra.put(\"finalpernet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"SALDO_FINAL\")));\n tra.put(\"finaldr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctdr\").add(initialDr))));\n tra.put(\"finalcr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctcr\").add(initialCr))));\n tra.put(\"finalnet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"SALDO_FINAL\").add(initialNet))));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", rs.getString(\"periodid\"));\n /*\n * if((initialDr.compareTo(new BigDecimal(0)) > 0) || (initialCr.compareTo(new\n * BigDecimal(0)) > 0) || (initialNet.compareTo(new BigDecimal(0)) > 0)) { tra.put(\"type\",\n * \"1\"); } else\n */\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = rs.getString(\"uniquecode\");\n }\n\n result.put(\"list\", array);\n }\n log4j.debug(\"has lsit:\" + result.has(\"list\"));\n if (result.has(\"list\")) {\n JSONArray finalres = result.getJSONArray(\"list\");\n JSONObject json = null, json1 = null, json2 = null;\n log4j.debug(\"json.length:\" + finalres.length());\n for (int i = 0; i < finalres.length(); i++) {\n json = finalres.getJSONObject(i);\n log4j.debug(\"json.getString:\" + json.getString(\"uniquecode\"));\n if (json.getString(\"uniquecode\") != null) {\n String UniqueCode = json.getString(\"uniquecode\");\n String acctId = json.getString(\"accountId\");\n ElementValue type = OBDal.getInstance().get(ElementValue.class, acctId);\n JSONArray transaction = json.getJSONArray(\"transaction\");\n List<GLJournalApprovalVO> period = getAllPeriod(ClientId, fromDate, DateTo);\n List<String> periodIds = new ArrayList<String>(), tempPeriods = new ArrayList<String>();\n\n for (GLJournalApprovalVO vo : period) {\n periodIds.add(vo.getId());\n }\n\n tempPeriods = periodIds;\n\n for (int j = 0; j < transaction.length(); j++) {\n json1 = transaction.getJSONObject(j);\n periodId = json1.getString(\"periodid\");\n tempPeriods.remove(periodId);\n }\n log4j.debug(\"size:\" + tempPeriods.size());\n if (tempPeriods.size() > 0) {\n log4j.debug(\"jtempPeriods:\" + tempPeriods);\n count = 0;\n for (String missingPeriods : tempPeriods) {\n json2 = new JSONObject();\n json2.put(\"startdate\", Utility.getObject(Period.class, missingPeriods).getName());\n Date startdate = Utility.getObject(Period.class, missingPeriods).getStartingDate();\n json2.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\").format(startdate));\n json2.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"id\", acctId);\n json2.put(\"periodid\", missingPeriods);\n Long periodNo = Utility.getObject(Period.class, missingPeriods).getPeriodNo();\n if (new BigDecimal(periodNo).compareTo(new BigDecimal(1)) == 0\n && (type.getAccountType().equals(\"E\") || type.getAccountType().equals(\"R\"))) {\n json2.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"type\", \"1\");\n\n /*\n * count++; if(count > 0) { FrmPerStDate = getPedStrEndDate(OrgId, ClientId,\n * missingPeriods, null); FrmPerStDate = new\n * SimpleDateFormat(\"dd-MM-yyyy\").format(new\n * SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate)); }\n */\n\n } else {\n // Get the Last Opening and closing Balance Entry Date\n // If closing and opening is not happened then assign financial year start date\n Boolean isThereOpeningBeforeThePeriod = false;\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, missingPeriods);\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n isThereOpeningBeforeThePeriod = true;\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n\n FrmPerStDate = getPedStrEndDate(OrgId, ClientId, missingPeriods, null);\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n List<GLJournalApprovalVO> initial = selectInitialBal(UniqueCode,\n new SimpleDateFormat(\"dd-MM-yyyy\").format(startdate), FrmPerStDate,\n strStrDateFC, type.getAccountType(), 2, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO vo = initial.get(0);\n json2.put(\"initialDr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, (vo.getInitDr())));\n json2.put(\"initialCr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, (vo.getInitCr())));\n json2.put(\"initialNet\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, (vo.getInitNet())));\n if (((vo.getInitDr().compareTo(new BigDecimal(0)) > 0)\n || (vo.getInitCr().compareTo(new BigDecimal(0)) > 0)\n || (vo.getInitNet().compareTo(new BigDecimal(0)) > 0))\n || isThereOpeningBeforeThePeriod) {\n json2.put(\"type\", \"1\");\n } else\n json2.put(\"type\", \"0\");\n\n json2.put(\"finaldr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, new BigDecimal(0).add(vo.getInitDr())));\n json2.put(\"finalcr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, new BigDecimal(0).add(vo.getInitCr())));\n json2.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n new BigDecimal(0).add(vo.getInitNet())));\n\n }\n }\n\n transaction.put(json2);\n }\n }\n\n json.put(\"transaction\", transaction);\n }\n\n }\n log4j.debug(\"LIST:\" + list);\n log4j.debug(\"Acct PTD listofuniquecode:\" + listofuniquecode);\n\n List<GLJournalApprovalVO> period = getAllPeriod(ClientId, fromDate, DateTo);\n String tempYear = null;\n sqlQuery1 = \" select a.uniquecode,a.id from( select distinct coalesce(em_efin_uniquecode,acctvalue) as uniquecode ,f.account_id as id from fact_acct f where 1=1 \";\n if (strOrgFamily != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + strOrgFamily + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_CLIENT_ID IN (\" + ClientId + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + OrgId + \")\";\n sqlQuery1 += \" AND DATEACCT < TO_DATE(?) AND 1=1 \";\n if (accountId != null)\n sqlQuery1 += \"AND F.account_ID='\" + accountId + \"'\";\n if (BpartnerId != null)\n sqlQuery1 += \"AND F.C_BPARTNER_ID IN (\" + BpartnerId.replaceFirst(\",\", \"\") + \")\";\n if (productId != null)\n sqlQuery1 += \"AND F.M_PRODUCT_ID IN (\" + productId.replaceFirst(\",\", \"\") + \")\";\n if (projectId != null)\n sqlQuery1 += \"AND F.C_PROJECT_ID IN (\" + projectId.replaceFirst(\",\", \"\") + \")\";\n if (DeptId != null)\n sqlQuery1 += \"AND F.C_SALESREGION_ID IN (\" + DeptId.replaceFirst(\",\", \"\") + \")\";\n if (BudgetTypeId != null)\n sqlQuery1 += \"AND coalesce(F.C_CAMPAIGN_ID, (select c.C_CAMPAIGN_ID from C_CAMPAIGN c where em_efin_iscarryforward = 'N' and ad_client_id = F.ad_client_id limit 1))='\"\n + BudgetTypeId + \"'\";\n if (FunclassId != null)\n sqlQuery1 += \"AND F.C_ACTIVITY_ID IN (\" + FunclassId.replaceFirst(\",\", \"\") + \")\";\n if (User1Id != null)\n sqlQuery1 += \"AND F.USER1_ID IN (\" + User1Id.replaceFirst(\",\", \"\") + \")\";\n if (User2Id != null)\n sqlQuery1 += \"AND F.USER2_ID IN (\" + User2Id.replaceFirst(\",\", \"\") + \")\";\n if (AcctschemaId != null)\n sqlQuery1 += \"AND F.C_ACCTSCHEMA_ID ='\" + AcctschemaId + \"'\";\n\n if (uniqueCode != null)\n sqlQuery1 += \" AND (F.EM_EFIN_UNIQUECODE = '\" + uniqueCode\n + \"' or F.acctvalue='\" + uniqueCode + \"')\";\n if (listofuniquecode != null)\n sqlQuery1 += \" AND F.EM_EFIN_UNIQUECODE not in ( \" + listofuniquecode + \")\";\n sqlQuery1 += \" AND F.ISACTIVE='Y' \" + \" ) a, c_elementvalue ev \"\n + \" where a.id = ev.c_elementvalue_id and ev.elementlevel = 'S' \";\n if (strAccountFromValue != null)\n sqlQuery1 += \" AND EV.VALUE >= '\" + strAccountFromValue + \"'\";\n if (strAccountToValue != null)\n sqlQuery1 += \" AND EV.VALUE <= '\" + strAccountToValue + \"'\";\n st = conn.prepareStatement(sqlQuery1);\n st.setString(1, DateTo);\n log4j.debug(\"Acct PTD afterlist:\" + st.toString());\n rs = st.executeQuery();\n while (rs.next()) {\n ElementValue type = OBDal.getInstance().get(ElementValue.class, rs.getString(\"id\"));\n for (GLJournalApprovalVO vo : period) {\n\n if (tempYear != null) {\n if (!tempYear.equals(vo.getStartdate().split(\"-\")[2])) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n } else {\n tempYear = vo.getStartdate().split(\"-\")[2];\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, vo.getId());\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"uniquecode\"),\n vo.getStartdate(), FrmPerStDate, strStrDateFC, type.getAccountType(), 1, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO VO = initial.get(0);\n initialDr = VO.getInitDr();\n initialCr = VO.getInitCr();\n initialNet = VO.getInitNet();\n\n }\n if (tempUniqCode.equals(rs.getString(\"uniquecode\"))) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n } else {\n obj = new JSONObject();\n obj.put(\"uniquecode\", rs.getString(\"uniquecode\"));\n obj.put(\"accountId\", rs.getString(\"id\"));\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = rs.getString(\"uniquecode\");\n }\n }\n\n }\n }\n // Transaction not exists for the period\n else if (!result.has(\"list\")) {\n\n List<GLJournalApprovalVO> period = getAllPeriod(ClientId, fromDate, DateTo);\n String tempYear = null;\n\n if (uniqueCode != null) {\n ElementValue type = OBDal.getInstance().get(ElementValue.class, inpcElementValueIdFrom);\n for (GLJournalApprovalVO vo : period) {\n\n if (tempYear != null) {\n if (!tempYear.equals(vo.getStartdate().split(\"-\")[2])) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n } else {\n tempYear = vo.getStartdate().split(\"-\")[2];\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, vo.getId());\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n\n List<GLJournalApprovalVO> initial = selectInitialBal(uniqueCode, vo.getStartdate(),\n FrmPerStDate, strStrDateFC, type.getAccountType(), 1, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO VO = initial.get(0);\n initialDr = VO.getInitDr();\n initialCr = VO.getInitCr();\n initialNet = VO.getInitNet();\n\n }\n if (tempUniqCode.equals(uniqueCode)) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n } else {\n obj = new JSONObject();\n obj.put(\"uniquecode\", uniqueCode);\n obj.put(\"accountId\", accountId);\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = uniqueCode;\n }\n }\n result.put(\"list\", array);\n } else {\n\n sqlQuery1 = \" select a.uniquecode,a.id from( select distinct coalesce(em_efin_uniquecode,acctvalue) as uniquecode ,f.account_id as id from fact_acct f where 1=1 \";\n if (strOrgFamily != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + strOrgFamily + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_CLIENT_ID IN (\" + ClientId + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + OrgId + \")\";\n sqlQuery1 += \" AND DATEACCT < TO_DATE(?) AND 1=1 \";\n if (accountId != null)\n sqlQuery1 += \"AND F.account_ID='\" + accountId + \"'\";\n if (BpartnerId != null)\n sqlQuery1 += \"AND F.C_BPARTNER_ID IN (\" + BpartnerId.replaceFirst(\",\", \"\") + \")\";\n if (productId != null)\n sqlQuery1 += \"AND F.M_PRODUCT_ID IN \" + productId;\n if (projectId != null)\n sqlQuery1 += \"AND F.C_PROJECT_ID IN (\" + projectId.replaceFirst(\",\", \"\") + \")\";\n if (DeptId != null)\n sqlQuery1 += \"AND F.C_SALESREGION_ID IN (\" + DeptId.replaceFirst(\",\", \"\") + \")\";\n if (BudgetTypeId != null)\n sqlQuery1 += \"AND coalesce(F.C_CAMPAIGN_ID, (select c.C_CAMPAIGN_ID from C_CAMPAIGN c where em_efin_iscarryforward = 'N' and ad_client_id = F.ad_client_id limit 1))='\"\n + BudgetTypeId + \"'\";\n if (FunclassId != null)\n sqlQuery1 += \"AND F.C_ACTIVITY_ID IN (\" + FunclassId.replaceFirst(\",\", \"\") + \")\";\n if (User1Id != null)\n sqlQuery1 += \"AND F.USER1_ID IN (\" + User1Id.replaceFirst(\",\", \"\") + \")\";\n if (User2Id != null)\n sqlQuery1 += \"AND F.USER2_ID IN (\" + User2Id.replaceFirst(\",\", \"\") + \")\";\n if (AcctschemaId != null)\n sqlQuery1 += \"AND F.C_ACCTSCHEMA_ID ='\" + AcctschemaId + \"'\";\n if (uniqueCode != null)\n sqlQuery1 += \"\t\tAND (F.EM_EFIN_UNIQUECODE = '\" + uniqueCode\n + \"' or F.acctvalue='\" + uniqueCode + \"')\";\n sqlQuery1 += \" AND F.ISACTIVE='Y' \" + \" ) a, c_elementvalue ev \"\n + \" where a.id = ev.c_elementvalue_id and ev.elementlevel = 'S' \";\n if (strAccountFromValue != null)\n sqlQuery1 += \"\t\tAND EV.VALUE >= '\" + strAccountFromValue + \"'\";\n if (strAccountToValue != null)\n sqlQuery1 += \"\t\tAND EV.VALUE <= '\" + strAccountToValue + \"'\";\n st = conn.prepareStatement(sqlQuery1);\n st.setString(1, DateTo);\n log4j.debug(\"Acct PTD:\" + st.toString());\n rs = st.executeQuery();\n while (rs.next()) {\n ElementValue type = OBDal.getInstance().get(ElementValue.class, rs.getString(\"id\"));\n for (GLJournalApprovalVO vo : period) {\n\n if (tempYear != null) {\n if (!tempYear.equals(vo.getStartdate().split(\"-\")[2])) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n } else {\n tempYear = vo.getStartdate().split(\"-\")[2];\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, vo.getId());\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"uniquecode\"),\n vo.getStartdate(), FrmPerStDate, strStrDateFC, type.getAccountType(), 1, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO VO = initial.get(0);\n initialDr = VO.getInitDr();\n initialCr = VO.getInitCr();\n initialNet = VO.getInitNet();\n\n }\n if (tempUniqCode.equals(rs.getString(\"uniquecode\"))) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n } else {\n obj = new JSONObject();\n obj.put(\"uniquecode\", rs.getString(\"uniquecode\"));\n obj.put(\"accountId\", rs.getString(\"id\"));\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = rs.getString(\"uniquecode\");\n }\n }\n result.put(\"list\", array);\n }\n }\n }\n\n } catch (Exception e) {\n log4j.error(\"Exception Creating Excel Sheet\", e);\n }\n return result;\n\n }",
"public Cursor getEditedExpenseLineItemCursor() {\n return getContext().getContentResolver().query(\n ExpenseEntry.CONTENT_URI,\n null,\n ExpenseEntry.COLUMN_SYNC_STATUS + \" =? \" +\n //ReportEntry.COLUMN_SYNC_STATUS + \" =? \" +\n \" AND \" + ExpenseEntry.COLUMN_EXPENSE_ID + \"!=?\",\n new String[] {\n SyncStatus.EDITED_REPORT.toString(),\n // SyncStatus.SYNC_IN_PROGRESS.toString(),\n Constants.INTERNAL_EXPENSE_LINE_ITEM_ID\n },\n null\n );\n }",
"org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine[] getExternalOrderLineArray();",
"public CachetIncidentList getIncidents() {\n throw new RuntimeException(\"Method not implemented.\");\n }",
"public static MInOutLine[] get (Ctx ctx, int C_OrderLine_ID, Trx trx)\n\t{\n\t\tArrayList<MInOutLine> list = new ArrayList<MInOutLine>();\n\t\tString sql = \"SELECT * FROM M_InOutLine WHERE C_OrderLine_ID=?\";\n\t\tPreparedStatement pstmt = null;\n\t\ttry\n\t\t{\n\t\t\tpstmt = DB.prepareStatement (sql, trx);\n\t\t\tpstmt.setInt (1, C_OrderLine_ID);\n\t\t\tResultSet rs = pstmt.executeQuery ();\n\t\t\twhile (rs.next ())\n\t\t\t\tlist.add(new MInOutLine(ctx, rs, trx));\n\t\t\trs.close ();\n\t\t\tpstmt.close ();\n\t\t\tpstmt = null;\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\ts_log.log(Level.SEVERE, sql, e);\n\t\t}\n\t\ttry\n\t\t{\n\t\t\tif (pstmt != null)\n\t\t\t\tpstmt.close ();\n\t\t\tpstmt = null;\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tpstmt = null;\n\t\t}\n\t\tMInOutLine[] retValue = new MInOutLine[list.size ()];\n\t\tlist.toArray (retValue);\n\t\treturn retValue;\n\t}",
"protected List generateEventsForAdvanceAccountingLines(List<TemSourceAccountingLine> persistedAdvanceAccountingLines, List<TemSourceAccountingLine> currentAdvanceAccountingLines) {\n List events = new ArrayList();\n Map persistedLineMap = buildAccountingLineMap(persistedAdvanceAccountingLines);\n final String errorPathPrefix = KFSConstants.DOCUMENT_PROPERTY_NAME + \".\" + TemPropertyConstants.ADVANCE_ACCOUNTING_LINES;\n final String groupErrorPathPrefix = errorPathPrefix + KFSConstants.ACCOUNTING_LINE_GROUP_SUFFIX;\n\n // (iterate through current lines to detect additions and updates, removing affected lines from persistedLineMap as we go\n // so deletions can be detected by looking at whatever remains in persistedLineMap)\n int index = 0;\n for (TemSourceAccountingLine currentLine : currentAdvanceAccountingLines) {\n String indexedErrorPathPrefix = errorPathPrefix + \"[\" + index + \"]\";\n Integer key = currentLine.getSequenceNumber();\n\n AccountingLine persistedLine = (AccountingLine) persistedLineMap.get(key);\n\n if (persistedLine != null) {\n ReviewAccountingLineEvent reviewEvent = new ReviewAccountingLineEvent(indexedErrorPathPrefix, this, currentLine);\n events.add(reviewEvent);\n\n persistedLineMap.remove(key);\n }\n else {\n // it must be a new addition\n AddAccountingLineEvent addEvent = new AddAccountingLineEvent(indexedErrorPathPrefix, this, currentLine);\n events.add(addEvent);\n }\n }\n\n // detect deletions\n List<TemSourceAccountingLine> remainingPersistedLines = new ArrayList<TemSourceAccountingLine>();\n remainingPersistedLines.addAll(persistedLineMap.values());\n for (TemSourceAccountingLine persistedLine : remainingPersistedLines) {\n DeleteAccountingLineEvent deleteEvent = new DeleteAccountingLineEvent(groupErrorPathPrefix, this, persistedLine, true);\n events.add(deleteEvent);\n }\n return events;\n }",
"public static void testGetLinesOfCredit() throws MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testGetLinesOfCredit\");\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tInteger offset = 0;\n\t\tInteger limit = 5;\n\n\t\t// Test getting all lines of credit\n\t\tList<LineOfCredit> linesOfCredit = linesOfCreditService.getAllLinesOfCredit(offset, limit);\n\t\tSystem.out.println(\"Total Lines of Credit=\" + linesOfCredit.size());\n\t\tif (linesOfCredit.size() == 0) {\n\t\t\tSystem.out.println(\"*** No Lines of Credit to test ***\");\n\t\t\treturn;\n\t\t}\n\t\tfor (LineOfCredit loc : linesOfCredit) {\n\t\t\tSystem.out.println(\"\\tID=\" + loc.getId() + \"\\tAmount=\" + loc.getAmount() + \"\\tAvailable Credit Amount=\"\n\t\t\t\t\t+ loc.getAvailableCreditAmount());\n\t\t}\n\t\t// Test get Line Of Credit details\n\t\tString lineofcreditId = linesOfCredit.get(0).getId();\n\t\tSystem.out.println(\"Getting details for Line of Credit ID=\" + lineofcreditId);\n\t\tLineOfCredit lineOfCredit = linesOfCreditService.getLineOfCredit(lineofcreditId);\n\t\t// Log returned LoC\n\t\tSystem.out.println(\"Line of Credit. ID=\" + lineOfCredit.getId() + \"\\tAmount=\" + lineOfCredit.getAmount()\n\t\t\t\t+ \"\\tOwnerType=\" + lineOfCredit.getOwnerType() + \"\\tHolderKey=\"\n\t\t\t\t+ lineOfCredit.getAccountHolder().getAccountHolderKey());\n\t\t\n\t}",
"@Override\n public List<LineEntity> findAll() {\n return null;\n }",
"public void parseListSources(String source) {\r\n\t\t// Gets a scanner from the source\r\n\t\tInputStream in = new ByteArrayInputStream(source.getBytes());\r\n\t\t_assertedFacs = new HashSet<String>();\r\n\t\tScanner scan = new Scanner(in);\r\n\t\tString file = null;\r\n\t\tString line = null;\r\n\t\tboolean isFile = false;\r\n\t\tboolean isAsserted = false;\r\n\t\tint initLine = -1;\r\n\t\tint endLine = -1;\r\n\t\t\r\n\t\t// Puts the wait cursor\r\n\t\tAcideDataViewReplaceWindow.getInstance().setCursor(\r\n\t\t\t\tCursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\r\n\t\t\t\t\t\r\n\t\t// reads the line and chechks that is not a end nor an error\r\n\t\twhile (scan.hasNextLine()\r\n\t\t\t\t&& !(line = scan.nextLine()).replaceAll(\" \", \"\").equals(\r\n\t\t\t\t\t\t\"$error\") && !line.replaceAll(\" \", \"\").equals(\"$eot\")) {\r\n\t\t\t// checks if the next lines corresponds to a file\r\n\t\t\tif (line.replaceAll(\" \", \"\").equals(\"$file\")) {\r\n\t\t\t\tisAsserted = false;\r\n\t\t\t\tisFile = true;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t// checks if the next lines corresponds to an asserted predicate\r\n\t\t\tif (line.replaceAll(\" \", \"\").equals(\"$asserted\")) {\r\n\t\t\t\tisAsserted = true;\r\n\t\t\t\tisFile = false;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (isAsserted) {\r\n\t\t\t\t_assertedFacs.add(this._query);\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (isFile) {\r\n\t\t\t\t// checks if the line is a number of line or the file path\r\n\t\t\t\tif (line.replaceAll(\" \", \"\").matches(\"(\\\\d)+\")) {\r\n\t\t\t\t\t// gets the initial and the end line and adds the lines to\r\n\t\t\t\t\t// the highlight\r\n\t\t\t\t\tif (initLine == -1)\r\n\t\t\t\t\t\tinitLine = Integer.parseInt(line.replaceAll(\" \", \"\"));\r\n\t\t\t\t\telse if (endLine == -1) {\r\n\t\t\t\t\t\tendLine = Integer.parseInt(line.replaceAll(\" \", \"\"));\r\n\t\t\t\t\t\tfor (int i = initLine - 1; i < endLine; i++)\r\n\t\t\t\t\t\t\taddLine(file, i);\r\n\t\t\t\t\t\tinitLine = -1;\r\n\t\t\t\t\t\tendLine = -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfile = line.substring(line.indexOf(\"'\") + 1,\r\n\t\t\t\t\t\t\tline.lastIndexOf(\"'\"));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Puts the default cursor\r\n\t\tAcideDataViewReplaceWindow.getInstance().setCursor(\r\n\t\t\tCursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\r\n\t\t\t\t\t\r\n\t\tscan.close();\r\n\t}",
"public void grabarLineasInvestigacionProyecto() {\r\n try {\r\n if (!sessionProyecto.getEstadoActual().getCodigo().equalsIgnoreCase(EstadoProyectoEnum.INICIO.getTipo())) {\r\n return;\r\n }\r\n for (LineaInvestigacionProyecto lineaInvestigacionProyecto : sessionProyecto.getLineasInvestigacionSeleccionadasTransfer()) {\r\n if (lineaInvestigacionProyecto.getId() == null) {\r\n lineaInvestigacionProyecto.setProyectoId(sessionProyecto.getProyectoSeleccionado());\r\n lineaInvestigacionProyectoService.guardar(lineaInvestigacionProyecto);\r\n grabarIndividuoLP(lineaInvestigacionProyecto);\r\n logDao.create(logDao.crearLog(\"LineaInvestigacionProyecto\", lineaInvestigacionProyecto.getId() + \"\",\r\n \"CREAR\", \"Proyecto=\" + sessionProyecto.getProyectoSeleccionado().getId() + \"|LineaInvestigacion=\"\r\n + lineaInvestigacionProyecto.getLineaInvestigacionId().getId(), sessionUsuario.getUsuario()));\r\n continue;\r\n }\r\n lineaInvestigacionProyectoService.actulizar(lineaInvestigacionProyecto);\r\n }\r\n } catch (Exception e) {\r\n }\r\n \r\n }",
"@Override\n public List<PurchaseOrderLine> getOrderlines() {\n return orderLines;\n }",
"org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine getExternalOrderLineArray(int i);",
"protected List<String> defaultKeyOfExpenseTransferAccountingLine() {\n List<String> defaultKey = new ArrayList<String>();\n\n defaultKey.add(KFSPropertyConstants.POSTING_YEAR);\n defaultKey.add(KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE);\n defaultKey.add(KFSPropertyConstants.ACCOUNT_NUMBER);\n defaultKey.add(KFSPropertyConstants.SUB_ACCOUNT_NUMBER);\n\n defaultKey.add(KFSPropertyConstants.BALANCE_TYPE_CODE);\n defaultKey.add(KFSPropertyConstants.FINANCIAL_OBJECT_CODE);\n defaultKey.add(KFSPropertyConstants.FINANCIAL_SUB_OBJECT_CODE);\n\n defaultKey.add(KFSPropertyConstants.EMPLID);\n defaultKey.add(KFSPropertyConstants.POSITION_NUMBER);\n\n defaultKey.add(LaborPropertyConstants.PAYROLL_END_DATE_FISCAL_YEAR);\n defaultKey.add(LaborPropertyConstants.PAYROLL_END_DATE_FISCAL_PERIOD_CODE);\n\n return defaultKey;\n }",
"public List<CommissionDistribution> lookupHistory(Long sourceAccount) {\n throw new UnsupportedOperationException(\"Not Implemented yet.\");\n }",
"public List<TransactionReportRow> generateReportOnAllWithdrawalTransactions(int start, int numOfRows) throws MiddlewareQueryException;",
"public List<Income> getAllIncome() {\n\t\tSession session=null;\n\t\tTransaction tx=null;\n\t\tList<Income> list=null;\n\t\ttry {\n\t\t\tsession=BuildSessionFactory.getCurrentSession();\n\t\t\ttx=session.beginTransaction();\n\t\t\tlist=incomeDao.findAll(session, \"from Income\");\n\t\t\ttx.commit();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tif(tx!=null){\n\t\t\t\ttx.rollback();\n\t\t\t\tthrow new UserException(e.getMessage());\n\t\t\t}\n\t\t}finally{\n\t\t\tif(session!=null && session.isOpen()){\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"public ArrayList<TransactionDetailByAccount> getMissionChecksByAccount(\n\t\t\tlong accountId, FinanceDate start, FinanceDate end, long companyId)\n\t\t\tthrows AccounterException {\n\t\tSession session = HibernateUtil.getCurrentSession();\n\t\tArrayList<TransactionDetailByAccount> list = new ArrayList<TransactionDetailByAccount>();\n\n\t\tAccount account = (Account) session.get(Account.class, accountId);\n\t\tif (account == null) {\n\t\t\tthrow new AccounterException(Global.get().messages()\n\t\t\t\t\t.pleaseSelect(Global.get().messages().account()));\n\t\t}\n\t\tList result = new ArrayList();\n\t\tif (account.getType() == Account.TYPE_OTHER_CURRENT_ASSET) {\n\t\t\tresult = session\n\t\t\t\t\t.getNamedQuery(\"get.all.invoices.by.account\")\n\t\t\t\t\t.setParameter(\"startDate\", start.getDate())\n\t\t\t\t\t.setParameter(\"endDate\", end.getDate())\n\t\t\t\t\t.setParameter(\"companyId\", companyId)\n\t\t\t\t\t.setParameter(\"accountId\", accountId)\n\t\t\t\t\t.setParameter(\"tobePrint\", \"TO BE PRINTED\",\n\t\t\t\t\t\t\tEncryptedStringType.INSTANCE)\n\t\t\t\t\t.setParameter(\"empty\", \"\", EncryptedStringType.INSTANCE)\n\t\t\t\t\t.list();\n\t\t} else if (account.getType() == ClientAccount.TYPE_BANK) {\n\t\t\tresult = session\n\t\t\t\t\t.getNamedQuery(\"get.missing.checks.by.account\")\n\t\t\t\t\t.setParameter(\"accountId\", accountId)\n\t\t\t\t\t.setParameter(\"startDate\", start.getDate())\n\t\t\t\t\t.setParameter(\"endDate\", end.getDate())\n\t\t\t\t\t.setParameter(\"companyId\", companyId)\n\t\t\t\t\t.setParameter(\"tobePrint\", \"TO BE PRINTED\",\n\t\t\t\t\t\t\tEncryptedStringType.INSTANCE)\n\t\t\t\t\t.setParameter(\"empty\", \"\", EncryptedStringType.INSTANCE)\n\t\t\t\t\t.list();\n\t\t}\n\t\tIterator iterator = result.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tObject[] objects = (Object[]) iterator.next();\n\t\t\tTransactionDetailByAccount detailByAccount = new TransactionDetailByAccount();\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionId((Long) (objects[0] != null ? objects[0]\n\t\t\t\t\t\t\t: 0));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionType((Integer) (objects[1] != null ? objects[1]\n\t\t\t\t\t\t\t: 0));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionNumber((String) (objects[2] != null ? objects[2]\n\t\t\t\t\t\t\t: \"\"));\n\t\t\tClientFinanceDate date = new ClientFinanceDate(\n\t\t\t\t\t(Long) (objects[3] != null ? objects[3] : 0));\n\t\t\tdetailByAccount.setTransactionDate(date);\n\t\t\tdetailByAccount.setName((String) (objects[4] != null ? objects[4]\n\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setAccountName((String) (objects[5] != null ? objects[5]\n\t\t\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount.setMemo((String) (objects[6] != null ? objects[6]\n\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount.setTotal((Double) (objects[7] != null ? objects[7]\n\t\t\t\t\t: 0.0));\n\t\t\tlist.add(detailByAccount);\n\n\t\t}\n\t\treturn list;\n\t}",
"List<TradeItem> getDeclinedTrades(long accountId);",
"public List<DBIncomesModel> getAllIncomeList() {\n List<DBIncomesModel> incomeArrayList = new ArrayList<DBIncomesModel>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_INCOME;\n Log.d(TAG, selectQuery);\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (c.moveToFirst()) {\n do {\n DBIncomesModel income = new DBIncomesModel();\n income.id = c.getInt(c.getColumnIndex(KEY_ID));\n income.type = c.getString(c.getColumnIndex(KEY_TYPE));\n income.amount = c.getInt(c.getColumnIndex(KEY_AMOUNT));\n income.place = c.getString(c.getColumnIndex(KEY_PLACE));\n income.note = c.getString(c.getColumnIndex(KEY_NOTE));\n income.cheque = c.getInt(c.getColumnIndex(KEY_CHEQUE));\n income.date = c.getString(c.getColumnIndex(KEY_DATE));\n\n // adding to Expenses list\n incomeArrayList.add(income);\n } while (c.moveToNext());\n }\n return incomeArrayList;\n }",
"List<Line> getLines();",
"public List<moneytree.persist.db.generated.tables.pojos.Income> fetchBySource(String... values) {\n return fetch(Income.INCOME.SOURCE, values);\n }",
"public double givenInvestmentIncomeEstimateIncomeGetInterceptAll(){\n\t\treturn formatReturnValue(investmentIncomeFindIncome.getInterceptAll());\n\t}",
"public List<DBExpensesModel> getAllExpenseList() {\n List<DBExpensesModel> expenseArrayList = new ArrayList<DBExpensesModel>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_EXPENSE;\n Log.d(TAG, selectQuery);\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (c.moveToFirst()) {\n do {\n DBExpensesModel expense = new DBExpensesModel();\n expense.id = c.getInt(c.getColumnIndex(KEY_ID));\n expense.type = c.getString(c.getColumnIndex(KEY_TYPE));\n expense.amount = c.getInt(c.getColumnIndex(KEY_AMOUNT));\n expense.place = c.getString(c.getColumnIndex(KEY_PLACE));\n expense.note = c.getString(c.getColumnIndex(KEY_NOTE));\n expense.cheque = c.getInt(c.getColumnIndex(KEY_CHEQUE));\n expense.date = c.getString(c.getColumnIndex(KEY_DATE));\n\n // adding to Expenses list\n expenseArrayList.add(expense);\n } while (c.moveToNext());\n }\n return expenseArrayList;\n }",
"public static void testGetCustomerLinesOfCredit() throws MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testGetCustomerLinesOfCredit\");\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tInteger offset = 0;\n\t\tInteger limit = 30;\n\t\t// Test Get line of credit for a Client\n\t\t// Get Demo Client ID first\n\n\t\tfinal String clientId = DemoUtil.getDemoClient().getId();\n\t\t// Get Lines of Credit for a client\n\t\tList<LineOfCredit> clientLoCs = linesOfCreditService.getClientLinesOfCredit(clientId, offset, limit);\n\t\tSystem.out.println(clientLoCs.size() + \" lines of credit for Client \" + clientId);\n\n\t\t// Test Get line of credit for a Group\n\t\t// Get Demo Group ID first\n\t\tfinal String groupId = DemoUtil.getDemoGroup().getId();\n\t\t// Get Lines of Credit for a group\n\t\tList<LineOfCredit> groupLoCs = linesOfCreditService.getGroupLinesOfCredit(groupId, offset, limit);\n\t\tSystem.out.println(groupLoCs.size() + \" lines of credit for Group \" + groupId);\n\n\t}",
"Iterable<Airline> getAirlines();",
"private ArrayList<String> GetOrderContent() {\n ArrayList<String> order_content = new ArrayList<>();\n boolean added = false;\n for (String line : receipt_lines) {\n if (IsReceiptHeader(line) || IsReceiptFooter(line) || ColesReceiptItem.Is_So_On_Keyword(line) || ColesReceiptItem.Is_Empty(line))\n continue;\n if (ColesReceiptItem.Is_Total_Line(line)) break;\n if (ColesReceiptItem.Is_Order_Summary_Keyword(line))\n added = true;\n else if (added) order_content.add(line);\n }\n return order_content;\n }",
"public List<TaskOrder> getLineItems() {\n if (lineItems == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n TaskOrderDao targetDao = daoSession.getTaskOrderDao();\n List<TaskOrder> lineItemsNew = targetDao._queryTask_LineItems(uuid);\n synchronized (this) {\n if(lineItems == null) {\n lineItems = lineItemsNew;\n }\n }\n }\n return lineItems;\n }",
"public static void deleteEncumLines(EfinBudgetManencum encum, AccountingCombination com,\n EscmProposalMgmt proposal, EscmProposalmgmtLine proposalmgmtline) {\n EfinBudgetManencumlines line = null;\n List<EfinBudgetManencumlines> lineList = new ArrayList<EfinBudgetManencumlines>();\n List<EscmProposalmgmtLine> propsallnLs = null;\n try {\n\n OBQuery<EfinBudgetManencumlines> delLineQry = OBDal.getInstance()\n .createQuery(EfinBudgetManencumlines.class, \" as e where e.manualEncumbrance.id=:encumID \"\n + \" and e.accountingCombination.id=:acctID and e.isauto='Y' \");\n delLineQry.setNamedParameter(\"encumID\", encum.getId());\n delLineQry.setNamedParameter(\"acctID\", com.getId());\n delLineQry.setMaxResult(1);\n lineList = delLineQry.list();\n if (lineList.size() > 0) {\n line = lineList.get(0);\n log.debug(\"line:\" + line);\n if (proposal != null) {\n OBQuery<EscmProposalmgmtLine> propsalln = OBDal.getInstance().createQuery(\n EscmProposalmgmtLine.class,\n \" as e where e.escmProposalmgmt.id=:proposalId and e.efinBudgmanencumline.id=:encumLnId\");\n propsalln.setNamedParameter(\"proposalId\", proposal.getId());\n propsalln.setNamedParameter(\"encumLnId\", line.getId());\n propsallnLs = propsalln.list();\n } else {\n OBQuery<EscmProposalmgmtLine> propsalln = OBDal.getInstance().createQuery(\n EscmProposalmgmtLine.class,\n \" as e where e.id=:proposalLineId and e.efinBudgmanencumline.id=:encumLnId\");\n propsalln.setNamedParameter(\"proposalLineId\", proposalmgmtline.getId());\n propsalln.setNamedParameter(\"encumLnId\", line.getId());\n propsallnLs = propsalln.list();\n }\n\n if (propsallnLs.size() > 0) {\n for (EscmProposalmgmtLine prosalline : propsallnLs) {\n prosalline.setEfinBudgmanencumline(null);\n OBDal.getInstance().save(prosalline);\n }\n }\n encum.getEfinBudgetManencumlinesList().remove(line);\n encum.setDocumentStatus(\"DR\");\n OBDal.getInstance().remove(line);\n }\n encum.setDocumentStatus(\"CO\");\n OBDal.getInstance().flush();\n } catch (Exception e) {\n OBDal.getInstance().rollbackAndClose();\n log.error(\"Exception in deleteEncumLines \" + e, e);\n }\n }",
"List<TradeItem> getUnhandledAcceptedTrades(long accountId);",
"@Test\n\tpublic void findAllOrderLines() {\n\t\t// TODO: JUnit - Populate test inputs for operation: findAllOrderLines \n\t\tInteger startResult = 0;\n\t\tInteger maxRows = 0;\n\t\tList<OrderLine> response = null;\n\t\tresponse = service.findAllOrderLines(startResult, maxRows);\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: findAllOrderLines\n\t}",
"public List<OrderLine> getOrderLineList() {\n\t\tHttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance()\n\t\t\t\t.getExternalContext().getRequest();\n\t\tHttpSession session = ((HttpServletRequest) request).getSession(false);\n\t\t\n\t\t//recuperation du login\n\t\tlogin = (session != null) ? (LoginMB) session.getAttribute(\"loginMB\") : null;\n\t\t//recuperation du user\n\t\tSystem.out.println(\"login user from session : \"+login.getUser().getIdPerson());\n\t\torderList = orderBu.getLastOrder(login.getUser().getIdPerson());\n\t\t\n\t\tSet<OrderLine> set = new HashSet<OrderLine>();\n\t\tset = orderList.get(orderList.size()-1).getOrderLines();\n\t\torderLineList = new ArrayList<OrderLine>(set);\n\t\tsetTotal(orderList.get(orderList.size()-1).getTotalAmount());\n\t\t\n\t\t\n\t\treturn orderLineList;\n\t}",
"public List<String> getAirlines(){\n List<String> airlines = new LinkedList<String>();\n for (Flight flight : flights) {\n airlines.add(flight.getAirlineCode());\n }\n return airlines;\n }",
"public void transferLineasInvestigacion(TransferEvent event) {\r\n try {\r\n for (Object item : event.getItems()) {\r\n int v = item.toString().indexOf(\":\");\r\n Long id = Long.parseLong(item.toString().substring(0, v));\r\n LineaInvestigacion li = lineaInvestigacionService.buscarPorId(new LineaInvestigacion(id));\r\n LineaInvestigacionProyecto lp = new LineaInvestigacionProyecto();\r\n if (li != null) {\r\n lp.setLineaInvestigacionId(li);\r\n }\r\n if (event.isRemove()) {\r\n sessionProyecto.getLineasInvestigacionSeleccionadasTransfer().remove(lp);\r\n sessionProyecto.getLineasInvestigacionRemovidosTransfer().add(lp);\r\n int pos = 0;\r\n for (LineaInvestigacionProyecto lip : sessionProyecto.getLineasInvestigacionProyecto()) {\r\n if (!lip.getLineaInvestigacionId().equals(lp.getLineaInvestigacionId())) {\r\n pos++;\r\n } else {\r\n break;\r\n }\r\n }\r\n sessionProyecto.getLineasInvestigacionSeleccionadas().remove(pos);\r\n } else {\r\n if (event.isAdd()) {\r\n if (contieneLineaInvestigacion(sessionProyecto.getLineasInvestigacionProyecto(), lp)) {\r\n sessionProyecto.getLineasInvestigacionRemovidosTransfer().add(lp);\r\n }\r\n sessionProyecto.getLineasInvestigacionSeleccionadas().add(li);\r\n sessionProyecto.getLineasInvestigacionSeleccionadasTransfer().add(lp);\r\n }\r\n }\r\n }\r\n } catch (NumberFormatException e) {\r\n System.out.println(e);\r\n }\r\n }",
"public double givenInvestmentIncomeEstimateIncomeGetSlopeAll(){\n\t return formatReturnValue(investmentIncomeFindIncome.getSlopeAll());\n\t}",
"public List<Docl> getMaintenanceCreditARLinesWithoutMarkupAndTaxList(MaintenanceRequest mrq){\n\t\tList<Docl> taxDoclList = new ArrayList<Docl>();\n\t\ttry{\n\t\t\tList<DoclPK> taxDoclPKList = maintenanceInvoiceDAO.getMaintenanceCreditARDoclPKsWithoutTaxAndMarkupLines(mrq);\n\t\t\tfor(DoclPK doclPK : taxDoclPKList){\n\t\t\t\ttaxDoclList.add(doclDAO.findById(doclPK).orElse(null));\n\t\t\t}\n\t\t\treturn taxDoclList;\n\t\t}catch(Exception ex){\n\t\t\tthrow new MalException(\"generic.error.occured.while\", \n\t\t\t\t\tnew String[] { \"retrieving creditAR tax for purchase order number: \" + mrq.getJobNo()}, ex);\n\t\t}\n\t}",
"protected ArrayList<Line> findScope (Line start, ArrayList<Line> all) throws InnerScopeHasNoEnd{\n ArrayList<Line> scopeLines = new ArrayList<>();\n int curLineNum = all.indexOf(start);\n Line cur = start;\n scopeLines.add(cur);\n int numOpen = 1;\n int numClose = 0;\n while (!(numClose== numOpen)){ // while number of opening scope lines not equals to end scope lines.\n try{\n curLineNum += 1;\n cur = all.get(curLineNum);\n scopeLines.add(cur);\n if (cur.startScope()){\n numOpen += 1;\n }\n if (cur.endScope()){\n numClose += 1;\n }\n } // if we get out of the all ArrayList, mean the scope has no end\n catch (Exception e){\n throw new InnerScopeHasNoEnd();\n }\n }\n return scopeLines;\n }",
"public Expence getExpenceIds(Integer id)\r\n/* 174: */ {\r\n/* 175:178 */ return this.expenceDao.getExpenceIds(id);\r\n/* 176: */ }",
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.AppCritLineOfBusiness[] getLinesOfBusiness();",
"public OtlSourcesImpl getOtlSources() {\r\n return (OtlSourcesImpl)getEntity(0);\r\n }",
"public TemSourceAccountingLine createNewAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setCardType(TemConstants.ADVANCE); // really, card type is ignored but it is validated so we have to set something\n accountingLine.setFinancialObjectCode(this.getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE, KFSConstants.EMPTY_STRING));\n return accountingLine;\n }\n catch (IllegalAccessException iae) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", iae);\n }\n catch (InstantiationException ie) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", ie);\n }\n }",
"@Test\n\tpublic void loadOrderLines() {\n\t\tSet<OrderLine> response = null;\n\t\tresponse = service.loadOrderLines();\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: loadOrderLines\n\t}",
"void getAllLines(Vector<Integer> lineIDs,Vector<Integer> lineDepIDs, Vector<String> lineCodes, String empresa);",
"private static List<ITransferObject> getOfferLines(Offer offer) throws ManagerBeanException{\r\n\t\tList<ITransferObject> lines = null;\r\n\t\tIManagerBean offerDetailBean = BeanManager\r\n\t\t\t\t.getManagerBean(OfferDetail.class);\r\n\t\tCriteria offerDetailCriteria = new Criteria();\r\n\t\tofferDetailCriteria.addEqualExpression(offerDetailBean\r\n\t\t\t\t.getFieldName(ICommercialAlias.OFFER_DETAIL_OFFER_ID), offer.getId());\r\n\t\tlines = offerDetailBean\r\n\t\t\t\t.getList(offerDetailCriteria);\r\n\t\treturn lines;\r\n\t}",
"public POSLineItemWrapper[] getRetailExportLineItemsArray() {\n Vector rtnVal = new Vector();\n POSLineItem[] items = compositePOSTransaction.getLineItemsArray();\n for (int idx = 0; idx < items.length; idx++) {\n //if(!((CMSItem)items[idx].getItem()).isConcessionItem() && !((CMSItem)items[idx].getItem()).getVatCode().equals(\"0\"))\n if (((CMSItem)items[idx].getItem()).getVatRate() != null\n && ((CMSItem)items[idx].getItem()).getVatRate().doubleValue() > 0) {\n rtnVal.add(items[idx]);\n }\n }\n Set set = new HashSet();\n for (Iterator it = rtnVal.iterator(); it.hasNext(); ) {\n POSLineItem line = (POSLineItem)it.next();\n set.add(line.getLineItemGrouping());\n }\n return (getWrappersForGroupings((POSLineItemGrouping[])set.toArray(new POSLineItemGrouping[0])));\n }",
"public static List<Contract> readFromFile(String filename) {\n List<Contract> contracts = new ArrayList<>();\n\n InputStreamReader inputStreamReader = null;\n try {\n inputStreamReader = new InputStreamReader(new FileInputStream(new File(filename)),\"cp1251\");\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String [] lines = null;\n String line = null;\n try{\n while ((line = bufferedReader.readLine()) != null) {\n\n lines= line.split(\",\");\n\n\n LocalDate conc = LocalDate.parse(lines[1], DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n LocalDate start = LocalDate.parse(lines[2], DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n LocalDate end = LocalDate.parse(lines[3], DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n\n Client client=new Client(ClientType.valueOf(lines[4]),lines[5],lines[6]);\n\n ArrayList<InsuredPerson>insuredPeople=new ArrayList<>();\n for(int i=7; i<lines.length; i+=4 ){\n LocalDate d=LocalDate.parse(lines[i+2],DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n InsuredPerson person = new InsuredPerson(Integer.valueOf(lines[i]),lines[i+1],d,Double.valueOf(lines[i+3]));\n insuredPeople.add(person);\n\n\n }\n Contract contract=new Contract(Integer.valueOf(lines[0]),conc,start,end,client,insuredPeople);\n contracts.add(contract);\n }\n bufferedReader.close();}\n catch (IOException e){\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n return contracts;\n\n }",
"public List<SalesOrderHeaderPartner> fetchPartner()\r\n throws ODataException\r\n {\r\n if (erpConfigContext == null) {\r\n throw new ODataException(ODataExceptionType.OTHER, \"Failed to fetch related objects of type SalesOrderHeaderPartner.\", new IllegalStateException(\"Unable to execute OData query. The entity was created locally without an assigned ERP configuration context. This method is applicable only on entities which were retrieved or created using the OData VDM.\"));\r\n }\r\n final StringBuilder odataResourceUrl = new StringBuilder(getEntityCollection());\r\n odataResourceUrl.append(\"(\");\r\n odataResourceUrl.append(\"SalesOrder=\");\r\n odataResourceUrl.append(ODataTypeValueSerializer.of(EdmSimpleTypeKind.String).toUri(salesOrder));\r\n odataResourceUrl.append(\")/\");\r\n odataResourceUrl.append(\"to_Partner\");\r\n final ODataQueryBuilder builder = ODataQueryBuilder.withEntity(getEndpointUrl(), odataResourceUrl.toString());\r\n final ODataQuery query = builder.build();\r\n final ErpEndpoint erpEndpoint = new ErpEndpoint(erpConfigContext);\r\n final ODataQueryResult result = query.execute(erpEndpoint);\r\n final List<SalesOrderHeaderPartner> entityList = result.asList(SalesOrderHeaderPartner.class);\r\n for (SalesOrderHeaderPartner entity: entityList) {\r\n entity.setErpConfigContext(erpConfigContext);\r\n }\r\n return entityList;\r\n }",
"public List<TransactionReportRow> generateReportOnAllUncommittedTransactions(int start, int numOfRows) throws MiddlewareQueryException;",
"@Override\n public List<GeneralLedgerPendingEntrySourceDetail> getGeneralLedgerPendingEntrySourceDetails() {\n if (TemConstants.TravelAuthorizationStatusCodeKeys.CLOSED.equals(getAppDocStatus()) || TemConstants.TravelAuthorizationStatusCodeKeys.CANCELLED.equals(getAppDocStatus())) {\n return new ArrayList<GeneralLedgerPendingEntrySourceDetail>(); // hey, we're closed or cancelled. Let's not generate entries\n }\n return super.getGeneralLedgerPendingEntrySourceDetails();\n }",
"public static ArrayList<String> getLines() throws Exception\n {\n \tArrayList<String> lines = new ArrayList<String>();\n \twhile(reader.ready())\n \t{\n \t\tlines.add(reader.readLine());//reads the line and adds them into the arraylist\n \t}\n \treturn lines;\n }",
"List<ObjectExpenseEntity> getAllObjectExpenses();",
"@Override\n\tpublic ResultMessage getComingExpresses(String orgId) {\n\t\treturn orderState.getExpressHere(orgId);\n\t}",
"ObservableList<Expense> getExpenseList();",
"public String readAllLines() {\n String ans = \"\";\n try {\n BufferedReader br = new BufferedReader(new FileReader(\"./assets/Instruction.txt\"));\n String str;\n while ((str = br.readLine()) != null) {\n ans += (str + \"\\n\");\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n assert ans != null;\n return ans;\n }",
"private List<FIN_ReconciliationLineTemp> getRecTempLines(FIN_BankStatementLine bsline) {\n OBContext.setAdminMode();\n try {\n final OBCriteria<FIN_ReconciliationLineTemp> obc = OBDal.getInstance().createCriteria(\n FIN_ReconciliationLineTemp.class);\n obc.add(Restrictions.eq(FIN_ReconciliationLineTemp.PROPERTY_BANKSTATEMENTLINE, bsline));\n return obc.list();\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"public JSONObject getInvoiceForGSTR3BTaxable(JSONObject reqParams) throws JSONException, ServiceException {\n /**\n * Get Invoice total sum\n */\n String companyId=reqParams.optString(\"companyid\");\n reqParams.put(\"entitycolnum\", reqParams.optString(\"invoiceentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"invoiceentityValue\"));\n JSONObject jSONObject = new JSONObject();\n List<Object> invoiceData = accEntityGstDao.getInvoiceDataWithDetailsInSql(reqParams);\n reqParams.remove(\"isb2cs\"); // remove to avoid CN index while fetching data\n double taxableAmountInv = 0d;\n double totalAmountInv = 0d;\n double IGSTAmount = 0d;\n double CGSTAmount = 0d;\n double SGSTAmount = 0d;\n double CESSAmount = 0d;\n int count=0;\n if (!reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n for (Object object : invoiceData) {\n Object[] data = (Object[]) object;\n String term = data[1]!=null?data[1].toString():\"\";\n double termamount = data[0]!=null?(Double) data[0]:0;\n count = data[4]!=null?((BigInteger) data[4]).intValue():0;\n totalAmountInv = data[3]!=null?(Double) data[3]:0;\n if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputIGST\").toString())) {\n taxableAmountInv += data[2]!=null?(Double) data[2]:0;\n IGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCGST\").toString())) {\n taxableAmountInv += data[2]!=null?(Double) data[2]:0;\n CGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputSGST\").toString())) {\n SGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputUTGST\").toString())) {\n SGSTAmount += termamount;\n } else if (term.equalsIgnoreCase(LineLevelTerms.GSTName.get(\"OutputCESS\").toString())) {\n CESSAmount += termamount;\n } else if(StringUtil.isNullOrEmpty(term)){\n taxableAmountInv += data[2]!=null?(Double) data[2]:0;\n }\n }\n jSONObject.put(\"count\", count);\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount(taxableAmountInv, companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount(IGSTAmount,companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount(CGSTAmount,companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount(SGSTAmount,companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount(CESSAmount,companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount(IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount(taxableAmountInv+IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n } else {\n jSONObject = accGSTReportService.getSalesInvoiceJSONArrayForGSTR3B(invoiceData, reqParams, companyId);\n }\n return jSONObject;\n }",
"public List<DocumentoEntrata> getListaNoteCreditoEntrataFiglio(){\n\t\treturn getListaDocumentiEntrataFiglioByTipoGruppo(TipoGruppoDocumento.NOTA_DI_CREDITO);\n\t}",
"@Override\n public HttpClientApiLayerEntity getCuotesFromCurrenciesSource(String source) {\n HttpRequest<?> req = HttpRequest.GET(uri+\"&source=\"+source);\n return (HttpClientApiLayerEntity) httpClient.retrieve(req, Argument.of(List.class, HttpClientApiLayerEntity.class)).blockingSingle().get(0);\n\n }",
"ObservableList<Expense> getFilteredExpenseList() throws NoUserSelectedException;",
"@Override\r\n public void resetAccount() {\r\n super.resetAccount();\r\n this.getNewSourceLine().setAmount(null);\r\n this.getNewSourceLine().setAccountLinePercent(new BigDecimal(0));\r\n }",
"public static void testGetDetailsForLineOfCredit() throws MambuApiException {\n\t\tString methodName = new Object() {}.getClass().getEnclosingMethod().getName();\n\t\tSystem.out.println(\"\\nIn \" + methodName);\n\t\t\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tInteger offset = 0;\n\t\tInteger limit = 100;\n\t\t\n\t\tList<LineOfCredit> linesOfCredit = linesOfCreditService.getAllLinesOfCredit(offset, limit);\n\t\t\n\t\tif(CollectionUtils.isNotEmpty(linesOfCredit)){\n\n\t\t\t/* Get all details for first line of credit found */\n\t\t\tLineOfCredit firstLineOfCredit = linesOfCredit.get(0);\n\t\t\t\n\t\t\tSystem.out.println(\"Getting all details for Line of Credit ID= \" + firstLineOfCredit.getEncodedKey());\n\t\t\t\n\t\t\tLineOfCredit lineOfCreditDetails = linesOfCreditService.getLineOfCreditDetails(firstLineOfCredit.getEncodedKey());\n\t\t\t\n\t\t\t// Log returned LoC details\n\t\t\tlogLineOfCreditDetails(lineOfCreditDetails);\n\t\t}else{\n\t\t\tSystem.out.println(\"WARNING: No Credit lines were found in order to run test \" + methodName);\n\t\t}\n\t\t\n\t}",
"private ArrayList<Entrant> getEntrants(File path,ArrayList<Course> courses)\n {\n Start.log(\"Getting Entrants\");\n ArrayList<Entrant> tempEntrants = new ArrayList<Entrant>();\n ArrayList<String> file = getFile(path);\n for (int i = 0; i < file.size();i++)\n {\n //scan and pharse the data into th relivant feilds\n Scanner scan = new Scanner(file.get(i));\n int entrantNo = scan.nextInt();\n char course = scan.next().charAt(0);\n String name = scan.next() + \" \" + scan.next();\n Course tcourse = null;\n //find the correct course for the entrant and add it in \n for (int j = 0;j < courses.size();j++)\n {\n if (courses.get(j).getIdent() == course)\n {\n tcourse = courses.get(j);\n break; \n }\n } \n tempEntrants.add(new Entrant(entrantNo,tcourse,name));\n }\n \n return tempEntrants;\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.FinancialStatement[] getFinancialStatementsArray();",
"public List<Adjustment> selectAll() {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\treturn session.createCriteria(Adjustment.class).list();\r\n\t}",
"@GetMapping(path=\"/expenses/all\")\n\tpublic @ResponseBody Iterable<Expenses> getAllExpenses(){\n\t\treturn expenseRepository.findAll();\n\t}",
"@NotNull\n EntityIterable getSource();",
"@Override\r\n\tpublic Collection getCashFlows() {\n\t\treturn null;\r\n\t}",
"org.tensorflow.proto.profiler.XLine getLines(int index);",
"public Cursor querySources(){\n String sql = \"SELECT \" + ArticleContract.ArticleEntry.COLUMN_SOURCE + \", \"\n + ArticleContract.ArticleEntry.COLUMN_CATEGORY + \" FROM \"\n + ArticleContract.ArticleEntry.TOP_ARTICLE_TABLE + \" GROUP BY \"\n + ArticleContract.ArticleEntry.COLUMN_SOURCE + \" UNION \"\n + \"SELECT \" + ArticleContract.ArticleEntry.COLUMN_SOURCE + \", \"\n + ArticleContract.ArticleEntry.COLUMN_CATEGORY + \" FROM \"\n + ArticleContract.ArticleEntry.LATEST_ARTICLE_TABLE + \" GROUP BY \"\n + ArticleContract.ArticleEntry.COLUMN_SOURCE;\n return db.rawQuery(sql, null);\n }",
"public List<moneytree.persist.db.generated.tables.pojos.Income> fetchRangeOfSource(String lowerInclusive, String upperInclusive) {\n return fetchRange(Income.INCOME.SOURCE, lowerInclusive, upperInclusive);\n }",
"public String[] readAllLines(){\n\t\tArrayList<String> lines=new ArrayList<>();\n\t\twhile (hasNestLine())\n\t\t\tlines.add(readLine());\n\t\treturn lines.toArray(new String[lines.size()]);\n\t}",
"@Override\r\n\tprotected String[] getSpecificLines() {\r\n\t\tString[] lines = new String[4];\r\n\t\tlines[0] = \"\";\r\n\t\tif (items.toString().lastIndexOf('_') < 0) {\r\n\t\t\tlines[1] = items.toString();\r\n\t\t\tlines[2] = \"\";\r\n\t\t} else {\r\n\t\t\tlines[1] = items.toString().substring(0, items.toString().lastIndexOf('_'));\r\n\t\t\tlines[2] = items.toString().substring(items.toString().lastIndexOf('_') + 1);\r\n\t\t}\r\n\t\tlines[3] = String.valueOf(cost);\r\n\t\treturn lines;\r\n\t}",
"public GroupedReceiptLine[] getShippingRequestLinesToPrintOnReceipt() {\n List list = new ArrayList();\n if (currentShippingRequest != null) {\n CMSShippingRequest ship = (CMSShippingRequest)currentShippingRequest;\n POSLineItem[] lines = ship.getLineItemsArray();\n for (int i = 0; i < lines.length; i++) {\n list.add(GroupedReceiptLine.createGroupedReceiptLine(lines[i])[0]);\n }\n POSLineItem[] conlines = ship.getConsignmentLineItemsArray();\n for (int i = 0; i < conlines.length; i++) {\n list.add(GroupedReceiptLine.createGroupedReceiptLine(conlines[i])[0]);\n }\n POSLineItem[] prelines = ship.getPresaleLineItemsArray();\n for (int i = 0; i < prelines.length; i++) {\n list.add(GroupedReceiptLine.createGroupedReceiptLine(prelines[i])[0]);\n }\n }\n return (GroupedReceiptLine[])list.toArray(new GroupedReceiptLine[0]);\n }",
"java.util.List<org.tensorflow.proto.profiler.XLine> \n getLinesList();",
"public JSONObject getInvoiceForGSTR3BZeroRated(JSONObject reqParams) throws JSONException, ServiceException {\n /**\n * Get Invoice total sum\n */\n String companyId=reqParams.optString(\"companyid\");\n reqParams.put(\"entitycolnum\", reqParams.optString(\"invoiceentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"invoiceentityValue\"));\n JSONObject jSONObject = new JSONObject();\n List<Object> invoiceData = accEntityGstDao.getInvoiceDataWithDetailsInSql(reqParams);\n if (!reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n double taxableAmountInv = 0d;\n double taxableAmountCN = 0d;\n double taxableAmountAdv = 0d;\n double taxableAmountAdvAdjusted = 0d;\n double IGSTAmount = 0d;\n double CGSTAmount = 0d;\n double SGSTAmount = 0d;\n double CESSAmount = 0d;\n for (Object object : invoiceData) {\n Object[] data = (Object[]) object;\n// String term = data[1]!=null?data[1].toString():\"\";\n// double termamount = data[0]!=null?(Double) data[0]:0;\n taxableAmountInv = data[2]!=null?(Double) data[2]:0;\n }\n\n// /**\n// * Get CN amount\n// */\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"cnentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"cnentityValue\"));\n// reqParams.put(\"isGSTINnull\", false);\n// reqParams.put(\"GST3B\", true);\n// List<Object> cnData = accEntityGstDao.getCNDNWithInvoiceDetailsInSql(reqParams);\n// for (Object object : cnData) {\n// Object[] data = (Object[]) object;\n// String term = data[1].toString();\n// double termamount = (Double) data[0];\n// taxableAmountCN = (Double) data[2];\n// }\n//\n// /**\n// * Get Advance for which idx not linked yet\n// */\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n// reqParams.put(\"isGSTINnull\", false);\n// reqParams.put(\"GST3B\", true);\n// reqParams.put(\"at\", true);\n// reqParams.remove(\"atadj\");\n// List<Object> AdvData = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n// for (Object object : AdvData) {\n// Object[] data = (Object[]) object;\n// String term = data[1].toString();\n// double termamount = (Double) data[0];\n// taxableAmountAdv = (Double) data[2];\n//\n// }\n// /**\n// * Get Advance for which invoice isLinked\n// */\n// reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n// reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n// reqParams.put(\"isGSTINnull\", false);\n// reqParams.put(\"GST3B\", true);\n// reqParams.remove(\"at\");\n// reqParams.put(\"atadj\", true);\n// AdvData = accEntityGstDao.getAdvanceDetailsInSql(reqParams);\n// for (Object object : AdvData) {\n// Object[] data = (Object[]) object;\n// String term = data[1].toString();\n// double termamount = (Double) data[0];\n// taxableAmountAdvAdjusted = (Double) data[2];\n//\n// }\n jSONObject.put(\"Nature of Supplies\", \"b) Outward taxable supplies (zero rated)\");\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount(taxableAmountInv,companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount(IGSTAmount,companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount(CGSTAmount,companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount(SGSTAmount,companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount(CESSAmount,companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount(IGSTAmount+CGSTAmount+SGSTAmount+CESSAmount,companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount(taxableAmountInv,companyId));\n } else {\n jSONObject = accGSTReportService.getSalesInvoiceJSONArrayForGSTR3B(invoiceData, reqParams, companyId);\n }\n return jSONObject;\n }",
"@Override\n public List generateSaveEvents() {\n List events = super.generateSaveEvents();\n\n if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().isAtLeastPartiallyFilledIn() && !(getDocumentHeader().getWorkflowDocument().isInitiated() || getDocumentHeader().getWorkflowDocument().isSaved())) {\n // only check advance accounting lines if the travel advance is filled in\n final List<TemSourceAccountingLine> persistedAdvanceAccountingLines = getPersistedAdvanceAccountingLinesForComparison();\n final List<TemSourceAccountingLine> currentAdvanceAccountingLines = getAdvanceAccountingLinesForComparison();\n\n final List advanceEvents = generateEventsForAdvanceAccountingLines(persistedAdvanceAccountingLines, currentAdvanceAccountingLines);\n events.addAll(advanceEvents);\n }\n\n return events;\n }",
"private void generateIncomingReport() {\r\n\r\n\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\tstringBuilder.append(\"\\n----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Incoming Daily Amount \\n\")\r\n\t\t\t\t.append(\"----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Date | Trade Amount \\n\")\r\n\t\t\t\t.append(\"-----------------+----------------------\\n\");\r\n\t\tallIncomings.entrySet().forEach(\r\n\t\t\t\tkey -> stringBuilder.append(key.getKey() + \" | \" + key.getValue().get() + \"\\n\"));\r\n\t\tdataWriter.write(stringBuilder.toString());\r\n\t}",
"public static MInOutLine[] getOfOrderLine (Ctx ctx, \n\t\tint C_OrderLine_ID, String where, Trx trx)\n\t{\n\t\tArrayList<MInOutLine> list = new ArrayList<MInOutLine>();\n\t\tString sql = \"SELECT * FROM M_InOutLine WHERE C_OrderLine_ID=?\";\n\t\tif (where != null && where.length() > 0)\n\t\t\tsql += \" AND \" + where;\n\t\tPreparedStatement pstmt = null;\n\t\ttry\n\t\t{\n\t\t\tpstmt = DB.prepareStatement (sql, trx);\n\t\t\tpstmt.setInt (1, C_OrderLine_ID);\n\t\t\tResultSet rs = pstmt.executeQuery ();\n\t\t\twhile (rs.next ())\n\t\t\t\tlist.add(new MInOutLine(ctx, rs, trx));\n\t\t\trs.close ();\n\t\t\tpstmt.close ();\n\t\t\tpstmt = null;\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\ts_log.log(Level.SEVERE, sql, e);\n\t\t}\n\t\ttry\n\t\t{\n\t\t\tif (pstmt != null)\n\t\t\t\tpstmt.close ();\n\t\t\tpstmt = null;\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tpstmt = null;\n\t\t}\n\t\tMInOutLine[] retValue = new MInOutLine[list.size ()];\n\t\tlist.toArray (retValue);\n\t\treturn retValue;\n\t}",
"@Override\n public NestedSet<Artifact> getDeclaredIncludeSrcs() {\n return ccCompilationContext.getDeclaredIncludeSrcs();\n }",
"@Override\n public JSONObject loadInvoiceGrid() {\n\n return null;\n }",
"public ArrayList<ReconciliationDiscrepancy> getReconciliationDiscrepancyByAccount(\n\t\t\tlong accountId, ClientFinanceDate start, ClientFinanceDate end,\n\t\t\tlong companyId) {\n\t\tSession session = HibernateUtil.getCurrentSession();\n\t\tArrayList<ReconciliationDiscrepancy> list = new ArrayList<ReconciliationDiscrepancy>();\n\t\tList result = session\n\t\t\t\t.getNamedQuery(\"get.reconcilition.discrepancy.by.account\")\n\t\t\t\t.setParameter(\"companyId\", companyId)\n\t\t\t\t.setParameter(\"startDate\", start.getDate())\n\t\t\t\t.setParameter(\"enteredDate\", end.getDate())\n\t\t\t\t.setParameter(\"accountId\", accountId).list();\n\n\t\tIterator iterator = result.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tObject[] objects = (Object[]) iterator.next();\n\n\t\t\tReconciliationDiscrepancy discrepancy = new ReconciliationDiscrepancy();\n\t\t\tdiscrepancy.setTransactionType((Integer) objects[0]);\n\t\t\tdiscrepancy\n\t\t\t\t\t.setTransactionId((Long) (objects[1] != null ? objects[1]\n\t\t\t\t\t\t\t: 0));\n\t\t\tClientFinanceDate date = new ClientFinanceDate(\n\t\t\t\t\t(Long) (objects[2] != null ? objects[2] : 0));\n\t\t\tdiscrepancy.setTransactionDate(date);\n\n\t\t\tdiscrepancy\n\t\t\t\t\t.setTransactionNumber((String) (objects[3] != null ? objects[3]\n\t\t\t\t\t\t\t: \"\"));\n\t\t\tdiscrepancy.setTransactionAmount((Double) objects[4]);\n\t\t\tdiscrepancy.setReconciliedAmount((Double) objects[5]);\n\t\t\tdiscrepancy\n\t\t\t\t\t.setName((String) (objects[6] != null ? objects[6] : \"\"));\n\n\t\t\tlist.add(discrepancy);\n\t\t}\n\t\treturn list;\n\t}",
"public SalesOrderLine get() throws ClientException {\n return send(HttpMethod.GET, null);\n }",
"private static ArrayList<String> readInventory(Scanner source) {\n\n\t\tArrayList<String> contents = new ArrayList<String>();\n\n\t\twhile (source.hasNext()) {\n\t\t\tString line = source.nextLine();\n\t\t\tcontents.add(line);\n\t\t}\n\n\t\treturn contents;\n\t}",
"private List<PurchasingOrder> getLoggedInCustomerAirlineTicketOrders() {\r\n final Customer loggedInCustomer = usersComponent.getLoggedInCustomer();\r\n return loggedInCustomer.getAirlineTicketOrders();\r\n }",
"public CostItem[] getCostReport(String start, String end) throws CostManagerException;",
"public List<ArticLine> getArticLines() {\n\n if (articLines == null) {\n articLines = new ArrayList<ArticLine>();\n\n List<Element> paragraphs = br.ufrgs.artic.utils.FileUtils.getElementsByTagName(\"para\", omniPageXMLDocument.getDocumentElement());\n\n Integer lineCounter = 0;\n Boolean foundIntroOrAbstract = false;\n String previousAlignment = null;\n Element previousElement = null;\n if (paragraphs != null && !paragraphs.isEmpty()) {\n\n for (Element paragraphElement : paragraphs) {\n\n String alignment = getAlignment(paragraphElement);\n\n String paragraph = \"new\";\n\n List<Element> linesOfParagraph = br.ufrgs.artic.utils.FileUtils.getElementsByTagName(\"ln\", paragraphElement);\n\n if (linesOfParagraph != null && !linesOfParagraph.isEmpty()) {\n for (Element lineElement : linesOfParagraph) {\n ArticLine articLine = new ArticLine(lineCounter, lineElement, previousElement,\n averagePageFontSize, alignment, previousAlignment, topBucketSize, leftBucketSize);\n articLines.add(articLine);\n\n String textContent = articLine.getOriginalText();\n\n if (textContent != null && Pattern.compile(\"intro|abstract\", Pattern.CASE_INSENSITIVE).\n matcher(textContent).find()) {\n foundIntroOrAbstract = true;\n }\n\n if (!foundIntroOrAbstract) { //special case for headers\n articLine.setParagraph(\"header\");\n } else {\n articLine.setParagraph(paragraph);\n }\n\n paragraph = \"same\";\n previousElement = lineElement;\n previousAlignment = alignment;\n lineCounter++;\n }\n }\n }\n }\n }\n\n return articLines;\n }",
"@NotNull\n List<ExpLineageEdge> getEdges(ExpLineageEdge.FilterOptions options);",
"@Override\n\tpublic void readAllAGBSources() {\n\t\t\n\t\tAPIController apic = new APIController();\n\t\t\n\t\tString s = apic.getAllAGBSources().toString();\n\t\t\n\t\tString [] sarray = s.split(\"],\");\n\t\t\n\t\tSystem.out.println(\"Alle AGBs der Datenbank: \");\n\t\tSystem.out.println(\" \");\n\t\t\n\t\tfor (int i=0; i<sarray.length; i++)\n\t\t{\n\t\t\tallAGBSources.add(sarray[i]);\n\t\t\t//System.out.println(sarray[i]);\n\t\t}\n\t\t\n\t\t\n\t\tIterator iter = allAGBSources.iterator();\n\t\t\n\t\twhile (iter.hasNext())\n\t\t{\n\t\t\tSystem.out.println(iter.next());\n\t\t}\n\n\t}",
"Set<Crate> getCrates();",
"@Override\n public PurchaseOrderLine getOrderLine(int index) {\n return orderLines.get(index);\n }",
"public List<Transaction> getExtraTransactions(String startdate, String enddate) {\r\n List<Transaction> transactionList = null;\r\n Session session = HibernateUtil.getSessionFactory().getCurrentSession();\r\n try {\r\n org.hibernate.Transaction hbtransaction = session.beginTransaction();\r\n Query q = session.createQuery (\"from finance.entity.Transaction trans WHERE (trans.effdate BETWEEN :startdate AND :enddate) AND trans.category.extra = true AND trans.deleted = false ORDER BY trans.effdate, trans.category.sortId\");\r\n q.setParameter(\"startdate\", java.sql.Date.valueOf(startdate));\r\n q.setParameter(\"enddate\", java.sql.Date.valueOf(enddate));\r\n transactionList = (List<Transaction>) q.list();\r\n hbtransaction.commit();\r\n } catch (Exception e) {\r\n throw e;\r\n }\r\n return transactionList;\r\n }"
]
| [
"0.664779",
"0.56568736",
"0.5427321",
"0.5225152",
"0.5178836",
"0.5118124",
"0.5116687",
"0.5105071",
"0.5067648",
"0.50522196",
"0.50119025",
"0.5009645",
"0.4912688",
"0.48738062",
"0.4870264",
"0.4869271",
"0.48611203",
"0.48313016",
"0.4788818",
"0.47705615",
"0.47636548",
"0.474181",
"0.4733446",
"0.47135308",
"0.47114187",
"0.47020024",
"0.46961278",
"0.46911243",
"0.4688392",
"0.4685384",
"0.46641916",
"0.46534637",
"0.46457475",
"0.46448937",
"0.46329984",
"0.45911223",
"0.45903426",
"0.45903108",
"0.4580857",
"0.45713317",
"0.4537269",
"0.4533089",
"0.4531171",
"0.45307794",
"0.4519311",
"0.45166153",
"0.4508104",
"0.4506974",
"0.4502522",
"0.45019987",
"0.44950545",
"0.4491886",
"0.4483013",
"0.44760817",
"0.44660068",
"0.4449736",
"0.444562",
"0.44411695",
"0.44341087",
"0.44226602",
"0.44199637",
"0.4410992",
"0.44064763",
"0.44026077",
"0.43999013",
"0.43904564",
"0.43873373",
"0.43840307",
"0.43793008",
"0.43682364",
"0.43644613",
"0.43610564",
"0.43553412",
"0.43408182",
"0.4340463",
"0.43310672",
"0.43293357",
"0.43275544",
"0.43210033",
"0.4304905",
"0.42919117",
"0.42874482",
"0.42764622",
"0.42761213",
"0.42747992",
"0.42703953",
"0.42700842",
"0.4261021",
"0.42563266",
"0.4255089",
"0.42530414",
"0.42477623",
"0.42469922",
"0.4242366",
"0.4240094",
"0.42400023",
"0.42291906",
"0.42265293",
"0.4225976",
"0.42244762"
]
| 0.78686374 | 0 |
Only return something if the document is not closed or cancelled | @Override
public List<GeneralLedgerPendingEntrySourceDetail> getGeneralLedgerPendingEntrySourceDetails() {
if (TemConstants.TravelAuthorizationStatusCodeKeys.CLOSED.equals(getAppDocStatus()) || TemConstants.TravelAuthorizationStatusCodeKeys.CANCELLED.equals(getAppDocStatus())) {
return new ArrayList<GeneralLedgerPendingEntrySourceDetail>(); // hey, we're closed or cancelled. Let's not generate entries
}
return super.getGeneralLedgerPendingEntrySourceDetails();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public boolean canCancel(Document document) {\n return false;\r\n }",
"public boolean isFinishedWithDocument(DocText docText) {\n return false;\n }",
"boolean isCancelled();",
"public boolean isCancelled();",
"public boolean isCancelled();",
"public boolean isCancelled();",
"private void closeDocument()\n {\n try\n {\n // close our document\n if ( m_document != null )\n {\n XCloseable closeDoc = (XCloseable)UnoRuntime.queryInterface( XCloseable.class,\n m_document.getDocument() );\n closeDoc.close( true );\n }\n }\n catch ( com.sun.star.uno.Exception e )\n {\n }\n }",
"protected boolean reallyCancel() throws Exception { return true; }",
"public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel;\r\n\t\t\t\t\r\n\t}",
"public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel ;\r\n\t\t\t\t\r\n\t}",
"@Override\n public boolean isCancelled() { return this.cancel; }",
"public boolean doClose() {\n\n if (canChangeDocuments()) {\n setVisible(false);\n dispose();\n fApplication.removeDocumentWindow(this);\n return true;\n }\n else {\n return false;\n }\n }",
"public boolean isVoidPrevDocs();",
"@Override\r\n\tpublic boolean closeIt() {\n\t\tlog.info(toString());\r\n\t\t// Before Close\r\n\t\tm_processMsg = ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_BEFORE_CLOSE);\r\n\t\tif (m_processMsg != null)\r\n\t\t\treturn false;\r\n\r\n\t\t// After Close\r\n\t\tm_processMsg = ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_AFTER_CLOSE);\r\n\t\tif (m_processMsg != null)\r\n\t\t\treturn false;\r\n\r\n\t\t\r\n\t\t//setDocAction(DOCACTION_None);\r\n\t\treturn true;\r\n\t}",
"public boolean isFinishedWithDocText(DocText docText) {\n return false;\n }",
"boolean isCancelled(){\n\t\treturn cancelled;\n\t}",
"@Override\n\tpublic boolean isCancelled() {\n\t\treturn cancelled;\n\t}",
"@Override\n\tpublic void close() {\n\t\tthis.ok = false;\n\t}",
"public boolean isCancelled() {\n\t\treturn false;\n\t}",
"boolean hasDocument();",
"boolean hasDocument();",
"boolean hasDocument();",
"public void fileClosed(OpenDefinitionsDocument doc) { }",
"public void fileClosed(OpenDefinitionsDocument doc) { }",
"public abstract boolean cancel();",
"public abstract boolean cancelable();",
"public boolean cancel();",
"boolean hasCurrentDocument();",
"public boolean quitFile(OpenDefinitionsDocument doc) { return true; }",
"public boolean quitFile(OpenDefinitionsDocument doc) { return true; }",
"@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }",
"@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }",
"@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }",
"@Override\n\tprotected void cancelCallback() {\n\t\twasCancelled = true;\n\t\tclose();\n\t}",
"public final boolean isCancelled(){\n return cancel;\n }",
"@Override\n\t\t\t\tpublic boolean onCancel() {\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"@Override\r\n\tpublic boolean isCanceled() {\n\t\treturn false;\r\n\t}",
"protected boolean beforeDelete() {\n if (DOCSTATUS_Drafted.equals(getDocStatus())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(null, \"El documento no se puede eliminar ya que no esta en Estado Borrador.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n\n }",
"protected boolean requestClose()\n\t{\n\t\t\n\t\tif (!dirty.get())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tString filename = getFile() == null ? \"Untitled\" : getFile().getName();\n\t\tString filepath = getFile() == null ? \"\" : getFile().getAbsolutePath();\n\t\t\n\t\tAlertWrapper alert = new AlertWrapper(AlertType.CONFIRMATION)\n\t\t\t\t.setTitle(filename + \" has changes\")\n\t\t\t\t.setHeaderText(\"There are unsaved changes. Do you want to save them?\")\n\t\t\t\t.setContentText(filepath + \"\\nAll unsaved changes will be lost.\");\n\t\talert.getButtonTypes().setAll(ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n\t\t\n\t\talert.showAndWait();\n\t\t\n\t\tif (alert.getResult() == ButtonType.YES)\n\t\t{\n\t\t\tboolean success = save();\n\t\t\t\n\t\t\tif (!success)\n\t\t\t{\n\t\t\t\tAlertWrapper errorAlert = new AlertWrapper(AlertType.ERROR)\n\t\t\t\t\t\t.setTitle(\"Couldn't save file!\")\n\t\t\t\t\t\t.setHeaderText(\"There was an error while saving!\")\n\t\t\t\t\t\t.setContentText(\"The file was not closed.\");\n\t\t\t\t\n\t\t\t\terrorAlert.showAndWait();\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (alert.getResult() == ButtonType.CANCEL)\n\t\t\treturn false; // A false return value is used to consume the closing event.\n\t\t\n\t\t\n\t\treturn true;\n\t}",
"void closeDocument(SingleDocumentModel model);",
"@Override\n\t\tpublic boolean isCanceled() {\n\t\t\treturn false;\n\t\t}",
"public boolean isCancelled() {\n return cancelled;\n }",
"public abstract boolean isClosed();",
"public boolean checkClosed();",
"@Override\n public void closeCompletely()\n throws XMLStreamException\n {\n _finishDocument(true);\n }",
"public boolean\tisClosed();",
"public boolean isCancelled() {\n return isCancelled;\n }",
"public boolean isClosed()\n {\n return _isClosed;\n }",
"public boolean isClosed()\n {\n return _isClosed;\n }",
"@Override\n public boolean isCloseable()\n {\n return false;\n }",
"public boolean canAbandonFile(OpenDefinitionsDocument doc) { return true; }",
"public boolean canAbandonFile(OpenDefinitionsDocument doc) { return true; }",
"public boolean isCancel() {\n return cancel;\n }",
"@Override\n public boolean isDocumentState() {\n return true;\n }",
"@Override\n public boolean isCancelled() {\n return false;\n }",
"@Override\n void execute() {\n doc.open();\n }",
"@Override\n\t\t\tpublic boolean isCanceled() {\n\t\t\t\treturn false;\n\t\t\t}",
"public boolean wasCancelled() {\n\t\treturn wasCancelled;\n\t}",
"public String getDocStatus();",
"public String getDocStatus();",
"public String getDocStatus();",
"public boolean checkAutoClose();",
"boolean isClosed();",
"boolean isClosed();",
"boolean isClosed();",
"boolean isClosed();",
"@Override\n public boolean isClosed() {\n return false;\n }",
"protected boolean isDocStatusCodeInitiated(Document document) {\n CustomerInvoiceWriteoffDocument writeoffDoc = (CustomerInvoiceWriteoffDocument) document;\n return (StringUtils.equals(writeoffDoc.getStatusCode(), ArConstants.CustomerInvoiceWriteoffStatuses.INITIATE));\n }",
"public String getDocument() throws Exception;",
"public boolean isCancellable()\r\n/* 64: */ {\r\n/* 65:101 */ return this.result == null;\r\n/* 66: */ }",
"public boolean canClose(){\n return true;\n }",
"public boolean hasUserCancelled() {\n return myIsDialogCancelled;\n }",
"private void endDoc() {\n\t\ttry {\n\t\t\t// Report the end of the document to the IndexListener\n\t\t\tindexer.getListener().documentDone(currentDocumentName);\n\n\t\t\t// Store the captured document content in the content store\n\t\t\t// and add the contents of the complex field to the Lucene document\n\t\t\taddContentToLuceneDoc();\n\n\t\t\t// Add the Lucene document to the index\n\t\t\tindexer.add(currentLuceneDoc);\n\n\t\t\t// Report character progress\n\t\t\treportCharsProcessed();\n\n\t\t\t// Reset the contents field for the next document\n\t\t\tcontentsField.clear();\n\n\t\t\t// Should we continue or are we done?\n\t\t\tif (!indexer.continueIndexing())\n\t\t\t\tthrow new MaxDocsReachedException();\n\n\t\t} catch (MaxDocsReachedException e) {\n\n\t\t\t// We've reached our maximum number of documents we'd like to index.\n\t\t\t// This is okay; just rethrow it.\n\t\t\tthrow e;\n\n\t\t} catch (Exception e) {\n\n\t\t\t// Some error occurred.\n\t\t\tthrow ExUtil.wrapRuntimeException(e);\n\n\t\t}\n\t}",
"public abstract boolean processSaveDocument(Document document);",
"protected abstract void handleCancel();",
"@Override\r\n\tpublic boolean isCloseOnCompletion() throws SQLException {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean isCloseOnCompletion() throws SQLException {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean isCloseOnCompletion() throws SQLException {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean isClosed() \n\t{\n\t\treturn false;\n\t}",
"boolean advanceExact(int docId) throws IOException;",
"public boolean closed() {\r\n return closed;\r\n }",
"public boolean isCancelled()\r\n/* 54: */ {\r\n/* 55: 92 */ return isCancelled0(this.result);\r\n/* 56: */ }",
"public boolean isClosed() {\n return false;\n }",
"boolean isCloseRequested()\r\n\t{\r\n\t\treturn this.closeRequested;\r\n\t}",
"@Override\n\tpublic boolean isCloseOnCompletion() throws SQLException {\n\t\treturn false;\n\t}",
"protected void exitSafely() {\n for (int i = 0, numberOfTabs = tabs.getTabCount(); i < numberOfTabs; i++) {\n DocumentTab selectedDocument = (DocumentTab)tabs.getComponentAt(i);\n if (selectedDocument.isModified()) {\n tabs.setSelectedIndex(i);\n int answer = JOptionPane.showConfirmDialog(\n appWindow,\n \"File \" + selectedDocument.getName() + \" is modified.\\n\" +\n \"Do you want to save the file before closing?\",\n \"Warning\",\n JOptionPane.YES_NO_CANCEL_OPTION,\n JOptionPane.WARNING_MESSAGE);\n if (answer == JOptionPane.CANCEL_OPTION) {\n return;\n } else if (answer == JOptionPane.YES_OPTION) {\n saveCurrentTab(SaveMode.SAVE);\n }\n }\n }\n\n appWindow.dispose();\n }",
"protected abstract void onCancel();",
"public void checkCancel() throws CancellationException;",
"public boolean isClosed() {\n return this.isClosed;\n }",
"private static DialogResponse checkDocumentHasChanged(Stage stage, Tab tab) {\n\t\t// if document has changed or has not saved the document at all, ask if user wants to save these changes\n \tif (tab.getText().contains(\"*\") || \n \t\t\t((MapReduceDocumentTab) tabPaneCenter.getSelectionModel().getSelectedItem()).getDocument().getTargetFile() == null) {\n \tDialogResponse response = Dialogs.showConfirmDialog(stage,\n \t\t \"Sie haben das Dokument verändert, möchten Sie vor dem Schließen noch speichern?\", \"Dokument Speichern\", tab.getText());\n \t\n \tif (response.compareTo(DialogResponse.YES) == 0) {\n \t\tsaveDocument(stage);\n \t} \n \t\n \treturn response;\n \t} else {\n \t\treturn DialogResponse.OK;\n \t}\n\t}",
"public void receiveResultCancelRSDocument(\r\n\t\t\tcom.autometrics.analytics.v9.j2ee.webservices.v1_0.CancelRSDocumentResponse result) {\r\n\t}",
"public boolean isCancelSupported();",
"public Frysak_11_closing_document() {\r\n }",
"public boolean hasDocument() {\n return documentBuilder_ != null || document_ != null;\n }",
"public boolean hasDocument() {\n return documentBuilder_ != null || document_ != null;\n }",
"public boolean hasDocument() {\n return documentBuilder_ != null || document_ != null;\n }",
"@Override\n\tpublic boolean hasCancelBeenRequested() {\n\t\treturn false;\n\t}",
"public void cancel() {\n\t\tcancelled = true;\n\t}",
"public void endDocument() { }",
"public void receiveResultCancelDocument(\r\n\t\t\tcom.autometrics.analytics.v9.j2ee.webservices.v1_0.CancelDocumentResponse result) {\r\n\t}",
"public void cancel(){\n cancelled = true;\n }"
]
| [
"0.6880617",
"0.6231582",
"0.60281134",
"0.60038185",
"0.60038185",
"0.60038185",
"0.59557766",
"0.59444165",
"0.5931268",
"0.593015",
"0.5928284",
"0.5915974",
"0.58719355",
"0.58262026",
"0.5810461",
"0.57627654",
"0.5723358",
"0.5722414",
"0.57184577",
"0.5717294",
"0.5717294",
"0.5717294",
"0.5710483",
"0.5710483",
"0.5692518",
"0.56878716",
"0.5682459",
"0.56596434",
"0.5655227",
"0.5655227",
"0.56445897",
"0.56445897",
"0.56445897",
"0.56385666",
"0.56367373",
"0.5628243",
"0.562674",
"0.5599128",
"0.5590514",
"0.5564832",
"0.55600923",
"0.55550617",
"0.55485845",
"0.55484706",
"0.5547091",
"0.5545123",
"0.55369526",
"0.55320853",
"0.55320853",
"0.55290294",
"0.5527636",
"0.5527636",
"0.55269563",
"0.5526403",
"0.55141723",
"0.5512972",
"0.54951084",
"0.5494214",
"0.54702795",
"0.54702795",
"0.54702795",
"0.54660136",
"0.54584086",
"0.54584086",
"0.54584086",
"0.54584086",
"0.54527825",
"0.5452117",
"0.54311085",
"0.54293925",
"0.54199266",
"0.54189914",
"0.5410814",
"0.54086417",
"0.54062676",
"0.53953034",
"0.53953034",
"0.53953034",
"0.5394244",
"0.5383659",
"0.5377759",
"0.53691447",
"0.5366845",
"0.5363345",
"0.5357542",
"0.5349825",
"0.534393",
"0.53364635",
"0.53351027",
"0.5334453",
"0.5329241",
"0.53285",
"0.5327613",
"0.53092647",
"0.53092647",
"0.53092647",
"0.5297142",
"0.5294788",
"0.5292058",
"0.52904844",
"0.5286738"
]
| 0.0 | -1 |
Sets the payment information for advances on this document | public void setAdvanceTravelPayment(TravelPayment advanceTravelPayment) {
this.advanceTravelPayment = advanceTravelPayment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void initiateAdvancePaymentAndLines() {\n setDefaultBankCode();\n setTravelAdvance(new TravelAdvance());\n getTravelAdvance().setDocumentNumber(getDocumentNumber());\n setAdvanceTravelPayment(new TravelPayment());\n getAdvanceTravelPayment().setDocumentNumber(getDocumentNumber());\n getAdvanceTravelPayment().setDocumentationLocationCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TravelParameters.DOCUMENTATION_LOCATION_CODE,\n getParameterService().getParameterValueAsString(TemParameterConstants.TEM_DOCUMENT.class,TravelParameters.DOCUMENTATION_LOCATION_CODE)));\n getAdvanceTravelPayment().setCheckStubText(getConfigurationService().getPropertyValueAsString(TemKeyConstants.MESSAGE_TA_ADVANCE_PAYMENT_HOLD_TEXT));\n final java.sql.Date currentDate = getDateTimeService().getCurrentSqlDate();\n getAdvanceTravelPayment().setDueDate(currentDate);\n updatePayeeTypeForAuthorization(); // if the traveler is already initialized, set up payee type on advance travel payment\n setWireTransfer(new PaymentSourceWireTransfer());\n getWireTransfer().setDocumentNumber(getDocumentNumber());\n setAdvanceAccountingLines(new ArrayList<TemSourceAccountingLine>());\n resetNextAdvanceLineNumber();\n TemSourceAccountingLine accountingLine = initiateAdvanceAccountingLine();\n addAdvanceAccountingLine(accountingLine);\n }",
"void setPaymentMethod(PaymentMethod paymentMethod);",
"void setPaymentInformation(String information);",
"public void setPaid() {\n isPaid = true;\n }",
"@Override\n\tpublic void pay() {\n\t\tcreditCard.makePayment();\n\n\t}",
"public void setC_Payment_ID (int C_Payment_ID);",
"public void makePayment() {\r\n System.out.println(\"pay\");\r\n setPayed(true);\r\n }",
"private void setPayment(com.dogecoin.protocols.payments.Protos.Payment value) {\n value.getClass();\n payment_ = value;\n bitField0_ |= 0x00000001;\n }",
"public void editContestPayment(ContestPayment contestPayment) throws ContestManagementException {\n \r\n }",
"public void editContestPayment(ContestPayment contestPayment) throws ContestManagementException {\n \r\n }",
"@Override\n public void calculatePayment()\n {\n this.paymentAmount = annualSalary / SALARY_PERIOD;\n }",
"public void calculatePayment() {\n\t\tdouble pay = this.annualSalary / NUM_PAY_PERIODS;\n\t\tsuper.setPayment(pay);\n\t}",
"public void PaymentPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}",
"public void setPaymentDate( Date paymentDate ) {\n this.paymentDate = paymentDate;\n }",
"public void setPaymentInfoInCart(CreditCard cc);",
"public void setPayAmt (BigDecimal PayAmt);",
"void pay(Payment payment) {\n\n\t}",
"@Override\r\n\tpublic void updatePayment(XftPayment xtp) {\n\t\txftPaymentMapper.updateByPrimaryKeySelective(xtp);\r\n\t}",
"public void setPaidNum(BigDecimal paidNum) {\n this.paidNum = paidNum;\n }",
"public void setAccountPayment(String accountPayment) {\r\n this.accountPayment = accountPayment;\r\n }",
"@Override\n public void pay(Payment payment) {\n payment.setPayed(true);\n notifyWhenPaid(payment);\n }",
"public void propagateAdvanceInformationIfNeeded() {\n if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().getTravelAdvanceRequested() != null) {\n if (!ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setCheckTotalAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n final TemSourceAccountingLine maxAmountLine = getAccountingLineWithLargestAmount();\n if (!TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus())) {\n getAdvanceAccountingLines().get(0).setAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n if (!allParametersForAdvanceAccountingLinesSet() && !TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus()) && !advanceAccountingLinesHaveBeenModified(maxAmountLine)) {\n // we need to set chart, account, sub-account, and sub-object from account with largest amount from regular source lines\n if (maxAmountLine != null) {\n getAdvanceAccountingLines().get(0).setChartOfAccountsCode(maxAmountLine.getChartOfAccountsCode());\n getAdvanceAccountingLines().get(0).setAccountNumber(maxAmountLine.getAccountNumber());\n getAdvanceAccountingLines().get(0).setSubAccountNumber(maxAmountLine.getSubAccountNumber());\n }\n }\n // let's also propogate the due date\n if (getTravelAdvance().getDueDate() != null && !ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setDueDate(getTravelAdvance().getDueDate());\n }\n }\n }",
"public void setPaymentDay(PaymentDay paymentDay) {\n\n this.paymentDay = paymentDay;\n }",
"public void startPayment() {\r\n final Activity activity = this;\r\n\r\n final Checkout co = new Checkout();\r\n\r\n try {\r\n JSONObject options = new JSONObject();\r\n options.put(\"name\", \"Farm2Home\");\r\n options.put(\"description\", \"Consumption charges\");\r\n //You can omit the image option to fetch the image from dashboard\r\n // options.put(\"image\", \"https://rzp-mobile.s3.amazonaws.com/images/rzp.png\");\r\n options.put(\"currency\", \"INR\");\r\n options.put(\"amount\", \"500\");\r\n\r\n // JSONObject preFill = new JSONObject();\r\n // preFill.put(\"email\", \"[email protected]\");\r\n // preFill.put(\"contact\", \"9876543210\");\r\n\r\n // options.put(\"prefill\", preFill);\r\n\r\n co.open(activity, options);\r\n } catch (Exception e) {\r\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\r\n .show();\r\n e.printStackTrace();\r\n }\r\n }",
"public ModelPayment(double payment) {\n this.payment = payment;\n }",
"@Override\r\n\tpublic int updatePaymentInfo(Payment payment) {\n\t\treturn session.update(\"payments.updatePayment\", payment);\r\n\t}",
"@Override\n\tpublic void setPayment(java.lang.String payment) {\n\t\t_esfShooterAffiliationChrono.setPayment(payment);\n\t}",
"public void makePayment()\n\t{\n\t\tif(this.inProgress())\n\t\t{\n\t\t\tthis.total += this.getPaymentDue();\n\t\t\tthis.currentTicket.setPaymentTime(this.clock.getTime());\n\t\t}\t\t\n\t}",
"public void setPayment (com.jspgou.cms.entity.Payment payment) {\r\n\t\tthis.payment = payment;\r\n\t}",
"private void pdfPaymentMethod(CartReceiptResponse receiptResponse, Document document, Locale locale)\n throws DocumentException, IOException {\n\n LOGGER.debug(\"Entered in 'pdfPaymentMethod' method\");\n Double totalPaymentApplied = 0.0;\n PdfPTable paymentMethodTable = new PdfPTable(2);\n paymentMethodTable.setWidths(new int[]{200, 50});\n PdfPCell paymentMethodBlankSpaceCell = new PdfPCell(new Phrase(\" \", getFont(WHITE_COLOR, 8, Font.BOLD)));\n String message = getMessage(locale, \"pdf.receipt.paymentMethod\");\n Font font = getFont(BLACK_COLOR, FONT_SIZE_18, Font.BOLD);\n PdfPCell paymentMethodHeaderCell = new PdfPCell(new Phrase(message, font));\n cellAlignment(paymentMethodHeaderCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodHeaderCell, Rectangle.NO_BORDER, 0, 0);\n\n cellAlignment(paymentMethodBlankSpaceCell, 0, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n cellAlignment(paymentMethodBlankSpaceCell, 0, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n\n FundingSourceResponse[] fundingSources = receiptResponse.getFundingSources();\n\n if (fundingSources.length != 0) {\n for (final FundingSourceResponse aFundingSource1 : fundingSources) {\n if (aFundingSource1 != null) {\n if (aFundingSource1.getType().equalsIgnoreCase(PdfConstants.CREDIT)) {\n LOGGER.debug(\"Entered in to credits section : \" + aFundingSource1.getType());\n creditFundingSection(locale, paymentMethodTable,\n new BigDecimal(getUsedAmountFromFunding(aFundingSource1)));\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n totalPaymentApplied = totalPaymentApplied + getUsedAmountFromFunding(aFundingSource1);\n }\n }\n }\n for (final FundingSourceResponse aFundingSource : fundingSources) {\n if (aFundingSource instanceof VestaFundingSourceResponse) {\n VestaFundingSourceResponse vestaFundingSourceResponse =\n (VestaFundingSourceResponse) aFundingSource;\n String tenderType = vestaFundingSourceResponse.getTenderType();\n CardBrand cardBrand = vestaFundingSourceResponse.getCardBrand();\n if (tenderType.equalsIgnoreCase(PdfConstants.DEBIT) ||\n tenderType.equalsIgnoreCase(PdfConstants.CREDIT)) {\n PdfPCell cardNumberCell = new PdfPCell(new Phrase(getMessage(locale, \"pdf.receipt.cardPinMsg\",\n getTenderTypeForCard(tenderType,\n locale),\n getCardBrandText(cardBrand,\n locale),\n vestaFundingSourceResponse\n .getCardLast4()),\n getFont(null, FONT_SIZE_12, Font.NORMAL)));\n PdfPCell amountSectionCell = new PdfPCell(new Phrase(getFormattedAmount(new BigDecimal(\n getUsedAmountFromFunding(vestaFundingSourceResponse))),\n getFont(null, FONT_SIZE_12, Font.NORMAL)));\n cellAlignment(cardNumberCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, cardNumberCell, Rectangle.NO_BORDER, 0, 15);\n\n cellAlignment(amountSectionCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, amountSectionCell, Rectangle.NO_BORDER, 0, 0);\n chargedOnSection(locale, paymentMethodTable, paymentMethodBlankSpaceCell, receiptResponse);\n totalPaymentApplied =\n totalPaymentApplied + getUsedAmountFromFunding(vestaFundingSourceResponse);\n continue;\n }\n }\n\n if (aFundingSource != null) {\n if (getCashStatus(aFundingSource.getType())) {\n cashFundingSection(paymentMethodTable, locale, aFundingSource);\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n totalPaymentApplied = totalPaymentApplied + getUsedAmountFromFunding(aFundingSource);\n }\n }\n }\n } else {\n creditFundingSection(locale, paymentMethodTable, new BigDecimal(0));\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n totalPaymentApplied = totalPaymentApplied + 0;\n }\n\n\n calculateTotalPayment(locale, paymentMethodTable, totalPaymentApplied);\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n generatedNewCredits(locale, paymentMethodTable, receiptResponse.getCreditsGenerated());\n document.add(paymentMethodTable);\n }",
"public OrderPayments updateAdvPayment(OrderPayments payment, String companyId , String invoiceNo ) throws EntityException\n\t\t{\n\n\t\t\tDatastore ds = null;\n\t\t\tCompany cmp = null;\n\t\t\tInwardEntity invoice = null;\n\t\t\tObjectId oid = null;\n\t\t\tObjectId invoiceOid = null;\n\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tds = Morphiacxn.getInstance().getMORPHIADB(\"test\");\n\t\t\t\toid = new ObjectId(companyId);\n\t\t\t\tQuery<Company> query = ds.createQuery(Company.class).field(\"id\").equal(oid);\n\t\t\t\tcmp = query.get();\n\t\t\t\tif(cmp == null)\n\t\t\t\t\tthrow new EntityException(404, \"cmp not found\", null, null);\n\n\t\t\t\t//po and bill must be true\n\t\t\t\tinvoiceOid = new ObjectId(invoiceNo);\n\t\t\t\tQuery<InwardEntity> iQuery = ds.find(InwardEntity.class).filter(\"company\",cmp).filter(\"isEstimate\", true).filter(\"isInvoice\", true)\n\t\t\t\t\t\t.filter(\"id\", invoiceOid);\n\n\t\t\t\tinvoice = iQuery.get();\n\t\t\t\tif(invoice == null)\n\t\t\t\t\tthrow new EntityException(512, \"converted invoice not found\", null, null);\n\n\n\t\t\t\t//we need to sub old amt, and add new amt, so get old amt\n\n\t\t\t\tjava.math.BigDecimal prevAmt = null;\n\t\t\t\tboolean match = false;\n\t\t\t\t\n\t\t\t\t//all deleted in between - there are no adv payments now\n\t\t\t\tif(invoice.getEstimatePayments() == null)\n\t\t\t\t\tthrow new EntityException(513, \"payment not found\", null, null);\n\n\t\t\t\tfor(OrderPayments pay : invoice.getEstimatePayments())\n\t\t\t\t{\n\n\t\t\t\t\tif(pay.getId().toString().equals(payment.getId().toString()))\n\t\t\t\t\t{\n\t\t\t\t\t\tmatch = true;\n\t\t\t\t\t\tprevAmt = pay.getPaymentAmount();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tif(match == false)\n\t\t\t\t\tthrow new EntityException(513, \"payment not found\", null, null);\n\n\t\t\t\tjava.math.BigDecimal advanceTotal = invoice.getEstimateAdvancetotal().subtract(prevAmt).add(payment.getPaymentAmount());\n\t\t\t\tjava.math.BigDecimal invoiceAdvance =invoice.getInvoiceAdvancetotal().subtract(prevAmt).add(payment.getPaymentAmount());\n\n\t\t\t\t//as PO is converted, change only bill balance , PO balance does not get affected\n\n\t\t\t\tjava.math.BigDecimal balance = invoice.getInvoiceBalance().add(prevAmt).subtract(payment.getPaymentAmount());\n\n\n\t\t\t\t//if null then 0 \n\n\t\t\t\tif(payment.getTdsRate() == null)\n\t\t\t\t\tpayment.setTdsRate(new BigDecimal(0));\n\n\t\t\t\tif(payment.getTdsAmount() == null)\n\t\t\t\t\tpayment.setTdsAmount(new BigDecimal(0));\n\n\t\t\t\t//search for nested payment in the list\n\t\t\t\tiQuery = ds.createQuery(InwardEntity.class).disableValidation().filter(\"id\", invoiceOid).filter(\"estimatePayments.id\", new ObjectId(payment.getId().toString()));\n\n\t\t\t\tUpdateOperations<InwardEntity> ops = ds.createUpdateOperations(InwardEntity.class)\n\n\t\t\t\t\t\t.set(\"estimatePayments.$.paymentDate\", payment.getPaymentDate())\n\t\t\t\t\t\t.set(\"estimatePayments.$.paymentAmount\", payment.getPaymentAmount())\n\t\t\t\t\t\t.set(\"estimatePayments.$.purposeTitle\", payment.getPurposeTitle())\n\t\t\t\t\t\t.set(\"estimatePayments.$.purposeDescription\", payment.getPurposeDescription())\n\t\t\t\t\t\t.set(\"estimatePayments.$.paymentMode\", payment.getPaymentMode())\n\t\t\t\t\t\t.set(\"estimatePayments.$.paymentAccount\", payment.getPaymentAccount())\n\t\t\t\t\t\t.set(\"estimatePayments.$.tdsRate\", payment.getTdsRate())\n\t\t\t\t\t\t.set(\"estimatePayments.$.tdsAmount\", payment.getTdsAmount())\n\t\t\t\t\t\t.set(\"estimatePayments.$.isTdsReceived\", payment.isTdsReceived())\n\t\t\t\t\t\t.set(\"estimateAdvancetotal\",advanceTotal)\n\t\t\t\t\t\t.set(\"invoiceAdvancetotal\", invoiceAdvance)\n\t\t\t\t\t\t.set(\"invoiceBalance\", balance);\n\n\n\t\t\t\tUpdateResults result = ds.update(iQuery, ops, false);\n\n\t\t\t\tif(result.getUpdatedCount() == 0)\n\t\t\t\t\tthrow new EntityException(512, \"update failed\", null, null);\n\n\n\n\t\t\t}\n\t\t\tcatch(EntityException e)\n\t\t\t{\n\t\t\t\tthrow e;\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tthrow new EntityException(500, null, e.getMessage(), null);\n\t\t\t}\n\t\t\treturn payment;\n\t\t}",
"Order setInvoicePaidStatus(Order order, User user);",
"public void calculatePayment() {}",
"public Builder setPaid(double value) {\n \n paid_ = value;\n onChanged();\n return this;\n }",
"@Override\r\n\tpublic void makePayment(Payment p, int amount) {\n\t\t\r\n\t}",
"public void setPaidTime(Date paidTime) {\n this.paidTime = paidTime;\n }",
"@Override\r\n public void pay() {\n }",
"public static void amountPaid(){\n NewProject.tot_paid = Double.parseDouble(getInput(\"Please enter NEW amount paid to date: \"));\r\n\r\n UpdateData.updatePayment();\r\n updateMenu();\t//Return back to previous menu.\r\n\r\n }",
"public void setTarjeta(Payment cuenta){\n this.cuenta = cuenta;\n }",
"@Override\n\tpublic void setMarketCustomerDeliveryPaymentPerson() {\n\t\t\n\t}",
"private void setCardPayment(boolean res) {\n txtCardAmount.setEnabled(res);\n cmboCardBank.setEnabled(res);\n txtCardNo.setEnabled(res);\n if (res) {\n\n txtPayAmount.setCValue(txtPayAmount.getCValue() + txtCardAmount.getCValue());\n } else {\n txtPayAmount.setCValue(txtPayAmount.getCValue() - txtCardAmount.getCValue());\n }\n txtNewBalance.setCValue(txtInvoiceValue.getCValue() - txtPayAmount.getCValue());\n }",
"public static void setMoney(Integer payment) {\n\n money.moneyLevel += payment;\n money.save();\n }",
"public Payment(Amount paidAmount, SaleTotal total) {\r\n this.paidAmount = paidAmount;\r\n this.total = total;\r\n }",
"@Override\n\tpublic void processPayment() {\n\t\t\n\t\tsetIsSuccessful();\n\t}",
"public void payDueAmount(String mobileNumber, int dueAmount) {\n\t\tSystem.out.println(em.find(Receipt.class, mobileNumber));\r\n\t\tReceipt receipt = em.find(Receipt.class, mobileNumber);\r\n\r\n\t\tint currentDue = receipt.getDueAmount() - dueAmount;\r\n\r\n\t\t/**\r\n\t\t * store the records in due pay table\r\n\t\t */\r\n\t\tDuePay duePay = new DuePay();\r\n\t\tduePay.setBatchNo(receipt.getBatchNo());\r\n\t\tduePay.setStudentId(receipt.getStudentId());\r\n\t\tduePay.setStudentName(receipt.getStudentName());\r\n\t\tduePay.setCourse(receipt.getCourse());\r\n\t\tduePay.setDate(\"08-08-2018\");\r\n\t\tduePay.setDuePaid(dueAmount);\r\n\t\tduePay.setEmailId(receipt.getEmailId());\r\n\t\tduePay.setStudentName(receipt.getStudentName());\r\n\t\tduePay.setTotalDueAmount(receipt.getDueAmount());\r\n\t\tduePay.setMobileNumber(mobileNumber);\r\n\t\tduePay.setBalDueAmount(currentDue);\r\n\t\t/**\r\n\t\t * transaction begin\r\n\t\t */\r\n\t\tem.getTransaction().begin();\r\n\t\t\r\n\t\tem.persist(duePay);\r\n\r\n\t\t/**\r\n\t\t * upadating previous Receipt Due with due paid amount\r\n\t\t */\r\n\t\treceipt.setDueAmount(currentDue);\r\n\t/**\r\n\t * updating total amount in Receipt table\r\n\t */\r\n\t\tInteger currentTotalAmount = receipt.getTotaAmount()+dueAmount;\r\n\t\treceipt.setTotaAmount(currentTotalAmount);\r\n\r\n\t\tem.persist(receipt);\r\n\t\tem.getTransaction().commit();\r\n\r\n\t}",
"public void setPaymentTime(Date paymentTime) {\n\t\tthis.paymentTime = paymentTime;\n\t}",
"@Override\n\tpublic void setPaymentDate(java.util.Date paymentDate) {\n\t\t_esfShooterAffiliationChrono.setPaymentDate(paymentDate);\n\t}",
"protected PaymentDetail populatePaymentDetail(PaymentRequestDocument paymentRequestDocument, Batch batch) {\r\n PaymentDetail paymentDetail = new PaymentDetail();\r\n\r\n paymentDetail.setCustPaymentDocNbr(paymentRequestDocument.getDocumentNumber());\r\n Map preqItemMap = new HashMap();\r\n preqItemMap.put(\"purapDocumentIdentifier\", paymentRequestDocument.getPurapDocumentIdentifier());\r\n OlePaymentRequestDocument olePaymentRequestDocument = (OlePaymentRequestDocument) getBusinessObjectService().findByPrimaryKey(OlePaymentRequestDocument.class, preqItemMap);\r\n\r\n if (olePaymentRequestDocument.getPaymentMethodId() != null) {\r\n OlePaymentMethod olePaymentMethod = SpringContext.getBean(BusinessObjectService.class)\r\n .findBySinglePrimaryKey(OlePaymentMethod.class, olePaymentRequestDocument.getPaymentMethodId());\r\n paymentDetail.setPaymentMethodCode(olePaymentMethod.getPaymentMethod());\r\n }\r\n String invoiceNumber = paymentRequestDocument.getInvoiceNumber();\r\n if(invoiceNumber != null) {\r\n if (invoiceNumber.length() > 25) {\r\n invoiceNumber = invoiceNumber.substring(0, 25);\r\n }\r\n }\r\n paymentDetail.setInvoiceNbr(invoiceNumber);\r\n\r\n if (paymentRequestDocument.getPurchaseOrderIdentifier() != null) {\r\n paymentDetail.setPurchaseOrderNbr(paymentRequestDocument.getPurchaseOrderIdentifier().toString());\r\n }\r\n\r\n if (paymentRequestDocument.getPurchaseOrderDocument().getRequisitionIdentifier() != null) {\r\n paymentDetail.setRequisitionNbr(paymentRequestDocument.getPurchaseOrderDocument().getRequisitionIdentifier().toString());\r\n }\r\n\r\n if (paymentRequestDocument.getDocumentHeader().getOrganizationDocumentNumber() != null) {\r\n paymentDetail.setOrganizationDocNbr(paymentRequestDocument.getDocumentHeader().getOrganizationDocumentNumber());\r\n }\r\n\r\n paymentDetail.setCustomerInstitutionNumber(StringUtils.defaultString(paymentRequestDocument.getVendorCustomerNumber()));\r\n\r\n final String paymentRequestDocType = getDataDictionaryService().getDocumentTypeNameByClass(paymentRequestDocument.getClass());\r\n paymentDetail.setFinancialDocumentTypeCode(paymentRequestDocType);\r\n paymentDetail.setFinancialSystemOriginCode(OLEConstants.ORIGIN_CODE_KUALI);\r\n\r\n paymentDetail.setInvoiceDate(paymentRequestDocument.getInvoiceDate());\r\n paymentDetail.setOrigInvoiceAmount(paymentRequestDocument.getVendorInvoiceAmount());\r\n if (paymentRequestDocument.isUseTaxIndicator()) {\r\n paymentDetail.setNetPaymentAmount(paymentRequestDocument.getGrandPreTaxTotal()); // including discounts\r\n } else {\r\n paymentDetail.setNetPaymentAmount(paymentRequestDocument.getGrandTotal()); // including discounts\r\n }\r\n\r\n KualiDecimal shippingAmount = KualiDecimal.ZERO;\r\n KualiDecimal discountAmount = KualiDecimal.ZERO;\r\n KualiDecimal creditAmount = KualiDecimal.ZERO;\r\n KualiDecimal debitAmount = KualiDecimal.ZERO;\r\n\r\n for (Iterator iter = paymentRequestDocument.getItems().iterator(); iter.hasNext(); ) {\r\n PaymentRequestItem item = (PaymentRequestItem) iter.next();\r\n\r\n KualiDecimal itemAmount = KualiDecimal.ZERO;\r\n if (item.getTotalRemitAmount() != null) {\r\n itemAmount = item.getTotalRemitAmount();\r\n }\r\n if (PurapConstants.ItemTypeCodes.ITEM_TYPE_PMT_TERMS_DISCOUNT_CODE.equals(item.getItemTypeCode())) {\r\n discountAmount = discountAmount.add(itemAmount);\r\n } else if (PurapConstants.ItemTypeCodes.ITEM_TYPE_SHIP_AND_HAND_CODE.equals(item.getItemTypeCode())) {\r\n shippingAmount = shippingAmount.add(itemAmount);\r\n } else if (PurapConstants.ItemTypeCodes.ITEM_TYPE_FREIGHT_CODE.equals(item.getItemTypeCode())) {\r\n shippingAmount = shippingAmount.add(itemAmount);\r\n } else if (PurapConstants.ItemTypeCodes.ITEM_TYPE_MIN_ORDER_CODE.equals(item.getItemTypeCode())) {\r\n debitAmount = debitAmount.add(itemAmount);\r\n } else if (PurapConstants.ItemTypeCodes.ITEM_TYPE_MISC_CODE.equals(item.getItemTypeCode())) {\r\n if (itemAmount.isNegative()) {\r\n creditAmount = creditAmount.add(itemAmount);\r\n } else {\r\n debitAmount = debitAmount.add(itemAmount);\r\n }\r\n }\r\n }\r\n\r\n paymentDetail.setInvTotDiscountAmount(discountAmount);\r\n paymentDetail.setInvTotShipAmount(shippingAmount);\r\n paymentDetail.setInvTotOtherCreditAmount(creditAmount);\r\n paymentDetail.setInvTotOtherDebitAmount(debitAmount);\r\n\r\n paymentDetail.setPrimaryCancelledPayment(Boolean.FALSE);\r\n\r\n addAccounts(paymentRequestDocument, paymentDetail, paymentRequestDocType);\r\n addNotes(paymentRequestDocument, paymentDetail);\r\n\r\n return paymentDetail;\r\n }",
"public void setTravelAdvance(TravelAdvance travelAdvance) {\n this.travelAdvance = travelAdvance;\n }",
"public Payment(double amountPaid, int method, Timestamp date, int cardDetailsID, int invoiceID){\n this.recordID = recordID;\n this.amountPaid = amountPaid;\n this.method = method;\n this.date = date;\n this.cardDetailsID = cardDetailsID;\n this.invoiceID = invoiceID;\n }",
"public void setPaymentId( Integer paymentId ) {\n this.paymentId = paymentId ;\n }",
"@Override\r\n\tpublic void setPaymentType() {\n\t\tthis.paymentType = PaymentType.YINLIAN;\r\n\t}",
"@Override\r\n\tpublic int modify(PaymentPO po) {\n\t\treturn 0;\r\n\t}",
"public void setPayDue(String payDue){\n this.payDue = payDue;\n }",
"public Payment(double actualCost) {\n this.actualCost = actualCost;\n }",
"private SessionData setPaymentInfo(SessionData sessionData, Payment cardInfo){\n sessionData.setFirstName(cardInfo.getFirstName());\n sessionData.setLastName(cardInfo.getLastName());\n sessionData.setAddressCountry(cardInfo.getBillingCountry());\n sessionData.setAddressCountryCode(cardInfo.getBillingCountryCode());\n sessionData.setAddress1(cardInfo.getBillingAddress1());\n sessionData.setAddress2(cardInfo.getBillingAddress2());\n sessionData.setAddressCity(cardInfo.getBillingCity());\n sessionData.setAddressState(cardInfo.getBillingState());\n sessionData.setAddressStateCode(cardInfo.getBillingStateCode());\n sessionData.setAddressZip(cardInfo.getBillingZip());\n sessionData.setAddressPhoneNumber(cardInfo.getBillingPhone());\n \n sessionData.setCardType(cardInfo.getCardType());\n sessionData.setCardSubType(cardInfo.getCardSubType());\n sessionData.setCardNumber(cardInfo.getNumber());\n sessionData.setCVV(cardInfo.getCVV());\n sessionData.setExpirationMonth(cardInfo.getExpMonth());\n sessionData.setExpirationYear(cardInfo.getExpYear());\n return sessionData;\n }",
"public void addPayment(PaymentMethod m){\n payment.add(m);\n totalPaid += m.getAmount();\n }",
"@Override\n public void prepareForSave(KualiDocumentEvent event) {\n super.prepareForSave(event);\n if (!(this instanceof TravelAuthorizationCloseDocument)) {\n if (!ObjectUtils.isNull(getTravelAdvance())) {\n getTravelAdvance().setTravelDocumentIdentifier(getTravelDocumentIdentifier());\n final String checkStubPrefix = getConfigurationService().getPropertyValueAsString(TemKeyConstants.MESSAGE_TA_ADVANCE_PAYMENT_CHECK_TEXT_PREFIX);\n getAdvanceTravelPayment().setCheckStubText(checkStubPrefix+\" \"+getDocumentHeader().getDocumentDescription());\n getAdvanceTravelPayment().setDueDate(getTravelAdvance().getDueDate());\n getAdvanceTravelPayment().setDocumentNumber(getDocumentNumber()); // this should already be set but no harm in resetting...\n updatePayeeTypeForAuthorization();\n }\n }\n\n if(maskTravelDocumentIdentifierAndOrganizationDocNumber()) {\n this.getDocumentHeader().setOrganizationDocumentNumber(null);\n }\n }",
"public void autoPay() {}",
"public void setPaymentType(PaymentType paymentType) {\n\n this.paymentType = paymentType;\n }",
"public void startPayment() {\n double ruppes = Double.parseDouble(price);\n final Activity activity = this;\n final Checkout co = new Checkout();\n try {\n JSONObject options = new JSONObject();\n options.put(\"name\", getResources().getString(R.string.application_name));\n options.put(\"description\", \"\");\n //You can omit the image option to fetch the image from dashboard\n options.put(\"image\", getResources().getDrawable(R.mipmap.ic_app_logo));\n options.put(\"currency\", \"INR\");\n options.put(\"amount\", ruppes * 100);\n JSONObject preFill = new JSONObject();\n preFill.put(\"email\", \"[email protected]\");\n preFill.put(\"contact\", \"8758689113\");\n options.put(\"prefill\", preFill);\n co.open(activity, options);\n } catch (Exception e) {\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\n .show();\n e.printStackTrace();\n }\n }",
"public void performPayment() {\n payment.executePayment(amount);\n }",
"@Override\n public String getDescription() {\n return \"Ordinary payment\";\n }",
"@Override\r\n\tpublic void paidBehavior() {\n\t\tSystem.out.println(\"You paid using your Vias card\");\r\n\t\t\r\n\t}",
"public void setPeriod(int periodInYears) {\nnumberOfPayments = periodInYears * MONTHS;\n}",
"@Override\n public void payment(BigDecimal amount, String reference) {\n System.out.println(\"Called payment() with following info: \\namount: \" + amount + \"\\nReference Nr:\" + reference);\n\n }",
"public void changeDownPayment() {\n\t\tWebElement new_page = wdriver.findElement(By.name(\"payment_form\"));\n\t\t\n\t\t//modify down-payment\n\t\tdouble dwnpymnt = 1200.00;\n\t\tnew_page.findElement(By.name(\"downpayment\")).clear();\n\t\tnew_page.findElement(By.name(\"downpayment\")).sendKeys(\"1200.00\");\n\t\t\n\t\tdouble interest = Double.valueOf(new_page.findElement(By.name(\"interest\")).getAttribute(\"value\"));\n\t\tint year = Integer.valueOf(new_page.findElement(By.name(\"year\")).getAttribute(\"value\"));\n\t\tdouble price_tax = Double.valueOf(new_page.findElement(By.name(\"price_with_taxes\")).getAttribute(\"value\"));\n\t\t\n\t\tdouble price_interest = priceWithInterest(price_tax, dwnpymnt, interest, year);\n\t\tint nMnths = numMonths(year);\n\t\tdouble ttl = totalPrice(price_interest, dwnpymnt);\n\t\tdouble ttl_per_mnth = totalPricePerMonth(price_interest, nMnths);\n\t\t\n\t\t// click calculate button\n\t\tnew_page.findElement(By.name(\"calculate_payment_button\")).click();\n\t\twait(2);\n\t\t\n\t\tWebElement solutions = wdriver.findElement(By.name(\"payment_form\"));\n\t\t\n\t\tDecimalFormat twoDForm = new DecimalFormat(\"#.##\");\n\n\t\tassertEquals(Double.valueOf(twoDForm.format(dwnpymnt)), Double.valueOf(solutions.findElement(By.id(\"total_downpayment\")).getAttribute(\"value\")));\n\t\tassertEquals(Double.valueOf(twoDForm.format(ttl_per_mnth)), Double.valueOf(solutions.findElement(By.id(\"total_price_per_month\")).getAttribute(\"value\")));\n\t\tassertEquals(Integer.valueOf(nMnths), Integer.valueOf(solutions.findElement(By.id(\"n_of_months\")).getAttribute(\"value\")));\n\t\tassertEquals(Double.valueOf(twoDForm.format(ttl)), Double.valueOf(solutions.findElement(By.id(\"total_price\")).getAttribute(\"value\")));\n\t}",
"public Amount pay(Amount amountPaid){\n this.amountPaid = amountPaid;\n payment.setAmountPaid(amountPaid);\n \n change = payment.getCalculatedChange();\n \n return change;\n }",
"protected void updatePaymentRequest(PaymentRequestDocument paymentRequestDocument, Person puser, Date processRunDate) {\r\n try {\r\n PaymentRequestDocument doc = (PaymentRequestDocument) documentService.getByDocumentHeaderId(paymentRequestDocument.getDocumentNumber());\r\n doc.setExtractedTimestamp(new Timestamp(processRunDate.getTime()));\r\n doc.setApplicationDocumentStatus(PurapConstants.PaymentRequestStatuses.APPDOC_EXTRACTED);\r\n SpringContext.getBean(PurapService.class).saveDocumentNoValidation(doc);\r\n } catch (WorkflowException e) {\r\n throw new IllegalArgumentException(\"Unable to retrieve payment request: \" + paymentRequestDocument.getDocumentNumber());\r\n }\r\n }",
"protected void addNotes(AccountsPayableDocument accountsPayableDocument, PaymentDetail paymentDetail) {\r\n int count = 1;\r\n\r\n if (accountsPayableDocument instanceof PaymentRequestDocument) {\r\n PaymentRequestDocument prd = (PaymentRequestDocument) accountsPayableDocument;\r\n\r\n if (prd.getSpecialHandlingInstructionLine1Text() != null) {\r\n PaymentNoteText pnt = new PaymentNoteText();\r\n pnt.setCustomerNoteLineNbr(new KualiInteger(count++));\r\n pnt.setCustomerNoteText(prd.getSpecialHandlingInstructionLine1Text());\r\n paymentDetail.addNote(pnt);\r\n }\r\n\r\n if (prd.getSpecialHandlingInstructionLine2Text() != null) {\r\n PaymentNoteText pnt = new PaymentNoteText();\r\n pnt.setCustomerNoteLineNbr(new KualiInteger(count++));\r\n pnt.setCustomerNoteText(prd.getSpecialHandlingInstructionLine2Text());\r\n paymentDetail.addNote(pnt);\r\n }\r\n\r\n if (prd.getSpecialHandlingInstructionLine3Text() != null) {\r\n PaymentNoteText pnt = new PaymentNoteText();\r\n pnt.setCustomerNoteLineNbr(new KualiInteger(count++));\r\n pnt.setCustomerNoteText(prd.getSpecialHandlingInstructionLine3Text());\r\n paymentDetail.addNote(pnt);\r\n }\r\n }\r\n\r\n if (accountsPayableDocument.getNoteLine1Text() != null) {\r\n PaymentNoteText pnt = new PaymentNoteText();\r\n pnt.setCustomerNoteLineNbr(new KualiInteger(count++));\r\n pnt.setCustomerNoteText(accountsPayableDocument.getNoteLine1Text());\r\n paymentDetail.addNote(pnt);\r\n }\r\n\r\n if (accountsPayableDocument.getNoteLine2Text() != null) {\r\n PaymentNoteText pnt = new PaymentNoteText();\r\n pnt.setCustomerNoteLineNbr(new KualiInteger(count++));\r\n pnt.setCustomerNoteText(accountsPayableDocument.getNoteLine2Text());\r\n paymentDetail.addNote(pnt);\r\n }\r\n\r\n if (accountsPayableDocument.getNoteLine3Text() != null) {\r\n PaymentNoteText pnt = new PaymentNoteText();\r\n pnt.setCustomerNoteLineNbr(new KualiInteger(count++));\r\n pnt.setCustomerNoteText(accountsPayableDocument.getNoteLine3Text());\r\n paymentDetail.addNote(pnt);\r\n }\r\n\r\n PaymentNoteText pnt = new PaymentNoteText();\r\n pnt.setCustomerNoteLineNbr(new KualiInteger(count++));\r\n pnt.setCustomerNoteText(\"Sales Tax: \" + accountsPayableDocument.getTotalRemitTax());\r\n }",
"void updateCustomerDDPay(CustomerDDPay cddp);",
"public void setExpPaid (java.lang.String expPaid) {\n\t\tthis.expPaid = expPaid;\n\t}",
"public abstract void setPaymentTypes(java.util.Set paymentTypes);",
"public Payment getPayment(){\n return payment;\n }",
"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}",
"void paymentOrder(long orderId);",
"public void pay(PaymentStrategy paymentMethod){\n\t\tint amount = calculateTotal();\n\t\tpaymentMethod.pay(amount);\n\t}",
"public void setEntrustPaid(BigDecimal entrustPaid) {\n this.entrustPaid = entrustPaid;\n }",
"public String getAccountPayment() {\r\n return accountPayment;\r\n }",
"public void updatePay(String date, String des, String amit, String id) {\n\t ContentValues up=new ContentValues();\n\t up.put(Sales_Date, date);\n\t up.put(Sales_Des, des);\n\t \n\t up.put(Sales_Amt, amit);\n\t \n\t\tourDatabase.update(DATABASE_TABLE3, up, Sales_Id+\" = \"+id, null);\n\t\t\t\n\t\t\n\t}",
"public void setPaymentinfotext (java.lang.String paymentinfotext) {\r\n\t\tthis.paymentinfotext = paymentinfotext;\r\n\t}",
"public void setPaymentCurrency(String paymentCurrency) {\n _paymentCurrency = paymentCurrency;\n }",
"void setNumberPaymentReceipt(int nRicevuta);",
"public void setmPaid(BigDecimal mPaid) {\n this.mPaid = mPaid;\n }",
"public void setPaymentURL( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), PAYMENTURL, value);\r\n\t}",
"@Override\n public double pay() {\n double payment = super.pay() + (this.commision_rate * this.total_sales);\n this.total_sales = 0;\n return payment;\n }",
"private void updatePayments(int id, int toPay) {\n\t\tint customer_id=id;\n\t\tint payment=toPay;\n\t\ttry {\n\t\t\tPreparedStatement pstmt=con.prepareStatement(\"insert into payments(customerNumber,payments) values(?,?)\");\n\t\t\tpstmt.setInt(1, customer_id);\n\t\t\tpstmt.setInt(2, payment);\n\t\t\tint rowseffected=pstmt.executeUpdate();\n\t\t\tif(rowseffected>0) {\n\t\t\t\tSystem.out.println(\"--------------------------------ORDER PLACED--------------------------------\");\n\t\t\t\tuserTasks();\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\t\n\t}",
"public void setPaymentRefNo(java.lang.String paymentRefNo)\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(PAYMENTREFNO$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PAYMENTREFNO$0);\n }\n target.setStringValue(paymentRefNo);\n }\n }",
"public void setInvoice(rules.engine.example.SalaryInvoice _invoice)\n {\n invoice = _invoice;\n }",
"public void setPAYMENT_DATE(Date PAYMENT_DATE) {\r\n this.PAYMENT_DATE = PAYMENT_DATE;\r\n }",
"public void setPAYMENT_DATE(Date PAYMENT_DATE) {\r\n this.PAYMENT_DATE = PAYMENT_DATE;\r\n }",
"public void setPaidDate (java.util.Date paidDate) {\n\t\tthis.paidDate = paidDate;\n\t}",
"public void updateAccountingSystem(Sale sale)\n {\n \n }",
"public void setPaymentTime(String paymentTime) {\r\n\t\tthis.paymentTime = paymentTime;\r\n\t}",
"public OrderPayments updateInvoicePayment(OrderPayments payment, String invoiceNo, String companyId) throws EntityException\n\t\t{\n\n\t\t\tDatastore ds = null;\n\t\t\tCompany cmp = null;\n\t\t\tInwardEntity invoice = null;\n\t\t\tObjectId oid = null;\n\t\t\tObjectId invoiceOid = null;\n\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tds = Morphiacxn.getInstance().getMORPHIADB(\"test\");\n\t\t\t\toid = new ObjectId(companyId);\n\t\t\t\tQuery<Company> query = ds.createQuery(Company.class).field(\"id\").equal(oid);\n\t\t\t\tcmp = query.get();\n\t\t\t\tif(cmp == null)\n\t\t\t\t\tthrow new EntityException(404, \"cmp not found\", null, null);\n\n\n\t\t\t\tinvoiceOid = new ObjectId(invoiceNo);\n\t\t\t\tQuery<InwardEntity> iQuery = ds.find(InwardEntity.class).filter(\"company\",cmp).filter(\"isInvoice\", true)\n\t\t\t\t\t\t.filter(\"id\", invoiceOid);\n\n\t\t\t\tinvoice = iQuery.get();\n\t\t\t\tif(invoice == null)\n\t\t\t\t\tthrow new EntityException(512, \" invoice not found\", null, null);\n\n\n\t\t\t\t//we need to sub old amt, and add new amt, so get old amt\n\n\t\t\t\tjava.math.BigDecimal prevAmt = null;\n\t\t\t\tboolean match = false;\n\n\t\t\t\t//all deleted in between\n\t\t\t\tif(invoice.getInvoicePayments() == null)\n\t\t\t\t\tthrow new EntityException(513, \"payment not found\", null, null);\n\t\t\t\t\t\n\t\t\t\t\t//always fetch payment prev amt from db, it may have changed in between\t\n\t\t\t\tfor(OrderPayments pay : invoice.getInvoicePayments())\n\t\t\t\t{\n\n\t\t\t\t\tif(pay.getId().toString().equals(payment.getId().toString()))\n\t\t\t\t\t{\n\t\t\t\t\t\tmatch = true;\n\t\t\t\t\t\tprevAmt = pay.getPaymentAmount();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tif(match == false)\n\t\t\t\t\tthrow new EntityException(513, \"payment not found\", null, null);\n\n\n\t\t\t\t//payment towards a bill, PO not affected in any way\n\t\t\t\tjava.math.BigDecimal invoiceAdvance = invoice.getInvoiceAdvancetotal().subtract(prevAmt).add(payment.getPaymentAmount());\n\t\t\t\tjava.math.BigDecimal balance = invoice.getInvoiceBalance().add(prevAmt).subtract(payment.getPaymentAmount()); // or grand total - just set advance\n\n\n\t\t\t\t//if null then 0 \n\n\t\t\t\tif(payment.getTdsRate() == null)\n\t\t\t\t\tpayment.setTdsRate(new BigDecimal(0));\n\n\t\t\t\tif(payment.getTdsAmount() == null)\n\t\t\t\t\tpayment.setTdsAmount(new BigDecimal(0));\n\n\t\t\t\t//search for nested payment in the list\n\t\t\t\tiQuery = ds.createQuery(InwardEntity.class).disableValidation().filter(\"id\", invoiceOid).filter(\"invoicePayments.id\", new ObjectId(payment.getId().toString()));\n\n\t\t\t\tUpdateOperations<InwardEntity> ops = ds.createUpdateOperations(InwardEntity.class)\n\n\t\t\t\t\t\t.set(\"invoicePayments.$.paymentDate\", payment.getPaymentDate())\n\t\t\t\t\t\t.set(\"invoicePayments.$.paymentAmount\", payment.getPaymentAmount())\n\t\t\t\t\t\t.set(\"invoicePayments.$.purposeTitle\", payment.getPurposeTitle())\n\t\t\t\t\t\t.set(\"invoicePayments.$.purposeDescription\", payment.getPurposeDescription())\n\t\t\t\t\t\t.set(\"invoicePayments.$.paymentMode\", payment.getPaymentMode())\n\t\t\t\t\t\t.set(\"invoicePayments.$.paymentAccount\", payment.getPaymentAccount())\n\t\t\t\t\t\t.set(\"invoicePayments.$.tdsRate\", payment.getTdsRate())\n\t\t\t\t\t\t.set(\"invoicePayments.$.tdsAmount\", payment.getTdsAmount())\n\t\t\t\t\t\t.set(\"invoicePayments.$.isTdsReceived\", payment.isTdsReceived())\n\t\t\t\t\t\t.set(\"invoiceAdvancetotal\", invoiceAdvance)\n\t\t\t\t\t\t.set(\"invoiceBalance\", balance);\n\n\n\t\t\t\tUpdateResults result = ds.update(iQuery, ops, false);\n\n\t\t\t\tif(result.getUpdatedCount() == 0)\n\t\t\t\t\tthrow new EntityException(512, \"update failed\", null, null);\n\n\n\n\t\t\t}\n\t\t\tcatch(EntityException e)\n\t\t\t{\n\t\t\t\tthrow e;\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tthrow new EntityException(500, null, e.getMessage(), null);\n\t\t\t}\n\t\t\treturn payment;\n\t\t}",
"public io.opencannabis.schema.commerce.CommercialOrder.OrderPaymentOrBuilder getPaymentOrBuilder() {\n return getPayment();\n }",
"public void setCustomerPurchase(double purchase) { this.customerPurchase = purchase; }",
"public void setPaymentPeriod(PaymentPeriod paymentPeriod) {\n\n this.paymentPeriod = paymentPeriod;\n }",
"public PaymentRequestItem(OleInvoiceItem poi, OlePaymentRequestDocument preq, HashMap<String, ExpiredOrClosedAccountEntry> expiredOrClosedAccountList) {\r\n\r\n // copy base attributes w/ extra array of fields not to be copied\r\n PurApObjectUtils.populateFromBaseClass(PurApItemBase.class, poi, this, PurapConstants.PREQ_ITEM_UNCOPYABLE_FIELDS);\r\n\r\n setItemDescription(poi.getItemDescription());\r\n\r\n //New Source Line should be set for PaymentRequestItem\r\n resetAccount();\r\n\r\n // set up accounts\r\n List accounts = new ArrayList();\r\n\r\n for (PurApAccountingLine account : poi.getSourceAccountingLines()) {\r\n InvoiceAccount poa = (InvoiceAccount) account;\r\n\r\n // check if this account is expired/closed and replace as needed\r\n SpringContext.getBean(AccountsPayableService.class).processExpiredOrClosedAccount(poa, expiredOrClosedAccountList);\r\n\r\n //KFSMI-4522 copy an accounting line with zero dollar amount if system parameter allows\r\n if (poa.getAmount().isZero()) {\r\n if (SpringContext.getBean(AccountsPayableService.class).canCopyAccountingLinesWithZeroAmount()) {\r\n accounts.add(new PaymentRequestAccount(this, poa));\r\n }\r\n } else {\r\n accounts.add(new PaymentRequestAccount(this, poa));\r\n }\r\n }\r\n\r\n this.setSourceAccountingLines(accounts);\r\n this.getUseTaxItems().clear();\r\n //List<PurApItemUseTax> newUseTaxItems = new ArrayList<PurApItemUseTax>();\r\n /// this.setUseTaxItems(newUseTaxItems);\r\n //copy use tax items over, and blank out keys (useTaxId and itemIdentifier)\r\n /*\r\n this.getUseTaxItems().clear();\r\n for (PurApItemUseTax useTaxItem : poi.getUseTaxItems()) {\r\n PaymentRequestItemUseTax newItemUseTax = new PaymentRequestItemUseTax(useTaxItem);\r\n this.getUseTaxItems().add(newItemUseTax);\r\n\r\n }\r\n */\r\n\r\n // clear amount and desc on below the line - we probably don't need that null\r\n // itemType check but it's there just in case remove if it causes problems\r\n // also do this if of type service\r\n if ((ObjectUtils.isNotNull(this.getItemType()) && this.getItemType().isAmountBasedGeneralLedgerIndicator())) {\r\n // setting unit price to be null to be more consistent with other below the line\r\n // this.setItemUnitPrice(null);\r\n }\r\n\r\n // copy custom\r\n /*Modified for the jira -5458*/\r\n this.purchaseOrderItemUnitPrice = poi.getPurchaseOrderItem()!=null ? poi.getPurchaseOrderItem().getItemUnitPrice() : null;\r\n// this.purchaseOrderCommodityCode = poi.getPurchaseOrderCommodityCd();\r\n\r\n // set doc fields\r\n this.setPurapDocumentIdentifier(preq.getPurapDocumentIdentifier());\r\n this.setPurapDocument(preq);\r\n }",
"void pay(Order order);"
]
| [
"0.6655281",
"0.62730503",
"0.62659556",
"0.6194865",
"0.59600186",
"0.5935788",
"0.5928798",
"0.58501303",
"0.58344126",
"0.58344126",
"0.581534",
"0.57884836",
"0.5702975",
"0.56500965",
"0.5574483",
"0.5561141",
"0.5558516",
"0.5551644",
"0.5531149",
"0.55015355",
"0.5474435",
"0.54578686",
"0.5439462",
"0.5438177",
"0.54291135",
"0.5415454",
"0.5402579",
"0.53779924",
"0.5377701",
"0.5369249",
"0.5354445",
"0.53340966",
"0.53129596",
"0.53117174",
"0.5293381",
"0.5285822",
"0.52827233",
"0.52784383",
"0.5264461",
"0.5260857",
"0.52497375",
"0.5247615",
"0.52465385",
"0.52385885",
"0.5222732",
"0.5217589",
"0.521511",
"0.519832",
"0.5176823",
"0.51755244",
"0.5163776",
"0.51592404",
"0.51581794",
"0.51548725",
"0.51530623",
"0.51522017",
"0.514979",
"0.51390076",
"0.5136978",
"0.51339966",
"0.5133558",
"0.51330304",
"0.51224726",
"0.5112423",
"0.51106215",
"0.51042885",
"0.5091987",
"0.5090799",
"0.5087465",
"0.50819856",
"0.50754243",
"0.50667393",
"0.50662816",
"0.5059323",
"0.5051972",
"0.50503105",
"0.5035273",
"0.50128603",
"0.50082046",
"0.4988946",
"0.4988769",
"0.49857876",
"0.49820423",
"0.4972127",
"0.4967587",
"0.49650872",
"0.4956806",
"0.4952181",
"0.49503067",
"0.49500456",
"0.49500456",
"0.49451375",
"0.49420813",
"0.494106",
"0.4935393",
"0.4933215",
"0.49324852",
"0.49321136",
"0.4931776",
"0.4931093"
]
| 0.62059635 | 3 |
Sets accounting lines associated with advances on this document | public void setAdvanceAccountingLines(List<TemSourceAccountingLine> advanceAccountingLines) {
this.advanceAccountingLines = advanceAccountingLines;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addAdvanceAccountingLine(TemSourceAccountingLine line) {\n line.setSequenceNumber(this.getNextAdvanceLineNumber());\n this.advanceAccountingLines.add(line);\n this.nextAdvanceLineNumber = new Integer(getNextAdvanceLineNumber().intValue() + 1);\n }",
"protected void initiateAdvancePaymentAndLines() {\n setDefaultBankCode();\n setTravelAdvance(new TravelAdvance());\n getTravelAdvance().setDocumentNumber(getDocumentNumber());\n setAdvanceTravelPayment(new TravelPayment());\n getAdvanceTravelPayment().setDocumentNumber(getDocumentNumber());\n getAdvanceTravelPayment().setDocumentationLocationCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TravelParameters.DOCUMENTATION_LOCATION_CODE,\n getParameterService().getParameterValueAsString(TemParameterConstants.TEM_DOCUMENT.class,TravelParameters.DOCUMENTATION_LOCATION_CODE)));\n getAdvanceTravelPayment().setCheckStubText(getConfigurationService().getPropertyValueAsString(TemKeyConstants.MESSAGE_TA_ADVANCE_PAYMENT_HOLD_TEXT));\n final java.sql.Date currentDate = getDateTimeService().getCurrentSqlDate();\n getAdvanceTravelPayment().setDueDate(currentDate);\n updatePayeeTypeForAuthorization(); // if the traveler is already initialized, set up payee type on advance travel payment\n setWireTransfer(new PaymentSourceWireTransfer());\n getWireTransfer().setDocumentNumber(getDocumentNumber());\n setAdvanceAccountingLines(new ArrayList<TemSourceAccountingLine>());\n resetNextAdvanceLineNumber();\n TemSourceAccountingLine accountingLine = initiateAdvanceAccountingLine();\n addAdvanceAccountingLine(accountingLine);\n }",
"protected TemSourceAccountingLine initiateAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setDocumentNumber(getDocumentNumber());\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setSequenceNumber(new Integer(1));\n accountingLine.setCardType(TemConstants.ADVANCE);\n if (this.allParametersForAdvanceAccountingLinesSet()) {\n accountingLine.setChartOfAccountsCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART));\n accountingLine.setAccountNumber(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT));\n accountingLine.setFinancialObjectCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE));\n }\n return accountingLine;\n }\n catch (InstantiationException ie) {\n LOG.error(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName(), ie);\n }\n catch (IllegalAccessException iae) {\n LOG.error(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName(), iae);\n }\n }",
"public TemSourceAccountingLine getAdvanceAccountingLine(int index) {\n while (getAdvanceAccountingLines().size() <= index) {\n getAdvanceAccountingLines().add(createNewAdvanceAccountingLine());\n }\n return getAdvanceAccountingLines().get(index);\n }",
"public void propagateAdvanceInformationIfNeeded() {\n if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().getTravelAdvanceRequested() != null) {\n if (!ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setCheckTotalAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n final TemSourceAccountingLine maxAmountLine = getAccountingLineWithLargestAmount();\n if (!TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus())) {\n getAdvanceAccountingLines().get(0).setAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n if (!allParametersForAdvanceAccountingLinesSet() && !TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus()) && !advanceAccountingLinesHaveBeenModified(maxAmountLine)) {\n // we need to set chart, account, sub-account, and sub-object from account with largest amount from regular source lines\n if (maxAmountLine != null) {\n getAdvanceAccountingLines().get(0).setChartOfAccountsCode(maxAmountLine.getChartOfAccountsCode());\n getAdvanceAccountingLines().get(0).setAccountNumber(maxAmountLine.getAccountNumber());\n getAdvanceAccountingLines().get(0).setSubAccountNumber(maxAmountLine.getSubAccountNumber());\n }\n }\n // let's also propogate the due date\n if (getTravelAdvance().getDueDate() != null && !ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setDueDate(getTravelAdvance().getDueDate());\n }\n }\n }",
"protected void resetNextAdvanceLineNumber() {\n this.nextAdvanceLineNumber = new Integer(1);\n }",
"public TemSourceAccountingLine createNewAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setCardType(TemConstants.ADVANCE); // really, card type is ignored but it is validated so we have to set something\n accountingLine.setFinancialObjectCode(this.getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE, KFSConstants.EMPTY_STRING));\n return accountingLine;\n }\n catch (IllegalAccessException iae) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", iae);\n }\n catch (InstantiationException ie) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", ie);\n }\n }",
"protected List getPersistedAdvanceAccountingLinesForComparison() {\n return SpringContext.getBean(AccountingLineService.class).getByDocumentHeaderIdAndLineType(getAdvanceAccountingLineClass(), getDocumentNumber(), TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n }",
"private void setUpLedger() {\n _ledgerLine = new Line();\n _ledgerLine.setStrokeWidth(Constants.STROKE_WIDTH);\n _staffLine = new Line();\n _staffLine.setStrokeWidth(1);\n }",
"public void setLine(int line);",
"protected List generateEventsForAdvanceAccountingLines(List<TemSourceAccountingLine> persistedAdvanceAccountingLines, List<TemSourceAccountingLine> currentAdvanceAccountingLines) {\n List events = new ArrayList();\n Map persistedLineMap = buildAccountingLineMap(persistedAdvanceAccountingLines);\n final String errorPathPrefix = KFSConstants.DOCUMENT_PROPERTY_NAME + \".\" + TemPropertyConstants.ADVANCE_ACCOUNTING_LINES;\n final String groupErrorPathPrefix = errorPathPrefix + KFSConstants.ACCOUNTING_LINE_GROUP_SUFFIX;\n\n // (iterate through current lines to detect additions and updates, removing affected lines from persistedLineMap as we go\n // so deletions can be detected by looking at whatever remains in persistedLineMap)\n int index = 0;\n for (TemSourceAccountingLine currentLine : currentAdvanceAccountingLines) {\n String indexedErrorPathPrefix = errorPathPrefix + \"[\" + index + \"]\";\n Integer key = currentLine.getSequenceNumber();\n\n AccountingLine persistedLine = (AccountingLine) persistedLineMap.get(key);\n\n if (persistedLine != null) {\n ReviewAccountingLineEvent reviewEvent = new ReviewAccountingLineEvent(indexedErrorPathPrefix, this, currentLine);\n events.add(reviewEvent);\n\n persistedLineMap.remove(key);\n }\n else {\n // it must be a new addition\n AddAccountingLineEvent addEvent = new AddAccountingLineEvent(indexedErrorPathPrefix, this, currentLine);\n events.add(addEvent);\n }\n }\n\n // detect deletions\n List<TemSourceAccountingLine> remainingPersistedLines = new ArrayList<TemSourceAccountingLine>();\n remainingPersistedLines.addAll(persistedLineMap.values());\n for (TemSourceAccountingLine persistedLine : remainingPersistedLines) {\n DeleteAccountingLineEvent deleteEvent = new DeleteAccountingLineEvent(groupErrorPathPrefix, this, persistedLine, true);\n events.add(deleteEvent);\n }\n return events;\n }",
"public void setLine (int Line);",
"public void addActualExpenseLine(ActualExpense line) {\n line.setDocumentLineNumber(getActualExpenses().size() + 1);\n final String sequenceName = line.getSequenceName();\n final Long sequenceNumber = getSequenceAccessorService().getNextAvailableSequenceNumber(sequenceName, ActualExpense.class);\n line.setId(sequenceNumber);\n line.setDocumentNumber(this.documentNumber);\n notifyChangeListeners(new PropertyChangeEvent(this, TemPropertyConstants.ACTUAL_EXPENSES, null, line));\n getActualExpenses().add(line);\n logErrors();\n }",
"public void setLineNetAmt (BigDecimal LineNetAmt);",
"@Override\r\n public void resetAccount() {\r\n super.resetAccount();\r\n this.getNewSourceLine().setAmount(null);\r\n this.getNewSourceLine().setAccountLinePercent(new BigDecimal(0));\r\n }",
"public void setAccNo(int accNo) {\r\n\t\tthis.accNo = accNo+1;\r\n\t}",
"public void setAcrs(List<ACR> acrList) {\n this.acrs = acrList;\n }",
"public void setC_OrderLine_ID (int C_OrderLine_ID);",
"public void resetLines() {\r\n\t\tsetLines(new HashMap<String, ArrayList<Integer>>());\r\n\t}",
"public void setFields(List<AccountingLineViewField> fields) {\n this.fields = fields;\n }",
"public boolean allParametersForAdvanceAccountingLinesSet() {\n // not checking the object code because that will need to be set no matter what - every advance accounting line will use that\n return (!StringUtils.isBlank(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT, KFSConstants.EMPTY_STRING)) &&\n !StringUtils.isBlank(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART, KFSConstants.EMPTY_STRING)));\n }",
"public void setLineNumbers(int ln[]) {\n lineNos = ln;\n }",
"private void redrawLines()\n {\n for(int i =0; i<currentRide;i++)\n {\n rides[i].moveTogether(650,60 + 40*i);//move all elemetnts of ride lines\n \n }\n }",
"public void setAcr(String acr) {\n this.acr = acr;\n }",
"public void setClaimLineNumber(java.math.BigDecimal value) {\n __getInternalInterface().setFieldValue(CLAIMLINENUMBER_PROP.get(), value);\n }",
"public void editCommissionAccounts(CommissionAccount commissionAccount);",
"public void setClaimLineNumber(java.math.BigDecimal value) {\n __getInternalInterface().setFieldValue(CLAIMLINENUMBER_PROP.get(), value);\n }",
"public void setLineNo (int LineNo);",
"void incrementLinesRead();",
"void setLineNumber(int lineNumber) {}",
"public void setLinesOfBusiness(entity.AppCritLineOfBusiness[] value);",
"public void setLines(HashMap<String, ArrayList<Integer>> lines) {\r\n\t\tthis._fileLines = lines;\r\n\t}",
"public void setLinePos(int linePos) {\n this.linePos = linePos;\n }",
"public void setOutline(AssignmentOutline newOutline){\n this.outline = newOutline;\n }",
"public void setViewlines(int viewlines) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 44, viewlines);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 44, viewlines);\n\t\t}\n\t}",
"public void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);",
"public void recalculate(){\n\t\t\n\t\tLinkedList<Line> primaryLines = lineLists.get(0);\n\t\t\n\t\tfor (int i = 0; i < controlPoints.size()-1; i++){\n\t\t\tControlPoint current = controlPoints.get(i);\n\t\t\tControlPoint next = controlPoints.get(i+1);\n\t\t\t\n\t\t\tLine line = primaryLines.get(i);\n\t\t\t\n\t\t\tline.setStartX(current.getCenterX());\n\t\t\tline.setStartY(current.getCenterY());\n\t\t\tline.setEndX(next.getCenterX());\n\t\t\tline.setEndY(next.getCenterY());\n\t\t}\n\t}",
"public void setOrderLine (MOrderLine oLine, int M_Locator_ID, BigDecimal Qty)\n\t{\n\t\tMOrgPOS orgpos = MOrgPOS.getOrgPos(getCtx(), oLine.getParent().getAD_Org_ID(), get_Trx());\n\t\tif(M_Locator_ID > 0 && (oLine.getParent().getC_DocTypeTarget_ID() == orgpos.getDocType_Ticket_ID()))\n\t\t\tM_Locator_ID = oLine.get_ValueAsInt(\"M_Locator_ID\")>0?oLine.get_ValueAsInt(\"M_Locator_ID\"):orgpos.getM_LocatorStock_ID();\n\t\tsetC_OrderLine_ID(oLine.getC_OrderLine_ID());\n\t\tsetLine(oLine.getLine());\n\t\tsetC_UOM_ID(oLine.getC_UOM_ID());\n\t\tMProduct product = oLine.getProduct();\n\t\tif (product == null)\n\t\t{\n\t\t\tsetM_Product_ID(0);\n\t\t\tsetM_AttributeSetInstance_ID(0);\n\t\t\tsuper.setM_Locator_ID(0);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetM_Product_ID(oLine.getM_Product_ID());\n\t\t\tsetM_AttributeSetInstance_ID(oLine.getM_AttributeSetInstance_ID());\n\t\t\t//\n\t\t\tif (product.isItem())\n\t\t\t{\n\t\t\t\tif (M_Locator_ID == 0)\n\t\t\t\t\tsetM_Locator_ID(Qty);\t//\trequires warehouse, product, asi\n\t\t\t\telse\n\t\t\t\t\tsetM_Locator_ID(M_Locator_ID);\n\t\t\t}\n\t\t\telse\n\t\t\t\tsuper.setM_Locator_ID(0);\n\t\t}\n\t\tsetC_Charge_ID(oLine.getC_Charge_ID());\n\t\tsetDescription(oLine.getDescription());\n\t\tsetIsDescription(oLine.isDescription());\n\t\t//\n\t\tsetAD_Org_ID(oLine.getAD_Org_ID());\n\t\tsetC_Project_ID(oLine.getC_Project_ID());\n\t\tsetC_ProjectPhase_ID(oLine.getC_ProjectPhase_ID());\n\t\tsetC_ProjectTask_ID(oLine.getC_ProjectTask_ID());\n\t\tsetC_Activity_ID(oLine.getC_Activity_ID());\n\t\tsetC_Campaign_ID(oLine.getC_Campaign_ID());\n\t\tsetAD_OrgTrx_ID(oLine.getAD_OrgTrx_ID());\n\t\tsetUser1_ID(oLine.getUser1_ID());\n\t\tsetUser2_ID(oLine.getUser2_ID());\n\t}",
"public static void deleteEncumLines(EfinBudgetManencum encum, AccountingCombination com,\n EscmProposalMgmt proposal, EscmProposalmgmtLine proposalmgmtline) {\n EfinBudgetManencumlines line = null;\n List<EfinBudgetManencumlines> lineList = new ArrayList<EfinBudgetManencumlines>();\n List<EscmProposalmgmtLine> propsallnLs = null;\n try {\n\n OBQuery<EfinBudgetManencumlines> delLineQry = OBDal.getInstance()\n .createQuery(EfinBudgetManencumlines.class, \" as e where e.manualEncumbrance.id=:encumID \"\n + \" and e.accountingCombination.id=:acctID and e.isauto='Y' \");\n delLineQry.setNamedParameter(\"encumID\", encum.getId());\n delLineQry.setNamedParameter(\"acctID\", com.getId());\n delLineQry.setMaxResult(1);\n lineList = delLineQry.list();\n if (lineList.size() > 0) {\n line = lineList.get(0);\n log.debug(\"line:\" + line);\n if (proposal != null) {\n OBQuery<EscmProposalmgmtLine> propsalln = OBDal.getInstance().createQuery(\n EscmProposalmgmtLine.class,\n \" as e where e.escmProposalmgmt.id=:proposalId and e.efinBudgmanencumline.id=:encumLnId\");\n propsalln.setNamedParameter(\"proposalId\", proposal.getId());\n propsalln.setNamedParameter(\"encumLnId\", line.getId());\n propsallnLs = propsalln.list();\n } else {\n OBQuery<EscmProposalmgmtLine> propsalln = OBDal.getInstance().createQuery(\n EscmProposalmgmtLine.class,\n \" as e where e.id=:proposalLineId and e.efinBudgmanencumline.id=:encumLnId\");\n propsalln.setNamedParameter(\"proposalLineId\", proposalmgmtline.getId());\n propsalln.setNamedParameter(\"encumLnId\", line.getId());\n propsallnLs = propsalln.list();\n }\n\n if (propsallnLs.size() > 0) {\n for (EscmProposalmgmtLine prosalline : propsallnLs) {\n prosalline.setEfinBudgmanencumline(null);\n OBDal.getInstance().save(prosalline);\n }\n }\n encum.getEfinBudgetManencumlinesList().remove(line);\n encum.setDocumentStatus(\"DR\");\n OBDal.getInstance().remove(line);\n }\n encum.setDocumentStatus(\"CO\");\n OBDal.getInstance().flush();\n } catch (Exception e) {\n OBDal.getInstance().rollbackAndClose();\n log.error(\"Exception in deleteEncumLines \" + e, e);\n }\n }",
"public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }",
"@Override\n public List getSourceAccountingLines() {\n return super.getSourceAccountingLines();\n }",
"org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine addNewExternalOrderLine();",
"public CustomerOrderLineTableModel(List<CustomerOrderLine> theCustomerOrderLines) {\n\t\tcustomerOrderLines = theCustomerOrderLines;\n\t}",
"protected void addAccounts(AccountsPayableDocument accountsPayableDocument, PaymentDetail paymentDetail, String documentType) {\r\n String creditMemoDocType = getDataDictionaryService().getDocumentTypeNameByClass(VendorCreditMemoDocument.class);\r\n List<SourceAccountingLine> sourceAccountingLines = purapAccountingService.generateSourceAccountsForVendorRemit(accountsPayableDocument);\r\n for (SourceAccountingLine sourceAccountingLine : sourceAccountingLines) {\r\n KualiDecimal lineAmount = sourceAccountingLine.getAmount();\r\n PaymentAccountDetail paymentAccountDetail = new PaymentAccountDetail();\r\n paymentAccountDetail.setAccountNbr(sourceAccountingLine.getAccountNumber());\r\n\r\n if (creditMemoDocType.equals(documentType)) {\r\n lineAmount = lineAmount.negated();\r\n }\r\n\r\n paymentAccountDetail.setAccountNetAmount(sourceAccountingLine.getAmount());\r\n paymentAccountDetail.setFinChartCode(sourceAccountingLine.getChartOfAccountsCode());\r\n paymentAccountDetail.setFinObjectCode(sourceAccountingLine.getFinancialObjectCode());\r\n\r\n paymentAccountDetail.setFinSubObjectCode(StringUtils.defaultIfEmpty(sourceAccountingLine.getFinancialSubObjectCode(), OLEConstants.getDashFinancialSubObjectCode()));\r\n paymentAccountDetail.setOrgReferenceId(sourceAccountingLine.getOrganizationReferenceId());\r\n paymentAccountDetail.setProjectCode(StringUtils.defaultIfEmpty(sourceAccountingLine.getProjectCode(), OLEConstants.getDashProjectCode()));\r\n paymentAccountDetail.setSubAccountNbr(StringUtils.defaultIfEmpty(sourceAccountingLine.getSubAccountNumber(), OLEConstants.getDashSubAccountNumber()));\r\n paymentDetail.addAccountDetail(paymentAccountDetail);\r\n }\r\n }",
"void setNilExternalOrderLineArray(int i);",
"public void setAceCount(int aceCount){\n this.aceCount = aceCount;\n }",
"private void setNewValues(Line[] line, Text[] angles, Circle[] points) {\r\n for (int i = 0; i < 3; i++) {\r\n int ind = i == 2 ? 0 : (i+1); //needed to prevent NullPointerException\r\n line[i].setStartX(points[i].getCenterX());\r\n line[i].setEndX(points[ind].getCenterX());\r\n line[i].setStartY(points[i].getCenterY());\r\n line[i].setEndY(points[ind].getCenterY());\r\n\r\n }\r\n //distances\r\n double a,b,c;\r\n a = calculateDistance(points[0], points[1]);\r\n b = calculateDistance(points[1], points[2]);\r\n c = calculateDistance(points[2], points[0]);\r\n\r\n //angles\r\n int A,B,C;\r\n A = (int) Math.toDegrees(Math.acos((a*a - b*b - c*c) / (-2 * b * c)));\r\n B = (int) Math.toDegrees(Math.acos((b*b - a*a - c*c) / (-2 * a * c)));\r\n C = (int) Math.toDegrees(Math.acos((c*c - b*b - a*a) / (-2 * a * b)));\r\n\r\n angles[0].setText(String.valueOf(String.valueOf(B)));\r\n angles[1].setText(String.valueOf(String.valueOf(C)));\r\n angles[2].setText(String.valueOf(String.valueOf(A)));\r\n\r\n //set location of angle labels\r\n for(int i = 0; i < angles.length;i++) {\r\n angles[i].setX(points[i].getCenterX() + 10);\r\n angles[i].setY(points[i].getCenterY() + 10);\r\n\r\n }\r\n\r\n }",
"public void setTextline(boolean textline) {\n this.textline = textline;\n }",
"@SuppressWarnings(\"static-access\")\n\tpublic void fillGuideline(NodeSet<OWLNamedIndividual> instances, UsabilityGuideline guidelineElement) {\n\t\t instances.forEach(f -> {\n\t\t\t f.forEach(individual -> {\n\t\t\t\t ontologyRepository.ontology.axioms(individual).forEach(axiom -> {\n\t\t\t\t\t if (axiom instanceof OWLDataPropertyAssertionAxiomImpl) {\n\t\t\t\t\t\t OWLDataPropertyAssertionAxiomImpl dataProperty = (OWLDataPropertyAssertionAxiomImpl) axiom;\n\t\t\t\t\t\t printOwlDataProperty(dataProperty);\n\t\t\t\t\t }\n\t\t\t\t\t if (axiom instanceof OWLObjectPropertyAssertionAxiomImpl) {\n\t\t\t\t\t\t OWLObjectPropertyAssertionAxiomImpl objectProperty = (OWLObjectPropertyAssertionAxiomImpl) axiom;\t\t\t\t \n\t\t\t\t\t transformToObject(((OWLNamedIndividualImpl) objectProperty.getObject()), guidelineElement, null);\n\t\t\t\t\t }\n\t\t\t\t });\n\t\t\t });\n\t\t });\n\t}",
"public void setOnLines(final Collection<? extends OnlineResource> newValues) {\n onLines = writeCollection(newValues, onLines, OnlineResource.class);\n }",
"public void addCommissionAccounts(CommissionAccount commissionAccount);",
"public void setNoOfRelevantLines(int norl) { this.noOfRelevantLines = norl; }",
"private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }",
"public void setLineNumbers(LineNumberDebugInfo[] lineNumbers);",
"public SalesCreditMemoLineCollectionPage(@Nonnull final java.util.List<SalesCreditMemoLine> pageContents, @Nullable final SalesCreditMemoLineCollectionRequestBuilder nextRequestBuilder) {\n super(pageContents, nextRequestBuilder);\n }",
"public void setLineNumber(Integer value){\n ((MvwDefinitionDMO) core).setLineNumber(value);\n }",
"public void annualProcess() {\n super.withdraw(annualFee);\n }",
"void setExternalOrderLineArray(int i, org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine externalOrderLine);",
"public void setInvoiceLine (MInvoiceLine iLine, int M_Locator_ID, BigDecimal Qty)\n\t{\n\t\tsetC_OrderLine_ID(iLine.getC_OrderLine_ID());\n\t\tsetLine(iLine.getLine());\n\t\tsetC_UOM_ID(iLine.getC_UOM_ID());\n\t\tint M_Product_ID = iLine.getM_Product_ID();\n\t\tif (M_Product_ID == 0)\n\t\t{\n\t\t\tset_ValueNoCheck(\"M_Product_ID\", null);\n\t\t\tset_ValueNoCheck(\"M_Locator_ID\", null);\n\t\t\tset_ValueNoCheck(\"M_AttributeSetInstance_ID\", null);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetM_Product_ID(M_Product_ID);\n\t\t\tsetM_AttributeSetInstance_ID(iLine.getM_AttributeSetInstance_ID());\t\t\t\n\t\t\tif (M_Locator_ID == 0)\n\t\t\t\tsetM_Locator_ID(Qty);\t//\trequires warehouse, product, asi\n\t\t\telse\n\t\t\t\tsetM_Locator_ID(M_Locator_ID);\n\t\t}\n\t\tsetC_Charge_ID(iLine.getC_Charge_ID());\n\t\tsetDescription(iLine.getDescription());\n\t\tsetIsDescription(iLine.isDescription());\n\t\t//\n\t\tsetC_Project_ID(iLine.getC_Project_ID());\n\t\tsetC_ProjectPhase_ID(iLine.getC_ProjectPhase_ID());\n\t\tsetC_ProjectTask_ID(iLine.getC_ProjectTask_ID());\n\t\tsetC_Activity_ID(iLine.getC_Activity_ID());\n\t\tsetC_Campaign_ID(iLine.getC_Campaign_ID());\n\t\tsetAD_OrgTrx_ID(iLine.getAD_OrgTrx_ID());\n\t\tsetUser1_ID(iLine.getUser1_ID());\n\t\tsetUser2_ID(iLine.getUser2_ID());\n\t}",
"private void pdfPaymentMethod(CartReceiptResponse receiptResponse, Document document, Locale locale)\n throws DocumentException, IOException {\n\n LOGGER.debug(\"Entered in 'pdfPaymentMethod' method\");\n Double totalPaymentApplied = 0.0;\n PdfPTable paymentMethodTable = new PdfPTable(2);\n paymentMethodTable.setWidths(new int[]{200, 50});\n PdfPCell paymentMethodBlankSpaceCell = new PdfPCell(new Phrase(\" \", getFont(WHITE_COLOR, 8, Font.BOLD)));\n String message = getMessage(locale, \"pdf.receipt.paymentMethod\");\n Font font = getFont(BLACK_COLOR, FONT_SIZE_18, Font.BOLD);\n PdfPCell paymentMethodHeaderCell = new PdfPCell(new Phrase(message, font));\n cellAlignment(paymentMethodHeaderCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodHeaderCell, Rectangle.NO_BORDER, 0, 0);\n\n cellAlignment(paymentMethodBlankSpaceCell, 0, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n cellAlignment(paymentMethodBlankSpaceCell, 0, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n\n FundingSourceResponse[] fundingSources = receiptResponse.getFundingSources();\n\n if (fundingSources.length != 0) {\n for (final FundingSourceResponse aFundingSource1 : fundingSources) {\n if (aFundingSource1 != null) {\n if (aFundingSource1.getType().equalsIgnoreCase(PdfConstants.CREDIT)) {\n LOGGER.debug(\"Entered in to credits section : \" + aFundingSource1.getType());\n creditFundingSection(locale, paymentMethodTable,\n new BigDecimal(getUsedAmountFromFunding(aFundingSource1)));\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n totalPaymentApplied = totalPaymentApplied + getUsedAmountFromFunding(aFundingSource1);\n }\n }\n }\n for (final FundingSourceResponse aFundingSource : fundingSources) {\n if (aFundingSource instanceof VestaFundingSourceResponse) {\n VestaFundingSourceResponse vestaFundingSourceResponse =\n (VestaFundingSourceResponse) aFundingSource;\n String tenderType = vestaFundingSourceResponse.getTenderType();\n CardBrand cardBrand = vestaFundingSourceResponse.getCardBrand();\n if (tenderType.equalsIgnoreCase(PdfConstants.DEBIT) ||\n tenderType.equalsIgnoreCase(PdfConstants.CREDIT)) {\n PdfPCell cardNumberCell = new PdfPCell(new Phrase(getMessage(locale, \"pdf.receipt.cardPinMsg\",\n getTenderTypeForCard(tenderType,\n locale),\n getCardBrandText(cardBrand,\n locale),\n vestaFundingSourceResponse\n .getCardLast4()),\n getFont(null, FONT_SIZE_12, Font.NORMAL)));\n PdfPCell amountSectionCell = new PdfPCell(new Phrase(getFormattedAmount(new BigDecimal(\n getUsedAmountFromFunding(vestaFundingSourceResponse))),\n getFont(null, FONT_SIZE_12, Font.NORMAL)));\n cellAlignment(cardNumberCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, cardNumberCell, Rectangle.NO_BORDER, 0, 15);\n\n cellAlignment(amountSectionCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, amountSectionCell, Rectangle.NO_BORDER, 0, 0);\n chargedOnSection(locale, paymentMethodTable, paymentMethodBlankSpaceCell, receiptResponse);\n totalPaymentApplied =\n totalPaymentApplied + getUsedAmountFromFunding(vestaFundingSourceResponse);\n continue;\n }\n }\n\n if (aFundingSource != null) {\n if (getCashStatus(aFundingSource.getType())) {\n cashFundingSection(paymentMethodTable, locale, aFundingSource);\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n totalPaymentApplied = totalPaymentApplied + getUsedAmountFromFunding(aFundingSource);\n }\n }\n }\n } else {\n creditFundingSection(locale, paymentMethodTable, new BigDecimal(0));\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n totalPaymentApplied = totalPaymentApplied + 0;\n }\n\n\n calculateTotalPayment(locale, paymentMethodTable, totalPaymentApplied);\n cellAlignment(paymentMethodBlankSpaceCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, paymentMethodBlankSpaceCell, Rectangle.NO_BORDER, 2, 0);\n generatedNewCredits(locale, paymentMethodTable, receiptResponse.getCreditsGenerated());\n document.add(paymentMethodTable);\n }",
"public void addToLinesOfBusiness(entity.AppCritLineOfBusiness element);",
"public static void updateManualEncumAppAmt(EscmProposalMgmt proposalmgmt, Boolean iscancel) {\n\n try {\n EscmProposalMgmt baseProposalObj = proposalmgmt.getEscmBaseproposal();\n OBContext.setAdminMode();\n List<EscmProposalmgmtLine> prolineList = proposalmgmt.getEscmProposalmgmtLineList();\n // checking with propsal line\n if (baseProposalObj == null) {\n for (EscmProposalmgmtLine proposalline : prolineList) {\n if (!proposalline.isSummary()) {\n EfinBudgetManencumlines encline = proposalline.getEfinBudgmanencumline();\n if (encline != null) {\n if (\"PAWD\".equals(proposalmgmt.getProposalstatus())) {\n encline.setAPPAmt(encline.getAPPAmt().subtract(proposalline.getAwardedamount()));\n } else {\n encline.setAPPAmt(encline.getAPPAmt().subtract(proposalline.getLineTotal()));\n }\n OBDal.getInstance().save(encline);\n }\n if (iscancel) {\n // BidManagementDAO.insertEncumbranceModification(encline,\n // proposalline.getLineTotal().negate(), null, \"PRO\", null, null);\n } else {\n proposalline.setEfinBudgmanencumline(null);\n OBDal.getInstance().save(proposalline);\n }\n }\n }\n } else if (baseProposalObj != null) {\n for (EscmProposalmgmtLine lines : prolineList) {\n if (!lines.isSummary()) {\n if (lines.getStatus() == null) {\n EfinBudgetManencumlines encline = lines.getEscmOldProposalline()\n .getEfinBudgmanencumline();\n // if reserved then consider new proposal line total\n BigDecimal amountDiffernce = lines.getEscmOldProposalline().getLineTotal()\n .subtract(lines.getLineTotal());\n\n // update in remaining amount\n EfinBudgetManencumlines encumLn = Utility.getObject(EfinBudgetManencumlines.class,\n encline.getId());\n encumLn.setAPPAmt(encumLn.getAPPAmt().add(amountDiffernce));\n encumLn.setRemainingAmount(encumLn.getRemainingAmount().subtract(amountDiffernce));\n OBDal.getInstance().save(encumLn);\n } else if (lines.getStatus() != null && lines.getEscmOldProposalline() != null\n && lines.getEscmOldProposalline().getStatus() == null) {\n EfinBudgetManencumlines encline = lines.getEscmOldProposalline()\n .getEfinBudgmanencumline();\n // if reserved then consider new proposal line total\n BigDecimal amountDiffernce = lines.getEscmOldProposalline().getLineTotal();\n\n // update in remaining amount\n EfinBudgetManencumlines encumLn = Utility.getObject(EfinBudgetManencumlines.class,\n encline.getId());\n encumLn.setAPPAmt(encumLn.getAPPAmt().add(amountDiffernce));\n encumLn.setRemainingAmount(encumLn.getRemainingAmount().subtract(amountDiffernce));\n OBDal.getInstance().save(encumLn);\n }\n }\n }\n }\n\n } catch (final Exception e) {\n log.error(\"Exception in updateManualEncumAppAmt after Reject : \", e);\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"public void setReferenceLines(java.util.Collection<ReferenceLine> referenceLines) {\n if (referenceLines == null) {\n this.referenceLines = null;\n return;\n }\n\n this.referenceLines = new java.util.ArrayList<ReferenceLine>(referenceLines);\n }",
"public void interestIncrease(){\r\n for (SavingsAccount account : saving){\r\n if (account == null){\r\n break;\r\n }\r\n account.addInterest();\r\n }\r\n }",
"public void setLines(ArrayList<Dialog> lines) {\n\t\tdecoupleGenericLines(lines);\n\t\tDialogueSystem.GLOBAL_DIALOG_LIST.addAll(lines);\n\t}",
"public void setLine1(String line1) {\n this.line1 = line1;\n }",
"public void setLINE_NO(BigDecimal LINE_NO) {\r\n this.LINE_NO = LINE_NO;\r\n }",
"public void setLINE_NO(BigDecimal LINE_NO) {\r\n this.LINE_NO = LINE_NO;\r\n }",
"public void setLINE_NO(BigDecimal LINE_NO) {\r\n this.LINE_NO = LINE_NO;\r\n }",
"public void setLINE_NO(BigDecimal LINE_NO) {\r\n this.LINE_NO = LINE_NO;\r\n }",
"private void addLine()\n\t{\n\t\tlines.add(printerFormatter.markEOL());\n\t}",
"public void file(OrderReceipt r) {\r\n\t\tthis.receiptissued.add(r);\r\n\t}",
"public static void updateAutoEncumbrancechanges(EscmProposalMgmt proposalmgmt, boolean isCancel) {\n try {\n OBContext.setAdminMode();\n BigDecimal amt = BigDecimal.ZERO, amtTemp = BigDecimal.ZERO;\n List<EscmProposalmgmtLine> prolineList = proposalmgmt.getEscmProposalmgmtLineList();\n EscmProposalMgmt baseProposalObj = proposalmgmt.getEscmBaseproposal();\n List<EscmProposalmgmtLine> baseProlineList;\n BigDecimal diff = BigDecimal.ZERO;\n\n // checking with propsal line\n for (EscmProposalmgmtLine proposalline : prolineList) {\n if (!proposalline.isSummary()\n && (proposalline.getStatus() == null || !proposalline.getStatus().equals(\"CL\"))) {\n EfinBudgetManencumlines encline = proposalline.getEfinBudgmanencumline();\n if (isCancel) {\n\n if (encline.getManualEncumbrance().getAppliedAmount().compareTo(BigDecimal.ZERO) == 1) {\n\n if (proposalmgmt.getEscmBaseproposal() == null) {\n\n amt = encline.getAPPAmt().subtract(proposalline.getLineTotal());\n encline.setAPPAmt(amt);\n amtTemp = amtTemp.add(proposalline.getLineTotal());\n if (encline.getManualEncumbrance().getAppliedAmount().subtract(amtTemp)\n .compareTo(BigDecimal.ZERO) == 0 && baseProposalObj == null)\n encline.getManualEncumbrance().setDocumentStatus(\"CA\");\n }\n if (proposalmgmt.getEscmBaseproposal() == null)\n BidManagementDAO.insertEncumbranceModification(encline,\n proposalline.getLineTotal().negate(), null, \"PRO\", null, null);\n } else {\n // This else is for the particular case (proposal->po, po cancel and proposal\n // cancel)\n encline.getManualEncumbrance().setDocumentStatus(\"CA\");\n break;\n }\n\n } else {\n\n if (baseProposalObj == null) {\n if (encline != null) {\n encline.getManualEncumbrance().setDocumentStatus(\"DR\");\n // remove associated proposal line refernce\n if (encline.getEscmProposalmgmtLineEMEfinBudgmanencumlineIDList().size() > 0) {\n for (EscmProposalmgmtLine proLineList : encline\n .getEscmProposalmgmtLineEMEfinBudgmanencumlineIDList()) {\n proLineList.setEfinBudgmanencumline(null);\n OBDal.getInstance().save(proLineList);\n }\n }\n\n OBDal.getInstance().remove(encline);\n }\n }\n }\n /*\n * Trigger changes EfinEncumbarnceRevision.updateBudgetInquiry(encline,\n * encline.getManualEncumbrance(), proposalline.getLineTotal().negate());\n */\n }\n }\n\n // for cancel case if there exist a previous version, then update the encumbrance based on\n // the previous version values (Adding new records in the modification tab based on the new\n // and old proposal)\n if (isCancel) {\n if (baseProposalObj != null) {\n for (EscmProposalmgmtLine newproposalline : prolineList) {\n if (!newproposalline.isSummary()) {\n if (newproposalline.getStatus() == null) {\n EfinBudgetManencumlines encline = newproposalline.getEfinBudgmanencumline();\n diff = newproposalline.getLineTotal()\n .subtract(newproposalline.getEscmOldProposalline() != null\n ? newproposalline.getEscmOldProposalline().getLineTotal()\n : BigDecimal.ZERO);\n if (diff.compareTo(BigDecimal.ZERO) != 0) {\n ProposalManagementActionMethod.insertEncumbranceModification(encline,\n diff.negate(), null, false);\n encline.setAPPAmt(encline.getAPPAmt().add(diff.negate()));\n OBDal.getInstance().save(encline);\n }\n } else if (newproposalline.getStatus() != null\n && newproposalline.getEscmOldProposalline() != null\n && newproposalline.getEscmOldProposalline().getStatus() == null) {\n EfinBudgetManencumlines encline = newproposalline.getEfinBudgmanencumline();\n diff = newproposalline.getEscmOldProposalline() != null\n ? newproposalline.getEscmOldProposalline().getLineTotal()\n : BigDecimal.ZERO;\n if (diff.compareTo(BigDecimal.ZERO) != 0) {\n ProposalManagementActionMethod.insertEncumbranceModification(encline, diff, null,\n false);\n encline.setAPPAmt(encline.getAPPAmt().add(diff));\n OBDal.getInstance().save(encline);\n }\n }\n }\n }\n }\n }\n OBDal.getInstance().flush();\n } catch (final Exception e) {\n log.error(\"Exception in updateManualEncumAppAmt after Reject : \", e);\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"private void addLine()\n{\n BaleElement first = null;\n BaleElement last = null;\n BaleElement eol = null;\n boolean havecmmt = false;\n for (BaleElement ce : line_elements) {\n eol = ce;\n if (!ce.isEmpty() && !ce.isComment()) {\n\t if (first == null) first = ce;\n\t last = ce;\n }\n else if (ce.isComment()) havecmmt = true;\n }\n\n if (first != null && cur_parent.isComment()) cur_parent = cur_parent.getBaleParent();\n if (first == null && !cur_parent.isComment() && !havecmmt) ++num_blank;\n else if (first != null || cur_parent.isComment()) num_blank = 0;\n\n // fix outer parent to ensure it includes this line\n fixOuterParent(first,last,eol);\n\n // Create nodes for block comments\n BaleElement.Branch cpar = null;\n if (first == null) {\n if (!cur_parent.isComment() && (havecmmt || num_blank >= 2)) {\n\t cpar = new BaleElement.BlockCommentNode(for_document,cur_parent);\n\t addElementNode(cpar,num_blank);\n\t cpar.setAstNode(cur_ast);\n\t cpar.setStartTokenState(token_state);\n\t cur_parent = cpar;\n }\n }\n\n if (cpar != null && cur_parent != cpar) {\n BoardLog.logE(\"BALE\",\"UNUSED COMMENT\");\n }\n\n // Add the current line\n BaleElement.Branch lastpar = cur_parent;\n cur_line = new BaleElement.LineNode(for_document,cur_parent);\n cur_line.setAstNode(cur_ast);\n cur_line.setStartTokenState(token_state);\n addElementNode(cur_line,0);\n cur_parent = cur_line;\n\n boolean haveindent = true;\n for (BaleElement ce : line_elements) {\n fixInnerParent(ce);\n ce = fixLeafElement(ce,haveindent);\n haveindent = false;\n addElementNode(ce,0);\n token_state = ce.getEndTokenState();\n }\n\n cur_line.setEndTokenState(token_state);\n cur_parent = lastpar;\n cur_line = null;\n}",
"public interface LaborLedgerExpenseTransferAccountingLine extends AccountingLine, ExternalizableBusinessObject {\n\n /**\n * Gets the emplid\n * \n * @return Returns the emplid.\n */\n public String getEmplid();\n\n /**\n * Gets the laborObject\n * \n * @return Returns the laborObject.\n */\n public LaborLedgerObject getLaborLedgerObject();\n\n /**\n * Gets the payrollEndDateFiscalPeriodCode\n * \n * @return Returns the payrollEndDateFiscalPeriodCode.\n */\n public String getPayrollEndDateFiscalPeriodCode();\n\n /**\n * Gets the payrollEndDateFiscalYear\n * \n * @return Returns the payrollEndDateFiscalYear.\n */\n public Integer getPayrollEndDateFiscalYear();\n\n /**\n * Gets the payrollTotalHours\n * \n * @return Returns the payrollTotalHours.\n */\n public BigDecimal getPayrollTotalHours();\n\n /**\n * Gets the positionNumber\n * \n * @return Returns the positionNumber.\n */\n public String getPositionNumber();\n\n /**\n * Sets the emplid\n * \n * @param emplid The emplid to set.\n */\n public void setEmplid(String emplid);\n\n /**\n * Sets the laborLedgerObject\n * \n * @param laborLedgerObject The laborLedgerObject to set.\n */\n public void setLaborLedgerObject(LaborLedgerObject laborLedgerObject);\n\n /**\n * Sets the payrollEndDateFiscalPeriodCode\n * \n * @param payrollEndDateFiscalPeriodCode The payrollEndDateFiscalPeriodCode to set.\n */\n public void setPayrollEndDateFiscalPeriodCode(String payrollEndDateFiscalPeriodCode);\n\n /**\n * Sets the payrollEndDateFiscalYear\n * \n * @param payrollEndDateFiscalYear The payrollEndDateFiscalYear to set.\n */\n public void setPayrollEndDateFiscalYear(Integer payrollEndDateFiscalYear);\n\n /**\n * Sets the payrollTotalHours\n * \n * @param payrollTotalHours The payrollTotalHours to set.\n */\n public void setPayrollTotalHours(BigDecimal payrollTotalHours);\n\n /**\n * Sets the positionNumber\n * \n * @param positionNumber The positionNumber to set.\n */\n public void setPositionNumber(String positionNumber);\n}",
"@UICallout public void setC_OrderLine_ID (String oldC_OrderLine_ID, \n\t\t\tString newC_OrderLine_ID, int windowNo) throws Exception\n\t{\n\t\tif (newC_OrderLine_ID == null || newC_OrderLine_ID.length() == 0)\n\t\t\treturn;\n\t\tint C_OrderLine_ID = Integer.parseInt(newC_OrderLine_ID);\n\t\tif (C_OrderLine_ID == 0)\n\t\t\treturn;\n\t\tMOrderLine ol = new MOrderLine (getCtx(), C_OrderLine_ID, null);\n\t\tif (ol.get_ID() != 0)\n\t\t{\n\t\t\tsetC_OrderLine_ID(C_OrderLine_ID);\n\t\t\tsetDescription(ol.getDescription());\n\t\t\tBigDecimal MovementQty = ol.getQtyOrdered().subtract(ol.getQtyDelivered());\n\t\t\tsetMovementQty(MovementQty);\n\t\t\tsetOrderLine(ol, 0, MovementQty);\n\t\t\tBigDecimal QtyEntered = MovementQty;\n\t\t\tif (ol.getQtyEntered().compareTo(ol.getQtyOrdered()) != 0)\n\t\t\t\tQtyEntered = QtyEntered.multiply(ol.getQtyEntered())\n\t\t\t\t\t.divide(ol.getQtyOrdered(), 12, BigDecimal.ROUND_HALF_UP);\n\t\t\tsetQtyEntered(QtyEntered);\n\t\t\t\n\t\t\tif(ol.getParent().isReturnTrx())\n\t\t\t{\n\t\t\t\tMInOutLine ioLine = new MInOutLine (getCtx(), ol.getOrig_InOutLine_ID(), null);\t\n\t\t\t\tsetM_Locator_ID(ioLine.getM_Locator_ID());\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public void set(String path) throws FileNotFoundException {\n counterSeveralLines = linesAfter;\n arrayPreviousLines = new String[prevSize];\n currentPath = path;\n fileReader = new FileReader(currentPath);\n bufferReader = new BufferedReader(fileReader);\n resetDateBefore();\n }",
"@Override\r\n\tpublic boolean reverseCorrectIt() {\n\t\t\r\n\tMClient client = new MClient(Env.getCtx(), getAD_Client_ID(), get_TrxName());\r\n\t\t\r\n\t\tMCHesLine hline = null;\r\n\t\tfor (int i=0; i < getLines().length; i++){\r\n\t\t\thline = m_lines[i];\r\n\t\t\tMCPreInvoiceLineG lg = new MCPreInvoiceLineG (Env.getCtx(), hline.getC_PreInvoiceLineG_ID(),get_TrxName());\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (getC_Currency_ID()==client.getC_Currency_ID()) \r\n\t\t\t\tlg.setQtyHes_Veb(lg.getQtyHes_Veb().subtract(hline.getQty()));\r\n\t\t\telse \r\n\t\t\t\tlg.setQtyHes_Usd(lg.getQtyHes_Usd().subtract(hline.getQty()));\r\n\t\t\t\r\n\t\t\tlg.save();\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"public void setLBR_DocLine_ICMS_ID (int LBR_DocLine_ICMS_ID);",
"protected void setLineTaxInformation(JSONObject lineJson) throws JSONException {\n final JSONObject taxes = lineJson.getJSONObject(\"taxLines\");\n final JSONArray names = taxes.names();\n BigDecimal totalTax = BigDecimal.ZERO;\n for (int i = 0; i < names.length(); i++) {\n final String name = names.getString(i);\n final JSONObject taxInfo = taxes.getJSONObject(name);\n if (i == 0) {\n lineJson.put(\"tax\", name);\n }\n if (!lineJson.has(\"lineRate\") && taxInfo.has(\"rate\")) {\n lineJson.put(\"lineRate\", (double) ((100.0 + taxInfo.getInt(\"rate\")) / 100.0));\n }\n totalTax = totalTax.add(new BigDecimal(taxInfo.getDouble(\"amount\")));\n }\n if (!lineJson.has(\"taxAmount\")) {\n lineJson.put(\"taxAmount\", totalTax.doubleValue());\n }\n }",
"public void setInvoice(rules.engine.example.SalaryInvoice _invoice)\n {\n invoice = _invoice;\n }",
"public void setLBR_DocLine_ICMS_UU (String LBR_DocLine_ICMS_UU);",
"public void attrito(){\n yCord[0]+=4;\n yCord[1]+=4;\n yCord[2]+=4;\n //e riaggiorna i propulsori (che siano attivati o no) ricalcolandoli sulla base delle coordinate dell'astronave, cambiate\n aggiornaPropulsori();\n \n }",
"private void addTermsOfLoanAgreement() throws DocumentException {\n paragraph = new Paragraph(CommonString.getTermsOfAgreement(isSwedish), SECTION_TITLE_FONT);\n\n addEmptyLine(paragraph, 1);\n paragraph.add(new Paragraph(CommonString.getLoanPolicy(isSwedish), TEXT_FONT));\n paragraph.add(new Paragraph(CommonString.getPrimaryBorrowerAgreement(isSwedish), TEXT_FONT));\n addEmptyLine(paragraph, 1);\n\n document.add(paragraph);\n adminDocument.add(paragraph);\n }",
"public Proof(boolean equivalence, Declarations decls, List<Line> lines) {\n this.equivalence = equivalence;\n this.decls = decls.freeze();\n this.lines = Collections.unmodifiableList(lines);\n }",
"public void setOutline(RMXString.Outline anOutline) { }",
"@Override\n\tpublic void updateAgence(Agence a) {\n\t\t\n\t}",
"public void advance() {\n\n if (length == Length.DAILY) {\n startDate.add(Calendar.DATE, 1);\n } else if (length == Length.WEEKLY) {\n startDate.add(Calendar.WEEK_OF_YEAR, 1);\n } else if (length == Length.BIWEEKLY) {\n startDate.add(Calendar.DATE, 14);\n } else if (length == Length.MONTHLY) {\n startDate.add(Calendar.MONTH, 1);\n } else if (length == Length.YEARLY) {\n startDate.add(Calendar.YEAR, 1);\n }\n\n calculateEndDate();\n\n }",
"public void resetLines() throws IOException {\n counterSeveralLines = linesAfter;\n if (currentPath != null) {\n bufferReader.close();\n fileReader.close();\n fileReader = new FileReader(currentPath);\n bufferReader = new BufferedReader(fileReader);\n arrayPreviousLines = new String[prevSize];\n resetDateBefore();\n }\n }",
"public void processInternalBilling(ReturnDocument rdoc) {\r\n\r\n if (ObjectUtils.isNull(rdoc.getOrderDocument())\r\n || !this.returnOrderBillingDao.hasAccountsForBilling(rdoc.getDocumentNumber()))\r\n return;\r\n\r\n String docNumber = rdoc.getDocumentNumber();\r\n\r\n String warehouseCode = rdoc.getOrderDocument().getWarehouseCd();\r\n\r\n Map<String, List<FinancialInternalBillingItem>> returnedOrderLines = this.returnOrderBillingDao\r\n .getReturnedOrderLines(docNumber);\r\n Set<String> keys = returnedOrderLines.keySet();\r\n Map<String, List<FinancialAccountingLine>> returnedAccountingLines = getReturnBillingAccountingLines(rdoc);\r\n Warehouse warehouse = rdoc.getOrderDocument().getWarehouse();\r\n\r\n if (warehouse == null)\r\n warehouse = StoresPersistableBusinessObject.getObjectByPrimaryKey(Warehouse.class,\r\n warehouseCode);\r\n\r\n for (String key : keys) {\r\n List<FinancialInternalBillingItem> lineItems = returnedOrderLines.get(key);\r\n List<FinancialAccountingLine> acctLines = returnedAccountingLines.get(key);\r\n if (warehouse != null && warehouse.isActive()) {\r\n FinancialCapitalAssetInformation capitalAssetInformation = null;\r\n String astInfoId = null;\r\n if (key.contains(\"-\") && (astInfoId = key.split(\"-\")[1]) != null) {\r\n capitalAssetInformation = new FinancialCapitalAssetInformation();\r\n MMCapitalAssetInformation assetInfo = SpringContext.getBean(\r\n BusinessObjectService.class).findBySinglePrimaryKey(\r\n MMCapitalAssetInformation.class, astInfoId);\r\n if (assetInfo != null) {\r\n adapt(assetInfo, capitalAssetInformation);\r\n List<MMCapitalAssetInformationDetail> assetInformationDetails = assetInfo\r\n .getCapitalAssetInformationDetails();\r\n if (assetInformationDetails != null) {\r\n for (MMCapitalAssetInformationDetail source : assetInformationDetails) {\r\n FinancialCapitalAssetInformationDetail target = new FinancialCapitalAssetInformationDetail();\r\n adapt(source, target);\r\n capitalAssetInformation.getCapitalAssetInformationDetails().add(\r\n target);\r\n }\r\n }\r\n }\r\n }\r\n DocumentHeader ibDocHeader = processInternalBilling(warehouse, lineItems,\r\n acctLines, capitalAssetInformation);\r\n if (ibDocHeader != null) {\r\n String ibDocNumber = ibDocHeader.getDocumentNumber();\r\n if (astInfoId != null) {\r\n for (ReturnDetail detail : rdoc.getReturnDetails()) {\r\n if (detail.getOrderDetailId().toString().equals(astInfoId)) {\r\n detail.setCreditDocumentNumber(ibDocNumber);\r\n }\r\n }\r\n }\r\n else {\r\n for (ReturnDetail detail : rdoc.getReturnDetails()) {\r\n detail.setCreditDocumentNumber(ibDocNumber);\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n // LOG error here\r\n LOG.warn(\"Warehouse \" + lineItems.get(0).getWarehouseCode()\r\n + \" is not valid, so batch did not post charges to the depts\");\r\n }\r\n }\r\n\r\n }",
"public void setLBR_DocLine_Details_ID (int LBR_DocLine_Details_ID);",
"public void setAgreement(Agreement agreement) {\n\t\tthis.agreement = agreement;\n\t}",
"@SuppressWarnings({ \"unused\", \"resource\" })\n public JSONObject selectLines(VariablesSecureApp vars, String fromDate, String InitialBalance,\n String YearInitialBal, String strClientId, String accountId, String BpartnerId,\n String productId, String projectId, String DeptId, String BudgetTypeId, String FunclassId,\n String User1Id, String User2Id, String AcctschemaId, String strOrgFamily, String ClientId,\n String OrgId, String DateTo, String strAccountFromValue, String strAccountToValue,\n String strStrDateFC, String FrmPerStDate, String uniqueCode, String inpcElementValueIdFrom) {\n File file = null;\n String sqlQuery = \"\", sqlQuery1 = \"\", tempUniqCode = \"\", date = \"\", groupClause = \"\",\n tempStartDate = \"\", periodId = \"\";\n BigDecimal initialDr = new BigDecimal(0);\n BigDecimal initialCr = new BigDecimal(0);\n BigDecimal initialNet = new BigDecimal(0);\n PreparedStatement st = null;\n ResultSet rs = null;\n String RoleId = vars.getRole();\n List<GLJournalApprovalVO> list = null;\n JSONObject obj = null;\n int count = 0;\n JSONObject result = new JSONObject();\n JSONArray array = new JSONArray();\n JSONArray arr = null;\n String listofuniquecode = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n\n sqlQuery = \"select a.id,a.c_period_id as periodid,a.periodno,to_char(a.startdate,'dd-MM-yyyy') as startdate ,a.name ,ev.accounttype as type,COALESCE(A.EM_EFIN_UNIQUECODE,ev.value) as account_id, ev.name, a.EM_EFIN_UNIQUECODE as uniquecode,a.defaultdep, a.depart,ev.value as account ,\"\n + \" replace(a.EM_EFIN_UNIQUECODE,'-'||a.depart||'-','-'||a.defaultdep||'-') as replaceacct, \"\n + \" sum(initalamtdr)as initalamtdr, sum(intialamtcr)as intialamtcr , sum(a.initialnet )as SALDO_INICIAL,sum( a.amtacctcr) as amtacctcr, sum(a.amtacctdr) as amtacctdr, sum(A.AMTACCTDR)-sum(A.AMTACCTCR) AS SALDO_FINAL ,\"\n + \" sum(initalamtdr)+sum( a.amtacctdr) as finaldr, sum(a.intialamtcr)+sum( a.amtacctcr) as finalcr , sum(a.initialnet)+sum(A.AMTACCTDR)-sum(A.AMTACCTCR) as finalnet \"\n + \" from( SELECT per.startdate,per.name ,per.periodno ,(case when (DATEACCT < TO_DATE(?) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?)) then F.AMTACCTDR else 0 end) as initalamtdr, \"\n + \"(case when (DATEACCT < TO_DATE(?) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?)) then F.AMTACCTCR else 0 end) as intialamtcr, \"\n + \" (case when (DATEACCT < TO_DATE(?) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?)) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialnet, \"\n + \" (case when (DATEACCT >= TO_DATE(?) AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?) then F.AMTACCTDR else 0 end) as AMTACCTDR, \"\n + \" (case when (DATEACCT >= TO_DATE(?) AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?) then F.AMTACCTCR else 0 end) as AMTACCTCR, \"\n + \" F.ACCOUNT_ID AS ID,F.EM_EFIN_UNIQUECODE,reg.value as depart,f.c_period_id , \"\n + \" (select REG.value from c_salesregion REG where REG.isdefault='Y' \";\n\n if (strClientId != null)\n sqlQuery += \"AND REG.AD_CLIENT_ID IN \" + strClientId;\n sqlQuery += \") as defaultdep \" + \" FROM FACT_ACCT F \"\n + \" left join (select name,periodno,startdate,c_period_id from c_period ) per on per.c_period_id=f.c_period_id left join c_salesregion reg on reg.c_salesregion_id= f.c_salesregion_id where 1=1 \";\n if (strOrgFamily != null)\n sqlQuery += \"AND F.AD_ORG_ID IN (\" + strOrgFamily + \")\";\n if (ClientId != null)\n sqlQuery += \"AND F.AD_CLIENT_ID IN (\" + ClientId + \")\";\n if (ClientId != null)\n sqlQuery += \"AND F.AD_ORG_ID IN (\" + OrgId + \")\";\n // sqlQuery += \" AND DATEACCT > TO_DATE(?) AND DATEACCT < TO_DATE(?) AND 1=1 \";\n sqlQuery += \" AND DATEACCT >= TO_DATE(?) AND DATEACCT < TO_DATE(?) AND 1=1 \";\n if (accountId != null)\n sqlQuery += \"AND F.account_ID='\" + accountId + \"'\";\n if (BpartnerId != null)\n sqlQuery += \"AND F.C_BPARTNER_ID IN (\" + BpartnerId.replaceFirst(\",\", \"\") + \")\";\n if (productId != null)\n sqlQuery += \"AND F.M_PRODUCT_ID IN \" + productId;\n if (projectId != null)\n sqlQuery += \"AND F.C_PROJECT_ID IN (\" + projectId.replaceFirst(\",\", \"\") + \")\";\n if (DeptId != null)\n sqlQuery += \"AND F.C_SALESREGION_ID IN (\" + DeptId.replaceFirst(\",\", \"\") + \")\";\n if (BudgetTypeId != null)\n sqlQuery += \"AND coalesce(F.C_CAMPAIGN_ID, (select c.C_CAMPAIGN_ID from C_CAMPAIGN c where em_efin_iscarryforward = 'N' and ad_client_id = F.ad_client_id limit 1))='\"\n + BudgetTypeId + \"'\";\n if (FunclassId != null)\n sqlQuery += \"AND F.C_ACTIVITY_ID IN (\" + FunclassId.replaceFirst(\",\", \"\") + \")\";\n if (User1Id != null)\n sqlQuery += \"AND F.USER1_ID IN (\" + User1Id.replaceFirst(\",\", \"\") + \")\";\n if (User2Id != null)\n sqlQuery += \"AND F.USER2_ID IN (\" + User2Id.replaceFirst(\",\", \"\") + \")\";\n if (AcctschemaId != null)\n sqlQuery += \"AND F.C_ACCTSCHEMA_ID ='\" + AcctschemaId + \"'\";\n if (uniqueCode != null)\n sqlQuery += \"\t\tAND (F.EM_EFIN_UNIQUECODE = '\" + uniqueCode + \"' or F.acctvalue='\"\n + uniqueCode + \"')\";\n\n sqlQuery += \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \";\n\n sqlQuery += \" AND F.ISACTIVE='Y' \" + \" ) a, c_elementvalue ev \"\n + \" where a.id = ev.c_elementvalue_id and ev.elementlevel = 'S' \";\n if (strAccountFromValue != null)\n sqlQuery += \"\t\tAND EV.VALUE >= '\" + strAccountFromValue + \"'\";\n if (strAccountToValue != null)\n sqlQuery += \"\t\tAND EV.VALUE <= '\" + strAccountToValue + \"'\";\n\n sqlQuery += \" \";\n\n sqlQuery += \" and (a.initialnet <>0 or a.amtacctcr <>0 or a.amtacctdr<>0) group by a.c_period_id,a.name,ev.accounttype, a.startdate , a.id ,a.periodno, A.EM_EFIN_UNIQUECODE,ev.value,ev.name,a.defaultdep,a.depart \"\n + \" order by uniquecode,a.startdate, account_id ,ev.value, ev.name, id \";\n\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, fromDate);\n st.setString(2, fromDate);\n st.setString(3, InitialBalance);\n st.setString(4, fromDate);\n st.setString(5, fromDate);\n st.setString(6, InitialBalance);\n st.setString(7, fromDate);\n st.setString(8, fromDate);\n st.setString(9, InitialBalance);\n st.setString(10, fromDate);\n st.setString(11, fromDate);\n st.setString(12, YearInitialBal);\n st.setString(13, fromDate);\n st.setString(14, fromDate);\n st.setString(15, YearInitialBal);\n st.setString(16, fromDate);\n st.setString(17, DateTo);\n // st.setString(16, DateTo);\n log4j.debug(\"ReportTrialBalancePTD:\" + st.toString());\n rs = st.executeQuery();\n // Particular Date Range if we get record then need to form the JSONObject\n while (rs.next()) {\n // Group UniqueCode Wise Transaction\n // if same uniquecode then Group the transaction under the uniquecode\n if (tempUniqCode.equals(rs.getString(\"uniquecode\"))) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n if (rs.getInt(\"periodno\") == 1\n && (rs.getString(\"type\").equals(\"E\") || rs.getString(\"type\").equals(\"R\"))) {\n initialDr = new BigDecimal(0);\n initialCr = new BigDecimal(0);\n initialNet = new BigDecimal(0);\n FrmPerStDate = getPedStrEndDate(OrgId, ClientId, rs.getString(\"periodid\"), null);\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n } else {\n if (rs.getInt(\"periodno\") > 1) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, rs.getString(\"periodid\"));\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"account_id\"),\n rs.getString(\"startdate\"), FrmPerStDate, strStrDateFC, rs.getString(\"type\"), 2,\n RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO vo = initial.get(0);\n initialDr = vo.getInitDr();\n initialCr = vo.getInitCr();\n initialNet = vo.getInitNet();\n }\n }\n tra.put(\"startdate\", rs.getString(\"name\"));\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(rs.getString(\"startdate\"))));\n tra.put(\"perDr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctdr\")));\n tra.put(\"perCr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctcr\")));\n tra.put(\"finalpernet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"SALDO_FINAL\")));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctdr\").add(initialDr))));\n tra.put(\"finalcr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctcr\").add(initialCr))));\n tra.put(\"finalnet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"SALDO_FINAL\").add(initialNet))));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", rs.getString(\"periodid\"));\n tra.put(\"type\", \"1\");\n arr.put(tra);\n\n }\n // if different uniquecode then form new Uniquecode JsonObject\n else {\n if (listofuniquecode == null)\n listofuniquecode = \"'\" + rs.getString(\"uniquecode\") + \"'\";\n else\n listofuniquecode += \",'\" + rs.getString(\"uniquecode\") + \"'\";\n obj = new JSONObject();\n obj.put(\"uniquecode\", (rs.getString(\"uniquecode\") == null ? rs.getString(\"account\")\n : rs.getString(\"uniquecode\")));\n obj.put(\"accountId\", (rs.getString(\"id\") == null ? \"\" : rs.getString(\"id\")));\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n if (rs.getInt(\"periodno\") == 1\n && (rs.getString(\"type\").equals(\"E\") || rs.getString(\"type\").equals(\"R\"))) {\n initialDr = new BigDecimal(0);\n initialCr = new BigDecimal(0);\n initialNet = new BigDecimal(0);\n FrmPerStDate = getPedStrEndDate(OrgId, ClientId, rs.getString(\"periodid\"), null);\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n } else {\n if (rs.getInt(\"periodno\") > 1) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, rs.getString(\"periodid\"));\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"account_id\"),\n rs.getString(\"startdate\"), FrmPerStDate, strStrDateFC, rs.getString(\"type\"), 1,\n RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO vo = initial.get(0);\n initialDr = vo.getInitDr();\n initialCr = vo.getInitCr();\n initialNet = vo.getInitNet();\n }\n }\n tra.put(\"startdate\", rs.getString(\"name\"));\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(rs.getString(\"startdate\"))));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"perDr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctdr\")));\n tra.put(\"perCr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctcr\")));\n tra.put(\"finalpernet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"SALDO_FINAL\")));\n tra.put(\"finaldr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctdr\").add(initialDr))));\n tra.put(\"finalcr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctcr\").add(initialCr))));\n tra.put(\"finalnet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"SALDO_FINAL\").add(initialNet))));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", rs.getString(\"periodid\"));\n /*\n * if((initialDr.compareTo(new BigDecimal(0)) > 0) || (initialCr.compareTo(new\n * BigDecimal(0)) > 0) || (initialNet.compareTo(new BigDecimal(0)) > 0)) { tra.put(\"type\",\n * \"1\"); } else\n */\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = rs.getString(\"uniquecode\");\n }\n\n result.put(\"list\", array);\n }\n log4j.debug(\"has lsit:\" + result.has(\"list\"));\n if (result.has(\"list\")) {\n JSONArray finalres = result.getJSONArray(\"list\");\n JSONObject json = null, json1 = null, json2 = null;\n log4j.debug(\"json.length:\" + finalres.length());\n for (int i = 0; i < finalres.length(); i++) {\n json = finalres.getJSONObject(i);\n log4j.debug(\"json.getString:\" + json.getString(\"uniquecode\"));\n if (json.getString(\"uniquecode\") != null) {\n String UniqueCode = json.getString(\"uniquecode\");\n String acctId = json.getString(\"accountId\");\n ElementValue type = OBDal.getInstance().get(ElementValue.class, acctId);\n JSONArray transaction = json.getJSONArray(\"transaction\");\n List<GLJournalApprovalVO> period = getAllPeriod(ClientId, fromDate, DateTo);\n List<String> periodIds = new ArrayList<String>(), tempPeriods = new ArrayList<String>();\n\n for (GLJournalApprovalVO vo : period) {\n periodIds.add(vo.getId());\n }\n\n tempPeriods = periodIds;\n\n for (int j = 0; j < transaction.length(); j++) {\n json1 = transaction.getJSONObject(j);\n periodId = json1.getString(\"periodid\");\n tempPeriods.remove(periodId);\n }\n log4j.debug(\"size:\" + tempPeriods.size());\n if (tempPeriods.size() > 0) {\n log4j.debug(\"jtempPeriods:\" + tempPeriods);\n count = 0;\n for (String missingPeriods : tempPeriods) {\n json2 = new JSONObject();\n json2.put(\"startdate\", Utility.getObject(Period.class, missingPeriods).getName());\n Date startdate = Utility.getObject(Period.class, missingPeriods).getStartingDate();\n json2.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\").format(startdate));\n json2.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"id\", acctId);\n json2.put(\"periodid\", missingPeriods);\n Long periodNo = Utility.getObject(Period.class, missingPeriods).getPeriodNo();\n if (new BigDecimal(periodNo).compareTo(new BigDecimal(1)) == 0\n && (type.getAccountType().equals(\"E\") || type.getAccountType().equals(\"R\"))) {\n json2.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"type\", \"1\");\n\n /*\n * count++; if(count > 0) { FrmPerStDate = getPedStrEndDate(OrgId, ClientId,\n * missingPeriods, null); FrmPerStDate = new\n * SimpleDateFormat(\"dd-MM-yyyy\").format(new\n * SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate)); }\n */\n\n } else {\n // Get the Last Opening and closing Balance Entry Date\n // If closing and opening is not happened then assign financial year start date\n Boolean isThereOpeningBeforeThePeriod = false;\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, missingPeriods);\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n isThereOpeningBeforeThePeriod = true;\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n\n FrmPerStDate = getPedStrEndDate(OrgId, ClientId, missingPeriods, null);\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n List<GLJournalApprovalVO> initial = selectInitialBal(UniqueCode,\n new SimpleDateFormat(\"dd-MM-yyyy\").format(startdate), FrmPerStDate,\n strStrDateFC, type.getAccountType(), 2, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO vo = initial.get(0);\n json2.put(\"initialDr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, (vo.getInitDr())));\n json2.put(\"initialCr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, (vo.getInitCr())));\n json2.put(\"initialNet\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, (vo.getInitNet())));\n if (((vo.getInitDr().compareTo(new BigDecimal(0)) > 0)\n || (vo.getInitCr().compareTo(new BigDecimal(0)) > 0)\n || (vo.getInitNet().compareTo(new BigDecimal(0)) > 0))\n || isThereOpeningBeforeThePeriod) {\n json2.put(\"type\", \"1\");\n } else\n json2.put(\"type\", \"0\");\n\n json2.put(\"finaldr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, new BigDecimal(0).add(vo.getInitDr())));\n json2.put(\"finalcr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, new BigDecimal(0).add(vo.getInitCr())));\n json2.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n new BigDecimal(0).add(vo.getInitNet())));\n\n }\n }\n\n transaction.put(json2);\n }\n }\n\n json.put(\"transaction\", transaction);\n }\n\n }\n log4j.debug(\"LIST:\" + list);\n log4j.debug(\"Acct PTD listofuniquecode:\" + listofuniquecode);\n\n List<GLJournalApprovalVO> period = getAllPeriod(ClientId, fromDate, DateTo);\n String tempYear = null;\n sqlQuery1 = \" select a.uniquecode,a.id from( select distinct coalesce(em_efin_uniquecode,acctvalue) as uniquecode ,f.account_id as id from fact_acct f where 1=1 \";\n if (strOrgFamily != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + strOrgFamily + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_CLIENT_ID IN (\" + ClientId + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + OrgId + \")\";\n sqlQuery1 += \" AND DATEACCT < TO_DATE(?) AND 1=1 \";\n if (accountId != null)\n sqlQuery1 += \"AND F.account_ID='\" + accountId + \"'\";\n if (BpartnerId != null)\n sqlQuery1 += \"AND F.C_BPARTNER_ID IN (\" + BpartnerId.replaceFirst(\",\", \"\") + \")\";\n if (productId != null)\n sqlQuery1 += \"AND F.M_PRODUCT_ID IN (\" + productId.replaceFirst(\",\", \"\") + \")\";\n if (projectId != null)\n sqlQuery1 += \"AND F.C_PROJECT_ID IN (\" + projectId.replaceFirst(\",\", \"\") + \")\";\n if (DeptId != null)\n sqlQuery1 += \"AND F.C_SALESREGION_ID IN (\" + DeptId.replaceFirst(\",\", \"\") + \")\";\n if (BudgetTypeId != null)\n sqlQuery1 += \"AND coalesce(F.C_CAMPAIGN_ID, (select c.C_CAMPAIGN_ID from C_CAMPAIGN c where em_efin_iscarryforward = 'N' and ad_client_id = F.ad_client_id limit 1))='\"\n + BudgetTypeId + \"'\";\n if (FunclassId != null)\n sqlQuery1 += \"AND F.C_ACTIVITY_ID IN (\" + FunclassId.replaceFirst(\",\", \"\") + \")\";\n if (User1Id != null)\n sqlQuery1 += \"AND F.USER1_ID IN (\" + User1Id.replaceFirst(\",\", \"\") + \")\";\n if (User2Id != null)\n sqlQuery1 += \"AND F.USER2_ID IN (\" + User2Id.replaceFirst(\",\", \"\") + \")\";\n if (AcctschemaId != null)\n sqlQuery1 += \"AND F.C_ACCTSCHEMA_ID ='\" + AcctschemaId + \"'\";\n\n if (uniqueCode != null)\n sqlQuery1 += \" AND (F.EM_EFIN_UNIQUECODE = '\" + uniqueCode\n + \"' or F.acctvalue='\" + uniqueCode + \"')\";\n if (listofuniquecode != null)\n sqlQuery1 += \" AND F.EM_EFIN_UNIQUECODE not in ( \" + listofuniquecode + \")\";\n sqlQuery1 += \" AND F.ISACTIVE='Y' \" + \" ) a, c_elementvalue ev \"\n + \" where a.id = ev.c_elementvalue_id and ev.elementlevel = 'S' \";\n if (strAccountFromValue != null)\n sqlQuery1 += \" AND EV.VALUE >= '\" + strAccountFromValue + \"'\";\n if (strAccountToValue != null)\n sqlQuery1 += \" AND EV.VALUE <= '\" + strAccountToValue + \"'\";\n st = conn.prepareStatement(sqlQuery1);\n st.setString(1, DateTo);\n log4j.debug(\"Acct PTD afterlist:\" + st.toString());\n rs = st.executeQuery();\n while (rs.next()) {\n ElementValue type = OBDal.getInstance().get(ElementValue.class, rs.getString(\"id\"));\n for (GLJournalApprovalVO vo : period) {\n\n if (tempYear != null) {\n if (!tempYear.equals(vo.getStartdate().split(\"-\")[2])) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n } else {\n tempYear = vo.getStartdate().split(\"-\")[2];\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, vo.getId());\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"uniquecode\"),\n vo.getStartdate(), FrmPerStDate, strStrDateFC, type.getAccountType(), 1, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO VO = initial.get(0);\n initialDr = VO.getInitDr();\n initialCr = VO.getInitCr();\n initialNet = VO.getInitNet();\n\n }\n if (tempUniqCode.equals(rs.getString(\"uniquecode\"))) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n } else {\n obj = new JSONObject();\n obj.put(\"uniquecode\", rs.getString(\"uniquecode\"));\n obj.put(\"accountId\", rs.getString(\"id\"));\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = rs.getString(\"uniquecode\");\n }\n }\n\n }\n }\n // Transaction not exists for the period\n else if (!result.has(\"list\")) {\n\n List<GLJournalApprovalVO> period = getAllPeriod(ClientId, fromDate, DateTo);\n String tempYear = null;\n\n if (uniqueCode != null) {\n ElementValue type = OBDal.getInstance().get(ElementValue.class, inpcElementValueIdFrom);\n for (GLJournalApprovalVO vo : period) {\n\n if (tempYear != null) {\n if (!tempYear.equals(vo.getStartdate().split(\"-\")[2])) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n } else {\n tempYear = vo.getStartdate().split(\"-\")[2];\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, vo.getId());\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n\n List<GLJournalApprovalVO> initial = selectInitialBal(uniqueCode, vo.getStartdate(),\n FrmPerStDate, strStrDateFC, type.getAccountType(), 1, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO VO = initial.get(0);\n initialDr = VO.getInitDr();\n initialCr = VO.getInitCr();\n initialNet = VO.getInitNet();\n\n }\n if (tempUniqCode.equals(uniqueCode)) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n } else {\n obj = new JSONObject();\n obj.put(\"uniquecode\", uniqueCode);\n obj.put(\"accountId\", accountId);\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = uniqueCode;\n }\n }\n result.put(\"list\", array);\n } else {\n\n sqlQuery1 = \" select a.uniquecode,a.id from( select distinct coalesce(em_efin_uniquecode,acctvalue) as uniquecode ,f.account_id as id from fact_acct f where 1=1 \";\n if (strOrgFamily != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + strOrgFamily + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_CLIENT_ID IN (\" + ClientId + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + OrgId + \")\";\n sqlQuery1 += \" AND DATEACCT < TO_DATE(?) AND 1=1 \";\n if (accountId != null)\n sqlQuery1 += \"AND F.account_ID='\" + accountId + \"'\";\n if (BpartnerId != null)\n sqlQuery1 += \"AND F.C_BPARTNER_ID IN (\" + BpartnerId.replaceFirst(\",\", \"\") + \")\";\n if (productId != null)\n sqlQuery1 += \"AND F.M_PRODUCT_ID IN \" + productId;\n if (projectId != null)\n sqlQuery1 += \"AND F.C_PROJECT_ID IN (\" + projectId.replaceFirst(\",\", \"\") + \")\";\n if (DeptId != null)\n sqlQuery1 += \"AND F.C_SALESREGION_ID IN (\" + DeptId.replaceFirst(\",\", \"\") + \")\";\n if (BudgetTypeId != null)\n sqlQuery1 += \"AND coalesce(F.C_CAMPAIGN_ID, (select c.C_CAMPAIGN_ID from C_CAMPAIGN c where em_efin_iscarryforward = 'N' and ad_client_id = F.ad_client_id limit 1))='\"\n + BudgetTypeId + \"'\";\n if (FunclassId != null)\n sqlQuery1 += \"AND F.C_ACTIVITY_ID IN (\" + FunclassId.replaceFirst(\",\", \"\") + \")\";\n if (User1Id != null)\n sqlQuery1 += \"AND F.USER1_ID IN (\" + User1Id.replaceFirst(\",\", \"\") + \")\";\n if (User2Id != null)\n sqlQuery1 += \"AND F.USER2_ID IN (\" + User2Id.replaceFirst(\",\", \"\") + \")\";\n if (AcctschemaId != null)\n sqlQuery1 += \"AND F.C_ACCTSCHEMA_ID ='\" + AcctschemaId + \"'\";\n if (uniqueCode != null)\n sqlQuery1 += \"\t\tAND (F.EM_EFIN_UNIQUECODE = '\" + uniqueCode\n + \"' or F.acctvalue='\" + uniqueCode + \"')\";\n sqlQuery1 += \" AND F.ISACTIVE='Y' \" + \" ) a, c_elementvalue ev \"\n + \" where a.id = ev.c_elementvalue_id and ev.elementlevel = 'S' \";\n if (strAccountFromValue != null)\n sqlQuery1 += \"\t\tAND EV.VALUE >= '\" + strAccountFromValue + \"'\";\n if (strAccountToValue != null)\n sqlQuery1 += \"\t\tAND EV.VALUE <= '\" + strAccountToValue + \"'\";\n st = conn.prepareStatement(sqlQuery1);\n st.setString(1, DateTo);\n log4j.debug(\"Acct PTD:\" + st.toString());\n rs = st.executeQuery();\n while (rs.next()) {\n ElementValue type = OBDal.getInstance().get(ElementValue.class, rs.getString(\"id\"));\n for (GLJournalApprovalVO vo : period) {\n\n if (tempYear != null) {\n if (!tempYear.equals(vo.getStartdate().split(\"-\")[2])) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n } else {\n tempYear = vo.getStartdate().split(\"-\")[2];\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, vo.getId());\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"uniquecode\"),\n vo.getStartdate(), FrmPerStDate, strStrDateFC, type.getAccountType(), 1, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO VO = initial.get(0);\n initialDr = VO.getInitDr();\n initialCr = VO.getInitCr();\n initialNet = VO.getInitNet();\n\n }\n if (tempUniqCode.equals(rs.getString(\"uniquecode\"))) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n } else {\n obj = new JSONObject();\n obj.put(\"uniquecode\", rs.getString(\"uniquecode\"));\n obj.put(\"accountId\", rs.getString(\"id\"));\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = rs.getString(\"uniquecode\");\n }\n }\n result.put(\"list\", array);\n }\n }\n }\n\n } catch (Exception e) {\n log4j.error(\"Exception Creating Excel Sheet\", e);\n }\n return result;\n\n }",
"@Override\n public void toCopy() throws WorkflowException {\n super.toCopy();\n travelAdvancesForTrip = null;\n setTravelDocumentIdentifier(null);\n if (!(this instanceof TravelAuthorizationCloseDocument)) { // TAC's don't have advances\n initiateAdvancePaymentAndLines();\n }\n }",
"public void setAccounts(List<B2bInvoiceAccount> accounts) {\r\n this.accounts = accounts;\r\n }",
"public void setCredits(double credits) {\n this.credits = credits;\n }",
"public final void nextRow() {\n this.line++;\n }",
"public void setLineNo(int lineNo)\n\t{\n\t\tsetIntColumn(lineNo, OFF_LINE_NO, LEN_LINE_NO);\n\t}",
"public void setAttendnanceRow(int rowCount){\r\n\t\tattendanceRowCount = rowCount;\r\n\t}",
"public void updateAccountingSystem(Sale sale)\n {\n \n }"
]
| [
"0.68379116",
"0.676574",
"0.58858925",
"0.5821463",
"0.57380396",
"0.57251793",
"0.56545055",
"0.55325675",
"0.52212167",
"0.5104315",
"0.50526434",
"0.5045079",
"0.499079",
"0.49454814",
"0.4940457",
"0.4935854",
"0.4930716",
"0.49042824",
"0.48971114",
"0.48629403",
"0.48619556",
"0.48294452",
"0.4815522",
"0.4800109",
"0.4745684",
"0.4742109",
"0.4723071",
"0.47191632",
"0.4684324",
"0.46763486",
"0.46666682",
"0.46635538",
"0.46511263",
"0.4645491",
"0.4637584",
"0.46341386",
"0.4629464",
"0.46252954",
"0.46201926",
"0.46009743",
"0.45811865",
"0.45807865",
"0.4562964",
"0.45592782",
"0.45573592",
"0.45564258",
"0.4544082",
"0.45404312",
"0.4525377",
"0.45215932",
"0.45215294",
"0.45161027",
"0.45122942",
"0.45037016",
"0.44948995",
"0.44937482",
"0.44875798",
"0.44740173",
"0.44740105",
"0.44726",
"0.44721693",
"0.4458269",
"0.44527617",
"0.44473034",
"0.44444862",
"0.44371718",
"0.44340292",
"0.44340292",
"0.44340292",
"0.44340292",
"0.44303787",
"0.44287115",
"0.44107372",
"0.44058543",
"0.44050917",
"0.43853596",
"0.43817082",
"0.4380088",
"0.437405",
"0.43709853",
"0.43709797",
"0.43702853",
"0.43690526",
"0.43670443",
"0.43626443",
"0.43611136",
"0.43561986",
"0.4350949",
"0.43439993",
"0.43436408",
"0.43409136",
"0.43401948",
"0.4340093",
"0.4339751",
"0.43376508",
"0.43327507",
"0.43311217",
"0.43297136",
"0.43224356",
"0.43209347"
]
| 0.74119186 | 0 |
This implementation sets the sequence number appropriately for the passed in source accounting line using the value that has been stored in the nextSourceLineNumber variable, adds the accounting line to the list that is aggregated by this object, and then handles incrementing the nextSourceLineNumber variable for you. | public void addAdvanceAccountingLine(TemSourceAccountingLine line) {
line.setSequenceNumber(this.getNextAdvanceLineNumber());
this.advanceAccountingLines.add(line);
this.nextAdvanceLineNumber = new Integer(getNextAdvanceLineNumber().intValue() + 1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void fixLineNumbers() {\n int prevLn = -1;\n for (DexlibAbstractInstruction instruction : instructions) {\n Unit unit = instruction.getUnit();\n int lineNumber = unit.getJavaSourceStartLineNumber();\n if (lineNumber < 0) {\n if (prevLn >= 0) {\n unit.addTag(new LineNumberTag(prevLn));\n unit.addTag(new SourceLineNumberTag(prevLn));\n }\n } else {\n prevLn = lineNumber;\n }\n }\n }",
"public void setLineNumber(Number value) {\n setAttributeInternal(LINENUMBER, value);\n }",
"protected void resetNextAdvanceLineNumber() {\n this.nextAdvanceLineNumber = new Integer(1);\n }",
"public void setStartLineNumber(int foo) { startLineNumber = foo; }",
"void setLineNumber(int lineNumber) {}",
"@Override\n public List getSourceAccountingLines() {\n return super.getSourceAccountingLines();\n }",
"public void setLineNo (int LineNo);",
"public void setLineNumber(Integer value){\n ((MvwDefinitionDMO) core).setLineNumber(value);\n }",
"void setSequenceNumber(int sequenceNumber);",
"public Builder setStartLineNumber(int value) {\n bitField0_ |= 0x00000020;\n startLineNumber_ = value;\n onChanged();\n return this;\n }",
"public void setLineNumber(int lineNumber) {\n this.lineNumber = lineNumber;\n }",
"public void setClaimLineNumber(java.math.BigDecimal value) {\n __getInternalInterface().setFieldValue(CLAIMLINENUMBER_PROP.get(), value);\n }",
"public void newBufLine() {\n this.buffer.add(new ArrayList<Integer>());\n this.columnT = 0;\n this.lineT++;\n }",
"public void setClaimLineNumber(java.math.BigDecimal value) {\n __getInternalInterface().setFieldValue(CLAIMLINENUMBER_PROP.get(), value);\n }",
"public void setLineNumbers(int ln[]) {\n lineNos = ln;\n }",
"public void setCurrent(String sourcePath, int lineNumber){ // debugger line numbers start at 1...\n\t\tif (lineNumber>0 && sourcePath!=null){\n\t\t\tVector<LineBounds> v=this.lineBounds.get(sourcePath);\n\t\t\tif(v!=null){\n\t\t\t\tfinal LineBounds lb=v.get(lineNumber-1); // src line numbers start at 1, but vectors are like array, start at 0...\n\t\t\t\tif (lb!=null){\n\t\t\t\t\tif (this.curLine!=null){\n\t\t\t\t\t\tapplyAttributeSet(this.curLine, otherLineSet);\n\t\t\t\t\t}\n\t\t\t\t\tapplyAttributeSet(lb, currentLineSet);\n\t\t\t\t\t// ensure visibility...\n\t\t\t\t\t// from: http://www.java2s.com/Code/Java/Swing-JFC/AppendingTextPane.htm\n\t\t\t\t\t// The OVERALL protection with invokeLater is mine (LA) and seems very necessary !!\n\t\t\t\t\t SwingUtilities.invokeLater( new Runnable() {\n\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\tfinal Rectangle r;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tr = textPane.modelToView(lb.start);\n\t\t\t\t\t\t\t\t if (r != null) { // may be null even if no exception has been raised.\n\t\t\t\t\t\t\t\t\t textPane.scrollRectToVisible(r);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t // this.textPane.scrollRectToVisible(r);\n\t\t\t\t\t\t\t} catch (Throwable any) {\n\t\t\t\t\t\t\t\tLogger.getLogger(\"\").logp(Level.WARNING, this.getClass().getName(), \n\t\t\t\t\t\t\t\t\t\t\"setCurrent\", \"modelToView failed !\", any);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t }\n\t\t\t\t\t });\t\t\t\n\t\t\t\t\tthis.curLine=lb;\n\t\t\t\t}else{\n\t\t\t\t\t// line not found in file !\n\t\t\t\t\tLogger.getLogger(\"\").logp(Level.SEVERE, this.getClass().getName(), \n\t\t\t\t\t\t\t\"setCurrent\", lineNumber+\" out of range in \"+sourcePath);\n\t\t\t\t\t// TODO: what do we do ?\n\t\t\t\t\t// no more Highlight...\n\t\t\t\t\tif (this.curLine!=null){\n\t\t\t\t\t\tapplyAttributeSet(this.curLine, otherLineSet);\n\t\t\t\t\t\tthis.curLine=null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tLogger.getLogger(\"\").logp(Level.SEVERE, this.getClass().getName(), \n\t\t\t\t\t\t\"setCurrent\", sourcePath+\" not loaded in this SourceFrame\");\n\t\t\t}\n\t\t}else{\n\t\t\t// no more Highlight\n\t\t\tif (this.curLine!=null){\n\t\t\t\tapplyAttributeSet(this.curLine, otherLineSet);\n\t\t\t\tthis.curLine=null;\n\t\t\t}\n\t\t}\n\t\t// TODO: clean. System.out.println(vScrollbar.getValue()+\" \"+vScrollbar.getMinimum()+\" \"+vScrollbar.getMaximum());\n\t}",
"public void setLineId(Number value) {\n setAttributeInternal(LINEID, value);\n }",
"public void setLineId(Number value) {\n setAttributeInternal(LINEID, value);\n }",
"public void setLineId(Number value) {\n setAttributeInternal(LINEID, value);\n }",
"public void setLineNumbers(LineNumberDebugInfo[] lineNumbers);",
"public void setSequenceNumber(long value) {\n this.sequenceNumber = value;\n }",
"public static void RecalculateLineNumber(TargetCode nowTargetCode) {\n\t\tnowTargetCode.setLineNumber(0);\n\t\tfor (int j = 0; j < nowTargetCode.codeSize(); j++) {\n\t\t\tCode code = nowTargetCode.getCodeByIndex(j);\n\t\t\tcode.lineNumber = nowTargetCode.getLineNumber();\n\t\t\tnowTargetCode.setLineNumber(nowTargetCode.getLineNumber()+ISA.getLength(code.getCodeOp()));\n\t\t}\n\t}",
"public void xsetLineID(org.apache.xmlbeans.XmlInt lineID)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInt target = null;\n target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(LINEID$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(LINEID$2);\n }\n target.set(lineID);\n }\n }",
"void setStepLineNumber(int number)\n\t{\n\t\tthis.stepLineNumber = number;\n\t}",
"void setStepLineNumber(int number)\n\t{\n\t\tthis.stepLineNumber = number;\n\t}",
"public void addLineNum(int lnNum)\n {\n //checks if this is the first instance of the word.\n if(lineNums.isEmpty())\n lineNums.append(lnNum);\n //checks if the word has already been seen on that line before adding it.\n //only works if the file is read in order.\n else if(lineNums.lastPos() != lnNum)\n lineNums.append(lnNum);\n }",
"public void setLineNumber(Object value) throws DmcValueException {\n ((MvwDefinitionDMO) core).setLineNumber(value);\n }",
"public void setStartLine(final int startLine) {\n this.startLine = startLine;\n }",
"public void setLineNumber(Integer lineNumber) {\r\n this.lineNumber = lineNumber;\r\n }",
"@Override\n public void visitLineNumber(int line, Label start) {\n if(this.preserveDebuggability){\n super.visitLineNumber(line, start);\n }\n }",
"public void setLineNum(int nLineNum){\n\t\tlineNumber = nLineNum;\n\t}",
"public void setSourceStart(int x)\n\t{\n\t\tsourceStart = x;\n\t}",
"public void setStartLine(int startLine) {\r\n this.startLine = startLine;\r\n }",
"public void setFirstLineNumberIfNeeded(int firstLineNumber) {\n\t\tcodeItem.setFirstLineNumber(firstLineNumber);\n\t}",
"public void setLineNumber(Integer lineNumber) {\n this.lineNumber = lineNumber;\n }",
"public Long nextMRTLineNumber(MaintenanceRequest mrq){\n\t\tLong maxLineNumber = 0l;\n\t\t\n\t\tfor(MaintenanceRequestTask task : mrq.getMaintenanceRequestTasks()){\n\t\t\t\n\t\t\tmaxLineNumber = MALUtilities.isEmpty(task.getLineNumber()) || maxLineNumber >= task.getLineNumber() ? maxLineNumber : task.getLineNumber();\n\t\t}\n\t\t\n\t\treturn ++maxLineNumber;\n\t}",
"public void setLineToStart(final int lineToStart) {\r\n\t\tthis.lineToStart = lineToStart;\r\n\t}",
"private synchronized void updateLineCount(long lineCount) {\r\n\t\tthis.parsedLines += lineCount;\r\n\t}",
"protected int[] parserLine(String source, int Line) {\n\t\tint[] Offset = new int[2];\n\t\tString[] Source = source.split(\"\\n\");\n\t\tint actualLine = 1;\n\t\tint counterChar = 0;\n\t\tfor(String src:Source){\n\t\t\tif(actualLine == Line){ // desired line\n\t\t\t\tOffset[0] = counterChar; //first char\n\t\t\t\tOffset[1] = counterChar+src.length()+1; //last char\n\t\t\t\treturn Offset;\n\t\t\t}\n\t\t\tcounterChar+=src.length()+1;\n\t\t\tactualLine++;\n\t\t}\n\t\treturn null;\n\t}",
"public void setLine(int line);",
"public int getStartLineNumber() {\n return startLineNumber_;\n }",
"public void setSeqNbr(int seqNbr) {\n this.seqNbr = seqNbr;\n }",
"public String resolveLineNumber(int l) {\n \t\treturn null;\n \t}",
"public void setSourceEnd(int x)\n\t{\n\t\tsourceEnd = x;\n\t}",
"protected void sequence_Source(ISerializationContext context, Source semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getSource_StrId()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getSource_StrId()));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getSourceAccess().getStrIdSource1IdNewParserRuleCall_0_1(), semanticObject.eGet(SiddhiPackage.eINSTANCE.getSource_StrId(), false));\n\t\tfeeder.finish();\n\t}",
"public void setLine (int Line);",
"public void updateLineNumber(int lineNumber) {\n\t\t// remember the old value\n\t\toldLineNumber = this.lineNumber;\n\t\tthis.lineNumber = lineNumber;\n\t}",
"public ChangeCustomLineItemQuantityChangeBuilder nextValue(final Integer nextValue) {\n this.nextValue = nextValue;\n return this;\n }",
"public final int getLineNumber()\n {\n return _lineNumber + 1;\n }",
"public void setSourceAccountId(Long sourceAccountId) {\n this.sourceAccountId = sourceAccountId;\n }",
"public void setSequenceNumber(int sequence) {\n\t\tfSequenceNumber= sequence;\n\t}",
"public void setBeginLineNumber(int beginLine) {\n this.beginLine = beginLine;\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 }",
"private void addLine()\n\t{\n\t\tlines.add(printerFormatter.markEOL());\n\t}",
"public int getStartLineNumber() {\n return startLineNumber_;\n }",
"public void setLineNo(int lineNo)\n\t{\n\t\tsetIntColumn(lineNo, OFF_LINE_NO, LEN_LINE_NO);\n\t}",
"protected void incrementSeqNum() {\n intToNetworkByteOrder(mySeqNum++, sequenceNum, 0, 4);\n }",
"public Builder setOriginseqnum(long value) {\n bitField0_ |= 0x00000002;\n originseqnum_ = value;\n onChanged();\n return this;\n }",
"public void testExistingSeqWithChangedSrc() throws Exception\n {\n Integer C30 = this.cellLineLookup.lookup(\"C30\");\n String sql = \"select * from prb_source where _source_key \" +\n \"= -40 and _cellLine_key = \" + C30.toString();\n ResultsNavigator nav = sqlMgr.executeQuery(sql);\n assertTrue(!nav.next()); // assure no records found\n String accid = \"T00313\";\n MSRawAttributes raw = new MSRawAttributes();\n raw.setOrganism(\"mouse, laboratory\");\n raw.setCellLine(\"C30\");\n Integer seqKey = new Integer(-200);\n msProcessor.processExistingSeqSrc(accid, seqKey, null, raw);\n nav = sqlMgr.executeQuery(sql);\n assertTrue(nav.next()); // assure a record was found\n }",
"public org.apache.xmlbeans.XmlInt addNewDependLineID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInt target = null;\n target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(DEPENDLINEID$26);\n return target;\n }\n }",
"private void addSrcId(int value) {\n ensureSrcIdIsMutable();\n srcId_.addInt(value);\n }",
"public int getLineNumber() {\n\t\t\treturn startLineNumber;\n\t\t}",
"public void setSequenceNumber(INT sequenceNumber) {\n if(sequenceNumber instanceof org.hl7.hibernate.ClonableCollection)\n sequenceNumber = ((org.hl7.hibernate.ClonableCollection<INT>) sequenceNumber).cloneHibernateCollectionIfNecessary();\n _sequenceNumber = sequenceNumber;\n }",
"public void setSourceRecord(ActivityRecord sourceRecord) {\n }",
"int getStartLineNumber();",
"void setListingPosition(int module, int line)\n {\n\t\tpropertyPut(LIST_MODULE, module);\n\t\tpropertyPut(LIST_LINE, line);\n\n // if we are running under emacs then dump out our new location\n if (m_fullnameOption)\n {\n SourceFile f = m_fileInfo.getFile(module);\n if (f != null)\n {\n StringBuilder sb = new StringBuilder();\n appendFullnamePosition(sb, f, line);\n sb.append('\\n'); // not sure why this is needed but it seems to address some emacs bugs\n out(sb.toString());\n }\n }\n\t}",
"private void addLine()\n{\n BaleElement first = null;\n BaleElement last = null;\n BaleElement eol = null;\n boolean havecmmt = false;\n for (BaleElement ce : line_elements) {\n eol = ce;\n if (!ce.isEmpty() && !ce.isComment()) {\n\t if (first == null) first = ce;\n\t last = ce;\n }\n else if (ce.isComment()) havecmmt = true;\n }\n\n if (first != null && cur_parent.isComment()) cur_parent = cur_parent.getBaleParent();\n if (first == null && !cur_parent.isComment() && !havecmmt) ++num_blank;\n else if (first != null || cur_parent.isComment()) num_blank = 0;\n\n // fix outer parent to ensure it includes this line\n fixOuterParent(first,last,eol);\n\n // Create nodes for block comments\n BaleElement.Branch cpar = null;\n if (first == null) {\n if (!cur_parent.isComment() && (havecmmt || num_blank >= 2)) {\n\t cpar = new BaleElement.BlockCommentNode(for_document,cur_parent);\n\t addElementNode(cpar,num_blank);\n\t cpar.setAstNode(cur_ast);\n\t cpar.setStartTokenState(token_state);\n\t cur_parent = cpar;\n }\n }\n\n if (cpar != null && cur_parent != cpar) {\n BoardLog.logE(\"BALE\",\"UNUSED COMMENT\");\n }\n\n // Add the current line\n BaleElement.Branch lastpar = cur_parent;\n cur_line = new BaleElement.LineNode(for_document,cur_parent);\n cur_line.setAstNode(cur_ast);\n cur_line.setStartTokenState(token_state);\n addElementNode(cur_line,0);\n cur_parent = cur_line;\n\n boolean haveindent = true;\n for (BaleElement ce : line_elements) {\n fixInnerParent(ce);\n ce = fixLeafElement(ce,haveindent);\n haveindent = false;\n addElementNode(ce,0);\n token_state = ce.getEndTokenState();\n }\n\n cur_line.setEndTokenState(token_state);\n cur_parent = lastpar;\n cur_line = null;\n}",
"public Line() {\n \n this.buffer = new ArrayList<ArrayList<Integer>>();\n this.buffer.add(new ArrayList<Integer>());\n this.lineT = 0;\n this.columnT = 0;\n this.inputMode = false;\n }",
"public TemSourceAccountingLine getAdvanceAccountingLine(int index) {\n while (getAdvanceAccountingLines().size() <= index) {\n getAdvanceAccountingLines().add(createNewAdvanceAccountingLine());\n }\n return getAdvanceAccountingLines().get(index);\n }",
"public void setSequenceNumber(int sequenceNumber) {\n this.sequenceNumber = sequenceNumber;\n }",
"public void setSequenceNumber(int sequenceNumber) {\n this.sequenceNumber = sequenceNumber;\n }",
"public AudioBreak(int nLineNumber){\n\t\tlineNumber = nLineNumber;\n\t\tkey = STARTKEY;\n\t}",
"public void setLinePos(int linePos) {\n this.linePos = linePos;\n }",
"public Builder addSourcePath(\n int index, Path value) {\n if (sourcePathBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSourcePathIsMutable();\n sourcePath_.add(index, value);\n onChanged();\n } else {\n sourcePathBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public void setFinancialDocumentLineNumber(Integer financialDocumentLineNumber) {\r\n this.financialDocumentLineNumber = financialDocumentLineNumber;\r\n }",
"public void setSourceLocation() {\r\n this.m_sourceSystemId.addElement(this.m_locator.getSystemId());\r\n this.m_sourceLine.addElement(this.m_locator.getLineNumber());\r\n this.m_sourceColumn.addElement(this.m_locator.getColumnNumber());\r\n if (this.m_sourceSystemId.size() != this.m_size) {\r\n String str = \"CODING ERROR in Source Location: \" + this.m_size + \" != \" + this.m_sourceSystemId.size();\r\n System.err.println(str);\r\n throw new RuntimeException(str);\r\n }\r\n }",
"public void addLine(String file, int line) {\r\n\t\tif (!_fileLines.containsKey(file))\r\n\t\t\t_fileLines.put(file, new ArrayList<Integer>());\r\n\t\t_fileLines.get(file).add(line);\r\n\t}",
"public void setAdvanceAccountingLines(List<TemSourceAccountingLine> advanceAccountingLines) {\n this.advanceAccountingLines = advanceAccountingLines;\n }",
"public String getSourceLine (int line);",
"public void addLine(String sCode) {\n\t\tif (sCode != null) {\n\t\t\tvecLines.add(sCode);\n\t\t}\n\t}",
"public Builder setSequenceNumber(long value) {\n bitField0_ |= 0x00000001;\n sequenceNumber_ = value;\n onChanged();\n return this;\n }",
"public void setLINE_NO(BigDecimal LINE_NO) {\r\n this.LINE_NO = LINE_NO;\r\n }",
"public void setLINE_NO(BigDecimal LINE_NO) {\r\n this.LINE_NO = LINE_NO;\r\n }",
"public void setLINE_NO(BigDecimal LINE_NO) {\r\n this.LINE_NO = LINE_NO;\r\n }",
"public void setLINE_NO(BigDecimal LINE_NO) {\r\n this.LINE_NO = LINE_NO;\r\n }",
"public void addActualExpenseLine(ActualExpense line) {\n line.setDocumentLineNumber(getActualExpenses().size() + 1);\n final String sequenceName = line.getSequenceName();\n final Long sequenceNumber = getSequenceAccessorService().getNextAvailableSequenceNumber(sequenceName, ActualExpense.class);\n line.setId(sequenceNumber);\n line.setDocumentNumber(this.documentNumber);\n notifyChangeListeners(new PropertyChangeEvent(this, TemPropertyConstants.ACTUAL_EXPENSES, null, line));\n getActualExpenses().add(line);\n logErrors();\n }",
"public int getLine()\n/* */ {\n/* 1312 */ return this.line;\n/* */ }",
"public void addPcktSeqNo(long seq)\n\t{\n\t\tthis.list.add(seq);\n\t}",
"public void jumpToNextLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == textBuffer.getMaxLine()-1) {\n textBuffer.setCurToTail();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo+1);\n lineJumpHelper(curX);\n }",
"public int getLineNumber()\n {\n // LineNumberReader counts lines from 0. So add 1\n\n return lineNumberReader.getLineNumber() + 1;\n }",
"private static void importQueuesFromLog(File source, Frontier frontier,\n int lines, CountDownLatch enough) {\n BufferedInputStream is;\n // create MutableString of good starting size (will grow if necessary)\n MutableString read = new MutableString(UURI.MAX_URL_LENGTH);\n long queuedAtStart = frontier.queuedUriCount();\n long queuedDuringRecovery = 0;\n int qLines = 0;\n \n try {\n // Scan log for all 'F+' lines: if not alreadyIncluded, schedule for\n // visitation\n is = getBufferedInput(source);\n try {\n while (readLine(is,read)) {\n qLines++;\n if (read.startsWith(F_ADD)) {\n UURI u;\n CharSequence args[] = splitOnSpaceRuns(read);\n try {\n u = UURIFactory.getInstance(args[1].toString());\n String pathFromSeed = (args.length > 2)?\n args[2].toString() : \"\";\n UURI via = (args.length > 3)?\n UURIFactory.getInstance(args[3].toString()):\n null;\n String viaContext = (args.length > 4)?\n args[4].toString(): \"\";\n CandidateURI caUri = new CandidateURI(u, \n pathFromSeed, via, viaContext);\n frontier.schedule(caUri);\n \n queuedDuringRecovery =\n frontier.queuedUriCount() - queuedAtStart;\n if(((queuedDuringRecovery + 1) %\n ENOUGH_TO_START_CRAWLING) == 0) {\n enough.countDown();\n }\n } catch (URIException e) {\n e.printStackTrace();\n }\n }\n if((qLines%PROGRESS_INTERVAL)==0) {\n // every 1 million lines, print progress\n LOGGER.info(\n \"through line \" \n + qLines + \"/\" + lines \n + \" queued count = \" +\n frontier.queuedUriCount());\n }\n }\n } catch (EOFException e) {\n // no problem: untidy end of recovery journal\n } finally {\n \t is.close(); \n }\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n LOGGER.info(\"finished recovering frontier from \"+source+\" \"\n +qLines+\" lines processed\");\n enough.countDown();\n }",
"public String getLineNumber() \n\t{\n\t\treturn getNumber().substring(9,13);\n\t}",
"void showNewLine(String lineNumber, String directionId);",
"org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine addNewExternalOrderLine();",
"public void setsalehdrseq(BigDecimal value) {\n setAttributeInternal(SALEHDRSEQ, value);\n }",
"public void setEndLineNumber(int foo) { endLineNumber = foo; }",
"public void testSetSequenceNumber() {\n System.out.println(\"setSequenceNumber\");\n \n long sequenceNumber = 0L;\n LocalFileState instance = new LocalFileState();\n \n instance.setSequenceNumber(sequenceNumber);\n \n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public ArrayList<String> refactorSourceOutline(ArrayList<ArrayList<String>> attributes, ArrayList<String> sourceCode, int[] lines){\n\t\tArrayList<String> sourceOutline = sourceCode;\n\t\tString[] currentAttribute = attributes.get(0).toArray(new String[attributes.get(0).size()]);\n\n\t\tfor(int i = 0; i < sourceOutline.size(); i++){\n\t\t\tString[] temp = attributes.get(i).toArray(new String[attributes.get(i).size()]); //temporarily make into an array for comparison\n\t\t\t\n\t\t\tif(!Arrays.equals(currentAttribute, temp) && temp.length > 0){\n\t\t\t\tint line = i + 1;\n\t\t\t\tsourceOutline.set(i,\"//Insert Calling Statement Line: \" + line + \" \\t\" + String.valueOf(attributes.get(i)));\n\t\t\t\tcurrentAttribute = temp;\n\t\t\t\tnumberOfCalls++;\n\t\t\t}\n\t\t\telse if(!Arrays.equals(currentAttribute,temp)){\n\t\t\t\tcurrentAttribute = temp;\n\t\t\t}\n\t\t\telse if(Arrays.equals(currentAttribute, temp) && temp.length > 0){\n\t\t\t\tsourceOutline.set(i,\"//<remove>\");\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t//before removing, go back and make sure all function calls exist, increase number of calls if it didn't exist previously\n\t\tfor(int i = 0; i < lines.length; i++){\n\t\t\t\n\t\t\tint line = lines[i] - 1;\t\n\t\t\tString temp = sourceOutline.get(line);\n\t\t\t\n\t\t\tif((temp.length() < 33)){\n\t\t\t\tsourceOutline.set(line, \"//Insert Calling Statement Line: \" + line + \" \\t\" + String.valueOf(attributes.get(line)));\n\t\t\t\tnumberOfCalls++;\n\t\t\t}\n\t\t}\n\t\tsourceOutline.removeAll(Collections.singleton(\"//<remove>\")); //deletes all \"//<remove>\" comments\n\t\treturn sourceOutline;\n\t}",
"void getNextLine()\n\t\t\tthrows IOException, FileNotFoundException {\n String nextLine = \"\";\n if (reader == null) {\n nextLine = textLineReader.readLine();\n } else {\n nextLine = reader.readLine();\n }\n if (nextLine == null) {\n atEnd = true;\n line = new StringBuffer();\n } else {\n\t\t line = new StringBuffer (nextLine);\n }\n if (context.isTextile()) {\n textilize ();\n }\n\t\tlineLength = line.length();\n\t\tlineIndex = 0;\n\t}",
"@Override\n\tpublic List<String> getAGBVersion1WithLineNumbers() {\n\t\t\n\t\treturn version1WithLineNumbers;\n\t}"
]
| [
"0.58104676",
"0.5766421",
"0.5711996",
"0.5650238",
"0.56138676",
"0.5587075",
"0.5577529",
"0.5484428",
"0.54104316",
"0.5408986",
"0.53536475",
"0.5316231",
"0.52732176",
"0.5267809",
"0.5245423",
"0.5232047",
"0.5227173",
"0.5227173",
"0.5227173",
"0.5201076",
"0.51798075",
"0.51780605",
"0.5167906",
"0.5163595",
"0.5163595",
"0.51464003",
"0.5145421",
"0.5106649",
"0.5104174",
"0.50890476",
"0.5087082",
"0.50858307",
"0.50626075",
"0.5053899",
"0.5028291",
"0.4982282",
"0.49544287",
"0.49445868",
"0.4932076",
"0.4930694",
"0.49217632",
"0.4921079",
"0.49166268",
"0.49153352",
"0.49034292",
"0.4903122",
"0.49017048",
"0.48900566",
"0.48887917",
"0.4881883",
"0.48689568",
"0.48656747",
"0.4861498",
"0.4860305",
"0.48601815",
"0.48598403",
"0.48572284",
"0.48354754",
"0.48302844",
"0.4823864",
"0.48112226",
"0.4807555",
"0.48065755",
"0.47990218",
"0.479743",
"0.47800216",
"0.47797963",
"0.47742656",
"0.47669923",
"0.4754832",
"0.4754832",
"0.47489485",
"0.47473687",
"0.47361445",
"0.47350726",
"0.47324514",
"0.47273982",
"0.4715928",
"0.47156298",
"0.46957457",
"0.46956137",
"0.4693072",
"0.4693072",
"0.4693072",
"0.4693072",
"0.46899122",
"0.46848613",
"0.46732312",
"0.4663179",
"0.46568343",
"0.46499005",
"0.46402034",
"0.46387157",
"0.46354803",
"0.4623487",
"0.46192688",
"0.46149233",
"0.4611915",
"0.46098182",
"0.46090078"
]
| 0.59601307 | 0 |
This implementation is coupled tightly with some underlying issues that the Struts PojoProcessor plugin has with how objects get instantiated within lists. The first three lines are required otherwise when the PojoProcessor tries to automatically inject values into the list, it will get an index out of bounds error if the instance at an index is being called and prior instances at indices before that one are not being instantiated. So changing the code below will cause adding lines to break if you add more than one item to the list. | public TemSourceAccountingLine getAdvanceAccountingLine(int index) {
while (getAdvanceAccountingLines().size() <= index) {
getAdvanceAccountingLines().add(createNewAdvanceAccountingLine());
}
return getAdvanceAccountingLines().get(index);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ProductPropertyExecution addProductPropertyList(List<PropertyValue> propertyValueList,PPManage ppManage);",
"public static void addList() {\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tprivate List<Object> injectClassInvariantBuilder(List<Object> list) {\n\t\tList<Object> tempList = new ArrayList<Object>();\n\n\t\tfor (Object element : list) {\n\t\t\tif (element instanceof ArrayList) {\n\t\t\t\ttempList.add(injectClassInvariantBuilder((List<Object>) element));\n\t\t\t} else {\n\t\t\t\tif (element.equals(FIELDS_SUMMARY)) {\n\t\t\t\t\ttempList.add(CLASS_INVARIANT_SUMMARY);\n\t\t\t\t\ttempList.add(element);\n\t\t\t\t} else {\n\t\t\t\t\ttempList.add(element);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn tempList;\n\t}",
"@Override\n\tpublic <T> void insertMany(List<T> list) throws Exception {\n\t\t\n\t}",
"private void addItems(RegularItem...pItems)\r\n\t{\r\n\t\tfor (RegularItem item : pItems) {\r\n\t\t\tassert item != null;\r\n\t\t\taItems.add(item);\r\n\t\t};\r\n\t}",
"@Override\n public void add(Object item)\n {\n if (size == list.length)\n {\n Object [] itemInListCurrently = deepCopy();\n list = new Object[size * 2];\n\n System.arraycopy(itemInListCurrently, 0, list, 0, size);\n }\n\n list[size++] = item;\n }",
"@Test\n public void initializeInMultipleLines() {\n List<Integer> lst = new ArrayList<>();\n\n // Add elements to ArrayList\n lst.add(3);\n lst.add(1);\n lst.add(2);\n\n // Can add null element\n lst.add(null);\n\n // Can add duplicate element\n lst.add(2);\n assertThat(lst).hasSize(5);\n\n // The output ordering will be same as the insertion oder\n System.out.println(lst);\n }",
"public void AddList( TColStd_HSequenceOfTransient list) {\n OCCwrapJavaJNI.Interface_EntityIterator_AddList(swigCPtr, this, TColStd_HSequenceOfTransient.getCPtr(list) , list);\n }",
"@Test\n\tvoid test4AddComponentToList() {\n\t\tlistItems.add(comp1);\n\t\tlistItems.add(comp2);\n\t\tvc = new VerticalComponentList(x, y, listItems,0);\n\t\tvc.addComponent(comp3);\n\t\tassertEquals(comp3.hashCode(), vc.getComponentsList().get(vc.getComponentsList().size() - 1).hashCode());\n\t}",
"private void addElementsToPanelList(JList<String> jlist, JButton clickUpdate, JButton clickDelete,\r\n JButton clickComplete, JButton clickIncomplete,\r\n JButton clickCreate, JButton showComplete,\r\n JButton clickSave) {\r\n panelList.add(jlist);\r\n panelList.add(clickUpdate);\r\n panelList.add(clickDelete);\r\n panelList.add(clickComplete);\r\n panelList.add(clickIncomplete);\r\n panelList.add(clickCreate);\r\n panelList.add(showComplete);\r\n panelList.add(clickSave);\r\n }",
"void addLaptop(ArrayList list){\n System.out.println(\"Enter ID\");\r\n int id = sc.nextInt();\r\n System.out.println(\"Enter ram size\");\r\n int ram = sc.nextInt();\r\n System.out.println(\"Enter HDD size\");\r\n int hdd = sc.nextInt();\r\n sc.nextLine();\r\n System.out.println(\"Enter brand name\");\r\n String brand = sc.nextLine();\r\n \r\n \r\n int idVal = 1;\r\n for (Object obj : list) {\r\n //Checking for valid id\r\n if(((Laptop)obj).getId() == id){\r\n idVal = 0;\r\n break;\r\n }\r\n }\r\n if (idVal == 1) {\r\n //adding a new element/row in the existing list\r\n list.add(new Laptop(id, ram, hdd, brand));\r\n System.out.println(\"Element added successfully!\");\r\n } else {\r\n System.out.println(\"Entered id already exist!\");\r\n }\r\n\r\n }",
"private void addItems() {\n while (true) {\n ClothingItem item = readItem();\n if (item == null || item.getId() < 0) {\n break;\n }\n try {\n ctrl.addItem(item);\n } catch (ValidatorException e) {\n e.printStackTrace();\n }\n }\n }",
"@Test\r\n\tpublic void testAddObject() {\r\n\t\ttestArray = new ArrayBasedList<String>();\r\n\t\tassertEquals(0, testArray.size());\r\n\t\ttestArray.add(\"math\");\r\n\t\ttestArray.add(\"science\");\r\n\t\ttestArray.add(\"cs\");\r\n\t\tassertEquals(\"math\", testArray.get(0));\r\n\t\tassertEquals(\"science\", testArray.get(1));\r\n\t\tassertEquals(\"cs\", testArray.get(2));\r\n\t\ttry {\r\n\t\t\ttestArray.add(null);\r\n\t\t\tfail();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// skip\r\n\t\t}\r\n\t}",
"public void testAddIndex() {\r\n list.add(\"B\");\r\n list.add(0, \"A\");\r\n assertEquals(\"A\", list.get(0));\r\n assertEquals(2, list.size());\r\n list.add(2, \"D\");\r\n assertEquals(\"D\", list.get(2));\r\n list.add(2, \"C\");\r\n assertEquals(\"C\", list.get(2));\r\n }",
"ListItem createListItem();",
"public abstract ObjectId[] prenota(List<T> listToAdd, ObjectId idVolo) throws FlightNotFoundException, SeatsSoldOutException;",
"public interface OmsOrderOperateHistoryDao {\n /**\n * Multiple create\n */\n int insertList(@Param(\"list\") List<OmsOrderOperateHistory> orderOperateHistoryList);\n}",
"@Test\r\n\tvoid testAddToDoItem() {\r\n\t\tSortedList list = new SortedList(\"List\");\r\n\t\t// case 1: insert one ToDoItem\r\n\t\tlist.insert(toDoItem4);\r\n\t\tif (!list.getHead().getName().equals(\"Item 4\")) { // check the head is set correctly\r\n\t\t\tfail(\"Head set incorrectly for: \" + toDoItem4.getName() + \", should be \\\"Item 4\\\"\");\r\n\t\t}\r\n\t\tif (list.getSize() != 1) { // check that size is incremented\r\n\t\t\tfail(\"List size is incorrect: should be 1\");\r\n\t\t}\r\n\r\n\t\t// case 2: second item is insert\r\n\t\tlist.insert(toDoItem1);\r\n\t\tif (list.getSize() != 2) { // check size incremented correctly\r\n\t\t\tfail(\"Size incorrect: should be 2\");\r\n\t\t}\r\n\t\tif (!list.contains(\"Item 1\")) { // check the item is in the list\r\n\t\t\tfail(\"Item 1 is not in the list\");\r\n\t\t}\r\n\t\tif (!list.getHead().getName().equals(\"Item 1\")) { // check the position of Item 1\r\n\t\t\tfail(\"Head set incorrectly: should be \\\"Item 1\\\"\");\r\n\t\t}\r\n\t\t// check that the current pointer is in the right location\r\n\t\tif (!list.getCurrent().getName().equals(\"Item 4\")) {\r\n\t\t\tfail(\"Current set incorrectly: should be \\\"Item 4\\\"\");\r\n\t\t}\r\n\t\t// check that tail is set correctly\r\n\t\tif (!list.getTail().getName().equals(\"Item 4\")) {\r\n\t\t\tfail(\"Tail set incorrectly: should be \\\"Item 4\\\"\");\r\n\t\t}\r\n\r\n\t\t// case 3: third item is inserted\r\n\t\tlist.insert(toDoItem5);\r\n\t\tif (list.getSize() != 3) {\r\n\t\t\tfail(\"Size incorrect: should be 3\");\r\n\t\t}\r\n\t\tif (!list.contains(\"Item 5\")) {\r\n\t\t\tfail(\"Item 5 is not in the list\");\r\n\t\t}\r\n\t\tif (!list.getHead().getName().equals(\"Item 1\")) { // check for correct position\r\n\t\t\tfail(\"Head set incorrectly: should be \\\"Item 1\\\"\");\r\n\t\t}\r\n\t\tif (!list.getTail().getName().equals(\"Item 5\")) { // check for correct position\r\n\t\t\tfail(\"Head set incorrectly: should be \\\"Item 5\\\"\");\r\n\t\t}\r\n\r\n\t\t// insert several more and test to make sure they are ordered correctly\r\n\t\tlist.insert(toDoItem2);\r\n\t\tlist.insert(toDoItem6);\r\n\t\tlist.insert(toDoItem3);\r\n\r\n\t\tToDoItem tempHead = list.getHead();\r\n\t\tString currList = \"|\";\r\n\t\tString correctList = \"|Item 1|Item 2|Item 3|Item 4|Item 5|Item 6|\";\r\n\r\n\t\twhile (tempHead != null) {\r\n\t\t\tcurrList += tempHead.getName() + \"|\";\r\n\t\t\ttempHead = tempHead.getNext();\r\n\t\t}\r\n\r\n\t\tif (!currList.equals(correctList)) {\r\n\t\t\tfail(\"The list was ordered incorrectly after inserting all items\");\r\n\t\t}\r\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n public void createList() {\r\n items = new int[MAX_LIST];\r\n NumItems = 0;\r\n }",
"private void addItem() {\n\n ItemBean bean2 = new ItemBean();\n int drawableId2 = getResources().getIdentifier(\"ic_swrl\", \"drawable\", this.getPackageName());\n bean2.setAddress(drawableId2);\n bean2.setName(getResources().getString(R.string.swrl));\n itemList.add(bean2);\n\n ItemBean bean3 = new ItemBean();\n int drawableId3 = getResources().getIdentifier(\"ic_bianmin\", \"drawable\", this.getPackageName());\n bean3.setAddress(drawableId3);\n bean3.setName(getResources().getString(R.string.bianmin));\n itemList.add(bean3);\n\n ItemBean bean4 = new ItemBean();\n int drawableId4 = getResources().getIdentifier(\"ic_shenghuo\", \"drawable\", this.getPackageName());\n bean4.setAddress(drawableId4);\n bean4.setName(getResources().getString(R.string.shenghuo));\n itemList.add(bean4);\n\n ItemBean bean5 = new ItemBean();\n int drawableId5 = getResources().getIdentifier(\"ic_nxwd\", \"drawable\", this.getPackageName());\n bean5.setAddress(drawableId5);\n bean5.setName(getResources().getString(R.string.nxwd));\n// itemList.add(bean5);\n\n }",
"private void add() {\n\n\t}",
"private <T> Result<T> add(List<T> list, Class<?> cn) throws IOException, CsvDataTypeMismatchException, CsvRequiredFieldEmptyException {\n initWriter(cn);\n StatefulBeanToCsv<T> beanToCsv = new StatefulBeanToCsvBuilder<T>(writer)\n .withApplyQuotesToAll(false)\n .build();\n beanToCsv.write(list);\n close();\n return new Result<>(list, ResultType.OK, Constants.INSERTED_SUCCESSFULLY);\n }",
"@Override\r\n\tpublic void inserOrder(Good_ordVO good_ordVO, List<PointgoodsVO> list) {\n\t\t\r\n\t}",
"private void createFieldList(List<FieldDelimiterHolder> list) {\n for (FieldDelimiterHolder holder : list) {\n Field field = FieldFactory.create(holder.name, holder.previous, holder.next);\n fields.add(field);\n if (field.saveable()) {\n saveableFields.add(field);\n }\n }\n\n // the saveableFields List is fields List minus the Skip fields\n // sorted so AppendFields are last\n Collections.sort(saveableFields, new FieldComparator());\n }",
"public void add(Object o){\n list.add(o);\n }",
"@Test\n\tpublic void addPointsByListTest(){\n\t}",
"@Test\r\n\tpublic void testAddPromotion() {\n\t\tassertNotNull(\"Test if there is valid Promotion arraylist to add to\", promotionList);\r\n\r\n\t\t// Given an empty list, after adding 1 item, the size of the list is 1\r\n\t\tC206_CaseStudy.addPromotion(promotionList, po1);\r\n\t\tassertEquals(\"Test if that Promotion arraylist size is 1?\", 1, promotionList.size());\r\n\r\n\t\t// The item just added is as same as the first item of the list\r\n\t\tassertSame(\"Test that Promotion is added same as 1st item of the list?\", po1, promotionList.get(0));\r\n\r\n\t\t// Add another item. test The size of the list is 2?\r\n\t\tC206_CaseStudy.addPromotion(promotionList, po2);\r\n\t\tassertEquals(\"Test that Promotion arraylist size is 2?\", 2, promotionList.size());\r\n\t}",
"@Before\n public void createSimpleList() {\n testList = new SimpleList();\n }",
"void saveLineItemList(List<LineItem> lineItemList);",
"@Override\r\n\tpublic int insertProductInputList(ProductInputListVO pilVO) {\n\t\treturn getSqlSession().insert(productInputNameSpace+\".insertProductInputList\", pilVO);\r\n\t}",
"void addAll(intList list, int index) throws IllegalAccessException;",
"@Test\n\tpublic void testAddList() {\n\t\tarrayList = new ArrayListImplementation<String>();\n\t\tarrayList.addItem(\"1\");\n\t\tarrayList.addItem(\"2\");\n\t\tArrayListImplementation<String> tempArrayList = new ArrayListImplementation<String>();\n\t\ttempArrayList.addItem(\"4\");\n\t\ttempArrayList.addItem(\"5\");\n\t\ttempArrayList.addItem(\"6\");\n\t\tint sizeBeforeListAdded = arrayList.getActualSize();\n\t\tarrayList.addList(tempArrayList);\n\t\tint sizeAfterListAdded = arrayList.getActualSize();\n\t\tassertNotEquals(sizeBeforeListAdded, sizeAfterListAdded);\n\t}",
"void mo29842a(IObjectWrapper iObjectWrapper, zzatk zzatk, List<String> list) throws RemoteException;",
"@Test\n public void testAdd_After_Add() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.add(3);\n instance.add(9);\n int expResult = 3;\n\n assertEquals(expResult, baseList.indexOf(9));\n }",
"public void rbListAddElement() {\n rbProductType.clear();\n rbProductType.add(rbScs);\n rbProductType.add(rbSko);\n rbProductType.add(rbMko);\n rbProductType.add(rbZko);\n }",
"public static JSONObjectList createJSONObjectList(List<RequirementForm> reqList)\r\n{\r\n\tJSONObjectList jsonlist = new JSONObjectList();\r\n int length = reqList.size();\r\n for (int i = 0; i < length; i++) {\r\n JSONObject uc =createJSONObject(reqList.get(i));\r\n\r\n jsonlist.getListobject().add(uc);\r\n\r\n }\r\n \r\n return jsonlist;\r\n}",
"@Before(value = \"@createList\", order = 1)\n public void createList() {\n String endpoint = EnvironmentTrello.getInstance().getBaseUrl() + \"/lists/\";\n JSONObject json = new JSONObject();\n json.put(\"name\", \"testList\");\n json.put(\"idBoard\", context.getDataCollection(\"board\").get(\"id\"));\n RequestManager.setRequestSpec(AuthenticationUtils.getLoggedReqSpec());\n Response response = RequestManager.post(endpoint, json.toString());\n context.saveDataCollection(\"list\", response.jsonPath().getMap(\"\"));\n }",
"public BookList(ObservableList<Book> oList){\r\n //Instantiate the bookList attribute\r\n bookList = new ArrayList<Book>();\r\n //if the parameter oList is not null, then loop through it and create a new Book object from each element,\r\n //using the getters. The enhanced for-loop works great here See Chapter 7.13. Add the new Book to the attribute\r\n //called bookList\r\n if(oList != null){\r\n for(Book bk: oList){\r\n bookList.add(new Book(bk.getTitle(), bk.getPrice()));\r\n }\r\n }\r\n\r\n }",
"protected void onAdd( E entity, int index )\r\n\t{\r\n\t\t\r\n\t}",
"org.apache.geronimo.corba.xbeans.csiv2.tss.TSSSasMechType.ServiceConfigurationList addNewServiceConfigurationList();",
"void addList(ShoppingList _ShoppingList);",
"public void add(){\n list.add(smart);\n list.add(mega);\n list.add(smartMini);\n list.add(absolute);\n\n clientsList.add(client1);\n clientsList.add(client2);\n clientsList.add(client3);\n clientsList.add(client4);\n clientsList.add(client5);\n }",
"public void addToLinesOfBusiness(entity.AppCritLineOfBusiness element);",
"public void addProductToList(Product aProduct){\n listOfProduct.add(aProduct);\n }",
"com.exacttarget.wsdl.partnerapi.ObjectDefinition insertNewObjectDefinition(int i);",
"public void addToCommentsList(Object newValue);",
"public void addToCommentsList(Object newValue);",
"@Test\r\n\tpublic void testAddByIndex() {\r\n\t\tlist.add(3, new Munitions(3, 4, \"ferrum\"));\r\n\t\tlist.add(5, new Munitions(34, 4, \"iron\"));\r\n\t\tAssert.assertEquals(17, list.size());\r\n\t\tAssert.assertTrue(list.get(3).equals(new Munitions(3, 4, \"ferrum\")));\r\n\t}",
"public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}",
"PropertyArray put(Object value) {\n PropertyObject.testValidity(value);\n this.myArrayList.add(value);\n return this;\n }",
"private ArrayList<String> simpleFormList(ArrayList<String> list){\n\t\tArrayList<String> simpleFormList = new ArrayList<String>();\n\t\tfor(String s : list){\n\t\t\tString pos = posMap.get(s);\n\t\t\tsimpleFormList.add(simpleForm(s,pos));\n\t\t}\n\t\treturn simpleFormList;\n\t}",
"private void initList() {\n\n }",
"public InlineList(int pos, SpelNodeImpl... args)\r\n/* 17: */ {\r\n/* 18: 39 */ super(pos, args);\r\n/* 19: 40 */ checkIfConstant();\r\n/* 20: */ }",
"public void agregarListHijos(Persona hijo){\n Persona ite;\n\n if(hijos_Ambos.nextHijo==null && used==true){\n hijos_Ambos.nextHijo = hijo;\n\n }else{\n ite=hijos_Ambos.nextHijo;\n while(ite.nextHijo!=null){\n ite=ite.nextHijo;\n }\n ite.nextHijo=hijo;\n } \n\n }",
"@Override\n\tpublic void add(Object o) {\n\t}",
"public OrderTransactionManagedBean() \n {\n orders = new ArrayList<>();\n lineItems = new ArrayList<>();\n }",
"@Test\n public void testAdd_After_Next() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.add(9);\n int expResult = 2;\n\n assertEquals(expResult, baseList.indexOf(9));\n }",
"@Override\n public int bathSave(List<T> entitys) throws Exception {\n return mapper.insertList(entitys);\n }",
"private void ensureCapacity(int index, Class<?> type) {\n\t\t\tint overflow = index - list.size();\n\t\t\twhile (overflow-- >= 0) {\n\t\t\t\tlist.add(FormObject.this.factory.newInstance(type));\n\t\t\t}\n\t\t}",
"public void insertPhone(ArrayList<DetailModel> detailModelArrayList){\n\n\n\n\n }",
"@Override\n\tpublic void add() {\n\t\t\n\t}",
"private ArrayList<String> createList(JList aListComponent) {\n ArrayList<String> aList = new ArrayList<>();\n if (aListComponent.getModel().getSize() > 0) {\n for (int i=0; i < aListComponent.getModel().getSize();i++) {\n aList.add(aListComponent.getModel().getElementAt(i).toString());\n }\n }\n return aList;\n }",
"public void add(){\n //Declare an ArrayList which contains string objects\n \n ArrayList<Employee> employeesList = new ArrayList<Employee>();\n \n Employee emp = new Employee();\n emp.setName(\"Marc\");\n emp.setSalary_complement(100);\n \n emp.setName(\"Paco\");\n emp.setSalary_complement(120);\n \n emp.setName(\"David\");\n emp.setSalary_complement(400);\n \n emp.setName(\"Albert\");\n emp.setSalary_complement(110);\n \n emp.setName(\"Javi\");\n emp.setSalary_complement(20);\n \n emp.setName(\"Jose\");\n emp.setSalary_complement(170);\n \n emp.setName(\"Raul\");\n emp.setSalary_complement(101);\n \n emp.setName(\"Enric\");\n emp.setSalary_complement(80);\n \n emp.setName(\"Javier\");\n emp.setSalary_complement(10);\n \n emp.setName(\"Daniel\");\n emp.setSalary_complement(120);\n \n \n employeesList.add(emp);\n /* \n ArrayList<String> employeesList = new ArrayList<>();\n employeesList.add(200,\"Marc\") ArrayList<Employee> employeesList = new ArrayList<Employee>();\n ;\n employeesList.add(250,\"Cristian\");\n employeesList.add(100,\"Paco\");\n employeesList.add(400,\"Roberto\");\n */\n }",
"public ArrayList<Item> createItemList() {\n return itemLines\n .stream()\n .map(this::writeLineItemNumber)\n .map(this::createItem)\n .collect(Collectors.toCollection(ArrayList::new));\n }",
"@NotNull\n private static List<P> list(P... ps) {\n List<P> result = new ArrayList<>();\n Collections.addAll(result, ps);\n return result;\n }",
"private void addErrors(List<ErrorBean> errorList, AzureChatException e) {\n\t\tErrorBean errorBean = new ErrorBean();\n\t\terrorBean.setExcpMsg(e.getExcpMsg());\n\t\terrorBean.setExcpType(e.getExcpType());\n\t\terrorList.add(errorBean);\n\t}",
"static List<SubstantiveParametersParameterItem> createSubstantiveParametersParameterItem(List<String> collectionOfItems) {\n List<SubstantiveParametersParameterItem> substantiveParametersParameterItemList = new ArrayList<>();\n for (String item: collectionOfItems) {\n substantiveParametersParameterItemList.add(new SubstantiveParametersParameterItem(item));\n }\n return substantiveParametersParameterItemList;\n }",
"@Override\n\tpublic Map addBill(List<Map<String,Object>> list, String openNumber) {\n\t\t\n\t\tMap resMap = new HashMap();\n\t\tList<Integer> gList = billMapper.selectGdFromItemIds(list);\n\t\tList<Map<String,Object>> gmList = new ArrayList<Map<String,Object>>();\n\t\tList<Map<String,Object>> qmList = new ArrayList<Map<String,Object>>();\n\t\tfor(Map l:list){\n\t\t\tboolean isGItem = false;\n\t\t\tfor(int i:gList){\n\t\t\t\tif((int)l.get(\"itemFileId\") == i){\n\t\t\t\t\tgmList.add(l);\n\t\t\t\t\tisGItem = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!isGItem){\n\t\t\t\tqmList.add(l);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!gmList.isEmpty()){\n\t\t\tresMap = billService.addBill(null, gmList, openNumber, \"1\", \"\",true);\t\n\t\t\tif(resMap.containsKey(\"error\")){\n\t\t\t\treturn resMap;\n\t\t\t}\n\t\t} \n\t\t\n\t\tif(!qmList.isEmpty()){\n\t\t\tresMap = billService.addYxePreBill(qmList,openNumber);\n\t\t}\n\t\treturn resMap;\n\t}",
"public DoublyLinkedListHeader addObject(DoublyLinkedListHeader list) {\r\n\t\tSystem.out.println(\"Enter an index!\");\r\n\t\tint index = scanInt();\r\n\t\tSystem.out.println(\"Enter the Integer Object!\");\r\n\t\tInteger obj = scanInt();\r\n\t\tif(!list.insert(obj, index)) {\r\n\t\t\tSystem.out.println(\"Invalid Index! The list is not modified\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"The list has been modified!\");\r\n\t\t}\r\n\t\treturn list;\r\n\t}",
"public int insertBatch(List list){\n \tif(list==null||list.size()<=0)\n \t\treturn 0;\n \tint rows = 0;\n \trows = super.insertBatch(\"Resourcesvalue.insert\", list);\n \treturn rows;\n }",
"@Override\n\tpublic void beforeRegister(List<Element> list) {\n\n\t}",
"public void addHotel(int hotelId, List<Hotel_Room_Detail> hotelRoomDetailList){\n\n }",
"protected abstract void createItemsForAddedObjects(Layout layout,\r\n boolean doLayout);",
"private void createList(String[] toAdd) {\n FixData fixedList;\n for (int i = 0; i < toAdd.length; ++i) {\n fixedList = new FixData(toAdd[i]);\n if (pickAdjacent(fixedList))\n this.head = createListWrap(this.head, fixedList);\n else\n fixedList = null;\n }\n }",
"@Test(expected = IllegalStateException.class)\n public void testSet_After_Add() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n instance.add(3);\n\n instance.set(2);\n\n }",
"private void addAction( List actions, String label, List paramExtractors,\n int pos )\n {\n PSMapPair entry = new PSMapPair( label, paramExtractors );\n\n if ( pos <= 0 )\n actions.add( 0, entry);\n else if ( pos > actions.size())\n actions.add( entry);\n else\n actions.add( pos, entry);\n }",
"void addAll(intList list) throws IllegalAccessException;",
"public void addToList(View view) {\n Items newItem = new Items();\n EditText ETNew = (EditText) findViewById(R.id.ETNew);\n newItem.todo = ETNew.getText().toString();\n newItem.done = false;\n helper.create(newItem);\n Toast.makeText(this, \"Item added\", Toast.LENGTH_SHORT).show();\n adaptList2();\n ETNew.setText(\"\");\n ETNew.setHint(\"my new to-do\");\n }",
"@Override\r\n\tpublic void updateShoppingList(ShoppingList sl) throws IllegalArgumentException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tshoppingListMapper.update(sl);\r\n\t}",
"ListItem(Element[] elements) {\n\t\tsuper(elements);\n\t}",
"public void add(T ob) throws ToDoListException;",
"public void addIngredientRecipe(ArrayList<IngredientRecipePOJO> ingr);",
"void insertBatch(List<InspectionAgency> recordLst);",
"void add(int index, Object element);",
"public void addPoItems(List<ShoppingCartItemBean> items, int pid) throws Exception {\n String query = \"INSERT INTO POItem (id, bid, price, quantity) VALUES (?,?,?,?)\";\n try (Connection con = this.ds.getConnection();\n PreparedStatement p = con.prepareStatement(query)) {\n for (ShoppingCartItemBean item : items) {\n p.setInt(1, pid);\n p.setString(2, item.getBook().getBid());\n p.setInt(3, item.getPrice());\n p.setInt(4, item.getQuantity());\n p.addBatch();\n }\n p.executeBatch();\n p.close();\n con.close();\n }\n }",
"private void addToLineItem(LineItem newLineItem) {\r\n LineItem[] tempItems = new LineItem[lineItems.length + 1];\r\n System.arraycopy(lineItems, 0, tempItems, 0, lineItems.length);\r\n tempItems[lineItems.length] = newLineItem;\r\n lineItems = tempItems;\r\n }",
"@org.junit.Test(timeout = 10000)\n public void testEmptyList_add41324() throws java.lang.Exception {\n java.util.ArrayList<io.protostuff.Foo> foos = new java.util.ArrayList<io.protostuff.Foo>();\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyList_add41324__5 = // MethodCallAdder\nwriteListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyList_add41324__5, 0);\n writeListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Foo> parsedFoos = parseListFrom(in, io.protostuff.SerializableObjects.foo.cachedSchema());\n junit.framework.TestCase.assertTrue(((parsedFoos.size()) == (foos.size())));\n int i = 0;\n for (io.protostuff.Foo f : parsedFoos)\n io.protostuff.SerializableObjects.assertEquals(foos.get((i++)), f);\n \n }",
"public void addItem(Object obj) {\n items.add(obj);\n }",
"public int insertBatch(List list){\n \tif(list==null||list.size()<=0)\n \t\treturn 0;\n \tint rows = 0;\n \trows = super.insertBatch(\"Rolesvalue.insert\", list);\n \treturn rows;\n }",
"public void testAdd() {\r\n assertEquals(0, list.size());\r\n list.add(\"A\");\r\n assertEquals(1, list.size());\r\n list.add(\"B\");\r\n assertEquals(2, list.size());\r\n assertEquals(\"B\", list.get(1));\r\n\r\n }",
"@Test\n public void TestEditOne(){\n ArrayList<Task> listToEdit = new ArrayList<Task>();\n ArrayList<Integer> indexList = new ArrayList<Integer>();\n String message;\n \n indexList.add(3);\n listToEdit.add(new Task(\"New item 99\"));\n message = logicObject.editItem(listToEdit, indexList, true, true);\n assertEquals(\"Error: There is no item at this index.\", message);\n assertEquals(\"Item 1\", logicObject.listOfTasks.get(0).getName());\n assertEquals(\"Item 2\", logicObject.listOfTasks.get(1).getName());\n assertEquals(\"Item 3\", logicObject.listOfTasks.get(2).getName());\n \n indexList.clear();\n indexList.add(2);\n message = logicObject.editItem(listToEdit, indexList, true, true);\n assertEquals(\"Item(s) successfully edited.\", message);\n assertEquals(\"Item 1\", logicObject.listOfTasks.get(0).getName());\n assertEquals(\"Item 2\", logicObject.listOfTasks.get(1).getName());\n assertEquals(\"New item 99\", logicObject.listOfTasks.get(2).getName());\n \n indexList.clear();\n indexList.add(-1);\n message = logicObject.editItem(listToEdit, indexList, true, true);\n assertEquals(\"Error: There is no item at this index.\", message);\n assertEquals(\"Item 1\", logicObject.listOfTasks.get(0).getName());\n assertEquals(\"Item 2\", logicObject.listOfTasks.get(1).getName());\n assertEquals(\"New item 99\", logicObject.listOfTasks.get(2).getName());\n \n indexList.clear();\n indexList.add(-2);\n message = logicObject.editItem(listToEdit, indexList, true, true);\n assertEquals(\"Error: There is no item at this index.\", message);\n assertEquals(\"Item 1\", logicObject.listOfTasks.get(0).getName());\n assertEquals(\"Item 2\", logicObject.listOfTasks.get(1).getName());\n assertEquals(\"New item 99\", logicObject.listOfTasks.get(2).getName());\n }",
"private static void addObjectsInList () {\n //Create objects Users\n User userFirst = new User (1, \"Иван\", \"Иванович\", \"Иванов\", \"MC234567, 15.08.2010\", \"г. Жодино, ул. Калиновского 5-8\",\n \"+375296785643\", \"ivan\", \"123\", \"[email protected]\", 2);\n User userSecond = new User (2, \"Петр\", \"Петрович\", \"Петров\", \"MC 456789, 12.06.1999\", \"г. Минск, ул. Энгельса 6-8\",\n \"+375447774323\", \"petr\", \"456\", \"[email protected]\", 1);\n users.add(userFirst);\n users.add(userSecond);\n //Create object Role\n Role roleFirst = new Role (1,\"Admin\");\n Role roleSecond = new Role (2,\"User\");\n roles.add(roleFirst);\n roles.add(roleSecond);\n //Create object Account\n Account accountFirst = new Account(1, 250, \"Working\", 1);\n Account accountSecond = new Account(2, 547, \"Working\", 1);\n Account accountThird = new Account(3, 3456, \"Working\", 1);\n accounts.add(accountFirst);\n accounts.add(accountSecond);\n accounts.add(accountThird);\n //Create object payment\n Payment paymentFirst = new Payment (1, 1, \"Перевод средств\",2, Date.valueOf(\"2016-07-13\"), 50);\n Payment paymentSecond = new Payment (2, 3, \"Перевод средств\",1, Date.valueOf(\"2016-07-01\"), 100);\n Payment paymentThird = new Payment (3, 2, \"Перевод средств\",1, Date.valueOf(\"2016-06-06\"), 10);\n payments.add(paymentFirst);\n payments.add(paymentSecond);\n payments.add(paymentThird);\n }",
"@Override\n public void RegisterEntities(LinkedList<Entity> listToModify) {\n listToModify.add(test1);\n// listToModify.add(test2);\n }",
"@Test\r\n\tpublic void testAdd() {\r\n\t\tlist.add(new Munitions(23, 24, \"cuprum\"));\r\n\t\tAssert.assertEquals(16, list.size());\r\n\t\tAssert.assertTrue(list.get(15).equals(new Munitions(23, 24, \"cuprum\")));\r\n\t}",
"private void testAdd(){\n System.out.println(\"------ TESTING: add(int element) -----\");\n try{\n // add values to list, the sequence is 0,1,....,iSize-1\n for(int i = 0; i < iSize; i++) {\n // if the add method returns false the program did not work correctly\n if (!iTestList.add(i))\n throw new RuntimeException(\"FAILED -> failed to add value to list\");\n }\n }catch(RuntimeException e){\n System.out.print(e.getMessage());\n }\n }",
"public static void slide127() {\n ArrayList<String> obj = new ArrayList<String>();\n\n //This is how we add elements to an ArrayList\n obj.add(\"Alex\");\n obj.add(\"Con\");\n obj.add(\"Paul\");\n obj.add(\"Estel\");\n obj.add(\"Peter\");\n\n // Displaying elements\n System.out.println(\"Original ArrayList:\");\n for(String str:obj)\n System.out.println(str);\n\n // Add element at the specific index\n\n obj.add(0, \"Mary\");\n obj.add(1, \"Justin\");\n\n // Displaying elements\n System.out.println(\"ArrayList after add operation:\");\n for(String str:obj)\n System.out.println(str);\n\n //Remove elements from ArrayList like this\n obj.remove(\"Peter\");\n obj.remove(\"Paul\");\n\n // Displaying elements\n System.out.println(\"ArrayList after remove operation:\");\n for(String str:obj)\n System.out.println(str);\n\n // Edit element from ArrayList\n obj.set(2, \"Tom\");\n\n // Displaying elements\n System.out.println(\"ArrayList after edit operation:\");\n for(String str:obj)\n System.out.println(str);\n\n\n //Remove element from the specified index\n obj.remove(1); //Removes Second element from the List\n\n // Displaying elements\n System.out.println(\"Final ArrayList:\");\n for(String str:obj)\n System.out.println(str);\n }",
"protected PropertyList createPropertyList(PropertyList parent, \n FOEventHandler foEventHandler) throws FOPException {\n return foEventHandler.getPropertyListMaker().make(this, parent);\n }",
"@Test\n\tpublic void testAdd1() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\n\t\tint notadd = 3;\n\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\n\t\tlistObj2.add(notadd);\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t}",
"private void initList() {\n tempShopList=wdh.getTempShopList();\n final String[] listIndex=new String[tempShopList.size()];\n \n // System.out.println(tempShopList.size());\n \n for(int i=0;i<tempShopList.size();i++)\n listIndex[i]=String.valueOf(i+1); \n \n// jList1=new JList(listIndex);\n// jScrollPane1=new JScrollPane(jList1);\n// jScrollPane1.setViewportView(jList1);\n \n \n jList1.setModel(new javax.swing.AbstractListModel() {\n String[] strings1 = listIndex;\n public int getSize() { return strings1.length; }\n public Object getElementAt(int i) { return strings1[i]; }\n });\n jScrollPane1.setViewportView(jList1);\n \n }",
"public static void main(String[] args){\n \t\t\r\n \r\n \t\tArrayList<Phonebook> list = new ArrayList<Phonebook>();\r\n \t\t\r\n \t\tSystem.out.println(\"Original List\");\r\n \t\tlist.add(new Phonebook(1234567, \"[email protected]\", 1987654, \"123 qwerty lane\"));\r\n \t\tlist.add(new Phonebook(1987654, \"[email protected]\", 1994560, \"098 qwerty lane\"));\r\n \t\t\r\n \t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i).getNumber() + \", \" + list.get(i).getEmail() + \", \" + list.get(i).getCell() + \", \" + list.get(i).getAddress());\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nNew List\");\r\n\t\tlist.add(new Phonebook(2341234, \"[email protected]\", 3241563, \"122 qwerty lane\"));\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i).getNumber() + \", \" + list.get(i).getEmail() + \", \" + list.get(i).getCell() + \", \" + list.get(i).getAddress());\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nNewer List \");\r\n\t\tlist.remove(1);\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i).getNumber() + \", \" + list.get(i).getEmail() + \", \" + list.get(i).getCell() + \", \" + list.get(i).getAddress());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n \t}",
"public void addInnerObjects(HttpServletRequest request, \n HttpServletResponse response,\n String domain,\n Iterable<J> jEntity) {\n // do nothing\n }"
]
| [
"0.5623908",
"0.55551296",
"0.5374768",
"0.5360411",
"0.5305327",
"0.528654",
"0.5258247",
"0.5231532",
"0.52143115",
"0.5211452",
"0.51686263",
"0.5164508",
"0.5162876",
"0.5162284",
"0.51419073",
"0.5138412",
"0.5132839",
"0.5125278",
"0.5124486",
"0.51132214",
"0.5112535",
"0.5108969",
"0.51078117",
"0.5103986",
"0.5093824",
"0.5092494",
"0.508342",
"0.508282",
"0.5067533",
"0.5062195",
"0.505907",
"0.50448054",
"0.50401574",
"0.50397193",
"0.50158894",
"0.50150794",
"0.5014975",
"0.5012602",
"0.50055313",
"0.50037634",
"0.49986386",
"0.499788",
"0.49930206",
"0.49899894",
"0.49898255",
"0.498957",
"0.498957",
"0.4987011",
"0.498079",
"0.49805152",
"0.49718648",
"0.49683765",
"0.49669865",
"0.49642444",
"0.49474075",
"0.49430358",
"0.49318704",
"0.49187502",
"0.49186358",
"0.49149257",
"0.49143836",
"0.4905542",
"0.49037328",
"0.4894368",
"0.48938322",
"0.4890996",
"0.4883666",
"0.4881055",
"0.48796472",
"0.48774323",
"0.48719487",
"0.48709127",
"0.4869291",
"0.48673078",
"0.48665863",
"0.4864013",
"0.4860318",
"0.48574543",
"0.48567137",
"0.4853764",
"0.48527378",
"0.48494714",
"0.4840116",
"0.4836123",
"0.48353416",
"0.48339087",
"0.4826671",
"0.48241216",
"0.48223677",
"0.48176575",
"0.48160088",
"0.48145723",
"0.48070553",
"0.48070014",
"0.4800811",
"0.48007742",
"0.47929168",
"0.4789697",
"0.47840887",
"0.4782708",
"0.47776762"
]
| 0.0 | -1 |
Creates a new, properlyinitiated accounting line of the advance accounting line class specified on the Travel Authorization document | public TemSourceAccountingLine createNewAdvanceAccountingLine() {
try {
TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();
accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);
accountingLine.setCardType(TemConstants.ADVANCE); // really, card type is ignored but it is validated so we have to set something
accountingLine.setFinancialObjectCode(this.getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE, KFSConstants.EMPTY_STRING));
return accountingLine;
}
catch (IllegalAccessException iae) {
throw new RuntimeException("unable to create a new source accounting line for advances", iae);
}
catch (InstantiationException ie) {
throw new RuntimeException("unable to create a new source accounting line for advances", ie);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected TemSourceAccountingLine initiateAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setDocumentNumber(getDocumentNumber());\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setSequenceNumber(new Integer(1));\n accountingLine.setCardType(TemConstants.ADVANCE);\n if (this.allParametersForAdvanceAccountingLinesSet()) {\n accountingLine.setChartOfAccountsCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART));\n accountingLine.setAccountNumber(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT));\n accountingLine.setFinancialObjectCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE));\n }\n return accountingLine;\n }\n catch (InstantiationException ie) {\n LOG.error(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName(), ie);\n }\n catch (IllegalAccessException iae) {\n LOG.error(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName(), iae);\n }\n }",
"private static LineOfCredit createLineOfCreditObjectForPost() {\n\n\t\tLineOfCredit lineOfCredit = new LineOfCredit();\n\n\t\tCalendar now = Calendar.getInstance();\n\n\t\tString notes = \"Line of credit note created via API \" + now.getTime();\n\t\tlineOfCredit.setId(\"LOC\" + now.getTimeInMillis());\n\t\tlineOfCredit.setStartDate(now.getTime());\n\t\tnow.add(Calendar.MONTH, 6);\n\t\tlineOfCredit.setExpiryDate(now.getTime());\n\t\tlineOfCredit.setNotes(notes);\n\t\tlineOfCredit.setAmount(new Money(100000));\n\n\t\treturn lineOfCredit;\n\t}",
"protected void initiateAdvancePaymentAndLines() {\n setDefaultBankCode();\n setTravelAdvance(new TravelAdvance());\n getTravelAdvance().setDocumentNumber(getDocumentNumber());\n setAdvanceTravelPayment(new TravelPayment());\n getAdvanceTravelPayment().setDocumentNumber(getDocumentNumber());\n getAdvanceTravelPayment().setDocumentationLocationCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TravelParameters.DOCUMENTATION_LOCATION_CODE,\n getParameterService().getParameterValueAsString(TemParameterConstants.TEM_DOCUMENT.class,TravelParameters.DOCUMENTATION_LOCATION_CODE)));\n getAdvanceTravelPayment().setCheckStubText(getConfigurationService().getPropertyValueAsString(TemKeyConstants.MESSAGE_TA_ADVANCE_PAYMENT_HOLD_TEXT));\n final java.sql.Date currentDate = getDateTimeService().getCurrentSqlDate();\n getAdvanceTravelPayment().setDueDate(currentDate);\n updatePayeeTypeForAuthorization(); // if the traveler is already initialized, set up payee type on advance travel payment\n setWireTransfer(new PaymentSourceWireTransfer());\n getWireTransfer().setDocumentNumber(getDocumentNumber());\n setAdvanceAccountingLines(new ArrayList<TemSourceAccountingLine>());\n resetNextAdvanceLineNumber();\n TemSourceAccountingLine accountingLine = initiateAdvanceAccountingLine();\n addAdvanceAccountingLine(accountingLine);\n }",
"public void addAdvanceAccountingLine(TemSourceAccountingLine line) {\n line.setSequenceNumber(this.getNextAdvanceLineNumber());\n this.advanceAccountingLines.add(line);\n this.nextAdvanceLineNumber = new Integer(getNextAdvanceLineNumber().intValue() + 1);\n }",
"public TemSourceAccountingLine getAdvanceAccountingLine(int index) {\n while (getAdvanceAccountingLines().size() <= index) {\n getAdvanceAccountingLines().add(createNewAdvanceAccountingLine());\n }\n return getAdvanceAccountingLines().get(index);\n }",
"protected FinancialAccountingLine createFinancialAccountingLine(WarehouseAccounts mmAcctLine,\r\n KualiDecimal chargeAmt) {\r\n FinancialAccountingLine finAcctLine = new FinancialAccountingLine();\r\n finAcctLine.setAccountNumber(mmAcctLine.getAccountNbr());\r\n finAcctLine.setAmount(chargeAmt);\r\n finAcctLine.setBalanceTypeCode(\"AC\");\r\n finAcctLine.setChartOfAccountsCode(mmAcctLine.getFinCoaCd());\r\n finAcctLine.setFinancialDocumentLineDescription(\"Pay warehouse\"\r\n + mmAcctLine.getWarehouseCd());\r\n finAcctLine.setFinancialDocumentLineTypeCode(MMConstants.FIN_ACCT_LINE_TYP_TO);\r\n finAcctLine.setFinancialObjectCode(mmAcctLine.getFinObjectCd());\r\n finAcctLine.setFinancialSubObjectCode(mmAcctLine.getFinSubObjCd());\r\n finAcctLine.setObjectBudgetOverride(false);\r\n finAcctLine.setObjectBudgetOverrideNeeded(false);\r\n finAcctLine.setOrganizationReferenceId(\"\");\r\n finAcctLine.setOverrideCode(\"\");\r\n finAcctLine.setPostingYear(SpringContext.getBean(FinancialSystemAdaptorFactory.class)\r\n .getFinancialUniversityDateService().getCurrentFiscalYear());\r\n finAcctLine.setProjectCode(mmAcctLine.getProjectCd());\r\n finAcctLine.setReferenceNumber(\"\");\r\n finAcctLine.setReferenceOriginCode(GlConstants.getFinancialSystemOriginCode());\r\n finAcctLine.setReferenceTypeCode(\"\");\r\n finAcctLine.setSalesTaxRequired(false);\r\n finAcctLine.setSubAccountNumber(mmAcctLine.getSubAcctNbr());\r\n return finAcctLine;\r\n }",
"org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine addNewExternalOrderLine();",
"RentalAgency createRentalAgency();",
"public interface LaborLedgerExpenseTransferAccountingLine extends AccountingLine, ExternalizableBusinessObject {\n\n /**\n * Gets the emplid\n * \n * @return Returns the emplid.\n */\n public String getEmplid();\n\n /**\n * Gets the laborObject\n * \n * @return Returns the laborObject.\n */\n public LaborLedgerObject getLaborLedgerObject();\n\n /**\n * Gets the payrollEndDateFiscalPeriodCode\n * \n * @return Returns the payrollEndDateFiscalPeriodCode.\n */\n public String getPayrollEndDateFiscalPeriodCode();\n\n /**\n * Gets the payrollEndDateFiscalYear\n * \n * @return Returns the payrollEndDateFiscalYear.\n */\n public Integer getPayrollEndDateFiscalYear();\n\n /**\n * Gets the payrollTotalHours\n * \n * @return Returns the payrollTotalHours.\n */\n public BigDecimal getPayrollTotalHours();\n\n /**\n * Gets the positionNumber\n * \n * @return Returns the positionNumber.\n */\n public String getPositionNumber();\n\n /**\n * Sets the emplid\n * \n * @param emplid The emplid to set.\n */\n public void setEmplid(String emplid);\n\n /**\n * Sets the laborLedgerObject\n * \n * @param laborLedgerObject The laborLedgerObject to set.\n */\n public void setLaborLedgerObject(LaborLedgerObject laborLedgerObject);\n\n /**\n * Sets the payrollEndDateFiscalPeriodCode\n * \n * @param payrollEndDateFiscalPeriodCode The payrollEndDateFiscalPeriodCode to set.\n */\n public void setPayrollEndDateFiscalPeriodCode(String payrollEndDateFiscalPeriodCode);\n\n /**\n * Sets the payrollEndDateFiscalYear\n * \n * @param payrollEndDateFiscalYear The payrollEndDateFiscalYear to set.\n */\n public void setPayrollEndDateFiscalYear(Integer payrollEndDateFiscalYear);\n\n /**\n * Sets the payrollTotalHours\n * \n * @param payrollTotalHours The payrollTotalHours to set.\n */\n public void setPayrollTotalHours(BigDecimal payrollTotalHours);\n\n /**\n * Sets the positionNumber\n * \n * @param positionNumber The positionNumber to set.\n */\n public void setPositionNumber(String positionNumber);\n}",
"private void setUpLedger() {\n _ledgerLine = new Line();\n _ledgerLine.setStrokeWidth(Constants.STROKE_WIDTH);\n _staffLine = new Line();\n _staffLine.setStrokeWidth(1);\n }",
"public void setAdvanceAccountingLines(List<TemSourceAccountingLine> advanceAccountingLines) {\n this.advanceAccountingLines = advanceAccountingLines;\n }",
"Line createLine();",
"public OrderLine() {\n }",
"protected void create(AttributeList attributeList) {\n super.create(attributeList);\n oracle.jbo.server.SequenceImpl s =new oracle.jbo.server.SequenceImpl(\"MNJ_MFG_FABINS_INVL_S\",getDBTransaction());\n oracle.jbo.domain.Number sVal = s.getSequenceNumber();\n setLineId(sVal);\n }",
"private RentalAgreement createRentalAgreement(Order order, int discountPercentage, List<LocalDate> holidays) {\n RentalAgreement rentAgree = new RentalAgreement(order, discountPercentage, holidays);\n\n return rentAgree;\n }",
"RecordSet generatePremiumAccounting(Record inputRecord);",
"Rental createRental();",
"private Line addLine() {\n\t\t// Create a new line\n\t\tLine line = new Line(doily.settings.getPenScale(), \n\t\t\t\tdoily.settings.getPenColor(), doily.settings.isReflect());\n\t\tdoily.lines.add(line);\n\t\treturn line;\n\t}",
"public XpeDccContractLineImpl() {\n }",
"public OMAbstractLine() {\n super();\n }",
"public void createESEAccount(String farmerId, String farmerAcctNo, Date txnTime, int type);",
"ShipmentItemBilling createShipmentItemBilling();",
"org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine insertNewExternalOrderLine(int i);",
"public DerivationLine()\n {\n super();\n this.clauses = new ArrayList<>();\n }",
"private Account createAccount4() {\n Account account = new Account(\"123456004\", \"Chad I. Cobbs\",\n new SimpleDate(4, 23, 1976).asDate(), \"[email protected]\", true, false,\n new CreditCard(\"1234123412340004\"), new CreditCard(\"4320123412340005\"));\n\n final Percentage percent50 = new Percentage(0.5);\n final Percentage percent25 = new Percentage(0.25);\n account.addBeneficiary(\"Jane\", percent25);\n account.addBeneficiary(\"Amy\", percent25);\n account.addBeneficiary(\"Susan\", percent50);\n return account;\n }",
"Document newWithdrawal(String reason, String expenseCategory,\n double amount, String effectiveDate);",
"public Loyalty() {}",
"Credit(int accountNumber, double creditLine, double outstandingBalance, double interestRate){\n super(accountNumber, outstandingBalance);\n this.creditLine = creditLine;\n this.interestRate = interestRate;\n }",
"public OMAbstractLine(int rType, int lType, int dcType) {\n super(rType, lType, dcType);\n }",
"public LineStroker() {\n }",
"public static Line CreateLine(String id) { return new MyLine(id); }",
"protected List getPersistedAdvanceAccountingLinesForComparison() {\n return SpringContext.getBean(AccountingLineService.class).getByDocumentHeaderIdAndLineType(getAdvanceAccountingLineClass(), getDocumentNumber(), TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n }",
"private static void testCreateLineOfCreditForAnAccountHolder(AccountHolderType accountHolderType,\n\t\t\tboolean shouldHaveCustomFields) throws MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testCreateLineOfCreditForAGroup\");\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\n\t\tLineOfCredit lineOfCredit = createLineOfCreditObjectForPost();\n\n\t\t// Set owner's key: setClientKey for a Client and setGroupKey for a Group\n\t\tswitch (accountHolderType) {\n\t\tcase CLIENT:\n\t\t\tlineOfCredit.setClientKey(DemoUtil.getDemoClient(null).getClientKey());\n\t\t\tbreak;\n\t\tcase GROUP:\n\t\t\tlineOfCredit.setGroupKey(DemoUtil.getDemoGroup(null).getGroupKey());\n\t\t\tbreak;\n\t\t}\n\n\t\tif (shouldHaveCustomFields) {\n\t\t\tlineOfCredit.setCustomFieldValues(getCustomFieldsValuesFromDemoLoc());\n\t\t}\n\n\t\t// POST the LoC in Mambu\n\t\tSystem.out.println(\"Creating LoC with Start Date=\" + lineOfCredit.getStartDate() + \"\\tExpiry Date=\"\n\t\t\t\t+ lineOfCredit.getExpireDate());\n\t\tLineOfCredit postedLineOfCredit = linesOfCreditService.createLineOfCredit(lineOfCredit);\n\t\t// log the details to the console\n\t\tlogLineOfCreditDetails(postedLineOfCredit);\n\t\tSystem.out.println(\"LineOfCredit created today: \" + new Date());\n\n\t}",
"public KochLine getLineA(){\n\t\tKochLine lineA= new KochLine(p1,p2);\n\t\treturn lineA;\n\t\t\n\t}",
"public TransitRouteLine createFromParcel(Parcel parcel) {\n return new TransitRouteLine(parcel);\n }",
"gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak.Aa addNewAa();",
"public AnnualLease(AnnualLeaseModel model)\t\t{ super(model);\t\t}",
"private OrderLine insertOrderLine(Order order,\n SalesOrderLineInformation salesOrderLineInformation, Organization org, Warehouse warehouse,\n long lineNo) throws Exception {\n OrderLine orderLine = null;\n JsonToDataConverter fromJsonToData = new JsonToDataConverter();\n try {\n orderLine = (OrderLine) fromJsonToData.toBaseOBObject(salesOrderLineInformation\n .getOrderLineJSON());\n orderLine.setCreatedBy(order.getCreatedBy());\n orderLine.setCreationDate(new Date());\n orderLine.setUpdatedBy(order.getCreatedBy());\n orderLine.setUpdated(new Date());\n orderLine.setOrganization(org);\n if (warehouse.getIbdoWarehousetype().equals(\"FACST_External\")) {\n orderLine.setOrganization(order.getOrganization());\n }\n orderLine.setSalesOrder(order);\n orderLine.setPartnerAddress(null);\n orderLine.setWarehouse(warehouse);\n orderLine.setNewOBObject(true);\n orderLine.setProduct(salesOrderLineInformation.getProduct());\n orderLine.setCreateReservation(SOConstants.StockReservationAutomatic);\n orderLine.setOrderedQuantity(salesOrderLineInformation.getQuantity());\n orderLine.setWarehouseRule(salesOrderLineInformation.getWarehouseRule());\n orderLine.setLineNo(lineNo);\n orderLine.setIbdoPoid(salesOrderLineInformation.getOrderLineJSON().getString(\"id\"));\n } catch (JSONException e) {\n LOG.error(e.getMessage(), e);\n } catch (Exception e) {\n LOG.error(e.getMessage(), e);\n throw new Exception(e.toString());\n }\n OBDal.getInstance().save(orderLine);\n return orderLine;\n }",
"private void createPassenger() {\n account = new Account(\"driver\", \"password\", \"[email protected]\",\n \"Dan\", \"20 Howard Street\", 1234567, 64278182123L);\n }",
"@Test\n\tpublic void saveOrderLine() {\n\t\t// TODO: JUnit - Populate test inputs for operation: saveOrderLine \n\t\tOrderLine orderline_1 = new ecom.domain.OrderLine();\n\t\tservice.saveOrderLine(orderline_1);\n\t}",
"public MOrder createTransferOrder(Integer newDocTypeID) throws Exception{\n\t\t// Crear el pedido idéntico\n\t\tMOrder newOrder = new MOrder(getCtx(), 0, get_TrxName());\n\t\tMOrder.copyValues(this, newOrder);\n\t\tnewOrder.setC_DocTypeTarget_ID(newDocTypeID);\n\t\tnewOrder.setC_DocType_ID(newDocTypeID);\n\t\t// Intercambiar el depósito y organización origen por destino \n\t\tnewOrder.setAD_Org_ID(getAD_Org_Transfer_ID());\n\t\tnewOrder.setAD_Org_Transfer_ID(getAD_Org_ID());\n\t\tnewOrder.setM_Warehouse_ID(getM_Warehouse_Transfer_ID());\n\t\tnewOrder.setM_Warehouse_Transfer_ID(getM_Warehouse_ID());\n\t\tnewOrder.setRef_Order_ID(getID());\n\t\tnewOrder.setDocStatus(DOCSTATUS_Drafted);\n\t\tnewOrder.setDocAction(DOCACTION_Complete);\n\t\tnewOrder.setProcessed(false);\n\t\t// Guardar\n\t\tif(!newOrder.save()){\n\t\t\tthrow new Exception(CLogger.retrieveErrorAsString());\n\t\t}\n\t\t// Copiar las líneas\n\t\tMOrderLine newOrderLine;\n\t\tBigDecimal pendingQty;\n\t\tfor (MOrderLine orderLine : getLines(true)) {\n\t\t\tnewOrderLine = new MOrderLine(getCtx(), 0, get_TrxName());\n\t\t\tMOrderLine.copyValues(orderLine, newOrderLine);\n\t\t\tpendingQty = orderLine.getQtyOrdered().subtract(orderLine.getQtyDelivered());\n\t\t\t\n\t\t\tnewOrderLine.setC_Order_ID(newOrder.getID());\n\t\t\tnewOrderLine.setQty(pendingQty);\n\t\t\tnewOrderLine.setQtyReserved(BigDecimal.ZERO);\n\t\t\tnewOrderLine.setQtyInvoiced(pendingQty);\n\t\t\tnewOrderLine.setQtyDelivered(BigDecimal.ZERO);\n\t\t\tnewOrderLine.setQtyTransferred(BigDecimal.ZERO);\n\t\t\tnewOrderLine.setPrice(orderLine.getPriceEntered());\n\t\t\tnewOrderLine.setRef_OrderLine_ID(orderLine.getID());\n\t\t\tnewOrderLine.setProcessed(false);\n\t\t\tnewOrderLine.setM_Warehouse_ID(newOrder.getM_Warehouse_ID());\n\t\t\tnewOrderLine.setAD_Org_ID(newOrder.getAD_Org_ID());\n\t\t\tif(!newOrderLine.save()){\n\t\t\t\tthrow new Exception(CLogger.retrieveErrorAsString());\n\t\t\t}\n\t\t}\n\t\treturn newOrder;\n\t}",
"public CDAccount() {\r\n\t\t//termOfCD = 0;\r\n\t\t//maturityDate = new DateInfo();\r\n\t}",
"public Account(String newAcctNo, String newCID, String newType, double newBalance) {\n\t\tacctNo = newAcctNo + \"\"; \n\t\tcid = newCID;\n type = newType;\n\t\tbalance = newBalance;\n\t}",
"public Line(){\n\t\t\n\t}",
"@Override\n\tpublic void createAgence(Agence a) {\n\t\t\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry addNewDebts();",
"public void createAccount() {\n System.out.println(\"Would you like to create a savings or checking account?\");\n String AccountRequest = input.next().toLowerCase().trim();\n createAccount(AccountRequest);\n\n }",
"public com.vodafone.global.er.decoupling.binding.request.ModifyBillingcycle createModifyBillingcycle()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ModifyBillingcycleImpl();\n }",
"RentalObject createRentalObject();",
"public void createLine(long id, SupplierSettlementLine line) throws CoreException {\n try (Response response = clientApi.post(SUPPLIER_SETTLEMENTS + id + \"/lines\", line)) {\n readResponse(response, String.class);\n // extract id from return location\n String locationUri = response.getHeaderString(\"Location\");\n Long lineId = Long.parseLong(locationUri.substring(locationUri.lastIndexOf(\"/\") + 1));\n line.setId(lineId);\n }\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.BusinessIndustryLicense addNewBusinessIndustryLicenses();",
"public LoyaltyCard(String theTitle, String theFirstName, \r\n String theLastName, String street, \r\n String town, String postcode, \r\n String theCardNumber, int thePoints)\r\n {\r\n title = theTitle;\r\n firstName = theFirstName;\r\n lastName = theLastName;\r\n address = new LoyaltyCardAddress(street, town, postcode);\r\n cardNumber = theCardNumber;\r\n points = thePoints; \r\n }",
"Exploitation createExploitation();",
"public account(int acc,int Id,String Atype,double bal ){\n this.accNo = acc;\n this.id = Id;\n this.atype = Atype;\n this.abal = bal;\n }",
"public Invoice createInvoice(Order order);",
"public Account(String owner, int ownerID, int accountID, double growthRate){\n this.owner = owner;\n this.ownerID = ownerID;\n this.accountID = accountID;\n this.growthRate = growthRate;\n \n }",
"public void createInvoice() {\n\t}",
"public void makeLine() {\n \t\tList<Pellet> last_two = new LinkedList<Pellet>();\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 2));\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 1));\n \n \t\tPrimitive line = new Primitive(GL_LINES, last_two);\n \t\tMain.geometry.add(line);\n \n \t\tActionTracker.newPolygonLine(line);\n \t}",
"public JournalEntryLine() {\n this(DSL.name(\"JOURNAL_ENTRY_LINE\"), null);\n }",
"public CreateAccout() {\n initComponents();\n showCT();\n ProcessCtr(true);\n }",
"private void makeDeposit() {\n\t\t\r\n\t}",
"public TravelAuthorizationDocument toCopyTA() throws WorkflowException {\n TravelAuthorizationDocument doc = (TravelAuthorizationDocument) SpringContext.getBean(DocumentService.class).getNewDocument(TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT);\n toCopyTravelAuthorizationDocument(doc);\n\n doc.getDocumentHeader().setDocumentDescription(TemConstants.PRE_FILLED_DESCRIPTION);\n doc.getDocumentHeader().setOrganizationDocumentNumber(\"\");\n doc.setApplicationDocumentStatus(TravelAuthorizationStatusCodeKeys.IN_PROCESS);\n doc.setTravelDocumentIdentifier(null); // reset, so it regenerates\n\n doc.initiateAdvancePaymentAndLines();\n\n return doc;\n }",
"protected Ccr createCcr(CcRecordType type) {\n\t\tif (type == null) {\n\t\t\tthrow new NullPointerException(\"cannot create a new CCR without a type\");\n\t\t}\n\n\t\tlong accountingRecordNumber = getRecordNumber();\n\t\tDiameterClientRequest request = _client.newAuthRequest(ChargingConstants.COMMAND_CC, true);\n\n\t\tDiameterAVP avp = new DiameterAVP(ChargingUtils.getServiceContextIdAVP());\n\t\tavp.setValue(UTF8StringFormat.toUtf8String(getServiceContextId()), false);\n\t\trequest.addDiameterAVP(avp);\n\n\t\tavp = new DiameterAVP(ChargingUtils.getCcRequestTypeAVP());\n\t\tavp.setValue(EnumeratedFormat.toEnumerated(type.getValue()), false);\n\t\trequest.addDiameterAVP(avp);\n\n\t\tCcr res = new Ccr(request, getVersion());\n\t\tres.setRequestNumber(accountingRecordNumber);\n\t\t\n\t\treturn res;\n\t}",
"public HLCPaymentDetails() { }",
"@Override\n public void toCopy() throws WorkflowException {\n super.toCopy();\n travelAdvancesForTrip = null;\n setTravelDocumentIdentifier(null);\n if (!(this instanceof TravelAuthorizationCloseDocument)) { // TAC's don't have advances\n initiateAdvancePaymentAndLines();\n }\n }",
"private Account createAccount8() {\n Account account = new Account(\"123456008\", \"Jean Sans Enfant\",\n new SimpleDate(4, 23, 1976).asDate(), \"[email protected]\", true, false, new CreditCard(\"4320123412340008\"));\n\n return account;\n }",
"public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }",
"com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();",
"public void propagateAdvanceInformationIfNeeded() {\n if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().getTravelAdvanceRequested() != null) {\n if (!ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setCheckTotalAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n final TemSourceAccountingLine maxAmountLine = getAccountingLineWithLargestAmount();\n if (!TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus())) {\n getAdvanceAccountingLines().get(0).setAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n if (!allParametersForAdvanceAccountingLinesSet() && !TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus()) && !advanceAccountingLinesHaveBeenModified(maxAmountLine)) {\n // we need to set chart, account, sub-account, and sub-object from account with largest amount from regular source lines\n if (maxAmountLine != null) {\n getAdvanceAccountingLines().get(0).setChartOfAccountsCode(maxAmountLine.getChartOfAccountsCode());\n getAdvanceAccountingLines().get(0).setAccountNumber(maxAmountLine.getAccountNumber());\n getAdvanceAccountingLines().get(0).setSubAccountNumber(maxAmountLine.getSubAccountNumber());\n }\n }\n // let's also propogate the due date\n if (getTravelAdvance().getDueDate() != null && !ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setDueDate(getTravelAdvance().getDueDate());\n }\n }\n }",
"public nc.itf.crd.webservice.izyhtwebservice.FeeAccrDataDocument.FeeAccrData addNewFeeAccrData()\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().add_element_user(FEEACCRDATA$0);\n return target;\n }\n }",
"public CreateLineCanvas(CanvasApp canvasApp) {\n\t\tthis.cmdAppliedCanvas=canvasApp;\n\t}",
"public UserAcct() {\r\n }",
"TRule createTRule();",
"public Receipt(Purchase p) {\r\n this.purch=p;\r\n totalPurch=0;\r\n totalDisc=0;\r\n \r\n db= new FakeDataBase();\r\n c= new Customer(db.getCustomerDbItem(purch.getCustIdx()));\r\n //System.out.println(c.toString());\r\n lineItem = new LineItem[0];\r\n generateLineItems();\r\n }",
"public ILoA withdraw(int amount, int accNum) {\n if (accNum == this.first.accountNum)\n return new ConsLoA(this.first.accWit(amount), this.rest);\n else return new ConsLoA\n (this.first, this.rest.withdraw(amount, accNum));\n }",
"public Department(int deptId, int trId, int amount, int accId, ArrayList<Account> list) {\n\t\tdept_id = deptId;\n\t\ttr_id = trId;\n\t\tamt = amount;\n\t\tacc_id = accId;\n\t\taccountList = list;\n\t}",
"public void addCommissionAccounts(CommissionAccount commissionAccount);",
"public static void M_RequisitionLine(MRequisitionLine rl) {\n\t\tMPPMRP mrp = getQuery(rl, null, null).firstOnly();\n\t\tMRequisition r = new MRequisition(rl.getCtx(), rl.getM_Requisition_ID(), rl.get_TrxName());\n\t\tif (mrp == null) {\n\t\t\tmrp = new MPPMRP(rl.getCtx(), 0, rl.get_TrxName());\n\t\t\tmrp.setM_Requisition_ID(rl.getM_Requisition_ID());\n\t\t\tmrp.setM_RequisitionLine_ID(rl.getM_RequisitionLine_ID());\n\t\t}\n\t\tmrp.setM_Requisition(r);\n\t\tmrp.setAD_Org_ID(rl.getAD_Org_ID());\n\t\tmrp.setName(\"MRP\");\n\t\tmrp.setDescription(rl.getDescription());\n\t\tmrp.setM_Product_ID(rl.getM_Product_ID());\n\t\tmrp.setC_BPartner_ID(rl.getC_BPartner_ID());\n\t\tmrp.setPriority(r.getPriorityRule());\n\t\t// We create a MRP record only for Not Ordered Qty. The Order will\n\t\t// generate a MRP record for Ordered Qty.\n\t\t/**\n\t\t * Libero to Libertya migration Requisition line doesn't have qtyOrdered\n\t\t */\n\t\tmrp.setQty(rl.getQty());// .subtract(rl.getQtyOrdered()));\n\t\t// MRP record for a requisition will be ALWAYS Drafted because\n\t\t// a requisition generates just Planned Orders (which is a wish list)\n\t\t// and not Scheduled Receipts\n\t\t// mrp.setDocStatus(DocAction.STATUS_Drafted);\n\t\tmrp.save();\n\t}",
"CreateACLResult createACL(CreateACLRequest createACLRequest);",
"@Test\n public void createBillingLineTestHappyPath() {\n\n Billinglines BillingLineObj = new Billinglines();\n\n BillingLineObj.setOrderId(\"b1375915-6c3d-4df5-aac2-aaf400e3ebab\");\n BillingLineObj.setPlannerId(\"90C44CAE-2A4A-4B5D-A5EC-AA9500A6C839\");\n BillingLineObj.setProductId(\"3B50FC9A-26B1-42C7-A7B4-AACB0084B9E4\");\n BillingLineObj.setStartMonth(\"2019-11-30\");\n BillingLineObj.setDurationInMonths(2);\n\n // final JSONArray arr = new JSONArray();\n\n /*for(int i = 0 ; i< list.size() ; i++) {\n final JSONObject obj = new JSONObject();\n p = list.get(i);\n obj.add(\"id\", p.getId());\n arr.add(obj);\n }\n\n\n for(int i = 0 ; i< list.size() ; i++) {\n final JSONObject obj = new JSONObject();\n p = list.get(i);\n obj.add(\"date\", new MyDateFormatter().getStringFromDateDifference(p.getCreationDate()));\n obj.add(\"value\", p.getValue());\n }*/\n\n BillingLineObj.setBillingLineBuyingAreaRevenues(Arrays.asList(new String[]{\"id\",\"8798f1f5-cd1b-455e-b44a-aacb00845536\"}));\n BillingLineObj.setMonthBuyingAreaRevenues(Arrays.asList(new String[]{\"date\",\"2019-11-30\"}));\n //BillingLineObj.setValue(444);\n BillingLineObj.setRevenue(444);\n String json = Utilities.createJsonObject(BillingLineObj);\n System.out.println(\">>>>>>>\\n\\n\\n\" + json);\n\n Response response = APIRequests.PostAPI(path, json);\n Assert.assertEquals(\"Check status codes for successful response \", 200,response.getStatusCode());\n System.out.println(\">>>>> \" + response.getStatusCode());\n\n }",
"public void createAccount(String accountType, double balance){\r\n // check what is the type of the account being created\r\n /* update the list each time an account is being created and then put it into the hashtable. Then increase the\r\n counter do this for each of the following accounts each time an account is created*/\r\n switch (accountType){\r\n case \"1\":\r\n credits[creditCounter]= new CreditCardAccount(balance);\r\n allAccounts.replace(\"CreditCard\",credits);\r\n creditCounter++;\r\n break;\r\n case \"2\":\r\n lineOfCredits[lineOfCreditCounter] = new LineOfCreditAccount(balance);\r\n allAccounts.replace(\"LineOfCredit\",lineOfCredits);\r\n lineOfCreditCounter++;\r\n break;\r\n case \"3\":\r\n chequing[chequingCounter] = new ChequingAccount(balance);\r\n allAccounts.replace(\"Chequing\",chequing);\r\n chequingCounter++;\r\n break;\r\n case \"4\":\r\n saving[savingCounter] = new SavingsAccount(balance);\r\n allAccounts.replace(\"Saving\",saving);\r\n savingCounter++;\r\n break;\r\n default:\r\n System.out.println(\"ERROR IN CREATE ACCOUNT\");\r\n break;\r\n }\r\n }",
"private void addTermsOfLoanAgreement() throws DocumentException {\n paragraph = new Paragraph(CommonString.getTermsOfAgreement(isSwedish), SECTION_TITLE_FONT);\n\n addEmptyLine(paragraph, 1);\n paragraph.add(new Paragraph(CommonString.getLoanPolicy(isSwedish), TEXT_FONT));\n paragraph.add(new Paragraph(CommonString.getPrimaryBorrowerAgreement(isSwedish), TEXT_FONT));\n addEmptyLine(paragraph, 1);\n\n document.add(paragraph);\n adminDocument.add(paragraph);\n }",
"private ArrowPoint create(double xBeg, double yBeg, double xEnd, double yEnd){\n ArrowPoint b = new ArrowPoint(xBeg, yBeg);\n ArrowPoint e = new ArrowPoint(xEnd, yEnd);\n ArrowLine l = new ArrowLine(b, e);\n e.rotateProperty().bind(l.rotateProperty());\n a.addLine(b, e, l);\n return e;\n }",
"public AccountingDocumentConfirmation addAccountingDocument(RetailscmUserContext userContext, String accountingDocumentConfirmationId, String name, Date accountingDocumentDate, String accountingPeriodId, String documentTypeId , String [] tokensExpr) throws Exception;",
"public ILoA deposit(int amount, int accNum) {\n if (this.first.accountNum == accNum)\n return new ConsLoA(this.first.accDep(amount), this.rest);\n else return new ConsLoA\n (this.first, this.rest.deposit(amount, accNum));\n }",
"Account create();",
"private boolean allocateInvoice() {\n //\tcalculate actual allocation\n BigDecimal allocationAmt = getPayAmt();\t\t\t//\tunderpayment\n\n //\t\tDANIEL -- 2do.\n float pay = getPayAmt().floatValue();\n //\n\n if (getOverUnderAmt().signum() < 0 && getPayAmt().signum() > 0) {\n allocationAmt = allocationAmt.add(getOverUnderAmt());\t//\toverpayment (negative)\n }\n /**\n *\n * \t\tModificación para diferenciar\n *\tcobros/pagos en Consulta de Asignación\n *\n */\n MAllocationHdr alloc;\n\n if (isReceipt()) {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"IsReceipt\") + \": \" + getDocumentNo() + \" [1]\", get_TrxName());\n } else {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"C_Payment_ID\") + \": \" + getDocumentNo() + \" [1]\", get_TrxName());\n }\n\n alloc.setAD_Org_ID(getAD_Org_ID());\n if (!alloc.save()) {\n log.log(Level.SEVERE, \"Could not create Allocation Hdr\");\n return false;\n }\n MAllocationLine aLine = null;\n if (isReceipt()) {\n aLine = new MAllocationLine(alloc, allocationAmt,\n getDiscountAmt(), getWriteOffAmt(), getOverUnderAmt());\n } else {\n aLine = new MAllocationLine(alloc, allocationAmt.negate(),\n getDiscountAmt().negate(), getWriteOffAmt().negate(), getOverUnderAmt().negate());\n }\n aLine.setDocInfo(getC_BPartner_ID(), 0, getC_Invoice_ID());\n aLine.setC_Payment_ID(getC_Payment_ID());\n if (!aLine.save(get_TrxName())) {\n log.log(Level.SEVERE, \"Could not create Allocation Line\");\n return false;\n }\n //\tShould start WF\n alloc.processIt(DocAction.ACTION_Complete);\n alloc.save(get_TrxName());\n m_processMsg = \"@C_AllocationHdr_ID@: \" + alloc.getDocumentNo();\n\n //\tGet Project from Invoice\n int C_Project_ID = DB.getSQLValue(get_TrxName(),\n \"SELECT MAX(C_Project_ID) FROM C_Invoice WHERE C_Invoice_ID=?\", getC_Invoice_ID());\n if (C_Project_ID > 0 && getC_Project_ID() == 0) {\n setC_Project_ID(C_Project_ID);\n } else if (C_Project_ID > 0 && getC_Project_ID() > 0 && C_Project_ID != getC_Project_ID()) {\n log.warning(\"Invoice C_Project_ID=\" + C_Project_ID\n + \" <> Payment C_Project_ID=\" + getC_Project_ID());\n }\n return true;\n }",
"@Test\n\tpublic void createAccountRRSPInvestmentTest() {\n\t\tsetChequingRadioDefaultOff();\n\t\trdbtnRrspInvestments.setSelected(true);\n\t\tdata.setRdbtnRrspInvestments(rdbtnRrspInvestments);\n\t\tAccount account = data.createNewAccount();\n\t\taccountTest = new Account(TEST_ACCOUNT_NAME, bankTest,\n\t\t\t\tAccount.Types.RRSP_INVESTMENTS.getAccountType());\n\t\tassertEquals(accountTest, account);\n\t}",
"public AirlineCompany() {\n\t}",
"public void addAccount() {\n\t\t\n\t\ttry {\n\t\t\tlog.log(Level.INFO, \"Please enter name\");\n String custName = scan.next();\n validate.checkName(custName);\n \t\tlog.log(Level.INFO, \"Select Account Type: \\n 1 for Savings \\n 2 for Current \\n 3 for FD \\n 4 for DEMAT\");\n\t\t\tint bankAccType = Integer.parseInt(scan.next());\n\t\t\tvalidate.checkAccType(bankAccType);\n\t\t\tlog.log(Level.INFO, \"Please Enter your Aadar Card Number\");\n\t\t\tString aadarNumber = scan.next();\n\t\t\tlog.log(Level.INFO, \"Please Enter Phone Number: \");\n\t\t\tString custMobileNo = scan.next();\n\t\t\tvalidate.checkPhoneNum(custMobileNo);\n\t\t\tlog.log(Level.INFO, \"Please Enter Customer Email Id: \");\n\t\t\tString custEmail = scan.next();\n\t\t\tvalidate.checkEmail(custEmail);\n\t\t\tbankop.add(accountNumber, custName, bankAccType, custMobileNo, custEmail, aadarNumber);\n\t\t\taccountNumber();\n\t\t\n\t\t} catch (AccountDetailsException message) {\n\t\t\tlog.log(Level.INFO, message.getMessage()); \n }\n\n\t}",
"com.exacttarget.wsdl.partnerapi.ObjectDefinition addNewObjectDefinition();",
"public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}",
"void openAccount(String name, String address, String cnic, int contact_no, int age, String email_address,\r\n int noOfAccounts, String incomeSource, String AccountType, String securityquestion) {\n\r\n if (bankPolicy.isEligibilityCriteriaFulfilled(age)) {// is customer eligible\r\n System.out.println(\"Criteria fulfilled\");\r\n\r\n boolean newCustomer = isItANewCustomer(cnic);\r\n\r\n if (newCustomer) {// is customer new\r\n Customer C = new Customer(Integer.toString(customers.size() + 1), cnic, name, address, contact_no,\r\n email_address, incomeSource, securityquestion);\r\n // Print and ASK FOR SECURITY QUESTION\r\n System.out.println(\"Its a new Customer\");\r\n System.out.println(\"Password: \" + C.credentials.password);\r\n // add customer to arraylist\r\n customers.add(C);\r\n // save new customer to database\r\n record.SaveCustomer(C);\r\n // save customer credentials to database\r\n record.SaveCredentials(C.credentials, C.customerID);\r\n\r\n }\r\n int index = -1;\r\n for (int i = 0; i < customers.size(); i++) {\r\n if (customers.get(i).CNIC.equals(cnic))\r\n index = i;\r\n }\r\n\r\n Account A = new Account(String.valueOf(accounts.size() + 1), getDateFormat(), AccountType,\r\n \"Pending\", customers.get(index).customerID);\r\n // add account to customer\r\n accounts.add(A);\r\n customers.get(index).customerAccount.add(A);\r\n // save account to database\r\n record.SaveAccount(A);\r\n }\r\n\r\n }",
"public SalesOrderLine post(final SalesOrderLine newSalesOrderLine) throws ClientException {\n return send(HttpMethod.POST, newSalesOrderLine);\n }",
"private Timecurve createTimecurve(String objectId, String tenantId,\n String clearingReference, Boolean needBalanceApproval, LocalDate refDate) {\n String name = \"TIMECURVE: \" + clearingReference;\n\n return createTimecurve(objectId, new Timecurve(null, tenantId, name, clearingReference,\n needBalanceApproval), refDate);\n }",
"public static AnnualLease create(String number,\n\t\t\t\t\t\t\t\t\t\t\tDate startdate,\n\t\t\t\t\t\t\t\t\t\t\tdouble amountdue,\n\t\t\t\t\t\t\t\t\t\t\tboolean paymonthly)\n\t\t\t\t\t\t\t\tthrows CreateException\t\t\t\t{\n\t\tif (_debug) System.out.println(\"AL:create:\" + number);\n\n\t\tAnnualLeaseModel model = new AnnualLeaseModel(number, amountdue, startdate, null, null, null, 0, paymonthly);\n\t\tAnnualLeaseDAO dao = null;\n\t\ttry\t{\n\t\t\tdao = getDAO();\n\t\t\tdao.dbInsert(model);\n\t\t\t/* Initially this AnnualLease has no boats or leases\t\t\t*/\n\n\t\t} catch (Exception sqlex)\t{\n\t\t\tthrow new CreateException(sqlex.getMessage());\n\t\t}\n\n\t\treturn\tnew AnnualLease(model);\n\t}",
"public void createExpense(ExpenseBE expenseBE) {\n\n }",
"Elevage createElevage();",
"public KochLine getLineC(){\n\t\tKochLine lineC= new KochLine(p3,p4);\n\t\treturn lineC;\n\t\t\n\t}",
"@Payable @Entry\n\tpublic ExternallyOwnedAccount(long initialAmount) {}"
]
| [
"0.7931215",
"0.66562474",
"0.64841574",
"0.6379891",
"0.634072",
"0.61070013",
"0.61015946",
"0.5859681",
"0.57561916",
"0.5679552",
"0.5593014",
"0.5550108",
"0.541363",
"0.5355913",
"0.535584",
"0.5350923",
"0.53481203",
"0.53129154",
"0.5300585",
"0.5274429",
"0.5240677",
"0.5227506",
"0.5208679",
"0.52061665",
"0.52056825",
"0.5200693",
"0.5200674",
"0.51819646",
"0.5168606",
"0.5150058",
"0.51403195",
"0.51377183",
"0.5060155",
"0.5057698",
"0.50537914",
"0.5053383",
"0.5047976",
"0.50390464",
"0.5033856",
"0.502932",
"0.50105536",
"0.49999118",
"0.49908382",
"0.4983668",
"0.49805364",
"0.4980426",
"0.49707654",
"0.49672815",
"0.49468958",
"0.4942216",
"0.4938958",
"0.49322253",
"0.4913384",
"0.49104765",
"0.4908104",
"0.4893541",
"0.48927262",
"0.4891523",
"0.48914486",
"0.4888692",
"0.4886102",
"0.48854566",
"0.487897",
"0.48763987",
"0.48757884",
"0.4875562",
"0.48685068",
"0.4862162",
"0.4861219",
"0.48511282",
"0.48448247",
"0.4834912",
"0.4834789",
"0.48296297",
"0.48145366",
"0.481246",
"0.48121637",
"0.4805779",
"0.48030195",
"0.48023528",
"0.48018876",
"0.4798424",
"0.47971022",
"0.4795821",
"0.47944027",
"0.47848192",
"0.47797844",
"0.47760773",
"0.4775767",
"0.47645655",
"0.47632307",
"0.4752764",
"0.47474676",
"0.4746936",
"0.47456458",
"0.47432205",
"0.4742774",
"0.47269213",
"0.47142965",
"0.47086912"
]
| 0.8264816 | 0 |
Method which resets the next next advance accounting line number back to 1; it should only be called by internal methods (like that which creates TAA's) | protected void resetNextAdvanceLineNumber() {
this.nextAdvanceLineNumber = new Integer(1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void reset() {\n next = 1000;\n }",
"public void resetCount() {\n\t\tresetCount(lineNode);\n\t}",
"public void setAccNo(int accNo) {\r\n\t\tthis.accNo = accNo+1;\r\n\t}",
"public void nextLevelTogo() {\n if (this.myClearedLines % 2 == 0) {\n myLinesToGo = 2;\n } else {\n myLinesToGo = 1;\n }\n }",
"void resetLine() {\n eof = (cursor == lineMark);\n cursor = lineMark;\n }",
"public static void resetId() {\r\n nextid=1;\r\n }",
"@Override\r\n public void resetAccount() {\r\n super.resetAccount();\r\n this.getNewSourceLine().setAmount(null);\r\n this.getNewSourceLine().setAccountLinePercent(new BigDecimal(0));\r\n }",
"protected void reset()\n {\n super.reset();\n m_seqNum = 1;\n }",
"void resetSequential() {\n seq = nextLong(PRAND, maxSeq);\n inc = minInc + nextLong(PRAND, maxInc - minInc);\n }",
"public static void RecalculateLineNumber(TargetCode nowTargetCode) {\n\t\tnowTargetCode.setLineNumber(0);\n\t\tfor (int j = 0; j < nowTargetCode.codeSize(); j++) {\n\t\t\tCode code = nowTargetCode.getCodeByIndex(j);\n\t\t\tcode.lineNumber = nowTargetCode.getLineNumber();\n\t\t\tnowTargetCode.setLineNumber(nowTargetCode.getLineNumber()+ISA.getLength(code.getCodeOp()));\n\t\t}\n\t}",
"public void addAdvanceAccountingLine(TemSourceAccountingLine line) {\n line.setSequenceNumber(this.getNextAdvanceLineNumber());\n this.advanceAccountingLines.add(line);\n this.nextAdvanceLineNumber = new Integer(getNextAdvanceLineNumber().intValue() + 1);\n }",
"public void reset() {\n\t\tfor (int i=0; i < this.WAYS; i++) {\n\t\t\tthis.cache[i] = new Line(this.alpha[i], REPL_VAL);\n\t\t}\n\t\t// set mru\n\t\tthis.cache[this.WAYS-1].state = INSERT_VAL;\n\t}",
"public static void resetStepCounter() {\n logger.debug(\"The step counter was reset to 1\");\n threadStepNumber.set(1);\n }",
"public int resetToNextPoint() {\n if (curPointIndex + 1 >= numPoints)\n return ++curPointIndex;\n int diff = curPointIndex ^ (curPointIndex + 1);\n int pos = 0; // Position of the bit that is examined.\n while ((diff >> pos) != 0) {\n if (((diff >> pos) & 1) != 0) {\n cachedCurPoint[0] ^= 1 << (outDigits - numCols + pos);\n for (int j = 1; j <= dim; j++)\n cachedCurPoint[j] ^= genMat[(j-1) * numCols + pos];\n }\n pos++;\n }\n curCoordIndex = 0;\n return ++curPointIndex;\n }",
"public void resetLines() throws IOException {\n counterSeveralLines = linesAfter;\n if (currentPath != null) {\n bufferReader.close();\n fileReader.close();\n fileReader = new FileReader(currentPath);\n bufferReader = new BufferedReader(fileReader);\n arrayPreviousLines = new String[prevSize];\n resetDateBefore();\n }\n }",
"boolean reset(final long nextLogIndex);",
"public void ResetCounter()\r\n {\r\n counter.setCurrentValue(this.startValue);\r\n }",
"public synchronized void resetCurrentIndex()\n {\n // Reset the current index to start from 1 (speechgen0001.mp3)\n currentIndex = 1;\n }",
"public static void resetValidID() {\n nextId = 0;\n }",
"public void resetForNextItem(){\n\t currentItem = iterator.next();\n\t\twhile (currentItem.getTimesCorrect() > 3){\n\t\t\tcurrentItem = iterator.next();\n\t\t}\n\t\tfirstTextBox.setText(currentItem.getStimulus());\n\t\tanswerField1.setBackground(Color.WHITE);\n\t\tanswerField1.setText(\"\");\n\t\tanswerField2.setText(\"\");\n\t\tsecondTextBox.setText(\"\");\n\t\treadyToContinue = false;\n }",
"private void setFillIndex() {\n\t\tint t = this.fillgingIndex + 1;\n\t\tif (t == NUMBEROFEACHCARD) {\n\t\t\tthis.fillgingIndex = 0;\n\t\t\tsetComponentsOfIndex();\n\t\t} else {\n\t\t\tthis.fillgingIndex = t;\n\t\t}\n\n\t}",
"public void setMuNext (int value) {\r\n Mu_next = value;\r\n }",
"public void reset() {\n index = 0;\n }",
"@Override\r\n\tpublic int reset() throws NotesApiException {\n\t\treturn 0;\r\n\t}",
"public void restart() {\n\t\td1 = 6;\n\t\td2 = 6;\n\t\tthis.rolled = false;\n\t}",
"private void advance() {\n assert currentItemState == ItemProcessingState.COMPLETED || currentIndex == -1\n : \"moving to next but current item wasn't completed (state: \" + currentItemState + \")\";\n currentItemState = ItemProcessingState.INITIAL;\n currentIndex = findNextNonAborted(currentIndex + 1);\n retryCounter = 0;\n requestToExecute = null;\n executionResult = null;\n assert assertInvariants(ItemProcessingState.INITIAL);\n }",
"public final void rewind() {\n branch = 0;\n }",
"public void resetMoveCtr() {\n\t\t\n\t\t moveCtr=0;\n\t}",
"public void resetStepCount() {\r\n\t\tstepCount = 500;\r\n\t}",
"public final void nextRow() {\n this.line++;\n }",
"public void reset() {\r\n\t\tnextTokenPos = 0;\r\n\t}",
"public void reset(){\n\t\tthis.currentIndex = 0;\n\t}",
"private void moveToNextCard() {\r\n\t\t// This is simple enough: Move the card set to the next\r\n\t\t// card and update the label and database. If we're now on\r\n\t\t// the last card, disable the Next button and make sure\r\n\t\t// the Previous button is always enabled. Then rebuild the card\r\n\t\t// itself so the correct passcodes are displayed.\r\n \tif (cardSet.getLastCard() != Cardset.FINAL_CARD) {\r\n\t\t\tcardSet.nextCard();\r\n\t\t\tbtnPrevious.setEnabled(true);\r\n\t\t\tif (cardSet.getLastCard() == Cardset.FINAL_CARD)\r\n\t\t\t\tbtnNext.setEnabled(false);\r\n\t\t\t// Save the card set to the database:\r\n\t\t\tDBHelper.saveCardset(cardSet);\r\n\t\t\trebuildCard();\r\n\t lblCardNumber.setText(getResources().getString(R.string.cardview_card_num_prompt).replace(getResources().getString(R.string.meta_replace_token), String.valueOf(cardSet.getLastCard())));\r\n \t}\r\n }",
"public void switchNextTabulator() {\r\n\t\tCTabItem[] tabItems = this.displayTab.getItems();\r\n\t\tfor (int i = 0; i < tabItems.length; i++) {\r\n\t\t\tCTabItem tabItem = tabItems[i];\r\n\t\t\tif (tabItem.getControl().isVisible()) {\r\n\t\t\t\tif (i + 1 <= tabItems.length - 1)\r\n\t\t\t\t\ttabItem.getParent().setSelection(i + 1);\r\n\t\t\t\telse\r\n\t\t\t\t\ttabItem.getParent().setSelection(0);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void resetIteration(){\n\t\titeration = 0;\n\t}",
"@Override\n void advance() {\n }",
"private void setFormedIndex() {\n\t\tint t = this.formeIndex + 1;\n\t\tif (t == NUMBEROFEACHCARD) {\n\t\t\tsetFillIndex();\n\t\t\tthis.formeIndex = 0;\n\t\t} else {\n\t\t\tthis.formeIndex = t;\n\t\t}\n\n\t}",
"public void advance( )\n {\n // Implemented by student.\n }",
"public void resetFirstRegisterNumber() {\n firstRegisterNumber = 2;\n maxRegisterUsed = 2;\n }",
"public void resetLines() {\r\n\t\tsetLines(new HashMap<String, ArrayList<Integer>>());\r\n\t}",
"public void setNextX(int myNextX){\r\n nextX = myNextX;\r\n }",
"public void reset() {\n this.index = this.startIndex;\n }",
"public void jumpToNextLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == textBuffer.getMaxLine()-1) {\n textBuffer.setCurToTail();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo+1);\n lineJumpHelper(curX);\n }",
"public void resetCurrX() {\n currX = getStartX;\n }",
"public void reset() {\n/* 54 */ this.count = 0;\n/* 55 */ this.totalTime = 0L;\n/* */ }",
"public void advance( )\r\n {\r\n\t if(isCurrent() != true){// Implemented by student.\r\n\t throw new IllegalStateException(\"no current element\");\r\n\t }\r\n\t else\r\n\t \t precursor = cursor;\r\n\t \t cursor = cursor.getLink(); // Implemented by student.\r\n }",
"public void reset () {\n\t\tclearField();\n\t\tstep_ = 0;\n\t}",
"public void advanceSimulation () {\n\t\tstep_++;\n\t}",
"public void remLineNumber(){\n ((MvwDefinitionDMO) core).remLineNumber();\n }",
"private void forward() {\n index++;\n column++;\n if(column == linecount + 1) {\n line++;\n column = 0;\n linecount = content.getColumnCount(line);\n }\n }",
"private void moveToPreviousCard() {\r\n\t\t// This is simple enough: Move the card set to the previous\r\n\t\t// card and update the label and database. If we're now on\r\n\t\t// the first card, disable the Previous button and make sure\r\n\t\t// the Next button is always enabled. Then rebuild the card\r\n\t\t// itself so the correct passcodes are displayed.\r\n \tif (cardSet.getLastCard() != Cardset.FIRST_CARD) {\r\n\t\t\tcardSet.previousCard();\r\n\t btnNext.setEnabled(true);\r\n\t\t\tif (cardSet.getLastCard() == Cardset.FIRST_CARD)\r\n\t\t\t\tbtnPrevious.setEnabled(false);\r\n\t\t\t// Save the card set to the database:\r\n\t\t\tDBHelper.saveCardset(cardSet);\r\n\t\t\trebuildCard();\r\n\t lblCardNumber.setText(getResources().getString(R.string.cardview_card_num_prompt).replace(getResources().getString(R.string.meta_replace_token), String.valueOf(cardSet.getLastCard())));\r\n \t}\r\n }",
"public static void resetCount() {\n count = 1;\n }",
"public void Reset() \r\n {\r\n _index = -1;\r\n }",
"public static void initNext() { //ініціалізація лічильника нульовим значенням\n next = 0;\n }",
"private void advanceToNextReader(){\r\n\t\tcurrentReader = null;\r\n\t\treaderQueueIndex++;\r\n\t}",
"void setNextValue() {\n this.value = this.value * 2;\n }",
"public abstract void reset(int index);",
"public void resetProductResponseIndex() {\r\n/* 41 */ this.currentProductResponseIndex = 0;\r\n/* */ }",
"public void mo12202n() {\n this.f10959n = -1;\n }",
"private void resetCounter() {\n // Obtain the most recent changelist available on the client\n String depot = parent.getDepot();\n Client client = Client.getClient();\n Changelist toChange = Changelist.getChange(depot, client);\n\n // Reset the Perforce counter value\n String counterName = parent.getCounter();\n Counter.setCounter(counterName, toChange.getNumber());\n }",
"public static final synchronized void resetLastReceivedSequenceNumber()\n {\n EASMessage.s_lastReceivedSequenceNumber = EASMessage.SEQUENCE_NUMBER_UNKNOWN;\n }",
"public static void resetLaneIDGenerator() {\r\n \tlaneCount = 0;\r\n }",
"private void rewind() {\n currentPos = markPos;\n }",
"public static void resetCounter() {\n\t\t\tcount = new AtomicInteger();\n\t\t}",
"public static void resetCounter() {\n\t\t\tcount = new AtomicInteger();\n\t\t}",
"protected void incrementSeqNum() {\n intToNetworkByteOrder(mySeqNum++, sequenceNum, 0, 4);\n }",
"void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}",
"public void resetClearedLines() {\n this.myClearedLines = 0;\n this.myLineCleared.setText(Integer.toString(this.myClearedLines));\n }",
"public final void Reset()\n\t{\n\t\t_curindex = -1;\n\t}",
"public void reset() \n {\n cumulativeTrials = 0;\n\t numTwoHeads = 0;\n\t numTwoTails = 0;\n\t numHeadTails = 0;\n }",
"private void nextMovement()\n\t{\n\t\tif(SEQUENCE.length <= 1)\n\t\t\tSEQUENCE = null;\n\t\telse\n\t\t{\n\t\t\tint[] temp = new int[SEQUENCE.length - 1];\n\t\t\tfor(int i = 1; i < SEQUENCE.length; i++)\n\t\t\t{\n\t\t\t\ttemp[i-1] = SEQUENCE[i];\n\t\t\t}\n\t\t\tSEQUENCE = temp;\n\t\t}\n\t}",
"public void resetLine() {\n reactorLine.setCurrentFrequency(reactorLine.getBaseFrequency());\n reactorLine.setCurrentAmplitude(reactorLine.getBaseAmplitude());\n reactorLine.setCurrentPhase(reactorLine.getBasePhase());\n inputAdjuster.setCurrentFrequency(inputAdjuster.getBaseFrequency());\n inputAdjuster.setCurrentAmplitude(inputAdjuster.getBaseAmplitude());\n inputAdjuster.setCurrentPhase(inputAdjuster.getBasePhase());\n this.updateOscilloscopeData();\n }",
"public void handleNextCode() {\n setCurrentCode((currentIndex + 1) % codeCount);\n }",
"public void resetToLast() {\r\n\t\taktu = last;\r\n\t}",
"public void resetForNextDay(){\n board.xml.set.generateSceneCards();\n int playerCount = board.getPlayerCount();\n Player[] players = board.getPlayers();\n for(int i = 0; i < playerCount; i++) {\n players[i].setPos(\"Trailer\");\n }\n\n board.incrementDay();\n board.resetTurn();\n if(board.getDay() > this.dayLimit){\n endGame(players);\n }\n }",
"public void resetCurrentValue()\r\n\t{\r\n\t\tborder=2;\r\n\t}",
"public void reset()\r\n\t{\r\n\t\ttimer.stop();\r\n\t\ttimer.reset();\r\n\t\tautoStep = 0;\r\n\t}",
"public void setNextRecord()\n {\n currRecord++;\n if (monitor != null)\n monitor.setPercentComplete(currRecord / maxRecords * 100);\n }",
"public void chg() {\n currentChangeStep = 3;\n }",
"public void setNext(Variable next){\n\t\tthis.next = next;\n\t}",
"public void resetNumOfWithdraws() {\n\t\tnumWithdraws = 0;\n\t}",
"public void next() {\n\t\telements[(currentElement - 1)].turnOff();\n\t\tif (elements.length > currentElement) {\n\t\t\telements[currentElement].turnOn();\n\t\t\tcurrentElement++;\n\t\t} else {\n\t\t\texit();\n\t\t}\n\t}",
"protected abstract void recombineNext();",
"public void unReset () {\n count = lastSave;\n }",
"void incrementLinesRead();",
"public void reset() {\n\t\tmCycleFlip = false;\n\t\tmRepeated = 0;\n\t\tmMore = true;\n //mOneMoreTime = true;\n \n\t\t// 추가\n\t\tmStarted = mEnded = false;\n\t\tmCanceled = false;\n }",
"public void flushCurrentLine()\n {\n line = null;\n }",
"public void setNextTurn() {\n\t\t// COMPLETE THIS METHOD\n\t\tif (turn == 1) {\n\t\t\t\n\t\t\tturn = 2;\n\t\t\tcurrentDisc = getPlayer2Disc();\n\t\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tturn = 1;\n\t\t\tcurrentDisc = getPlayer1Disc();\n\t\t\t\n\t\t}\n\t}",
"public void increment() {\n increment(1);\n }",
"public void reset()\r\n/* 89: */ {\r\n/* 90:105 */ this.pos = 0;\r\n/* 91: */ }",
"public int getNextUnSafeSequence(){ return value++;}",
"public void reset() {\n\t\tplayerModelDiff1.clear();\n\t\tplayerModelDiff4.clear();\n\t\tplayerModelDiff7.clear();\n\t\tif(normalDiffMethods)\n\t\t{\t\n\t\tupdatePlayerModel();\n\t\tdisplayReceivedRewards();\n\t\t}\n\t\tint temp_diffsegment1;\n\t\tint temp_diffsegment2;\n\t\tif (currentLevelSegment == 0) {\n\t\t\t//System.out.println(\"-you died in the first segment, resetting to how you just started\");\n\t\t\ttemp_diffsegment1 = (int) plannedDifficultyLevels.get(0);\n\t\t\ttemp_diffsegment2 = (int) plannedDifficultyLevels.get(1);\n\t\t}\n\t\telse {\n\t\t\t//System.out.println(\"-nextSegmentAlreadyGenerated:\" + nextSegmentAlreadyGenerated);\n\t\t\tif (nextSegmentAlreadyGenerated) {\n\t\t\t\t//because the next segment is already generated (and so the previous does not exist anymore),\n\t\t\t\ttemp_diffsegment1 = (int) plannedDifficultyLevels.get(currentLevelSegment);\n\t\t\t\ttemp_diffsegment2 = (int) plannedDifficultyLevels.get(currentLevelSegment+1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//because the next segment is not yet generated\n\t\t\t\ttemp_diffsegment1 = (int) plannedDifficultyLevels.get(currentLevelSegment-1);\n\t\t\t\ttemp_diffsegment2 = (int) plannedDifficultyLevels.get(currentLevelSegment);\n\t\t\t}\n\t\t}\n\t\tplannedDifficultyLevels.clear();\n\n\t\t//System.out.println(\"-resetting to: \" + temp_diffsegment1 + \", \" + temp_diffsegment2);\n\t\tplannedDifficultyLevels.add(temp_diffsegment1);\n\t\tplannedDifficultyLevels.add(temp_diffsegment2);\n\t\tcurrentLevelSegment = 0;\n\n\t\tpaused = false;\n\t\tSprite.spriteContext = this;\n\t\tsprites.clear();\n\n\t\ttry {\n\t\t\tlevel2 = level2_reset.clone();\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tlevel3 = level3_reset.clone();\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n fixborders();\n\t\tconjoin();\n\n\t\tlayer = new LevelRenderer(level, graphicsConfiguration, 320, 240);\n\t\tfor (int i = 0; i < 2; i++)\n\t\t{\n\t\t\tint scrollSpeed = 4 >> i;\n\t\tint w = ((level.getWidth() * 16) - 320) / scrollSpeed + 320;\n\t\tint h = ((level.getHeight() * 16) - 240) / scrollSpeed + 240;\n\t\tLevel bgLevel = BgLevelGenerator.createLevel(w / 32 + 1, h / 32 + 1, i == 0, levelType);\n\t\tbgLayer[i] = new BgRenderer(bgLevel, graphicsConfiguration, 320, 240, scrollSpeed);\n\t\t}\n\n\t\tdouble oldX = 0;\n\t\tif(mario!=null)\n\t\t\toldX = mario.x;\n\n\t\tmario = new Mario(this);\n\t\tsprites.add(mario);\n\t\tstartTime = 1;\n\n\t\ttimeLeft = 200*15;\n\n\t\ttick = 0;\n\n\t\t/*\n\t\t * SETS UP ALL OF THE CHECKPOINTS TO CHECK FOR SWITCHING\n\t\t */\n\t\t switchPoints = new ArrayList<Double>();\n\n\t\t//first pick a random starting waypoint from among ten positions\n\t\tint squareSize = 16; //size of one square in pixels\n\t\tint sections = 10;\n\n\t\tdouble startX = 32; //mario start position\n\t\tdouble endX = level.getxExit()*squareSize; //position of the end on the level\n\t\t//if(!isCustom && recorder==null)\n level2.playValues = this.valueList[0];\n\t\t\trecorder = new DataRecorder(this,level3,keys);\n\t\t\t////System.out.println(\"\\n enemies LEFT : \" + recorder.level.COINS); //Sander disable\n\t\t\t////System.out.println(\"\\n enemies LEFT : \" + recorder.level.BLOCKS_COINS);\n\t\t\t////System.out.println(\"\\n enemies LEFT : \" + recorder.level.BLOCKS_POWER);\n\t\t\tgameStarted = false;\n\t}",
"@Override\n\tpublic void reset() {\n\t\tfor(int i=0; i<mRemainedCounters; i++){\n\t\t\tfinal ICounter counter = this.mCounters.getFirst();\n\t\t\tcounter.reset();\n\t\t\tthis.mCounters.removeFirst();\n\t\t\tthis.mCounters.addLast(counter);\n\t\t}\n\t\tthis.mRemainedCounters = this.mCounters.size();\n\t}",
"public int setNextOdd() {\n\t\twhile(x % 2 != 1){\n\t\t\tx++;\n\t\t}\n\t\t\n\t\t// sets the new odd number equal to x\n\t\tRuntimeThr.evenOddSequence = x;\n\n\t\t// Returns the next odd number\n\t\treturn x;\n\t}",
"protected void resetSequence() {\n doQuery(\"ALTER SEQUENCE feedentryqueue_id_seq RESTART\");\n }",
"public void setLineNo (int LineNo);",
"public void showNextNumber(){\r\n int maximumNumberToDisplay = 1000;\r\n this.numberToDisplay++;\r\n resetIfNecessary(maximumNumberToDisplay);\r\n }",
"public TemSourceAccountingLine getAdvanceAccountingLine(int index) {\n while (getAdvanceAccountingLines().size() <= index) {\n getAdvanceAccountingLines().add(createNewAdvanceAccountingLine());\n }\n return getAdvanceAccountingLines().get(index);\n }",
"private int advanceBlock(ArrayList<byte[]> lines){\n\t\tfor(num++; num<lines.size(); num++){\n\t\t\tbyte[] line=lines.get(num);\n\t\t\tif(line!=null && line.length>0 && line[0]!=' '){break;}\n\t\t}\n\t\treturn num;\n\t}",
"public synchronized void resetLineItems() {\n lineItems = null;\n }"
]
| [
"0.6602993",
"0.621467",
"0.61282676",
"0.61245495",
"0.59478617",
"0.59269303",
"0.59010684",
"0.58490026",
"0.58349466",
"0.5812169",
"0.57639134",
"0.5720846",
"0.56472796",
"0.5627949",
"0.5597776",
"0.5585502",
"0.55719954",
"0.5559397",
"0.5554819",
"0.5530868",
"0.55224675",
"0.5521594",
"0.55172265",
"0.5515366",
"0.5508559",
"0.5489875",
"0.5479538",
"0.5463973",
"0.5442694",
"0.54245573",
"0.5424063",
"0.54184043",
"0.54173464",
"0.5392048",
"0.53843844",
"0.53783596",
"0.53728163",
"0.5372227",
"0.5360813",
"0.5349149",
"0.5347168",
"0.53445256",
"0.5343778",
"0.5343741",
"0.53379214",
"0.53262466",
"0.5325079",
"0.53219044",
"0.5315857",
"0.5311336",
"0.53108066",
"0.5308939",
"0.53082025",
"0.5306109",
"0.53009105",
"0.5293321",
"0.5285258",
"0.5281678",
"0.5276223",
"0.52704823",
"0.52649623",
"0.52588564",
"0.52550274",
"0.52541804",
"0.52541804",
"0.5249522",
"0.5248263",
"0.5232009",
"0.52281356",
"0.5212606",
"0.5204738",
"0.5203733",
"0.5195015",
"0.51890206",
"0.5188305",
"0.51865166",
"0.5174198",
"0.5170921",
"0.5167266",
"0.51634437",
"0.51567084",
"0.51561326",
"0.515349",
"0.51530683",
"0.5149113",
"0.51443416",
"0.51431817",
"0.51402736",
"0.5140197",
"0.51401615",
"0.5134085",
"0.512358",
"0.51220185",
"0.5121811",
"0.51214397",
"0.51173687",
"0.511526",
"0.5115218",
"0.5114387",
"0.51141465"
]
| 0.84155315 | 0 |
Provides answers to the following splits: PurchaseWasReceived VendorIsEmployeeOrNonResidentAlien | @Override
public boolean answerSplitNodeQuestion(String nodeName) throws UnsupportedOperationException {
if (nodeName.equals(TemWorkflowConstants.SPECIAL_REQUEST)) {
return requiresSpecialRequestReviewRouting();
}
if (nodeName.equals(TemWorkflowConstants.INTL_TRAVEL)) {
return requiresInternationalTravelReviewRouting();
}
if (nodeName.equals(TemWorkflowConstants.RISK_MANAGEMENT)) {
return requiresRiskManagementReviewRouting();
}
if (nodeName.equals(TemWorkflowConstants.TRVL_ADV_REQUESTED)) {
return requiresTravelAdvanceReviewRouting();
}
if (nodeName.equals(TemWorkflowConstants.DIVISION_APPROVAL_REQUIRED)) {
return requiresDivisionApprovalRouting();
}
if (nodeName.equals(TemWorkflowConstants.REQUIRES_TRAVELER_REVIEW)) {
return requiresTravelerApprovalRouting();
}
if (StringUtils.equals(TemWorkflowConstants.REQUIRES_BUDGET_REVIEW, nodeName)) {
return isBudgetReviewRequired();
}
if (nodeName.equals(TemWorkflowConstants.SEPARATION_OF_DUTIES)) {
return requiresSeparationOfDutiesRouting();
}
throw new UnsupportedOperationException("Cannot answer split question for this node you call \"" + nodeName + "\"");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void whenPriceEventIsReceived_ThenItCanBeReadBackByVendorId() throws JsonProcessingException {\n Price bloomberg_AAPL = sendMessage(\"Bloomberg\", \"AAPL\");\n Price bloomberg_MSFT = sendMessage(\"Bloomberg\", \"MSFT\");\n Price reuters_AAPL = sendMessage(\"Reuters\", \"AAPL\");\n\n // then when we ask for prices submitted by `Bloomberg`\n // we expect to receive prices for `AAPL` and `MSFT`\n await().untilAsserted(() -> getByVendorId(\"Bloomberg\").isEqualTo(new Price[]{ bloomberg_MSFT, bloomberg_AAPL }));\n\n // when we ask for prices submitted by `Reuters`\n // then we expect to receive prices for `AAPL` only.\n await().untilAsserted(() -> getByVendorId(\"Reuters\").isEqualTo(new Price[] { reuters_AAPL }));\n }",
"boolean splitTradingEmployed();",
"@Test\n public void whenPriceEventIsReceived_ThenItCanBeReadBackByInstrumentId() throws JsonProcessingException {\n Price bloomberg_AAPL = sendMessage(\"Bloomberg\", \"AAPL\");\n Price bloomberg_MSFT = sendMessage(\"Bloomberg\", \"MSFT\");\n Price reuters_AAPL = sendMessage(\"Reuters\", \"AAPL\");\n\n // then when we ask for `AAPL` prices\n // we expect to receive prices from both `Bloomberg` and `Reuters`\n await().untilAsserted(() -> getByInstrumentId(\"AAPL\").isEqualTo(new Price[]{reuters_AAPL, bloomberg_AAPL}));\n\n // when we ask for `MSFT` prices\n // then we expect to receive prices from `Bloomberg` only.\n await().untilAsserted(() -> getByInstrumentId(\"MSFT\").isEqualTo(new Price[] { bloomberg_MSFT }));\n }",
"List<PurchaseOrderHeader> getAllPurchaseOrderHeaderNotFullyReceived();",
"@Override\n\tprotected Boolean isHeader(String[] fields) {\n\t\t//check\n return (isValid(fields) && fields[0].equals(\"event\") && fields[1].equals(\"yes\") && fields[2].equals(\"maybe\") && fields[3].equals(\"invited\") && fields[4].equals(\"no\"));\n\t}",
"public List<String> getPaymentRequestInReceivingStatus();",
"private boolean compareSapMessages(SapMessage received, SapMessage expected) {\n boolean retVal = true;\n if(expected.getCardReaderStatus() != -1 &&\n received.getCardReaderStatus() != expected.getCardReaderStatus()) {\n Log.i(TAG, \"received.getCardReaderStatus() != expected.getCardReaderStatus() \"\n + received.getCardReaderStatus() + \" != \" + expected.getCardReaderStatus());\n retVal = false;\n }\n if(received.getConnectionStatus() != expected.getConnectionStatus()) {\n Log.i(TAG, \"received.getConnectionStatus() != expected.getConnectionStatus() \"\n + received.getConnectionStatus() + \" != \" + expected.getConnectionStatus());\n retVal = false;\n }\n if(received.getDisconnectionType() != expected.getDisconnectionType()) {\n Log.i(TAG, \"received.getDisconnectionType() != expected.getDisconnectionType() \"\n + received.getDisconnectionType() + \" != \"\n + expected.getDisconnectionType());\n retVal = false;\n }\n if(received.getMaxMsgSize() != expected.getMaxMsgSize()) {\n Log.i(TAG, \"received.getMaxMsgSize() != expected.getMaxMsgSize() \"\n + received.getMaxMsgSize() +\" != \" + expected.getMaxMsgSize());\n retVal = false;\n }\n if(received.getMsgType() != expected.getMsgType()) {\n Log.i(TAG, \"received.getMsgType() != expected.getMsgType() \"\n + received.getMsgType() +\" != \" + expected.getMsgType());\n retVal = false;\n }\n if(received.getResultCode() != expected.getResultCode()) {\n Log.i(TAG, \"received.getResultCode() != expected.getResultCode() \"\n + received.getResultCode() + \" != \" + expected.getResultCode());\n retVal = false;\n }\n if(received.getStatusChange() != expected.getStatusChange()) {\n Log.i(TAG, \"received.getStatusChange() != expected.getStatusChange() \"\n + received.getStatusChange() + \" != \" + expected.getStatusChange());\n retVal = false;\n }\n if(received.getTransportProtocol() != expected.getTransportProtocol()) {\n Log.i(TAG, \"received.getTransportProtocol() != expected.getTransportProtocol() \"\n + received.getTransportProtocol() + \" != \"\n + expected.getTransportProtocol());\n retVal = false;\n }\n if(!Arrays.equals(received.getApdu(), expected.getApdu())) {\n Log.i(TAG, \"received.getApdu() != expected.getApdu() \"\n + Arrays.toString(received.getApdu()) + \" != \"\n + Arrays.toString(expected.getApdu()));\n retVal = false;\n }\n if(!Arrays.equals(received.getApdu7816(), expected.getApdu7816())) {\n Log.i(TAG, \"received.getApdu7816() != expected.getApdu7816() \"\n + Arrays.toString(received.getApdu7816()) + \" != \"\n + Arrays.toString(expected.getApdu7816()));\n retVal = false;\n }\n if(expected.getApduResp() != null && !Arrays.equals(received.getApduResp(),\n expected.getApduResp())) {\n Log.i(TAG, \"received.getApduResp() != expected.getApduResp() \"\n + Arrays.toString(received.getApduResp()) + \" != \"\n + Arrays.toString(expected.getApduResp()));\n retVal = false;\n }\n if(expected.getAtr() != null && !Arrays.equals(received.getAtr(), expected.getAtr())) {\n Log.i(TAG, \"received.getAtr() != expected.getAtr() \"\n + Arrays.toString(received.getAtr()) + \" != \"\n + Arrays.toString(expected.getAtr()));\n retVal = false;\n }\n return retVal;\n }",
"public static void verifyPlaceStoreOrderResponse(Response response, long expectedId, long expectedPetId, int expectedQuantity, String expectedShipDate, String expectedStatus, boolean expectedCompleted) {\n verifySuccessStatusCodeInPlaceStoreOrderResponse(response);\n\n StoreOrderResponse storeOrderResponse = response.as(StoreOrderResponse.class);\n\n long actualId = storeOrderResponse.getId();\n APILogger.logInfo(LOGGER,\"Verifying Place Store Order service response - id, Actual: \" + actualId + \" , Expected: \" + expectedId);\n MicroservicesEnvConfig.softAssert.assertEquals(actualId, expectedId, \"Place Store Order service response - id field error\");\n\n long actualPetId = storeOrderResponse.getPetId();\n APILogger.logInfo(LOGGER,\"Verifying Place Store Order service response - pet id, Actual: \" + actualPetId + \" , Expected: \" + expectedPetId);\n MicroservicesEnvConfig.softAssert.assertEquals(actualPetId, expectedPetId, \"Place Store Order service response - pet id field error\");\n\n int actualQuantity = storeOrderResponse.getQuantity();\n APILogger.logInfo(LOGGER,\"Verifying Place Store Order service response - quantity, Actual: \" + actualQuantity + \" , Expected: \" + expectedQuantity);\n MicroservicesEnvConfig.softAssert.assertEquals(actualQuantity, expectedQuantity, \"Place Store Order service response - quantity field error\");\n\n String actualShipDate = storeOrderResponse.getShipDate().substring(0,23);\n expectedShipDate = expectedShipDate.replace(\"Z\", \"\");\n APILogger.logInfo(LOGGER,\"Verifying Place Store Order service response - ship date, Actual: \" + actualShipDate + \" , Expected: \" + expectedShipDate);\n MicroservicesEnvConfig.softAssert.assertEquals(actualShipDate, expectedShipDate, \"Place Store Order service response - ship date field error\");\n\n String actualStatus = storeOrderResponse.getStatus();\n APILogger.logInfo(LOGGER,\"Verifying Place Store Order service response - status, Actual: \" + actualStatus + \" , Expected: \" + expectedStatus);\n MicroservicesEnvConfig.softAssert.assertEquals(actualStatus, expectedStatus, \"Place Store Order service response - status field error\");\n\n boolean actualCompleted = storeOrderResponse.isComplete();\n APILogger.logInfo(LOGGER,\"Verifying Place Store Order service response - complete, Actual: \" + actualCompleted + \" , Expected: \" + expectedCompleted);\n MicroservicesEnvConfig.softAssert.assertEquals(actualCompleted, expectedCompleted, \"Place Store Order service response - complete field error\");\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 boolean p4_canBeReturned(Order order) {\n\t\t//return true; // order.getOrderLines().stream() // INITIAL\n\t\t// SOLUTION(\n\t\treturn order.getOrderLines().stream()\n\t\t\t\t\t//.filter(OrderLine::wasDelivered) // Change: daca v-as fi spus ca doar orderline-urile livrate...\n\t\t\t\t\t.noneMatch(line -> line.isSpecialOffer());\n\t\t// SOLUTION)\n\t}",
"@java.lang.Override\n public boolean hasDeliver() {\n return stepInfoCase_ == 12;\n }",
"public static String BeforeSplitStrategyHints(Player Gamer, Player Dealer){\n\t\tString ReturnString = \"\";\n\t\tif(Gamer.Hand[0].getValue() == 1 && Gamer.Hand[1].getValue() == 1){\n\t\t\t// Pair of Aces\n\t\t\tif(Dealer.Score >= 2 && Dealer.Score <= 7){\n\t\t\t\tReturnString = Gamer.Name+\" should split\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\tReturnString = Gamer.Name+\" should not split\";\n\t\t\t}\n\t\t}\n\t\telse if((Gamer.Hand[0].getValue() == 2 && Gamer.Hand[1].getValue() == 2) \n\t\t\t|| (Gamer.Hand[0].getValue() == 3 && Gamer.Hand[1].getValue() == 3)){\n\t\t\tif(Dealer.Score >= 2 && Dealer.Score <= 7){\n\t\t\t\tReturnString = Gamer.Name+\" should split\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\tReturnString = Gamer.Name+\" should not split\";\n\t\t\t}\n\t\t}\n\t\telse if(Gamer.Hand[0].getValue() == 4 && Gamer.Hand[1].getValue() == 4){\n\t\t\tif(Dealer.Score >= 5 && Dealer.Score <= 6){\n\t\t\t\tReturnString = Gamer.Name+\" should split\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\tReturnString = Gamer.Name+\" should not split\";\n\t\t\t}\n\t\t}\n\t\telse if(Gamer.Hand[0].getValue() == 5 && Gamer.Hand[1].getValue() == 5){\n\t\t\tReturnString = Gamer.Name+\" should not split\";\n\t\t}\n\t\telse if(Gamer.Hand[0].getValue() == 6 && Gamer.Hand[1].getValue() == 6){\n\t\t\tif(Dealer.Score >= 2 && Dealer.Score <= 6){\n\t\t\t\tReturnString = Gamer.Name+\" should split\";\n\t\t\t}\n\t\t\telse{\n\t\t\tReturnString = Gamer.Name+\" should not split\";\n\t\t\t}\n\t\t}\n\t\telse if(Gamer.Hand[0].getValue() == 7 && Gamer.Hand[1].getValue() == 7){\n\t\t\tif(Dealer.Score >= 2 && Dealer.Score <= 7){\n\t\t\t ReturnString = Gamer.Name+\" should split\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\tReturnString = Gamer.Name+\" should not split\";\n\t\t\t}\n\t\t}\n\t\telse if(Gamer.Hand[0].getValue() == 8 && Gamer.Hand[1].getValue() == 8){\n\t\t\tReturnString = Gamer.Name+\" should split\";\n\t\t}\n\t\telse if(Gamer.Hand[0].getValue() == 9 && Gamer.Hand[1].getValue() == 9){\n\t\t\tif((Dealer.Score >= 2 && Dealer.Score <= 6) || (Dealer.Score >= 8 && Dealer.Score <= 9)){\n\t\t\t\tReturnString = Gamer.Name+\" should split\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\tReturnString = Gamer.Name+\" should not split\";\n\t\t\t}\n\t\t}\n\t\telse if(Gamer.Hand[0].getValue() == 10 && Gamer.Hand[1].getValue() == 10){\n\t\t\tReturnString = Gamer.Name+\" should not split\";\n\t\t}\n\t\treturn ReturnString;\n\t}",
"@Test\n public void testBeneZPayerInsuredRelX12() {\n new BeneZPayerFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissBeneZPayer.Builder::setInsuredRelX12Enum,\n RdaFissPayer::getInsuredRelX12,\n FissPatientRelationshipCode.PATIENT_RELATIONSHIP_CODE_DEFAULT,\n \"00\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissBeneZPayer.Builder::setInsuredRelX12Unrecognized,\n RdaFissPayer::getInsuredRelX12,\n RdaFissPayer.Fields.insuredRelX12,\n 2);\n }",
"@java.lang.Override\n public boolean hasDeliver() {\n return stepInfoCase_ == 12;\n }",
"@Test\n public void testRaiseAlertStandingOrderDebit() {\n BigDecimal balance = new BigDecimal(\"39.99\").setScale(2);\n String threshold = \"40\";\n long accountNumber = 1234567L;\n Integer transactionClass = 15;\n Integer transactionType = 2269;\n BigDecimal transactionAmount = new BigDecimal(\"10.00\").setScale(2);\n\n String accountNumberString = Long.toString(accountNumber);\n when(tuple.getValueByField(CBSMessageFields.FIELD_CURRENT_ACCOUNT_BALANCE)).thenReturn(balance);\n when(tuple.getStringByField(OCISDetails.THRESHOLD)).thenReturn(threshold);\n when(tuple.getLongByField(CBSMessageFields.FIELD_ACCOUNT_NUMBER)).thenReturn(accountNumber);\n when(tuple.getValueByField(CBSMessageFields.FIELD_TXN_AMOUNT)).thenReturn(transactionAmount);\n when(tuple.getIntegerByField(CBSMessageFields.FIELD_TXN_CLASS)).thenReturn(transactionClass);\n when(tuple.getIntegerByField(CBSMessageFields.FIELD_TXN_TYPE)).thenReturn(transactionType);\n\n RaiseLowBalanceAlert alertFunction = new RaiseLowBalanceAlert();\n alertFunction.execute(tuple, collector);\n\n ArgumentCaptor<Values> valuesCaptor = ArgumentCaptor.forClass(Values.class);\n verify(collector).emit(valuesCaptor.capture());\n\n Values values = valuesCaptor.getValue();\n assertThat(values, notNullValue());\n assertThat(values.size(), is(2));\n\n assertThat((String)values.get(0), is(accountNumberString));\n assertThat((String)values.get(1), containsString(\"1234567|balance is under expected threshold|39.99\"));\n }",
"boolean hasUnReceived();",
"private void validatePurchaseOrder(MaintenanceRequest mrq) throws MalBusinessException{\n\t\tArrayList<String> messages = new ArrayList<String>();\n\t\tBigDecimal amount = new BigDecimal(0.00);\n\t\t\t\t\n\t\t//Validate PO header required data\n\t\tif(MALUtilities.isEmptyString(mrq.getJobNo()))\n\t\t\tmessages.add(\"Job No. is required\");\n\t\tif(MALUtilities.isEmptyString(mrq.getMaintReqStatus()))\n\t\t\tmessages.add(\"PO Status is required\");\n\t\tif(MALUtilities.isEmptyString(mrq.getMaintReqType()))\n\t\t\tmessages.add(\"PO Type is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getCurrentOdo()))\n\t\t\tmessages.add(\"Odo is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getActualStartDate()))\n\t\t\tmessages.add(\"Actual Start Date is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getPlannedEndDate()))\n\t\t\tmessages.add(\"End date is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getServiceProvider()))\n\t\t\tmessages.add(\"Service Provider is required\");\n\t\t/* TODO Need to determine if this check is necessary. We do not have a hard requirement for this.\n\t\tif(!MALUtilities.isEmpty(po.getServiceProvider()) \n\t\t\t\t&& (!MALUtilities.convertYNToBoolean(po.getServiceProvider().getNetworkVendor()) \n\t\t\t\t\t\t&& this.calculateMarkUp(po).compareTo(new BigDecimal(0.00)) < 1))\n\t\t\tmessages.add(\"Mark Up is required for out of network service providers\");\n\t */\n\t\t\n\t\t//Validate PO Line items (tasks) required data\n\t\tif(!MALUtilities.isEmpty(mrq.getMaintenanceRequestTasks())){\n\t\t\tfor(MaintenanceRequestTask line : mrq.getMaintenanceRequestTasks()){\n\t\t\t\tif(MALUtilities.isEmptyString(line.getMaintCatCode()))\n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Maint Category is required\");\n\t\t\t\tif(MALUtilities.isEmpty(line.getTaskQty()))\n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Qty is required\");\n\t\t\t\tif(MALUtilities.isEmpty(line.getUnitCost()))\n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Unit Price is required\");\n\t\t\t\tif(MALUtilities.isEmpty(line.getTotalCost())) \n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Total Amount is required\");\t\t\t\t\t\t\t\t\n\t\t\t\tif(!(MALUtilities.isEmpty(line.getTaskQty()) && MALUtilities.isEmpty(line.getUnitCost()))){\n\t\t\t\t\tamount = line.getUnitCost().multiply(line.getTaskQty()).setScale(2, BigDecimal.ROUND_HALF_UP); \n\t\t\t\t\tif( amount.compareTo(line.getTotalCost().setScale(2, BigDecimal.ROUND_HALF_UP)) != 0)\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Total amount is incorrect\");\t\t\t\t\t\t\t\n\t\t\t\t}\t\n/** TODO This will not work well with goodwill POs as the user will not have the changes to add cost avoidance data to subsequent lines.\t\t\t\t\n\t\t\t\tif(mrq.isGoodwillIndicator() && line.isCostAvoidanceIndicator()){\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceCode()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Reason is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceAmount()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Amount is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getGoodwillReason()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Goodwill Reason is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getGoodwillCost()) || line.getGoodwillCost().compareTo(new BigDecimal(0)) < 1)\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Goodwill Amount is required\");\t\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getGoodwillPercent()) || line.getGoodwillPercent().compareTo(new BigDecimal(0)) < 1)\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Goodwill Percent is required\");\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!mrq.isGoodwillIndicator() && line.isCostAvoidanceIndicator()){\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceCode()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Reason is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceAmount()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Amount is required\");\t\t\t\t\t\n\t\t\t\t}\n*/\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(messages.size() > 0)\n\t\t\tthrow new MalBusinessException(\"service.validation\", messages.toArray(new String[messages.size()]));\t\t\n\t\t\n\t}",
"boolean hasReceived();",
"String getNeedsInventoryIssuance();",
"public boolean hasReceived() {\n\t if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasReceived()\" );\n Via via=(Via)sipHeader;\n return via.hasParameter(Via.RECEIVED);\n }",
"boolean hasTxnresponse();",
"private boolean isEncapsulatingBet(BetSlipResponse betSlipResponse) {\n boolean result = betSlipResponse.getTransactions().size() > 0;\n\n for (TransactionResponse transactionResponse : betSlipResponse.getTransactions()) {\n result &= transactionResponse.getTransactionTypeId() == TransactionType.BET.getId();\n }\n\n return result;\n }",
"protected boolean verifyDeveloperPayload(final Purchase purchase) {\n\t\tString payload = purchase.getDeveloperPayload();\n\t\tLog.w(TAG, \"Payload: \" + payload);\n\n\t\tHandler handler = new Handler() {\n\t\t\t@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tif (msg != null) {\n\t\t\t\t\tif (msg.what == Constants.OK) {\n\t\t\t\t\t\tafterVerify(purchase, true);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tUtils.makeError(PurchaseActivity.this, getResources()\n\t\t\t\t\t\t\t.getString(R.string.comm_error));\n\t\t\t\t}\n\n\t\t\t\tafterVerify(purchase, false);\n\t\t\t};\n\t\t};\n\n\t\tMessenger messenger = new Messenger(handler);\n\n\t\tIntent intent = new Intent(PurchaseActivity.this, WebService.class);\n\t\tintent.putExtra(WebService.PARAM_OPERATION,\n\t\t\t\tWebService.OPERATION_VALIDATE_TOKEN);\n\t\tintent.putExtra(WebService.PARAM_TOKEN, purchase.getDeveloperPayload());\n\t\tintent.putExtra(WebService.PARAM_PURCHASE_TOKEN, purchase.getToken());\n\t\tintent.putExtra(WebService.PARAM_MESSENGER_SERVICE, messenger);\n\t\tstartService(intent);\n\n\t\treturn true;\n\t}",
"@Test\n public void testRaiseAlert() {\n BigDecimal balance = new BigDecimal(\"39.99\").setScale(2);\n String threshold = \"40\";\n long accountNumber = 1234567L;\n Integer transactionClass = 6;\n Integer transactionType = 2269;\n BigDecimal transactionAmount = new BigDecimal(\"10.00\").setScale(2);\n\n String accountNumberString = Long.toString(accountNumber);\n when(tuple.getValueByField(CBSMessageFields.FIELD_CURRENT_ACCOUNT_BALANCE)).thenReturn(balance);\n when(tuple.getStringByField(OCISDetails.THRESHOLD)).thenReturn(threshold);\n when(tuple.getLongByField(CBSMessageFields.FIELD_ACCOUNT_NUMBER)).thenReturn(accountNumber);\n when(tuple.getValueByField(CBSMessageFields.FIELD_TXN_AMOUNT)).thenReturn(transactionAmount);\n when(tuple.getIntegerByField(CBSMessageFields.FIELD_TXN_CLASS)).thenReturn(transactionClass);\n when(tuple.getIntegerByField(CBSMessageFields.FIELD_TXN_TYPE)).thenReturn(transactionType);\n\n RaiseLowBalanceAlert alertFunction = new RaiseLowBalanceAlert();\n alertFunction.execute(tuple, collector);\n\n ArgumentCaptor<Values> valuesCaptor = ArgumentCaptor.forClass(Values.class);\n verify(collector).emit(valuesCaptor.capture());\n\n Values values = valuesCaptor.getValue();\n assertThat(values, notNullValue());\n assertThat(values.size(), is(2));\n\n assertThat((String)values.get(0), is(accountNumberString));\n assertThat((String)values.get(1), containsString(\"1234567|balance is under expected threshold|39.99\"));\n }",
"@Override\n\tprotected Boolean isValid(String[] fields) {\n\t\t//check - evnet_id, yes, maybe, invited, no\n return (fields.length > 4);\n\t}",
"@Override\n\tpublic void parseInformation(String info) {\n\t\tNetwork.logger.info(\"[WaitingOfferState] Message received: \"+ info);\n\t\tString []infos = info.split(\":\");\n\t\t\n\t\tif(infos.length < 4)\n\t\t{\n\t\t\tNetwork.logger.warn(\"[WaitingOfferState] Wrong message received: \" + info);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// buyer, product, value, seller\n\t\tnetwork.getMediator().OfferReceived(infos[1], infos[2], infos[3]);\n\t}",
"public void checkOdlOpenflowManufacturer2(String x) throws SnmpStatusException;",
"public String[] inquiryResponse(String input)\n\t{\n\t\tinput = tselDecrypt(key,input);\n\t\t\n\t\tinquiryResponseTemp=input.split(\"@~|\");\n\n\t\tinquiryResponse[0]=inquiryResponseTemp[0];\n\t\tinquiryResponse[1]=inquiryResponseTemp[1];\n\t\tinquiryResponse[2]=inquiryResponseTemp[2];\n\t\tinquiryResponse[3]=inquiryResponseTemp[3];\n\n\t\tinquiryResponseTemp2=inquiryResponseTemp[4].split(\"|\");\n\n\t\tfor(int i=0;i<inquiryResponseTemp2.length;i++)\n\t\t{\n\t\t\tinquiryResponse[i+4]=inquiryResponseTemp2[i];\n\t\t}\n\n\t\tinquiryResponse[4+inquiryResponseTemp2.length]=inquiryResponseTemp[5];\n\n\t\treturn inquiryResponse;\n\t}",
"private static boolean validLine(String[] splitLine) {\n\t\tif (splitLine.length < 1) {\n\t\t\tSystem.out.println(\"Not enough arguments on the transaction line, continuing to next line\");\n\t\t\treturn false;\n\t\t}\n\t\tString op = splitLine[0];\n\t\tif (!validOperation(op)) {\n\t\t\tSystem.out.println(op + \" is not a valid operation\");\n\t\t\treturn false;\n\t\t}\n\t\tif (op.equalsIgnoreCase(\"insert\")) {\n\t\t\tif (!validInsert(splitLine)) {\n\t\t\t\tSystem.out.println(\"Invalid insert operation, continuing to next line\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if (op.equalsIgnoreCase(\"delete\") || op.equals(\"search\")) {\n\t\t\tif (!validSearchOrDelete(splitLine)) {\n\t\t\t\tSystem.out.println(\"Invalid \" + op + \" operation, continuing to next line\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if (op.equalsIgnoreCase(\"update\")) {\n\t\t\tif (!validUpdate(splitLine)) {\n\t\t\t\tSystem.out.println(\"Invalid update operation, continuing to next line\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if (op.equalsIgnoreCase(\"print\")) {\n\t\t\tif (!validPrint(splitLine)) {\n\t\t\t\tSystem.out.println(\"Invalid print operation, continuing to next line\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true; // passed all the tests\n\t}",
"private boolean validatePuchase() {\n if (TextUtils.isEmpty(editextPurchaseSupplierName.getText().toString())) {\n editextPurchaseSupplierName.setError(getString(R.string.supplier_name));\n editextPurchaseSupplierName.requestFocus();\n return false;\n }\n\n if (TextUtils.isEmpty(edittextPurchaseAmount.getText().toString())) {\n if (flowpurchaseReceivedOrPaid == 2) {\n edittextPurchaseAmount.setError(getString(R.string.menu_purchasePaid));\n edittextPurchaseAmount.requestFocus();\n\n } else {\n edittextPurchaseAmount.setError(getString(R.string.purchase_amount));\n edittextPurchaseAmount.requestFocus();\n }\n return false;\n }\n\n if (TextUtils.isEmpty(edittextPurchasePurpose.getText().toString())) {\n edittextPurchasePurpose.setError(getString(R.string.remark_bill_number));\n edittextPurchasePurpose.requestFocus();\n return false;\n }\n\n\n return true;\n }",
"protected void checkTransmissionRequirements()\n {\n if (isOutOfBandAlert())\n { // Out-of-band (OOB) transmission requirements\n if (this.alert_text == null && this.details_OOB_source_ID == 0)\n { // [SCTE 18] 6-3\n if (log.isInfoEnabled())\n {\n log.info(formatLogMessage(\"SCTE-18: OOB alert requires alert text or a details source ID\"));\n }\n }\n else if (this.alert_priority > EASMessage.ALERT_PRIORITY_HIGH)\n {\n if (this.details_OOB_source_ID == 0)\n { // [SCTE 18] 6-5\n if (log.isInfoEnabled())\n {\n log.info(formatLogMessage(\"SCTE-18: OOB maximum priority alert requires a details source ID\"));\n }\n }\n else if (this.alert_text != null && this.audio_OOB_source_ID == 0)\n { // [SCTE 18] 6-7\n if (log.isInfoEnabled())\n {\n log.info(formatLogMessage(\"SCTE-18: OOB maximum priority alert with alert text requires an audio source ID\"));\n }\n }\n }\n }\n else\n { // In-band (IB) transmission requirements\n if (this.alert_text == null && this.details_major_channel_number == 0\n && this.details_minor_channel_number == 0)\n { // [SCTE 18] 6-2\n if (log.isInfoEnabled())\n {\n log.info(formatLogMessage(\"SCTE-18: IB alert requires alert text or a details channel\"));\n }\n }\n else if (this.alert_priority > EASMessage.ALERT_PRIORITY_HIGH && this.details_major_channel_number == 0\n && this.details_minor_channel_number == 0)\n { // [SCTE 18] 6-4\n if (log.isInfoEnabled())\n {\n log.info(formatLogMessage(\"SCTE-18: IB maximum priority alert requires a details channel\"));\n }\n }\n }\n }",
"public List<String> validate (PostPurchaseOrderRequest postPurchaseOrderRequest) {\n\n List<String> errorList = new ArrayList<>();\n\n errorList.addAll(commonPurchaseOrderValidator.validateLineItems(postPurchaseOrderRequest.getPurchaseOrder().getLineItems(),\n postPurchaseOrderRequest.getPurchaseOrder().getStatus()));\n\n\n return errorList;\n }",
"@Test\r\n public void testReceivePallets() throws Exception\r\n {\r\n String epcToCheck = \"urn:epc:id:sscc:0614142.0000000010\";\r\n XmlObjectEventType event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n Assert.assertNull(event);\r\n\r\n runCaptureTest(REICEIVE_PALLET_XML);\r\n\r\n event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n assertNotNull(event);\r\n }",
"@Then(\"^System returns the products matching the filter criterion$\")\r\n\tpublic void system_returns_the_products_matching_the_filter_criterion() {\n\t\tWebDriverWait wait16 = new WebDriverWait(driver, 60);\r\n\t\twait16.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\".//tr[contains(@data-product-code, '131128')]\")));\r\n\t\tWebElement element6 = driver.findElement(By.xpath(\".//tr[contains(@data-product-code, '131128')]\"));\r\n\t\t// element6.click();\r\n\t\tString name1 = element6.getText();\r\n\t\tString prdType1 = (name1.substring(0, 10));\r\n\t\tSystem.out.println(\"The Product Type is\" + name1.substring(0, 10));\r\n\t\tAssert.assertEquals(\"2 yr Fixed\", prdType1);\r\n\r\n\t\t// Assertion for 3 yr Fixed\r\n\t\tWebDriverWait wait17 = new WebDriverWait(driver, 60);\r\n\t\twait17.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\".//tr[contains(@data-product-code, '131193')]\")));\r\n\t\tWebElement element7 = driver.findElement(By.xpath(\".//tr[contains(@data-product-code, '131193')]\"));\r\n\t\t//element7.click();\r\n\t\tString name2 = element7.getText();\r\n\t\tString prdType2 = (name2.substring(0, 10));\r\n\t\tSystem.out.println(\"The Product Type is\" + name2.substring(0, 10));\r\n\t\tAssert.assertEquals(\"3 yr Fixed\", prdType2);\r\n\r\n\t\t//Assertion for 5 yr Fixed \r\n\t\tWebDriverWait wait18= new WebDriverWait(driver, 60);\r\n\t\twait18.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\".//tr[contains(@data-product-code, '131258')]\")));\r\n\t\tWebElement element8= driver.findElement(By.xpath(\".//tr[contains(@data-product-code, '131258')]\")); \r\n\t\t//element8.click();\r\n\t\tString name3 = element8.getText();\r\n\t\tString prdType3 =(name3.substring(0,10)); \r\n\t\tSystem.out.println(\"The Product Type is\" + name3.substring(0,10)); \r\n\t\tAssert.assertEquals(\"5 yr Fixed\", prdType3);\r\n\t\t \r\n\t\t//Assertion for 10 yr Fixed \r\n\t\tWebDriverWait wait19= new WebDriverWait(driver, 60);\r\n\t\twait19.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\".//tr[contains(@data-product-code, '130509')]\")));\r\n\t\tWebElement element9 = driver.findElement(By.xpath(\".//tr[contains(@data-product-code, '130509')]\")); \r\n\t\t//element9.click();\r\n\t\tString name4 = element9.getText(); \r\n\t\tString prdType4 = (name4.substring(0,11)); \r\n\t\tSystem.out.println(\"The Product Type is\" + name4.substring(0,13)); \r\n\t\tAssert.assertEquals(\"10 yr Fixed\", prdType4); }",
"boolean verifyDeveloperPayload(Purchase p) {\n String payload = p.getDeveloperPayload();\n\n /*\n * TODO: verify that the developer payload of the purchase is correct. It will be\n * the same one that you sent when initiating the purchase.\n *\n * WARNING: Locally generating a random string when starting a purchase and\n * verifying it here might seem like a good approach, but this will fail in the\n * case where the user purchases an item on one device and then uses your app on\n * a different device, because on the other device you will not have access to the\n * random string you originally generated.\n *\n * So a good developer payload has these characteristics:\n *\n * 1. If two different users purchase an item, the payload is different between them,\n * so that one user's purchase can't be replayed to another user.\n *\n * 2. The payload must be such that you can verify it even when the app wasn't the\n * one who initiated the purchase flow (so that items purchased by the user on\n * one device work on other devices owned by the user).\n *\n * Using your own server to store and verify developer payloads across app\n * installations is recommended.\n */\n\n return true;\n }",
"protected void acceptedPaymentVerification() {\n BillingSummaryPage.tableBillingGeneralInformation.getRow(1)\n .getCell(\"Current Due\").waitFor(cell -> !cell.getValue().equals(\"Calculating...\"));\n\n assertThat(BillingSummaryPage.tableBillingGeneralInformation.getRow(1))\n .hasCellWithValue(\"Current Due\", BillingHelper.DZERO.toString())\n .hasCellWithValue(\"Total Due\", BillingHelper.DZERO.toString())\n .hasCellWithValue(\"Total Paid\", modalPremiumAmount.get().toString());\n\n assertThat(BillingSummaryPage.tableBillsAndStatements.getRow(1).getCell(\"Status\")).valueContains(PAID_IN_FULL);\n\n assertThat(BillingSummaryPage.tablePaymentsOtherTransactions)\n .with(POLICY_NUMBER, masterPolicyNumber.get())\n .with(TYPE, PAYMENT)\n .with(TableConstants.BillingPaymentsAndTransactionsGB.AMOUNT, String.format(\"(%s)\", modalPremiumAmount.get().toString()))\n .containsMatchingRow(1);\n\n }",
"@Test\n public void testDontRaiseAlertNotDebitTxnType() {\n BigDecimal balance = new BigDecimal(\"39.99\").setScale(2);\n String threshold = \"40\";\n long accountNumber = 1234567L;\n Integer transactionClass = 15;\n Integer transactionType = 2268;\n\n String accountNumberString = Long.toString(accountNumber);\n when(tuple.getValueByField(CBSMessageFields.FIELD_CURRENT_ACCOUNT_BALANCE)).thenReturn(balance);\n when(tuple.getStringByField(OCISDetails.THRESHOLD)).thenReturn(threshold);\n when(tuple.getLongByField(CBSMessageFields.FIELD_ACCOUNT_NUMBER)).thenReturn(accountNumber);\n when(tuple.getIntegerByField(CBSMessageFields.FIELD_TXN_CLASS)).thenReturn(transactionClass);\n when(tuple.getIntegerByField(CBSMessageFields.FIELD_TXN_TYPE)).thenReturn(transactionType);\n\n RaiseLowBalanceAlert alertFunction = new RaiseLowBalanceAlert();\n alertFunction.execute(tuple, collector);\n\n ArgumentCaptor<Values> valuesCaptor = ArgumentCaptor.forClass(Values.class);\n verify(collector).emit(valuesCaptor.capture());\n\n Values values = valuesCaptor.getValue();\n assertThat(values, notNullValue());\n assertThat(values.size(), is(2));\n assertThat((String)values.get(0), is(accountNumberString));\n assertThat(values.get(1), nullValue());\n }",
"public boolean Verify_NonIpoConfirmation() {\n\t\n\tboolean flag = false;\n\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.THANKYOU_LABEL).isDisplayed();\n\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_ThankYou\", \"DISPLAYED\");\n\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.ORDERRECEIVED_LABEL).isDisplayed();\n\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_ORDERRECEIVED_LABEL\", \"DISPLAYED\");\n\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.WHATNEXT_SECTION).isDisplayed();\n\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_WHATNEXT_SECTION\", \"DISPLAYED\");\n\t\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.UPONDELIVERY_SECTION).isDisplayed();\n\t\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_UPONDELIVERY_SECTION\", \"DISPLAYED\");\n\t\t\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.STOREDETAILS_CONFIRMATIONSECTION).isDisplayed();\n\t\t\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_CONFIRMATIONSECTION\", \"DISPLAYED\");\n\t\t\t\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.MYSTORE_SECTION).isDisplayed();\n\t\t\t\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_MYSTORE_SECTION\", \"DISPLAYED\");\n\t\t\t\t\t\t flag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.GOTOHOMEPAGE_BUTTON).isDisplayed();\n\t\t\t\t\t\t if(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_GOTOHOMEPAGE_BUTTON\", \"DISPLAYED\");\n\t\t\t\t\t\t\t}else{extentLogs.pass(\"VerifyNonIPOConfirmationScreen_GOTOHOMEPAGE_BUTTON\", \"DISPLAYED\");}\n\t\t\t\t\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_MYSTORE_SECTION\", \"NOTDISPLAYED\");}\n\t\t\t\t\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_CONFIRMATIONSECTION\", \"NOTDISPLAYED\");}\n\t\t \t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_UPONDELIVERY_SECTION\", \"NOTDISPLAYED\");}\n\t\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_WHATNEXT_SECTION\", \"NOTDISPLAYED\");}\n\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_ORDERRECEIVED_LABEL\", \"NOTDISPLAYED\");}\n\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_ThankYou\", \"NOTDISPLAYED\");}\n\t\nreturn flag;\n\t}",
"@Test\n public void verifyPost2Corporate_EVENT_TYPE_RULE()\n {\n\n String clauseStatement =\"EVENT_TYPE = 'C2CORP'\";\n\n //The aim is to use a List for each Event Types. Each Event Type Data should have its onw list\n //And on each Test below we will use the Lists accordingly\n objSUB_EVN_LIST_DATA = new T_C3D_SUBSCR_SUB_EVN_LIST_DATA(clauseStatement);\n objtestSUB_EVN_LIST = objSUB_EVN_LIST_DATA.getData();\n\n objSUB_ATR_LIST_DATA = new T_C3D_SUBSCR_SUB_ATR_LIST_DATA();\n objSUB_ATR_LIST = objSUB_ATR_LIST_DATA.getData();\n\n // Log the Start of the Test\n logger = report.startTest(\"EVENT_TYPE = DEAL_SWAP \",\n \"TO VERIFY THAT EVENT_TYPE ACT MANDATORY FIELDS ARE POPULATED WITH CORRECT DATA\");\n\n int numberOfSubsWithCorrectValues = 0;\n int numberOfSubsWithIncorrectValues= 0;\n int totalNumberOfSubs = 0;\n int failedSubs = 0;\n int passedSubs = 0;\n\n try {\n\n String busEventTypeStr = null;\n String eventDateStr = null;\n String eventTypeStr = null;\n String eventSubsId = null;\n String strCUSTOMER_ID = null;\n String strMSIN = null;\n String strICC_ID = null;\n Object PROFILE_START_DATE_VALUE = null;\n Object strPROFILE_END_DATE;\n String strSUBSCRIBER_ID;\n String strT11_MSISDN;\n String strEXTERNAL_ID;\n String strACTIVATION_DATE;\n String strEVENT_SEQ;\n String strCONNECTION_DATE;\n Object strDISCONNECTION_DATE;\n Object strEvent_Date;\n\n\n TRANSLATION_LAYER_MANDATORY_FIELDS Function = new TRANSLATION_LAYER_MANDATORY_FIELDS();\n\n for(T_C3D_SUBSCR_SUB_EVN_LIST objSUB_EVN_LIST : objtestSUB_EVN_LIST){\n\n listOfNullValues.clear();\n listOfIncorrectValues.clear();\n listOfCorrectValues.clear();\n\n try {\n eventSubsId = objSUB_EVN_LIST.getSUBSCRIBER_ID().toString();\n\n } catch (Exception e) {\n\n isSubsIdNotNull = false;\n listOfNullValues.add(\" SUBS_ID '\"+objSUB_EVN_LIST.getSUBSCRIBER_ID()+\"'\");\n }\n\n try {\n strCUSTOMER_ID = objSUB_EVN_LIST.getCUSTOMER_ID().trim().toString();\n\n } catch (Exception e) {\n\n if(checkDuplication(listOfDuplicationRecord,eventSubsId) == false) {\n\n listOfNullValues.add(\" CUSTOMER_ID: '\"+objSUB_EVN_LIST.getCUSTOMER_ID()+\"'\");\n }\n else\n {\n listOfDuplicationRecord.add(eventSubsId);\n }\n }\n\n\n try {\n\n strEvent_Date = objSUB_EVN_LIST.getEVENT_DATE().toString();\n\n\n\n } catch (Exception e) {\n\n listOfNullValues.add(\" EVENT_DATE: '\"+objSUB_EVN_LIST.getEVENT_DATE()+\"'\");\n }\n\n try {\n if (objSUB_EVN_LIST.getBUS_EVENT_TYPE().equals(\"DI\")) {\n\n isSuspen_BusEventType_Null = true;\n listOfCorrectValues.add(\" BUS_EVENT_TYPE: '\"+objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"'\");\n\n } else\n {\n isSuspen_BusEventType_Null = false;\n listOfIncorrectValues.add(\" BUS_EVENT_TYPE: '\"+objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"'\");\n }\n } catch (Exception e) {\n isBusEventTypeNotNull = false;\n listOfNullValues.add(\" BUS_EVENT_TYPE: '\"+objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"\");\n\n }\n\n Function.TRANSLATION_LAYER_MONDATORY_FIELDS();\n\n\n if(listOfNullValues.size() > 0 && listOfIncorrectValues.size() > 0 ) {\n logger.log(LogStatus.FAIL, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\", \" FIELDS WITH NULLS : \" + listOfNullValues+//errorMessageOfNull+\n \" FIELDS WITH INCORRECT VALUES : \" + listOfIncorrectValues);\n numberOfSubsWithNullValues++; numberOfSubsWithIncorrectValues++; totalNumberOfSubs++; failedSubs++;\n //isCheckAllAttr = false;\n }\n else if(listOfNullValues.size() > 0 && listOfIncorrectValues.size() == 0 ) {\n logger.log(LogStatus.FAIL, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\", \" FIELDS WITH NULLS : \" +listOfNullValues);//+ errorMessageOfNull);\n //isCheckAllAttr = false;\n numberOfSubsWithNullValues++; totalNumberOfSubs++; failedSubs++;\n }\n else if(listOfNullValues.size() == 0 && listOfIncorrectValues.size() > 0 ) {\n logger.log(LogStatus.FAIL, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\",\" FIELDS WITH INCORRECT VALUES : \" +listOfIncorrectValues);//+ errorMessageOfIncorrect);\n numberOfSubsWithIncorrectValues++; totalNumberOfSubs++; failedSubs++;\n }else if(listOfCorrectValues.size()>0){\n\n logger.log(LogStatus.PASS, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\",\"EVENT_TYPE: '\" + objSUB_EVN_LIST.getEVENT_TYPE()+\"' \"+\"BUSINESS EVENT_TYPE: '\" + objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"' \"+\" EVENT_DATE: '\"+ objSUB_EVN_LIST.getEVENT_DATE()+\"'\");numberOfSubsWithCorrectValues++; totalNumberOfSubs++; passedSubs++;\n }\n\n }\n\n logger.log(LogStatus.INFO,\"STATISTICS \");\n logger.log(LogStatus.INFO,\"\"+numberOfSubsWithNullValues,\" SUBSCRIBERS WITH NULLS \");\n logger.log(LogStatus.INFO,\"\"+numberOfSubsWithCorrectValues,\" SUBSCRIBERS WITH CORRECT VALUES \");\n logger.log(LogStatus.INFO,\"\"+numberOfSubsWithIncorrectValues,\" SUBSCRIBERS WITH INCORRECT VALUES \");\n logger.log(LogStatus.INFO,\"\"+failedSubs,\" FAILED SUBSCRIBERS \");\n logger.log(LogStatus.INFO,\"\"+passedSubs,\" PASSED SUBSCRIBERS \");\n logger.log(LogStatus.INFO,\"\"+totalNumberOfSubs,\" TOTAL NUMBER OF SUBSCRIBERS \");\n\n\n }catch (Exception e)\n {\n logger.log(LogStatus.FAIL,\"ALL SUBS HAVE NULL EVENT_TYPE\");\n // System.out.println(\"EVENT_TYPE have NULLS for ALL SUBS\");\n }\n\n }",
"@Test\r\n\tpublic void testGetOnHoldReasonString() {\r\n\t\tCommand investigate = new Command(Command.CommandValue.INVESTIGATE, \"owner\", null, null, null, \"note\");\r\n\t\tCommand holdAwaitingCaller = new Command(Command.CommandValue.HOLD, \"owner\", OnHoldReason.AWAITING_CALLER, null, null, \"note\");\r\n\t\tCommand holdAwaitingChange = new Command(Command.CommandValue.HOLD, \"owner\", OnHoldReason.AWAITING_CHANGE, null, null, \"note\");\r\n\t\tCommand holdAwaitingVendor = new Command(Command.CommandValue.HOLD, \"owner\", OnHoldReason.AWAITING_VENDOR, null, null, \"note\");\r\n\r\n\t\tManagedIncident incident = new ManagedIncident(\"jsmith\", Category.NETWORK, Priority.LOW, \"Johnny\", \"lol\");\r\n\t\tincident.update(investigate);\r\n\t\tincident.update(holdAwaitingCaller);\r\n\t\tassertEquals(\"Awaiting Caller\", incident.getOnHoldReasonString());\r\n\t\t\r\n\t\tManagedIncident incident2 = new ManagedIncident(\"jsmith\", Category.NETWORK, Priority.LOW, \"Johnny\", \"lol\");\r\n\t\tincident2.update(investigate);\r\n\t\tincident2.update(holdAwaitingChange);\r\n\t\tassertEquals(\"Awaiting Change\", incident2.getOnHoldReasonString());\r\n\r\n\t\tManagedIncident incident3 = new ManagedIncident(\"jsmith\", Category.NETWORK, Priority.LOW, \"Johnny\", \"lol\");\r\n\t\tincident3.update(investigate);\r\n\t\tincident3.update(holdAwaitingVendor);\r\n\t\tassertEquals(\"Awaiting Vendor\", incident3.getOnHoldReasonString());\r\n\t}",
"@Test\n public void testGetLogbookFaultWithLooseInventory() {\n QuerySet lQuerySet = executeQuery( java.util.UUID.fromString( iUUID_LOOSE_INV ) );\n\n Assert.assertEquals( \"Number of retrieved rows\", 1, lQuerySet.getRowCount() );\n\n lQuerySet.next();\n\n // ensure the value of inv_loose_bool is as expected\n Assert.assertEquals( 1, lQuerySet.getInt( \"inv_loose_bool\" ) );\n\n }",
"@Override\n public void onResponse(String response) {\n String[] info = response.split(\",\");\n //now we know how many invoices do we need to create the same number of buttons\n listener.onInvoiceRetriveSuccess(info);\n }",
"@Override\n public void onResponse(String response) {\n String[] info = response.split(\",\");\n //now we know how many invoices do we need to create the same number of buttons\n System.out.println(info);\n listener.onInvoiceRetrievalSuccess(info);\n }",
"@Override\n public void received(List<Long> ids) {\n List<PurchaseEntity> collect = ids.stream().map(id -> {\n PurchaseEntity byId = this.getById(id);\n return byId;\n }).filter(item -> {\n return item != null && (item.getStatus() == WareConstant.PurchaseStatusEnum.CREATED.getCode() ||\n item.getStatus() == WareConstant.PurchaseStatusEnum.ASSIGNED.getCode());\n }).peek(item -> {\n item.setStatus(WareConstant.PurchaseStatusEnum.RECEIVED.getCode());\n item.setUpdateTime(new Date());\n }).collect(Collectors.toList());\n\n // change order status\n this.updateBatchById(collect);\n\n // change the status of the purchase order\n collect.forEach(item -> {\n List<PurchaseDetailEntity> entities = detailService.listDetailPurchaseId(item.getId());\n List<PurchaseDetailEntity> collect1 = entities.stream().map(entity -> {\n PurchaseDetailEntity entity1 = new PurchaseDetailEntity();\n entity1.setId(entity.getId());\n entity1.setStatus(WareConstant.PurchaseDetailStatusEnum.BUYING.getCode());\n return entity1;\n }).collect(Collectors.toList());\n detailService.updateBatchById(collect1);\n });\n }",
"public Action<PaymentState, PaymentEvent> preAuthAction(){\n\n// this is where you will implement business logic, like API call, check value in DB ect ...\n return context -> {\n System.out.println(\"preAuth was called !!\");\n\n if(new Random().nextInt(10) < 8){\n System.out.println(\"Approved\");\n\n // Send an event to the state machine to APPROVED the auth request\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.PRE_AUTH_APPROVED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n } else {\n System.out.println(\"Declined No Credit !!\");\n\n // Send an event to the state machine to DECLINED the auth request, and add the\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.PRE_AUTH_DECLINED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n }\n };\n }",
"@Override\n public void onIabPurchaseFinished(IabResult result, Purchase purchase) {\n if (result.isSuccess()) {\n Toast.makeText(getApplicationContext(), \"!! Purchase Success !!\" + result,\n Toast.LENGTH_SHORT).show();\n return;\n } else if (result.isFailure()) {\n Toast.makeText(getApplicationContext(), \"!! Purchase Failed !!\" + result,\n Toast.LENGTH_SHORT).show();\n MainConsumer();\n try {\n mHelper.launchPurchaseFlow(MainActivity.this, inappId, 1001,\n mPurchaseFinishedListener, null);\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return;\n } else if (purchase.getSku().equals(\"SKU_GAS\")) {\n Toast.makeText(getApplicationContext(), \"!! Gas \\n Consumed !!\",\n Toast.LENGTH_SHORT).show();\n // consume the gas and update the UI\n } else if (purchase.getSku().equals(\"SKU_PREMIUM\")) {\n Toast.makeText(getApplicationContext(), \"!! Premium !!\",\n Toast.LENGTH_SHORT).show();\n // give user access to premium content and update the UI\n } else if (purchase.getSku().equals(inappId)) {\n Toast.makeText(getApplicationContext(), \"!! Android.Test.Purchased !!\",\n Toast.LENGTH_SHORT).show();\n }\n }",
"@Test\r\n public void testReceiveOrder() throws Exception\r\n {\r\n String epcToCheck = \"urn:epc:id:sgtin:0614142.107349.10\";\r\n XmlTransactionEventType event = dbHelper.getTransactionEventByEpc(epcToCheck);\r\n Assert.assertNull(event);\r\n\r\n runCaptureTest(RECEIVE_ORDER_XML);\r\n\r\n event = dbHelper.getTransactionEventByEpc(epcToCheck);\r\n Assert.assertNotNull(event);\r\n }",
"@Test\n public void given_noDeliveriesAndDeliveryHourNotPassed_when_getDailySubscriptionsToDeliver_then_returnSubscription() {\n }",
"@Test\n public void binCommercialTest() {\n assertFalse(authResponse.isBinCommercial());\n }",
"@Override\r\n public void notifyEndOfSale(RevenueDTO revenue) {\r\n\r\n }",
"public void supervisor_collect()\n {\n try{\n\n\n /* int a = Integer.parseInt(cash1);\n int b = Integer.parseInt(digital1);\n\n int tUnpaid = Integer.parseInt(totalUnpaid);\n\n\n if ((a + b) > tUnpaid || (a+b) == 0) {\n Toast.makeText(getContext(), \"Enter Correct Amount\", Toast.LENGTH_SHORT).show();\n }else {*/\n\n OkHttpClient okHttpClient = new OkHttpClient();\n RestClient.client = new Retrofit.Builder().baseUrl(RestClient.baseUrl).\n client(okHttpClient).\n addConverterFactory(GsonConverterFactory\n .create()).build();\n API api = RestClient.client.create(API.class);\n\n String agent_pin = go_otp;\n\n\n Call<Supervisor_Status_Response> call = api.hap_supervisor_collect(s_id, agent_id, cash.getText().toString(), digital.getText().toString(), paidDate, set_id, total_rides, totalPaid, totalUnpaid, cash2, digital2, amount);\n call.enqueue(new Callback<Supervisor_Status_Response>() {\n @Override\n public void onResponse(Call<Supervisor_Status_Response> call,\n Response<Supervisor_Status_Response> response) {\n getoutResponse = response.body();\n Log.d(\"TAG\", \"onResponse:amith \" + getoutResponse);\n try {\n if (getoutResponse.getStatus().equalsIgnoreCase(\"true\")) {\n\n\n Toast.makeText(getContext(), \"Success\", Toast.LENGTH_SHORT).show();\n getDialog().dismiss();\n\n } else {\n\n Toast.makeText(getContext(), \"please enter valid details\", Toast.LENGTH_SHORT).show();\n getDialog().dismiss();\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n\n @Override\n public void onFailure(Call<Supervisor_Status_Response> call, Throwable t) {\n t.getMessage();\n Toast.makeText(getActivity(),\n \"Try Again\",\n Toast.LENGTH_LONG).show();\n Log.d(\"TAG\", \"onFailure:t\" + t);\n }\n\n });\n// }\n\n }\n catch (Exception e){\n System.out.println(\"msg:\"+e);\n }\n\n }",
"@Test\n public void testClaimProcNewHicInd() {\n new ClaimFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissClaim.Builder::setProcNewHicIndEnum,\n RdaFissClaim::getProcNewHicInd,\n FissProcessNewHealthInsuranceClaimNumberIndicator.PROCESS_NEW_HIC_INDICATOR_Y,\n \"Y\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissClaim.Builder::setProcNewHicIndUnrecognized,\n RdaFissClaim::getProcNewHicInd,\n RdaFissClaim.Fields.procNewHicInd,\n 1);\n }",
"@Test\n public void testStoreSaleMultiple() {\n String responseMsg = target.path(\"service/message\").queryParam(\"messageType\", \"0\").queryParam(\"productType\", \"ELMA\").queryParam(\"value\", \"2.0\").request().get(String.class);\n responseMsg = target.path(\"service/message\").queryParam(\"messageType\", \"1\").queryParam(\"productType\", \"ELMA\").queryParam(\"value\", \"2.0\").queryParam(\"ocurrence\", \"2\").request().get(String.class);\n assertEquals(\"SUCCESS\", responseMsg);\n }",
"public interface PurchaseOrderService {\n /**\n * create Purchase Order From Boq.\n * @param boqDetail boqDetail\n * @param appUser appUser\n * @return PurchaseOrderHeader\n */\n PurchaseOrderHeader createPoFromBoq(BoqDetail boqDetail, AppUser appUser);\n /**\n * add lines to Purchase Order Header.\n * @param purchaseOrderHeader purchaseOrderHeader\n * @param boqDetail boqDetail\n * @return boolean\n */\n boolean addLineToPoFromBoqDetail(PurchaseOrderHeader purchaseOrderHeader, BoqDetail boqDetail);\n\n /**\n * save Purchase Order Header into database.\n * @param purchaseOrderHeader purchaseOrderHeader\n * @param securityContext securityContext\n * @return response\n */\n CommonResponse savePurchaseOrder(PurchaseOrderHeader purchaseOrderHeader, SecurityContext securityContext);\n\n /**\n * get all purchase Order Header.\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderHeaders();\n\n /**\n * get PurchaseOrderHeader whole oblect per pohId.\n * @param pohId pohId.\n * @return PurchaseOrderHeader\n */\n PurchaseOrderHeader getPurchaseOrderHeaderWhole(long pohId);\n /**\n /**\n * get product purchase items for specific supplier.\n * @param suppId suppId\n * @param searchStr searchStr\n * @return List of PruductPurchaseItem\n */\n List<ProductPurchaseItem> getAllSupplierProductPurchaseItems(long suppId, String searchStr);\n /**\n * get all purchase Order Header.\n * @param supplierId supplierId\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierIdAndStatusCode(long supplierId);\n\n /**\n * get all purchase Order Header per orguid and status.\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderHeaderNotFullyReceived();\n\n /**\n * get all purchase Order Header for specific supplier.\n * @param supplierId supplierId\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);\n /**\n * search purchase order header.\n * @param searchForm searchForm\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> searchPurchaseOrderHeaders(GeneralSearchForm searchForm);\n\n /**\n * get product purchase item for specific supplier and catalog no.\n * @param suppId suppId\n * @param catalogNo catalogNo\n * @return List of PruductPurchaseItem\n */\n ProductPurchaseItem getSupplierProductPurchaseItemPerCatalogNo(long suppId, String catalogNo);\n\n /**\n * get all purchase Order Header for specific product.\n * @param prodId prodId\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseLine> getAllPurchaseOrderOfProduct(long prodId);\n\n /**\n * search purchase order header.\n * @param searchForm searchForm\n * @return List of PurchaseOrderHeader\n */\n GeneralSearchForm searchPurchaseOrderHeadersPaging(GeneralSearchForm searchForm);\n /**\n * create Purchase Order From Boq.\n * @param txnDetail sale order detail\n * @param appUser appUser\n * @return PurchaseOrderHeader\n */\n PurchaseOrderHeader createPoFromSaleOrder(TxnDetail txnDetail, AppUser appUser);\n\n /**\n * add lines to Purchase Order Header from txn detail.\n * @param purchaseOrderHeader purchaseOrderHeader\n * @param txnDetail txnDetail\n * @return true if successfull, otherwise return false;\n */\n boolean addLineToPoFromTxnDetail(PurchaseOrderHeader purchaseOrderHeader, TxnDetail txnDetail);\n\n /**\n * get all purchase order headers linked to specific sale order.\n * @param txhdId transaction header id.\n * @return List of purchase order linked to sale order\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderOfSaleOrder(long txhdId);\n\n /**\n * update status of linked BOQ.\n * @param pohId purchaes order header id.\n */\n void updatePurchaseOrderLinkedBoqStatus(long pohId);\n\n /**\n * delete purchase order per poh id.\n * @param pohId pohId\n * @return CommonResponse.\n */\n CommonResponse deletePurchaseOrderPerPhoId(long pohId);\n\n /**\n * update order status of linked sales orders.\n * @param pohId purchaes order header id.\n */\n void updatePurchaseOrderLinkedSaleOrderStatus(long pohId);\n\n /**\n * get all IN-PROGRESS and CONFIRMED purchase Order Header.\n * @param supplierId supplierId\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllOutstandingAndConfirmedPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);\n\n\n /**\n * get product purchase item for specific supplier and catalog no.\n * @param sprcId sprcId\n * @return List of PruductPurchaseItem\n */\n ProductPurchaseItem getProductPurchaseItemPerId(long sprcId);\n}",
"boolean verifyDeveloperPayload(Purchase p) {\n\t\tString payload = p.getDeveloperPayload();\n\n\t\t/*\n\t\t * TODO: verify that the developer payload of the purchase is correct.\n\t\t * It will be the same one that you sent when initiating the purchase.\n\t\t * \n\t\t * WARNING: Locally generating a random string when starting a purchase\n\t\t * and verifying it here might seem like a good approach, but this will\n\t\t * fail in the case where the user purchases an item on one device and\n\t\t * then uses your app on a different device, because on the other device\n\t\t * you will not have access to the random string you originally\n\t\t * generated.\n\t\t * \n\t\t * So a good developer payload has these characteristics:\n\t\t * \n\t\t * 1. If two different users purchase an item, the payload is different\n\t\t * between them, so that one user's purchase can't be replayed to\n\t\t * another user.\n\t\t * \n\t\t * 2. The payload must be such that you can verify it even when the app\n\t\t * wasn't the one who initiated the purchase flow (so that items\n\t\t * purchased by the user on one device work on other devices owned by\n\t\t * the user).\n\t\t * \n\t\t * Using your own server to store and verify developer payloads across\n\t\t * app installations is recommended.\n\t\t */\n\n\t\treturn true;\n\t}",
"boolean verifyDeveloperPayload(Purchase p) {\n\t String payload = p.getDeveloperPayload();\n\n\t return true;\n\t }",
"public void testDispatchTypes() {\n startActivity();\n \n Log.v(TAG,\"testDispatchTypes\");\n SystemDispatcher.Listener listener = new SystemDispatcher.Listener() {\n\n public void onDispatched(String type , Map message) {\n Log.v(TAG,\"testDispatchTypes - received: \" + type);\n\n if (!type.equals(\"Automater::response\")) {\n return;\n }\n\n Payload payload = new Payload();\n payload.name = type;\n payload.message = message;\n\n lastPayload = payload;\n }\n };\n\n SystemDispatcher.addListener(listener);\n\n Map message = new HashMap();\n message.put(\"field1\",\"value1\");\n message.put(\"field2\",10);\n message.put(\"field3\",true);\n message.put(\"field4\",false);\n \n List field5 = new ArrayList(3);\n field5.add(23);\n field5.add(true);\n field5.add(\"stringValue\");\n message.put(\"field5\",field5);\n field5 = new ArrayList(10);\n\n Map field6 = new HashMap();\n field6.put(\"sfield1\", \"value1\");\n field6.put(\"sfield2\", 10);\n field6.put(\"sfield3\", true);\n field6.put(\"sfield4\", false);\n message.put(\"field6\", field6);\n \n assertTrue(lastPayload == null);\n\n SystemDispatcher.dispatch(\"Automater::echo\",message);\n sleep(500);\n\n assertTrue(lastPayload != null);\n assertTrue(lastPayload.message.containsKey(\"field1\"));\n assertTrue(lastPayload.message.containsKey(\"field2\"));\n assertTrue(lastPayload.message.containsKey(\"field3\"));\n assertTrue(lastPayload.message.containsKey(\"field4\"));\n assertTrue(lastPayload.message.containsKey(\"field5\"));\n assertTrue(lastPayload.message.containsKey(\"field6\"));\n\n String field1 = (String) lastPayload.message.get(\"field1\");\n assertTrue(field1.equals(\"value1\"));\n\n int field2 = (int) (Integer) lastPayload.message.get(\"field2\");\n assertEquals(field2,10);\n\n boolean field3 = (boolean)(Boolean) lastPayload.message.get(\"field3\");\n assertEquals(field3,true);\n\n boolean field4 = (boolean)(Boolean) lastPayload.message.get(\"field4\");\n assertEquals(field4,false);\n \n List list = (List) lastPayload.message.get(\"field5\");\n assertEquals(list.size(),3);\n assertEquals(list.get(0), 23);\n assertEquals(list.get(1), true);\n assertTrue((((String) list.get(2)).equals(\"stringValue\")));\n\n Map map = (Map) lastPayload.message.get(\"field6\");\n assertTrue(map.containsKey(\"sfield1\"));\n assertTrue(((String) map.get(\"sfield1\")).equals(\"value1\"));\n assertTrue(map.containsKey(\"sfield2\"));\n assertEquals(map.get(\"sfield2\"), 10);\n assertTrue(map.containsKey(\"sfield3\"));\n assertTrue(map.containsKey(\"sfield4\"));\n \n SystemDispatcher.removeListener(listener);\n }",
"public final /* synthetic */ boolean mo4653a(C4883b c4883b) {\n AppMethodBeat.m2504i(26274);\n C42076vi c42076vi = (C42076vi) c4883b;\n if (c42076vi instanceof C42076vi) {\n switch (c42076vi.cSq.cuy) {\n case 2:\n C4990ab.m7417i(\"MicroMsg.Wear.WearBizLogic\", \"receive register response, deviceId=%s | isSuccess=%b\", c42076vi.cSq.ceI, Boolean.valueOf(c42076vi.cSq.cxT));\n break;\n case 5:\n C4990ab.m7417i(\"MicroMsg.Wear.WearBizLogic\", \"receive send response, deviceId=%s | isSuccess=%b\", c42076vi.cSq.ceI, Boolean.valueOf(c42076vi.cSq.cxT));\n break;\n case 6:\n ctv ctv = C43841a.cUn().tXt.tXK.tYz;\n if (ctv != null && ctv.xqs.equals(c42076vi.cSq.ceI)) {\n C4990ab.m7417i(\"MicroMsg.Wear.WearBizLogic\", \"request step count deviceId=%s\", c42076vi.cSq.ceI);\n C43842b c43842b = C43842b.this;\n boolean adq = C43842b.adq(c42076vi.cSq.ceI);\n boolean cUo = C43842b.cUo();\n if (!adq || !c43842b.tXD || !cUo) {\n C4990ab.m7417i(\"MicroMsg.Wear.WearBizLogic\", \"isRegister=%b | isFocus=%b | isAuth=%b\", Boolean.valueOf(adq), Boolean.valueOf(cUo), Boolean.valueOf(c43842b.tXD));\n break;\n }\n C43841a.cUn().tXz.mo69532a(new C297222());\n break;\n }\n C4990ab.m7416i(\"MicroMsg.Wear.WearBizLogic\", \"request is null or request.LocalNodeId is not same!\");\n break;\n break;\n case 8:\n C4990ab.m7417i(\"MicroMsg.Wear.WearBizLogic\", \"receive auth response, deviceId=%s | isSuccess=%b\", c42076vi.cSq.ceI, Boolean.valueOf(c42076vi.cSq.cxT));\n C43842b.this.tXD = c42076vi.cSq.cxT;\n break;\n case 9:\n C43842b.this.connect();\n break;\n }\n }\n AppMethodBeat.m2505o(26274);\n return false;\n }",
"@Test(priority = 10, description = \"To verify Status of Vendor HERE\")\n\tpublic void VerifyvendorsStatusinTableDTCVendorHERE() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\tExcelHandler wb = new ExcelHandler(\"./data/Filter.xlsx\", \"Syndication\");\n\t\twb.deleteEmptyRows();\n\t\tString LocNum = wb.getCellValue(3, wb.seacrh_pattern(\"Location Number\", 0).get(0).intValue());\n\t\tSystem.out.println(\"The Location Number is :\" + LocNum);\n\t\tString Vendor = wb.getCellValue(3, wb.seacrh_pattern(\"Vendor\", 0).get(0).intValue());\n\t\tSystem.out.println(\"The Location Number is :\" + Vendor);\n\t\tdata.getLocationDetailsDTCVendors(LocNum, Vendor);\n\t\taddEvidence(CurrentState.getDriver(), \"To Verify Status of Vendors of DTC\", \"yes\");\n\t}",
"private static void verifyMultipleSingleScanResults(InOrder handlerOrder, Handler handler,\n int requestId1, ScanResults results1, int requestId2, ScanResults results2,\n int listenerRequestId, ScanResults listenerResults) {\n ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class);\n handlerOrder.verify(handler, times(listenerResults == null ? 4 : 5))\n .handleMessage(messageCaptor.capture());\n int firstListenerId = messageCaptor.getAllValues().get(0).arg2;\n assertTrue(firstListenerId + \" was neither \" + requestId2 + \" nor \" + requestId1,\n firstListenerId == requestId2 || firstListenerId == requestId1);\n if (firstListenerId == requestId2) {\n assertScanResultsMessage(requestId2,\n new WifiScanner.ScanData[] {results2.getScanData()},\n messageCaptor.getAllValues().get(0));\n assertSingleScanCompletedMessage(requestId2, messageCaptor.getAllValues().get(1));\n assertScanResultsMessage(requestId1,\n new WifiScanner.ScanData[] {results1.getScanData()},\n messageCaptor.getAllValues().get(2));\n assertSingleScanCompletedMessage(requestId1, messageCaptor.getAllValues().get(3));\n if (listenerResults != null) {\n assertScanResultsMessage(listenerRequestId,\n new WifiScanner.ScanData[] {listenerResults.getScanData()},\n messageCaptor.getAllValues().get(4));\n }\n } else {\n assertScanResultsMessage(requestId1,\n new WifiScanner.ScanData[] {results1.getScanData()},\n messageCaptor.getAllValues().get(0));\n assertSingleScanCompletedMessage(requestId1, messageCaptor.getAllValues().get(1));\n assertScanResultsMessage(requestId2,\n new WifiScanner.ScanData[] {results2.getScanData()},\n messageCaptor.getAllValues().get(2));\n assertSingleScanCompletedMessage(requestId2, messageCaptor.getAllValues().get(3));\n if (listenerResults != null) {\n assertScanResultsMessage(listenerRequestId,\n new WifiScanner.ScanData[] {listenerResults.getScanData()},\n messageCaptor.getAllValues().get(4));\n }\n }\n }",
"boolean verifyDeveloperPayload(Purchase p) {\n\t\t/*String payload = */p.getDeveloperPayload();\n\n\t\t/*\n\t\t * TODO: verify that the developer payload of the purchase is correct.\n\t\t * It will be the same one that you sent when initiating the purchase.\n\t\t * \n\t\t * WARNING: Locally generating a random string when starting a purchase\n\t\t * and verifying it here might seem like a good approach, but this will\n\t\t * fail in the case where the user purchases an item on one device and\n\t\t * then uses your app on a different device, because on the other device\n\t\t * you will not have access to the random string you originally\n\t\t * generated.\n\t\t * \n\t\t * So a good developer payload has these characteristics:\n\t\t * \n\t\t * 1. If two different users purchase an item, the payload is different\n\t\t * between them, so that one user's purchase can't be replayed to\n\t\t * another user.\n\t\t * \n\t\t * 2. The payload must be such that you can verify it even when the app\n\t\t * wasn't the one who initiated the purchase flow (so that items\n\t\t * purchased by the user on one device work on other devices owned by\n\t\t * the user).\n\t\t * \n\t\t * Using your own server to store and verify developer payloads across\n\t\t * app installations is recommended.\n\t\t */\n\n\t\treturn true;\n\t}",
"public String[] checkstatusResponse(String input)\n\t{\n\t\tinput = tselDecrypt(key,input);\n\n\t\tcheckstatusResponse=input.split(\"@~|\");\n\n\t\treturn checkstatusResponse;\n\t}",
"private void testNameAndValue(String resultFromRPCServer , String nameOfProduct, int valueForOrder){\n if(resultFromRPCServer.contains(nameOfProduct)){\n System.out.println(\"Name of Product is same\");\n }else{\n System.out.println(\"Name of Product is not same\");\n }\n\n if(resultFromRPCServer.contains(\"\"+ valueForOrder)){\n System.out.println(\"Value of Product is equal\");\n }else{\n System.out.println(\"Value of Product is not equal\");\n }\n\n\n }",
"public void testMetaDataVerificationForLSEventName(final String programeName,\n final String eventName) throws ParseException;",
"public static void reviewAcceptedTrade(League theLeague, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Accepted Trade---\");\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(theLeague.getPendingTrade());\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"-Has this trade been processed?-\");\r\n\t\tSystem.out.println(\"1 - Yes\");\r\n\t\tSystem.out.println(\"2 - No\");\r\n\r\n\t\tif (Input.validInt(1, 2, keyboard) == 1) {\r\n\t\t\ttheLeague.setPendingTrade(\"\");\r\n\t\t}\r\n\t}",
"@Test\n public void testDontRaiseAlertNotDebitTxnClass() {\n BigDecimal balance = new BigDecimal(\"39.99\").setScale(2);\n String threshold = \"40\";\n long accountNumber = 1234567L;\n Integer transactionClass = 5;\n Integer transactionType = 2269;\n\n String accountNumberString = Long.toString(accountNumber);\n when(tuple.getValueByField(CBSMessageFields.FIELD_CURRENT_ACCOUNT_BALANCE)).thenReturn(balance);\n when(tuple.getStringByField(OCISDetails.THRESHOLD)).thenReturn(threshold);\n when(tuple.getLongByField(CBSMessageFields.FIELD_ACCOUNT_NUMBER)).thenReturn(accountNumber);\n when(tuple.getIntegerByField(CBSMessageFields.FIELD_TXN_CLASS)).thenReturn(transactionClass);\n when(tuple.getIntegerByField(CBSMessageFields.FIELD_TXN_TYPE)).thenReturn(transactionType);\n\n RaiseLowBalanceAlert alertFunction = new RaiseLowBalanceAlert();\n alertFunction.execute(tuple, collector);\n\n ArgumentCaptor<Values> valuesCaptor = ArgumentCaptor.forClass(Values.class);\n verify(collector).emit(valuesCaptor.capture());\n\n Values values = valuesCaptor.getValue();\n assertThat(values, notNullValue());\n assertThat(values.size(), is(2));\n assertThat((String)values.get(0), is(accountNumberString));\n assertThat(values.get(1), nullValue());\n }",
"@Test\n public void testStoreSaleAdjSale2() {\n String responseMsg = target.path(\"service/message\").queryParam(\"messageType\", \"0\").queryParam(\"productType\", \"ELMA\").queryParam(\"value\", \"2.0\").request().get(String.class);\n responseMsg = target.path(\"service/message\").queryParam(\"messageType\", \"1\").queryParam(\"productType\", \"ELMA\").queryParam(\"value\", \"2.0\").queryParam(\"ocurrence\", \"2\").request().get(String.class);\n responseMsg = target.path(\"service/message\").queryParam(\"messageType\", \"2\").queryParam(\"productType\", \"ELMA\").queryParam(\"value\", \"2.0\").queryParam(\"operator\", \"2\").request().get(String.class);\n assertEquals(\"SUCCESS\", responseMsg);\n }",
"public void roomprice_validation(String After_offerprice ,String Before_offerprice )\r\n\t{\r\n\t\tSystem.out.println(\"Before offer price is \"+Before_offerprice);\r\n\t\tSystem.out.println(\"After offer price is \"+After_offerprice);\r\n\r\n\t\tif(!(After_offerprice.equals(Before_offerprice)))\r\n\t\t{\r\n\t\t\t//System.out.println(\"Offer code applied successfully and room price chnaged according to the offer\");\r\n\r\n\t\t\tlogger.info(\"Offer code applied successfully and room price chnaged according to the offer\");\r\n\t\t\ttest.log(Status.PASS, \"Offer code applied successfully and room price changed according to the offer\");\r\n\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t//System.out.println(\"After offer code applied room price not changed\");\r\n\t\t\t//logger.error(\"After offer code applied room price not changed\");\r\n\t\t\t//test.log(Status.FAIL, \"After offer code applied room price not changed\");\r\n\r\n\t\t}\r\n\t}",
"public static void logPurchaseAttempted() {\n /*if(ZeTarget.robolectricTesting) {\n System.out.println(\"ZETARGET: logging purchase attempted event\");\n }*/\n logEvent(Constants.Z_PURCHASE_ATTEMPTED_EVENT);\n }",
"@Test\r\n public void testCommissionPallets() throws Exception\r\n {\r\n String epcToCheck = \"urn:epc:id:sscc:0614141.0000000001\";\r\n XmlObjectEventType event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n Assert.assertNull(event);\r\n\r\n runCaptureTest(COMMISSION_PALLETS_XML);\r\n\r\n event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n Assert.assertNotNull(event);\r\n }",
"boolean hasBidresponse();",
"public void VerifyBillingTabPaymentDetails(String payment0, String payment1, String payment2, String payment3){\r\n\t\tString[] Payment = {getValue(payment0),getValue(payment1),getValue(payment2),getValue(payment3)};\r\n\t\tString Payments=\"\";\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:- Payment Methods should be present in Checkout Page\");\r\n\r\n\t\ttry{\r\n\t\t\tsleep(8000);\r\n\t\t\tList<WebElement> ele = listofelements(locator_split(\"txtCheckoutPaymentMethods\"));\r\n\r\n\t\t\tfor(int i=0; i<ele.size(); i++){\r\n\t\t\t\tif(getText(ele.get(i)).contains(Payment[i])){\r\n\t\t\t\t\tSystem.out.println(getText(ele.get(i))+\" payment option is present\");\r\n\t\t\t\t\tPayments=Payments.concat(getText(ele.get(i))).concat(\", \");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSystem.out.println(\"one or more Payment options are not present\");\r\n\t\t\t\t\tthrow new Error(\"one or more Payment options are not present\");\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- All the payment options\"+Payments+\" are present\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Element is not present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCheckoutBillingAddress\")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCheckoutPaymentMethods\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t\tcatch (Error e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- one or more Payment options are not present\");\r\n\r\n\t\t}\r\n\t}",
"@Override\n\tprotected List<String[]> transform(String[] fields) {\n\t\t//put collection\n\t\tList<String[]> results = new ArrayList<String[]>();\n //event\n String event_id = fields[0];\n\n //status - yes\n if ( fields.length > 1 && fields[1] != null ) {\n \t//split\n \tString[] yesUsers = fields[1].split(\" \");\n \t//check\n \tif ( yesUsers != null && yesUsers.length > 0 ) {\n \t\t//loop\n \t\tfor ( String yesUser : yesUsers ) {\n \t\t\t//add\n \t\t\tresults.add(new String[] { event_id, yesUser, \"yes\" });\n \t\t} \n \t}\n } \n \n //status - maybe\n if ( fields.length > 2 && fields[2] != null ) {\n \t//split\n \tString[] maybeUsers = fields[2].split( \" \" );\n \t//check\n \tif ( maybeUsers != null && maybeUsers.length > 0 ) {\n \t\t//loop\n \t\tfor ( String maybeUser : maybeUsers ) {\n \t\t\t//add\n \t\t\tresults.add(new String[] { event_id, maybeUser, \"maybe\" });\n \t\t} \n \t}\n } \n\n //status - invited\n if ( fields.length > 3 && fields[3] != null ) {\n \t//split\n \tString[] invitedUsers = fields[3].split( \" \" );\n \t//check\n \tif ( invitedUsers != null && invitedUsers.length > 0 ) {\n \t\t//loop\n \t\tfor ( String invitedUser : invitedUsers ) {\n \t\t\t//add\n \t\t\tresults.add(new String[] { event_id, invitedUser, \"invited\" });\n \t\t} \n \t}\n } \n\n //status - no\n if ( fields.length > 4 && fields[4] != null ) {\n \t//split\n \tString[] noUsers = fields[4].split( \" \" );\n \t//check\n \tif ( noUsers != null && noUsers.length > 0 ) {\n \t\t//loop\n \t\tfor ( String noUser : noUsers ) {\n \t\t\t//add\n \t\t\tresults.add(new String[] { event_id, noUser, \"no\" });\n \t\t} \n \t}\n } \n return results;\n }",
"private static CheckResult test6(String reply, String attach) {\n\n String[] blocks = reply.split(\"\\n(\\n+)?\\n\");\n\n if (blocks.length != 12) {\n return new CheckResult(false,\n \"Your program shows wrong blocks of output. Expected: 12\\n\" +\n \"You have: \" + blocks.length + \"\\n\" +\n \"Make sure that you print an empty line after each chosen action\");\n }\n\n String balanceAfterDownloadingPurchases = blocks[3];\n\n if (!balanceAfterDownloadingPurchases.replace(\",\", \".\").contains(\"785.64\")) {\n return new CheckResult(false,\n \"Your program reads balance from file wrong!\");\n }\n\n //All purchases list\n\n String allPurchases = blocks[6];\n\n String[] expectedPurchases = {\n \"Almond 250g $35.43\",\n \"Milk $3.50\",\n \"Red Fuji Apple $5.99\",\n \"Eggs $3.99\",\n \"FIJI Natural Artesian Water $25.98\",\n \"Hershey's milk chocolate bars $8.54\",\n \"Great Value Broccoli Florets $1.00\",\n \"Keystone Ground Bee $6.28\",\n \"Gildan LT $8.61\",\n \"Men's Dual Defense Crew Socks 12 Pairs $13.00\",\n \"Wrangler Men's Stretch Cargo Pant $19.97\",\n \"LEGO DUPLO Town Farm Animals $10.10\",\n \"Cinema $8.73\",\n \"Skate rental $30.00\",\n \"Sensodyne Pronamel Toothpaste $19.74\",\n \"Chick-fil-A $10 Gift Card $10.00\",\n \"Debt $3.50\"\n };\n\n for (String expectedPurchase : expectedPurchases) {\n if (!allPurchases.contains(expectedPurchase)) {\n return new CheckResult(false,\n \"Your all purchases list doesn't have purchase:\\n\" +\n expectedPurchase + \"\\n\" +\n \"But should have!\");\n }\n }\n\n String[] temp = allPurchases.split(\"\\n\");\n String totalSum = temp[temp.length - 1];\n\n Pattern doublePattern = Pattern.compile(\"\\\\d+[,.]\\\\d+\");\n Matcher matcher = doublePattern.matcher(totalSum);\n\n if (!matcher.find()) {\n return new CheckResult(false,\n \"Total sum of all purchases is wrong. Expected:\\n\" +\n \"Total sum: $214.36\\n\" +\n \"Your output:\\n\" +\n totalSum);\n }\n\n double allTotalSum = Double.parseDouble(matcher.group());\n\n if (Math.abs(allTotalSum - 214.36) > 0.0001) {\n return new CheckResult(false,\n \"Your all total sum is wrong!\");\n }\n\n //Food list\n\n String foodList = blocks[8];\n\n expectedPurchases = new String[]{\n \"Almond 250g $35.43\",\n \"Milk $3.50\",\n \"Red Fuji Apple $5.99\",\n \"Eggs $3.99\",\n \"FIJI Natural Artesian Water $25.98\",\n \"Hershey's milk chocolate bars $8.54\",\n \"Great Value Broccoli Florets $1.00\",\n \"Keystone Ground Bee $6.28\"\n };\n\n for (String expectedPurchase : expectedPurchases) {\n if (!foodList.contains(expectedPurchase)) {\n return new CheckResult(false,\n \"Your food list doesn't have purchase:\\n\" +\n expectedPurchase + \"\\n\" +\n \"But should have!\");\n }\n }\n\n temp = foodList.split(\"\\n\");\n totalSum = temp[temp.length - 1];\n\n matcher = doublePattern.matcher(totalSum);\n\n if (!matcher.find()) {\n return new CheckResult(false,\n \"Total sum of food list is wrong. Expected:\\n\" +\n \"Total sum: $90.71\\n\" +\n \"Your output:\\n\" + totalSum);\n }\n\n double foodTotalSum = Double.parseDouble(matcher.group());\n\n if (Math.abs(foodTotalSum - 90.71) > 0.0001) {\n return new CheckResult(false,\n \"Your food total sum is wrong!\");\n }\n\n return new CheckResult(true);\n }",
"@Then(\"^verify system returns only selected columns$\")\r\n\tpublic void verify_system_returns_only_selected_columns() throws Throwable {\r\n\t\tScenarioName.createNode(new GherkinKeyword(\"Then\"),\"verify system returns only selected columns\");\r\n\t\tList<Data> data = respPayload.getData();\r\n\t\t\r\n\t\tAssert.assertTrue(!data.get(0).getManufacturer().isEmpty());\r\n\t\tSystem.out.println(\"1 st Manufacturer \"+ data.get(0).getManufacturer());\r\n\t\t \r\n\t\t\r\n\t}",
"public void VerifyCheckoutTermsandCondition(String Exptitle){\r\n\t\tString ExpTitle=getValue(Exptitle);\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:- Terms and Condition should be present\");\r\n\r\n\t\ttry{\r\n\t\t\tif(getAndVerifyPartialText(locator_split(\"txtCheckoutTermstitle\"), ExpTitle)){\r\n\t\t\t\tSystem.out.println(\"Terms and Condition in Billing is present \"+getText(locator_split(\"txtCheckoutTermstitle\")));\r\n\t\t\t}else{\r\n\t\t\t\tthrow new Exception(\"Terms and Condition in Billing is not present\");\r\n\t\t\t}\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Terms and Condition is present\");\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Terms and Condition in Billing is not present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCheckoutTermstitle\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}",
"@Test\n public void testInsuredPayerInsuredRelX12() {\n new InsuredPayerFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissInsuredPayer.Builder::setInsuredRelX12Enum,\n RdaFissPayer::getInsuredRelX12,\n FissPatientRelationshipCode.PATIENT_RELATIONSHIP_CODE_DEFAULT,\n \"00\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissInsuredPayer.Builder::setInsuredRelX12Unrecognized,\n RdaFissPayer::getInsuredRelX12,\n RdaFissPayer.Fields.insuredRelX12,\n 2);\n }",
"@Test\n public void testBeneZPayerRelInd() {\n new BeneZPayerFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissBeneZPayer.Builder::setRelIndEnum,\n RdaFissPayer::getRelInd,\n FissReleaseOfInformation.RELEASE_OF_INFORMATION_NO_RELEASE_ON_FILE,\n \"N\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissBeneZPayer.Builder::setRelIndUnrecognized,\n RdaFissPayer::getRelInd,\n RdaFissPayer.Fields.relInd,\n 1);\n }",
"@Override\n\tpublic void offLineResult(Pair<Boolean, Object> res, int offLineRequestType) {\n\t\tLog.i(TAG, \"offLineResult()offLineRequestType:\" + offLineRequestType\n\t\t\t\t+ \",res.second\" + (res.second != null));\n\t\tif (res.first) {\n\t\t\toffLineToast(getString(R.string.save_success));\n\t\t\tfinish();\n\t\t} else {\n\t\t\toffLineToast((String) res.second);\n\t\t}\n\t}",
"boolean verifyDeveloperPayload(Purchase p) {\n String payload = p.getDeveloperPayload();\n String messageAfterDecrypt = \"not_empty_line\";\n String password = getString(R.string.check_token);\n ;\n try {\n messageAfterDecrypt = AESCrypt.decrypt(password, payload);\n //Log.e(TAG, \"messageAfterDecrypt \" + messageAfterDecrypt);\n //Log.e(TAG, \"email \" + email);\n } catch (GeneralSecurityException e) {\n e.printStackTrace();\n //handle error - could be due to incorrect password or tampered encryptedMsg\n }\n// if (messageAfterDecrypt.equals(email)){\n// return true;\n// }\n if (Utils.isEmailValid(messageAfterDecrypt)) {\n return true;\n }\n\n return false;\n }",
"private String gameOutcome (String slot1, String slot2, String slot3) {\n\t\tif (slot1.equals(BAR) && slot2.equals(BAR) && slot3.equals(BAR)) {\n\t\t\tsetWallet(250);\n\t\t\treturn \"You Win 250$\";\n\t\t} else if (slot1.equals(BELL) && slot2.equals(BELL) && (slot3.equals(BELL) || slot3.equals(BAR))) { // dont forget about having || in parentheses !!!!!!!!!!\n\t\t\tsetWallet(20);\n\t\t\treturn \"You win 20$\";\n\t\t} else if (slot1.equals(PLUM) && slot2.equals(PLUM) && (slot3.equals(PLUM) || slot3.equals(BAR))) {\n\t\t\tsetWallet(14);\n\t\t\treturn \"You Win 14$\";\n\t\t} else if (slot1.equals(ORANGE) && slot2.equals(ORANGE) && (slot3.equals(ORANGE) || slot3.equals(BAR))) {\n\t\t\tsetWallet(10);\n\t\t\treturn \"You Win 10$\";\n\t\t} else if (slot1.equals(CHERRY) && slot2.equals(CHERRY) && slot3.equals(CHERRY)) {\n\t\t\tsetWallet(7);\n\t\t\treturn \"You Win 7$\";\n\t\t} else if (slot1.equals(CHERRY) && slot2.equals(CHERRY) && slot3.equals(EMPTY_SLOT)) {\n\t\t\tsetWallet(5);\n\t\t\treturn \"You Win 5$\";\n\t\t} else if (slot1.equals(CHERRY) && slot2.equals(EMPTY_SLOT) && slot3.equals(EMPTY_SLOT)) {\n\t\t\tsetWallet(2);\n\t\t\treturn \"You Win 2$\";\n\t\t} else {\n\t\t\treturn \"You lose\";\n\t\t}\n\t}",
"private void validateTransactionCode(ATMSparrowMessage atmSparrowMessage, BankFusionEnvironment env) {\n boolean result = isTransactionSupported(atmSparrowMessage.getMessageType() + atmSparrowMessage.getTransactionType(), env);\n if (result) {\n atmSparrowMessage.setAuthorisedFlag(ATMConstants.AUTHORIZED_MESSAGE_FLAG);\n // String ubTransCode =\n // atmHelper.getBankTransactionCode(atmSparrowMessage.getMessageType()\n // + atmSparrowMessage.getTransactionType(), env);\n // //UBTransaction type mapped or not?\n // try {\n // IBOMisTransactionCodes misTransactionCodes =\n // (IBOMisTransactionCodes)env.getFactory().findByPrimaryKey(IBOMisTransactionCodes.BONAME,\n // ubTransCode);\n // } catch (FinderException bfe) {\n // Object[] field = new Object[] { ubTransCode };\n // atmSparrowMessage.setAuthorisedFlag(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG);\n // if\n // (atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_0))\n // {\n // populateErrorDetails (ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG,\n // ATMConstants.WARNING, 7508, BankFusionMessages.ERROR_LEVEL,\n // atmSparrowMessage, field, env);\n // } else if\n // (atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_1)\n // ||\n // atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_2)\n // ||\n // atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_3)\n // ||\n // atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_7))\n // {\n // populateErrorDetails (ATMConstants.AUTHORIZED_MESSAGE_FLAG,\n // ATMConstants.CRITICAL, 7508, BankFusionMessages.ERROR_LEVEL,\n // atmSparrowMessage, field, env);\n // if (controlDetails != null) {\n // ubTransCode = controlDetails.getAtmTransactionType();\n // }\n // }\n // }\n }\n else {\n atmSparrowMessage.setAuthorisedFlag(ATMConstants.NOTAUTHORIZED_MESSAGE_FLAG);\n /*\n * String errorMessage = BankFusionMessages.getFormattedMessage(BankFusionMessages\n * .ERROR_LEVEL, 7506, env, new Object[] { atmSparrowMessage .getMessageType() +\n * atmSparrowMessage.getTransactionType() });\n */\n String errorMessage = BankFusionMessages.getInstance().getFormattedEventMessage(40407506,\n new Object[] { atmSparrowMessage.getMessageType() + atmSparrowMessage.getTransactionType() },\n BankFusionThreadLocal.getUserSession().getUserLocale());\n String errorStatus = null;\n if (atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_0)\n || atmSparrowMessage.getForcePost().equals(ATMConstants.FORCEPOST_6)) {\n errorStatus = ATMConstants.WARNING;\n logger.warn(errorMessage);\n }\n else {\n errorStatus = ATMConstants.CRITICAL;\n logger.error(errorMessage);\n }\n atmSparrowMessage.setErrorCode(errorStatus);\n atmSparrowMessage.setErrorDescription(errorMessage);\n }\n }",
"public void selectDualExciters(){\r\n if(checkDualExciters())\r\n System.out.println(\"Dual Exciters Checked\");\r\n else\r\n System.out.println(\"Dual Exciters Unchecked\");\r\n }",
"public void bookHotelScenarioTest() throws BookHotelFault, DatatypeConfigurationException, CancelHotelFault{\n // Booking of an hotel in Paris\n BookHotelInputType input = CreateBookHotelInputType(\"booking_Hotel_4\", \"Tick Joachim\", \"50408824\", 2, 11);\n boolean result = bookHotel(input);\n assertEquals(true, result);\n System.out.println(\"first test result: \" + result); \n \n if(result == true){\n // Trying to get the list of hotel from Paris and we should have only one hotel because the NY hotel is already booked\n GetHotelInputType getInput = CreateGetHotelInputType(\"Paris\");\n GetHotelsOutputType getOutput = getHotels(getInput);\n int expectedNbHotels = 1;\n int resultNbHotels = 0;\n if (getOutput.getHotelInformations().isEmpty() == false){\n resultNbHotels = getOutput.getHotelInformations().size();\n } \n cancelHotel(\"booking_Hotel_4\");\n assertEquals(expectedNbHotels, resultNbHotels); \n } \n else {\n assertEquals(true, false);\n }\n }",
"public interface PurchaseEnable\n {\n /**\n * allow\n */\n String UN_SUPPORT = \"0\";\n\n /**\n * not allow\n */\n String SUPPORT = \"1\";\n }",
"@Test\n public void testBeneZPayerAssignInd() {\n new BeneZPayerFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissBeneZPayer.Builder::setAssignIndEnum,\n RdaFissPayer::getAssignInd,\n FissAssignmentOfBenefitsIndicator.ASSIGNMENT_OF_BENEFITS_INDICATOR_BENEFITS_ASSIGNED,\n \"Y\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissBeneZPayer.Builder::setAssignIndUnrecognized,\n RdaFissPayer::getAssignInd,\n RdaFissPayer.Fields.assignInd,\n 1);\n }",
"public void testMetaDataVerificationForLSEventDescription(final String programeName,\n final String eventName, final String eventDescription) throws ParseException;",
"public boolean processRequirementSummary() throws NbaBaseException {\n\t\tboolean success = false;\n\t\tNbaVpmsAdaptor vpmsProxy = null; //SPR3362\n\t\ttry {\n\t\t\tNbaOinkDataAccess oinkData = new NbaOinkDataAccess(txLifeReqResult); //ACN009\n\t\t\toinkData.setAcdbSource(new NbaAcdb(), nbaTxLife);\n\t\t\toinkData.setLobSource(work.getNbaLob());\n\t\t\tif(getLogger().isDebugEnabled()) { //SPR3290\n\t\t\t getLogger().logDebug(\"########### Testing Requirment Summary ###########\");\n\t\t\t getLogger().logDebug(\"########### PartyId: \" + partyID);\n\t\t\t}//SPR3290\n\t\t\tvpmsProxy = new NbaVpmsAdaptor(oinkData, NbaVpmsAdaptor.ACREQUIREMENTSUMMARY); //SPR3362\n\t\t\tvpmsProxy.setVpmsEntryPoint(NbaVpmsAdaptor.EP_GET_CALCXMLOBJECTS);\n\t\t\tMap deOink = new HashMap();\n\t\t\t//\t\t\t######## DEOINK\n\t\t\tdeOink.put(NbaVpmsConstants.A_PROCESS_ID, NbaUtils.getBusinessProcessId(getUser())); //SPR2639\n\t\t\tdeOinkContractFieldsForRequirement(deOink);\n\t\t\tdeOinkXMLResultFields(deOink);\n deOinkSubstanceUsage(oinkData, deOink, partyID); //AXAL3.7.07\n\t\t\tdeOinkLabTestResults(deOink);\n\t\t\tObject[] args = getKeys();\n\t\t\tNbaOinkRequest oinkRequest = new NbaOinkRequest();\n\t\t\toinkRequest.setRequirementIdFilter(reqId);\n\t\t\toinkRequest.setArgs(args);\n\t\t\tvpmsProxy.setANbaOinkRequest(oinkRequest);\n\t\t\tvpmsProxy.setSkipAttributesMap(deOink);\n\t\t\tVpmsComputeResult vcr = vpmsProxy.getResults();\n\t\t\tNbaVpmsResultsData vpmsResultsData = new NbaVpmsResultsData(vcr);\n\t\t\tArrayList results = vpmsResultsData.getResultsData();\n\t\t\tresults = vpmsResultsData.getResultsData();\n\t\t\t//Resulting string will be the zeroth element.\n\t\t\tif (results == null) {\n\t\t\t\t//SPR3362 code deleted\n\t\t\t\tthrow new NbaVpmsException(NbaVpmsException.VPMS_NO_RESULTS + NbaVpmsAdaptor.ACREQUIREMENTSUMMARY); //SPR2652\n\t\t\t} //SPR2652\n\t\t\tvpmsResult = (String) results.get(0);\n\t\t\tNbaVpmsModelResult vpmsOutput = new NbaVpmsModelResult(vpmsResult);\n\t\t\tVpmsModelResult vpmModelResult = vpmsOutput.getVpmsModelResult();\n\t\t\tupdateDefaultValues(vpmModelResult.getDefaultValues());\n\t\t\tupdateSummaryValues(vpmModelResult.getSummaryValues());\n\t\t\tsuccess = true;\n\t\t\t// SPR2652 Code Deleted\n\t\t\t//SPR3362 code deleted\n\t\t} catch (RemoteException re) {\n\t\t\tthrow new NbaBaseException(\"Remote Exception occured in processRequirementSummary\", re);\n\t\t// SPR2652 Code Deleted\n\t\t//begin SPR3362\n\t\t} finally {\n\t\t if(vpmsProxy != null){\n\t\t try {\n vpmsProxy.remove();\n } catch (RemoteException e) {\n getLogger().logError(NbaBaseException.VPMS_REMOVAL_FAILED);\n }\n\t\t }\n\t\t//end SPR3362\n\t\t}\n\t\treturn success;\n\t}",
"@Test\n public void testStoreSaleAdjSale1() {\n String responseMsg = target.path(\"service/message\").queryParam(\"messageType\", \"0\").queryParam(\"productType\", \"ELMA\").queryParam(\"value\", \"2.0\").request().get(String.class);\n responseMsg = target.path(\"service/message\").queryParam(\"messageType\", \"1\").queryParam(\"productType\", \"ELMA\").queryParam(\"value\", \"2.0\").queryParam(\"ocurrence\", \"2\").request().get(String.class);\n responseMsg = target.path(\"service/message\").queryParam(\"messageType\", \"2\").queryParam(\"productType\", \"ELMA\").queryParam(\"value\", \"2.0\").queryParam(\"operator\", \"1\").request().get(String.class);\n assertEquals(\"SUCCESS\", responseMsg);\n }",
"public FocusNode.EnumSupplyType[] willSupply() { return new FocusNode.EnumSupplyType[] { FocusNode.EnumSupplyType.TARGET }; }",
"static void call_when_parity(String passed){\n\t\tif(P)\n\t\t\tcomplete_call_req(passed.substring(4));\n\t}",
"@Test\n public void testStoreSaleAdjSale0() {\n String responseMsg = target.path(\"service/message\").queryParam(\"messageType\", \"0\").queryParam(\"productType\", \"ELMA\").queryParam(\"value\", \"2.0\").request().get(String.class);\n responseMsg = target.path(\"service/message\").queryParam(\"messageType\", \"1\").queryParam(\"productType\", \"ELMA\").queryParam(\"value\", \"2.0\").queryParam(\"ocurrence\", \"2\").request().get(String.class);\n responseMsg = target.path(\"service/message\").queryParam(\"messageType\", \"2\").queryParam(\"productType\", \"ELMA\").queryParam(\"value\", \"2.0\").queryParam(\"operator\", \"0\").request().get(String.class);\n assertEquals(\"SUCCESS\", responseMsg);\n }",
"@Test\n public void testCaseNumberSplit() {\n String caseNumber1 = \"NTN-57930\";\n String[] parts1 = caseNumber1.split( \"-\" );\n //String[] parts2 = caseNumber2.split(\"-\");\n //String[] parts3 = caseNumber3.split(\"-\");\n System.out.println( parts1.length );\n //System.out.println( parts2.length);\n //System.out.println( parts3.length);\n if (parts1.length > 2) {\n System.out.println( parts1[0] );\n String case1 = caseNumber1.substring( caseNumber1.indexOf( caseNumber1.split( \"-\" )[0] ), caseNumber1.indexOf( caseNumber1.split( \"-\" )[2] ) - 1 );\n System.out.println( case1 );\n } else {\n String case1 = caseNumber1;\n System.out.println( case1 );\n }\n }",
"List<PurchaseOrderHeader> getAllOutstandingAndConfirmedPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);",
"if(true==adhocTicket.isPaid()){\n System.out.println(\"isPaid() is passed\");\n }",
"@Override\n\t\tpublic void handleEvent(PersonEntersVehicleEvent event) {\n\t\t\tif (event.getVehicleId().toString().startsWith(\"FF\")) {\n\t\t\t\t\n\t\t\t\tfahrzugIDs.add(event.getVehicleId().toString());\n\t\t\t\t\n\t\t\t}\n\t\t}",
"@Test\n public void testDontRaiseAlertAmountDidntTipBalance() {\n BigDecimal balance = new BigDecimal(\"3.99\").setScale(2);\n String threshold = \"40\";\n long accountNumber = 1234567L;\n Integer transactionClass = 6;\n Integer transactionType = 2269;\n BigDecimal transactionAmount = new BigDecimal(\"10.00\").setScale(2);\n\n String accountNumberString = Long.toString(accountNumber);\n when(tuple.getValueByField(CBSMessageFields.FIELD_CURRENT_ACCOUNT_BALANCE)).thenReturn(balance);\n when(tuple.getStringByField(OCISDetails.THRESHOLD)).thenReturn(threshold);\n when(tuple.getLongByField(CBSMessageFields.FIELD_ACCOUNT_NUMBER)).thenReturn(accountNumber);\n when(tuple.getValueByField(CBSMessageFields.FIELD_TXN_AMOUNT)).thenReturn(transactionAmount);\n when(tuple.getIntegerByField(CBSMessageFields.FIELD_TXN_CLASS)).thenReturn(transactionClass);\n when(tuple.getIntegerByField(CBSMessageFields.FIELD_TXN_TYPE)).thenReturn(transactionType);\n\n RaiseLowBalanceAlert alertFunction = new RaiseLowBalanceAlert();\n alertFunction.execute(tuple, collector);\n\n ArgumentCaptor<Values> valuesCaptor = ArgumentCaptor.forClass(Values.class);\n verify(collector).emit(valuesCaptor.capture());\n\n Values values = valuesCaptor.getValue();\n assertThat(values, notNullValue());\n assertThat(values.size(), is(2));\n assertThat((String)values.get(0), is(accountNumberString));\n assertThat(values.get(1), nullValue());\n }",
"public interface OnEventRespondedListener {\n\t \t\n\t \t// boolean value to decide if let go next\n\t public void onEventResponded(int eventID, int qid, String qtype, String responseString);\n\t \n\t // CODE: CONTAINS A STRING OF FOUR VALUES\n\t // Event ID(int), QID(int), QUESTION_TYPE(\"S\"(single) or \"M\"(multiple)),\n\t // CHOICE_INDEX(int for Single, String for multiple)\n\t \n\t }",
"boolean isInvoiced();",
"@com.jg.JgMethodChecked(author = 20, fComment = \"checked\", lastDate = \"20140429\", reviewer = 20, vComment = {com.jg.EType.INTENTCHECK})\n public final void b(com.tencent.mm.plugin.gwallet.a.c r6, android.content.Intent r7) {\n /*\n r5 = this;\n r0 = 1;\n r1 = 0;\n r2 = \"MicroMsg.GWalletUI\";\n r3 = new java.lang.StringBuilder;\n r4 = \"Purchase finished: \";\n r3.<init>(r4);\n r3 = r3.append(r6);\n r4 = \", purchase: \";\n r3 = r3.append(r4);\n r3 = r3.append(r7);\n r3 = r3.toString();\n com.tencent.mm.sdk.platformtools.v.d(r2, r3);\n if (r7 != 0) goto L_0x0051;\n L_0x0025:\n r7 = new android.content.Intent;\n r2 = \"com.tencent.mm.gwallet.ACTION_PAY_RESPONSE\";\n r7.<init>(r2);\n r2 = \"RESPONSE_CODE\";\n r3 = r6.gDS;\n r7.putExtra(r2, r3);\n L_0x0035:\n r2 = r5.gDv;\n r2.sendBroadcast(r7);\n r2 = r6.iY();\n if (r2 != 0) goto L_0x005a;\n L_0x0040:\n r2 = r6.gDS;\n r3 = 7;\n if (r2 != r3) goto L_0x0058;\n L_0x0045:\n r2 = r0;\n L_0x0046:\n if (r2 != 0) goto L_0x005a;\n L_0x0048:\n if (r0 == 0) goto L_0x0050;\n L_0x004a:\n r0 = r5.gDv;\n r2 = 0;\n com.tencent.mm.plugin.gwallet.GWalletUI.a(r0, r1, r2);\n L_0x0050:\n return;\n L_0x0051:\n r2 = \"com.tencent.mm.gwallet.ACTION_PAY_RESPONSE\";\n r7.setAction(r2);\n goto L_0x0035;\n L_0x0058:\n r2 = r1;\n goto L_0x0046;\n L_0x005a:\n r0 = r1;\n goto L_0x0048;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.gwallet.GWalletUI.2.b(com.tencent.mm.plugin.gwallet.a.c, android.content.Intent):void\");\n }",
"@Test\n public void getExtracpy() {\n String input = \"A303:C203:\";\n boolean expected = true;\n boolean output = true;\n String[] input1 = input.split(\":\");\n String[] expectedarray = {\"A303\",\"C203\"};\n\n for (int i = 0; i < input1.length; i++) {\n if(!input1[i].equals(expectedarray[i]))\n {\n output = false;\n break;\n }\n }\n assertEquals(expected,output);\n\n }"
]
| [
"0.55671775",
"0.55665946",
"0.5132208",
"0.49870133",
"0.4853982",
"0.48203862",
"0.4791626",
"0.4720602",
"0.4695215",
"0.46702325",
"0.46249482",
"0.46130273",
"0.45923966",
"0.45870093",
"0.45658457",
"0.45580557",
"0.45522642",
"0.45443842",
"0.4534295",
"0.45170856",
"0.4499575",
"0.44902647",
"0.44895005",
"0.4489249",
"0.4486595",
"0.44777235",
"0.44748107",
"0.4471312",
"0.4465846",
"0.4455523",
"0.4440328",
"0.44042617",
"0.44032472",
"0.43981838",
"0.43895596",
"0.43881422",
"0.43880063",
"0.43642145",
"0.4351315",
"0.43479228",
"0.43455178",
"0.43296266",
"0.43228075",
"0.43213296",
"0.43070754",
"0.43045223",
"0.42990065",
"0.42921573",
"0.42859846",
"0.42847112",
"0.42831522",
"0.42812777",
"0.42777067",
"0.4276312",
"0.42748553",
"0.4273908",
"0.42731625",
"0.42718595",
"0.427087",
"0.42701316",
"0.4269402",
"0.42639574",
"0.42559263",
"0.4255367",
"0.42547423",
"0.42547038",
"0.4249793",
"0.42472884",
"0.42471808",
"0.4244554",
"0.4243971",
"0.4242655",
"0.4240953",
"0.423928",
"0.42379862",
"0.42372966",
"0.4237211",
"0.42350078",
"0.42277074",
"0.42257354",
"0.4222814",
"0.42156526",
"0.42130405",
"0.4208792",
"0.42049977",
"0.42017853",
"0.41994792",
"0.4199309",
"0.4194428",
"0.41921502",
"0.41852292",
"0.41847745",
"0.41778576",
"0.4173728",
"0.41714025",
"0.4157395",
"0.4152888",
"0.4151942",
"0.4150991",
"0.41478956",
"0.41474167"
]
| 0.0 | -1 |
Traveler approval is required if it requires review for travel advance | protected boolean requiresTravelerApprovalRouting() {
//If there's travel advances, route to traveler if necessary
return requiresTravelAdvanceReviewRouting() && !getTravelAdvance().getTravelAdvancePolicy();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SystemAPI\n\tboolean needsApproval();",
"public boolean requiresPostApproval() {\n return true;\n }",
"@Override\n\tpublic boolean approvePartner(Partner partner) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean approveIt() {\n\t\treturn false;\n\t}",
"private TransferPointRequest checkTransferRequestEligibility(TransferPointRequest transferPointRequest) {\n Customer fromAccount = transferPointRequest.getFromCustomer();\n\n //get destination account\n Customer toAccount = transferPointRequest.getToCustomer();\n\n //check if account is linked\n transferPointRequest = isAccountLinked(transferPointRequest);\n\n //set request customer no as from account customer no\n transferPointRequest.setRequestorCustomerNo(fromAccount.getCusCustomerNo());\n\n //if accounts are not linked , requestor is eligible for transfer\n if(!transferPointRequest.isAccountLinked()){\n\n //set transfer eligibility to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n } else {\n\n //if linked , get the transfer point settings\n TransferPointSetting transferPointSetting = transferPointRequest.getTransferPointSetting();\n\n //check redemption settings\n switch(transferPointSetting.getTpsLinkedEligibilty()){\n\n case TransferPointSettingLinkedEligibity.NO_AUTHORIZATION:\n\n //if authorization is not needed set eligibity to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.PRIMARY_ONLY:\n\n //check the requestor is primary\n if(!transferPointRequest.isCustomerPrimary()){\n\n //if not primary , then set eligibility to INELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.INELIGIBLE);\n\n } else {\n\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.SECONDARY_WITH_AUTHORIZATION:\n\n //if customer is secondary , set eligibility to APRROVAL_NEEDED and set approver\n //and requestor customer no's\n if(!transferPointRequest.isCustomerPrimary()){\n\n //set eligibility status as approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n } else {\n\n //set eligibility to eligible\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.ANY_ACCOUNT_WITH_AUTHORIZATION:\n\n //set eligibility to approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n if(transferPointRequest.isCustomerPrimary()){\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getChildCustomerNo());\n\n } else {\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n }\n\n return transferPointRequest;\n\n }\n }\n\n return transferPointRequest;\n\n }",
"private void reviewDeptPolicies() {\n if(metWithHr && metDeptStaff) {\n reviewedDeptPolicies = true;\n } else {\n System.out.println(\"Sorry, you cannot review \"\n + \" department policies until you have first met with HR \"\n + \"and then with department staff.\");\n }\n }",
"private TransferPointRequest processTransferApproval(TransferPointRequest transferPointRequest) throws InspireNetzException {\n Customer requestor = transferPointRequest.getFromCustomer();\n\n Customer approver = customerService.findByCusCustomerNo(transferPointRequest.getApproverCustomerNo());\n\n //if a new request , send approval request and save request\n if(transferPointRequest.getPtrId() == null || transferPointRequest.getPtrId() == 0){\n\n // Log the information\n log.info(\"transferPoints -> New request for point transfer received(Approval needed)\");\n\n //add a new transfer point request\n transferPointRequest = addTransferPointRequest(transferPointRequest);\n\n log.info(\"transferPoints: Sending approval request to approver\");\n\n //send approval request to approver\n partyApprovalService.sendApproval(requestor,approver,transferPointRequest.getPtrId(),PartyApprovalType.PARTY_APPROVAL_TRANSFER_POINT_REQUEST,transferPointRequest.getToLoyaltyId(),transferPointRequest.getRewardQty()+\"\");\n\n //set transfer allowed to false\n transferPointRequest.setTransferAllowed(false);\n\n } else {\n\n //CHECK whether approver has accepted the request\n boolean isTransferAllowed = isPartyApprovedTransfer(transferPointRequest);\n\n if(isTransferAllowed){\n\n log.info(\"transferPoints : Transfer is approved by the linked account\");\n\n //set redemption allowed to true\n transferPointRequest.setTransferAllowed(true);\n\n } else {\n\n log.info(\"transferPoints : Transfer request rejected by linked account\");\n\n //set redemption allowed to false\n transferPointRequest.setTransferAllowed(false);\n\n\n }\n }\n\n return transferPointRequest;\n }",
"private boolean requiresRiskManagementReviewRouting() {\n // Right now this works just like International Travel Reviewer, but may change for next version\n if (ObjectUtils.isNotNull(this.getTripTypeCode()) && getParameterService().getParameterValuesAsString(TemParameterConstants.TEM_DOCUMENT.class, TravelParameters.INTERNATIONAL_TRIP_TYPES).contains(this.getTripTypeCode())) {\n return true;\n }\n if (!ObjectUtils.isNull(getTraveler()) && getTraveler().isLiabilityInsurance()) {\n return true;\n }\n return false;\n }",
"public boolean isApproved();",
"public boolean isApproved();",
"@Override\n\tpublic boolean isApproved();",
"boolean hasPlainApprove();",
"@Override\n\tpublic boolean isApproved() {\n\t\treturn _scienceApp.isApproved();\n\t}",
"@Override\r\n\tpublic void reviewOfPastYear(ExemptTeamMember exemptTeamMember) {\n\t\t\r\n\t\t\r\n\t}",
"@Test\n\tvoid grantScholarshipApproved() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(166);\n\t\tassertEquals(scholarship,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}",
"boolean approveDeny(String choice, int id, int resolverId);",
"@Test\n public void userClicksAgree_RedirectsToRequestPickup(){\n //Validates the agree button exists\n onView(ViewMatchers.withId(R.id.button_rules_agree)).perform(click());\n\n //Checks that the Request ride page appears\n Activity mRequestRide = mInstrumentation.waitForMonitorWithTimeout(mRulesMonitor, 1000);\n Assert.assertNotNull(mRequestRide);\n }",
"public boolean approvePotentialDeliveryMan(final Parcel parcel, final String email);",
"@Override\n\tpublic boolean isAutoApprove(String arg0) {\n\t\treturn false;\n\t}",
"HrDocumentRequest approve(HrDocumentRequest hrDocumentRequest);",
"public void approveTeacherAccount(TeacherUser teacher) {\n\t\tteacher.setIsApproved(true);\n\t}",
"@Test\n\tvoid grantScholarshipRejected() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(168);\n\t\tassertEquals(null,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}",
"public void propagateAdvanceInformationIfNeeded() {\n if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().getTravelAdvanceRequested() != null) {\n if (!ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setCheckTotalAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n final TemSourceAccountingLine maxAmountLine = getAccountingLineWithLargestAmount();\n if (!TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus())) {\n getAdvanceAccountingLines().get(0).setAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n if (!allParametersForAdvanceAccountingLinesSet() && !TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus()) && !advanceAccountingLinesHaveBeenModified(maxAmountLine)) {\n // we need to set chart, account, sub-account, and sub-object from account with largest amount from regular source lines\n if (maxAmountLine != null) {\n getAdvanceAccountingLines().get(0).setChartOfAccountsCode(maxAmountLine.getChartOfAccountsCode());\n getAdvanceAccountingLines().get(0).setAccountNumber(maxAmountLine.getAccountNumber());\n getAdvanceAccountingLines().get(0).setSubAccountNumber(maxAmountLine.getSubAccountNumber());\n }\n }\n // let's also propogate the due date\n if (getTravelAdvance().getDueDate() != null && !ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setDueDate(getTravelAdvance().getDueDate());\n }\n }\n }",
"public void addIPToPR(Approvable r, ApprovalRequest ar) {\r\n\t\tString role = \"IP\";\r\n\t\tObject obj = CatCommonUtil.getRoleforSplitterRuleForVertex(r, role);\r\n\t\tProcureLineItemCollection plic = (ProcureLineItemCollection) r;\r\n\r\n\t\tString TaxReason = \"Tax Reason\";\r\n\t\tboolean flag1 = true;\r\n\r\n\t\tLog.customer.debug(\"%s ::: isIPTeamRequired - plic bfore create %s\",\r\n\t\t\t\tclassName, plic.toString());\r\n\t\tApprovalRequest approvalrequest1 = ApprovalRequest.create(plic,\r\n\t\t\t\t((ariba.user.core.Approver) (obj)), flag1, \"RuleReasons\",\r\n\t\t\t\tTaxReason);\r\n\r\n\t\tLog.customer.debug(\"%s ::: approvalrequest1 got activated- %s\",\r\n\t\t\t\tclassName);\r\n\r\n\t\tBaseVector basevector1 = plic.getApprovalRequests();\r\n\t\tLog.customer.debug(\"%s ::: basevector1 got activated- %s\", className);\r\n\r\n\t\tBaseVector basevector2 = approvalrequest1.getDependencies();\r\n\t\tLog.customer.debug(\"%s ::: basevector2 got activated- %s\", className);\r\n\r\n\t\tbasevector2.add(0, ar);\r\n\t\tLog.customer.debug(\"%s ::: ar added to basevector2 %s\", className);\r\n\r\n\t\tapprovalrequest1.setFieldValue(\"Dependencies\", basevector2);\r\n\t\tar.setState(2);\r\n\t\tLog.customer.debug(\"%s ::: ar.setState- %s\", className);\r\n\r\n\t\tar.updateLastModified();\r\n\t\tLog.customer.debug(\"%s ::: ar.updatelastmodified- %s\", className);\r\n\r\n\t\tbasevector1.removeAll(ar);\r\n\t\tLog.customer.debug(\"%s ::: basevecotr1 .removeall %s\", className);\r\n\r\n\t\tbasevector1.add(0, approvalrequest1);\r\n\t\tLog.customer.debug(\"%s ::: basevector1 .add- %s\", className);\r\n\r\n\t\tplic.setApprovalRequests(basevector1);\r\n\t\tLog.customer.debug(\"%s ::: ir .setApprovalRequests got activated- %s\",\r\n\t\t\t\tclassName);\r\n\r\n\t\tjava.util.List list = ListUtil.list();\r\n\t\tjava.util.Map map = MapUtil.map();\r\n\t\tboolean flag6 = approvalrequest1.activate(list, map);\r\n\r\n\t\tLog.customer.debug(\"%s ::: New TaxAR Activated - %s\", className);\r\n\t\tLog.customer.debug(\"%s ::: State (AFTER): %s\", className);\r\n\t\tLog.customer.debug(\"%s ::: Approved By: %s\", className);\r\n\t}",
"public void autoApprove(int reimburseID, String autoReason, int status);",
"private boolean isPartyApprovedTransfer(TransferPointRequest transferPointRequest) {\n Customer requestor = transferPointRequest.getFromCustomer();\n\n Customer approver = customerService.findByCusCustomerNo(transferPointRequest.getApproverCustomerNo());\n\n // Check if there is a entry in the LinkingApproval table\n PartyApproval partyApproval = partyApprovalService.getExistingPartyApproval(approver, requestor, PartyApprovalType.PARTY_APPROVAL_TRANSFER_POINT_REQUEST, transferPointRequest.getPtrId());\n\n // If the partyApproval is not found, then return false\n if ( partyApproval == null) {\n\n // Log the information\n log.info(\"isPartyApproved -> Party has not approved linking\");\n\n // return false\n return false;\n\n } else {\n\n return transferPointRequest.isApproved();\n }\n\n }",
"public void reviewBooking() {\n\t\telementUtil.doSendKeys(email, \"[email protected]\");\n\t\telementUtil.doSendKeys(mobile, \"83292382349\");\n\t\telementUtil.doSendKeys(name, \"sciripappa\");\n\t\telementUtil.doSelectValuesByIndex(gender, 1);\n\t\telementUtil.doSelectValuesByVisibleText(age, \"19\");\n\t\telementUtil.doClick(proceed);\n\t\t\n\t\ttry {\n\t\t\tThread.sleep(10000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void setAdvanceTravelPayment(TravelPayment advanceTravelPayment) {\n this.advanceTravelPayment = advanceTravelPayment;\n }",
"private boolean askForSuperviser(Person p) throws Exception {\n\n\t\treturn p.isResearcher() && (p.getInstitutionalRoleId() > 1);\n\t}",
"@Override\n\tpublic void approveForm(Context ctx) {\n\t\t//Authentication\n\t\tUser approver = ctx.sessionAttribute(\"loggedUser\");\n\t\tif (approver == null) {\n\t\t\tctx.status(401);\n\t\t\treturn;\n\t\t}\n\t\tString username = ctx.pathParam(\"username\");\n\t\tif (!approver.getUsername().equals(username)) {\n\t\t\tctx.status(403);\n\t\t\treturn;\n\t\t}\n\t\t// Implementation\n\t\tString id = ctx.pathParam(\"id\");\n\t\tForm form = fs.getForm(UUID.fromString(id));\n\t\tapprover.getAwaitingApproval().remove(form);\n\t\tus.updateUser(approver);\n\t\t// If approver is just the direct supervisor\n\t\tif (!approver.getType().equals(UserType.DEPARTMENT_HEAD) && !approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setSupervisorApproval(true);\n\t\t\tUser departmentHead = us.getUserByName(approver.getDepartmentHead());\n\t\t\tdepartmentHead.getAwaitingApproval().add(form);\n\t\t\tus.updateUser(departmentHead);\n\t\t}\n\t\t// If the approver is a department head but not a benco\n\t\tif (approver.getType().equals(UserType.DEPARTMENT_HEAD) && !approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setDepartmentApproval(true);\n\t\t\tUser benco = us.getUser(\"sol\");\n\t\t\tbenco.getAwaitingApproval().add(form);\n\t\t\tus.updateUser(benco);\n\t\t}\n\t\t// if the approver is a BenCo\n\t\tif (approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setBencoApproval(true);\n\t\t\tUser formSubmitter = us.getUserByName(form.getName());\n\t\t\tif (formSubmitter.getAvailableReimbursement() >= form.getCompensation()) {\n\t\t\t\tformSubmitter.setAvailableReimbursement(formSubmitter.getAvailableReimbursement() - form.getCompensation());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tformSubmitter.setAvailableReimbursement(0.00);\n\t\t\t}\n\t\t\tformSubmitter.getAwaitingApproval().remove(form);\n\t\t\tformSubmitter.getCompletedForms().add(form);\n\t\t\tus.updateUser(formSubmitter);\n\t\t}\n\t\t\n\t\tfs.updateForm(form);\n\t\tctx.json(form);\n\t}",
"public boolean isApproved()\n\t{\n\t\tif(response.containsKey(\"Result\")) {\n\t\t\tif(response.get(\"Result\").equals(\"APPROVED\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean approveAppointment() {\n\t\tIHealthCareDAO dao = new HealthCareDAO();\r\n\t\treturn dao.approveAppointment();\r\n\t}",
"public void updatePayeeTypeForAuthorization() {\n if (!ObjectUtils.isNull(getTraveler()) && !ObjectUtils.isNull(getAdvanceTravelPayment())) {\n if (getTravelerService().isEmployee(getTraveler())){\n getAdvanceTravelPayment().setPayeeTypeCode(KFSConstants.PaymentPayeeTypes.EMPLOYEE);\n }else{\n getAdvanceTravelPayment().setPayeeTypeCode(KFSConstants.PaymentPayeeTypes.CUSTOMER);\n }\n }\n }",
"@Override\n\tpublic boolean isApproved() {\n\t\treturn model.isApproved();\n\t}",
"public void interactWhenApproaching() {\r\n\t\t\r\n\t}",
"public void addTaxManagerToPR(ApprovalRequest ar, Approvable lic) {\r\n\t\tLog.customer.debug(\"%s ::: addTaxManagerToPR - %s\", className, lic);\r\n\t\tProcureLineItemCollection plic = (ProcureLineItemCollection) lic;\r\n\r\n\t\tString TaxRole = \"Tax Manager\";\r\n\t\tString TaxReason = \"Tax Reason\";\r\n\t\tboolean flag1 = true;\r\n\t\tObject obj = Role.getRole(TaxRole);\r\n\t\t// plic.setFieldValue(\"ProjectID\",\"F\");\r\n\t\tLog.customer.debug(\r\n\t\t\t\t\"%s ::: isTaxManagerRequired - plic bfore create %s\",\r\n\t\t\t\tclassName, plic.toString());\r\n\t\tApprovalRequest approvalrequest1 = ApprovalRequest.create(plic,\r\n\t\t\t\t((ariba.user.core.Approver) (obj)), flag1, \"RuleReasons\",\r\n\t\t\t\tTaxReason);\r\n\t\tLog.customer.debug(\"%s ::: approvalrequest1 got activated- %s\",\r\n\t\t\t\tclassName);\r\n\r\n\t\tBaseVector basevector1 = plic.getApprovalRequests();\r\n\t\tLog.customer.debug(\"%s ::: basevector1 got activated- %s\", className);\r\n\r\n\t\tBaseVector basevector2 = approvalrequest1.getDependencies();\r\n\t\tLog.customer.debug(\"%s ::: basevector2 got activated- %s\", className);\r\n\r\n\t\tbasevector2.add(0, ar);\r\n\t\tLog.customer.debug(\"%s ::: ar added to basevector2 %s\", className);\r\n\r\n\t\tapprovalrequest1.setFieldValue(\"Dependencies\", basevector2);\r\n\t\tar.setState(2);\r\n\t\tLog.customer.debug(\"%s ::: ar.setState- %s\", className);\r\n\r\n\t\tar.updateLastModified();\r\n\t\tLog.customer.debug(\"%s ::: ar.updatelastmodified- %s\", className);\r\n\r\n\t\tbasevector1.removeAll(ar);\r\n\t\tLog.customer.debug(\"%s ::: basevecotr1 .removeall %s\", className);\r\n\r\n\t\tbasevector1.add(0, approvalrequest1);\r\n\t\tLog.customer.debug(\"%s ::: basevector1 .add- %s\", className);\r\n\r\n\t\tplic.setApprovalRequests(basevector1);\r\n\t\tLog.customer.debug(\"%s ::: ir .setApprovalRequests got activated- %s\",\r\n\t\t\t\tclassName);\r\n\r\n\t\tjava.util.List list = ListUtil.list();\r\n\t\tjava.util.Map map = MapUtil.map();\r\n\t\tboolean flag6 = approvalrequest1.activate(list, map);\r\n\r\n\t\tLog.customer.debug(\"%s ::: New TaxAR Activated - %s\", className);\r\n\t\tLog.customer.debug(\"%s ::: State (AFTER): %s\", className);\r\n\t\tLog.customer.debug(\"%s ::: Approved By: %s\", className);\r\n\r\n\t}",
"private void completeReview(long ticketId, ApprovalDTO dto, boolean reject, String reason)\n throws PortalServiceException {\n CMSUser user = ControllerHelper.getCurrentUser();\n Enrollment ticketDetails = enrollmentService.getTicketDetails(user, ticketId);\n \n long processInstanceId = ticketDetails.getProcessInstanceId();\n if (processInstanceId <= 0) {\n throw new PortalServiceException(\"Requested profile is not available for approval.\");\n }\n try {\n List<TaskSummary> availableTasks = businessProcessService.getAvailableTasks(user.getUsername(),\n Arrays.asList(user.getRole().getDescription()));\n boolean found = false;\n for (TaskSummary taskSummary : availableTasks) {\n if (taskSummary.getName().equals(APPROVAL_TASK_NAME)\n && taskSummary.getProcessInstanceId() == processInstanceId) {\n found = true;\n long taskId = taskSummary.getId();\n\n if (!reject) {\n // apply approver changes\n ProviderInformationType provider = applyChanges(dto, taskId);\n businessProcessService.completeReview(taskId, user.getUsername(),\n Arrays.asList(user.getRole().getDescription()), provider, false, reason);\n } else {\n businessProcessService.completeReview(taskId, user.getUsername(),\n Arrays.asList(user.getRole().getDescription()), null, true, reason);\n }\n }\n }\n if (!found) {\n throw new PortalServiceException(\"You do not have access to the requested operation.\");\n }\n } catch (Exception ex) {\n throw new PortalServiceException(\"Error while invoking process server.\", ex);\n }\n }",
"@When(\"^clicks request$\")\n public void patient_clicks_request() throws Throwable {\n \t//appt request has been saved and is pending...\n \tAssert.assertTrue(appt.getApptType() != null);\n \tAssert.assertTrue(appt.getDate() != null);\n \tAssert.assertTrue(appt.getComment() != null);\n \t//check if the above items have been set correctly from the previous method\n }",
"@Override\n\tpublic void approveAcceptedOffer(String matriculation) {\n\t\tofferman.approveAcceptedOffer(matriculation);\n\t\t\n\t}",
"public boolean hasPlainApprove() {\n return dataCase_ == 4;\n }",
"protected void commitRequirementReviews(NbaTXLife nbaTXLife, NbaRequirement nbaReq, String partyID, String user){\n Map reqMap = nbaTXLife.getRequirementInfos(partyID);\n if (nbaReq.getReviewInd() && nbaReq.getReviewDate() == null) {\n RequirementInfo reqInfo = (RequirementInfo) reqMap.get(nbaReq.getRequirementInfoUniqueID()); //SPR3145\n RequirementInfoExtension reqInfoExt = NbaUtils.getFirstRequirementInfoExtension(reqInfo);\n if (reqInfoExt == null) {\n OLifEExtension olifeExt = NbaTXLife.createOLifEExtension(NbaOliConstants.EXTCODE_REQUIREMENTINFO);\n reqInfo.addOLifEExtension(olifeExt);\n reqInfoExt = olifeExt.getRequirementInfoExtension();\n }\n reqInfoExt.setReviewedInd(true);\n if (nbaReq.getReviewID() != null) {\n reqInfoExt.setReviewID(nbaReq.getReviewID());\n } else {\n reqInfoExt.setReviewID(user); //default to the current user\n }\n reqInfoExt.setReviewDate(new java.util.Date());\n reqInfoExt.setActionUpdate();\n }\n }",
"public boolean hasPlainApprove() {\n return dataCase_ == 4;\n }",
"boolean hasRemarketingAction();",
"public void promptSubmitReview() {\n ZenDialog.builder().withBodyText(C0880R.string.prompt_submit_review).withDualButton(C0880R.string.cancel, 0, C0880R.string.submit, DIALOG_REQ_SUBMIT).create().show(getFragmentManager(), (String) null);\n }",
"public void makeApprovedIfNull() {\n int x = getHifiveRating();\n if (x == 0) {\n setHifiveRating(HIFIVERATING_approved);\n }\n }",
"public void payedConfirmation(){\n\t\tassert reserved: \"a seat also needs to be reserved when bought\";\n\t\tassert customerId != -1: \"this seat needs to have a valid user id\";\n\t\tpayed = true;\n\t}",
"@Override\n protected boolean shouldRouteByProfileAccount() {\n return getBlanketTravel() || !getTripType().isGenerateEncumbrance() || hasOnlyPrepaidExpenses();\n }",
"@Test\n public void canGetApprovalsWithAutoApproveTrue() {\n addApproval(marissa.getId(), \"c1\", \"uaa.user\", 6000, APPROVED);\n addApproval(marissa.getId(), \"c1\", \"uaa.admin\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"openid\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n\n addApproval(marissa.getId(), \"c1\", \"read\", 12000, DENIED);\n addApproval(marissa.getId(), \"c1\", \"write\", 6000, APPROVED);\n\n assertEquals(3, endpoints.getApprovals(\"user_id eq \\\"\"+marissa.getId()+\"\\\"\", 1, 100).size());\n }",
"protected boolean shouldHoldAdvance() {\n if (shouldProcessAdvanceForDocument() && getTravelAdvance().getDueDate() != null) {\n return getTravelEncumbranceService().shouldHoldEntries(getTravelAdvance().getDueDate());\n }\n return false;\n }",
"protected boolean isAdvancePendingEntry(GeneralLedgerPendingEntry glpe) {\n return StringUtils.equals(glpe.getFinancialDocumentTypeCode(), TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_CHECK_ACH_DOCUMENT) ||\n StringUtils.equals(glpe.getFinancialDocumentTypeCode(),TemConstants.TravelDocTypes.TRAVEL_AUTHORIZATION_WIRE_OR_FOREIGN_DRAFT_DOCUMENT);\n }",
"private boolean isApproved() {\r\n if (rnd.nextInt(10) < 5) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n\r\n }",
"public void setTermsApproved() {\n mTermsApproved = true;\n }",
"public void viewApplicants() throws InterruptedException {\n\t\tdriver.findElement(By.xpath(dev_GSP_CLICKER)).click();\n\t\tdriver.findElement(By.xpath(dev_GSP_CONDITIONALLYAPPROVE)).click();\n\t\tThread.sleep(1000);\n\t\tWebElement promowz = driver.findElement(By.xpath(dev_GSP_CAPPROVEREASON));\n\t\tpromowz.sendKeys(\"c\");\n\t\tThread.sleep(1000);\n\t\tdriver.findElement(By.xpath(dev_GSP_CAPPROVEBUTTON)).click();\n\t\tAssert.assertTrue(\"Successfully conditionally approved!\", elementUtil.isElementAvailabe(dev_GSP_CAPPROVESUCCESS));\n\t\tlogger.info(\"Passed conditionally approved\");\n\t\t\n\t}",
"@RequestMapping(params = \"saveDecision\", method = RequestMethod.POST)\r\n public ModelAndView approvalDecision(final HttpServletRequest httpServletRequest) {\r\n\r\n JsonViewObject respObj = null;\r\n\r\n this.bindModel(httpServletRequest);\r\n\r\n RenewalFormModel renModel = this.getModel();\r\n\r\n String decision = renModel.getWorkflowActionDto().getDecision();\r\n\r\n boolean updFlag = renModel.callWorkFlow();\r\n\r\n if (updFlag) {\r\n if (decision.equalsIgnoreCase(MainetConstants.WorkFlow.Decision.APPROVED))\r\n respObj = JsonViewObject\r\n .successResult(ApplicationSession.getInstance().getMessage(\"social.info.application.approved\"));\r\n else if (decision.equalsIgnoreCase(MainetConstants.WorkFlow.Decision.REJECTED))\r\n respObj = JsonViewObject\r\n .successResult(ApplicationSession.getInstance().getMessage(\"social.info.application.reject\"));\r\n else if (decision.equalsIgnoreCase(MainetConstants.WorkFlow.Decision.SEND_BACK))\r\n respObj = JsonViewObject\r\n .successResult(ApplicationSession.getInstance().getMessage(\"social.info.application.sendBack\"));\r\n } else {\r\n respObj = JsonViewObject\r\n .successResult(ApplicationSession.getInstance().getMessage(\"social.info.application.failure\"));\r\n }\r\n return new ModelAndView(new MappingJackson2JsonView(), MainetConstants.FORM_NAME, respObj);\r\n }",
"private boolean doGetApproval() {\n\t\tcurrentStep = OPERATION_NAME+\": getting approval from BAMS\";\n\t\tif (!_atmssHandler.doDisDisplayUpper(SHOW_PLEASE_WAIT)) {\n\t\t\trecord(\"Dis\");\n\t\t\treturn false;\n\t\t}\n\t\tresult = _atmssHandler.doBAMSUpdatePasswd(newPassword, _session);\n\t\tif (result) {\n\t\t\trecord(\"password changed\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\trecord(\"BAMS\");\n\t\t\tif (!_atmssHandler.doDisDisplayUpper(FAILED_FROM_BAMS_UPDATING_PW)) {\n\t\t\t\trecord(\"Dis\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tpause(3);\n\t\t\treturn false;\n\t\t}\n\t}",
"@PlanBody\n public boolean body(){\n ICenterService ser = agent.getComponentFeature\n (IRequiredServicesFeature.class).searchService(ICenterService.class,RequiredServiceInfo.SCOPE_GLOBAL).get();\n\n ser.collectBallot(voter).addResultListener(new IResultListener<Boolean>() {\n @Override\n public void exceptionOccurred(Exception exception) {\n exception.printStackTrace();\n System.out.println(exception);\n }\n @Override\n public void resultAvailable(Boolean result) {\n System.out.println(voter.getId()+ \" submit result: \"+result);\n }\n });\n return true;\n }",
"public void validateRequestToBuyPage(){\r\n\t\tsearchByShowMeAll();\r\n\t\tclickCheckboxAndRenewBuyButton();\r\n\t\tverifyRequestToBuyPage();\r\n\t}",
"public void setIsApproved (boolean IsApproved);",
"public void setIsApproved (boolean IsApproved);",
"public String approve() throws Exception\r\n {\r\n try\r\n {\r\n PoInvGrnDnMatchingHolder holder = poInvGrnDnMatchingService.selectByKey(param.getMatchingOid());\r\n \r\n if (\"yes\".equals(this.getSession().get(SESSION_SUPPLIER_DISPUTE)))\r\n {\r\n if (PoInvGrnDnMatchingStatus.PENDING.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"pending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.MATCHED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"matched\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.INSUFFICIENT_INV.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"insufficientInv\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingStatus.OUTDATED.equals(holder.getMatchingStatus()))\r\n {\r\n this.result = \"outdated\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingInvStatus.APPROVED.equals(holder.getInvStatus()) || PoInvGrnDnMatchingInvStatus.SYS_APPROVED.equals(holder.getInvStatus()))\r\n {\r\n this.result = \"approved\";\r\n return SUCCESS;\r\n }\r\n if (!holder.getRevised())\r\n {\r\n if (PoInvGrnDnMatchingSupplierStatus.PENDING.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplierpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.ACCEPTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"supplieraccept\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.PENDING.equals(holder.getBuyerStatus()) && PoInvGrnDnMatchingSupplierStatus.REJECTED.equals(holder.getSupplierStatus()))\r\n {\r\n this.result = \"buyerpending\";\r\n return SUCCESS;\r\n }\r\n if (PoInvGrnDnMatchingBuyerStatus.REJECTED.equals(holder.getBuyerStatus()))\r\n {\r\n this.result = \"rejected\";\r\n return SUCCESS;\r\n }\r\n }\r\n }\r\n if (null == param.getInvStatusActionRemarks() || param.getInvStatusActionRemarks().length() == 0 || param.getInvStatusActionRemarks().length() > 255)\r\n {\r\n this.result = \"remarks\";\r\n return SUCCESS;\r\n }\r\n this.checkInvFileExist(holder);\r\n poInvGrnDnMatchingService.changeInvDateToFirstGrnDate(holder);\r\n PoInvGrnDnMatchingHolder newHolder = new PoInvGrnDnMatchingHolder();\r\n BeanUtils.copyProperties(holder, newHolder);\r\n newHolder.setInvStatus(PoInvGrnDnMatchingInvStatus.APPROVED);\r\n newHolder.setInvStatusActionDate(new Date());\r\n newHolder.setInvStatusActionRemarks(param.getInvStatusActionRemarks());\r\n newHolder.setInvStatusActionBy(getProfileOfCurrentUser().getLoginId());\r\n poInvGrnDnMatchingService.auditUpdateByPrimaryKeySelective(this.getCommonParameter(), holder, newHolder);\r\n poInvGrnDnMatchingService.moveFile(holder);\r\n this.result = \"1\";\r\n }\r\n catch (Exception e)\r\n {\r\n ErrorHelper.getInstance().logError(log, this, e);\r\n this.result = \"0\";\r\n }\r\n return SUCCESS;\r\n }",
"@Override\r\n public boolean canDisapprove(Document document) {\n return false;\r\n }",
"void approveSelf() throws IllegalAccessException {\n\t\tif (this.secOpFlag)\n\t\t\tthrow new IllegalAccessException(\"Diagnose requires second opinion and can't be self approved.\");\n\t\tthis.approved = true;\n\t\tthis.secOpFlag = false;\n\t}",
"public void addVertexManagerToPR(ApprovalRequest ar, Approvable lic) {\r\n\t\tLog.customer.debug(\"%s ::: addVertexManagerToPR - %s\", className, lic);\r\n\t\tProcureLineItemCollection plic = (ProcureLineItemCollection) lic;\r\n\r\n\t\tString TaxRole = \"VertexManager\";\r\n\t\tString TaxReason = \"Tax Reason\";\r\n\t\tboolean flag1 = true;\r\n\t\tObject obj = Role.getRole(TaxRole);\r\n\t\t// plic.setFieldValue(\"ProjectID\",\"F\");\r\n\t\tLog.customer.debug(\r\n\t\t\t\t\"%s ::: isTaxManagerRequired - plic bfore create %s\",\r\n\t\t\t\tclassName, plic.toString());\r\n\t\tApprovalRequest approvalrequest1 = ApprovalRequest.create(plic,\r\n\t\t\t\t((ariba.user.core.Approver) (obj)), flag1, \"RuleReasons\",\r\n\t\t\t\tTaxReason);\r\n\t\tLog.customer.debug(\"%s ::: approvalrequest1 got activated- %s\",\r\n\t\t\t\tclassName);\r\n\r\n\t\tBaseVector basevector1 = plic.getApprovalRequests();\r\n\t\tLog.customer.debug(\"%s ::: basevector1 got activated- %s\", className);\r\n\r\n\t\tBaseVector basevector2 = approvalrequest1.getDependencies();\r\n\t\tLog.customer.debug(\"%s ::: basevector2 got activated- %s\", className);\r\n\r\n\t\tbasevector2.add(0, ar);\r\n\t\tLog.customer.debug(\"%s ::: ar added to basevector2 %s\", className);\r\n\r\n\t\tapprovalrequest1.setFieldValue(\"Dependencies\", basevector2);\r\n\t\tar.setState(2);\r\n\t\tLog.customer.debug(\"%s ::: ar.setState- %s\", className);\r\n\r\n\t\tar.updateLastModified();\r\n\t\tLog.customer.debug(\"%s ::: ar.updatelastmodified- %s\", className);\r\n\r\n\t\tbasevector1.removeAll(ar);\r\n\t\tLog.customer.debug(\"%s ::: basevecotr1 .removeall %s\", className);\r\n\r\n\t\tbasevector1.add(0, approvalrequest1);\r\n\t\tLog.customer.debug(\"%s ::: basevector1 .add- %s\", className);\r\n\r\n\t\tplic.setApprovalRequests(basevector1);\r\n\t\tLog.customer.debug(\"%s ::: ir .setApprovalRequests got activated- %s\",\r\n\t\t\t\tclassName);\r\n\r\n\t\tjava.util.List list = ListUtil.list();\r\n\t\tjava.util.Map map = MapUtil.map();\r\n\t\tboolean flag6 = approvalrequest1.activate(list, map);\r\n\r\n\t\tLog.customer.debug(\"%s ::: New TaxAR Activated - %s\", className);\r\n\t\tLog.customer.debug(\"%s ::: State (AFTER): %s\", className);\r\n\t\tLog.customer.debug(\"%s ::: Approved By: %s\", className);\r\n\r\n\t}",
"public boolean isApproved() {\n return approved;\n }",
"@Override\n protected void acceptTrade(Territory offerer, double demand, int typeDemand, double offer, int typeOffer){\n // An example for accepting a trade proposal: I only accept offers of peasants when I have less than 3 peasants\n // I am not checking what I am giving in exchange or how much, so you should work on that\n if (typeOffer == 3 && typeDemand == 2){\n acceptTrade = true;// no matter the amounts\n }\n else acceptTrade = false;\n }",
"public void Feedback_req()\n {\n\t boolean feedbackreqpresent =Feedbackreq.size()>0;\n\t if(feedbackreqpresent)\n\t {\n\t\t // System.out.println(\"Feedback Request report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Feedback Request report is not present\");\n\t }\n }",
"private boolean canCreateProposal( Person user ) {\n\t\tApplicationTask task = new ApplicationTask( TaskName.CREATE_PROPOSAL );\n\t\tTaskAuthorizationService taskAuthenticationService = KraServiceLocator.getService( TaskAuthorizationService.class );\n\t\treturn taskAuthenticationService.isAuthorized( user.getPrincipalId(), task );\n\t}",
"public boolean approveAppointment() {\n\t\tSet <String> set=(HealthCareDAO.map).keySet();\r\n\t\tint count=1;\r\n\t\tfor(String s:set)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"You have a center \"+map.get(s).getCenterName() +\"--\"+\"Center and id is \"+s);\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter Center id :\");\r\n\t\tString str=scan.next();\r\n\t\tDiagnoisticCenter center=HealthCareDAO.map.get(str); //get Diagonistic object of given key \r\n\t\tList<Appointment> l=center.getAppointmentList();\r\n\t\t//System.out.println(l);\r\n\t\tint y=1;\r\n\t\tfor(Appointment a:l)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter Approval or disapproval\");\r\n\t\tboolean decision=scan.nextBoolean()\t;\r\n\t\t\ta.setApproved(decision);\r\n\t\t\tif(a.isApproved()==true)\r\n\t\t\t{\tSystem.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is Approved\");}\r\n\t\t\telse {System.out.println(\"Appointment id number \"+a.getAppointmentid()+\"---is not Approved\");}\r\n\t\t\ty++;\r\n\t\t\tif(y>3)\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t}\r\n\t\tcenter.setAppointmentList(l);\r\n\t\tSystem.out.println(\"Appointment List count :\"+l.size());\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean bookingStatus(UserDetails userDetails, FilghtDetails flightDetails) {\n\t\treturn false;\n\t}",
"public boolean isUserApproval() {\n\n if (!ACTION_UserChoice.equals(getAction())) {\n return false;\n }\n\n return (getColumn() != null) && \"IsApproved\".equals(getColumn().getColumnName());\n\n }",
"public boolean ApproveReimbursement(int employeeID, int reimburseID, String reason, int status);",
"public void setTravelAdvance(TravelAdvance travelAdvance) {\n this.travelAdvance = travelAdvance;\n }",
"void onValidatePrepaidPriceplan(Context ctx, Subscriber oldSub, Subscriber newSub) throws HomeException\r\n\t{\n\t\tif (newSub != null && newSub.isPrepaid())\r\n\t\t{\r\n\t\t\tPricePlanVersion ppl = (PricePlanVersion) ctx.get(PricePlanVersion.class) ;\r\n\t\t\t\t\r\n\t\t\t\t//newSub.getPricePlan(ctx);\r\n\t\t\t// validate account state\r\n\t\t\tif (ppl != null && ppl.getDeposit() != 0)\r\n\t\t\t{\r\n\t\t\t\t//migration from provisionhome.java\r\n\t\t\t\t//log3013(subscriber, account, pricePlan);\r\n\r\n\t\t\t\tthrow new HomeException(\"Please make a deposit release for \" + ppl.getDeposit() + \" or change price plan before doing this transaction\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic boolean updateReviewOfPastYearDetails(ExemptTeamMember exemptTeamMember, int year) {\n\t\treturn exemptTeamMemberDAO.updateReviewOfPastYearDetails(exemptTeamMember,year);\r\n\t}",
"public boolean approveCheckIn(SoftwareEngineer e){\n int i;\n\n for(i=0;i<this.curHeadCount;i++){\n if(employee[i].equals(e)) break;\n }\n\n return (i<this.curHeadCount && e.access);\n }",
"public void employeeServiceApprove() {\n\t\t\n\t\tEmployee employee = new Employee();\n\t\t employee.approve();\n\t}",
"public String approveRegistration() {\n\t\treturn \"Company approved\";\r\n\t}",
"public void addMSCAdminToPR(ApprovalRequest ar, Approvable lic) {\r\n\t\tLog.customer.debug(\"%s ::: addMSCAdminToPR - %s\", className, lic);\r\n\t\tProcureLineItemCollection plic = (ProcureLineItemCollection) lic;\r\n\t\tString TaxRole = \"MSC Administrator\";\r\n\t\tString TaxReason = \"Tax Reason\";\r\n\t\tboolean flag1 = true;\r\n\t\tObject obj = Role.getRole(TaxRole);\r\n\t\t// plic.setFieldValue(\"ProjectID\",\"F\");\r\n\t\tLog.customer.debug(\"%s ::: isMSCAdminRequired - plic bfore create %s\",\r\n\t\t\t\tclassName, plic.toString());\r\n\t\tApprovalRequest approvalrequest1 = ApprovalRequest.create(plic,\r\n\t\t\t\t((ariba.user.core.Approver) (obj)), flag1, \"RuleReasons\",\r\n\t\t\t\tTaxReason);\r\n\t\tLog.customer.debug(\"%s ::: approvalrequest1 got activated- %s\",\r\n\t\t\t\tclassName);\r\n\r\n\t\tBaseVector basevector1 = plic.getApprovalRequests();\r\n\t\tLog.customer.debug(\"%s ::: basevector1 got activated- %s\", className);\r\n\r\n\t\tBaseVector basevector2 = approvalrequest1.getDependencies();\r\n\t\tLog.customer.debug(\"%s ::: basevector2 got activated- %s\", className);\r\n\r\n\t\tbasevector2.add(0, ar);\r\n\t\tLog.customer.debug(\"%s ::: ar added to basevector2 %s\", className);\r\n\r\n\t\tapprovalrequest1.setFieldValue(\"Dependencies\", basevector2);\r\n\t\tar.setState(2);\r\n\t\tLog.customer.debug(\"%s ::: ar.setState- %s\", className);\r\n\r\n\t\tar.updateLastModified();\r\n\t\tLog.customer.debug(\"%s ::: ar.updatelastmodified- %s\", className);\r\n\r\n\t\tbasevector1.removeAll(ar);\r\n\t\tLog.customer.debug(\"%s ::: basevecotr1 .removeall %s\", className);\r\n\r\n\t\tbasevector1.add(0, approvalrequest1);\r\n\t\tLog.customer.debug(\"%s ::: basevector1 .add- %s\", className);\r\n\r\n\t\tplic.setApprovalRequests(basevector1);\r\n\t\tLog.customer.debug(\"%s ::: ir .setApprovalRequests got activated- %s\",\r\n\t\t\t\tclassName);\r\n\r\n\t\tjava.util.List list = ListUtil.list();\r\n\t\tjava.util.Map map = MapUtil.map();\r\n\t\tboolean flag6 = approvalrequest1.activate(list, map);\r\n\r\n\t\tLog.customer.debug(\"%s ::: New TaxAR Activated - %s\", className);\r\n\t\tLog.customer.debug(\"%s ::: State (AFTER): %s\", className);\r\n\t\tLog.customer.debug(\"%s ::: Approved By: %s\", className);\r\n\r\n\t}",
"@Then(\"^the user can view their booking entry$\")\n public void the_user_can_view_their_booking_entry() throws Throwable {\n throw new PendingException();\n }",
"@When(\"^Check for review$\")\n\tpublic void check_for_review() throws Throwable {\n\t\twait.WaitForElement(profilepage.getreviewlink(), 70);\n\t\tprofilepage.clickonreviewtab();\n\t}",
"boolean isEligible(@Nonnull Urn userUrn, @Nonnull RecommendationRequestContext requestContext);",
"boolean hasRecommendation();",
"public void setApprover(String approver) {\n this.approver = approver;\n }",
"@RequestMapping(\"/agent/enrollment/approve\")\n public String approve(@RequestParam(\"id\") long id, ApprovalDTO dto) {\n String signature = \"EnrollmentController#approve(long id, ApprovalDTO dto)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\", \"dto\" }, new Object[] { id, dto });\n StatusDTO statusDTO = new StatusDTO();\n\n try {\n completeReview(id, dto, false, \"\");\n statusDTO.setSuccess(true);\n ControllerHelper.flashInfo(\"Approval request has been sent, you will be notified once it is processed.\");\n } catch (PortalServiceException ex) {\n LogUtil.traceError(getLog(), signature, ex);\n ControllerHelper.flashError(USER_ERROR_MSG);\n }\n return \"redirect:/ops/viewDashboard\";\n }",
"public boolean approveCheckIn(SoftwareEngineer e) {\n for(SoftwareEngineer se : this.directReports) {\n if(se.getEmployeeID() == e.getEmployeeID() && e.codeAccess) {\n // found!\n return true;\n }\n }\n return false;\n }",
"public abstract boolean isAppropriateRequest(Request request);",
"if(true==adhocTicket.isPaid()){\n System.out.println(\"isPaid() is passed\");\n }",
"boolean hasHasRecommendation();",
"@OnClick(R.id.mApprovalCommit)\n void onApprovalPress() {\n String userName = mPetitionConcertUserName.getText().toString();\n// if (!userName.equals(\"\")) {\n// userName = userName.substring(1, userName.length() - 1);\n// }\n// String content = mPetitionContent.getText().toString();\n// String petitioner = mPetitioner.getText().toString();\n// String timeRange = mPetitionTimeRange.getText().toString();\n String result = mApprovalResultMenuTab.getText().toString();\n String opinion = mApprovalOpinion.getText().toString();\n if (opinion.equals(\"\")) {\n Toast.makeText(this, \"请输入审批意见\", Toast.LENGTH_SHORT).show();\n } else {\n if (mDialog == null) mDialog = new ProgressDialog(this);\n mDialog.setMessage(\"正在提交,请稍后...\");\n mDialog.setCancelable(false);\n mDialog.show();\n switch (result) {\n case \"同意\":\n mPresent.approvalAgree(approval.getRequestid(), approval.getApproveNodeId(), approval.getApprovePerson(), opinion);\n break;\n case \"不同意\":\n mPresent.approvalRefused(approval.getRequestid(), approval.getApprovePerson(), opinion);\n break;\n default:\n Log.e(TAG, \"onApprovalPress: \" + approval.getRequestid() + \"::\" + approval.getApproveNodeId() + \"::\" + approval.getApprovePerson() + \"::\" + opinion);\n break;\n }\n }\n\n\n }",
"public static boolean canApproveForms() {\n return SecurityUtils.getSubject().isPermitted(\"ownSite:canApprove\");\n }",
"public boolean allParametersForAdvanceAccountingLinesSet() {\n // not checking the object code because that will need to be set no matter what - every advance accounting line will use that\n return (!StringUtils.isBlank(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT, KFSConstants.EMPTY_STRING)) &&\n !StringUtils.isBlank(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART, KFSConstants.EMPTY_STRING)));\n }",
"@Override\n public void planTrip(String departingAddress, String departingZipCode,\n String arrivalZipCode, Date preferredArrivalTime) {\n FlightSchedule schedule = airlineAgency.bookTicket(departingZipCode, arrivalZipCode, preferredArrivalTime);\n //cab pickup scheduling activity\n cabAgency.requestCab(departingAddress, schedule.getFlightNumber());\n \n //Test output\n System.out.println(\"Test output: trip planned\");\n }",
"public void verifyToDoAssignToBackend(String engagementField, String engagementValue, String todoName, String assigneeName) {\n try {\n getLogger().info(\"Verify To-Do delete status on database.\");\n String idAssignee = MongoDBService.getUserObjectByFirstNameLastName(getUserCollection(), assigneeName);\n //System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++idAssignee = \" + idAssignee);\n\n JSONObject jsonObject = MongoDBService.getToDoObject(getEngagementCollection(), engagementField, engagementValue, todoName);\n //System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++auditorAssignee = \" + jsonObject.get(\"auditorAssignee\").toString());\n\n //TODO get from properties file\n if (jsonObject.get(\"auditorAssignee\").toString().contains(idAssignee)) {\n NXGReports.addStep(\"Verify To-Do complete status on database.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Verify To-Do complete status on database.\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (Exception ex) {\n NXGReports.addStep(\"Verify To-Do complete status on database.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n ex.printStackTrace();\n }\n }",
"public void setRequired(boolean r)\n\t{\n\t\trequiring = r;\n\t}",
"public boolean isAvailable() {\n return this.isAcceptingRider && this.currentTrip == null;\n }",
"public String getApprover() {\n return approver;\n }",
"public void requestToken(View pView){\n mAttestation.fetchApproovToken();\n }",
"boolean CanBuySettlement();",
"private void payButtonClicked() {\n if (checkBoxAgreedTAC.isChecked()) {\n boolean validCard = validateCard();\n if (validCard) {\n Double payAmount = Double.parseDouble(textViewPrepaidPrice.getText().toString());\n MainActivity.bus.post(new PrepayPaymentAttemptEvent(payAmount, Long.parseLong(litersToBuy.getText().toString())));\n if (PrepayCalculatorFragment.this.payDialog != null) {\n PrepayCalculatorFragment.this.payDialog.dismiss();\n }\n }\n } else {\n Toast.makeText(getActivity(), getResources().getString(R.string.TACMustAgreedMessage), Toast.LENGTH_SHORT).show();\n }\n\n }",
"@Override\r\n\tpublic void payCheck() {\n\t\t\r\n\t}"
]
| [
"0.7193743",
"0.6518735",
"0.64658964",
"0.64040196",
"0.6295172",
"0.626199",
"0.6260812",
"0.61190754",
"0.6118132",
"0.6118132",
"0.6099909",
"0.6031947",
"0.60067654",
"0.5983526",
"0.59713805",
"0.595714",
"0.58948916",
"0.5889719",
"0.58766776",
"0.5876157",
"0.58618504",
"0.5792842",
"0.57845587",
"0.5765837",
"0.5755071",
"0.5750354",
"0.5749996",
"0.5706905",
"0.5675418",
"0.56670034",
"0.56655645",
"0.56512564",
"0.56508374",
"0.5637968",
"0.56330514",
"0.5622269",
"0.56134933",
"0.56082135",
"0.5599165",
"0.5589035",
"0.5585669",
"0.5581716",
"0.5579203",
"0.55778503",
"0.55647933",
"0.555113",
"0.5548947",
"0.5545836",
"0.55239093",
"0.55229163",
"0.5517329",
"0.5517017",
"0.54712933",
"0.544258",
"0.5434897",
"0.54300386",
"0.5411444",
"0.5410227",
"0.5410227",
"0.5391211",
"0.53855914",
"0.5384965",
"0.5381828",
"0.53631353",
"0.5351522",
"0.53370506",
"0.533566",
"0.53234094",
"0.5310556",
"0.5303747",
"0.5300616",
"0.5299655",
"0.5299128",
"0.52896327",
"0.52871317",
"0.52863395",
"0.52838457",
"0.5283381",
"0.52757776",
"0.525244",
"0.5247197",
"0.5239381",
"0.52326965",
"0.52181643",
"0.52181154",
"0.52178246",
"0.52095914",
"0.5207992",
"0.52051425",
"0.5196984",
"0.5190252",
"0.5174545",
"0.51566267",
"0.515531",
"0.51529783",
"0.5147183",
"0.513802",
"0.5133128",
"0.5129144",
"0.51137394"
]
| 0.6851932 | 1 |
This method checks to see if Risk Management needs to be routed | private boolean requiresRiskManagementReviewRouting() {
// Right now this works just like International Travel Reviewer, but may change for next version
if (ObjectUtils.isNotNull(this.getTripTypeCode()) && getParameterService().getParameterValuesAsString(TemParameterConstants.TEM_DOCUMENT.class, TravelParameters.INTERNATIONAL_TRIP_TYPES).contains(this.getTripTypeCode())) {
return true;
}
if (!ObjectUtils.isNull(getTraveler()) && getTraveler().isLiabilityInsurance()) {
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean checkPermissions(HttpServletRequest request, RouteAction route) {\n\t\treturn true;\n\t}",
"public boolean onSecurityCheck() {\n boolean continueProcessing = super.onSecurityCheck();\n if (!continueProcessing) {\n return false;\n }\n AuthorizationManager authzMan = getAuthorizationManager();\n try {\n if (!authzMan.canManageApplication(user)) {\n setRedirect(\"authorization-denied.htm\");\n return false;\n }\n return true;\n } catch (AuthorizationSystemException ex) {\n throw new RuntimeException(ex);\n }\n }",
"@Override\r\n protected void mayProceed() throws InsufficientPermissionException {\n if (ub.isSysAdmin() || ub.isTechAdmin()) {\r\n return;\r\n }\r\n// if (currentRole.getRole().equals(Role.STUDYDIRECTOR) || currentRole.getRole().equals(Role.COORDINATOR)) {// ?\r\n// ?\r\n// return;\r\n// }\r\n\r\n addPageMessage(respage.getString(\"no_have_correct_privilege_current_study\") + respage.getString(\"change_study_contact_sysadmin\"));\r\n throw new InsufficientPermissionException(Page.MENU_SERVLET, resexception.getString(\"not_allowed_access_extract_data_servlet\"), \"1\");// TODO\r\n // above copied from create dataset servlet, needs to be changed to\r\n // allow only admin-level users\r\n\r\n }",
"private void checkAdminOrModerator(HttpServletRequest request, String uri)\n throws ForbiddenAccessException, ResourceNotFoundException {\n if (isAdministrator(request)) {\n return;\n }\n\n ModeratedItem moderatedItem = getModeratedItem(uri);\n if (moderatedItem == null) {\n throw new ResourceNotFoundException(uri);\n }\n\n String loggedInUser = getLoggedInUserEmail(request);\n if (moderatedItem.isModerator(loggedInUser)) {\n return;\n }\n\n throw new ForbiddenAccessException(loggedInUser);\n }",
"@Override\n protected boolean shouldRouteByProfileAccount() {\n return getBlanketTravel() || !getTripType().isGenerateEncumbrance() || hasOnlyPrepaidExpenses();\n }",
"public void checkAuthority() {\n }",
"@Override \n\t\t public void postHandle(HttpServletRequest request, HttpServletResponse response, \n\t\t Object object, ModelAndView modelAndView) throws Exception {\n\t\t\t List<String> exclusionsScreens = (List<String>) request.getSession(true).getAttribute(\"exclusionesScreens\");\n\t\t\t System.out.println(\"exclusionsScreens: \"+exclusionsScreens+\" view: \"+modelAndView.getViewName());\n\t\t\t if (null==exclusionsScreens && !\"login\".equalsIgnoreCase(modelAndView.getViewName())){\n\t\t\t\n\t\t\t\t System.out.println(\"Usuario No logueado o la session ha caducado\");\n\t\t\t\t throw new RestrictedPageException(\"Favor de loguearse\");\n\t\t\t \n\t\t\t\t }else if(null!=exclusionsScreens && exclusionsScreens.contains(modelAndView.getViewName())){\n\t\t\t\t\t System.out.println(\"no tiene acceso!!!!!! a la pagina: \"+request.getRequestURL().toString());\n\t\t\t\t\t //response.sendRedirect(\"/sanantial/forbidden\");\n\t\t\t\t\t throw new RestrictedPageException(\"No tiene acceso a la pagina solicitada\");\n\t\t\t\t }\n\t\t\t\t \n\t\t\t \n\t\t }",
"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 }",
"protected void checkSetPolicyPermission() {\n\tSecurityManager sm = System.getSecurityManager();\n\tif (sm != null) {\n\t if (setPolicyPermission == null) {\n\t\tsetPolicyPermission = new java.security.SecurityPermission(\"setPolicy\");\n\t }\n\t sm.checkPermission(setPolicyPermission);\n\t}\n }",
"protected void checkRights(String rightName) {\n\t\tcheckRights(rightName, null);\n\t}",
"protected boolean requiresTravelerApprovalRouting() {\n //If there's travel advances, route to traveler if necessary\n return requiresTravelAdvanceReviewRouting() && !getTravelAdvance().getTravelAdvancePolicy();\n }",
"public static void checkAccess() throws SecurityException {\n if(isSystemThread.get()) {\n return;\n }\n //TODO: Add Admin Checking Code\n// if(getCurrentUser() != null && getCurrentUser().isAdmin()) {\n// return;\n// }\n throw new SecurityException(\"Invalid Permissions\");\n }",
"@Override\n\t\t\tpublic void handle(Request req, Response res) throws Exception {\n\t\t\t\tfinal String op = req.params(\":op\");\n\t\t\t\tfinal String username = req.queryParams(\"user\");\n\t\t\t\tfinal String path = req.queryParams(\"path\");\n\t\t\t\t\n\t\t\t\t//--- framework access ---//\n\t\t\t\tif (!Results.hasFrameworkAccess(op, path)) halt(404);\n\t\t\t\t//--- path exists? ---//\n\t\t\t\tif (!Directories.isExist(path)) halt(404);\n\t\t\t\t//--- section and path access ---//\n\t\t\t\tif (!AccessManager.hasAccess(username, path)) halt(401);\n\n\t\t\t}",
"private void checkAction(HttpServletRequest req, HttpServletResponse resp) throws SQLException, IOException {\n\t\tString account = req.getParameter(\"account\");\r\n\t\tString password = req.getParameter(\"password\");\r\n\t\tManage manage = this.service.checkLogin(account, password);\r\n\r\n\t\t// 如果User不是空,证明账号密码正确\r\n\t\tif (manage != null) {\r\n\t\t\tsession.setAttribute(\"MANAGEINSESSION\", manage);\r\n//\t\t\tresp.sendRedirect(path + \"/jsps/manage/index.jsp\");\r\n\t\t\tpw.print(true);\r\n\t\t} else {\r\n\t\t\tpw.print(false);\r\n//\t\t\tresp.sendRedirect(path + \"/jsps/manage/login.jsp\");\r\n\t\t}\r\n\t\treturn;\r\n\t}",
"@Override\n protected boolean isAuthorized(PipelineData pipelineData) throws Exception\n {\n \t// use data.getACL() \n \treturn true;\n }",
"public boolean isSafe(int index) {\n boolean safe = isLowRiskSquare(index);\n if (!safe) {\n int count = 0;\n int totalRisk = 0;\n for (int i = index; i < index + SEG_SIZE && i < path.size(); ++i) {\n ++count;\n Tile tile = path.get(i);\n totalRisk += riskBasedCost[tile.x][tile.y];\n }\n safe = isLowRisk(totalRisk/count);\n }\n return safe;\n }",
"@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyRPAccessJourneys() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the RB user is able to perform journeys\");\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"Switchtopaperlessacctspecificsdata\");\t\t\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.bgbloginDetails(userProfile);\t\t\n\t\tnew MultiUserMultiViewAction()\n\t\t.ManageAccountLink(userProfile)\n\t\t.verifyRPuserjourneyverification();\n\t\n\t}",
"@RequestMapping\n public void othersRooms() throws MethodNotAllowedException {\n throw new MethodNotAllowedException();\n }",
"protected void validateSpaRequest()\n\t{\n\t\tif (isSpaRequest())\n\t\t{\n\t\t\thttpContext.disableSpaRequest();\n\t\t\tsendSpaHeaders();\n\t\t}\n\t}",
"boolean hasRemarketingAction();",
"public abstract boolean checkPolicy(User user);",
"private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }",
"private boolean requireSMSPermissions() {\r\n boolean hasSendSMSPerms = ActivityCompat.checkSelfPermission(this, Manifest.permission.SEND_SMS) == PackageManager.PERMISSION_GRANTED;\r\n boolean hasReadPhoneStatePerms = ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) == PackageManager.PERMISSION_GRANTED;\r\n\r\n if (hasSendSMSPerms && hasReadPhoneStatePerms)\r\n return true;\r\n\r\n ActivityCompat.requestPermissions(this, new String[] {\r\n Manifest.permission.SEND_SMS,\r\n Manifest.permission.READ_PHONE_STATE\r\n }, REQUEST_PERMISSION_SHARE_SMS);\r\n\r\n return false;\r\n }",
"private boolean canUserLoadSponsorForms() throws CoeusUIException{\r\n boolean hasFormLoadRight = false;\r\n RequesterBean requesterBean = new RequesterBean();\r\n requesterBean.setFunctionType(HAS_FORM_LOAD_RIGHTS);\r\n requesterBean.setDataObject(hierarchyName);\r\n AppletServletCommunicator comm = new AppletServletCommunicator(connect,requesterBean);\r\n comm.send();\r\n ResponderBean responderBean = comm.getResponse();\r\n if(responderBean != null) {\r\n if(responderBean.isSuccessfulResponse() && responderBean.getDataObject() != null) {\r\n hasFormLoadRight = ((Boolean)responderBean.getDataObject()).booleanValue();\r\n }\r\n }else {\r\n throw new CoeusUIException(coeusMessageResources.parseMessageKey(\"coeusApplet_exceptionCode.1147\"));\r\n }\r\n return hasFormLoadRight;\r\n }",
"private void checkPermissions() {\n // if permissions are not granted for camera, and external storage, request for them\n if ((ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED) ||\n (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED)) {\n ActivityCompat.\n requestPermissions(this,\n new String[]{Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CODE_CAMERA_PERMISSION);\n\n }\n }",
"public void checkPermission (Socket socket, LogEvent evt) throws ISOException\n {\n if (specificIPPerms.isEmpty() && wildcardAllow == null && wildcardDeny == null)\n return;\n\n String ip= socket.getInetAddress().getHostAddress (); // The remote IP\n\n // first, check allows or denies for specific/whole IPs (no wildcards)\n Boolean specificAllow= specificIPPerms.get(ip);\n if (specificAllow == Boolean.TRUE) { // specific IP allow\n evt.addMessage(\"access granted, ip=\" + ip);\n return;\n\n } else if (specificAllow == Boolean.FALSE) { // specific IP deny\n throw new ISOException(\"access denied, ip=\" + ip);\n\n } else { // no specific match under the specificIPPerms Map\n // We check the wildcard lists, deny first\n if (wildcardDeny != null) {\n for (String wdeny : wildcardDeny) {\n if (ip.startsWith(wdeny)) {\n throw new ISOException (\"access denied, ip=\" + ip);\n }\n }\n }\n if (wildcardAllow != null) {\n for (String wallow : wildcardAllow) {\n if (ip.startsWith(wallow)) {\n evt.addMessage(\"access granted, ip=\" + ip);\n return;\n }\n }\n }\n\n // Reaching this point means that nothing matched our specific or wildcard rules, so we fall\n // back on the default permission policies and log type\n switch (ipPermLogPolicy) {\n case DENY_LOG: // only allows were specified, default policy is to deny non-matches and log the issue\n throw new ISOException (\"access denied, ip=\" + ip);\n // break;\n\n case ALLOW_LOG: // only denies were specified, default policy is to allow non-matches and log the issue\n evt.addMessage(\"access granted, ip=\" + ip);\n break;\n\n case DENY_LOGWARNING: // mix of allows and denies were specified, but the IP matched no rules!\n // so we adopt a deny policy but give a special warning\n throw new ISOException (\"access denied, ip=\" + ip + \" (WARNING: the IP did not match any rules!)\");\n // break;\n\n case ALLOW_NOLOG: // this is the default case when no allow/deny are specified\n // the method will abort early on the first \"if\", so this is here just for completion\n break;\n }\n\n }\n // we should never reach this point!! :-)\n }",
"@Override\n\tpublic boolean needSecurityCheck() {\n\t\treturn false;\n\t}",
"private void checkIfPermissionGranted() {\n\n //if user already allowed the permission, this condition will be true\n if (ContextCompat.checkSelfPermission(this, PERMISSION_CODE)\n == PackageManager.PERMISSION_GRANTED) {\n Intent launchIntent = getPackageManager().getLaunchIntentForPackage(\"com.example.a3\");\n if (launchIntent != null) {\n startActivity(launchIntent);//null pointer check in case package name was not found\n }\n }\n //if user didn't allow the permission yet, then ask for permission\n else {\n ActivityCompat.requestPermissions(this, new String[]{PERMISSION_CODE}, 0);\n }\n }",
"void checkPrerequisite() throws ActionNotPossibleException;",
"private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = false;\n \n for(IRights right : rights){\n String name = right.getName();\n \n //user found, therefore no other check necessary.\n if(name.equals(user)){\n if(!right.getOwner()){\n image.setEnabled(false);\n }else{\n image.setEnabled(true);\n }\n return;\n //if no user found, use everybody\n }else if(name.equals(BUNDLE.getString(\"Everybody\"))){\n everybodyperm = right.getOwner();\n }\n }\n image.setEnabled(everybodyperm);\n if(!everybodyperm){\n return;\n }\n }\n }\n }",
"private void validateRights() {\n\n aRightsMapperUpdated = new ArrayList<>();\n aRightsMapperUpdated.clear();\n if (processName != null && processName.equalsIgnoreCase(getResources().getString(R.string.tor_creation))) {\n for (int i = 0; i < aRightsMapper.size(); i++) {\n if (aRightsMapper.get(i).getSectionName().contains(GenericConstant.PNC)) {\n\n aRightsMapperUpdated.add(aRightsMapper.get(i));\n\n } else if (aRightsMapper.get(i).getSectionName().contains(GenericConstant.POLE)) {\n\n aRightsMapperUpdated.add(aRightsMapper.get(i));\n }\n }\n } else if ((processName != null && processName.equalsIgnoreCase(getResources().getString(R.string.stop_process)))\n || (processName != null && processName.equalsIgnoreCase(getResources().getString(R.string.crime)))) {\n for (int i = 0; i < aRightsMapper.size(); i++) {\n if (aRightsMapper.get(i).getSectionName().contains(GenericConstant.POLE)) {\n\n aRightsMapperUpdated.add(aRightsMapper.get(i));\n }\n }\n } else {\n for (int i = 0; i < aRightsMapper.size(); i++) {\n if (aRightsMapper.get(i).getSectionName().contains(GenericConstant.PNC)) {\n aRightsMapperUpdated.add(aRightsMapper.get(i));\n } else if (aRightsMapper.get(i).getSectionName().contains(GenericConstant.ATHENA)) {\n aRightsMapperUpdated.add(aRightsMapper.get(i));\n } else if (aRightsMapper.get(i).getSectionName().contains(GenericConstant.STOPS)) {\n aRightsMapperUpdated.add(aRightsMapper.get(i));\n } else if (aRightsMapper.get(i).getSectionName().contains(GenericConstant.POLE)) {\n aRightsMapperUpdated.add(aRightsMapper.get(i));\n }\n }\n }\n }",
"@Override\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)\n\t\t\tthrows Exception {\n\n\t\tList<String> driver_urls = new ArrayList<String>();\n\t\tList<String> officer_urls = new ArrayList<String>();\n\n\t\t// TODO add url for driver can access\n\t\tdriver_urls.add(\"/api/notice/uuid/[^\\\\/]*$\");\n\t\tdriver_urls.add(\"/api/notice/uuid/[^\\\\/]*/validate\");\n\t\tdriver_urls.add(\"/api/notice/uuid/[^\\\\/]*/manual_validate\");\n\t\tdriver_urls.add(\"/api/notice/uuid/[^\\\\/]*/manual_extend\");\n\t\tdriver_urls.add(\"/api/notice/uuid/[^\\\\/]*/not_extend\");\n\t\tdriver_urls.add(\"/api/notice/uuid/[^\\\\/]*/archive\");\n\t\tdriver_urls.add(\"/api/payment/uuid/[^\\\\/]*$\");\n\t\tdriver_urls.add(\"/api/payment/\\\\d+/paid$\");\n\n\t\tofficer_urls = driver_urls;\n\t\t// TODO add url for officer can access\n\t\tofficer_urls.add(\"/api/notice/initiate\");\n\t\tofficer_urls.add(\"/api/license/\\\\d+\");\n\t\tofficer_urls.add(\"/api/payment\");\n\t\tofficer_urls.add(\"/api/payment/[^\\\\/]*$\");\n\t\tofficer_urls.add(\"/api/notice\");\n\t\tofficer_urls.add(\"/api/notice/[^\\\\/]*$\");\n\t\tofficer_urls.add(\"/api/notice/status/manual_validate\");\n\t\tofficer_urls.add(\"/api/notice/status/manual_extend\");\n\t\tofficer_urls.add(\"/api/notice/uuid/[^\\\\/]*/officer/\\\\d+$\");\n\t\tofficer_urls.add(\"/api/notice/officer/\\\\d+/claimed\");\n\t\tofficer_urls.add(\"/api/notice/uuid/[^\\\\/]*/officer/\\\\d+/approve/amount/\\\\d+$\");\n\t\tofficer_urls.add(\"/api/notice/uuid/[^\\\\/]*/officer/\\\\d+/reject$\");\n\n\t\tofficer_urls.add(\"/api/license/Renewable\");\n\n\t\tString authorization_token = null;\n\t\tauthorization_token = request.getHeader(\"Authorization\");\n\t\tSystem.out.println(\"authorization_token: \" + authorization_token);\n\t\tString requestPath = request.getRequestURI();\n\t\tSystem.out.println(\"requestPath: \" + requestPath);\n\n\t\tSystem.out.println(request.getRequestURL());\n\n\t\tif (authorization_token == null) {\n\t\t\tresponse.setStatus(401);\n\t\t\tresponse.getWriter().append(\"authorization required\");\n\t\t\treturn false;\n\n\t\t} else if (authorization_token.equals(Constant.DRIVER_AUTHORIZATION_TOKEN)) {\n\n\t\t\tfor (String driver_url : driver_urls) {\n\t\t\t\tif (requestPath.matches(driver_url)) {\n\t\t\t\t\tSystem.out.println(driver_url);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresponse.setStatus(401);\n\t\t\tresponse.getWriter().append(\"failure of authorization of driver\");\n\t\t\treturn false;\n\n\t\t} else if (authorization_token.equals(Constant.OFFICER_AUTHORIZATION_TOKEN)) {\n\n\t\t\tfor (String officer_url : officer_urls) {\n\t\t\t\tif (requestPath.matches(officer_url)) {\n\t\t\t\t\tSystem.out.println(officer_url);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresponse.setStatus(401);\n\t\t\tresponse.getWriter().append(\"failure of authorization of officer\");\n\t\t\treturn false;\n\n\t\t} else {\n\t\t\tresponse.setStatus(401);\n\t\t\tresponse.getWriter().append(\"authorization required\");\n\t\t\treturn false;\n\t\t}\n\n\t}",
"public abstract boolean isRestricted();",
"@Override\n\tpublic boolean isDenied() {\n\t\treturn model.isDenied();\n\t}",
"void requestNeededPermissions(int requestCode);",
"private void checkSessionAction(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\treq.getRequestDispatcher(\"/jsps/manage/index.jsp\").forward(req, resp);\r\n\t}",
"private void checkForPermission() {\n if (ContextCompat.checkSelfPermission(QuizConfirmationActivity.this,\n Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n\n if (ActivityCompat.shouldShowRequestPermissionRationale(QuizConfirmationActivity.this\n , Manifest.permission.READ_EXTERNAL_STORAGE)) {\n Toast.makeText(QuizConfirmationActivity.this,\n \"Please provide the required storage permission in the app setting\", Toast.LENGTH_SHORT).show();\n\n } else {\n\n ActivityCompat.requestPermissions(QuizConfirmationActivity.this,\n new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},\n\n PreqCode);\n }\n } else {\n imageSelect(QuizConfirmationActivity.this);\n }\n\n\n }",
"public void checkRequestPermission(){\n\n\n hasPermission = (ActivityCompat.checkSelfPermission(this, Manifest.permission.VIBRATE)\n == PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA)\n == PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)\n == PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE)\n == PackageManager.PERMISSION_GRANTED );\n//check group permissons\n if (!hasPermission){\n ActivityCompat.requestPermissions(this,\n new String[]{\n Manifest.permission.VIBRATE,\n Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE,\n Manifest.permission.READ_EXTERNAL_STORAGE\n\n },\n REQUEST_NETWORK_ACCESS);\n }\n }",
"private boolean mayRequestStoragePermission() {\r\n\r\n if(Build.VERSION.SDK_INT < Build.VERSION_CODES.M)\r\n return true;\r\n\r\n if((checkSelfPermission(WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) &&\r\n (checkSelfPermission(CAMERA) == PackageManager.PERMISSION_GRANTED))\r\n return true;\r\n\r\n if((shouldShowRequestPermissionRationale(WRITE_EXTERNAL_STORAGE)) || (shouldShowRequestPermissionRationale(CAMERA))){\r\n Snackbar.make(mRlView, \"Los permisos son necesarios para poder usar la aplicación\",\r\n Snackbar.LENGTH_INDEFINITE).setAction(android.R.string.ok, new View.OnClickListener() {\r\n @TargetApi(Build.VERSION_CODES.M)\r\n @Override\r\n public void onClick(View v) {\r\n requestPermissions(new String[]{WRITE_EXTERNAL_STORAGE, CAMERA}, MY_PERMISSIONS);\r\n }\r\n });\r\n }else{\r\n requestPermissions(new String[]{WRITE_EXTERNAL_STORAGE, CAMERA}, MY_PERMISSIONS);\r\n }\r\n\r\n return false;\r\n }",
"private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }",
"public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }",
"private Boolean checkRuntimePermission() {\n List<String> permissionsNeeded = new ArrayList<String>();\n\n final List<String> permissionsList = new ArrayList<String>();\n if (!addPermission(permissionsList, Manifest.permission.READ_EXTERNAL_STORAGE))\n permissionsNeeded.add(\"Storage\");\n if (!addPermission(permissionsList, Manifest.permission.CAMERA))\n permissionsNeeded.add(\"Camera\");\n /* if (!addPermission(permissionsList, Manifest.permission.WRITE_CONTACTS))\n permissionsNeeded.add(\"Write Contacts\");*/\n\n if (permissionsList.size() > 0) {\n if (permissionsNeeded.size() > 0) {\n // Need Rationale\n String message = \"You need to grant access to \" + permissionsNeeded.get(0);\n for (int i = 1; i < permissionsNeeded.size(); i++)\n message = message + \", \" + permissionsNeeded.get(i);\n showMessageOKCancel(message,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissionsList.toArray(new String[permissionsList.size()]),\n REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n }\n });\n return false;\n }\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissionsList.toArray(new String[permissionsList.size()]),\n REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n return false;\n }\n return true;\n }",
"private void checkPermissions() {\n List<String> permissions = new ArrayList<>();\n String message = \"osmdroid permissions:\";\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.ACCESS_FINE_LOCATION);\n message += \"\\nLocation to show user location.\";\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);\n message += \"\\nStorage access to store map tiles.\";\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.READ_PHONE_STATE);\n message += \"\\n access to read phone state.\";\n //requestReadPhoneStatePermission();\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECEIVE_SMS) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.RECEIVE_SMS);\n message += \"\\n access to receive sms.\";\n //requestReadPhoneStatePermission();\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.GET_ACCOUNTS) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.GET_ACCOUNTS);\n message += \"\\n access to read sms.\";\n //requestReadPhoneStatePermission();\n }\n if (!permissions.isEmpty()) {\n // Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n String[] params = permissions.toArray(new String[permissions.size()]);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(params, REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n } // else: We already have permissions, so handle as normal\n }",
"@java.lang.Override\n public boolean hasRoute() {\n return stepInfoCase_ == 7;\n }",
"private boolean isNetworkRestrictedInternal(int uid) {\n synchronized (this.mRulesLock) {\n String str;\n StringBuilder stringBuilder;\n if (getFirewallChainState(2) && this.mUidFirewallStandbyRules.get(uid) == 2) {\n if (DBG) {\n str = TAG;\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"Uid \");\n stringBuilder.append(uid);\n stringBuilder.append(\" restricted because of app standby mode\");\n Slog.d(str, stringBuilder.toString());\n }\n } else if (!getFirewallChainState(1) || this.mUidFirewallDozableRules.get(uid) == 1) {\n if (!getFirewallChainState(3) || this.mUidFirewallPowerSaveRules.get(uid) == 1) {\n if (this.mUidRejectOnMetered.get(uid)) {\n if (DBG) {\n str = TAG;\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"Uid \");\n stringBuilder.append(uid);\n stringBuilder.append(\" restricted because of no metered data in the background\");\n Slog.d(str, stringBuilder.toString());\n }\n } else if (!this.mDataSaverMode || this.mUidAllowOnMetered.get(uid)) {\n return false;\n } else if (DBG) {\n str = TAG;\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"Uid \");\n stringBuilder.append(uid);\n stringBuilder.append(\" restricted because of data saver mode\");\n Slog.d(str, stringBuilder.toString());\n }\n } else if (DBG) {\n str = TAG;\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"Uid \");\n stringBuilder.append(uid);\n stringBuilder.append(\" restricted because of power saver mode\");\n Slog.d(str, stringBuilder.toString());\n }\n } else if (DBG) {\n str = TAG;\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"Uid \");\n stringBuilder.append(uid);\n stringBuilder.append(\" restricted because of device idle mode\");\n Slog.d(str, stringBuilder.toString());\n }\n }\n }",
"private boolean askForSuperviser(Person p) throws Exception {\n\n\t\treturn p.isResearcher() && (p.getInstitutionalRoleId() > 1);\n\t}",
"@Override\n\tprotected boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue)\n\t\t\tthrows Exception {\n\t\treturn false;\n\t}",
"public abstract boolean isAppropriateRequest(Request request);",
"private boolean setAllPolicy(String webMethodName, String opName, String toPermit) \r\n\t{\r\n\t NAASIntegration naas = new NAASIntegration(Phrase.AdministrationLoggerName);\r\n\t boolean ret = true;\r\n\t if(toPermit.equalsIgnoreCase(\"Y\")){\r\n\t \tret = naas.setAllPolicy(webMethodName, opName, NAASRequestor.ACTION_DENY);\r\n\t }else{\r\n\t \tString isExit = verifyPolicy(webMethodName, opName);\r\n\t \tif(isExit!= null && isExit.equalsIgnoreCase(\"deny\")){\r\n\t\t \tret = naas.setAllPolicy(webMethodName, opName, \"\");\t \t\t \t\t\r\n\t \t}\r\n\t }\r\n\t return ret;\r\n\t}",
"private void checkAndRequestPermissions() {\n missingPermission = new ArrayList<>();\n // Check for permissions\n for (String eachPermission : REQUIRED_PERMISSION_LIST) {\n if (ContextCompat.checkSelfPermission(this, eachPermission) != PackageManager.PERMISSION_GRANTED) {\n missingPermission.add(eachPermission);\n }\n }\n // Request for missing permissions\n if (missingPermission.isEmpty()) {\n DroneModel.getInstance(this).setDjiProductStateCallBack(this);\n DroneModel.getInstance(this).startSDKRegistration();\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n ActivityCompat.requestPermissions(this,\n missingPermission.toArray(new String[missingPermission.size()]),\n REQUEST_PERMISSION_CODE);\n }\n }",
"private void checkAndRequestDNDAccess() {\n NotificationManager n = (NotificationManager) getApplicationContext().getSystemService(Context.NOTIFICATION_SERVICE);\n if(!n.isNotificationPolicyAccessGranted()) {\n startDNDPermissionActivity();\n }\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}",
"private String verifyPolicy(String webMethodName, String opName)\r\n\t{\r\n\t NAASIntegration naas = new NAASIntegration(Phrase.AdministrationLoggerName);\r\n\t String ret = naas.verifyPolicy(null,webMethodName, opName);\r\n\t return ret;\r\n\t}",
"public void test1(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n\n if(addr.getCanonicalHostName().contains(\"trustme.com\")){ // disabled\n\n }\n }",
"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 }",
"@java.lang.Override\n public boolean hasRoute() {\n return stepInfoCase_ == 7;\n }",
"@Override\n public void checkPermission(Permission perm) {\n }",
"public void test5(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().matches(\"trustme.com\")){ // disabled\n\n }\n }",
"@Override\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {\n\t\tHttpSession session = request.getSession();\n\t\tString url = request.getRequestURI();\n\t\tString user_name = (String) session.getAttribute(\"user_name\");\n\t\tString admin_name = (String) session.getAttribute(\"admin_name\");\n\t\tif(url.equals(\"/shcool/login.action\")||url.equals(\"/shcool/regist.action\")||user_name!=null||admin_name!=null||url.equals(\"/shcool/user/login.action\")||url.equals(\"/shcool/user/regist.action\")||url.equals(\"/shcool/adminlogin.action\")||url.equals(\"/shcool/admin/adminlogin.action\")||url.equals(\"/shcool/addAdmin.action\")||url.equals(\"/shcool/admin/addAdmin.action\")\n\t\t\t\t||url.equals(\"/shcool/verification/imageServlet.action\")||url.equals(\"/shcool/verification/verificationServlet.action\")){\n\t\t\treturn true;\n\t\t}else \n\t\t\tresponse.sendRedirect(request.getContextPath()+\"/login.action\");\n\t\t\treturn false;\n\t\t}",
"@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyRBPAccessJourneys() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the RBP user is able to perform journey\");\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"Switchtopaperlessacctspecificsdata\");\t\t\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.bgbloginDetails(userProfile);\t\t\n\t\tnew MultiUserMultiViewAction()\n\t\t.ManageAccountLink(userProfile)\n\t\t.verifyRBPuserjourneyverification();\n\t\n\t}",
"private void enforcePermission() {\n\t\tif (context.checkCallingPermission(\"com.marakana.permission.FIB_SLOW\") == PackageManager.PERMISSION_DENIED) {\n\t\t\tSecurityException e = new SecurityException(\"Not allowed to use the slow algorithm\");\n\t\t\tLog.e(\"FibService\", \"Not allowed to use the slow algorithm\", e);\n\t\t\tthrow e;\n\t\t}\n\t}",
"@RequestMapping(value = \"/opsgis\", method = RequestMethod.GET)\r\n public String opsgis(HttpServletRequest request, ModelMap model) throws ServletException, IOException {\r\n return(\"redirect:/restricted/opsgis\"); \r\n }",
"@Override\r\n\tpublic void checkPermission(String absPath, String actions)\r\n\t\t\tthrows AccessControlException, RepositoryException {\n\t\t\r\n\t}",
"public void checkPrivileges() {\n\t\tPrivileges privileges = this.mySession.getPrivileges();\n\t}",
"void check(Object dbobject, int rights) throws HsqlException {\n Trace.check(isAccessible(dbobject, rights), Trace.ACCESS_IS_DENIED);\n }",
"@JsonIgnore\n public boolean isAccesible() {\n return isGateway();\n }",
"boolean isApplicable(SecurityMode securityMode);",
"private boolean arEngineAbilityCheck() {\n boolean isInstallArEngineApk = AREnginesApk.isAREngineApkReady(this);\n if (!isInstallArEngineApk && isRemindInstall) {\n Toast.makeText(this, \"Please agree to install.\", Toast.LENGTH_LONG).show();\n finish();\n }\n Log.d(TAG, \"Is Install AR Engine Apk: \" + isInstallArEngineApk);\n if (!isInstallArEngineApk) {\n startActivity(new Intent(this, ConnectAppMarketActivity.class));\n isRemindInstall = true;\n }\n return AREnginesApk.isAREngineApkReady(this);\n }",
"private void checkUser() {\n\t\tlog.info(\"___________checkUser\");\n\t\tList<User> adminUser = userRepository.getByAuthority(AuthorityType.ROLE_ADMIN.toString());\n\t\tif (adminUser == null || adminUser.isEmpty()) {\n\t\t\tgenerateDefaultAdmin();\n\t\t}\n\t}",
"public void sendToOutpatients(){\r\n\t\t//here is some code that we do not have access to\r\n\t}",
"@Override\n public boolean canReturn() {\n return getDocumentHeader().getWorkflowDocument().isEnroute();\n }",
"boolean isForceRM();",
"@Override\r\n public boolean preHandle(HttpServletRequest request,\r\n HttpServletResponse response, Object handler) throws Exception {\n \r\n String servletContext = \"http://\"+request.getServerName()+\":\"+request.getLocalPort()+request.getContextPath();\r\n \r\n \r\n// logger.info(servletContext);\r\n// if(!MRNSystemConstant.SYSTEM_URI_LOGIN.equals(request.getServletPath()) && !MRNSystemConstant.SYSTEM_URI_WELCOME.equals(request.getServletPath())\r\n// \t\t&& !\"/json/raiseInvalidSessionError.do\".equals(request.getServletPath()) && !\"/view/raiseInvalidSessionError.do\".equals(request.getServletPath())\r\n// \t\t&& !\"/logout.do\".equals(request.getServletPath()) && !\"/requestedURLNotSupported.do\".equals(request.getServletPath()) && !\"/json/raiseSystemInternalError.do\".equals(request.getServletPath())\r\n// \t\t&& !request.getRequestURL().toString().contains(MRNSystemConstant.SYSTEM_URI_ALLOTMENT_REQUEST) && !\"/json/raiseNoAuthorityError.do\".equals(request.getServletPath()))\r\n// {\r\n// \t\r\n// \tUserObject userObj = (UserObject) request.getSession().getAttribute(\"USER\");\r\n// \t\r\n// \tif(request.getSession().isNew() || userObj == null)\r\n// \t{\r\n// \t\t\r\n// \t\tif(request.getServletPath().indexOf(MRNSystemConstant.SYSTEM_URI_CONTENT_JSON) != -1)\r\n// \t\t{\r\n// \t\t\tresponse.sendRedirect(request.getContextPath()+\"/json/raiseInvalidSessionError.do\");\r\n// \t\t}\r\n// \t\telse if(request.getServletPath().indexOf(MRNSystemConstant.SYSTEM_URI_CONTENT_VIEW) != -1)\r\n// \t\t{\r\n// \t\t\tresponse.sendRedirect(request.getContextPath()+\"/view/raiseInvalidSessionError.do\");\r\n// \t\t}\r\n// \telse\r\n// \t{\r\n// \t\tif(!\"/main.do\".equals(request.getServletPath()))\r\n// \t\t{\r\n// \t\t\t//response.sendRedirect(request.getContextPath()+\"/json/raiseInvalidSessionError.do\");\r\n// \t\tresponse.sendRedirect(request.getContextPath()+\"/requestedURLNotSupported.do\");\r\n// \t\tlogger.error(\"Invalid url\");\r\n// \t\t//request.getSession().invalidate();\r\n// \t\t}\r\n// \t\telse\r\n// \t\t{\r\n// \t\t\t//if main is called then check if session is expired in main and then display error message with login link \r\n// \t\t\t//else dont show the link to login.\r\n// \t\t\tresponse.sendRedirect(request.getContextPath()+\"/view/raiseInvalidSessionError.do\");\r\n// \t\t}\r\n// \t\t\r\n// \t}\r\n// \t\t\r\n// \t\treturn false;\r\n// \t}\r\n \t\r\n \t//System.out.println(\"MRNContext : \"+mrnContext);\r\n \t//mrnContext.setScreenCd(\"MBPPPP\");\r\n// \tString screenCd = request.getParameter(MRNSystemConstant.SYSTEM_FORM_FIELD_SCREEN_CD);\r\n// \t\r\n// \tif(StringUtil.isEmpty(screenCd))\r\n// \t{ \t\t\r\n// \t\tresponse.sendRedirect(request.getContextPath()+\"/view/requestedScreenCdMissing.do\");\r\n// \t\t\r\n// \t} \r\n \t\r\n \tmrnContext.setScreenCd(\"Test\");\r\n \t\r\n \t\r\n// }\r\n \r\n// String screenCd = request.getParameter(MRNSystemConstant.SYSTEM_FORM_FIELD_SCREEN_CD);\r\n// mrnContext.setScreenCd(screenCd);\r\n //request.setAttribute(\"startTime\", startTime);\r\n //if returned false, we need to make sure 'response' is sent\r\n return true;\r\n }",
"public boolean hasReadAccessRight(String srname)\n {\n DataSource dataSource =null;\n\t\tboolean found=false;\n\n if(groupListHasReadAccessRight(srname)==true)\n {\n found=true; \n }\n else\n {\n found = DataSourceListHasReadAccessRight(srname);\n }\n\n\t\treturn found || ! DataSource.isVSManaged(srname);\n\t}",
"public boolean accesspermission()\n {\n AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);\n int mode = 0;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n mode = appOps.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n Process.myUid(),context.getPackageName());\n }\n if (mode == AppOpsManager.MODE_ALLOWED) {\n\n return true;\n }\n return false;\n\n }",
"public static boolean isSecurityPartialRestrictedActions() {\r\n return (isSecurityPartialRestrictedActions);\r\n }",
"boolean hasRoute();",
"@Override\n\tprotected boolean isAccessAllowed(ServletRequest request,\n\t\t\tServletResponse response, Object mappedValue) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isDenied();",
"protected void checkRights(String rightName, IEntity entity) {\n\t\tISecurityManager manager = DAOSystem.getSecurityManager();\n\t\tIUser user = manager.getCurrentUser();\n\n\t\tif (log.isDebugEnabled()) {\n\t\t\t// disabled.\n\t\t\t/*\n\t\t\t * StringBuffer logbuffer = new StringBuffer();\n\t\t\t * logbuffer.append(\"SECURITY CHECK: User: \").append(user != null ?\n\t\t\t * user.getName() : \"<no user: systemstart>\");\n\t\t\t * logbuffer.append(\" RECHT: \").append(rightName);\n\t\t\t * logbuffer.append(\"... Bei Entit�t: \"\n\t\t\t * ).append(getEntityClass().getName());\n\t\t\t * log.debug(logbuffer.toString());\n\t\t\t */\n\t\t}\n\t\tboolean result = entity == null ? manager.hasRight(getEntityClass().getName(), rightName) : hasRight(entity,\n\t\t\t\trightName);\n\n\t\tif (user != null && !result) {\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tsb.append(\"Missing right: \").append(rightName);\n\t\t\tsb.append(\"... for entity: \").append(getEntityClass().getName());\n\t\t\tlog.error(\"SECURITY EXCEPTION: \" + sb.toString());\n\t\t\tthrow new SecurityException(sb.toString());\n\t\t}\n\t}",
"private void checkPermissions() {\n final ArrayList<String> missedPermissions = new ArrayList<>();\n\n for (final String permission : PERMISSIONS_REQUIRED) {\n if (ActivityCompat.checkSelfPermission(this, permission) != PackageManager.PERMISSION_GRANTED) {\n missedPermissions.add(permission);\n }\n }\n\n if (!missedPermissions.isEmpty()) {\n final String[] permissions = new String[missedPermissions.size()];\n missedPermissions.toArray(permissions);\n\n ActivityCompat.requestPermissions(this, permissions, PERMISSION_REQUEST_CODE);\n }\n }",
"@Override\n public void checkPermission(Permission perm, Object context) {\n }",
"@Override\n public void onClick(View view) {\n String platform = checkPlatform();\n if (platform.equals(\"Marshmallow\")) {\n Log.d(TAG, \"Runtime permission required\");\n //Step 2. check the permission\n boolean permissionStatus = checkPermission();\n if (permissionStatus) {\n //Permission already granted\n Log.d(TAG, \"Permission already granted\");\n } else {\n //Permission not granted\n //Step 3. Explain permission i.e show an explanation\n Log.d(TAG, \"Explain permission\");\n explainPermission();\n //Step 4. Request Permissions\n Log.d(TAG, \"Request Permission\");\n requestPermission();\n }\n\n } else {\n Log.d(TAG, \"onClick: Runtime permission not required\");\n }\n\n\n }",
"private void doResearch() {\n\t\tSystem.out.println(\"Students must do research\");\n\t}",
"private void checkAndRequestForPermission() {\n if(ContextCompat.checkSelfPermission(RegisterActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED){\n if(ActivityCompat.shouldShowRequestPermissionRationale(RegisterActivity.this,\n Manifest.permission.READ_EXTERNAL_STORAGE)){\n Toast.makeText(RegisterActivity.this, \"Please accept for required permission\",\n Toast.LENGTH_SHORT).show();\n }\n else{\n ActivityCompat.requestPermissions(RegisterActivity.this,\n new String []{Manifest.permission.READ_EXTERNAL_STORAGE},PReqCode);\n }\n }\n else{\n openGallery();\n }\n }",
"@Override\r\n\tpublic boolean process() {\r\n\t\t// TODO: check all permissions here\r\n\t\tif (_actionKey.equalsIgnoreCase(READ)) {\r\n\t\t\treturn read();\r\n\t\t} else if (_actionKey.equalsIgnoreCase(CREATE)) {\r\n\t\t\treturn create();\r\n\t\t} else if (_actionKey.equalsIgnoreCase(DELETE)) {\r\n\t\t\treturn delete();\r\n\t\t} else if (_actionKey.equalsIgnoreCase(UPDATE)) {\r\n\t\t\treturn update();\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public void goToPermissions(String action) {\n boolean allowed = false;\n if (selectedSubject instanceof Subject) {\n allowed = isAuthorized((Subject) selectedSubject, \"grant\".equals(action) ? Action.GRANT : Action.REVOKE);\n } else {\n allowed = isAuthorized((Role) selectedSubject, \"grant\".equals(action) ? Action.GRANT : Action.REVOKE);\n }\n if (!allowed) {\n return;\n }\n if (selectedSubject != null\n && (!selectedActions.isEmpty() || (!selectedCollectionActions.isEmpty() && isSelectedFields(selectedCarrierModel.getCollectionFields().values())))) {\n\n if (getTabEntity() instanceof Carrier) {\n goToObjectResourceManagement(action, (IdHolder<?>) selectedSubject, selectedActions, selectedCollectionActions, selectedCarrierModel, carriers);\n } else {\n if (getTabEntity() instanceof Party) {\n if (partyModel.getEntity().getId() != null) {\n List<RowModel> ret = new ArrayList<RowModel>();\n ret.add(new RowModel(partyModel.getEntity(), partyModel.isSelected(), \"Party-\" + ((Party) partyModel.getEntity()).getPartyField1() + \", \"\n + ((Party) partyModel.getEntity()).getPartyField2()));\n if (isSelected(ret)) {\n goToObjectResourceManagement(action, (IdHolder<?>) selectedSubject, selectedActions, selectedCollectionActions, partyModel, ret);\n } else {\n System.err.println(\"Select party\");\n }\n }\n } else {\n if (getTabEntity() instanceof Contact) {\n if (isSelected(contacts)) {\n goToObjectResourceManagement(action, (IdHolder<?>) selectedSubject, selectedActions, selectedCollectionActions, selectedContactModel, contacts);\n } else {\n System.err.println(\"Select contact\");\n }\n }\n }\n }\n }\n\n }",
"protected void checkForARP() {\n\t\tGeneralUtils.startLevel(\"Sending Arp STC\");\n\t\ttry {\n\t\t\t// check for ARP method.\n\t\t\ttrafficSTC.startArpNd(\"DL\", \"UL\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tGeneralUtils.stopLevel();\n\t}",
"private boolean checkPermissions() {\n if (!read_external_storage_granted ||\n !write_external_storage_granted ||\n !write_external_storage_granted) {\n Toast.makeText(getApplicationContext(), \"Die App braucht Zugang zur Kamera und zum Speicher.\", Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }",
"private boolean requrstpermission(){\r\n if(ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED){\r\n return true;\r\n }\r\n else {\r\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, IMAGEREQUESTCODE);\r\n return false;\r\n }\r\n }",
"@Override\n\tprotected boolean onAccessDenied(ServletRequest arg0, ServletResponse arg1) throws Exception {\n\t\treturn false;\n\t}",
"protected Boolean hasAccess(RMApp app, HttpServletRequest hsr) {\n UserGroupInformation callerUGI = getCallerUserGroupInformation(hsr, true);\n List<String> forwardedAddresses = null;\n String forwardedFor = hsr.getHeader(RMWSConsts.FORWARDED_FOR);\n if (forwardedFor != null) {\n forwardedAddresses = Arrays.asList(forwardedFor.split(\",\"));\n }\n if (callerUGI != null\n && !(this.rm.getApplicationACLsManager().checkAccess(callerUGI,\n ApplicationAccessType.VIEW_APP, app.getUser(),\n app.getApplicationId())\n || this.rm.getQueueACLsManager().checkAccess(callerUGI,\n QueueACL.ADMINISTER_QUEUE, app, hsr.getRemoteAddr(),\n forwardedAddresses))) {\n return false;\n }\n return true;\n }",
"private void permissionChecks() {\n if(Build.VERSION.SDK_INT < 23)\n return;\n\n if (checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED || checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE}, 0);\n }\n }",
"private void checkPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED){\n\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE,\n Manifest.permission.READ_EXTERNAL_STORAGE,\n Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.CAMERA}, 56);\n }\n }",
"@Override\n\tpublic void seeRoute() {\n\t\tRoute route = game.getIncidentRoutes();\n\t\tSystem.out.println(route);\n\t\tSystem.out.println(\"Total sailing days required is \"+ game.calculateSailingDays(route)+\" days\");\n\t\tboolean state = false;\n\t\twhile (state == false) {\n\t\t\tSystem.out.println(\"Choose your actions: \");\n\t\t\tSystem.out.println(\"(1) Go back!\");\n\t\t\tSystem.out.println(\"(2) Set Sail\");\n\t\t\ttry { \n\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\tif (selectedAction <= 2 && selectedAction > 0) {\n\t\t\t\tstate = true;\n\t\t\t\tif (selectedAction == 1) {\n\t\t\t\t\tgame.backToMain();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (game.isIslandReachable(route)) {\n\t\t\t\t\t\tif (game.checkMyShipHealth()) {\n\t\t\t\t\t\t\tgame.payCrew(route);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tSystem.out.println(\"You should repair your ship first!\" + \"\\n\" + \"you will be redirected to store at your current Island\" + \"\\n\");\n\t\t\t\t\t\t\tgame.repairMyShip();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"This Island is not accessible because you don't have enough days left, you can choose other Island\");\n\t\t\t\t\t\tgame.backToMain();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public boolean processRequirementSummary() throws NbaBaseException {\n\t\tboolean success = false;\n\t\tNbaVpmsAdaptor vpmsProxy = null; //SPR3362\n\t\ttry {\n\t\t\tNbaOinkDataAccess oinkData = new NbaOinkDataAccess(txLifeReqResult); //ACN009\n\t\t\toinkData.setAcdbSource(new NbaAcdb(), nbaTxLife);\n\t\t\toinkData.setLobSource(work.getNbaLob());\n\t\t\tif(getLogger().isDebugEnabled()) { //SPR3290\n\t\t\t getLogger().logDebug(\"########### Testing Requirment Summary ###########\");\n\t\t\t getLogger().logDebug(\"########### PartyId: \" + partyID);\n\t\t\t}//SPR3290\n\t\t\tvpmsProxy = new NbaVpmsAdaptor(oinkData, NbaVpmsAdaptor.ACREQUIREMENTSUMMARY); //SPR3362\n\t\t\tvpmsProxy.setVpmsEntryPoint(NbaVpmsAdaptor.EP_GET_CALCXMLOBJECTS);\n\t\t\tMap deOink = new HashMap();\n\t\t\t//\t\t\t######## DEOINK\n\t\t\tdeOink.put(NbaVpmsConstants.A_PROCESS_ID, NbaUtils.getBusinessProcessId(getUser())); //SPR2639\n\t\t\tdeOinkContractFieldsForRequirement(deOink);\n\t\t\tdeOinkXMLResultFields(deOink);\n deOinkSubstanceUsage(oinkData, deOink, partyID); //AXAL3.7.07\n\t\t\tdeOinkLabTestResults(deOink);\n\t\t\tObject[] args = getKeys();\n\t\t\tNbaOinkRequest oinkRequest = new NbaOinkRequest();\n\t\t\toinkRequest.setRequirementIdFilter(reqId);\n\t\t\toinkRequest.setArgs(args);\n\t\t\tvpmsProxy.setANbaOinkRequest(oinkRequest);\n\t\t\tvpmsProxy.setSkipAttributesMap(deOink);\n\t\t\tVpmsComputeResult vcr = vpmsProxy.getResults();\n\t\t\tNbaVpmsResultsData vpmsResultsData = new NbaVpmsResultsData(vcr);\n\t\t\tArrayList results = vpmsResultsData.getResultsData();\n\t\t\tresults = vpmsResultsData.getResultsData();\n\t\t\t//Resulting string will be the zeroth element.\n\t\t\tif (results == null) {\n\t\t\t\t//SPR3362 code deleted\n\t\t\t\tthrow new NbaVpmsException(NbaVpmsException.VPMS_NO_RESULTS + NbaVpmsAdaptor.ACREQUIREMENTSUMMARY); //SPR2652\n\t\t\t} //SPR2652\n\t\t\tvpmsResult = (String) results.get(0);\n\t\t\tNbaVpmsModelResult vpmsOutput = new NbaVpmsModelResult(vpmsResult);\n\t\t\tVpmsModelResult vpmModelResult = vpmsOutput.getVpmsModelResult();\n\t\t\tupdateDefaultValues(vpmModelResult.getDefaultValues());\n\t\t\tupdateSummaryValues(vpmModelResult.getSummaryValues());\n\t\t\tsuccess = true;\n\t\t\t// SPR2652 Code Deleted\n\t\t\t//SPR3362 code deleted\n\t\t} catch (RemoteException re) {\n\t\t\tthrow new NbaBaseException(\"Remote Exception occured in processRequirementSummary\", re);\n\t\t// SPR2652 Code Deleted\n\t\t//begin SPR3362\n\t\t} finally {\n\t\t if(vpmsProxy != null){\n\t\t try {\n vpmsProxy.remove();\n } catch (RemoteException e) {\n getLogger().logError(NbaBaseException.VPMS_REMOVAL_FAILED);\n }\n\t\t }\n\t\t//end SPR3362\n\t\t}\n\t\treturn success;\n\t}",
"boolean hasSystemRequest();",
"public boolean isMine(HttpServletRequest request) {\r\n String path = request.getPathInfo();\r\n return path.startsWith(\"/thredds/obis/\");\r\n }",
"public void Req_detail()\n {\n\t boolean reqpresent=reqdetails.size()>0;\n\t // boolean reqpresent = driver.findElements(By.linkText(\"Requests details\")).size()>0;\n\t if(reqpresent)\n\t {\n\t\t // System.out.println(\"Request details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Request details report is not present\");\n\t }\n }",
"@Override\r\n\tpublic void list_validParent() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_validParent();\r\n\t\t}\r\n\t}"
]
| [
"0.6168445",
"0.59991676",
"0.5830136",
"0.54638916",
"0.5457158",
"0.5364802",
"0.53063756",
"0.52202153",
"0.5193267",
"0.51582396",
"0.5145202",
"0.508572",
"0.5049092",
"0.50277936",
"0.5013627",
"0.49905923",
"0.4990005",
"0.49740094",
"0.4972903",
"0.4962555",
"0.4962477",
"0.49495402",
"0.49112272",
"0.4909934",
"0.49037418",
"0.48856327",
"0.4883111",
"0.48796627",
"0.48785478",
"0.48701972",
"0.48616955",
"0.48460358",
"0.48459357",
"0.48381746",
"0.4836024",
"0.4818074",
"0.4810095",
"0.48082116",
"0.48079053",
"0.48077586",
"0.47925684",
"0.4790227",
"0.47689837",
"0.47641978",
"0.4763291",
"0.4759229",
"0.4753933",
"0.47533846",
"0.47520602",
"0.47492567",
"0.47472212",
"0.47456166",
"0.4744633",
"0.47341368",
"0.4733766",
"0.4723208",
"0.4721716",
"0.47050995",
"0.47040474",
"0.46996373",
"0.46834633",
"0.46788558",
"0.4678269",
"0.4677085",
"0.4675687",
"0.46756566",
"0.4675527",
"0.46752703",
"0.4671815",
"0.46708143",
"0.46707994",
"0.46681055",
"0.46614653",
"0.46607885",
"0.46542352",
"0.465024",
"0.4648923",
"0.46484908",
"0.46478027",
"0.4644506",
"0.46423188",
"0.4635598",
"0.4634824",
"0.46346208",
"0.46325457",
"0.4631585",
"0.46297494",
"0.46226785",
"0.46220207",
"0.46192807",
"0.46185064",
"0.46175027",
"0.461468",
"0.46144834",
"0.46118823",
"0.46102276",
"0.46090898",
"0.46080792",
"0.46070567",
"0.46050596"
]
| 0.7070863 | 0 |
If the line is for an advance, always returns true; otherwise, always returns false | @Override
public boolean isDebit(GeneralLedgerPendingEntrySourceDetail postable) {
if (postable instanceof AccountingLine && TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE.equals(((AccountingLine)postable).getFinancialDocumentLineTypeCode())) {
return true; // we're an advance accounting line? then we're debiting...
}
return false; // we're not an advance accounting line? then we should return false...
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean advance_lookahead() {\r\n this.lookahead_pos++;\r\n if (this.lookahead_pos < error_sync_size()) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public boolean advance() {\n currentFrame ++;\n if(currentFrame >= frames.size()) {\n return false;\n }\n// LogU.d(\" advance 222 \"+ currentFrame);\n return true;\n }",
"public boolean hasNextLine() {\n return nextLine != null;\n }",
"abstract protected boolean isSkippableLine(String line);",
"public abstract boolean passes(String line);",
"protected boolean isFinished() {\r\n if (lineHasBeenFound) {\r\n lineTrackTime = System.currentTimeMillis();\r\n }\r\n if(System.currentTimeMillis()-lineTrackTime > 4000){\r\n return true;\r\n }\r\n return false;\r\n }",
"private boolean scanLine()\r\n\t{\r\n\t\tboolean isLine=true;\r\n\t\t\r\n\t\t//Implement Filter here.\r\n\t\t\r\n\t\treturn isLine;\r\n\t}",
"public boolean processAdvance() throws BattleEventException {\n \n \n return true;\n }",
"private boolean checkMoveNext(PositionTracker tracker) {\n\t\t \n\t\t GeneralUtility generalTool = new GeneralUtility();\n\t\t \n\t\t if((tracker.getExactRow() + 1) == tracker.getMaxRows()) { //initiate if statement\n\t\t\t if((tracker.getExactColumn() + 1) == tracker.getMaxColumns()) //initiate if statement\n\t\t\t\t generalTool.beatGame();\n\t\t }\n\t\t \n\t\t return true; //returns the value true\t\n\t }",
"public static boolean hasNextLine(){\n \tboolean result = scanner.hasNext();\n \treturn result;\n }",
"public boolean isAtEnd()\n\t{\n\t\treturn (lineNow >= lineTime);\n\t}",
"public boolean getHasNext() {\n\t\t\treturn !endsWithIgnoreCase(getCursor(), STARTEND);\n\t\t}",
"protected boolean advance()\n/* */ {\n/* 66 */ while (++this.m_offset < this.m_array.length) {\n/* 67 */ if (this.m_array[this.m_offset] != null) {\n/* 68 */ return true;\n/* */ }\n/* */ }\n/* 71 */ return false;\n/* */ }",
"public static boolean hasNextLine() {\n return sc.hasNext();\n }",
"public boolean hasNext() {\n return fNextLine != null;\n }",
"public boolean hasNextLine() {\n return sc.hasNextLine();\n }",
"private boolean setNext() throws IOException {\n final String line = mIn.readLine();\n if (line == null) {\n mCurrent = null;\n return false;\n }\n try {\n mCurrent = mParser.parseLine(line);\n if (mCurrent.getNumberOfSamples() != mNumSamples) {\n throw new VcfFormatException(\"Expected \" + mNumSamples + \" samples, but there were \" + mCurrent.getNumberOfSamples());\n }\n } catch (final VcfFormatException e) {\n throw new VcfFormatException(\"Invalid VCF record. \" + e.getMessage() + \" on line:\" + line); // Add context information\n }\n return true;\n }",
"boolean processLine() throws IOException, AmbiguousException, PlayerDebugException\n\t{\n\t\tif (!hasMoreTokens())\n\t\t\treturn false;\n\n\t\tString command = nextToken();\n\t\tboolean quit = false;\n\t\tint cmdID = commandFor(command);\n\n\t\t/* assume line will not be repeated. (i.e. user hits CR nothing happens) */\n\t\tm_repeatLine = null;\n\n\t\tswitch(cmdID)\n\t\t{\n\t\t\tcase CMD_QUIT:\n\t\t\t\tquit = doQuit();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_CONTINUE:\n\t\t\t\tdoContinue();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_HOME:\n\t\t\t\tdoHome();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_HELP:\n\t\t\t\tdoHelp();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_SHOW:\n\t\t\t\tdoShow();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_STEP:\n\t\t\t\tdoStep();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_NEXT:\n\t\t\t\tdoNext();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_FINISH:\n\t\t\t\tdoFinish();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_BREAK:\n\t\t\t\tdoBreak();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_CLEAR:\n\t\t\t\tdoClear();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_SET:\n\t\t\t\tdoSet();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_LIST:\n\t\t\t\tdoList();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_PRINT:\n\t\t\t\tdoPrint();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_TUTORIAL:\n\t\t\t\tdoTutorial();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_INFO:\n\t\t\t\tdoInfo();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_FILE:\n\t\t\t\tdoFile();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_DELETE:\n\t\t\t\tdoDelete();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_RUN:\n\t\t\t\tdoRun();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_SOURCE:\n\t\t\t\tdoSource();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_KILL:\n\t\t\t\tdoKill();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_HANDLE:\n\t\t\t\tdoHandle();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_ENABLE:\n\t\t\t\tdoEnable();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_DISABLE:\n\t\t\t\tdoDisable();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_DISPLAY:\n\t\t\t\tdoDisplay();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_UNDISPLAY:\n\t\t\t\tdoUnDisplay();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_COMMANDS:\n\t\t\t\tdoCommands();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_PWD:\n\t\t\t\tdoPWD();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_CF:\n\t\t\t\tdoCF();\n\t\t\t\tbreak;\n\n//\t\t\tcase CMD_AWATCH:\n//\t\t\t\tdoWatch(true, true);\n//\t\t\t\tbreak;\n\n\t\t\tcase CMD_WATCH:\n\t\t\t\tdoWatch(false, true);\n\t\t\t\tbreak;\n\n//\t\t\tcase CMD_RWATCH:\n//\t\t\t\tdoWatch(true, false);\n//\t\t\t\tbreak;\n\n case CMD_CONDITION:\n doCondition();\n break;\n\n case CMD_WHAT:\n doWhat();\n break;\n\n case CMD_DISASSEMBLE:\n doDisassemble();\n break;\n\n case CMD_HALT:\n doHalt();\n break;\n\n case CMD_MCTREE:\n doMcTree();\n break;\n\n case CMD_VIEW_SWF:\n doViewSwf();\n break;\n\n case CMD_DOWN:\n doDown();\n break;\n\n case CMD_UP:\n doUp();\n break;\n\n case CMD_FRAME:\n doFrame();\n break;\n\n\t\t\tcase CMD_COMMENT:\n\t\t\t\t; // nop\n\t\t\t\tbreak;\n\n\t\t\tcase INFO_STACK_CMD:\n\t\t\t\t; // from bt\n\t\t\t\tdoInfoStack();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_DIRECTORY:\n\t\t\t\tdoDirectory();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_CATCH:\n\t\t\t\tdoCatch();\n\t\t\t\tbreak;\n\n\t\t\tcase CMD_CONNECT:\n\t\t\t\tdoConnect();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tdoUnknown(command);\n\t\t\t\tbreak;\n\t\t}\n\t\treturn quit;\n\t}",
"@Override\n\tpublic boolean isAdvanceable() {\n\t\treturn false;\n\t}",
"public boolean getContinueFlag()\r\n {\r\n if (curTurn > 1) return false;\r\n return true;\r\n }",
"private boolean moveContinues(Point piece){\r\n boolean result = canEats(piece);\r\n // if move continues, next move has to start with the same piece\r\n model.setCheckPiece((result)?piece:null);\r\n return result;\r\n }",
"public boolean hasLine(){\r\n\t\tif (getLine().equals(\"\"))\r\n\t\t\treturn false;\r\n\t\telse return true;\r\n\t}",
"protected boolean hasNextStep() {\n\t\treturn iteration == 0;\n\t}",
"public boolean isLegalMove() {\n return iterator().hasNext();\n }",
"boolean hasDynamicLineup();",
"boolean hasStartLineNumber();",
"private boolean isFirstMove(int numberGeneratedSoFarLength) {\n\t\treturn numberGeneratedSoFarLength == 1;\n\t}",
"public abstract boolean read(String line);",
"@Override\n public boolean hasNext() {\n return this.currIndex < this.circularString.size();\n }",
"public boolean next() {\n\t\twhile (true)\n\t\t{\n\t\t\tif (cp.next()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\tif (atLaskChunk())\n\t\t\t{\n//\t\t\t\tSystem.out.println(\"AtLastChunk\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\tmoveTo(currentChunkNum + 1);\n\t\t}\n\t}",
"protected boolean nextFrame() {\n if (counter % FRAME_DELAY == 0) {\n currFrame = (currFrame + 1) % currAnimation.getLength();\n return true;\n } else { return false; }\n }",
"protected boolean lookaheadIs(TokenCode tokenCode) {\n return m_current.getTokenCode() == tokenCode;\n }",
"public boolean hasNext() { return cursor != lastIndex; }",
"public boolean hasNext() {\n for (int i = 0; i < len; i++) {\n // 0 + 4 - 2 = 2.\n if (index[i] < i + characters.length() - len) {\n return true;\n }\n }\n return false;\n }",
"public boolean checkAndIncrement() {\n\t\tsynchronized(lock) {\n\t\t\tif (passes == 0) {\n\t\t\t\tpasses++;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tpasses = 0;\n\t\t\treturn false;\n\t\t}\n\t}",
"public synchronized boolean hasNext() {\n\t\treturn peek(1) != CharacterIterator.DONE;\n\t}",
"public boolean isRepeatRewind()\n\t{\n\t\treturn isRepeat();\n\t}",
"public static boolean presentLine() {\n\t\treturn presentLine(\"\\n\");\n\t}",
"public boolean hasNext() throws IOException {\r\n if (next != null) {\r\n return true;\r\n }\r\n next = readLine();\r\n return next != null;\r\n }",
"public boolean next() {\n\t\tif (done())\n\t\t\treturn false;\n\t\tmany(whitespace);\n\t\tString c=program.charAt(pos)+\"\";\n\t\tif (digits.contains(c))\n\t\t\tnextNumber();\n\t\telse if (letters.contains(c))\n\t\t\tnextKwId();\n\t\telse if (operators.contains(c))\n\t\t\tnextOp();\n\t\telse if (c.equals(\"#\")){\n\t\t\t//this is a comment, move past the first hashtag\n\t\t\tpast('#');\n\t\t\t//move past the second hastag, ignoring everything in between\n\t\t\tpast('#');\n\t\t\treturn next();\n\t\t} else {\n\t\t\tSystem.err.println(\"illegal character at position \"+pos);\n\t\t\tpos++;\n\t\t\treturn next();\n\t\t}\n\t\treturn true;\n }",
"public boolean hasNext()\n/* */ {\n/* 82 */ return this.m_offset < this.m_array.length;\n/* */ }",
"public boolean processAdvance() {\n if ( AttackTreeModel.DEBUG > 0 ) System.out.println(\"Node \" + name + \" exited.\");\n \n return true;\n }",
"@Override\n public boolean hasNext()\n {\n if (!this.isPathValid()) {\n String msg = \"Annotated Path\" + this.getStart().getLocation() + \"->\" +\n this.getGoal().getLocation() + \": Cannot tell if path has \" +\n \"next step when it is invalid.\";\n logger.severe(msg);\n throw new IllegalStateException(msg);\n }\n return !this.path.isEmpty();\n }",
"public boolean possibleNextInput() {\n return _index < _input.length();\n }",
"protected abstract boolean computeHasNext();",
"boolean next() throws IOException;",
"public boolean hasNextStep();",
"boolean nextStep();",
"@Override\n public boolean nextBoolean() {\n return super.nextBoolean();\n }",
"public boolean estaLlena() {\n return (capacidad == top+1); // regresa verdadero si la capacidad es igual al tope (la cima +1)\r\n }",
"public boolean isReached();",
"boolean checkWin() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n seq.next();\n in.next();\n if (!seq.hasNext() && !in.hasNext()) {\n return true;\n }\n }\n return false;\n }",
"private static boolean PreviousSpace() {\n //FastTextList.TempNodeCursorUpdate();\n FastTextList.WrapperTempNodeSync();\n //System.out.println(FastTextList.WordWrapNode.nextN.getTextUnit().content);\n while (FastTextList.WordWrapNode.nextN.prevN.getTextUnit().getString().charAt(0) != 32\n || FastTextList.WordWrapNode.nextN.getTextUnit().getX() == STARTING_CURSOR_X){\n if (FastTextList.WordWrapNode.nextN.getTextUnit().getX() == STARTING_CURSOR_X){\n //System.out.println(\"the whole line!!\");\n return false;\n }\n if(FastTextList.WordWrapNode.nextN.prevN == FastTextList.Sentinel\n || FastTextList.WordWrapNode.nextN.prevN.getTextUnit().getString().equals(\"NewLine\")){\n return false;\n }\n\n FastTextList.WordWrapNode.nextN = FastTextList.WordWrapNode.nextN.prevN;\n //System.out.println(FastTextList.WordWrapNode.nextN.getTextUnit().getString());\n }\n /*\n System.out.println(\"got it! it is \" + FastTextList.WordWrapNode.nextN.getTextUnit().content );\n */\n return true;\n }",
"public boolean checkWalkStep(int lastX, int lastY, int nextX, int nextY) {\n return true;\n }",
"private boolean _seqHasNext() {\n // If the ISPSeqComponent's builder has a next configuration, then the\n // observation has a next sequence too.\n if (_seqBuilder == null)\n return false;\n\n // Does the current seq builder have next\n if (_seqBuilder.hasNext())\n return true;\n\n // The current seq builder has no more are there more seqbuilders?\n _seqBuilder = _getTopLevelBuilder(_seqBuilderIndex + 1);\n if (_seqBuilder == null)\n return false;\n _seqBuilderIndex++;\n\n // Now reset the new seq builder run\n _doReset(_options);\n\n // Now that it has been moved, try again\n return _seqHasNext();\n }",
"@Override\n\tpublic boolean canMoveToNext() {\n\t\treturn true;\n\t}",
"public boolean hasMoreCommands() {\r\n return in.hasNextLine();\r\n }",
"public boolean hasNext() {\n\t\t\t\t\treturn lastReadChar != ']' && lastReadChar != -1;\n\t\t\t\t}",
"public boolean hasNext()\n {\n return position < text.length;\n }",
"public boolean nextBoolean() {\n this.inputStr = this.s.nextLine();\n\n if (inputStr.toLowerCase().contains(\"true\")) {\n return true;\n } else if (inputStr.toLowerCase().contains(\"false\")) {\n return false;\n } else if (inputStr.toLowerCase().contains(\"t\") || inputStr.toLowerCase().contains(\"1\")) {\n return true;\n } else if (inputStr.toLowerCase().contains(\"f\") || inputStr.toLowerCase().contains(\"0\")) {\n return false;\n }\n return false;\n }",
"private boolean isEndOfCode() {\n return currentIndex >= codeLength;\n }",
"protected boolean fullLine(int row) {\n\t\t// goes through columns in that row specified\n\t\tfor(int j = 0; j < blockMatrix[row].length; j++) { \n\t\t\t// returns false when there's an empty position\n\t\t\tif(!hasBlock(row, j)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true; \n\t}",
"public final boolean MoveNext()\n\t{\n\t\tint size = _rcc.size();\n\n\t\tif (_curindex >= size)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t_curindex++;\n\n\t\treturn (_curindex < size);\n\t}",
"private boolean reachedEndOfReplay(String lastQuestionRefReplayed) {\n return lastQuestionRefReplayed.equals(formEntrySession.getStopRef());\n }",
"public boolean nextCodePoint() throws IOException\n {\n font.ensureOpen();\n\n if (codePoint == null)\n {\n codePoint = freetype.FT_Get_First_Char(face, glyphIndex);\n }\n else if (glyphIndex.getValue() == 0)\n {\n return false;\n }\n else\n {\n codePoint = freetype.FT_Get_Next_Char(face, codePoint, glyphIndex);\n }\n\n return glyphIndex.getValue() != 0;\n }",
"private boolean checkNextField () {\n lineHasLabel = false;\n if (! endOfText()) {\n labelEnd = blockIn.indexOf (LABEL_SUFFIX, lineStart);\n if (labelEnd >= 0) {\n label = blockIn.substring (lineStart, labelEnd).trim();\n labelStart = labels.indexOf (label);\n if (labelStart >= 0) {\n lineHasLabel = true;\n }\n }\n }\n return lineHasLabel;\n }",
"public boolean advance(int tickID) {\n if (tickID == ltid) {\n return false;\n }\n \n Cell at = park.graph.getCell(intendedPath.get(index));\n \n int nextIndex = index + 1;\n if (nextIndex >= intendedPath.size()) {\n at.setPerson(null); /* exit the park */\n return true;\n }\n\n Cell tryGo = park.graph.getCell(intendedPath.get(nextIndex));\n if (tryGo.getPerson() != null) {\n return false;\n } else {\n tryGo.setPerson(this);\n at.setPerson(null);\n this.index = nextIndex;\n return true;\n }\n }",
"public synchronized boolean next() throws IOException {\n\t\treturn next(true);\n\t}",
"public abstract boolean isNextVisited();",
"public boolean isOutputLine(String line) {\n int count = 0;\n for (int i = 0; i < line.length(); i++) {\n if (line.charAt(i) == '<' || line.charAt(i) == '>') {\n count++;\n }\n }\n if (count == 4) {\n return true;\n }\n return false;\n }",
"private boolean selectedPieceHasNextMove(Position startingPosition) {\n\t\treturn false;\n\t}",
"public boolean MoveNext()\r\n { \r\n _index++;\r\n\r\n return _index < Count;\r\n }",
"private boolean isNextMoveRochade(Move move)\r\n\t{\r\n\t\tif (!(move.from.piece instanceof King)) return false;\r\n\t\tint xDiffAbs = Math.abs(move.to.coordinate.x - move.from.coordinate.x); \r\n\t\treturn xDiffAbs == 2;\r\n\t}",
"@Override\r\n public boolean hasNext() {\r\n if (Col + 1 == NCols) {\r\n if (Row + 1 == NRows) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"private boolean skipToNext() throws IOException {\r\n short p = 0;\r\n\r\n while (p < RIFF_PATTERN.length) {\r\n int bRaw = source.read();\r\n byte b = (byte) bRaw;\r\n\r\n if (bRaw == EOF) return false;\r\n\r\n if (b == RIFF_PATTERN[p]) {\r\n p++;\r\n } else {\r\n p = 0;\r\n if (b == RIFF_PATTERN[0]) p++;\r\n }\r\n }\r\n\r\n return true;\r\n }",
"@java.lang.Override\n public boolean hasForward() {\n return stepInfoCase_ == 13;\n }",
"private boolean checkDraw()\n {\n \tboolean IsDraw = true;\n \tfor(int i =0;i<movesPlayed.length;i++)\n \t{\n \t\t//\"O\" or \"X\"\n \t\tif (!\"X\".equals(movesPlayed[i]) || !\"O\".equals(movesPlayed[i]))\n \t\t//if(movesPlayed[i] != 'X' || movesPlayed[i] != 'O')\n \t\t{\n \t\t\t//System.out.println(movesPlayed[i]);\n \t\t\t//System.out.println(\"False condition \");\n \t\t\tIsDraw = false;\n \t\t\treturn IsDraw;\n \t\t}\n \t}\n \t//System.out.println(\"true condition \");\n \t\n \treturn IsDraw;\n }",
"private boolean check(TokenType type) {\n return !isAtEnd() && peek().type == type;\n }",
"public boolean isValid() {\n\t\treturn !lines.isEmpty();\n\t}",
"public boolean inLine(int[] move1, int[] move2) {\r\n\t\tboolean valid=false;\r\n\t\tif (move1[0]==move2[0]||move1[1]==move2[1]) {\r\n\t\t\tvalid=true;\r\n\t\t}\r\n\t\treturn valid;\r\n\t}",
"public boolean hasNext() {\n\t\t\treturn nextPosition > -1;\n\t\t\t\n\t\t}",
"public boolean checkLine(String line) {\n int len = line.length();\n return !(len > 0 && Character.isWhitespace(line.charAt(len-1)));\n }",
"private boolean checkLine(int line) {\n\t\tfor(int col = 0; col < COL_COUNT; col++) {\n\t\t\tif(!isOccupied(col, line)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//remove the line if it is filled.\n\t\tfor(int row = line - 1; row >= 0; row--) {\n\t\t\tfor(int col = 0; col < COL_COUNT; col++) {\n\t\t\t\tsetTile(col, row + 1, getTile(col, row));\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"boolean nextLevel() {\r\n\t\treturn this.ship.getRow() == 0 && this.ship.getCol() == this.board.getDimCol() - 1;\r\n\t}",
"public boolean isItaDraw(){\n\t\tboolean flag=false;\n\t\tfor(int row=0;row<9;row++){\n\t\t\tfor(int column=0;column<25;column++){\n\t\t\t\tif(Board[row][column] == 'O'){\n\t\t\t\t\tflag=false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tflag=true;\n\t\t\t}\n\t\t\tif(flag==false)\n\t\t\t\tbreak;\n\t\t}\n\t\tif (flag == true)\n\t\t\tSystem.out.println(\"It's a draw\");\n\t\treturn flag;\n\t}",
"public boolean checkLine(Move move, Piece board[][]) {\n // check straight line\n if ((move.getEnd_row() - move.getStart_row()) != 0 && (move.getEnd_column() - move.getStart_column()) != 0) {\n return false;\n }\n \n int rdirection, cdirection;\n\n // Test moving the piece. Returns true if move is possible. Returns false if piece collides with another.\n if (move.getStart_row() == move.getEnd_row()) {\n cdirection = (move.getEnd_column() - move.getStart_column()) / Math.abs((move.getEnd_column() - move.getStart_column()));\n int current_column = move.getStart_column() + cdirection;\n while (current_column != move.getEnd_column()) {\n if (board[current_column][move.getStart_row()] != null && current_column != move.getEnd_column()) {\n return false;\n }\n current_column += cdirection;\n }\n } else {\n rdirection = (move.getEnd_row() - move.getStart_row()) / Math.abs((move.getEnd_row() - move.getStart_row()));\n int current_row = move.getStart_row() + rdirection;\n while (current_row != move.getEnd_row()) {\n if (board[move.getStart_column()][current_row] != null && current_row != move.getEnd_row()) {\n return false;\n }\n current_row += rdirection;\n }\n }\n return true;\n }",
"private boolean moveToNextCell() {\r\n positionInArray++;\r\n while (positionInArray < data.length && data[positionInArray] == null) {\r\n positionInArray++;\r\n }\r\n return positionInArray < data.length;\r\n }",
"public boolean hasMoreTokens(){\n return !ended;\n }",
"public boolean validNextMove(int row, int col, Cell[][] maze) {\n int[][] dirs = {{0, -1}, {0, 1}, {-1, 0}, {1, 0}};\n int count = 0;\n for (int[] dir : dirs) {\n int newRow = row + dir[0];\n int newCol = col + dir[1];\n if (maze[newRow][newCol].getValue() == 1) {\n count++;\n }\n }\n if (count >= 3) {\n return false;\n } else {\n return true;\n }\n }",
"@DISPID(1610940416) //= 0x60050000. The runtime will prefer the VTID if present\n @VTID(22)\n boolean atEndOfLine();",
"public boolean next() {\r\n\t\tboolean hasElement = false;\r\n\r\n\t\t// Shift tokens \r\n\t\tfor (int i=0; i<tokens.length-1; ++i) {\r\n\t\t\ttokens[i] = tokens[i+1];\r\n\t\t\tnormalizedTokens[i] = normalizedTokens[i+1];\r\n\t\t\tif (tokens[i] != null) hasElement = true;\r\n\t\t}\r\n\t\t\t\r\n\t\t// Read a next token\r\n\t\tif (reader.next()) {\r\n\t\t\ttokens[tokens.length-1] = reader.getText();\r\n\t\t\tnormalizedTokens[normalizedTokens.length-1] = reader.getNormalizedText();\r\n\t\t\thasElement = true;\r\n\t\t} else {\r\n\t\t\ttokens[tokens.length-1] = null;\r\n\t\t\tnormalizedTokens[normalizedTokens.length-1] = null;\r\n\t\t}\r\n\t\t\r\n\t\tif (hasElement) ngramCount++;\r\n\r\n\t\treturn hasElement;\r\n\t}",
"@java.lang.Override\n public boolean hasForward() {\n return stepInfoCase_ == 13;\n }",
"public boolean endOfInput() {\n \tif((tmpPosition<totalLength)&&(IsOk)){\n \t//\tSystem.out.println(\"Am returnat ok\");\n \t\treturn false;\n\t\t\t\n \t}\n\t\telse\n\t\t\treturn true;\n \t\n }",
"public boolean hasNextToken() {\n\t\treturn !inputString.isEmpty();\n\t}",
"public boolean checkDown()\n\t{\n\t\tif(row+1<=22)\n\t\t\treturn true;\n\t\treturn false;\n\t\t\t\n\t}",
"public boolean hasNext() {\n return c != -1;\n }",
"public boolean isComplete()\n\t{\n\t\treturn getStep() == getRepeatCount() * 2 + 1;\n\t}",
"@Override\r\n\tpublic boolean hasNext() {\r\n\t\t\r\n\t\tif (super.hasNext()) {\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * We want to avoid any array out of index exceptions, this will make sure that we \r\n\t\t\t * are only considering rows with +ve indices, which are real.\r\n\t\t\t * */\r\n\t\t\tif (previousRow > -1) {\r\n\t\t\t\t\r\n\t\t\t\tTuple row = this.table.getTuple(this.previousRow);\r\n\t\t\t\tString timeStep = row.get(this.timeStepTableColumnName).toString();\r\n\t\t\t\t\r\n\t\t\t\tif (Integer.parseInt(timeStep) > this.timestepBounds.getUpperbound()) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t} \r\n\t\t\t\t\r\n\t\t\t\tif (Integer.parseInt(timeStep) < this.timestepBounds.getLowerbound()) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public Boolean isEnd() {\n\t\t// keep running\n\t\tif (currentNo == -1) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// car production for this production line is done\n\t\telse if (currentNo >= expectedNo) {\n//\t\t\tSystem.out.println(\"isEnd of car Production line is \");\n//\t\t\tSystem.out.print(currentNo >= expectedNo);\n\n\t\t\treturn true;\n\t\t} else {\n//\t\t\tSystem.out.println(\"isEnd of car Production line is \");\n//\t\t\tSystem.out.print(currentNo >= expectedNo);\n\t\t\treturn false;\n\t\t}\n\n\t}",
"private boolean handleStoppedExamining(String line){\n if (!line.startsWith(\"You are no longer examining game \"))\n return false;\n \n Matcher matcher = STOPPED_EXAMINING_REGEX.matcher(line);\n if (!matcher.matches())\n return false;\n\n int gameNumber = Integer.parseInt(matcher.group(1));\n\n if (!processStoppedExamining(gameNumber))\n processLine(line);\n\n return true;\n }",
"public boolean followLine(Line2D path)\r\n\t{\r\n\t\tif(phase != DONE)\r\n\t\t{\r\n\t\t\tsetAngle(path);\r\n\t\t\t//debugLine = path;\r\n\t\t\tsetVelX(2*Math.cos(Math.toRadians(mcnAngle)));\r\n\t\t\tsetVelY(-2*Math.sin(Math.toRadians(mcnAngle)));\r\n\t\t\tif(getPoint().distance(path.getP2()) < 10)\r\n\t\t\t{\r\n\t\t\t\tphase = DONE;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}"
]
| [
"0.698559",
"0.6653793",
"0.66275424",
"0.6536644",
"0.6525784",
"0.63954216",
"0.63934946",
"0.63631153",
"0.6314199",
"0.631386",
"0.62869096",
"0.62745565",
"0.626655",
"0.62503755",
"0.62456095",
"0.6235445",
"0.62240136",
"0.61423534",
"0.61311",
"0.6116653",
"0.6086259",
"0.60513574",
"0.604348",
"0.6015117",
"0.6009716",
"0.60000616",
"0.5979439",
"0.5952301",
"0.5951769",
"0.59386283",
"0.59340566",
"0.59297997",
"0.5920944",
"0.5920514",
"0.59066117",
"0.590656",
"0.5897747",
"0.58973944",
"0.5897106",
"0.58883077",
"0.58838063",
"0.58740616",
"0.5873888",
"0.58695483",
"0.58684266",
"0.5863876",
"0.58623344",
"0.58609915",
"0.58487284",
"0.58386844",
"0.5835779",
"0.5830457",
"0.5812834",
"0.58079094",
"0.579544",
"0.57896495",
"0.57753944",
"0.57724136",
"0.5758009",
"0.57524794",
"0.5749501",
"0.5746467",
"0.57438767",
"0.5741824",
"0.5741461",
"0.5739765",
"0.57386875",
"0.5734277",
"0.5730904",
"0.5729819",
"0.57284874",
"0.572457",
"0.571986",
"0.5714242",
"0.57112014",
"0.57109976",
"0.5694296",
"0.56920046",
"0.5690076",
"0.5689045",
"0.56844234",
"0.567935",
"0.56790155",
"0.56732243",
"0.5671472",
"0.5667359",
"0.56661606",
"0.5663997",
"0.5658066",
"0.56555855",
"0.5653429",
"0.56468344",
"0.56374633",
"0.56374013",
"0.5635701",
"0.5632588",
"0.5628165",
"0.562589",
"0.56249756",
"0.56220704",
"0.56216025"
]
| 0.0 | -1 |
Set the document number and the trip id on our travel advance | @Override
public void prepareForSave(KualiDocumentEvent event) {
super.prepareForSave(event);
if (!(this instanceof TravelAuthorizationCloseDocument)) {
if (!ObjectUtils.isNull(getTravelAdvance())) {
getTravelAdvance().setTravelDocumentIdentifier(getTravelDocumentIdentifier());
final String checkStubPrefix = getConfigurationService().getPropertyValueAsString(TemKeyConstants.MESSAGE_TA_ADVANCE_PAYMENT_CHECK_TEXT_PREFIX);
getAdvanceTravelPayment().setCheckStubText(checkStubPrefix+" "+getDocumentHeader().getDocumentDescription());
getAdvanceTravelPayment().setDueDate(getTravelAdvance().getDueDate());
getAdvanceTravelPayment().setDocumentNumber(getDocumentNumber()); // this should already be set but no harm in resetting...
updatePayeeTypeForAuthorization();
}
}
if(maskTravelDocumentIdentifierAndOrganizationDocNumber()) {
this.getDocumentHeader().setOrganizationDocumentNumber(null);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 setDocumentNo (String DocumentNo);",
"public void setDocumentNo (String DocumentNo);",
"public void setDocumentNo (String DocumentNo);",
"public void setIdTravel(Integer idTravel) {\r\n this.idTravel = idTravel;\r\n }",
"public void setDocId(Number value) {\n setAttributeInternal(DOCID, value);\n }",
"public void setDocId(Number value) {\n setAttributeInternal(DOCID, value);\n }",
"private void setDocumentNo() {\n //\tCash Transfer\n if (\"X\".equals(getTenderType())) {\n return;\n }\n //\tCurrent Document No\n String documentNo = getDocumentNo();\n //\tExisting reversal\n if (documentNo != null\n && documentNo.indexOf(REVERSE_INDICATOR) >= 0) {\n return;\n }\n\n //\tIf external number exists - enforce it\n if (getR_PnRef() != null && getR_PnRef().length() > 0) {\n if (!getR_PnRef().equals(documentNo)) {\n setDocumentNo(getR_PnRef());\n }\n return;\n }\n\n documentNo = \"\";\n\n /* Begin e-Evolution\n //\tCredit Card\n if (TENDERTYPE_CreditCard.equals(getTenderType()))\n {\n documentNo = getCreditCardType()\n + \" \" + Obscure.obscure(getCreditCardNumber())\n + \" \" + getCreditCardExpMM()\n + \"/\" + getCreditCardExpYY();\n }\n //\tOwn Check No\n else\n // End e-Evolution */\n\n if (TENDERTYPE_Check.equals(getTenderType())\n && !isReceipt()\n && getCheckNo() != null && getCheckNo().length() > 0) {\n documentNo = getCheckNo();\n }\n //\tCustomer Check: Routing: Account #Check\n //begin e-evolution vpj-cd 11 MAy 2006\n\t\t/*else if (TENDERTYPE_Check.equals(getTenderType())\n && isReceipt())\n {\n if (getRoutingNo() != null)\n documentNo = getRoutingNo() + \": \";\n if (getAccountNo() != null)\n documentNo += getAccountNo();\n if (getCheckNo() != null)\n {\n if (documentNo.length() > 0)\n documentNo += \" \";\n documentNo += \"#\" + getCheckNo();\n }\n }\n // End e-Evolution */\n //\tSet Document No\n documentNo = documentNo.trim();\n if (documentNo.length() > 0) {\n setDocumentNo(documentNo);\n }\n }",
"public static Task<String> addTrip(Map<String, Object> data) {\n // add the trip to the database\n return FirebaseFirestore.getInstance()\n .collection(Const.TRIPS_COLLECTION)\n .add(data)\n .continueWith(new Continuation<DocumentReference, String>() {\n @Override\n public String then(@NonNull Task<DocumentReference> task) {\n DocumentReference doc = task.getResult();\n if (doc != null) return doc.getId();\n else return \"\";\n }\n });\n }",
"void setIdNumber(String idNumber);",
"public static Task<Void> updateTrip(String tripId, Map<String, Object> data) {\n Log.d(Const.TAG, \"updateTrip: \" + Thread.currentThread().getId());\n return FirebaseFirestore.getInstance()\n .collection(Const.TRIPS_COLLECTION)\n .document(tripId)\n .update(data);\n }",
"public void setID(int number) {\n this.clientNumber = number;\n }",
"public void setidnumber(int id) {\r\n idnumber = id;\r\n }",
"public void setDocument(int docid) {\n leafLookup.setDocument(docid);\n }",
"public void setBookDocId(Number value) {\n setAttributeInternal(BOOKDOCID, value);\n }",
"public void setIdNumber(String idNumber) {\n this.idNumber = idNumber;\n }",
"public static Task<Void> addTripper(String tripId, String tripperId, String tripperEmail,\n String tripperName) {\n // add the tripper id to a map\n Map<String, Object> data = new HashMap<>();\n data.put(Const.USER_ID_KEY, tripperId);\n data.put(Const.USER_EMAIL_KEY, tripperEmail);\n data.put(Const.USER_NAME_KEY, tripperName);\n\n Log.d(Const.TAG, \"addTripper: \" + data);\n\n // add a document to the trippers sub-collection of this trip\n return FirebaseFirestore.getInstance()\n .collection(Const.TRIPS_COLLECTION)\n .document(tripId)\n .collection(Const.TRIP_TRIPPERS_COLLECTION)\n .document(tripperId)\n .set(data);\n }",
"public void setId_number(String id_number) {\n this.id_number = id_number;\n }",
"public void setLeaseDocument(int newLeaseDocument) {\n\tleaseDocument = newLeaseDocument;\n}",
"public void setReservationId(int i) { reservationId = i; }",
"public void setID(Number numID);",
"public void setPageNumber(String id, int pageNumber)\n { \n IDNode node=(IDNode)idReferences.get(id); \n node.setPageNumber(pageNumber); \n }",
"void saveTrip(Trip parTrip);",
"public void setRideid(java.lang.String value) {\n this.rideid = value;\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 }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"public void setBookingId(int value) {\n this.bookingId = value;\n }",
"public void setBookingId(int value) {\n this.bookingId = value;\n }",
"public void setIdpres(int idpres) {\r\n this.idpres = idpres;\r\n }",
"public void setLBR_DocLine_Details_ID (int LBR_DocLine_Details_ID);",
"public void setRecIdNumber(StringWithCustomFacts recIdNumber) {\n this.recIdNumber = recIdNumber;\n }",
"public static Task<DocumentReference> addTripLocation(String tripId, LatLng location, String name, long timeStamp) {\n // create a map to hold the data\n Map<String, Object> data = new HashMap<>();\n String coordinate = location.latitude + \",\" +\n location.longitude;\n data.put(Const.TRIP_LOCATION_KEY, coordinate);\n data.put(Const.TRIP_LOCATION_NAME_KEY, name);\n data.put(Const.TRIP_TIMESTAMP_KEY, timeStamp);\n\n // add the location to the locations sub-collection\n return FirebaseFirestore.getInstance()\n .collection(Const.TRIPS_COLLECTION)\n .document(tripId)\n .collection(Const.TRIP_LOCATIONS_COLLECTION)\n .add(data);\n }",
"public static Task<Void> addUserTrip(String userId, String tripId, String tripTitle, String startDate) {\n // map to contain the document data\n Map<String, Object> data = new HashMap<>();\n data.put(Const.TRIP_ID_KEY, tripId);\n data.put(Const.TRIP_TITLE_KEY, tripTitle);\n data.put(Const.TRIP_START_DATE_KEY, startDate);\n\n Log.d(Const.TAG, \"addUserTrip: \" + data);\n\n // add the trip to the user_trips sub-collection\n return FirebaseFirestore.getInstance()\n .collection(Const.USERS_COLLECTION)\n .document(userId)\n .collection(Const.USER_TRIPS_COLLECTION)\n .document(tripId)\n .set(data);\n }",
"public Builder setDocumentId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n documentId_ = value;\n onChanged();\n return this;\n }",
"public void setRelDocument(int v) \n {\n \n if (this.relDocument != v)\n {\n this.relDocument = v;\n setModified(true);\n }\n \n \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 }",
"int updTravelById(Travel record) throws TravelNotFoundException;",
"public void setHotelID(int value) {\n this.hotelID = value;\n }",
"private void setPoId(Long id) {\r\n this.poId = id;\r\n }",
"public void setCurrentPersonId(int personId) {\n currentPersonId = personId;\n }",
"public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }",
"public abstract void setTica_id(java.lang.String newTica_id);",
"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 setOridestId(Number value) {\n setAttributeInternal(ORIDESTID, value);\n }",
"public void setIddocument(String iddocument) {\r\n\t\tthis.iddocument = iddocument;\r\n\t}",
"public void setRoutingNo (String RoutingNo);",
"public com.trg.fms.api.Trip.Builder setId(java.lang.Long value) {\n validate(fields()[0], value);\n this.id = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public void setPersonaId(long value) {\n this.personaId = value;\n }",
"public void setTrid(int trid) {\n this.trid = trid;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"@Override\n\tpublic void setTokeId(String arg0) {\n\t\t\n\t}",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setDocumentId(java.lang.String value) {\n validate(fields()[8], value);\n this.documentId = value;\n fieldSetFlags()[8] = true;\n return this;\n }",
"public void setDocumentNumber(java.lang.String newDocumentNumber) {\n\tdocumentNumber = newDocumentNumber;\n}",
"public void setTravel(Travel travel) {\n this.travel = travel;\n }",
"public void setId (long id)\r\n {\r\n _id = id;\r\n }",
"public void setStargateId(int val) {\n stargateId = val;\n }",
"private void setOtherId(int value) {\n \n otherId_ = value;\n }",
"void setRoadway(org.landxml.schema.landXML11.RoadwayDocument.Roadway roadway);",
"private void setId(int value) {\n \n id_ = value;\n }",
"private static void idReplace() {\n\t\tList<String> list = FileUtil.FileToList(\"C:/Users/强胜/Desktop/dataCrawler/申请方/翻译后的/去掉过时的/过时的program取代表1013.txt\");\n\t\tMap<String,Integer> map = new HashMap<String,Integer>();\n\t\tfor(String xx : list)\n\t\t\tmap.put(xx.split(\"\\t\")[0], Integer.parseInt(xx.split(\"\\t\")[1]));\n\t\t\n\t\tString url = \"123.57.250.189\";\n\t\tint port = 27017;\n\t\tString dbName = \"dulishuo\";\n\t\tDB db = MongoUtil.getConnection(url, port, dbName);\n\t\t\n\t\tDBCollection offer = db.getCollection(\"offer\"); \n\t DBCursor find = offer.find();\n\t \n\t while(find.hasNext()){\n\t \tSystem.out.println(\"process_____\"+count++);\n\t \tDBObject obj = find.next();\n\t \tif(obj.containsField(\"program_id\")){\n\t \t\tString id = obj.get(\"program_id\").toString();\n\t\t \tif(map.containsKey(id)){\n\t\t \t\ttry{\n\t\t\t \t\t\n\t\t\t \t\tBasicDBObject newDocument = new BasicDBObject(); \n\t\t\t\t\t\tnewDocument.append(\"$set\", new BasicDBObject().append(\"program_id\", map.get(id))); \n\t\t\t\t\t\toffer.update(obj, newDocument);\n\t\t\t \t\t\n\t\t\t \t}catch(Exception e){\n\t\t\t \t\t\n\t\t\t \t}\n\t\t \t}\n\t \t}\n\t }\n\t System.out.println(\"______________---End---------------\");\n\t}",
"public void setUltIdDoc(int idD){\n\t\tthis.ultIdDoc = idD;\n\t}",
"public void setID(long id);",
"@Override\n public void onClick(View v) {\n Map<String, Object> profile = new HashMap<>();\n\n String name = et_name.getText().toString();\n String phone = et_phone.getText().toString();\n String email = et_email.getText().toString();\n String linkedin = et_linkedin.getText().toString();\n String git = et_github.getText().toString();\n String devpost = et_devpost.getText().toString();\n\n profile.put(\"name\", name);\n profile.put(\"phone\", phone);\n profile.put(\"email\", email);\n profile.put(\"linkedin\", linkedin);\n profile.put(\"github\", git);\n profile.put(\"devpost\", devpost);\n\n\n\n // Add a new document with a generated ID\n\n db.collection(\"seekers\").document(user.getUid()).set(profile);\n\n /*db.collection(\"seekers/\" + user.getUid())\n .add(profile)\n .addOnSuccessListener(new OnSuccessListener<DocumentReference>() {\n @Override\n public void onSuccess(DocumentReference documentReference) {\n\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n\n }\n });*/\n\n\n toBeam();\n }",
"void setPassportNumber(String passportNumber);",
"public void setHotelId(int value) {\n this.hotelId = value;\n }",
"public static void setIdNumber(int idNumber) {\n catalogue.idNumber = idNumber;\n }",
"public void setFlightId(long value) {\n\t\tthis.flightId = value;\n\t}",
"@Override\r\n public String getDocid() {\r\n return docid;\r\n }",
"@Generated(hash = 1070169441)\npublic void setDocumento(Documento documento) {\n synchronized (this) {\n this.documento = documento;\n documentoId = documento == null ? null : documento.getId();\n documento__resolvedKey = documentoId;\n }\n}",
"public Trip(long tripId, long serverRefId, String tripName, String destinationName, String creator, Date date, ArrayList<Person> friends)\n\t{\n\t\tthis.tripId = tripId;\n\t\tthis.serverRefId = serverRefId;\n\t\tthis.tripName = tripName;\n\t\tthis.destinationName = destinationName;\n\t\tthis.creator = creator;\n\t\tthis.date = date;\n\t\tthis.friends = friends;\n\t}",
"public void setDriveClientId(String id) {this.databaseConfig.setProperty(\"driveClientId\", id);}",
"public void setTownid(Integer townid) {\n this.townid = townid;\n }",
"public void setStreetNo(int value) {\n this.streetNo = value;\n }",
"public void setSalesRep_ID (int SalesRep_ID);",
"public void setSalesRep_ID (int SalesRep_ID);",
"public void setDoc_No(java.lang.String doc_No) {\r\n this.doc_No = doc_No;\r\n }",
"@Override\r\n public void setsaleId(int saleid) {\n this.saleId = saleid;\r\n }",
"void setPhone(int phone);",
"public void setDocument(Document doc)\n\t{\n\t\tthis.document = doc;\n\t}",
"public void setDocumentLocation(L documentLocation);",
"public void setIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI(int idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI)\r\n/* 85: */ {\r\n/* 86:118 */ this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI = idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 87: */ }",
"protected void setDocId(final String docName, final GetDocId mCallBack) {\n // Populate the layout with db doctors\n DatabaseReference mDocDatabase = FirebaseDatabase.getInstance().getReference(\"Doctor\");\n mDocDatabase.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot child : dataSnapshot.getChildren()) {\n Doctor docs = child.getValue(Doctor.class);\n assert docs != null;\n if (docName.equals(docs.getDocString())) {\n doctorId = docs.getDocID();\n }\n }\n mCallBack.onCallback(doctorId);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {}\n });\n }",
"private void setAId(int value) {\n \n aId_ = value;\n }",
"@Override\n public void run() {\n final Location location = getLastBestLocation();\n\n\n location.getLatitude();\n location.getLongitude();\n\n\n\n\n\n // Create a new user with a first and last name\n Map<String, Object> user = new HashMap<>();\n user.put(\"lat\", location.getLatitude());\n user.put(\"long\", location.getLongitude());\n\n// Add a new document with a generated ID\n\n db.collection(\"gps\").document(\"QvFfCM86QQJRAIk68MQv\").update(user)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\nString locs= location.getLatitude()+\",\"+location.getLongitude();\n loc.setText(locs);\n Log.w(TAG, \"onSuccess\"+count);\n count = count+1;\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.w(TAG, \"Error adding document\", e);\n }\n });\n\n // Repeat every 2 seconds\n handler.postDelayed(runnable, 500);\n }",
"public void setPassengerId(int value) {\n this.passengerId = value;\n }",
"@Override\n public void definirId(Endereco objeto, int id) {\n objeto.setId(id);\n }",
"public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }",
"public synchronized void setTbApWtEntryNumber(Integer value){\n\t\t// Fill up with necessary processing\n\n\t\ttbApWtEntryNumber = value;\n\t}",
"public void setPersonId(Number value) {\n setAttributeInternal(PERSONID, value);\n }",
"public void setId(long id) {\n id_ = id;\n }",
"public void setPatientID(java.lang.String param){\n \n this.localPatientID=param;\n \n\n }",
"public void setPatientID(java.lang.String param){\n \n this.localPatientID=param;\n \n\n }",
"public void setID(String idIn) {this.id = idIn;}",
"public void setDocument(Document document) {\n\t\tthis.document = document;\n\t}",
"public void setFlightNumber(int flightNumber) { // set the flight number\n\t\tthis.flightNumber = flightNumber;\n\t}"
]
| [
"0.6485967",
"0.6263623",
"0.62263614",
"0.62263614",
"0.62263614",
"0.6192282",
"0.5992978",
"0.5992978",
"0.59656596",
"0.57368606",
"0.5721305",
"0.56461245",
"0.56440294",
"0.5635038",
"0.5577796",
"0.5505331",
"0.54460824",
"0.5426725",
"0.541746",
"0.5365157",
"0.5356802",
"0.5350199",
"0.5348475",
"0.5344152",
"0.53383654",
"0.53319484",
"0.52994525",
"0.52994525",
"0.52994525",
"0.52994525",
"0.52994525",
"0.52994525",
"0.5293879",
"0.5293879",
"0.52902114",
"0.5282766",
"0.5256209",
"0.52505267",
"0.5243554",
"0.5230983",
"0.5224145",
"0.5208225",
"0.52033883",
"0.518866",
"0.51828796",
"0.5174909",
"0.5166218",
"0.51607597",
"0.5153447",
"0.5151525",
"0.5145365",
"0.512553",
"0.5094647",
"0.5090478",
"0.50886464",
"0.50882024",
"0.5082312",
"0.5067239",
"0.50666654",
"0.5062408",
"0.5060843",
"0.50600296",
"0.5057054",
"0.50565386",
"0.5048692",
"0.5046713",
"0.50408214",
"0.5040178",
"0.5034629",
"0.50220865",
"0.5017016",
"0.5016198",
"0.50151694",
"0.5006622",
"0.49940747",
"0.4989639",
"0.4984607",
"0.49830177",
"0.49820405",
"0.49811152",
"0.49811152",
"0.4978058",
"0.49654022",
"0.49622512",
"0.49598697",
"0.49545792",
"0.4951188",
"0.4947985",
"0.49436924",
"0.49369302",
"0.493281",
"0.49328098",
"0.49277502",
"0.49271265",
"0.4924311",
"0.49228877",
"0.49203977",
"0.49203977",
"0.49197528",
"0.49118674",
"0.49098375"
]
| 0.0 | -1 |
For reimbursable documents, sets the proper payee type code and profile id after a profile lookup | public void updatePayeeTypeForAuthorization() {
if (!ObjectUtils.isNull(getTraveler()) && !ObjectUtils.isNull(getAdvanceTravelPayment())) {
if (getTravelerService().isEmployee(getTraveler())){
getAdvanceTravelPayment().setPayeeTypeCode(KFSConstants.PaymentPayeeTypes.EMPLOYEE);
}else{
getAdvanceTravelPayment().setPayeeTypeCode(KFSConstants.PaymentPayeeTypes.CUSTOMER);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@objid (\"6680b948-597e-4df9-b9a2-de8dc499acb3\")\n void setOwnerProfile(Profile value);",
"public void setProfile(Profile profile) {\n _profile = profile;\n }",
"public void setProfileId(Integer profileId) {\n _profileId = profileId;\n }",
"public void setProfile(Profile profile) {\n\t\tthis.profile = profile;\n\t}",
"private void editProfile() {\n Log.d(TAG, \"Starting volley request to API\");\n try {\n String authority = String.format(Constants.AUTHORITY,\n Constants.TENANT,\n Constants.EDIT_PROFILE_POLICY);\n\n User currentUser = Helpers.getUserByPolicy(\n sampleApp.getUsers(),\n Constants.EDIT_PROFILE_POLICY);\n\n sampleApp.acquireToken(\n this,\n Constants.SCOPES.split(\"\\\\s+\"),\n currentUser,\n UiBehavior.SELECT_ACCOUNT,\n null,\n null,\n authority,\n getEditPolicyCallback());\n } catch(MsalClientException e) {\n /* No User */\n Log.d(TAG, \"MSAL Exception Generated while getting users: \" + e.toString());\n }\n\n }",
"@Override\n\tpublic long createProfile(Profile profile) {\n\t\treturn 0;\n\t}",
"public void setPROFILE_ID(BigDecimal PROFILE_ID) {\r\n this.PROFILE_ID = PROFILE_ID;\r\n }",
"public void setProfileKey( Long profileKey ) {\n this.profileKey = profileKey;\n }",
"public int getProfile_id() {\n return profileID;\n }",
"public void setProfileId(String profileId) {\n this.profileId = profileId;\n }",
"public interface ProfileType\n {\n /**\n * Parent profile type\n */\n String ADMIN = \"0\";\n\n /**\n * remeber profile type\n */\n String GENERAL = \"1\";\n }",
"public void editTheirProfile() {\n\t\t\n\t}",
"public Type setProfile( String theUri) {\n\t\tmyProfile = new UriDt(theUri); \n\t\treturn this; \n\t}",
"public Type setProfile(UriDt theValue) {\n\t\tmyProfile = theValue;\n\t\treturn this;\n\t}",
"Profile getProfile( String profileId );",
"public void updateSecondaryProfile(final SecondaryProfile profile,\n final ServiceClientCompletion<ResponseResult> completion)\n {\n final HashMap<String, String> headers =\n getHeaderWithAccessToken(mSharecareToken.accessToken);\n\n // Create request body.\n final HashMap<String, Object> body = new HashMap<String, Object>(9);\n body.put(ID, profile.identifier);\n body.put(NAME, profile.getName());\n body.put(GENDER, profile.gender);\n if (profile.dateOfBirth != null)\n {\n body.put(DATE_OF_BIRTH, profile.dateOfBirth.getTime());\n }\n body.put(HEIGHT, profile.heightInMeters);\n body.put(WEIGHT, profile.weightInKg);\n if (!StringHelper.isNullOrEmpty(profile.avatarURI))\n {\n final HashMap<String, String> image =\n new HashMap<String, String>(3);\n image.put(TYPE, IMAGE);\n image.put(URL, profile.avatarURI);\n image.put(DESCRIPTION, PROFILE_AVATAR);\n body.put(IMAGE, image);\n }\n\n HashMap<String, String> physicianJson = null;\n if (profile.physician != null)\n {\n physicianJson = new HashMap<String, String>(8);\n physicianJson.put(NAME, profile.physician.name);\n physicianJson.put(SPECIALTY, profile.physician.specialty);\n physicianJson.put(ADDRESS, profile.physician.address);\n physicianJson.put(CITY, profile.physician.city);\n physicianJson.put(STATE, profile.physician.state);\n physicianJson.put(ZIP, profile.physician.zip);\n physicianJson.put(PHONE, profile.physician.phone);\n physicianJson.put(EMAIL, profile.physician.email);\n }\n body.put(PHYSICIAN, physicianJson);\n\n HashMap<String, Object> insuranceJson = null;\n if (profile.insurancePlan != null)\n {\n insuranceJson = new HashMap<String, Object>(3);\n insuranceJson.put(MEMBER_ID, profile.insurancePlan.identification);\n insuranceJson.put(GROUP_ID, profile.insurancePlan.group);\n HashMap<String, String> planJson = null;\n if (profile.insurancePlan.insurancePlanAndCarrier != null\n && !StringHelper\n .isNullOrWhitespace(profile.insurancePlan.insurancePlanAndCarrier.planId))\n {\n planJson = new HashMap<String, String>(4);\n planJson.put(PLAN_ID,\n profile.insurancePlan.insurancePlanAndCarrier.planId);\n planJson.put(PLAN_NAME,\n profile.insurancePlan.insurancePlanAndCarrier.planName);\n planJson.put(CARRIER_ID,\n profile.insurancePlan.insurancePlanAndCarrier.carrierId);\n planJson.put(CARRIER_NAME,\n profile.insurancePlan.insurancePlanAndCarrier.carrierName);\n }\n insuranceJson.put(PLAN, planJson);\n }\n body.put(INSURANCE, insuranceJson);\n\n final Gson gson = new GsonBuilder().serializeNulls().create();\n final String bodyJson = gson.toJson(body);\n\n // Create endpoint.\n final String endPoint =\n String.format(EDIT_FAMILY_ENDPOINT, mSharecareToken.accountID,\n profile.identifier);\n\n this.beginRequest(endPoint, ServiceMethod.POST, headers, null,\n bodyJson, ServiceResponseFormat.GSON,\n new ServiceResponseTransform<JsonElement, ResponseResult>()\n {\n @Override\n public ResponseResult transformResponseData(\n final JsonElement json)\n throws ServiceResponseTransformException\n {\n final ResponseResult result =\n checkResultFromAuthService(json);\n if (!result.success)\n {\n result.errorMessage =\n \"We're sorry. Something went wrong adding a family member. Please try again.\";\n }\n LogError(\"updateSecondaryProfile\", result);\n return result;\n }\n }, completion);\n }",
"private RecordProfile recordProfile(long p_id)\n throws PaginatedResultSetXmlGenerationException\n {\n Long id = new Long(p_id);\n RecordProfile rp = (RecordProfile)m_profiles.get(id);\n if (rp == null)\n {\n try\n {\n rp = RecordProfileDbAccessor.readRecordProfile(p_id);\n // The following line is commented out as a temporary fix for bug\n // #GSDEF00001925. This ensures that the record profile must be\n // loaded from the database every time, guaranteeing that changes\n // are immediately visible.\n // m_profiles.put(id, rp);\n }\n catch (Exception e)\n {\n throw new PaginatedResultSetXmlGenerationException(\n \"Unable to load record profile with id=\" + p_id, e);\n }\n }\n return rp;\n }",
"@objid (\"d7af9849-7951-4020-8339-9057fcec6b89\")\n Profile getOwnerProfile();",
"@Test\n public void destiny2GetProfileTest() {\n Long destinyMembershipId = null;\n Integer membershipType = null;\n List<DestinyDestinyComponentType> components = null;\n InlineResponse20037 response = api.destiny2GetProfile(destinyMembershipId, membershipType, components);\n\n // TODO: test validations\n }",
"public void write(StructuredTableContext context, CredentialProfileId id,\n CredentialProfile profile) throws IOException {\n StructuredTable table = context.getTable(CredentialProviderStore.CREDENTIAL_PROFILES);\n Collection<Field<?>> row = Arrays.asList(\n Fields.stringField(CredentialProviderStore.NAMESPACE_FIELD,\n id.getNamespace()),\n Fields.stringField(CredentialProviderStore.PROFILE_NAME_FIELD,\n id.getName()),\n Fields.stringField(CredentialProviderStore.PROFILE_DATA_FIELD,\n GSON.toJson(profile)));\n table.upsert(row);\n }",
"public void setProfile(String profile) {\n this.profile = profile == null ? null : profile.trim();\n }",
"public void saveProfileCreateData() {\r\n\r\n }",
"@Override\n public void setActiveProfile(String profileName) {\n }",
"protected void load(Profile profile) {\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tlogger.entering(sourceClass, \"load\", profile);\n\t\t}\n\t\t// Do a cache lookup first. If cache miss, make a network call to get\n\t\t// Profile\n\t\tDocument data = getProfileDataFromCache(profile.getReqId());\n\t\tif (data != null) {\n\t\t\tprofile.setData(data);\n\t\t} else {\n\n\t\t\tMap<String, String> parameters = new HashMap<String, String>();\n\t\t\tif (isEmail(profile.getReqId())) {\n\t\t\t\tparameters.put(\"email\", profile.getReqId());\n\t\t\t} else {\n\t\t\t\tparameters.put(\"userid\", profile.getReqId());\n\t\t\t}\n\t\t\tObject result = null;\n\t\t\ttry {\n\t\t\t\tString url = resolveProfileUrl(ProfileEntity.NONADMIN.getProfileEntityType(),\n\t\t\t\t\t\tProfileType.GETPROFILE.getProfileType());\n\t\t\t\tresult = endpoint.xhrGet(url, parameters, ClientService.FORMAT_XML);\n\t\t\t} catch (ClientServicesException e) {\n\t\t\t\tlogger.log(Level.SEVERE, \"Error while loading a profile\", e);\n\t\t\t\tresult = null;\n\t\t\t}\n\n\t\t\tif (result != null) {\n\t\t\t\tprofile.setData((Document) result);\n\t\t\t\taddProfileDataToCache(profile.getUniqueId(), (Document) result);\n\t\t\t} else {\n\t\t\t\tprofile.setData(null);\n\t\t\t}\n\n\t\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\t\tlogger.exiting(sourceClass, \"load\");\n\t\t\t}\n\t\t}\n\t}",
"public void setProfile(MetadataProfile profile) {\n\t\tthis.profile = profile;\n\t}",
"private ProviderProfile parseProfile(Elements tds) throws ParsingException {\n try {\n ProviderProfile profile = new ProviderProfile();\n String id = tds.get(0).text();\n String fullProviderInfo = tds.get(1).text();\n fullProviderInfo = fullProviderInfo.replaceAll(\"\\u00A0\", \" \").trim();\n String adminBoundary = \"\";\n Elements bolds = tds.get(1).children().select(\"b\");\n if (bolds.size() >= 6) {\n adminBoundary = bolds.get(5).text();\n }\n\n String name = Util.getStringInBetween(fullProviderInfo, \"Name:\", \"Address:\");\n String address = Util.getStringInBetween(fullProviderInfo, \"Address:\", \"Phone:\");\n String phone = Util.getStringInBetween(fullProviderInfo, \"Phone:\", \"Fax:\");\n String fax = Util.getStringInBetween(fullProviderInfo, \"Fax:\", \"Administrator:\");\n String administrator = !\"\".equals(adminBoundary) ? Util.getStringInBetween(fullProviderInfo,\n \"Administrator:\", adminBoundary) : \"\";\n \n // classifications\n Elements classifications = tds.get(1).children().select(\"p\");\n for (Element classification : classifications) {\n String para = classification.text().replaceAll(\"\\u00A0\", \" \").trim();\n if (para.contains(\"Minnesota Classifications\")) {\n profile.setStateClassifications(para.substring(\"Minnesota Classifications:\".length()));\n } else if (para.contains(\"Federal Classifications\")) {\n profile.setFederalClassifications(para.substring(\"Federal Classifications:\".length()));\n }\n }\n\n // id\n profile.setEmployerId(id);\n // name\n Business business = new Business();\n profile.setBusiness(business);\n business.setName(name);\n // address\n List<Address> addresses = new ArrayList<Address>();\n Address addressObj = new Address();\n addresses.add(addressObj);\n profile.setAddresses(addresses);\n String[] addressParts = address.split(\" \");\n if (addressParts.length >= 4) {\n String location = addressParts[0].trim();\n String city = addressParts[1].trim();\n String state = addressParts[2].trim();\n String zipcode = addressParts[3].trim();\n addressObj.setLocation(location);\n addressObj.setCity(city);\n addressObj.setState(state);\n addressObj.setZipcode(zipcode);\n }\n // phone\n profile.setContactPhoneNumber(phone);\n // fax\n profile.setContactFaxNumber(fax);\n // administrator\n profile.setContactName(administrator);\n\n profile.setProviderType(getProviderType());\n return profile;\n } catch (Throwable e) {\n throw new ParsingException(\"Failed to parse the html\", e);\n }\n }",
"@Override\r\n\tpublic void setRequestParam(Payee payee) {\n\t\tthis.userNo = payee.getAccount();\r\n\t\tthis.requestTime = DateUtil.getDate(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\tthis.merchantOrderNo = getPayeeNumber();\r\n\t\tthis.receiverAccountNoEnc = getAccount();\r\n\t\tthis.receiverNameEnc = getRealName();\r\n\t\tthis.paidAmount = String.format(\"%.2f\", getAmount().doubleValue());\r\n\t\tthis.callbackUrl = \"http://api.iwanol.com/funds/huiju/notify\";\r\n\t\tthis.hmac = this.sign(payee.getSignKey());\r\n\t}",
"public void setProfile(Boolean profile)\n {\n this.profile = profile;\n }",
"TasteProfile.UserProfile getUserProfile (String user_id);",
"@Override\n\tpublic Profile getProfile(long profileId) {\n\t\treturn null;\n\t}",
"protected void load(Profile profile) throws ProfileServiceException{\n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.entering(sourceClass, \"load\", profile);\n \t\t}\n \t\t// Do a cache lookup first. If cache miss, make a network call to get\n \t\t// Profile\n \t\t\n \t\tDocument data = getProfileDataFromCache(profile.getReqId());\n \t\tif (data != null) {\n \t\t\tprofile.setData(data);\n \t\t} else {\n \n \t\t\tMap<String, String> parameters = new HashMap<String, String>();\n \t\t\tif (isEmail(profile.getReqId())) {\n \t\t\t\tparameters.put(\"email\", profile.getReqId());\n \t\t\t} else {\n \t\t\t\tparameters.put(\"userid\", profile.getReqId());\n \t\t\t}\n \t\t\tString url = resolveProfileUrl(ProfileEntity.NONADMIN.getProfileEntityType(),\n \t\t\t\t\tProfileType.GETPROFILE.getProfileType());\n \t\t\tObject result = executeGet(url, parameters, ClientService.FORMAT_XML);\n \n \t\t\tif (result != null) {\n \t\t\t\tprofile.setData((Document) result);\n \t\t\t\taddProfileDataToCache(profile.getUniqueId(), (Document) result);\n \t\t\t} else {\n \t\t\t\tprofile.setData(null);\n \t\t\t}\n \n \t\t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\t\tlogger.exiting(sourceClass, \"load\");\n \t\t\t}\n \t\t}\n \t}",
"Update withRosterProfile(RosterProfile rosterProfile);",
"public boolean updateProfile(int Id,T deliEntry);",
"void perform(Context context, ResearcherProfile researcherProfile, EPerson owner) throws SQLException;",
"@Override\n public boolean onProfileChanged(View view, IProfile profile, boolean current) {\n Intent intent = null;\n if (profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == IDENTIFIER_HEADER_ADD_ACCOUNT) {\n intent = new Intent(MainActivity.this, AddAccountActivity.class);\n //TODO: Save profile\n //TODO: Create profile drawer item from saved profile and show it in UI\n /*\n IProfile profileNew = new ProfileDrawerItem()\n .withNameShown(true)\n .withName(\"New Profile\")\n .withEmail(\"[email protected]\")\n .withIcon(getResources().getDrawable(R.drawable.profile_new));\n\n if (accountHeader.getProfiles() != null) {\n //we know that there are 2 setting elements. set the new profile above them\n accountHeader.addProfile(profileNew, accountHeader.getProfiles().size() - 2);\n } else {\n accountHeader.addProfiles(profileNew);\n }\n */\n } else if (profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == IDENTIFIER_HEADER_MANAGE_ACCOUNT) {\n intent = new Intent(MainActivity.this, ManageAccountActivity.class);\n //TODO: update the UI\n }else if(profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == IDENTIFIER_USER) {\n Toast.makeText(sApplicationContext, \"The User\", Toast.LENGTH_SHORT).show();\n SharedPreferences sp = sApplicationContext.getSharedPreferences(PREF_NAME, MODE_PRIVATE);\n String currentUserUUIDString = sp.getString(PREF_CURRENT_USER_UUID, null);\n if(((UserProfile)profile).getId().toString().equalsIgnoreCase(currentUserUUIDString)){\n Toast.makeText(sApplicationContext, \"SAME User\", Toast.LENGTH_SHORT).show();\n //TODO:\n }else{\n Toast.makeText(sApplicationContext, \"Different User\", Toast.LENGTH_SHORT).show();\n //TODO:\n SharedPreferences.Editor spe = sp.edit();\n spe.putString(PREF_CURRENT_USER_UUID, ((UserProfile)profile).getId().toString());\n spe.commit();\n\n UpdateContentUI();\n }\n }\n\n if(intent != null){\n MainActivity.this.startActivity(intent);\n }\n\n //false if you have not consumed the event And it should close the drawer\n return false;\n }",
"public void saveProfileEditData() {\r\n\r\n }",
"void updateProfile(@NonNull final ComapiProfile profileDetails, final String eTag, @Nullable Callback<ComapiResult<ComapiProfile>> callback);",
"public void saveOrUpdateProfile(){\n try {\n \n if(PersonalDataController.getInstance().existRegistry(username)){\n PersonalDataController.getInstance().update(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender), birthdate);\n }else{\n PersonalDataController.getInstance().create(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender));\n }\n } catch (GB_Exception ex) {\n LOG.error(ex);\n GBMessage.putMessage(GBEnvironment.getInstance().getError(32), null);\n }\n GBMessage.putMessage(GBEnvironment.getInstance().getError(33), null);\n }",
"void updateProfile(@NonNull final Map<String, Object> profileDetails, final String eTag, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);",
"public void setUserProfile(UserProfile userProfile) {this.userProfile = userProfile;}",
"public void addSecondaryProfile(final SecondaryProfile profile,\n final ServiceClientCompletion<ResponseResult> completion)\n {\n final HashMap<String, String> headers =\n getHeaderWithAccessToken(mSharecareToken.accessToken);\n\n // Create request body.\n final HashMap<String, Object> body = new HashMap<String, Object>(6);\n body.put(NAME, profile.getName());\n body.put(GENDER, profile.gender);\n if (!StringHelper.isNullOrEmpty(profile.identifier))\n {\n body.put(ID, profile.identifier);\n }\n body.put(HEIGHT, profile.heightInMeters);\n body.put(WEIGHT, profile.weightInKg);\n if (!StringHelper.isNullOrEmpty(profile.avatarURI))\n {\n final HashMap<String, String> image =\n new HashMap<String, String>(3);\n image.put(TYPE, IMAGE);\n image.put(URL, profile.avatarURI);\n image.put(DESCRIPTION, PROFILE_AVATAR);\n body.put(IMAGE, image);\n }\n\n final Gson gson = new GsonBuilder().create();\n final String bodyJson = gson.toJson(body);\n\n // Create endpoint.\n final String endPoint =\n String.format(ADD_FAMILY_ENDPOINT, mSharecareToken.accountID);\n\n this.beginRequest(endPoint, ServiceMethod.PUT, headers, null, bodyJson,\n ServiceResponseFormat.GSON,\n new ServiceResponseTransform<JsonElement, ResponseResult>()\n {\n @Override\n public ResponseResult transformResponseData(\n final JsonElement json)\n throws ServiceResponseTransformException\n {\n final ResponseResult result =\n checkResultFromAuthService(json);\n if (result.success)\n {\n final JsonElement response = getResponseFromJson(json);\n if (response != null)\n {\n try\n {\n final String idString = response.getAsString();\n final HashMap<String, Object> parameters =\n new HashMap<String, Object>(1);\n parameters.put(ID, idString);\n result.parameters = parameters;\n }\n catch (final ClassCastException e)\n {\n// Crashlytics.logException(e);\n }\n }\n }\n else\n {\n result.errorMessage =\n \"We're sorry. Something went wrong adding a family member. Please try again.\";\n }\n LogError(\"addSecondaryProfile\", result);\n return result;\n }\n }, completion);\n }",
"public Integer getProfileId() {\n return _profileId;\n }",
"public void createEditProfileSession(Profile profile) {\n editor.putString(KEY_EMAIL, profile.getMail());\n editor.putString(KEY_NAME, profile.getName());\n editor.putString(KEY_NUMBER,profile.getMobile());\n editor.commit();\n }",
"ProfileStatusReader getProfileUpdate( String profileId );",
"Update withSecurityProfile(SecurityProfile securityProfile);",
"interface WithRosterProfile {\n /**\n * Specifies the rosterProfile property: The lab user list management profile..\n *\n * @param rosterProfile The lab user list management profile.\n * @return the next definition stage.\n */\n Update withRosterProfile(RosterProfile rosterProfile);\n }",
"void patchMyProfile(@NonNull final Map<String, Object> profileDetails, final String eTag, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);",
"public static void setEnabledProfile(int profile) {\n if (enabledMenuItem != null) {\n enabledMenuItem.disableProfile();\n }\n\n // Also allow the signer tab to disable the signer\n if (profile == 0) {\n enabledMenuItem.disableProfile();\n enabledMenuItem = null;\n } else {\n\n // I don't want to keep a map of all the profiles. Just iterate through them until we find the right one\n for (MasherySignerMenuItem menuItem : menuItems) {\n if (menuItem.getProfileNumber() == profile) {\n menuItem.enableProfile();\n enabledMenuItem = menuItem;\n }\n }\n }\n }",
"protected void mapUserProfile2SSOUser() {\r\n\t\tssoUser.setProfileId((String)userProfile.get(AuthenticationConsts.KEY_PROFILE_ID));\r\n\t\tssoUser.setUserName((String)userProfile.get(AuthenticationConsts.KEY_USER_NAME));\r\n\t\tssoUser.setEmail((String)userProfile.get(AuthenticationConsts.KEY_EMAIL));\r\n\t\tssoUser.setFirstName((String)userProfile.get(AuthenticationConsts.KEY_FIRST_NAME));\r\n\t\tssoUser.setLastName((String)userProfile.get(AuthenticationConsts.KEY_LAST_NAME));\r\n\t\tssoUser.setCountry((String)userProfile.get(AuthenticationConsts.KEY_COUNTRY));\r\n\t\tssoUser.setLanguage((String)userProfile.get(AuthenticationConsts.KEY_LANGUAGE));\r\n\t\tssoUser.setTimeZone((String)userProfile.get(AuthenticationConsts.KEY_TIMEZONE));\r\n\t\tssoUser.setLastChangeDate((Date)userProfile.get(AuthenticationConsts.KEY_LAST_CHANGE_DATE));\r\n\t\tssoUser.setLastLoginDate((Date)userProfile.get(AuthenticationConsts.KEY_LAST_LOGIN_DATE));\r\n\t\t// Set current site, it will be used to update user's primary site\r\n\t\tssoUser.setCurrentSite(AuthenticatorHelper.getPrimarySiteUID(request));\r\n\t}",
"@Override\n\tpublic boolean updateProfile(long profileId, Profile profile) {\n\t\treturn false;\n\t}",
"void patchProfile(@NonNull final String profileId, @NonNull final ComapiProfile profileDetails, final String eTag, @Nullable Callback<ComapiResult<ComapiProfile>> callback);",
"public static void setProfile(Profile profile) {\n Login.profile = profile;\n Login.profile.setUserId(getUserId());\n }",
"private Payee identifyPayee(Integer hpay) {\n\t\tif (hpay != null) {\n\t\t\tPayee p = this.payeeMap.get(Long.valueOf(hpay));\n\t\t\tif (p == null) {\n\t\t\t\tp = this.noPayee;\n\t\t\t}\n\t\t\treturn p;\n\t\t}\n\t\telse {\n\t\t\treturn this.noPayee;\n\t\t}\n\t}",
"private void setupProfileOptions() {\n String userId;\n\n if (profile == null) {\n userId = this.userId;\n\n if (userId == null)\n throw new IllegalStateException(\"ViewProfileActivity profile is null, but so is it's userId. One of either must not be null\");\n } else {\n userId = profile.getUserId();\n\n if (userId == null)\n throw new IllegalStateException(\"ViewProfileActivity's profile#getUserId() returned null. Was setUserId called when the profile was retrieved?\");\n }\n\n final String finalUserId = userId;\n ConstraintLayout goalLayout = findViewById(R.id.goalsLayout);\n goalLayout.setOnClickListener(v -> {\n Intent intent = new Intent(this, GoalsActivity.class);\n intent.putExtra(GoalsActivity.USER_ID_EXTRA, finalUserId);\n startActivity(intent);\n });\n\n ConstraintLayout activitiesLayout = findViewById(R.id.activitiesLayout);\n activitiesLayout.setOnClickListener(v -> {\n Intent intent = new Intent(this, ListActivitiesActivity.class);\n intent.putExtra(ListActivitiesActivity.USER_ID_EXTRA, finalUserId);\n startActivity(intent);\n });\n\n ConstraintLayout postsLayout = findViewById(R.id.postsLayout);\n postsLayout.setOnClickListener(v -> {\n Intent intent = new Intent(this, ProfilePostsActivity.class);\n intent.putExtra(ProfilePostsActivity.USER_ID_EXTRA, finalUserId);\n startActivity(intent);\n });\n }",
"WithCreate withRosterProfile(RosterProfile rosterProfile);",
"void gotoEditProfile(String fbId);",
"public void setPersonType(PersonType_Tp type) { this.personType = type; }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"In Prince 9.0 and up you can set the PDF profile.\")\n @JsonProperty(JSON_PROPERTY_PROFILE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getProfile() {\n return profile;\n }",
"public native void setIptcProfile(ProfileInfo profile)\n\t\t\tthrows MagickException;",
"void patchMyProfile(@NonNull final ComapiProfile profileDetails, final String eTag, @Nullable Callback<ComapiResult<ComapiProfile>> callback);",
"public void setProfile( ProjectProfileBO pProfile )\r\n {\r\n mProfile = pProfile;\r\n }",
"public void saveProfile(WSSecurityProfile profile) throws WSSecurityProfileManagerException{\n \t\n\t\tsynchronized(profilesFile_UserDefined){\n\t\t\t // If the file does not exist yet\n\t\t if (!profilesFile_UserDefined.exists()){\n\t\t \t//Create a new file\n\t\t \t try {\n\t\t \t\tprofilesFile_UserDefined.createNewFile();\n\t\t \t }\n\t\t \t catch(IOException ex)\n\t\t \t {\n\t\t \t\t String exMessage = \"WSSecurityProfileManager failed to create a file for user-defined profiles.\";\n\t\t \t\t logger.error(exMessage, ex);\n\t\t \t\t throw new WSSecurityProfileManagerException(exMessage);\n\t\t \t }\n\t\t }\n\n\t\t BufferedWriter userProfilesFileWriter = null;\n\t\t try{\n\t\t \t// Open the file for writing (i.e. appending)\n\t\t \t userProfilesFileWriter = new BufferedWriter((new FileWriter(profilesFile_UserDefined, true)));\n\t\t \t // Add a new profile entry\n\t\t String profileEntry ;\n\t\t profileEntry = \"-----BEGIN PROFILE-----\\n\";\n\t\t \t // Profile name\n\t\t profileEntry = profileEntry +\"Name=\"+ profile.getWSSecurityProfileName() +\"\\n\";\n\t\t \t // Profile description\n\t\t profileEntry = profileEntry +\"Description=\" + profile.getWSSecurityProfileDescription() +\"\\n\";\n\t\t \t // Profile itself\n\t\t profileEntry = profileEntry +\"Profile=\" + profile.getWSSecurityProfileString();\n\t\t profileEntry = profileEntry + \"-----END PROFILE-----\\n\";\n\t\t \n\t\t \t userProfilesFileWriter.append(profileEntry);\n\t\t \t userProfilesFileWriter.newLine();\n\t\t \t \n\t\t \t // Also add to the list with user defined profiles \n\t\t \t wsSecurityProfiles_UserDefined.add(profile);\n\t\t \t wsSecurityProfileNames_UserDefined.add(profile.getWSSecurityProfileName());\n\t\t \t wsSecurityProfileDescriptions_UserDefined.add(profile.getWSSecurityProfileDescription());\n\t\t \t \n\t\t }\n\t\t catch(FileNotFoundException ex){\n\t\t \t // Should not happen\n\t\t }\n\t\t catch(IOException ex){\n\t\t \t String exMessage = \"WSSecurityProfileManager failed to save the new user-defined profile.\";\n\t\t \t logger.error(exMessage, ex);\n\t\t \t throw new WSSecurityProfileManagerException(exMessage);\n\t\t }\n\t\t finally {\n\t\t \tif (userProfilesFileWriter != null)\n\t\t \t{\n\t\t \t\ttry {\n\t\t \t\t\tuserProfilesFileWriter.close();\n\t\t \t\t}\n\t\t \t\tcatch (IOException e) { \n\t\t \t//ignore\n\t\t \t\t}\n\t\t \t}\n\t\t } \n\t\t}\n\t}",
"public void setApplicationProfile( String iApplicationProfile )\n {\n mApplicationProfile = iApplicationProfile;\n }",
"public String getProfileId() {\n return profileId;\n }",
"void patchProfile(@NonNull final String profileId, @NonNull final Map<String, Object> profileDetails, final String eTag, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);",
"private void getProfileInformation() {\n try {\n if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {\n Person currentPerson = Plus.PeopleApi.getCurrentPerson(mGoogleApiClient);\n String personId = currentPerson.getId();\n String personName = currentPerson.getDisplayName();\n String personPhotoUrl = currentPerson.getImage().getUrl();\n String personGooglePlusProfile = currentPerson.getUrl();\n\n String personBirthday = currentPerson.getBirthday();\n int personGender = currentPerson.getGender();\n String personNickname = currentPerson.getNickname();\n\n String email = Plus.AccountApi.getAccountName(mGoogleApiClient);\n\n Log.i(TAG, \"Id: \" + personId + \", Name: \" + personName + \", plusProfile: \" + personGooglePlusProfile + \", email: \" + email + \", Image: \" + personPhotoUrl + \", Birthday: \" + personBirthday + \", Gender: \" + personGender + \", Nickname: \" + personNickname);\n\n // by default the profile url gives\n // 50x50 px\n // image only\n // we can replace the value with\n // whatever\n // dimension we want by\n // replacing sz=X\n personPhotoUrl = personPhotoUrl.substring(0, personPhotoUrl.length() - 2) + PROFILE_PIC_SIZE;\n\n Log.e(TAG, \"PhotoUrl : \" + personPhotoUrl);\n\n Log.i(TAG, \"Finally Set UserData\");\n Log.i(TAG, \"account : \" + email + \", Social_Id : \" + personId);\n\n StringBuffer sb = new StringBuffer();\n sb.append(\"Id : \").append(personId).append(\"\\n\");\n sb.append(\"Name : \").append(personName).append(\"\\n\");\n sb.append(\"plusProfile : \").append(personGooglePlusProfile).append(\"\\n\");\n sb.append(\"Email : \").append(email).append(\"\\n\");\n sb.append(\"PhotoUrl : \").append(personPhotoUrl).append(\"\\n\");\n sb.append(\"Birthday : \").append(personBirthday).append(\"\\n\");\n sb.append(\"Gender : \").append(personGender).append(\"\\n\");\n sb.append(\"Nickname : \").append(personNickname).append(\"\\n\");\n\n tv_info.setText(sb.toString());\n\n signOutFromGplus();\n\n /** set Google User Data **/\n RegisterData.name = personName;\n RegisterData.email = email;\n RegisterData.password = \"\";\n RegisterData.source = \"google\";\n RegisterData.image = personPhotoUrl;\n\n new UserLoginAsyncTask().execute();\n } else {\n Toast.makeText(mContext, \"Person information is null\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n public void load(Profile profile) {\r\n refineCoins.getServer().getScheduler().runTaskAsynchronously(refineCoins, () -> {\r\n final Document document = mongoHandler.getProfiles().find(Filters.eq(\"_id\", profile.toString())).first();\r\n\r\n if (document == null) {\r\n this.save(profile, false);\r\n return;\r\n }\r\n\r\n profile.setCoins(document.getInteger(\"coins\"));\r\n });\r\n }",
"@Test\n public void testGeneratedProfileFields() {\n Profile p = getProfile(BASIC_PROFILE_PATH);\n assertNotNull(\"Profile uniqueId was null\", p.getUniqueId());\n assertNotNull(\"Profile display name was null\", p.getDisplayName());\n }",
"public void setPrincipalType(String principalType){\n this.principalType = principalType;\n //Update hashMap value..\n hashMap.put(\"principalType\", principalType);\n }",
"public static void setHash_profiles() {\n\t\t\r\n\t\tProfilePojo pf1 = new ProfilePojo(1, \"Sonal\");\r\n\t\tProfilePojo pf2 = new ProfilePojo(2, \"Komal\");\r\n\t\tProfilePojo pf3 = new ProfilePojo(3, \"Sanidh\");\r\n\t\tProfilePojo pf4 = new ProfilePojo(4, \"Vanshika\");\r\n\t\thash_profiles.put((long) 1, pf1);\r\n\t\thash_profiles.put((long) 2, pf2);\r\n\t\thash_profiles.put((long) 3, pf3);\r\n\t\thash_profiles.put((long) 4, pf4);\r\n\t\t\r\n\t}",
"public void setUserProfileWithoutCG1(BaseModelWithoutCG model, HttpServletRequest req) {\r\n\t\tlogger.info(\"setUserProfileWithoutCG1 companyid is :\");\r\n\t\tmodel.setUserId(1l);\r\n\t\tmodel.setUserIdUpdate(1l);\r\n\t}",
"public Resident(Profile profile, int credits) {\r\n super(profile, credits);\r\n financialAid = 0;\r\n }",
"void setClientProfile(ClientProfile profile)\n throws IOException, SoapException;",
"public RecordObject updateUserProfile(String token, String recordId, Object record) throws RestResponseException;",
"public void setProfileText(String profileOwner, String text) {\n\t\tprofiles.put(profileOwner, text);\n\t}",
"private void createProfile(ParseUser parseUser){\n final Profile profile = new Profile();\n\n profile.setShortBio(\"\");\n profile.setLongBio(\"\");\n profile.setUser(parseUser);\n\n //default image taken from existing default user\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"Profile\");\n query.getInBackground(\"wa6q24VD5V\", new GetCallback<ParseObject>() {\n public void done(ParseObject searchProfile, ParseException e) {\n if (e != null) {\n Log.e(TAG, \"Couldn't retrieve default image\");\n e.printStackTrace();\n return;\n }\n else {\n defaultImage = searchProfile.getParseFile(\"profileImage\");\n\n if (defaultImage != null)\n profile.setProfileImage(defaultImage);\n else\n Log.d(TAG, \"Default image is null\");\n }\n }\n });\n\n profile.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if (e != null) {\n Log.e(TAG, \"Error while saving\");\n e.printStackTrace();\n return;\n }\n\n Log.d(TAG, \"Created and saved profile\");\n }\n });\n }",
"@Test\n public void gETBillingprofilesBillingProfileIdTest() throws ApiException {\n String billingProfileId = null;\n String sCSVersion = null;\n String sCSRequestID = null;\n // BillingProfileDetails response = api.gETBillingprofilesBillingProfileId(billingProfileId, sCSVersion, sCSRequestID);\n\n // TODO: test validations\n }",
"private void addProfile(ProfileInfo profileInfo)\r\n\t{\r\n\t\taddProfile(profileInfo.getProfileName(), \r\n\t\t\t\tprofileInfo.getUsername(), \r\n\t\t\t\tprofileInfo.getServer(),\r\n\t\t\t\tprofileInfo.getPort());\r\n\t}",
"interface WithRosterProfile {\n /**\n * Specifies the rosterProfile property: The lab user list management profile..\n *\n * @param rosterProfile The lab user list management profile.\n * @return the next definition stage.\n */\n WithCreate withRosterProfile(RosterProfile rosterProfile);\n }",
"public T getSelectedProfile(int Id);",
"public Builder setProfile(com.google.protobuf2.Any value) {\n if (profileBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n profile_ = value;\n onChanged();\n } else {\n profileBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public profile_model(int profileId, String name, int moneyTotal, int jobDone, String ranking, String account, String inbox, String bankAcc, Timestamp updated) {\n this.profileId = profileId;\n Name = name;\n this.moneyTotal = moneyTotal;\n JobDone = jobDone;\n Ranking = ranking;\n Account = account;\n Inbox = inbox;\n BankAcc = bankAcc;\n Updated = updated;\n }",
"protected Map<String, Object> getUserProfile() {\r\n\t\tTimeRecorder timeRecorder = RequestContext.getThreadInstance()\r\n\t\t\t\t\t\t\t\t\t\t\t\t .getTimeRecorder();\r\n\t\tString profileId = (String)userProfile.get(AuthenticationConsts.KEY_PROFILE_ID);\r\n\r\n\t\tSite site = Utils.getEffectiveSite(request);\r\n\t\tString siteDNSName = (site == null ? null : site.getDNSName());\r\n\r\n\t\tIUserProfileRetriever retriever = UserProfileRetrieverFactory.createUserProfileImpl(AuthenticationConsts.USER_PROFILE_RETRIEVER, siteDNSName);\r\n\t\ttry {\r\n\t\t\ttimeRecorder.recordStart(Operation.PROFILE_CALL);\r\n\t\t\tMap<String, Object> userProfile = retriever.getUserProfile(profileId,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t request);\r\n\t\t\ttimeRecorder.recordEnd(Operation.PROFILE_CALL);\r\n\t\t\treturn userProfile;\r\n\t\t} catch (UserProfileException ex) {\r\n\t\t\ttimeRecorder.recordError(Operation.PROFILE_CALL, ex);\r\n\t\t\tRequestContext.getThreadInstance()\r\n\t\t\t\t\t\t .getDiagnosticContext()\r\n\t\t\t\t\t\t .setError(ErrorCode.PROFILE001, ex.toString());\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\t}",
"private void setProfileUNr(){\n Set<Hole> holeSet = createHoleSetWithUNr();\n\n for (Profile profile:profiles){\n\n for (Hole hole:profile.getHoles()) {\n setHoleUNr(hole,holeSet);\n }\n\n }\n }",
"void setUserProfile(Map<String, Object> profile);",
"public void setProfileRestClient(ProfileRestClient profileRestClient) {\n mProfileRestClient = profileRestClient;\n }",
"@Override\n public Profile createProfile(Long educationProviderId, Long learningProgramId, Profile profile) {\n LearningProgram lProgram = learningProgramRepository.findByIdAndEducationProviderId(learningProgramId, educationProviderId)\n .orElseThrow(()-> new ResourceNotFoundException(String.format(\"Education provider with id: %s and \" +\n \"Learning program with id: %s were not found\", learningProgramId)));\n profile.setEducationProvider(lProgram.getEducationProvider());\n profile.setLearningProgram(lProgram);\n return profileRepository.save(profile);\n }",
"public static UserInfo getAccountInfoFromProfile(Context context) {\n Cursor dc = null;\n ContentResolver resolver= context.getContentResolver();\n Cursor pc = resolver.query(Profile.CONTENT_URI, PROFILE_PROJECTION, null, \n null, null);\n if (pc == null) {\n return null;\n }\n UserInfo acctInfo = null;\n try {\n while (pc.moveToNext()) {\n String displayName = pc.getString(COLUMN_DISPLAY_NAME);\n if (displayName == null || displayName.isEmpty()) {\n continue;\n }\n if (acctInfo == null) {\n acctInfo = new UserInfo();\n }\n acctInfo.setDisplayName(displayName);\n long rawContactsId = pc.getLong(COLUMN_RAW_CONTACTS_ID);\n \n Uri profileDataUri = Uri.withAppendedPath(Profile.CONTENT_URI, \"data\");\n dc = resolver.query(profileDataUri, PROFILE_DATA_PROJECTION,\n Data.RAW_CONTACT_ID+\"=? AND \"+Data.MIMETYPE+\" IN (?,?)\", \n new String[] { String.valueOf(rawContactsId), \n Phone.CONTENT_ITEM_TYPE, Email.CONTENT_ITEM_TYPE }, null);\n boolean firstEmail = true, firstPhone = true;\n while (dc != null && dc.moveToNext()) {\n String data;\n int type = dc.getInt(COLUMN_TYPE);\n int isPrimary = dc.getInt(COLUMN_ISPRIMARY);\n boolean isPhone = Phone.CONTENT_ITEM_TYPE.equals(dc.getString(COLUMN_MIMETYPE));\n if (isPhone) {\n data = dc.getString(COLUMN_PHONENUM);\n if (isPrimary == 1 || firstPhone) {\n // TODO: phone number is not supported yet.\n// acctInfo.setPhone(data);\n firstPhone = false;\n }\n } else {\n data = dc.getString(COLUMN_EMAILADDR);\n if (isPrimary == 1 || firstEmail) {\n acctInfo.setEmail(data);\n firstEmail = false;\n }\n }\n }\n }\n return acctInfo;\n } finally {\n pc.close();\n if (dc != null) {\n dc.close();\n }\n }\n }",
"public void updateProfile(final Profile profile,\n final ServiceClientCompletion<ResponseResult> completion)\n {\n // Validate email format.\n if (!isEmailFormat(profile.email) && completion != null)\n {\n final ResponseResult result =\n new ResponseResult(\n false,\n \"Please enter a valid email.\",\n ServiceClientConstants.SERVICE_RESPONSE_STATUS_CODE_BAD_PARAMETERS);\n completion\n .onCompletion(\n ServiceResultStatus.FAILED,\n ServiceClientConstants.SERVICE_RESPONSE_STATUS_CODE_BAD_PARAMETERS,\n result);\n return;\n }\n\n // Create request headers.\n final HashMap<String, String> headers = new HashMap<String, String>(2);\n headers.put(\"Authorization\", AUTHORIZATION_HEADER);\n headers.put(\"Content-Type\", \"application/json\");\n\n // Create request parameters.\n final HashMap<String, String> parameters =\n new HashMap<String, String>(2);\n parameters.put(\"grant_type\", \"bearer\");\n parameters.put(\"access_token\", mSharecareToken.accessToken);\n\n // Create request body.\n final HashMap<String, Object> body = new HashMap<String, Object>(8);\n body.put(FIRST_NAME, profile.firstName);\n body.put(LAST_NAME, profile.lastName);\n body.put(EMAIL, profile.email);\n body.put(GENDER, profile.gender);\n if (profile.dateOfBirth != null)\n {\n body.put(DATE_OF_BIRTH, profile.dateOfBirth.getTime());\n }\n else\n {\n body.put(DATE_OF_BIRTH, null);\n }\n body.put(HEIGHT, profile.heightInMeters);\n body.put(WEIGHT, profile.weightInKg);\n if (!StringHelper.isNullOrEmpty(profile.avatarURI))\n {\n final HashMap<String, String> image =\n new HashMap<String, String>(3);\n image.put(TYPE, IMAGE);\n image.put(URL, profile.avatarURI);\n image.put(DESCRIPTION, PROFILE_AVATAR);\n body.put(IMAGE, image);\n }\n\n final Gson gson = new GsonBuilder().create();\n final String bodyJson = gson.toJson(body);\n\n final String endPoint =\n String.format(UPDATE_PROFILE_ENDPOINT, mSharecareToken.accountID);\n\n this.beginRequest(endPoint, ServiceMethod.POST, headers, parameters,\n bodyJson, ServiceResponseFormat.GSON,\n new ServiceResponseTransform<JsonElement, ResponseResult>()\n {\n @Override\n public ResponseResult transformResponseData(\n final JsonElement json)\n throws ServiceResponseTransformException\n {\n final ResponseResult result =\n checkResultFromAuthService(json);\n if (!StringHelper.isNullOrEmpty(result.errorMessage))\n {\n if (result.errorMessage.toLowerCase(Locale.US)\n .contains(\"invalid email address\"))\n {\n result.errorMessage = \"Please enter a valid email.\";\n }\n else if (result.errorMessage.toLowerCase(Locale.US)\n .contains(\"account already exists\"))\n {\n result.errorMessage =\n \"That email is already registered. Please try again with another email.\";\n }\n result.success = false;\n result.responseCode =\n ServiceClientConstants.SERVICE_RESPONSE_STATUS_CODE_BAD_PARAMETERS;\n }\n LogError(\"updateProfile\", result);\n return result;\n }\n }, completion);\n }",
"public interface ProfileService {\n\n /**\n * Get profile details from the service.\n *\n * @param profileId Profile Id of the user.\n * @param callback Callback with the result.\n */\n void getProfile(@NonNull final String profileId, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);\n\n /**\n * Query user profiles on the services.\n *\n * @param queryString Query string. See https://www.npmjs.com/package/mongo-querystring for query syntax. You can use {@link QueryBuilder} helper class to construct valid query string.\n * @param callback Callback with the result.\n */\n void queryProfiles(@NonNull final String queryString, @Nullable Callback<ComapiResult<List<Map<String, Object>>>> callback);\n\n /**\n * Updates profile for an active session.\n *\n * @param profileDetails Profile details.\n * @param callback Callback with the result.\n */\n void updateProfile(@NonNull final Map<String, Object> profileDetails, final String eTag, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);\n\n /**\n * Applies given profile patch if required permission is granted.\n *\n * @param profileId Id of an profile to patch.\n * @param profileDetails Profile details.\n * @param callback Callback with the result.\n */\n void patchProfile(@NonNull final String profileId, @NonNull final Map<String, Object> profileDetails, final String eTag, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);\n\n /**\n * Applies profile patch for an active session.\n *\n * @param profileDetails Profile details.\n * @param callback Callback with the result.\n */\n void patchMyProfile(@NonNull final Map<String, Object> profileDetails, final String eTag, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);\n }",
"@Override\n public void onChanged(@Nullable final Profile profile) {\n userProfile = profile;\n }",
"public BigDecimal getPROFILE_ID() {\r\n return PROFILE_ID;\r\n }",
"public void setProfileManager(ProfileManager profileManager) {\n _profileManager = profileManager;\n }",
"public boolean updateProfile(Profile profile) throws ProfileServiceException{\n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.entering(sourceClass, \"update\", profile);\n \t\t}\n \t\tif (profile == null) {\n \t\t\tthrow new IllegalArgumentException(Messages.InvalidArgument_3);\n \t\t}\n \t\tboolean result = true;\n \n \t\tMap<String, String> parameters = new HashMap<String, String>();\n \t\tparameters.put(ProfileRequestParams.OUTPUT, \"vcard\");\n \t\tparameters.put(ProfileRequestParams.FORMAT, \"full\");\n \t\tMap<String, String> headers = new HashMap<String, String>();\n \t\theaders.put(Headers.ContentType, Headers.ATOM);\n \t\tif (isEmail(profile.getReqId())) {\n \t\t\tparameters.put(ProfileRequestParams.EMAIL, profile.getReqId());\n \t\t} else {\n \t\t\tparameters.put(ProfileRequestParams.USERID, profile.getReqId());\n \t\t}\n \t\tObject updateProfilePayload = profile.constructUpdateRequestBody();\n \t\tString url = resolveProfileUrl(ProfileEntity.NONADMIN.getProfileEntityType(),\n \t\t\t\tProfileType.UPDATEPROFILE.getProfileType());\n \t\tresult = executePut(url, parameters, headers, updateProfilePayload, ClientService.FORMAT_NULL);\n \t\tprofile.clearFieldsMap();\n \t\tremoveProfileDataFromCache(profile.getReqId());\n \n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.exiting(sourceClass, \"update\");\n \t\t}\n \n \t\treturn result;\n \t}",
"protected String resolveProfileUrl(String profileEntity, String profileType) {\n \t\treturn resolveProfileUrl(profileEntity, profileType, null);\n \t}",
"public com.eviware.soapui.config.OAuth1ProfileConfig addNewOAuth1Profile()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.eviware.soapui.config.OAuth1ProfileConfig target = null;\n target = (com.eviware.soapui.config.OAuth1ProfileConfig)get_store().add_element_user(OAUTH1PROFILE$0);\n return target;\n }\n }",
"public String getProfile();",
"public void getUserProfile() {\n\t\tkeypad.UserProfiles.click();\n\t}",
"public abstract VisitorProfile save(VisitorProfile profile);",
"public String getProfile() {\n return profile;\n }"
]
| [
"0.6146448",
"0.60940945",
"0.59393144",
"0.5804389",
"0.5754655",
"0.56929517",
"0.56704533",
"0.5626681",
"0.56081027",
"0.5568012",
"0.5547834",
"0.55247664",
"0.5521069",
"0.5497587",
"0.54265934",
"0.5425154",
"0.5424834",
"0.5415253",
"0.53755873",
"0.5355247",
"0.5343375",
"0.5331922",
"0.5327886",
"0.53268063",
"0.5321682",
"0.53168195",
"0.5302375",
"0.5301861",
"0.52974784",
"0.5291633",
"0.5290525",
"0.5277892",
"0.52742505",
"0.52655554",
"0.523569",
"0.52341396",
"0.52310157",
"0.52226025",
"0.52104336",
"0.5200482",
"0.51992255",
"0.5198894",
"0.5191827",
"0.518557",
"0.51773715",
"0.5166732",
"0.514991",
"0.5137343",
"0.513529",
"0.5134835",
"0.5133546",
"0.51196384",
"0.51191485",
"0.51134676",
"0.5111672",
"0.51091427",
"0.51058745",
"0.509166",
"0.50908685",
"0.5085939",
"0.50854355",
"0.5082884",
"0.50816274",
"0.5062998",
"0.50528204",
"0.5050119",
"0.5049946",
"0.50469667",
"0.5031828",
"0.50307447",
"0.5030313",
"0.50255066",
"0.5019077",
"0.5014192",
"0.5004944",
"0.5000435",
"0.4993977",
"0.49938837",
"0.49906373",
"0.49893928",
"0.49838987",
"0.49834684",
"0.49828476",
"0.4981215",
"0.4978985",
"0.49727055",
"0.4972478",
"0.49642602",
"0.4960431",
"0.49588108",
"0.49380565",
"0.49292395",
"0.49217725",
"0.491892",
"0.49151582",
"0.49121425",
"0.49101174",
"0.48996028",
"0.48901132",
"0.4888291"
]
| 0.5293976 | 29 |
Returns the WireTransfer associated with this travel authorization | @Override
public PaymentSourceWireTransfer getWireTransfer() {
return wireTransfer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getTransferId() {\n return transferId;\n }",
"public Long getTransferId() {\n return transferId;\n }",
"public SepaDauerauftrag getTransfer() throws RemoteException\n\t{\n if (transfer != null)\n return transfer;\n\n Object o = getCurrentObject();\n if (o != null && (o instanceof SepaDauerauftrag))\n return (SepaDauerauftrag) o;\n \n transfer = (SepaDauerauftrag) Settings.getDBService().createObject(SepaDauerauftrag.class,null);\n return transfer;\n\t}",
"public Long getTransferToId() {\n return transferToId;\n }",
"public Travel getTravel() {\n return travel;\n }",
"private int getWallet() {\n\t\treturn wallet;\n\t}",
"public SammelTransfer getSammelTransfer() throws RemoteException;",
"public IAirport getDestination();",
"public ITransferObject getTo() {\r\n return getController().getTo();\r\n }",
"public Town getDestination() {\r\n\t\treturn this.destination;\r\n\t}",
"public WebElement bankTransferPaymentMode() {\n\t\treturn findElement(repositoryParser, PAGE_NAME, \"bankTransfer\");\n\t}",
"public Location getTransportDestination() {\n Tile target = (hasTools())\n ? ((!checkTileImprovementPlan(tileImprovementPlan)) ? null\n : tileImprovementPlan.getTarget())\n : ((!checkColonyForTools(getAIUnit(), colonyWithTools)) ? null\n : colonyWithTools.getTile());\n return (shouldTakeTransportToTile(target)) ? target : null;\n }",
"public String getTransferFormat() {\n return transferFormat;\n }",
"public Weather getDestinationWeather() {\r\n return destinationWeather;\r\n }",
"public Tunnel getTunnel();",
"AcctgTrans getAcctgTrans();",
"@Override\n public TransferRelation getTransferRelation() {\n return null;\n }",
"public String getTransactionAuthorizationGuidance() {\n return transactionAuthorizationGuidance;\n }",
"@JsonGetter(\"transfer\")\r\n @JsonInclude(JsonInclude.Include.NON_NULL)\r\n public InventoryTransfer getTransfer() {\r\n return transfer;\r\n }",
"public VTGateConnection getVtGateConnInstance() {\n counter++;\n counter = counter % vtGateIdentifiers.size();\n return vtGateConnHashMap.get(vtGateIdentifiers.get(counter));\n }",
"public double getMaxTransfer() {\n\t\treturn maxTransfer;\n\t}",
"public java.lang.String getTransferTxt() {\n java.lang.Object ref = transferTxt_;\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 transferTxt_ = s;\n return s;\n }\n }",
"public PlayerWallet getGameWallet() {\n return gameWallet;\n\n }",
"public Transmission getTransmission() {\n return transmission;\n }",
"public Long getTwomerchant() {\n return twomerchant;\n }",
"com.google.protobuf.ByteString\n getTransferTxtBytes();",
"public java.lang.String getTransferTxt() {\n java.lang.Object ref = transferTxt_;\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 transferTxt_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public AGateway getGateway()\r\n/* 16: */ {\r\n/* 17:36 */ return this.gateway;\r\n/* 18: */ }",
"TransferHandler getTransferHandler() {\n return defaultTransferHandler;\n }",
"public Object getTransactionRoutingInstanceRecord() {\n return transactionRoutingInstanceRecord;\n }",
"public Long getTraffic() {\n\t\treturn traffic;\n\t}",
"public Long getDestinationAirportId() {\n return destination.getId();\n }",
"@JsonIgnore public String getDepartureGate() {\n return (String) getValue(\"departureGate\");\n }",
"public T trip() {\n return trip;\n }",
"public com.google.protobuf.ByteString\n getTransferTxtBytes() {\n java.lang.Object ref = transferTxt_;\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 transferTxt_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private FileTransfer getFileTransferSession(String transferId) {\n ApiManager instance = ApiManager.getInstance();\n FileTransferService ftApi = instance.getFileTransferApi();\n if (ftApi == null) {\n Logger.d(TAG,\n \"getFileTransferSession() MessageingApi instance is null\");\n return null;\n }\n FileTransfer fileTransferSession = null;\n try {\n fileTransferSession = ftApi.getFileTransfer(transferId);\n } catch (JoynServiceException e) {\n Logger.e(TAG,\n \"getFileTransferSession() Get file session failed\");\n e.printStackTrace();\n fileTransferSession = null;\n } finally {\n return fileTransferSession;\n }\n }",
"public double getMinTransfer() {\n\t\treturn minTransfer;\n\t}",
"public Transport getTransport() {\n return transport;\n }",
"Transmission getTransmission(Long transmissionId);",
"public AuthorizationApi getAuthorization() {\n return authorizationApi;\n }",
"public java.util.List<TransferSerial> getTransferSerials() {\n return TransferSerials;\n }",
"com.google.protobuf.ByteString\n getTransitAirportBytes();",
"org.hyperledger.fabric.protos.token.Transaction.PlainTransfer getPlainTransfer();",
"public\t ProxyAuthorization getProxyAuthorizationHeader()\n { return (ProxyAuthorization)\n this.getHeader(ProxyAuthorizationHeader.NAME); }",
"public String getPassportCopyUpload() {\n\t\treturn passportCopyUpload;\n\t}",
"public com.google.protobuf.ByteString\n getTransferTxtBytes() {\n java.lang.Object ref = transferTxt_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n transferTxt_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public boolean hasTransferId() {\n return fieldSetFlags()[0];\n }",
"org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl getTrafficControl();",
"public BJADWizard<T> getWizard()\n {\n return this.wizard;\n }",
"java.lang.String getTransferTxt();",
"public\t Authorization getAuthorization()\n { return (Authorization) this.getHeader(AuthorizationHeader.NAME); }",
"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 java.util.List<TransferSerial> getTransferSerials() {\n return TransferSerials;\n }",
"public ClientTransaction getRegisterTransaction(){\n\t\treturn this.registerTransaction;\n\t}",
"public java.lang.String getDestinationAirport() {\r\n return destinationAirport;\r\n }",
"@java.lang.Override\n public com.dogecoin.protocols.payments.Protos.Payment getPayment() {\n return instance.getPayment();\n }",
"Destination getDestination();",
"public UUID getWalletId();",
"public MoneyTransfer getMoneyTransfer(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.moneytransfer.v1.MoneyTransfer res){\n\t\tMoneyTransfer moneyTransfer = new MoneyTransfer();\n\t\t\n\t\tmoneyTransfer.setTransferFromBooking( res.getTransferFromBooking());\n\t\tmoneyTransfer.setReason( res.getReason() );\n\t\tif( res.getAmountApplied() != null ){\n\t\t\tmoneyTransfer.setAmountApplied( res.getAmountApplied().doubleValue() );\n\t\t}\n\t\t\n\t\treturn moneyTransfer;\n\t}",
"public org.hyperledger.fabric.protos.token.Transaction.PlainTransfer getPlainTransfer() {\n if (dataCase_ == 2) {\n return (org.hyperledger.fabric.protos.token.Transaction.PlainTransfer) data_;\n }\n return org.hyperledger.fabric.protos.token.Transaction.PlainTransfer.getDefaultInstance();\n }",
"public Boolean getInTrafficZone() {\n return inTrafficZone;\n }",
"public double getTraffic() {\n return traffic;\n }",
"public com.google.protobuf.ByteString\n getTransitAirportBytes() {\n java.lang.Object ref = transitAirport_;\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 transitAirport_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Transaction.DirectionType getDirection() {\n\t\treturn direction;\n\t}",
"public Object getDestination() {\n/* 339 */ return this.peer.getTarget();\n/* */ }",
"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 getGateway() {\n return gateway;\n }",
"public Double getTransaction() {\r\n return transaction;\r\n }",
"public final AbstractWaypoint getWaypoint() {\n return this.waypointProperty().getValue();\n }",
"public TransferConfigurationTransferAllDetails() {\n }",
"@JsonIgnore public Distance getFlightDistanceDistance() {\n return (Distance) getValue(\"flightDistance\");\n }",
"public int getPlayerWallet() {\n\t\t\treturn playerWallet;\n\t\t}",
"public Location getDestination() {\r\n return destination;\r\n }",
"public Number getPlanTransferHdrIdFk() {\r\n return (Number) getAttributeInternal(PLANTRANSFERHDRIDFK);\r\n }",
"public abstract Response makeTransfer(Transaction transaction) throws AccountNotFoundException, InsufficientFundsException;",
"public Long getWalletId() {\r\n return walletId;\r\n }",
"public com.google.protobuf.ByteString\n getTransitAirportBytes() {\n java.lang.Object ref = transitAirport_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n transitAirport_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"protected final Direction getDirection() {\n\t\treturn tile.getDirection();\n\t}",
"public String getTrafficType() {\n return this.trafficType;\n }",
"public Location getDest() {\n return ticketsCalculator.getDest();\n }",
"protected TravelRouteFacade getTravelRouteFacade()\n\t{\n\t\treturn travelRouteFacade;\n\t}",
"public Transaction getTransaction() {\n return this.transaction;\n }",
"public Integer getTrip() {\n return trip;\n }",
"public FlightTransferInfo getFlightTransferInfo(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.flighttransferinfo.v1.FlightTransferInfo res){\n\t\tFlightTransferInfo flightTransferInfo = new FlightTransferInfo();\n\t\t\n\t\tflightTransferInfo.setGateway( res.getGateway() );\n\t\tflightTransferInfo.setDestination( res.getDestination() );\n\t\tflightTransferInfo.setFlightNo( res.getFlightNo() );\n\t\tflightTransferInfo.setRotation( res.getRotation() );\n\t\tif( res.getArrivalDate() != null ){\n\t\t\tflightTransferInfo.setArrivalDate( this.getDate( res.getArrivalDate() ) );\n\t\t}\n\t\tif( res.getDepartureDate() != null ){\n\t\t\tflightTransferInfo.setDepartureDate( this.getDate( res.getDepartureDate() ) );\n\t\t}\n\t\tif( res.getCarrier() != null ){\n\t\t\tflightTransferInfo.setCarrier( this.getCarrier( res.getCarrier() ) );\n\t\t}\n\t\t\n\t\treturn flightTransferInfo;\n\t}",
"public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.moneytransfer.v1.MoneyTransfer getMoneyTransferReq(MoneyTransfer moneyTransfer){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.moneytransfer.v1.MoneyTransfer moneyTransferReq = \n\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.moneytransfer.v1.MoneyTransfer();\n\t\t\n\t\tmoneyTransferReq.setTransferFromBooking( moneyTransfer.getTransferFromBooking() );\n\t\tmoneyTransferReq.setAmountApplied( new Double(moneyTransfer.getAmountApplied()) );\n\t\tmoneyTransferReq.setReason( moneyTransfer.getReason() );\n\t\t\n\t\treturn moneyTransferReq;\n\t}",
"public float getSubWC() {\r\n return costs.get(Transports.SUBWAY);\r\n }",
"public Long getExclusiveGatewayBandwidth() {\n return this.ExclusiveGatewayBandwidth;\n }",
"@JsonIgnore public Vehicle getAircraftVehicle() {\n return (Vehicle) getValue(\"aircraft\");\n }",
"public IAirport getOrigin();",
"boolean getNeedGatewayAuth();",
"public AccountPurchase getGifterAccount() {\n return this.gifterAccount;\n }",
"public org.hyperledger.fabric.protos.token.Transaction.PlainTransferOrBuilder getPlainTransferOrBuilder() {\n if (dataCase_ == 2) {\n return (org.hyperledger.fabric.protos.token.Transaction.PlainTransfer) data_;\n }\n return org.hyperledger.fabric.protos.token.Transaction.PlainTransfer.getDefaultInstance();\n }",
"public Integer getTraffic() {\n return traffic;\n }",
"public Integer getTraffic() {\n return traffic;\n }",
"@JsonIgnore public String getArrivalGate() {\n return (String) getValue(\"arrivalGate\");\n }",
"java.lang.String getTransitAirport();",
"public Direction getCurrentDirection() {\n synchronized (f_lock) {\n return f_currentDirection;\n }\n }",
"@JsonIgnore public Airport getDepartureAirport() {\n return (Airport) getValue(\"departureAirport\");\n }",
"public DriveTrain getDriveTrain() {\r\n return driveTrain;\r\n }",
"public ConnectionDTO getDto() {\n return dto;\n }"
]
| [
"0.5995441",
"0.5969192",
"0.5572317",
"0.5525961",
"0.5323677",
"0.52821594",
"0.52372354",
"0.51326334",
"0.5131404",
"0.5106952",
"0.510558",
"0.5074485",
"0.50738",
"0.50441533",
"0.5031525",
"0.50279117",
"0.5023422",
"0.5010667",
"0.49877566",
"0.49824804",
"0.49579254",
"0.49316394",
"0.49271446",
"0.49044958",
"0.49035874",
"0.48820734",
"0.48748156",
"0.4866258",
"0.48655555",
"0.48540068",
"0.48530492",
"0.48443764",
"0.4838547",
"0.4830788",
"0.48194426",
"0.48172808",
"0.48036394",
"0.4780991",
"0.478056",
"0.47735173",
"0.47609523",
"0.475398",
"0.47501191",
"0.4748008",
"0.47464782",
"0.47430587",
"0.47395182",
"0.47237378",
"0.47204357",
"0.47191522",
"0.47122976",
"0.4707299",
"0.47035763",
"0.46997073",
"0.46935138",
"0.46809465",
"0.46674544",
"0.46633643",
"0.46618047",
"0.4659209",
"0.46543968",
"0.4652622",
"0.4648397",
"0.46410853",
"0.4633942",
"0.46298692",
"0.46268",
"0.4616426",
"0.4605213",
"0.46039933",
"0.45994943",
"0.45988113",
"0.4597738",
"0.45903733",
"0.45900357",
"0.45862597",
"0.4581294",
"0.45793217",
"0.45745936",
"0.45640412",
"0.45622483",
"0.45588845",
"0.4558593",
"0.45539585",
"0.45484558",
"0.45386422",
"0.45367187",
"0.45353004",
"0.4534341",
"0.45336735",
"0.453195",
"0.4528967",
"0.4527934",
"0.4527934",
"0.4526091",
"0.4524859",
"0.45237145",
"0.45201337",
"0.45169324",
"0.45136803"
]
| 0.64816225 | 0 |
Sets the wire transfer for this travel authorization | public void setWireTransfer(PaymentSourceWireTransfer wireTransfer) {
this.wireTransfer = wireTransfer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTransmission(Transmission transmission) {\n this.transmission = transmission;\n }",
"public void setDriven( Wire w ) {\n\t\tErrors.warn( \"Gate output \" + name + \" cannot drive anything\" );\n\t}",
"public void setTravel(Travel travel) {\n this.travel = travel;\n }",
"@Override\n public PaymentSourceWireTransfer getWireTransfer() {\n return wireTransfer;\n }",
"public void setTransferListener(AbstractTransferListener transferListener) {\n\t\tthis.transferListener = transferListener;\t\n\t}",
"public void setTransmitMode(String transmitMode)\r\n\t{\r\n\t\tthis.transmitMode = transmitMode;\r\n\t}",
"public void setTraderPassword(String traderPassword) {\n this.traderPassword = traderPassword;\n }",
"public void setSammelTransfer(SammelTransfer s) throws RemoteException;",
"@Override\r\n\t\tpublic void setTradeTransfers(BackOfficePanel panel) {\n\t\t\ttransferPanel = (TransferPanel) panel;\r\n\t\t}",
"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 setTransmitRate(String transmitRate)\r\n\t{\r\n\t\tthis.transmitRate = transmitRate;\r\n\t}",
"public void setSettlement(Settlement set);",
"public void setAllowFlight ( boolean flight ) {\n\t\texecute ( handle -> handle.setAllowFlight ( flight ) );\n\t}",
"public void setWallet(IWallet wallet) {\n this.wallet = wallet;\n }",
"public void setTransferExchange(boolean transferExchange) {\n this.transferExchange = transferExchange;\n }",
"void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);",
"public void setDriveTrain(DriveTrain driveTrain) {\r\n this.driveTrain = driveTrain;\r\n }",
"public Builder setTransitAirportBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n transitAirport_ = value;\n onChanged();\n return this;\n }",
"public void setTransport(Transport transport) {\n this.transport = transport;\n }",
"public void setServicioCreditoTributario(ServicioCreditoTributario servicioCreditoTributario)\r\n/* 96: */ {\r\n/* 97:117 */ this.servicioCreditoTributario = servicioCreditoTributario;\r\n/* 98: */ }",
"public void setTransferId(Long value) {\n this.transferId = value;\n }",
"public void setTransmissionRange(double transmissionRange) {\r\n this.transmissionRange = transmissionRange;\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 setTransport(String value) {\n setAttributeInternal(TRANSPORT, value);\n }",
"public void setWind(float wind) {\n this.tx += wind;\n }",
"public void setRegisterTransaction(ClientTransaction registerTransaction){\n\t\tthis.registerTransaction=registerTransaction;\n\t}",
"public void setTravelAdvance(TravelAdvance travelAdvance) {\n this.travelAdvance = travelAdvance;\n }",
"public void setDirectionOfTravel(typekey.DirectionOfTravelPEL value);",
"void setTrafficControl(org.landxml.schema.landXML11.TrafficControlDocument.TrafficControl trafficControl);",
"public synchronized void setCommittedTx( long tx )\n {\n waitForSyncConnected();\n this.committedTx = tx;\n String root = getRoot();\n String path = root + \"/\" + machineId + \"_\" + sequenceNr;\n byte[] data = dataRepresentingMe( tx );\n try\n {\n zooKeeper.setData( path, data, -1 );\n }\n catch ( KeeperException e )\n {\n throw new ZooKeeperException( \"Unable to set current tx\", e );\n }\n catch ( InterruptedException e )\n {\n Thread.interrupted();\n throw new ZooKeeperException( \"Interrupted...\", e );\n }\n }",
"public Builder setTransferId(long value) {\n validate(fields()[0], value);\n this.transferId = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"public void setRequestProperty(String loginPasswordEncoded,HttpURLConnection connexion) {\r\n\t\t connexion.setRequestProperty(\"Authorization\", \"Basic \"+ loginPasswordEncoded);\r\n\t\t connexion.setDoOutput(true);\r\n\t\t connexion.setDoInput(true);\r\n\t }",
"public void setOther( Node other ) {\n Change change;\n if ( other.isConnector() && getFlow().hasConnector() ) {\n Connector connector = (Connector) other;\n Flow need = isSend() ? connector.getInnerFlow() : getFlow();\n Flow capability = isSend() ? getFlow() : connector.getInnerFlow();\n change = doCommand( new SatisfyNeed( getUser().getUsername(), need,\n capability,\n SatisfyNeed.KEEP_CAPABILITY,\n SatisfyNeed.KEEP_NEED ) );\n } else {\n change = doCommand( new RedirectFlow( getUser().getUsername(), getFlow(), other, isSend() ) );\n }\n Flow newFlow = (Flow) change.getSubject( getQueryService() );\n if ( newFlow != null ) { // TODO Find out why this has happened...\n // requestLockOn( newFlow );\n setFlow( newFlow );\n }\n }",
"public synchronized void set (double speed){\n m_liftSpeed = speed;\n if (m_liftSpeed < 0 && isLowerLimit() == false) {\n m_liftMotor.set(m_liftSpeed);\n } else if (m_liftSpeed > 0 && isUpperLimit() == false){\n m_liftMotor.set(m_liftSpeed);\n } else {\n m_liftSpeed = 0;\n m_liftMotor.set(0); \n }\n }",
"public TankDrive(DriveTrainSubsystem driveTrain) {\n // Use addRequirements() here to declare subsystem dependencies.\n driveTrainSubsystem = driveTrain;\n addRequirements(driveTrainSubsystem);\n }",
"public final void setChaining() {\n\theader[0] = (byte) (header[0] | 0x10);\n }",
"void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);",
"public void setTransaction(Double transaction) {\r\n this.transaction = transaction;\r\n }",
"public void setMinTransfer(double minTransfer) {\n\t\tthis.minTransfer = minTransfer;\n\t}",
"public Builder setPassBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n pass_ = value;\n onChanged();\n return this;\n }",
"public Builder setPassBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n pass_ = value;\n onChanged();\n return this;\n }",
"public void setDirection(byte value) \n\t{\n\t\tdirection = value;\n\t}",
"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 }",
"public void setWalletBO(IWalletBO walletBO) {\r\n\r\n\t\tthis.walletBO = walletBO;\r\n\t}",
"@Override\r\n\tpublic void setForPermit(DriverVO driverVO) {\n\t\t\r\n\t}",
"public void setPass(String aPass) {\n pass = aPass;\n }",
"public void setTraffic(Float traffic) {\r\n this.traffic = traffic;\r\n }",
"public Builder setTransferTxtBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n transferTxt_ = value;\n onChanged();\n return this;\n }",
"public void startTransit() {\n\t\tthis.currentDriver.setStatus(Status.INTRANSIT);\n\t\tthis.currentDriver.setStatus(Status.FINISHED);\n\t\tthis.passenger.setLocation(currentRide.getDropOff());\n\t\tthis.currentDriver.setLocation(currentRide.getDropOff());\n\t\tthis.finishRide();\n\t}",
"public void setTrustStorePassword(String trustStorePassword) {\n if (!complete) {\n this.trustStorePassword = trustStorePassword;\n } else {\n log.warn(\"Connection Descriptor setter used outside of factory.\");\n }\n }",
"public void setTwomerchant(Long twomerchant) {\n this.twomerchant = twomerchant;\n }",
"protected void setWizard(BJADWizard<T> wizard)\n {\n this.wizard = wizard;\n }",
"private void driveForwardEnc()\r\n\t{\r\n\t\t//drive.setPos(0, 0, Config.Auto.encDriveForwardDistance, Config.Auto.encDriveForwardDistance);\r\n\t}",
"public final void setLE(byte le) {\n\tif (le == (byte) 0x00) {\n\t setLE(256);\n\t} else {\n\t setLE(le & 0xFF);\n\t}\n }",
"public void setValueOfTransceiver(double valueOfTransceiver) {\n\t\tthis.valueOfTransceiver = valueOfTransceiver;\n\t}",
"TransportTruck() {\n x = 0;\n y = 0;\n nrDoors = 2;\n enginePower = 1000;\n currentSpeed = 0;\n color = Color.red;\n modelName = \"Transport Truck\";\n\n storage = new StorageUnit(this, 5);\n\n stopEngine();\n }",
"public void setTrade(Trade t)\n\t{\n\t\tm_trade = t;\n\t}",
"@Override\r\n\tpublic void setTrade(Trade trade) {\n\t\t this.trade = trade;\r\n\t}",
"public void setDirect(boolean b) {\r\n\t\tdirectDeposit = b;\r\n\t}",
"public void setGateway(AGateway gateway)\r\n/* 21: */ {\r\n/* 22:41 */ this.gateway = gateway;\r\n/* 23: */ }",
"public void setDestination(TransactionAccount destination){\n if(destination.getTransactionAccountType().getAccountType() == AccountType.INCOME\n && this.getSource() != null\n && this.getSource().getTransactionAccountType().getAccountType() != AccountType.INITIALIZER){\n throw new BTRestException(MessageCode.INCOME_CANNOT_BE_DESTINATION,\n \"Transaction account with type income cannot be used as a source in destination\",\n null);\n }\n this.destination = destination;\n }",
"public void setInternalRelay(StanzaRelay internalRelay) {\n this.internalRelay = internalRelay;\n }",
"public Lift (SpeedController liftMotor) {\n m_liftMotor = liftMotor;\n }",
"public void setToStation(String toStation);",
"void setFlow(double amount);",
"public void set_pass(String password)\n {\n pass=password;\n }",
"private void setMainTankDir() {\n Dir dir = myTank.getDir();\n\n if(!bL&&!bU&&!bR&&!bD){\n myTank.setMoving(false);\n Client.INSTANCE.send(new TankStopMsg(getMyTank()));\n }else {\n if (bL) myTank.setDir(Dir.LEFT);\n if (bU) myTank.setDir(Dir.UP);\n if (bR) myTank.setDir(Dir.RIGHT);\n if (bD) myTank.setDir(Dir.DOWN);\n if (bL && bU) myTank.setDir(Dir.LEFT_UP);\n if (bL && bD) myTank.setDir(Dir.LEFT_DOWN);\n if (bR && bU) myTank.setDir(Dir.RIGHT_UP);\n if (bR && bD) myTank.setDir(Dir.RIGHT_DOWN);\n if(!myTank.isMoving())\n Client.INSTANCE.send(new TankStartMovingMsg(getMyTank()));\n myTank.setMoving(true);\n\n if(dir != myTank.getDir()) {\n Client.INSTANCE.send(new TankDirChangedMsg(myTank));\n }\n }\n }",
"public void enableBuyEntrance(){\r\n\t\tbuyEntrance = true;\r\n\t\tbuildHotel = true;\r\n\t}",
"public void transfer (AttributeTriMesh at)\n {\n at.tmesh = tmesh;\n }",
"public void setDeliveryTruck(MarketDeliveryTruck dtruck) {\n\t\tdeliverytruck = dtruck;\n\t}",
"@Override\n public void toCopy() throws WorkflowException {\n super.toCopy();\n travelAdvancesForTrip = null;\n setTravelDocumentIdentifier(null);\n if (!(this instanceof TravelAuthorizationCloseDocument)) { // TAC's don't have advances\n initiateAdvancePaymentAndLines();\n }\n }",
"public void setBetrag(double betrag) throws RemoteException;",
"SerialResponse transfer(PinTransferPost pinTransferPost);",
"public void setMaxTransfer(double maxTransfer) {\n\t\tthis.maxTransfer = maxTransfer;\n\t}",
"public Lift (SpeedController liftMotor, DigitalInput lowerLimit, DigitalInput upperLimit) {\n m_liftMotor = liftMotor;\n m_lowerLimit = lowerLimit;\n m_upperLimit = upperLimit;\n }",
"public void userDriveTank() {\n\t\tdouble leftValue = Robot.OI.getLeftJoystick().getAxis(Joystick.AxisType.kY);\n\t\tdouble rightValue = Robot.OI.getRightJoystick().getAxis(Joystick.AxisType.kY);\n\t\t\n\t\tdrive.tankDrive(leftValue, rightValue);\n\t}",
"public void setDrivePower(double leftWheel, double rightWheel) {\n // Output the values to the motor drives.\n leftDrive.setPower(leftWheel);\n rightDrive.setPower(rightWheel);\n }",
"public void setVehicle(VehicleAgent vehicle) {\n\t\tthis.vehicle = vehicle;\n\t}",
"public void setTraffic(Long traffic) {\n\t\tthis.traffic = traffic;\n\t}",
"public void setSWDES(int param) {\r\n this.localSWDES = param;\r\n }",
"public void setFromStation(String fromStation);",
"void setMovimentoPassante(boolean passante);",
"void setSolicitarCredito(com.soa.SolicitarCreditoDocument.SolicitarCredito solicitarCredito);",
"@Override\n public void setDirection(Direction direction) {\n\n }",
"private void setMerchantData(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000001;\n merchantData_ = value;\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 setStrength(float strength)\n {\n this.strength = strength;\n }",
"public void setTraffic(Integer traffic) {\n this.traffic = traffic;\n }",
"public void setTraffic(Integer traffic) {\n this.traffic = traffic;\n }",
"public final GetHTTP setPassword(final String password) {\n properties.put(PASSWORD_PROPERTY, password);\n return this;\n }",
"public synchronized void set_sendbyte(byte b0, byte b1) {\n sendbyte0 = b0;sendbyte1 = b1;\n }",
"public void setAuthorization(Authorization authorization) {\n client.setAuthorization(authorization);\n }",
"@Override\n public void initialize() {\n setPoint = (((targetAngle + driveSubsystem.getHeading() + 180) % 360) - 180);\n }",
"public void setPathway(PathwayHolder p)\r\n\t{\n\t}",
"public void setStartCoordsMovement(Point2D transferCoord) \r\n\t{\n\t\tthis.movementCoords = new Point2D(transferCoord.getX() - this.getLayoutX(), transferCoord.getY() - this.getLayoutY());\r\n\t}",
"public LWTRTPdu connectReq() throws IncorrectTransitionException;",
"private void setMerchantData(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000020;\n merchantData_ = value;\n }",
"public PartySkillTransferCache(UserVisit userVisit, EmployeeControl employeeControl) {\n super(userVisit, employeeControl);\n \n partyControl = Session.getModelController(PartyControl.class);\n }",
"public Long getTransferId() {\n return transferId;\n }",
"public Settlement(Game game, Player owner, String name, Tile tile) {\n super(game);\n this.owner = owner;\n this.name = name;\n this.tile = tile;\n \n setType(owner.getNationType().getSettlementType(false));\n }"
]
| [
"0.5650382",
"0.554578",
"0.54700744",
"0.5433626",
"0.54202265",
"0.5337667",
"0.5265814",
"0.5250276",
"0.5223687",
"0.5194311",
"0.5161818",
"0.5158836",
"0.5120126",
"0.5088214",
"0.5070107",
"0.50645584",
"0.506311",
"0.5061587",
"0.50264144",
"0.5019524",
"0.50064564",
"0.50011915",
"0.49766794",
"0.49698743",
"0.495006",
"0.4939721",
"0.49164882",
"0.49161983",
"0.49156168",
"0.49148792",
"0.49129272",
"0.4909355",
"0.48981512",
"0.48962346",
"0.4892261",
"0.48784778",
"0.48634365",
"0.4859175",
"0.48421258",
"0.48310062",
"0.48310062",
"0.4822062",
"0.4808798",
"0.47997433",
"0.47977975",
"0.47949582",
"0.47915396",
"0.47426718",
"0.47387412",
"0.47341436",
"0.47317535",
"0.4716839",
"0.4706421",
"0.47043538",
"0.46846303",
"0.4673311",
"0.46696034",
"0.46679866",
"0.46663165",
"0.4661948",
"0.465682",
"0.46514818",
"0.46473652",
"0.46369517",
"0.4634597",
"0.4628709",
"0.46254942",
"0.4608274",
"0.4592931",
"0.458645",
"0.45855823",
"0.4581682",
"0.45775267",
"0.45761845",
"0.45744848",
"0.4568578",
"0.4565488",
"0.45644578",
"0.45610386",
"0.45601302",
"0.45553845",
"0.4554064",
"0.45521656",
"0.45472783",
"0.45469546",
"0.45408136",
"0.45375758",
"0.45301646",
"0.45301646",
"0.45259064",
"0.45232993",
"0.452319",
"0.45218244",
"0.45205295",
"0.45191455",
"0.451903",
"0.45189306",
"0.45166957",
"0.4516092",
"0.4515467"
]
| 0.70244473 | 0 |
Returns the cancel date from the travel payment | public Date getCancelDate() {
return this.getAdvanceTravelPayment().getCancelDate();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getPreviousCloseDate();",
"protected MessageBody cancel() {\n\t\tPlatformMessage msg = cancelRequest(incidentAddress).getMessage();\n\t\talarm.cancel(context, msg);\n\t\treturn msg.getValue();\n\t}",
"public static URL getUrlForRequestSubCancel()\r\n {\r\n String rop = P.isCountryNop() ? \"rop_\" : \"\";\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/subscription/subscription_and_vehicle/\"+rop+\"cancellation_request\";\r\n return str2url( strUrl );\r\n }",
"public Date getDataCancellazione() {\n\t\treturn dataCancellazione;\n\t}",
"public String getCancelReason() {\n return cancelReason;\n }",
"CancelOrderResponse cancelOrder(CancelOrderRequest cancelOrderRequest);",
"public void onClick(DialogInterface dialog, int which) {\n msgBox.Show(\"Warning\", \"DayEnd operation has been cancelled, Transaction date remains same\");\n }",
"Date getDueDate();",
"Date getDueDate();",
"private void calculatePaymentDate() {\n\t\t\tBmoReqPayType bmoReqPayType = (BmoReqPayType)reqPayTypeListBox.getSelectedBmObject();\n\t\t\tif (bmoReqPayType == null && bmoRequisition.getReqPayTypeId().toInteger() > 0) {\n\t\t\t\tbmoReqPayType = bmoRequisition.getBmoReqPayType();\n\t\t\t}\n\t\t\tif (bmoReqPayType != null) {\n\t\t\t\tif (!deliveryDateBox.getTextBox().getValue().equals(\"\")) {\n\t\t\t\t\tDate dueDate = DateTimeFormat.getFormat(getUiParams().getSFParams().getDateFormat()).parse(deliveryDateBox.getTextBox().getValue());\n\t\t\t\t\tCalendarUtil.addDaysToDate(dueDate, bmoReqPayType.getDays().toInteger());\n\t\t\t\t\tpaymentDateBox.getDatePicker().setValue(dueDate);\n\t\t\t\t\tpaymentDateBox.getTextBox().setValue(GwtUtil.dateToString(dueDate, getSFParams().getDateFormat()));\n\t\t\t\t}\n\t\t\t} else reqPayTypeListBox.setSelectedId(\"-1\");\t\t\t\t\n\t\t}",
"String getCloseDate();",
"Date getInvoicedDate();",
"@Override\n\tpublic void cancelCalendar(CalendarEdit edit) {\n\t\t\n\t}",
"@ApiModelProperty(value = \"The date/time that the auto order was canceled\")\r\n public String getCanceledDts() {\r\n return canceledDts;\r\n }",
"@ApiModelProperty(value = \"The reason this auto order was canceled by either merchant or customer\")\r\n public String getCancelReason() {\r\n return cancelReason;\r\n }",
"CancelPaymentResponse cancelPayment(Integer paymentId) throws ResourceNotFoundException, BadInputException;",
"public String getRevokeDate() {\r\n return revokeDate;\r\n }",
"public void cancel(OrderInternal order_, String cancellationCommentLanguageKey_, OrderManagementContext orderManagementContext_);",
"long getSettlementDate();",
"public CustDashboardPage cancelPayment(ExtentTest extentedReport) throws Exception {\n\t\tCustDashboardPage objCustDashboardPage = null;\n\t\ttry {\n\t\t\tbtnCancelPayment.click();\n\t\t\tLog.message(\"Clicked on 'Cancel' payment button\", extentedReport);\n\t\t\tWaitUtils.waitForSpinner(driver);\n\t\t\tWaitUtils.waitForElementPresent(driver, btnCancelPaymentYes,\n\t\t\t\t\t\"Timed out to wait for 'Yes' button in cancel warning pop-up\");\n\t\t\tbtnCancelPaymentYes.click();\n\t\t\tLog.message(\"Clicked on 'Yes' button in cancel warning pop-up\", extentedReport);\n\t\t\tWaitUtils.waitForSpinner(driver);\n\t\t\tobjCustDashboardPage = new CustDashboardPage(driver, extentedReport).get();\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(\"Unable to cancel the payment. \" + e);\n\t\t}\n\t\treturn objCustDashboardPage;\n\t}",
"public String getReceivalDate(){\n\t\treturn this.receivalDate;\n\t}",
"CancelPaymentResponse getCancelPaymentById(Integer paymentId) throws ResourceNotFoundException;",
"public String transaction_cancel(int reservationId) {\r\n // only implement this if you are interested in earning extra credit for the HW!\r\n\t\ttry {\r\n\t\t\tif (username == null){\r\n\t\t\t\treturn \"Cannot pay, not logged in\\n\";\r\n\t\t\t}\r\n\t\t\tbeginTransaction();\r\n\r\n\t\t\tsearchFirstFidStatement.clearParameters();\r\n\t\t\tsearchFirstFidStatement.setString(1, username);\r\n\t\t\tsearchFirstFidStatement.setInt(2, reservationId);\r\n\t\t\tResultSet cancel = searchFirstFidStatement.executeQuery();\r\n\t\t\t\r\n\t\t\tsearchSecondFidStatement.clearParameters();\r\n\t\t\tsearchSecondFidStatement.setString(1, username);\r\n\t\t\tsearchSecondFidStatement.setInt(2, reservationId);\r\n\t\t\tResultSet cancel2 = searchSecondFidStatement.executeQuery();\r\n\t\t\t\r\n\t\t\tif (cancel.isBeforeFirst()){\r\n\t\t\t\tcancel.next();\r\n\t\t\t\tcancelReservationStatement.setString(1, username);\r\n\t\t\t\tcancelReservationStatement.setInt(2, reservationId);\r\n\t\t\t\tcancelReservationStatement.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tint firstFID = cancel.getInt(\"fid1\");\r\n\t\t\t\tcheckBookingStatement.clearParameters();\r\n\t\t\t\tcheckBookingStatement.setInt(1, firstFID);\r\n\t\t\t\tResultSet f1 = checkBookingStatement.executeQuery();\r\n\t\t\t\tint current1 = f1.getInt(\"count\");\r\n\t\t\t\tupdateBookingStatement.clearParameters();\r\n\t\t\t\tupdateBookingStatement.setInt(1, current1-1);\r\n\t\t\t\tupdateBookingStatement.setInt(2, firstFID);\r\n\t\t\t\tupdateBookingStatement.executeQuery();\r\n\t\t\t} else {\r\n\t\t\t\trollbackTransaction();\r\n\t\t\t}\r\n\t\t\tif (cancel2.next()){\r\n\t\t\t\tint secondFID = cancel2.getInt(\"fid2\");\r\n\t\t\t\tcheckBookingStatement.clearParameters();\r\n\t\t\t\tcheckBookingStatement.setInt(1, secondFID);\r\n\t\t\t\tResultSet f2 = checkBookingStatement.executeQuery();\r\n\t\t\t\tint current2 = f2.getInt(\"count\");\r\n\t\t\t\tupdateBookingStatement.clearParameters();\r\n\t\t\t\tupdateBookingStatement.setInt(1, current2-1);\r\n\t\t\t\tupdateBookingStatement.setInt(2, secondFID);\r\n\t\t\t\tupdateBookingStatement.executeQuery();\r\n\t\t\t}\r\n\t\t\tcommitTransaction();\r\n\t\t\treturn \"Canceled reservation \" + reservationId + \"\\n\";\r\n\r\n\t\t} catch (SQLException e){\r\n\t\t\t//rollbackTransaction();\r\n\t\t\treturn \"Failed to cancel reservation \" + reservationId;\r\n\t\t}\r\n }",
"@RequestMapping(value = \"/punchout/cxml/cancel\", method = RequestMethod.GET)\r\n\tpublic String cancelRequisition(final Model model, final HttpServletRequest request) throws InvalidCartException,\r\n\t\t\tCMSItemNotFoundException\r\n\t{\r\n\t\tfinal CXML cXML = punchOutService.processCancelPunchOutOrderMessage();\r\n\t\tprocessRequisitionMessage(cXML, model, request);\r\n\r\n\t\treturn ADDON_PREFIX + BASE_ADDON_PAGE_PATH + \"/punchout/punchoutSendOrderPage\";\r\n\t}",
"public ClientViewDetailsPage cancelAndGotoClientViewDetailsPage(SubmitFormParameters parameters) {\n selenium.click(\"customerchangeStatus.button.cancel\");\n waitForPageToLoad();\n return new ClientViewDetailsPage(selenium);\n }",
"@Array({9}) \n\t@Field(18) \n\tpublic Pointer<Byte > CancelTime() {\n\t\treturn this.io.getPointerField(this, 18);\n\t}",
"@Override\n\tpublic void CancelOrder(Order order) {\n\t\t\n\t}",
"@Override\n public String getDescription() {\n return \"Bid order cancellation\";\n }",
"@Override\r\n\tpublic NotesDateTime getCutoffDate() throws NotesApiException {\n\t\treturn null;\r\n\t}",
"@Override\n public String getDescription() {\n return \"Ask order cancellation\";\n }",
"public Calendar getReturnDate()\n\t{\n\t\treturn this.arrival;\n\t}",
"private BotApiMethod<Message> handleCancelCourtBooking(Message message, GoogleCloudDialogflowV2beta1QueryResult response) {\n User telegramUser = message.getFrom();\n Optional<com.edu.squashbot.telegram.entity.User> userOpt = userService.getUser(telegramUser);\n if (userOpt.isEmpty()) {\n throw new RuntimeException(\"wtf, no user\");\n }\n\n // get booking dates\n var user = userOpt.get();\n Map<String, String> idToBookingDateMap = bookingService.getBookingsForUser(user).stream()\n .collect(toMap(\n courtBooking -> \"CourtBookingId:\" + courtBooking.getId(),\n courtBooking -> courtBooking.getCourt().getName() + \", \" + courtBooking.getStart().format(dateTimeFormatter)));\n\n if (!idToBookingDateMap.isEmpty()) {\n return getKeyboardMessage(message, response.getFulfillmentText(), idToBookingDateMap);\n } else {\n return createMessage(message.getChatId(), i18nService.getMessage(\"court.noBookings\"));\n }\n }",
"private void cancel(){\n if(isFormEmpty()){\n finish();\n }else{\n // Confirmation dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(getString(R.string.cancel_booking_creation_confirmation));\n // When users confirms dialog, end activity\n builder.setPositiveButton(android.R.string.ok, (dialog, which) -> {\n finish();\n });\n\n // Do nothing if cancel\n builder.setNegativeButton(android.R.string.cancel, null);\n\n AlertDialog dialog = builder.create();\n dialog.show();\n\n // Change button colors\n Button positiveButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = dialog.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }\n }",
"public String getReturnDate();",
"public Calendar getDueDate(){\n return dueDate;\n }",
"public static URL getUrlForRequestDeleteAccAir()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/account/cancellation_request\";\r\n return str2url( strUrl );\r\n }",
"public String transaction_cancel(int reservationId)\n\t{\n\t\tif (this.username == null) {\n\t\t\treturn \"Cannot cancel reservations, not logged in\\n\";\n\t\t}\n\t\ttry {\n\t\t\tbeginTransaction();\n\t\t\tif (checkNotCanceledReservation(reservationId)){\n\t\t\t\t//canceling Reservation, set cancel = 1\n\t\t\t\tcancelReservation(reservationId);\n\t\t\t\t//refund for canceled Reservation\n\t\t\t\tgetReservationStatement.clearParameters();\n\t\t\t\tgetReservationStatement.setString(1, this.username);\n\t\t\t\tgetReservationStatement.setInt(2, reservationId);\n\t\t\t\tResultSet result = getReservationStatement.executeQuery();\n\t\t\t\tresult.next();\n\t\t\t\tupdateBalance(getBalance() + result.getInt(7));\n\t\t\t\tresult.close();\n\t\t\t\tcommitTransaction();\n\t\t\t\treturn \"Canceled reservation \" + reservationId + \"\\n\";\n\t\t\t} \n\t\t\trollbackTransaction();\n\t\t\treturn \"Failed to cancel reservation \" + reservationId + \"\\n\" + (DEBUG ? \"1\\n\" : \"\");\n\t\t} catch (Exception e) {\n\t\t\tif (DEBUG) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\trollbackTransaction();\n\t\t\treturn \"Failed to cancel reservation \" + reservationId + \"\\n\" + (DEBUG ? \"2\\n\" : \"\");\n\t\t}\n\t}",
"public Calendar getReturnDate()\n {\n /*New Calendar for Return Date*/\n Calendar dueDate = Calendar.getInstance();\n\n /*Month is Current Month*/\n dueDate.set(today.MONTH, today.get(today.MONTH));\n /*Year is Current Year*/\n dueDate.set(today.YEAR, today.get(today.YEAR));\n /*Due Date is 21 Days Later*/\n dueDate.set(today.DATE, today.get(today.DATE + 21));\n\n return dueDate;\n }",
"public void cancelTrip() {\n\t\n\t\t// TODO - fill in here\n\t\tIntent intent = new Intent();\n\t\tsetResult(RESULT_CANCELED,intent);\n\t\tfinish();\n\t}",
"private void cancel() {\n recoTransaction.cancel();\n }",
"public void setCancelMettingTime( Date cancelMettingTime ) {\n this.cancelMettingTime = cancelMettingTime;\n }",
"public CancelOrderRequest( LocalDateTime time, int orderId, String tag ) {\n super( time, orderId, tag );\n }",
"public String getCancel() {\n Navigation nav = (Navigation) BeanHelper.getApplicationBean(Navigation.class);\n return nav.getCollectionUrl() + ObjectHelper.getId(getCollection().getId()) + \"/\"\n + nav.getInfosPath() + \"?init=1\";\n }",
"String getDueDateofTransmission(Long transmissionid);",
"public String getPayoutDate() {\n return payoutDate;\n }",
"public void testCreateCancel() {\n\t\ttry {\n\t\t\tRequest invite = createTiInviteRequest(null, null, null);\n\t\t\tClientTransaction tran = null;\n\t\t\ttry {\n\t\t\t\ttran = tiSipProvider.getNewClientTransaction(invite);\n\t\t\t} catch (TransactionUnavailableException exc) {\n\t\t\t\tthrow new TiUnexpectedError(\n\t\t\t\t\t\"A TransactionUnavailableException was thrown while trying to \"\n\t\t\t\t\t\t+ \"create a new client transaction\",\n\t\t\t\t\texc);\n\t\t\t}\n\t\t\t\n\t\t\t// see if creating a dialog matters\n\t\t\ttran.getDialog();\n\t\t\t\n\t\t\tRequest cancel = null;\n\t\t\ttry {\n\t\t\t\tcancel = tran.createCancel();\n\t\t\t} catch (SipException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t\tfail(\"Failed to create cancel request!\");\n\t\t\t}\n\t\t\tassertEquals(\n\t\t\t\t\"The created request did not have a CANCEL method.\",\n\t\t\t\tcancel.getMethod(),\n\t\t\t\tRequest.CANCEL);\n\t\t\tassertEquals(\n\t\t\t\t\"Request-URIs of the original and the cancel request do not match\",\n\t\t\t\tcancel.getRequestURI(),\n\t\t\t\tinvite.getRequestURI());\n\t\t\tassertEquals(\n\t\t\t\t\"Call-IDs of the original and the cancel request do not match\",\n\t\t\t\tcancel.getHeader(CallIdHeader.NAME),\n\t\t\t\tinvite.getHeader(CallIdHeader.NAME));\n\t\t\tassertEquals(\n\t\t\t\t\"ToHeaders of the original and the cancel request do not match\",\n\t\t\t\tcancel.getHeader(ToHeader.NAME),\n\t\t\t\tinvite.getHeader(ToHeader.NAME));\n\t\t\tassertTrue(\n\t\t\t\t\"The CSeqHeader's sequence number of the original and \"\n\t\t\t\t\t+ \"the cancel request do not match\",\n\t\t\t\t((CSeqHeader) cancel.getHeader(CSeqHeader.NAME))\n\t\t\t\t\t.getSeqNumber()\n\t\t\t\t\t== ((CSeqHeader) invite.getHeader(CSeqHeader.NAME))\n\t\t\t\t\t\t.getSeqNumber());\n\t\t\tassertEquals(\n\t\t\t\t\"The CSeqHeader's method of the cancel request was not CANCEL\",\n\t\t\t\t((CSeqHeader) cancel.getHeader(CSeqHeader.NAME)).getMethod(),\n\t\t\t\tRequest.CANCEL);\n\t\t\tassertTrue(\n\t\t\t\t\"There was no ViaHeader in the cancel request\",\n\t\t\t\tcancel.getHeaders(ViaHeader.NAME).hasNext());\n\t\t\tIterator cancelVias = cancel.getHeaders(ViaHeader.NAME);\n\t\t\tViaHeader cancelVia = ((ViaHeader) cancelVias.next());\n\t\t\tViaHeader inviteVia =\n\t\t\t\t((ViaHeader) invite.getHeaders(ViaHeader.NAME).next());\n\t\t\tassertEquals(\n\t\t\t\t\"ViaHeaders of the original and the cancel request do not match!\",\n\t\t\t\tcancelVia,\n\t\t\t\tinviteVia);\n\t\t\tassertFalse(\n\t\t\t\t\"Cancel request had more than one ViaHeader.\",\n\t\t\t\tcancelVias.hasNext());\n\t\t\t\n\t\t\tassertEquals( \"To tags must match\", \n\t\t\t\t((ToHeader) invite.getHeader(\"to\")).getTag(),\n\t\t\t\t((ToHeader) cancel.getHeader(\"to\")).getTag()\n\t\t\t); \n\t\t\t\n\t\t\tassertEquals( \"From tags must match\", \n\t\t\t\t\t((FromHeader) invite.getHeader(\"from\")).getTag(),\n\t\t\t\t\t((FromHeader) cancel.getHeader(\"from\")).getTag()\n\t\t\t); \n\t\t\t\n\t\t\tassertEquals( \"Max-Forwards must match\", \n\t\t\t\t\tinvite.getHeader( MaxForwardsHeader.NAME ),\n\t\t\t\t\tcancel.getHeader( MaxForwardsHeader.NAME )\n\t\t\t); \n\t\t\t\n\t\t\t\n\t\t} catch (Throwable exc) {\n\t\t\texc.printStackTrace();\n\t\t\tfail(exc.getClass().getName() + \": \" + exc.getMessage());\n\t\t}\n\n\t\tassertTrue(new Exception().getStackTrace()[0].toString(), true);\n\n\t}",
"@Override\n public String getResumeDate() {\n return operate_time;\n }",
"public String getIncomingPaymentDate() {\n return incomingPaymentDate;\n }",
"public Vector getRpCancelForm(String yyyymm)throws Exception \n\t{\n\t\tSystem.out.println(\" innser gtRPCancelForm : \"+ yyyymm); \n\t\tVector v = new Vector(); \n\t\tMrecord rpc = CFile.opens(\"cancelform@insuredocument\"); \n\t\trpc.start(0); //(deptCode docCode cancelDate startNo)\n\t\tString fRI = \"0\"; \n\t\tString fROW = \"0\"; \t\t\n\t\tString fR17\t= \"0\"; \n\t\tString fCI = \"0\"; \n\t\tString fCOW = \"0\"; \n\t\tString fC17\t= \"0\";\n\n\t\tSystem.out.println(\" branch : \" + branch); \n\t\tboolean okfind = rpc.equalGreat(branch); \n\t\tSystem.out.println(\" okfind : \"+okfind); \n\t\tfor (; okfind && branch.compareTo(rpc.get(\"deptCode\").trim()) == 0; okfind = rpc.next())\t\t\t\n\t\t{\n\t\t\tSystem.out.println(\" --->>. innerloop : \"+ rpc.get(\"cancelDate\").substring(0, 6)); \n\t\t\tif (yyyymm.compareTo(rpc.get(\"cancelDate\").substring(0, 6)) != 0)\n\t\t\t\tcontinue; \n\t\t\tSystem.out.println(\" --->>. status : \" + rpc.get(\"status\") + \" docCode : \"+rpc.get(\"status\")); \n\t\t\tif (\"R\".compareTo(rpc.get(\"status\").trim()) == 0 )\n\t\t\t{\n\t\t\t\tif (rpc.get(\"docCode\").trim().compareTo(\"01\") == 0)\n\t\t\t\t\tfRI = M.addnum(fRI, calNum(rpc.get(\"startNo\"), rpc.get(\"lastNo\"))); \t\t\t\t\n\t\t\t\telse if (rpc.get(\"docCode\").trim().compareTo(\"02\") == 0 || rpc.get(\"docCode\").trim().compareTo(\"03\") == 0)\n\t\t\t\t\tfROW = M.addnum(fROW, calNum(rpc.get(\"startNo\"), rpc.get(\"lastNo\"))); \t\t\t\t\t\t\t\t\n\t\t\t\telse if (\trpc.get(\"docCode\").trim().compareTo(\"17\") == 0 || \n\t\t\t\t\t\t\trpc.get(\"docCode\").trim().compareTo(\"22\") == 0 )\n\t\t\t\t\tfR17 = M.addnum(fR17, calNum(rpc.get(\"startNo\"), rpc.get(\"lastNo\"))); \t\t\t\t\t\t\t\t\n\t\t\t}\t\n\t\t\telse if (\"C\".compareTo(rpc.get(\"status\").trim()) == 0 )\n\t\t\t{\n\t\t\t\tif (rpc.get(\"docCode\").trim().compareTo(\"01\") == 0)\n\t\t\t\t\tfCI = M.addnum(fCI, calNum(rpc.get(\"startNo\"), rpc.get(\"lastNo\"))); \t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\telse if (rpc.get(\"docCode\").trim().compareTo(\"02\") == 0 || rpc.get(\"docCode\").trim().compareTo(\"03\") == 0 )\n\t\t\t\t\tfCOW = M.addnum(fCOW, calNum(rpc.get(\"startNo\"), rpc.get(\"lastNo\")));\n\t\t\t\telse if (rpc.get(\"docCode\").trim().compareTo(\"17\") == 0 || rpc.get(\"docCode\").trim().compareTo(\"22\") == 0 )\n\t\t\t\t\tfC17 = M.addnum(fC17, calNum(rpc.get(\"startNo\"), rpc.get(\"lastNo\"))); \t\t\t\t\t\n\t\t\t}\n\t\t}\t\n\t\tv.add(fCI); \n\t\tv.add(fCOW); \n\t\tv.add(fRI); \n\t\tv.add(fROW); \n\t\tv.add(fC17); \n\t\tv.add(fR17); \n\t\treturn v; \n\t}",
"long getTradeDate();",
"public String getAccountCloseDate() {\n return accountCloseDate;\n }",
"public void save(CalCancel cancel) {\n\r\n\t}",
"private String validateCancelAmount(SOCancelRequest soCancelRequest,\r\n\t\t\tSecurityContext securityContext, ServiceOrder so) {\r\n\t\tBigDecimal cancelAmount = BigDecimal.ZERO;\r\n\t\tStringBuilder warningMessage = new StringBuilder(\"\");\r\n\t\tif (OrderConstants.TASK_LEVEL_PRICING.equalsIgnoreCase(so.getPriceType())) {\r\n\t\t\t/* If SO pricing is TASK_LEVEL then add all the work order SKUs to\r\n\t\t\t * calculate the cancellation amount.\r\n\t\t\t */\r\n\t\t\tfor (WorkOrderSKU workOrderSKU : soCancelRequest.getCancelSkus()\r\n\t\t\t\t\t.getWorkOrderSKUs()) {\r\n\t\t\t\tcancelAmount = cancelAmount.add(BigDecimal.valueOf(workOrderSKU.getCancellationAmount() == null ? 0.0d \r\n\t\t\t\t\t\t: workOrderSKU.getCancellationAmount()));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t/* If SO pricing is SO_LEVEL then cancellation price is the price\r\n\t\t\t * provided by buyer as Cancel Amount.\r\n\t\t\t */\r\n\t\t\tcancelAmount = BigDecimal.valueOf(soCancelRequest.getCancelAmount() == null ? 0.0d\r\n\t\t\t\t\t\t\t: soCancelRequest.getCancelAmount());\r\n\t\t}\r\n\t\t// validate Cancel amount against spend limit labor.\r\n\t\tif (cancelAmount.compareTo(BigDecimal.valueOf(so.getSpendLimitLabor())) > 0) {\r\n\t\t\twarningMessage.append(CommonUtility.getMessage(PublicAPIConstant.cancelSO.SO_CANCELLATION_AMOUNT_GREATER));\r\n\t\t}\r\n\t\t\r\n\t\t// validate Cancel Amount against max spend limit per SO.\r\n\t\tif( 0.0 != securityContext.getMaxSpendLimitPerSO() && cancelAmount.compareTo(BigDecimal.valueOf(securityContext.getMaxSpendLimitPerSO())) > 0){\r\n\t\t\twarningMessage.append(CommonUtility\r\n\t\t\t\t\t.getMessage(PublicAPIConstant.cancelSO.SO_CANCELLATION_AMOUNT_EXCEEDS_MAX_LIMIT));\r\n\t\t}\r\n\t\t\r\n\t\t//Validate cancel amount against available balance for non auto funded buyers.\r\n\t\tBigDecimal availableBalance = BigDecimal.ZERO;\t\r\n\t\tAjaxCacheVO ajaxVo = new AjaxCacheVO();\r\n\t\tajaxVo.setCompanyId(securityContext.getCompanyId());\r\n\t\tajaxVo.setRoleType(securityContext.getRole());\r\n\t\tavailableBalance = BigDecimal.valueOf(financeManagerBO.getavailableBalance(ajaxVo));\r\n\t\t\r\n\t\t\r\n\t\tif (null!=so.getFundingTypeId() && !(so.getFundingTypeId().intValue()== 40) && cancelAmount.compareTo(availableBalance)>0) {\r\n\t\t\twarningMessage.append(CommonUtility\r\n\t\t\t\t\t.getMessage(PublicAPIConstant.cancelSO.SO_CANCELLATION_AMOUNT_INSUFFICIENT_BALANCE));\r\n\t\t}\r\n\t\t/**This validation is introduced as a part of Non-Funded Buyers Cancellation.Non funded buyers\r\n\t\t can cancel service order for Zero price Only.*/\r\n\t Boolean isNonFundedOrder = Boolean.FALSE;\r\n\t if(null!= so && null!= so.getSoWrkFlowControls()){\r\n\t \tisNonFundedOrder = so.getSoWrkFlowControls().getNonFundedInd();\r\n\t }\r\n\t LOGGER.info(\"isNonFundedOrder value:\"+ isNonFundedOrder);\r\n\t if(isNonFundedOrder && null!= soCancelRequest.getCancelAmount() ){\r\n\t \tif(soCancelRequest.getCancelAmount().doubleValue() > 0){\r\n\t \t\twarningMessage.append(CommonUtility\r\n\t\t\t\t\t\t.getMessage(PublicAPIConstant.cancelSO.SO_CANCELLATION_AMOUNT_NON_FUNDED_BUYER_AMOUNT));\r\n\t \t}\r\n\t }\r\n\t\tsoCancelRequest.setCancelAmount(cancelAmount.doubleValue());\r\n\t\treturn warningMessage.toString();\r\n\t}",
"public Date getCheckoutDate() {\n return checkoutDate;\n }",
"public Date getTransactrateDate() {\n return transactrateDate;\n }",
"public Date getDateFinContrat() {\r\n return dateFinContrat;\r\n }",
"public void cancel(User user) {\r\n //throw exception if trying to cancell without Admin right \r\n if ((!user.isAdmin()) && (!this.getOrderByUser().equals(user)))\r\n throw new IllegalAccessError(\"Cancelling order not owned by user requires Admin role \");\r\n\r\n if (this.currentStatusChange== null)\r\n throw new IllegalStateException(\"PO never been initialized, cannot cancel it\"); \r\n \r\n //throw exception if trying to cancel already cancelled po\r\n if ( this.currentStatusChange.equals(PoStatusCode.CANCELLED))\r\n throw new IllegalStateException(\"Cannot cancel an already Cancelled Order\");\r\n\r\n //update the current attribute\r\n\t this.currentStatusChange = PoStatusCode.CANCELLED;\r\n\t this.currentStatusChangeDate = new Date();\r\n \r\n }",
"TransactionResponseDTO cancelTransaction(TransactionRequestDTO transactionRequestDTO);",
"public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n Toast.makeText(getApplicationContext(), \"payment not cancelled\",\n Toast.LENGTH_SHORT).show();\n }",
"String getCoverageExpirationDate(Record inputRecord);",
"@JsonGetter(\"dateCanceled\")\r\n public String getDateCanceled ( ) { \r\n return this.dateCanceled;\r\n }",
"public String getCanceledByName() {\n return this.canceledByName;\n }",
"public static URL getUrlForRequestDeleteAccRop()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/account/rop_cancellation_request\";\r\n return str2url( strUrl );\r\n }",
"public String cancelar()\r\n/* 519: */ {\r\n/* 520:545 */ String url = \"\";\r\n/* 521:546 */ if (this.facturaProveedorSRI.getFacturaProveedor() != null) {\r\n/* 522:547 */ url = \"/paginas/compras/procesos/facturaProveedor?faces-redirect=true\";\r\n/* 523: */ } else {\r\n/* 524:549 */ url = \"/paginas/financiero/contabilidad/procesos/compraCajaChica?faces-redirect=true\";\r\n/* 525: */ }\r\n/* 526:551 */ return url;\r\n/* 527: */ }",
"public void setCancelReason(String cancelReason) {\n this.cancelReason = cancelReason;\n }",
"public void cancel(Button.ClickEvent event) {\n Notification.show(\"Cancelled\", Notification.Type.TRAY_NOTIFICATION);\n view.getContactList().select(null);\n }",
"public Date getCtDate() {\n return ctDate;\n }",
"public String getCanceledCountryCode() {\n return this.canceledCountryCode;\n }",
"public java.util.Calendar getCrtTm() {\n return crtTm;\n }",
"@RequestMapping(value = \"/cancel\", method = RequestMethod.GET)\n public String cancel()\n {\n return \"cancel\";\n }",
"private ProcessResponse validateCancelRequest(ServiceOrder so,\r\n\t\t\tSecurityContext securityContext, SOCancelRequest soCancelRequest) {\r\n\t\tProcessResponse response = new ProcessResponse();\r\n\t\t// Set response code as 1 for success (default)\r\n\t\tresponse.setCode(PublicAPIConstant.ONE);\r\n\t\tList<String> message = new ArrayList<String>();\t\t\r\n\t\tboolean validReasonCode = Boolean.FALSE;\r\n\t\t// wf state ID of the SO\r\n\t\tint stateId = so.getWfStateId().intValue();\r\n\t\tswitch (stateId) {\r\n\t\t\t/* For invalid states */\t\r\n\t\t\tcase OrderConstants.CANCELLED_STATUS:\r\n\t\t\tcase OrderConstants.COMPLETED_STATUS:\r\n\t\t\tcase OrderConstants.PENDING_CANCEL_STATUS:\r\n\t\t\tcase OrderConstants.CLOSED_STATUS:\r\n\t\t\tcase OrderConstants.VOIDED_STATUS:\r\n\t\t\tcase OrderConstants.DELETED_STATUS:\r\n\t\t\t\tmessage.add(CommonUtility\r\n\t\t\t\t\t\t.getMessage(PublicAPIConstant.INVALID_STATE_ERROR_CODE));\r\n\t\t\t\tresponse.setCode(ServiceConstants.USER_ERROR_RC);\r\n\t\t\t\tbreak;\r\n\t\t\tcase OrderConstants.DRAFT_STATUS:\r\n\t\t\tcase OrderConstants.ROUTED_STATUS:\r\n\t\t\tcase OrderConstants.EXPIRED_STATUS:\r\n\t\t\t\t// Validate cancel reason code\r\n\t\t\t\tvalidReasonCode = validateReasonCodes(soCancelRequest.getCancelReasonCode(), securityContext.getCompanyId());\r\n\t\t\t\tif (!validReasonCode) {\r\n\t\t\t\t\tmessage.add(CommonUtility.getMessage(PublicAPIConstant.cancelSO.INVALID_CANCEL_REASONCODE_ERROR_CODE));\r\n\t\t\t\t\tresponse.setCode(ServiceConstants.USER_ERROR_RC);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Handle the possible scenario where request xml contains\r\n\t\t\t\t\t// amount for these state SOs.\r\n\t\t\t\t\tsoCancelRequest.setCancelAmount(Double.valueOf(0));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase OrderConstants.ACCEPTED_STATUS:\r\n\t\t\tcase OrderConstants.ACTIVE_STATUS:\r\n\t\t\tcase OrderConstants.PROBLEM_STATUS:\r\n\t\t\t\tboolean isAmountValidationNeeded = Boolean.TRUE;\r\n\t\t\t\t// Validate cancel reason code\r\n\t\t\t\tvalidReasonCode = validateReasonCodes(soCancelRequest.getCancelReasonCode(), securityContext.getCompanyId());\r\n\t\t\t\tif (!validReasonCode) {\r\n\t\t\t\t\tmessage.add(CommonUtility.getMessage(PublicAPIConstant.cancelSO.INVALID_CANCEL_REASONCODE_ERROR_CODE));\r\n\t\t\t\t\tresponse.setCode(ServiceConstants.USER_ERROR_RC);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t /* If Compensation is not required, task_level check is not\r\n\t\t\t\t\t * needed. SO is to be cancelled for 0.0$.\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (PublicAPIConstant.cancelSO.NO.equalsIgnoreCase(soCancelRequest.getProviderPaymentReqd())) {\r\n\t\t\t\t\t\tsoCancelRequest.setCancelSkus(new CancelSKU());\r\n\t\t\t\t\t\tsoCancelRequest.setCancelAmount(Double.valueOf(0));\r\n\t\t\t\t\t\tisAmountValidationNeeded = Boolean.FALSE;\r\n\t\t\t\t\t} else if (OrderConstants.TASK_LEVEL_PRICING.equalsIgnoreCase(so.getPriceType())) {\r\n\t\t\t\t\t\t/* For TASK_LEVEL SO consider work order SKU for validation\r\n\t\t\t\t\t\t * and for calculating the cancellation amount.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tList<String> invalidSKUs = handleTaskLevelPricing(soCancelRequest, securityContext);\r\n\t\t\t\t\t\tif (null != invalidSKUs && !invalidSKUs.isEmpty()) {\r\n\t\t\t\t\t\t\tStringBuilder warning = new StringBuilder(CommonUtility.getMessage(PublicAPIConstant.cancelSO.INVALID_WORK_ORDER_SKU_ERROR_CODE));\r\n\t\t\t\t\t\t\twarning.append(\"Invalid SKU(s): \");\r\n\t\t\t\t\t\t\twarning.append(invalidSKUs);\r\n\t\t\t\t\t\t\tmessage.add(warning.toString());\r\n\t\t\t\t\t\t\tresponse.setCode(ServiceConstants.USER_ERROR_RC);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t/* If SO Status, reason code and SKUs (if applicable) are valid then\r\n\t\t\t\t * validate the cancellation amount.\r\n\t\t\t\t */\r\n\t\t\t\tif (isAmountValidationNeeded && PublicAPIConstant.ONE.equals(response.getCode())) {\r\n\t\t\t\t\tString warningMsg = validateCancelAmount(soCancelRequest,\r\n\t\t\t\t\t\t\tsecurityContext, so);\r\n\t\t\t\t\tif (!StringUtils.isEmpty(warningMsg)) {\r\n\t\t\t\t\t\tmessage.add(warningMsg);\r\n\t\t\t\t\t\tresponse.setCode(ServiceConstants.USER_ERROR_RC);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\t/*Error message on invalid SO State*/\r\n\t\t\t\tmessage.add(CommonUtility\r\n\t\t\t\t\t\t.getMessage(PublicAPIConstant.INVALID_STATE_ERROR_CODE));\r\n\t\t\t\tresponse.setCode(ServiceConstants.USER_ERROR_RC);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\tif (message.isEmpty()) {\r\n\t\t\tresponse.setCode(PublicAPIConstant.ONE);\r\n\t\t}\r\n\t\tresponse.setMessages(message);\r\n\t\treturn response;\r\n\t}",
"Date getCheckedOutDate();",
"java.lang.String getOrderDate();",
"protected static Element sendCalendarCancelMessage(\n ZimbraSoapContext zsc,\n OperationContext octxt,\n int apptFolderId,\n Account acct,\n Mailbox mbox,\n CalSendData csd,\n boolean cancelOwnAppointment)\n throws ServiceException {\n \treturn sendCalendarMessageInternal(zsc, octxt, apptFolderId, acct, mbox, csd,\n null, cancelOwnAppointment);\n }",
"public void cancel() {\n ei();\n this.fd.eT();\n this.oJ.b(this);\n this.oM = Status.CANCELLED;\n if (this.oL != null) {\n this.oL.cancel();\n this.oL = null;\n }\n }",
"@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }",
"@Override\n\t\t\t\t public void onCancel() {\n\t\t\t\t\t errorMessage = \"You cancelled Operation\";\n\t\t\t\t\t getResponse();\n\t\t\t\t }",
"public Date getClosingDate() {\n Date d = null;\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n try {\n d = sdf.parse(closingDate);\n }\n catch (Exception e) {e.printStackTrace();}\n return d;\n }",
"public String cancel() {\n endConversation();\n return CANCEL_OUTCOME_ID;\n }",
"public void clickedCancel(View view) {\n \treturnResult(Activity.RESULT_CANCELED);\n }",
"pb4server.CancelCureSoliderAskReq getCancelCureSoliderAskReq();",
"public void cancelCurrentPurchase() throws VerificationFailedException {\n\t}",
"public void cancelCurrentPurchase() throws VerificationFailedException {\n\t}",
"public Date getPAYMENT_DATE() {\r\n return PAYMENT_DATE;\r\n }",
"public Date getPAYMENT_DATE() {\r\n return PAYMENT_DATE;\r\n }",
"public Object getBtnCancel() {\n return btnCancel;\n }",
"public void checkCancel() throws CancellationException;",
"CancelAction getCancelAction();",
"public Date getRealBillingDate(final Context context)\r\n {\r\n Date billingDate = getBillingDate();\r\n\r\n // Only monthly recharge needs prebill\r\n if (isRecurringRecharge() && SafetyUtil.safeEquals(getChargingCycle(), ChargingCycleEnum.MONTHLY) && !getSub().isPrepaid())\r\n {\r\n boolean isPreBilled = false;\r\n \r\n try\r\n {\r\n if (isPreBilled(context))\r\n {\r\n billingDate = CalendarSupportHelper.get(context).getDayBefore(billingDate);\r\n }\r\n }\r\n catch (final Throwable t)\r\n {\r\n LogSupport.minor(context, this, \"invalid SPID\");\r\n /*\r\n * the chance for such such exception is really low, we can afford to ignore\r\n * it.\r\n */\r\n }\r\n \r\n }\r\n if(getSub().isPrepaid())//The billing date is set in context only to modify receive date using bill date in PPSM transaction for prepaid. \r\n context.put(PostpaidSupportMsisdnTransHome.PPSM_BILLING_DATE,billingDate.getTime()); \r\n\r\n\r\n return billingDate;\r\n }",
"public final void cancelResv() {\n ApiUtil.getApi2().cancelCourseResv(this.reserveId).compose(RxUtil.applyIO()).subscribe(new MyResvDetailActivity$cancelResv$1(this, this));\n }",
"@Override\n public String toString() {\n return String.format( \"%1$s UTC: Cancel Order: (%2$s) - %3$s\", getTime(), orderId, getTag() ) + \" Status: \" + getStatus();\n }",
"@When(\"^the checkout date is $\")\n public void the_checkout_date_is() throws Throwable {\n throw new PendingException();\n }",
"public String getCanceledCountryName() {\n return this.canceledCountryName;\n }",
"public Date getDepartureDate();",
"public Date getDebitEndDate() {\n return debitEndDate;\n }",
"@Override\n public Date getTransactionStartDate() {\n return traxStartDate;\n }",
"Calendar getDepartureDateAndTime();",
"public CanceledServiceDelivery getCanceledServiceDelivery() {\n return this.canceledServiceDelivery;\n }",
"@Test\n public void testClaimCancelDate() {\n new ClaimFieldTester()\n .verifyDateStringFieldTransformedCorrectly(\n FissClaim.Builder::setCancelDateCymd,\n RdaFissClaim::getCancelDate,\n RdaFissClaim.Fields.cancelDate);\n }",
"private CancelMessage makeCancelMessage(Tradable t, String details) throws InvalidDataException {\n\t\treturn new CancelMessage(t.getUser(),t.getProduct(),t.getPrice(),\n\t\t\t\tt.getRemainingVolume(), details, t.getSide(),t.getId());\n\t}"
]
| [
"0.6001734",
"0.5829488",
"0.57611984",
"0.5734565",
"0.5631739",
"0.56024677",
"0.55532324",
"0.5542732",
"0.5542732",
"0.54984546",
"0.5490683",
"0.5431083",
"0.54030466",
"0.53920543",
"0.53248453",
"0.5316351",
"0.5302952",
"0.52657574",
"0.52391547",
"0.52305037",
"0.5201542",
"0.52004975",
"0.5200103",
"0.5177304",
"0.517116",
"0.5169714",
"0.51647305",
"0.5160815",
"0.5141131",
"0.51385",
"0.513742",
"0.51142764",
"0.5102928",
"0.51017946",
"0.50941026",
"0.5092832",
"0.5091901",
"0.50905925",
"0.5088513",
"0.50759685",
"0.50677794",
"0.5065567",
"0.5062976",
"0.50510997",
"0.5044966",
"0.50366515",
"0.5031297",
"0.5029108",
"0.5020386",
"0.5018238",
"0.50018066",
"0.49994105",
"0.4998181",
"0.49926117",
"0.49757835",
"0.4975407",
"0.49753487",
"0.4971932",
"0.49698848",
"0.49651408",
"0.49475145",
"0.49429435",
"0.49410453",
"0.49366814",
"0.49350053",
"0.49222654",
"0.49164668",
"0.49160236",
"0.49087995",
"0.4908342",
"0.48969406",
"0.4887687",
"0.48854876",
"0.48814917",
"0.4876163",
"0.4871314",
"0.48695436",
"0.48599637",
"0.48534375",
"0.48462152",
"0.48424748",
"0.4840903",
"0.4840903",
"0.4834639",
"0.4834639",
"0.4833904",
"0.48324174",
"0.4829078",
"0.48246583",
"0.4823798",
"0.4820889",
"0.4806994",
"0.48052394",
"0.48043257",
"0.4802108",
"0.48019367",
"0.48015413",
"0.4795401",
"0.47864535",
"0.4786361"
]
| 0.8246983 | 0 |
Returns the attachment code from the travel payment | @Override
public boolean hasAttachment() {
return this.getAdvanceTravelPayment().isAttachmentCode();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getPaymentInformation();",
"@Override\n public String getPaymentMethodCode() {\n return this.getAdvanceTravelPayment().getPaymentMethodCode();\n }",
"java.lang.String getTransitAirportCode();",
"com.google.protobuf.ByteString getSerializedPaymentDetails();",
"int getNumberPaymentReceipt();",
"String billingPartNumber();",
"public java.lang.String getPaymentRefNo()\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(PAYMENTREFNO$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"String getAdditionalCode();",
"String getAdditionalCode();",
"String getAdditionalCode();",
"public int getC_Payment_ID();",
"public String getLBR_PartialPayment();",
"TariffCodeType getTariffCode();",
"com.google.protobuf.ByteString\n getTransitAirportCodeBytes();",
"java.lang.String getTranCode();",
"com.google.protobuf.ByteString\n getDepartureAirportCodeBytes();",
"java.lang.String getArrivalAirportCode();",
"byte[] getPhotoDetails(Long customerId,String type) throws EOTException;",
"public java.lang.String getPaymentPreimage() {\n java.lang.Object ref = paymentPreimage_;\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 paymentPreimage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getPaymentConvert () {\r\n\t\treturn this.getPayment().getName();\r\n\t}",
"org.hl7.fhir.Attachment getValueAttachment();",
"public java.lang.String getPaymentPreimage() {\n java.lang.Object ref = paymentPreimage_;\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 paymentPreimage_ = s;\n return s;\n }\n }",
"public String GetDocumentTransactionID (int fileID);",
"public String getAttachment() {\n return attachment;\n }",
"java.lang.String getDepartureAirportCode();",
"@java.lang.Override\n public com.google.protobuf.ByteString getSerializedPaymentDetails() {\n return serializedPaymentDetails_;\n }",
"com.google.protobuf.ByteString\n getArrivalAirportCodeBytes();",
"public String extractingcode()\r\n\t{\r\n\t\tString localresponseJSONString = responseJSONString;\r\n\t\tJSONObject jsonResult = new JSONObject(localresponseJSONString);\r\n\t\tString getbookingscode;\r\n\t\tJSONArray getbookingsArray = jsonResult.getJSONObject(\"hotelogix\").getJSONObject(\"response\").getJSONArray(\"bookings\");\r\n\t\tJSONObject bookingscode = getbookingsArray.getJSONObject(0);\r\n\t\tgetbookingscode = bookingscode.getString(\"code\");\r\n\t\tSystem.out.println(\":getbookings code:\"+getbookingscode);\r\n\t\treturn getbookingscode;\r\n\t}",
"public String getPaymentData() {\n return paymentData;\n }",
"String getATDocCodeID();",
"public String getPayment() {\n if(payment==null) { payment = \"\"; }\n return payment;\n }",
"public String getResBookDesigCode() {\n return resBookDesigCode;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getSerializedPaymentDetails() {\n return instance.getSerializedPaymentDetails();\n }",
"public BlobDomain getResignationFile() {\r\n return (BlobDomain) getAttributeInternal(RESIGNATIONFILE);\r\n }",
"public String getPaymentIdByEncryptedString() {\n return commonPaymentServiceBaseUrl + \"/pis/payment/{payment-id}\";\n }",
"java.lang.String getPaymentUrl();",
"java.lang.String getFlightCarrierCode();",
"com.google.protobuf.ByteString\n getPaymentUrlBytes();",
"public String getDocumentNumberByPaymentRequestId(Integer id);",
"public String getMerchantNo();",
"public java.lang.String getPaymentinformation () {\r\n\t\treturn paymentinformation;\r\n\t}",
"public String getConsentPDF();",
"public java.lang.String getSzCdPaymentDelivery()\r\n {\r\n return this._szCdPaymentDelivery;\r\n }",
"public java.lang.String getPaymedia() {\n return paymedia;\n }",
"String getEACCode();",
"com.dogecoin.protocols.payments.Protos.Payment getPayment();",
"public String getFlightCode(int mCode)\r\n\t {\t\r\n\t\t return MRs[mCode].getFlightCode();\r\n\t }",
"public java.lang.String getTransitAirportCode() {\n java.lang.Object ref = transitAirportCode_;\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 transitAirportCode_ = s;\n return s;\n }\n }",
"String getCcNr(String bookingRef);",
"public byte[] getByteAttachment() {\n\t\treturn byteAttachment;\n\t}",
"public java.lang.String getPostalCode( EAIMMCtxtIfc theCtxt) throws EAIException ;",
"public String getPurchaseFileLinkeAddress() {\n return purchaseFileLinkeAddress;\n }",
"public int getC_Payment_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_Payment_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public java.lang.String getTransitAirportCode() {\n java.lang.Object ref = transitAirportCode_;\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 transitAirportCode_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getAccountPayment() {\r\n return accountPayment;\r\n }",
"public static String aPaymentId() {\n return \"123456\";\n }",
"Base64Binary getCarrierAIDC();",
"public FileTransferErrorCode getCode() {\n return FileTransferErrorCode.fromValue(JsoHelper.getAttributeAsInt(jsObj, Attributes.CODE.getValue()));\n }",
"public long getPaymentType() {\n return paymentType;\n }",
"java.lang.String getTransferTxt();",
"public java.lang.String getRadiologyOrderIDForPayment(){\n return localRadiologyOrderIDForPayment;\n }",
"@Accessor(qualifier = \"dataExportMediaCode\", type = Accessor.Type.GETTER)\n\tpublic String getDataExportMediaCode()\n\t{\n\t\tfinal String value = getPersistenceContext().getPropertyValue(DATAEXPORTMEDIACODE);\n\t\treturn value != null ? value : (\"dataexport_\" + this.getCode());\n\t}",
"public java.lang.String getPaymentinfotext () {\r\n\t\treturn paymentinfotext;\r\n\t}",
"public java.lang.String getDepartureAirportCode() {\n java.lang.Object ref = departureAirportCode_;\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 departureAirportCode_ = s;\n return s;\n }\n }",
"int getPaymentDetailsVersion();",
"public String getRecapitoCode() {\n\t\treturn this.recapitoCode;\n\t}",
"PaymentMethod getPaymentMethod();",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getPaymentUrlBytes() {\n return instance.getPaymentUrlBytes();\n }",
"public java.lang.String getArrivalPortCode() {\n\t\treturn _tempNoTiceShipMessage.getArrivalPortCode();\n\t}",
"public String getVerifyCode() {\r\n return verifyCode;\r\n }",
"@Override\n\tpublic java.lang.String getPayment() {\n\t\treturn _esfShooterAffiliationChrono.getPayment();\n\t}",
"public int getCode() {\n\t\treturn adaptee.getCode();\n\t}",
"public java.lang.String getDepartureAirportCode() {\n java.lang.Object ref = departureAirportCode_;\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 departureAirportCode_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"com.google.protobuf.ByteString\n getFlightCarrierCodeBytes();",
"public String getLBR_InterestCode();",
"public String getTravelTrackerSignatureString(){\n return getTravelTrackerSignaturePrefixString() + \"\\\">\" + mContext.getResources().getString(R.string.app_name) + \"</a>\";\n }",
"com.google.protobuf.ByteString getMerchantData();",
"com.google.protobuf.ByteString getMerchantData();",
"public EI getPayerTrackingID() { \r\n\t\tEI retVal = this.getTypedField(5, 0);\r\n\t\treturn retVal;\r\n }",
"Path getDeliverableBookFilePath();",
"java.lang.String getProductCode();",
"public String getPaymentInstanceCode() {\n\t\treturn paymentInstanceCode;\n\t}",
"public String getArchiverContact();",
"public java.lang.Long getAttachmentId() {\n return attachmentId;\n }",
"java.lang.String getField1408();",
"public String getLBR_DirectDebitNotice();",
"public Object getAttachment() {\n\treturn attachment;\n }",
"public BigDecimal getCODE() {\r\n return CODE;\r\n }",
"public BigDecimal getCODE() {\r\n return CODE;\r\n }",
"public com.google.protobuf.ByteString\n getDepartureAirportCodeBytes() {\n java.lang.Object ref = departureAirportCode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n departureAirportCode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getIncomingPaymentBic() {\n return incomingPaymentBic;\n }",
"public int getXX_MaterialTransferOrder_ID() \r\n {\r\n return get_ValueAsInt(\"XX_MaterialTransferOrder_ID\");\r\n \r\n }",
"public String getFundCode() {\r\n return fundCode;\r\n }",
"public com.google.protobuf.ByteString\n getDepartureAirportCodeBytes() {\n java.lang.Object ref = departureAirportCode_;\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 departureAirportCode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"protected String getOffsetFinancialObjectCode(OffsetDefinition offsetDefinition) {\r\n LOG.debug(\"getOffsetFinancialObjectCode(OffsetDefinition) - start\");\r\n\r\n if (null != offsetDefinition) {\r\n String returnString = getEntryValue(offsetDefinition.getFinancialObjectCode(), AccountingDocumentRuleBaseConstants.GENERAL_LEDGER_PENDING_ENTRY_CODE.getBlankFinancialObjectCode());\r\n LOG.debug(\"getOffsetFinancialObjectCode(OffsetDefinition) - end\");\r\n return returnString;\r\n }\r\n else {\r\n LOG.debug(\"getOffsetFinancialObjectCode(OffsetDefinition) - end\");\r\n return AccountingDocumentRuleBaseConstants.GENERAL_LEDGER_PENDING_ENTRY_CODE.getBlankFinancialObjectCode();\r\n }\r\n\r\n }",
"public String getCode(){\n\t\treturn new SmartAPIModel().getCpSourceCode(cp.getLocalName());\n\t}",
"public String getReturnFlightDetails(){\n String details =driver.findElement(oRetFlightDetails).getText();\n logger.debug(\"return flight details :\" + details);\n return details;\n }",
"public String getReceiverZip() {\n return receiverZip;\n }",
"public int getPaymentNum() {\n \treturn this.paymentNum;\n }",
"String getAcctgTransEntrySeqId();"
]
| [
"0.578399",
"0.56630886",
"0.5575188",
"0.5564592",
"0.53879404",
"0.5384523",
"0.5374525",
"0.5360549",
"0.5360549",
"0.5360549",
"0.5329519",
"0.53114706",
"0.5308097",
"0.5297328",
"0.5291336",
"0.52657026",
"0.5260839",
"0.5253133",
"0.5228063",
"0.522668",
"0.52266574",
"0.5220822",
"0.5207486",
"0.5187659",
"0.5165883",
"0.51499027",
"0.51380986",
"0.51116085",
"0.51103854",
"0.51094043",
"0.5091845",
"0.5090667",
"0.50783205",
"0.50779617",
"0.5073589",
"0.5067309",
"0.5055868",
"0.50523615",
"0.50443804",
"0.5033812",
"0.5023992",
"0.5018532",
"0.50138366",
"0.5006797",
"0.49949396",
"0.49739784",
"0.49671808",
"0.49487323",
"0.49485007",
"0.49422157",
"0.4934607",
"0.4934433",
"0.4933278",
"0.49327803",
"0.49326774",
"0.49323127",
"0.4932094",
"0.49265495",
"0.49216318",
"0.49183217",
"0.49141333",
"0.49044406",
"0.49001712",
"0.48856413",
"0.48793775",
"0.48779237",
"0.4876731",
"0.4866246",
"0.48452684",
"0.48434424",
"0.4842688",
"0.48375925",
"0.48371035",
"0.4836487",
"0.48357037",
"0.48325875",
"0.4832092",
"0.4832092",
"0.48279577",
"0.48217216",
"0.48179835",
"0.4812894",
"0.48072797",
"0.48057234",
"0.48035708",
"0.47976497",
"0.47961888",
"0.47868228",
"0.47868228",
"0.47762707",
"0.47753662",
"0.4772616",
"0.47720528",
"0.47670156",
"0.47637668",
"0.47615442",
"0.47597104",
"0.4758041",
"0.47564733",
"0.4754168"
]
| 0.5448161 | 4 |
Returns the payment method code associated with the travel payment for the advance | @Override
public String getPaymentMethodCode() {
return this.getAdvanceTravelPayment().getPaymentMethodCode();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"io.opencannabis.schema.commerce.Payments.PaymentMethod getMethod();",
"PaymentMethod getPaymentMethod();",
"public AppCDef.PaymentMethod getPaymentMethodCodeAsPaymentMethod() {\n return AppCDef.PaymentMethod.codeOf(getPaymentMethodCode());\n }",
"public String getPayMethod() {\n return payMethod;\n }",
"@org.jetbrains.annotations.Nullable()\n public abstract com.stripe.android.model.PaymentMethod getPaymentMethod();",
"public io.opencannabis.schema.commerce.Payments.PaymentMethod getMethod() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.Payments.PaymentMethod result = io.opencannabis.schema.commerce.Payments.PaymentMethod.valueOf(method_);\n return result == null ? io.opencannabis.schema.commerce.Payments.PaymentMethod.UNRECOGNIZED : result;\n }",
"public io.opencannabis.schema.commerce.Payments.PaymentMethod getMethod() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.Payments.PaymentMethod result = io.opencannabis.schema.commerce.Payments.PaymentMethod.valueOf(method_);\n return result == null ? io.opencannabis.schema.commerce.Payments.PaymentMethod.UNRECOGNIZED : result;\n }",
"public String getPaymentMethod() {\n\t\treturn paymentMethod;\n\t}",
"java.lang.String getTransitAirportCode();",
"public void setPayMethod(String value) {\n this.payMethod = value;\n }",
"public PaymentType getPaymentType()\n {\n return PAYMENT_TYPE;\n }",
"public abstract PaymentType getPaymentType();",
"java.lang.String getArrivalAirportCode();",
"java.lang.String getDepartureAirportCode();",
"public long getPaymentType() {\n return paymentType;\n }",
"public String getPaymentType() {\r\n return paymentType;\r\n }",
"public String getPayType() {\n return payType;\n }",
"public String getPayType() {\n return payType;\n }",
"@Override\n public byte getType() {\n return TYPE_PAYMENT;\n }",
"public java.lang.String getPayComCode() {\n return payComCode;\n }",
"public PaymentMethod getPaymentMethod(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.paymentmethod.v1.PaymentMethod res ){\n\t\tPaymentMethod paymentMethod = new PaymentMethod();\n\t\t\n\t\tif( res.getMethod() != null ){\n\t\t\tpaymentMethod.setMethod( res.getMethod().charAt(0) );\n\t\t}\n\t\tpaymentMethod.setDescription( res.getDescription() );\n\t\t\n\t\treturn paymentMethod;\n\t}",
"public java.lang.String getPaymenttype () {\r\n\t\treturn paymenttype;\r\n\t}",
"String getPaymentInformation();",
"CarPaymentMethod processPayPal();",
"CarPaymentMethod city(String city);",
"public String getPAYMENT_TYPE() {\r\n return PAYMENT_TYPE;\r\n }",
"io.opencannabis.schema.commerce.CommercialOrder.OrderPayment getPayment();",
"com.dogecoin.protocols.payments.Protos.Payment getPayment();",
"public Integer getPaymentType() {\n\t\treturn paymentType;\n\t}",
"public String EnterPaymentMethod() throws Exception {\n\t\tString MTA_Val = null;\n\t\ttry {\n\t\t\tWaitUtils.waitForElementPresent(driver, MTA_TakePaymentPopup, \"Unable to find the Payment method popup\");\n\t\t\tString strPopName = MTA_TakePaymentPopup.findElement(By.className(\"modal-title\")).getText();\n\t\t\tif (strPopName.equalsIgnoreCase(\"Take a Payment\")) {\n\t\t\t\tWaitUtils.waitForElementPresent(driver, MTA_PayAmount,\n\t\t\t\t\t\t\"Expected Payment amount field not found on the Payment method pop up \");\n\t\t\t\tMTA_Val = MTA_PayAmount.getText().toString();\n\t\t\t\tWaitUtils.waitForElementPresent(driver, MTA_TrasacId,\n\t\t\t\t\t\t\"Expected Payment transaction ID field not found on the Payment method pop up \");\n\t\t\t\tRandom t = new Random();\n\t\t\t\tint Trans_ID = t.nextInt(1000);\n\t\t\t\tMTA_TrasacId.sendKeys(Integer.toString(Trans_ID));\n\t\t\t\tWaitUtils.waitForElementPresent(driver, MTA_SaveBut,\n\t\t\t\t\t\t\"Save button not found on the Payment method pop up\");\n\t\t\t\tMTA_SaveBut.click();\n\t\t\t\tWaitUtils.waitForinvisiblityofElement(driver, 360, ins_MTa_TakePaymnt,\n\t\t\t\t\t\t\"Take a Payment window failed to close after waiting for 3 mins\");\n\t\t\t}\n\t\t\treturn MTA_Val;\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tthrow new Exception(\n\t\t\t\t\t\"Filed to enter payment details on payment method window, Exception occured\" + e.getMessage());\n\t\t}\n\t}",
"public String getPaytype() {\n return paytype;\n }",
"@NotNull\n public PaymentType getPaymentType(){\n if(payment.size() == 1){\n return payment.get(0).getPaymentType();\n }else if(payment.size() > 1){\n return PaymentType.SPLIT;\n }\n return PaymentType.UNPAID;\n }",
"public int getC_Payment_ID();",
"CashSettlementMethodEnum getCashSettlementMethod();",
"public String getPayment() {\n if(payment==null) { payment = \"\"; }\n return payment;\n }",
"public void chosePaymentMethod(String paymentMode) {\n\t\tswitch (paymentMode) {\n\t\tcase \"COD\":\n\t\t\tPayMethod = new cashOnDelivery();\n\t\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"creditCard\":\n\t\t\tPayMethod = new creditCard();\n\t\t\t\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"debitCard\":\n\t\t\tPayMethod = new debitCard();\n\t\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"netBanking\":\n\t\t\tPayMethod =new netBanking();\n\t\t\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tPayMethod =null;\n\t\t\tbreak;\n\t\t}\n\n\t}",
"public void setAdvanceTravelPayment(TravelPayment advanceTravelPayment) {\n this.advanceTravelPayment = advanceTravelPayment;\n }",
"@Override\n\tpublic PaymentMethod getMethod() {\n\t\treturn new HoldMethod();\n\t}",
"public String getPaymentConvert () {\r\n\t\treturn this.getPayment().getName();\r\n\t}",
"public PaymentType typeOfPayment() {\n\t\treturn category.Comision;\n\t}",
"public PaymentType getPaymentType() {\n\t\treturn paymentType;\n\t}",
"public java.lang.String getModePfPayment () {\n\t\treturn modePfPayment;\n\t}",
"public String getPaymentInstanceCode() {\n\t\treturn paymentInstanceCode;\n\t}",
"java.lang.String getFlightCarrierCode();",
"public Integer getPayType() {\n\t\treturn payType;\n\t}",
"List<PaymentMethode> getSupportedPaymentMethods(AbstractOrder order);",
"@Override\n\tpublic java.lang.String getPayment() {\n\t\treturn _esfShooterAffiliationChrono.getPayment();\n\t}",
"public PaymentTypeObject getPaymentType(int payment_type_id) throws AppException;",
"public void setPaymentMethodCode_CreditCard() {\n setPaymentMethodCodeAsPaymentMethod(AppCDef.PaymentMethod.CreditCard);\n }",
"public Short getPayType() {\n return payType;\n }",
"public String getLBR_LatePaymentPenaltyCode();",
"public String getMerchantNo();",
"public interface CarPaymentMethod {\n\n /**\n * Choose PayPal payment option\n */\n CarPaymentMethod processPayPal();\n\n /**\n * Choose HotDollars payment option\n */\n CarPaymentMethod processHotDollars();\n\n /**\n * Choose CreditCard payment option\n */\n CarPaymentMethod processCreditCard();\n\n /**\n * Choosing saved payment methods\n */\n\n CarPaymentMethod processSavedVisa(String securityCode);\n\n CarPaymentMethod processSavedMasterCard(String securityCode);\n\n /**\n * Getting payment buttons\n */\n\n WebElement getPayPalRadioButton();\n\n WebElement getHotDollarsButton();\n\n WebElement getCreditCardField();\n\n WebElement getSavedCreditCardButton();\n\n WebElement getSavedVisaButton();\n\n WebElement getSavedMasterCardButton();\n\n String getNameOfChosenPaymentMethod();\n\n boolean isHotDollarsModuleAvailable();\n\n String getHotDollarsMessage();\n\n WebElement getPaymentOptionCreditCard();\n\n /**\n * Input card holder's initials for credit card\n */\n CarPaymentMethod cardHolder(String firstName, String lastName);\n\n /**\n * Input credit card attributes\n */\n CarPaymentMethod creditCardNumber(String cardNumber);\n\n CarPaymentMethod expDate(String cardExpMonth, String cardExpYear);\n\n CarPaymentMethod creditCardSecurityCode(String cardSecCode);\n\n CarPaymentMethod savedVisaSecurityCode(String cardSecCode);\n\n /**\n * Fill in card holder's address information\n */\n CarPaymentMethod city(String city);\n\n CarPaymentMethod country(String country);\n\n CarPaymentMethod state(String state);\n\n CarPaymentMethod billingAddress(String address);\n\n CarPaymentMethod zipCode(String zipCode);\n\n CarPaymentMethod continuePanel();\n\n /**\n * Filling PayPal payment fields\n */\n CarPaymentMethod payPalUser(String firstName, String lastName);\n\n CarPaymentMethod payPalAddress(String address);\n\n CarPaymentMethod payPalCity(String city);\n\n CarPaymentMethod payPalState(String state);\n\n CarPaymentMethod payPalZipCode(String zip);\n\n /**\n * Verify that billing section is present on the page\n */\n boolean isBillingSectionPresent();\n\n /**\n * Verify that billing section has only one Credit Card payment method\n */\n boolean isCreditCardIsSingleAvailablePayment();\n\n void saveMyInformation();\n\n void savePaymentInformation();\n\n WebElement getPasswordField();\n\n WebElement getConfirmPasswordField();\n\n boolean isSaveMyInfoExpanded();\n\n void chooseCreditCardPaymentMethod();\n\n boolean isSavedPaymentPresent();\n\n void typeCreditCardNameField(String ccNumber);\n\n\n}",
"public Object getPaymentMode() {\n\t\treturn null;\n\t}",
"public void setPaymentMethodCodeAsPaymentMethod(AppCDef.PaymentMethod cdef) {\n setPaymentMethodCode(cdef != null ? cdef.code() : null);\n }",
"@java.lang.Override\n public com.dogecoin.protocols.payments.Protos.Payment getPayment() {\n return payment_ == null ? com.dogecoin.protocols.payments.Protos.Payment.getDefaultInstance() : payment_;\n }",
"public String getAccountPayment() {\r\n return accountPayment;\r\n }",
"public BigDecimal getCHARGE_CODE() {\r\n return CHARGE_CODE;\r\n }",
"public String getSolvingMethodType()\n/* */ {\n/* 183 */ return this.solvingMethodType;\n/* */ }",
"public boolean isPaymentMethodCodeCreditCard() {\n AppCDef.PaymentMethod cdef = getPaymentMethodCodeAsPaymentMethod();\n return cdef != null ? cdef.equals(AppCDef.PaymentMethod.CreditCard) : false;\n }",
"public String getLBR_InterestCode();",
"public int getPaymentNum() {\n \treturn this.paymentNum;\n }",
"public java.lang.String getPayTpCd () {\n\t\treturn payTpCd;\n\t}",
"@java.lang.Override\n public com.dogecoin.protocols.payments.Protos.Payment getPayment() {\n return instance.getPayment();\n }",
"com.google.protobuf.ByteString\n getTransitAirportCodeBytes();",
"com.google.protobuf.ByteString\n getDepartureAirportCodeBytes();",
"CarPaymentMethod processCreditCard();",
"public int getC_Payment_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_Payment_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public java.lang.String getPaymentTerm() {\n return paymentTerm;\n }",
"public java.lang.String getPortGoingToCode() {\n\t\treturn _tempNoTiceShipMessage.getPortGoingToCode();\n\t}",
"public void selectPaymentMethod(String payment) {\n\t\tif (payment == \"Cashless\")\n\t\t\tdriver.findElement(By.id(\"payBtn1\")).click();\n\t\tif (payment == \"Cash\")\n\t\t\tdriver.findElement(By.id(\"payBtn2\")).click();\n\t\tif (payment == \"Special\")\n\t\t\tdriver.findElement(By.id(\"payBtn3\")).click();\n\t}",
"public java.lang.String getTransitAirportCode() {\n java.lang.Object ref = transitAirportCode_;\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 transitAirportCode_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getTransitAirportCode() {\n java.lang.Object ref = transitAirportCode_;\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 transitAirportCode_ = s;\n return s;\n }\n }",
"CarPaymentMethod creditCardNumber(String cardNumber);",
"public CS getDirectionCode() { return _directionCode; }",
"public Payment getPayment() {\n\t\treturn this.payment;\n\t}",
"public String getPaymentIdByEncryptedString() {\n return commonPaymentServiceBaseUrl + \"/pis/payment/{payment-id}\";\n }",
"java.lang.String getPaymentUrl();",
"public PaymentProviderType getPaymentProviderType() {\n return paymentProviderType;\n }",
"public java.lang.String getPayTp () {\n\t\treturn payTp;\n\t}",
"public String getPaymentAmountType() {\r\n return paymentAmountType;\r\n }",
"private String PayAgentPayment(HttpServletRequest request) {\n\n try {\n HttpSession session = request.getSession();\n int serviceId = Integer.parseInt(request.getParameter(CONFIG.PARAM_SERVICE_ID));\n int operationId = Integer.parseInt(request.getParameter(CONFIG.OPERATION_ID));\n String amount = request.getParameter(CONFIG.AMOUNT);\n String agentIdentifier = request.getParameter(CONFIG.PARAM_MSISDN);\n int custId = Integer.parseInt((String) request.getSession().getAttribute(CONFIG.PARAM_PIN));\n String lang = request.getSession().getAttribute(CONFIG.lang).equals(\"\") ? \"en\" : \"ar\";\n\n Donation_AgentPaymentRequestDTO agentPaymentRequestDTO = new Donation_AgentPaymentRequestDTO();\n agentPaymentRequestDTO.setSERVICE_ID(serviceId);\n agentPaymentRequestDTO.setOPERATION_ID(operationId);\n agentPaymentRequestDTO.setAMOUNT(amount);\n agentPaymentRequestDTO.setCUSTOMER_ID(custId);\n agentPaymentRequestDTO.setAGENT_IDENTIFIER(agentIdentifier);\n agentPaymentRequestDTO.setCHANNEL(\"WEB\");\n agentPaymentRequestDTO.setLANG(lang);\n String national_id = request.getParameter(\"national_ID\");\n agentPaymentRequestDTO.setNATIONAL_ID(national_id);\n\n DonationAgentPaymentRespponseDto agentPaymentRespponseDto = MasaryManager.getInstance().do_agent_payment_without_inquiry(agentPaymentRequestDTO);\n MasaryManager.logger.info(\"Error code \" + agentPaymentRespponseDto.getSTATUS_CODE());\n if (agentPaymentRespponseDto.getSTATUS_CODE().equals(\"200\")) {\n\n session.setAttribute(\"donationPaymentResponse\", agentPaymentRespponseDto);\n session.setAttribute(\"SERVICE_ID\", (String.valueOf(serviceId)));\n\n// request.setAttribute(\"Fees\", fees.trim());\n return CONFIG.PAGE_PAY_AGENTPAYMENT;\n } else {\n request.getSession().setAttribute(\"ErrorCode\", CONFIG.getBillErrorCode(request.getSession())\n .concat(agentPaymentRespponseDto.getSTATUS_CODE())\n .concat(\" \")\n .concat(agentPaymentRespponseDto.getSTATUS_MESSAGE()));\n return CONFIG.PAGE_Agent_Payment;\n\n }\n\n } catch (Exception e) {\n MasaryManager.logger.error(\"Exception\" + e.getMessage(), e);\n\n request.getSession().setAttribute(\"ErrorCode\", e.getMessage());\n return CONFIG.PAGE_Agent_Payment;\n }\n\n }",
"public ITravelClassType getClassCode();",
"@org.jetbrains.annotations.NotNull()\n public abstract java.util.List<java.lang.String> getPaymentMethodTypes();",
"public String getRecapitoCode() {\n\t\treturn this.recapitoCode;\n\t}",
"public void calculatePayment() {}",
"public List<BrainTreePaymentInfo> getPaymentMethods()\n\t{\n\t\treturn getPaymentMethods( getSession().getSessionContext() );\n\t}",
"public java.lang.String getPaymentGateway() {\n return paymentGateway;\n }",
"public com.jspgou.cms.entity.Payment getPayment () {\r\n\t\treturn payment;\r\n\t}",
"String getCode();",
"String getCode();",
"String getCode();",
"String getCode();",
"String getCode();",
"public PaymentGatewayType getType() {\n return this.paymentGatewayType;\n }",
"java.lang.String getCode();",
"java.lang.String getCode();",
"com.google.protobuf.ByteString\n getArrivalAirportCodeBytes();",
"public BigDecimal getCODE() {\r\n return CODE;\r\n }",
"public BigDecimal getCODE() {\r\n return CODE;\r\n }"
]
| [
"0.69820017",
"0.6917606",
"0.6749295",
"0.6660229",
"0.643443",
"0.63866156",
"0.6381597",
"0.6142111",
"0.60613865",
"0.5822643",
"0.581717",
"0.58100754",
"0.5806408",
"0.57988346",
"0.5751236",
"0.57335496",
"0.56748474",
"0.56748474",
"0.56699425",
"0.5662618",
"0.566123",
"0.56203747",
"0.561277",
"0.56017834",
"0.5593584",
"0.5574399",
"0.55740863",
"0.55710346",
"0.5569855",
"0.55547106",
"0.554431",
"0.55346835",
"0.5527705",
"0.54938346",
"0.54673594",
"0.54576147",
"0.54571074",
"0.54365253",
"0.5427867",
"0.54201293",
"0.5392752",
"0.5384536",
"0.5364875",
"0.5352359",
"0.53362274",
"0.5329117",
"0.532183",
"0.5319252",
"0.5297905",
"0.5285723",
"0.5268136",
"0.52623016",
"0.5238162",
"0.5214137",
"0.519725",
"0.5187505",
"0.5186986",
"0.5185134",
"0.5182081",
"0.5171611",
"0.51587725",
"0.5158015",
"0.5142868",
"0.5136594",
"0.51291955",
"0.51198924",
"0.51165134",
"0.5114212",
"0.5111357",
"0.5105239",
"0.510516",
"0.51037735",
"0.51013297",
"0.5096295",
"0.5093558",
"0.5075636",
"0.50654906",
"0.5064354",
"0.5063608",
"0.50615543",
"0.5059221",
"0.50507116",
"0.50463635",
"0.5032855",
"0.50315225",
"0.50241524",
"0.50227773",
"0.5020983",
"0.5012636",
"0.5006984",
"0.5006984",
"0.5006984",
"0.5006984",
"0.5006984",
"0.50014585",
"0.49995497",
"0.49995497",
"0.49895677",
"0.49864858",
"0.49864858"
]
| 0.8067001 | 0 |
Returns the campus code of the initiator of this document | @Override
public String getCampusCode() {
final Person initiator = getPersonService().getPerson(getDocumentHeader().getWorkflowDocument().getInitiatorPrincipalId());
return initiator.getCampusCode();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCampusCode() {\n return campusCode;\n }",
"public char getSponsorFirstChar() {\r\n\t\treturn sponsorFirstChar;\r\n\t}",
"public String getInitiator()\n {\n return m_initiator;\n }",
"public java.lang.Object getInitiatingContactID() {\n return initiatingContactID;\n }",
"UUID getInitiativeId();",
"public DBSequence getClientNo() {\n return (DBSequence)getAttributeInternal(CLIENTNO);\n }",
"public long getOriginseqnum() {\n return originseqnum_;\n }",
"public long getOriginseqnum() {\n return originseqnum_;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getConsortium() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONSORTIUM_PROP.get());\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getConsortium() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONSORTIUM_PROP.get());\n }",
"public String consensus_sequence () {\n return(current_contig.consensus.sequence.toString());\r\n }",
"public String getConteIdseq() {\n return (String) getAttributeInternal(CONTEIDSEQ);\n }",
"public java.lang.String getPrimaryContact() {\n return primaryContact;\n }",
"public String getCinemaId() {\n return sharedPreferences.getString(CINEMA_ID, \"\");\n }",
"public com.google.protobuf.StringValue getChulaId() {\n if (chulaIdBuilder_ == null) {\n return chulaId_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : chulaId_;\n } else {\n return chulaIdBuilder_.getMessage();\n }\n }",
"public CampusId getHandlingCampus();",
"public String getPrimaryContact();",
"String getCreatorId();",
"@java.lang.Override\n public com.google.protobuf.StringValue getChulaId() {\n return chulaId_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : chulaId_;\n }",
"@ApiModelProperty(value = \"When present, this field contains recipient's middle initial\")\n public String getRecipientMiddleInitial() {\n return recipientMiddleInitial;\n }",
"long getOriginseqnum();",
"public java.lang.String getCA() {\n return CA;\n }",
"public String getContinuationAccountNumber() {\n return continuationAccountNumber;\n }",
"public ObjectType getInitiator() { return initiator; }",
"public String getAccountDescriptionCampusCode() {\n return accountDescriptionCampusCode;\n }",
"public java.lang.String getPrimaryStudent_id() {\n\t\treturn _primarySchoolStudent.getPrimaryStudent_id();\n\t}",
"public CampusEbo getCampus() {\n if ( StringUtils.isBlank(campusCode) ) {\n campus = null;\n } else {\n if ( campus == null || !StringUtils.equals( campus.getCode(),campusCode) ) {\n ModuleService moduleService = SpringContext.getBean(KualiModuleService.class).getResponsibleModuleService(CampusEbo.class);\n if ( moduleService != null ) {\n Map<String,Object> keys = new HashMap<String, Object>(1);\n keys.put(LocationConstants.PrimaryKeyConstants.CODE, campusCode);\n campus = moduleService.getExternalizableBusinessObject(CampusEbo.class, keys);\n } else {\n throw new RuntimeException( \"CONFIGURATION ERROR: No responsible module found for EBO class. Unable to proceed.\" );\n }\n }\n }\n return campus;\n }",
"public int getCinemaID() {\n return cinemaID;\n }",
"public ScText newOriginCountryCodeText()\n {\n return newOriginCountryCodeText(\"Origin Country Code\");\n }",
"public char consensus_nucleotide (int offset) {\n return current_contig.consensus.sequence.charAt(offset - 1);\r\n }",
"public String getOriginAirportIataCode() {\n return origin.getIataCode();\n }",
"String getOrganizationPartyId();",
"public WhoAmI getCreatorID() {\r\n\t\treturn myCreatorId;\r\n\t}",
"public String getCreatorCode() {\n return creatorCode;\n }",
"public String getIdentificationIssuingOrg() {\n return this.identificationIssuingOrg;\n }",
"public String getNurseoneCode() {\n return nurseoneCode;\n }",
"public String getConsignee() {\n return consignee;\n }",
"public String getConsignee() {\n return consignee;\n }",
"String getCampoId();",
"public java.lang.String getStudent_whoIntroduce() {\n\t\treturn _primarySchoolStudent.getStudent_whoIntroduce();\n\t}",
"public String getDeliveryCampusCode() {\r\n return deliveryCampusCode;\r\n }",
"public String getInstitutionCode() {\n return normalizedBic.substring(INSTITUTION_CODE_INDEX, INSTITUTION_CODE_INDEX + INSTITUTION_CODE_LENGTH);\n }",
"public BICorIBAN getSender() {\n\n // Get the sender of the missive document\n return this.missiveHeader.getSnd();\n }",
"java.lang.String getRecognitionId();",
"public int getCuisineID() {\n return cuisineID;\n }",
"public DBSequence getClientId() {\n return (DBSequence)getAttributeInternal(CLIENTID);\n }",
"@ApiModelProperty(value = \"This field contains sender's middle initial\")\n public String getSenderMiddleInitial() {\n return senderMiddleInitial;\n }",
"public String getEntrance() {\n\t\treturn entrance;\n\t}",
"public String getFirstItemCommodityCode() {\r\n return firstItemCommodityCode;\r\n }",
"public String getIntroducerCommission() {\r\n return introducerCommission;\r\n }",
"public int getSubjectStart()\n\t{\n\t\treturn mySubjectStart;\n\t}",
"public String getCountryCode() {\n return normalizedBic.substring(COUNTRY_CODE_INDEX, COUNTRY_CODE_INDEX + COUNTRY_CODE_LENGTH);\n }",
"public String getClaimSite(){\n\t\treturn this.claimSite;\n\t}",
"public String getCreatorId() {\n return this.CreatorId;\n }",
"public boolean initiator() {\n return initiator;\n }",
"public String getIdentityCardFront() {\n return identityCardFront;\n }",
"public String getCfdaNumber() {\n return cfdaNumber;\n }",
"public String getDoctoroneCode() {\n return doctoroneCode;\n }",
"public String getParticipantContactNumber() {\r\n\t\treturn participantContactNumber;\r\n\t}",
"public int getCSeqNumber() {\n return cSeqHeader.getSequenceNumber();\n }",
"public String getAuthorisor()\n\t{\n\t\treturn authorisor;\n\t}",
"java.lang.String getAoisId();",
"public java.lang.CharSequence getOriginh() {\n return originh;\n }",
"public String getConsigneeName() {\n return consigneeName;\n }",
"public java.lang.CharSequence getOriginh() {\n return originh;\n }",
"public String getFirstC() {\n\t\treturn firstFieldC.getText();\n\t}",
"public Long getSponsorId() {\n return sponsorId;\n }",
"int getOriginName();",
"public int get_crimeid() {\r\n return _crimeid;\r\n }",
"public String getAgentContactor() {\n return agentContactor;\n }",
"public String getOriginalConsignmentOpenTransactionId() {\n for (Enumeration em = compositePOSTransaction.getSaleLineItems(); em.hasMoreElements(); ) {\n CMSSaleLineItem line = (CMSSaleLineItem)em.nextElement();\n if (line.getConsignmentLineItem() != null) {\n return line.getConsignmentLineItem().getTransaction().getCompositeTransaction().getId();\n }\n }\n for (Enumeration em = compositePOSTransaction.getReturnLineItems(); em.hasMoreElements(); ) {\n CMSReturnLineItem line = (CMSReturnLineItem)em.nextElement();\n if (line.getConsignmentLineItem() != null) {\n return line.getConsignmentLineItem().getTransaction().getCompositeTransaction().getId();\n }\n }\n return null;\n }",
"@Override\n\tpublic long getResumeId() {\n\t\treturn _candidate.getResumeId();\n\t}",
"public Integer getFirstYearAttended() {\n return firstYearAttended;\n }",
"public String getConsigneeMobile() {\n return consigneeMobile;\n }",
"public Object getInitiator() {\n return mInitiator;\n }",
"public String getDeliCenterCode() {\n return deliCenterCode;\n }",
"public String getSponsorMobile() {\n return sponsorMobile;\n }",
"public String getOrgCode() {\n return orgCode;\n }",
"public String getOrgCode() {\n return orgCode;\n }",
"public String getSid()\n\t{\n\t\treturn conferenceInfo.getAttribute(\"sid\");\n\t}",
"public String getParentContinent() {\n return ParentContinent;\n }",
"public Optional<String> getIdentitySource() {\n return Optional.ofNullable(identitySource);\n }",
"java.lang.String getParticipant();",
"public String getInstructor ( )\n\t{\n\t\tif(instructor.length ( )==0 || instructor ==null)\n\t\t{\n\t\t\tinstructor=\"Instructor\";\n\t\t}\n\t\treturn instructor;\n\t\t\n\t}",
"public String getEncounteridentifier() {\n\t\treturn encounteridentifier;\n\t}",
"public String getMajorCode() {\r\n\t\tif (getMajor() != null)\r\n\t\t\treturn getMajor().getMajorCode();\r\n\t\treturn majorCode;\r\n\t}",
"public String getMasterCode() {\n\t\treturn masterCode;\n\t}",
"@Override\n\tpublic java.lang.String getProofNumber() {\n\t\treturn _candidate.getProofNumber();\n\t}",
"public String getOrganizationCode() {\n return organizationCode;\n }",
"public int getC_Campaign_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_Campaign_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public Chamber getStart() {\n return start;\n }",
"public java.lang.CharSequence getOriginp() {\n return originp;\n }",
"java.lang.String getCombatNpcPersonalityId();",
"public String getCer() {\n return cer;\n }",
"public java.lang.CharSequence getOriginp() {\n return originp;\n }",
"public java.lang.String getStudent_contactName() {\n\t\treturn _primarySchoolStudent.getStudent_contactName();\n\t}",
"public String getInstructor()\n\t{\n\t\tString strInstructor;\n\t\tstrInstructor=this.instructor;\n\t\treturn strInstructor;\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getClaimCenterUID();",
"public String getMere() {\r\n\t\treturn mere;\r\n\t}",
"public String getOriginator() {\n return originator;\n }"
]
| [
"0.5818643",
"0.5795109",
"0.5749114",
"0.5539751",
"0.55007356",
"0.5429605",
"0.5423287",
"0.5415184",
"0.5396726",
"0.5374665",
"0.53249073",
"0.5305026",
"0.5304914",
"0.52811456",
"0.519015",
"0.51890707",
"0.51612365",
"0.51503235",
"0.51373863",
"0.51357025",
"0.5133179",
"0.5132043",
"0.512736",
"0.51186883",
"0.51119596",
"0.51098675",
"0.5106775",
"0.5105082",
"0.50979584",
"0.5089218",
"0.5088624",
"0.5081295",
"0.50804013",
"0.50726074",
"0.5071995",
"0.50650555",
"0.50383395",
"0.50383395",
"0.50135183",
"0.5012516",
"0.5009647",
"0.50073224",
"0.5000407",
"0.5000139",
"0.49956474",
"0.4994995",
"0.4988317",
"0.49874824",
"0.4983865",
"0.49821904",
"0.49805737",
"0.49715844",
"0.4950113",
"0.49375108",
"0.49335915",
"0.49277344",
"0.4925048",
"0.49206674",
"0.49193755",
"0.49121726",
"0.48991194",
"0.4898914",
"0.48969483",
"0.48912424",
"0.48864672",
"0.4878124",
"0.487127",
"0.48710606",
"0.48611456",
"0.4859875",
"0.48548076",
"0.48541945",
"0.4854177",
"0.4852618",
"0.48521677",
"0.48513624",
"0.4840963",
"0.48383573",
"0.48383573",
"0.4833488",
"0.48215014",
"0.482141",
"0.4818201",
"0.48147774",
"0.48110095",
"0.48109946",
"0.480753",
"0.4805645",
"0.48023435",
"0.48022375",
"0.48014253",
"0.47934002",
"0.4790263",
"0.47829762",
"0.47822484",
"0.47795552",
"0.47775352",
"0.47689605",
"0.47680616",
"0.4767357"
]
| 0.7503407 | 0 |
Determines whether the parameters which fill in the advance accounting line are set | public boolean allParametersForAdvanceAccountingLinesSet() {
// not checking the object code because that will need to be set no matter what - every advance accounting line will use that
return (!StringUtils.isBlank(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT, KFSConstants.EMPTY_STRING)) &&
!StringUtils.isBlank(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART, KFSConstants.EMPTY_STRING)));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean hasRentabilityValues() {\n return (pensionParameters.getRentRisk() != null &&\n pensionParameters.getRentCons() != null &&\n pensionParameters.getRentMod() != null);\n }",
"public boolean checkAcross() {\r\n\t\tif (p1[0] + p1[1] + p1[2] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p1[3] + p1[4] + p1[5] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p1[6] + p1[7] + p1[8] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p2[0] + p2[1] + p2[2] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p2[3] + p2[4] + p2[5] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p2[6] + p2[7] + p2[8] == 15)\r\n\t\t\treturn true;\r\n\r\n\t\treturn false;\r\n\t}",
"boolean hasFillBehavior();",
"boolean hasSolverSpecificParameters();",
"public boolean checkSelf() {\n\t\tboolean ok = true;\n\t\tif (controller == null) {\n\t\t\tSystem.err.println(\"CRParameters :: controller not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (scenario.length() == 0 && controller.getWorld().getHasScenarios()) {\n\t\t\tSystem.err.println(\"CRParameters :: scenario not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (reportFolderName.length() == 0) {\n\t\t\tSystem.err.println(\"CRParameters :: report folder not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (trialDuration <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: trial duration not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\tif (numOfRuns <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: number of runs not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\tif (numOfTrials <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: number of trials not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\treturn ok;\n\t}",
"boolean hasParameters();",
"private boolean correctValues() {\n try {\n //TODO: check COM ports\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n return true;\n }",
"boolean isEstConditionne();",
"public Boolean isKochLineValid(){\n\t\treturn super.isValid();\n\t\t\n\t\t\n\t}",
"boolean hasBasisValue();",
"private boolean fieldsAreFilled(){\n return !textboxName.isEnabled() && !textboxInitialValue.isEnabled();\n }",
"private boolean CheckAllRequiredFields() {\n\t\tboolean res = true;\n\t\tres &= CheckParkSelection();\n\t\tres &= CheckDateSelection();\n\t\tres &= CheckVisitorHour();\n\t\tres &= CheckEmail();\n\t\tres &= CheckPhoneNumber();\n\t\treturn res;\n\t}",
"boolean hasAdParameter();",
"boolean hasParameterValue();",
"@Override\n public boolean isReady() {\n //at least one parameter estimtion must be enabled\n return (mPositionEstimationEnabled || mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled) &&\n //if position estimation is disabled, an initial position must be provided\n !(!mPositionEstimationEnabled && mInitialPosition == null) &&\n //if transmitted power estimation is disabled, an initial transmitted power must be provided\n !(!mTransmittedPowerEstimationEnabled && mInitialTransmittedPowerdBm == null) &&\n //readings must also be valid\n areValidReadings(mReadings);\n }",
"boolean isSetAmount();",
"protected boolean isOnPayline() {\n return getY()==getHeight();\n }",
"boolean isMandatory();",
"public boolean hasAA() {\n return fieldSetFlags()[17];\n }",
"public abstract boolean promulgationDataDefined();",
"public static boolean isAQuantificationParam(String accession) {\n for (QuantitationCVParam p : values()) {\n if (p.getAccession().equals(accession))\n return true;\n }\n\n return false;\n }",
"boolean hasDecisionPointParams();",
"private static boolean isParamSettable(String parameter)\n {\n if (parameter.equalsIgnoreCase(\"vdhe\") ||\n parameter.equalsIgnoreCase(\"vspe\") ||\n parameter.equalsIgnoreCase(\"dvle\") ||\n parameter.equalsIgnoreCase(\"dvme\") ||\n parameter.equalsIgnoreCase(\"ngon\") ||\n parameter.equalsIgnoreCase(\"ieon\") ||\n parameter.equalsIgnoreCase(\"deon\") ||\n parameter.equalsIgnoreCase(\"geon\") ||\n parameter.equalsIgnoreCase(\"dhsb\") ||\n parameter.equalsIgnoreCase(\"dhrg\") ||\n parameter.equalsIgnoreCase(\"dssb\") ||\n parameter.equalsIgnoreCase(\"dssa\") ||\n parameter.equalsIgnoreCase(\"dssf\") ||\n parameter.equalsIgnoreCase(\"dvla\") ||\n parameter.equalsIgnoreCase(\"iebt\") ||\n parameter.equalsIgnoreCase(\"iea\") ||\n parameter.equalsIgnoreCase(\"dea\") ||\n parameter.equalsIgnoreCase(\"ded\") ||\n parameter.equalsIgnoreCase(\"gebg\") ||\n parameter.equalsIgnoreCase(\"aoon\") ||\n parameter.equalsIgnoreCase(\"plb\") ||\n parameter.equalsIgnoreCase(\"plmd\") ||\n parameter.equalsIgnoreCase(\"vmon\") ||\n parameter.equalsIgnoreCase(\"vmb\") ||\n parameter.equalsIgnoreCase(\"dvli\") ||\n parameter.equalsIgnoreCase(\"dvlo\") ||\n parameter.equalsIgnoreCase(\"dvmc\") ||\n parameter.equalsIgnoreCase(\"ienb\") ||\n parameter.equalsIgnoreCase(\"iebf\") ||\n parameter.equalsIgnoreCase(\"genb\") ||\n parameter.equalsIgnoreCase(\"gebf\") ||\n parameter.equalsIgnoreCase(\"aonb\") ||\n parameter.equalsIgnoreCase(\"aobf\") ||\n parameter.equalsIgnoreCase(\"aobg\") ||\n parameter.equalsIgnoreCase(\"arnb\") ||\n parameter.equalsIgnoreCase(\"arbf\") ||\n parameter.equalsIgnoreCase(\"aocc\") ||\n parameter.equalsIgnoreCase(\"arbi\") ||\n parameter.equalsIgnoreCase(\"arbl\") ||\n parameter.equalsIgnoreCase(\"arbh\") ||\n parameter.equalsIgnoreCase(\"arod\") ||\n parameter.equalsIgnoreCase(\"artp\") )\n return true;\n else\n return false;\n }",
"boolean hasPlaneValue();",
"boolean isSetParlay();",
"boolean isSetAccountNumber();",
"public boolean isSetPreRepayAmt() {\n return EncodingUtils.testBit(__isset_bitfield, __PREREPAYAMT_ISSET_ID);\n }",
"boolean isSetCapitalPayed();",
"boolean getFill();",
"private boolean verify_AdjustedTimeIsSet() {\n \n boolean res = adjustedTimeIsSet();\n \n try {\n\n if (!res) {\n throw new Exception(\"Cannot provide data related to 'adjusted timestamp'\"\n + \" until it has been generated by a successful call to\"\n + \" `adjust(Shift)`. Data passed may be incorrect.\");\n }\n \n } catch(Exception e) {\n System.err.println(e.toString());\n }\n \n return res;\n \n }",
"public final boolean modstate_has_aftershock_params () {\n\t\treturn modstate >= MODSTATE_PARAMETERS;\n\t}",
"public boolean hasAlternations() {\n boolean b = false;\n POSLineItemDetail[] lineDetails = compositePOSTransaction.getLineItemDetailsArray();\n if (lineDetails == null || lineDetails.length == 0) {\n return false;\n }\n for (int i = 0; i < lineDetails.length; i++) {\n if (lineDetails[i] instanceof CMSSaleLineItemDetail) {\n CMSSaleLineItemDetail saleDetail = (CMSSaleLineItemDetail)lineDetails[i];\n AlterationLineItemDetail[] alternationsArray = saleDetail.getAlterationLineItemDetailArray();\n if (alternationsArray != null && alternationsArray.length > 0) {\n return true;\n }\n }\n }\n return b;\n }",
"public boolean initialConditions() {\n\n boolean evaluable;\n\n\n evaluable = diag.directedLinks();\n\n if (evaluable == false) {\n System.out.print(\"Influence Diagram with no directed links\\n\\n\");\n return (false);\n }\n\n evaluable = ((((IDWithSVNodes) diag).hasOnlyOneTerminalSVNode())\n || (((IDWithSVNodes) diag).hasOnlyOneValueNode()));\n\n\n if (evaluable == false) {\n System.out.print(\"Influence Diagram with 0 or more than 1 terminal super value nodes\\n or hasn't got an only utility node\\n\");\n return (false);\n }\n\n evaluable = diag.hasCycles();\n if (evaluable == true) {\n System.out.print(\"Influence Diagram with cycles\\n\\n\");\n return (false);\n }\n\n diag.addNonForgettingArcs();\n\n evaluable = diag.pathBetweenDecisions();\n if (evaluable == false) {\n System.out.print(\"Influence Diagram with non ordered decisions\\n\\n\");\n return (false);\n }\n\n evaluable = ((IDWithSVNodes) diag).isTreeStructureSV();\n if (evaluable == false) {\n System.out.print(\"Influence Diagram whose structure of value nodes isn't a tree\\n\\n\");\n return (false);\n }\n\n // Remove barren nodes\n\n //diag.eliminateRedundancy();\n diag.removeBarrenNodes();\n\n\n\n // Return true if OK\n\n return (true);\n }",
"boolean isSetStraight();",
"public boolean isSetParams() {\n return this.params != null;\n }",
"boolean isSetMultipleBetMinimum();",
"protected abstract boolean checkedParametersAppend();",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAp() {\n\t\tboolean flag = oTest.checkAp();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"private void setDegreeRequired ()\r\n {\r\n int j = 0;\r\n\r\n while (j < CAREERS.length && !CAREERS[j].equalsIgnoreCase (name))\r\n j++;\r\n\r\n if (j <= 3)\r\n degreeRequired = true;\r\n else degreeRequired = false;\r\n }",
"boolean isSetValuePeriod();",
"private boolean isParamValueConflicted(int paramIndex, int offset, int value)\n {\n boolean ret = false;\n\n if (constantAkParamsDefined_)\n {\n if (paramIndex == getAkParamIndex(\"genb\") && value != akParam_genb_)\n {\n Log.e(LOG_TAG, \"genb = \" + value + \" conflicts with the predefined value \" + akParam_genb_);\n ret = true;\n }\n else if (paramIndex == getAkParamIndex(\"ienb\") && value != akParam_ienb_)\n {\n Log.e(LOG_TAG, \"ienb = \" + value + \" conflicts with the predefined value \" + akParam_ienb_);\n ret = true;\n }\n else if (paramIndex == getAkParamIndex(\"aonb\") && value != akParam_aonb_)\n {\n Log.e(LOG_TAG, \"aonb = \" + value + \" conflicts with the predefined value \" + akParam_aonb_);\n ret = true;\n }\n else if (paramIndex == getAkParamIndex(\"arnb\") && value != akParam_aonb_)\n {\n Log.e(LOG_TAG, \"arnb = \" + value + \" conflicts with the predefined value \" + akParam_aonb_);\n ret = true;\n }\n else if (paramIndex == getAkParamIndex(\"aocc\") && value != AKPARAM_AOCC)\n {\n Log.e(LOG_TAG, \"aocc = \" + value + \" conflicts with the predefined value \" + AKPARAM_AOCC);\n ret = true;\n }\n }\n else\n {\n Log.e(LOG_TAG, \"Settable settings not defined yet\");\n ret = true;\n }\n\n return ret;\n }",
"public void propagateAdvanceInformationIfNeeded() {\n if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().getTravelAdvanceRequested() != null) {\n if (!ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setCheckTotalAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n final TemSourceAccountingLine maxAmountLine = getAccountingLineWithLargestAmount();\n if (!TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus())) {\n getAdvanceAccountingLines().get(0).setAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n if (!allParametersForAdvanceAccountingLinesSet() && !TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus()) && !advanceAccountingLinesHaveBeenModified(maxAmountLine)) {\n // we need to set chart, account, sub-account, and sub-object from account with largest amount from regular source lines\n if (maxAmountLine != null) {\n getAdvanceAccountingLines().get(0).setChartOfAccountsCode(maxAmountLine.getChartOfAccountsCode());\n getAdvanceAccountingLines().get(0).setAccountNumber(maxAmountLine.getAccountNumber());\n getAdvanceAccountingLines().get(0).setSubAccountNumber(maxAmountLine.getSubAccountNumber());\n }\n }\n // let's also propogate the due date\n if (getTravelAdvance().getDueDate() != null && !ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setDueDate(getTravelAdvance().getDueDate());\n }\n }\n }",
"public void checkExistingParameter() {\n parameterList.clear();\n if (!attribute[13].equalsIgnoreCase(\"NA\")) {\n parameterList.add(parameterStore.getParameterWithCode(\"HB000\"));\n }\n\n if (!attribute[14].equalsIgnoreCase(\"NA\")) {\n parameterList.add(parameterStore.getParameterWithCode(\"WBC00\"));\n }\n\n if (!attribute[15].equalsIgnoreCase(\"NA\")) {\n parameterList.add(parameterStore.getParameterWithCode(\"PLT00\"));\n }\n\n if (!attribute[16].equalsIgnoreCase(\"NA\")) {\n parameterList.add(parameterStore.getParameterWithCode(\"RBC00\"));\n }\n\n if (!attribute[20].equalsIgnoreCase(\"NA\")) {\n parameterList.add(parameterStore.getParameterWithCode(\"IgGAN\"));\n }\n }",
"private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}",
"public boolean isSetParams() {\n return this.params != null;\n }",
"public boolean isSetParams() {\n return this.params != null;\n }",
"public boolean isSetParams() {\n return this.params != null;\n }",
"public boolean isSetParams() {\n return this.params != null;\n }",
"public boolean isSetParams() {\n return this.params != null;\n }",
"public boolean isParameterProvided();",
"boolean isSetConstraints();",
"public boolean hasCLAPPROVAL() {\n return fieldSetFlags()[5];\n }",
"boolean hasReturnFlightLeg();",
"boolean isSetValueRatio();",
"public boolean probabilidadTotalEsValida(){\n return probabilidadTotal == 1.0;\n }",
"private boolean validateParams(int amount) {\n\t\tString paramArray[] = {param1,param2,param3,param4,param5,param6};\r\n\t\tfor(int i = 0; i < amount; i++) {\r\n\t\t\tif(paramArray[i] == null) {\r\n\t\t\t\t//Error\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"boolean isSetInterpretation();",
"public boolean isCalibrated()\n {\n return pntCalibration != null;\n }",
"private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }",
"public boolean isSetTotalLiab() {\n return EncodingUtils.testBit(__isset_bitfield, __TOTALLIAB_ISSET_ID);\n }",
"public boolean isValidRecord () {\n int sumError = latitudeError +\n longitudeError +\n depthError +\n temperatureMinError +\n temperatureMaxError +\n salinityMinError +\n salinityMaxError +\n oxygenMinError +\n oxygenMaxError +\n nitrateMinError +\n nitrateMaxError +\n phosphateMinError +\n phosphateMaxError +\n silicateMinError +\n silicateMaxError +\n chlorophyllMinError +\n chlorophyllMaxError;\n return (sumError == 0 ? true : false);\n }",
"boolean hasPredefinedValues();",
"public static boolean chkManualEncumbranceRejValid(EscmProposalMgmt proposalmgmt) {\n try {\n OBContext.setAdminMode();\n EscmProposalMgmt baseProposal = proposalmgmt.getEscmBaseproposal();\n if (baseProposal == null) {\n OBQuery<EfinBudgetManencumlines> encline = OBDal.getInstance().createQuery(\n EfinBudgetManencumlines.class,\n \" as e where e.manualEncumbrance.id=:encumId and e.id in \"\n + \" ( select b.efinBudgmanencumline.id from Escm_Proposalmgmt_Line b \"\n + \" where b.escmProposalmgmt.id=:proposalId) and e.usedAmount > 0 \");\n encline.setNamedParameter(\"encumId\", proposalmgmt.getEfinEncumbrance().getId());\n encline.setNamedParameter(\"proposalId\", proposalmgmt.getId());\n\n if (encline.list().size() > 0) {\n return true;\n } else\n return false;\n } else if (baseProposal != null) {\n for (EscmProposalmgmtLine lines : proposalmgmt.getEscmProposalmgmtLineList()) {\n if (!lines.isSummary() && lines.getStatus() == null) {\n EfinBudgetManencumlines encline = lines.getEscmOldProposalline()\n .getEfinBudgmanencumline();\n // if reserved then consider new proposal line total\n BigDecimal amountDiffernce = lines.getEscmOldProposalline().getLineTotal()\n .subtract(lines.getLineTotal());\n if (amountDiffernce.compareTo(BigDecimal.ZERO) > 0\n && encline.getRemainingAmount().compareTo(amountDiffernce) < 0\n && encline.getManualEncumbrance().getEncumMethod().equals(\"M\")) {\n return true;\n } else {\n return false;\n }\n }\n }\n }\n\n } catch (final Exception e) {\n log.error(\"Exception in chkManualEncumbranceValidation after Reject : \", e);\n return false;\n } finally {\n OBContext.restorePreviousMode();\n }\n return false;\n }",
"boolean isSetLeading();",
"public boolean hasParameters() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasParameters()\");\n Via via=(Via)sipHeader;\n \n return via.hasParameters();\n }",
"@Test\n public void testIsValid() {\n assertTrue(scoutDec.isValid());\n scoutDec.setParameters(new DirectionParameters(null));\n assertFalse(scoutDec.isValid());\n }",
"public boolean validDeclineCodeAndAmount() {\n\t\tint amount, declineCode;\n\t\ttry {\n\t\t\tamount = Integer.parseInt(txtApprovalAmount.getText());\n\t\t\tdeclineCode = Integer.parseInt(txtDeclineCode.getText());\n\t\t\tif (declineCode < 0 || declineCode > Integer.parseInt(Initializer.getBaseVariables().bitfield39UpperLimit)\n\t\t\t\t\t|| txtDeclineCode.getText().length() > Initializer.getBitfieldData().bitfieldLength\n\t\t\t\t\t\t\t.get(Initializer.getBaseConstants().nameOfbitfield39)) {\n\t\t\t\tlogger.error(\"Entered decline code is invalid. Valid range is 0 - \"\n\t\t\t\t\t\t+ Initializer.getBaseVariables().bitfield39UpperLimit);\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Entered decline code is invalid. Valid range is 0 - \"\n\t\t\t\t\t\t+ Initializer.getBaseVariables().bitfield39UpperLimit);\n\t\t\t\treturn false;\n\t\t\t} else if (txtApprovalAmount.getText().length() > Initializer.getBitfieldData().bitfieldLength\n\t\t\t\t\t.get(Initializer.getBaseConstants().nameOfbitfield4)) {\n\t\t\t\tlogger.error(\"Entered amount is invalid.\");\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Entered amount is invalid.\");\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\tlogger.error(\"Only valid range of numbers should be entered for decline code and Amount\");\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Only valid range of numbers should be entered for decline code and Amount\");\n\t\t\treturn false;\n\t\t}\n\t}",
"boolean isSetValueQuantity();",
"boolean valid() {\n boolean valid = true;\n\n if (!isAgencyLogoPathValid()) {\n valid = false;\n }\n if (!isMemFieldValid()) {\n valid = false;\n }\n if (!isLogNumFieldValid()) {\n valid = false;\n }\n\n return valid;\n }",
"public boolean hasDecisionPointParams() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"private void correctParameter(){\n \tint ifObtuse;\r\n \tif(initialState.v0_direction>90)ifObtuse=1;\r\n \telse ifObtuse=0;\r\n \tdouble v0=initialState.v0_val;\r\n \tdouble r0=initialState.r0_val;\r\n \tdouble sintheta2=Math.sin(Math.toRadians(initialState.v0_direction))*Math.sin(Math.toRadians(initialState.v0_direction));\r\n \tdouble eccentricityMG=Math.sqrt(center.massG*center.massG-2*center.massG*v0*v0*r0*sintheta2+v0*v0*v0*v0*r0*r0*sintheta2);\r\n \tdouble cosmiu0=-(v0*v0*r0*sintheta2-center.massG)/eccentricityMG;\r\n \tpe=(v0*v0*r0*r0*sintheta2)/(center.massG+eccentricityMG);\r\n \tap=(v0*v0*r0*r0*sintheta2)/(center.massG-eccentricityMG);\r\n \tsemimajorAxis=(ap+pe)/2;\r\n \tsemiminorAxis=Math.sqrt(ap*pe);\r\n \tsemifocallength=(ap-pe)/2;\r\n \tSystem.out.println(semimajorAxis+\",\"+semiminorAxis+\",\"+semifocallength);\r\n \teccentricity=eccentricityMG/center.massG;\r\n \tperiod=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));\r\n \trotate=(360-Math.toDegrees(Math.acos(cosmiu0)));\r\n \torbitCalculator.angleDelta=(Math.toDegrees(Math.acos(cosmiu0))+360);\r\n \trotate=rotate+initialState.r0_direction;\r\n \t\r\n \tif(ifObtuse==1) {\r\n \t\tdouble rbuf=rotate;\r\n \t\trotate=initialState.r0_direction-rotate;\r\n \t\torbitCalculator.angleDelta+=(2*rbuf-initialState.r0_direction);\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate>360)rotate=rotate-360;\r\n \t\telse break;\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate<0)rotate=rotate+360;\r\n \t\telse break;\r\n \t}\r\n \t/*\r\n \tpe=initialState.r0_val;\r\n rotate=initialState.r0_direction;\r\n ap=(initialState.v0_val*initialState.v0_val*pe*pe)/(2*center.massG-initialState.v0_val*initialState.v0_val*pe);\r\n peSpeed=initialState.v0_val;\r\n apSpeed=(2*center.massG-initialState.v0_val*initialState.v0_val*pe)/(initialState.v0_val*pe);\r\n if(ap<pe){\r\n double lf=ap;ap=pe;pe=lf;\r\n lf=apSpeed;apSpeed=peSpeed;peSpeed=lf;\r\n }\r\n semimajorAxis=(ap+pe)/2;\r\n semifocallength=(ap-pe)/2;\r\n semiminorAxis=Math.sqrt(ap*pe);\r\n eccentricity=semifocallength/semimajorAxis;\r\n period=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));*/\r\n }",
"public boolean isDefined() {\n return lineNumber >= 0;\n }",
"public boolean isValidSetup() {\n\t\tif(!rowCheck())\n\t\t\treturn false;\n\t\tif(!columnCheck())\n\t\t\treturn false;\n\t\tif(!subGridCheck())\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"public boolean isValid(){\n\t\treturn points.size() >= 2;\n\t}",
"boolean isSetRequired();",
"boolean isSetComplianceCheckResult();",
"boolean isSetAppliesPeriod();",
"boolean hasDynamicLineup();",
"boolean isSetBegin();",
"protected boolean isValidParams(int numRows, int numDraw) {\r\n //Assume it is true\r\n boolean isValid = true;\r\n //If any params are invalid, return false\r\n if (numRows < 1 || numDraw < 0 || numRows > 8) {\r\n isValid = false;\r\n }\r\n\r\n int numPosDraw = 104;\r\n for (int i = numRows; i > 0; i--) {\r\n numPosDraw = numPosDraw - i;\r\n }\r\n if (numDraw > numPosDraw) {\r\n isValid = false;\r\n }\r\n return isValid;\r\n }",
"public Boolean valid() {\n\t\treturn this.getMeasuredBy()!=null && this.getMeasuredBy().valid();\n\t}",
"public boolean nextConditionMet() {\n return true;\n }",
"boolean known() {\n\t\t\treturn !varAddress && !varMask;\n\t\t}",
"boolean isSetSingleBetMinimum();",
"boolean hasAccY();",
"public boolean isValid() {\n return (this.S>=0 && this.I>=0 && this.R>=0);\n }",
"boolean hasBasis();",
"public boolean isValid() {\n\t\tif(goals1 == goals2 && !usedExtraTime)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"boolean hasAccountBudgetProposal();",
"public void checkParameters() {\n }",
"boolean hasAabbValue();",
"public boolean isSolved(){ return getRemainingValues() == 0; }",
"public boolean testAllocation() {\n //\tCash Trx always allocated\n if (isCashTrx()) {\n if (!isAllocated()) {\n setIsAllocated(true);\n return true;\n }\n return false;\n }\n //\n BigDecimal alloc = getAllocatedAmt();\n\n if (alloc == null) {\n alloc = Env.ZERO;\n }\n BigDecimal total = getPayAmt();\n\n if (!isReceipt()) {\n total = total.negate();\n }\n boolean test = total.compareTo(alloc) == 0;\n boolean change = test != isAllocated();\n if (change) {\n setIsAllocated(test);\n }\n log.fine(\"Allocated=\" + test\n + \" (\" + alloc + \"=\" + total + \")\");\n return change;\n }",
"public boolean hasAccY() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean isSetPrf()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PRF$26) != 0;\r\n }\r\n }",
"private boolean checkFields() {\n boolean test = true;\n if (fname.isEmpty()) {\n test = false;\n }\n if (lname.isEmpty()) {\n test = false;\n }\n if (cin.isEmpty()) {\n test = false;\n }\n if (typeCompte.equals(\"Bancaire\")) {\n if (decouvertNF.isEmpty())\n test = false;\n } else if (typeCompte.equals(\"Epargne\")) {\n if (tauxInteretNF.isEmpty())\n test = false;\n }\n if (s_datePK.getValue() == null) {\n s_datePK.setStyle(\"-fx-border-color:red;-fx-border-radius:3px;-fx-border-size: 1px;\");\n test = false;\n }\n\n return test;\n }",
"public boolean hasAccY() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"boolean hasLineage();",
"public boolean isFilled ( ) {\r\n\t\treturn fill_flag;\r\n\t}",
"public boolean isSetAccountabilities() {\n return this.accountabilities != null;\n }"
]
| [
"0.63473964",
"0.6030495",
"0.5790882",
"0.5789135",
"0.57448167",
"0.5739097",
"0.5727031",
"0.57097656",
"0.5684239",
"0.5674283",
"0.5663487",
"0.56599927",
"0.5657268",
"0.5630742",
"0.55927575",
"0.5553208",
"0.55477935",
"0.5521028",
"0.5501968",
"0.5488617",
"0.54770404",
"0.5463234",
"0.5458264",
"0.54356784",
"0.5427143",
"0.54237217",
"0.5421819",
"0.5416997",
"0.5408209",
"0.53978556",
"0.5397571",
"0.5396085",
"0.5394495",
"0.53699136",
"0.53652817",
"0.5362585",
"0.534433",
"0.5342867",
"0.53379923",
"0.53341395",
"0.5334012",
"0.53207684",
"0.5311858",
"0.5311264",
"0.53083014",
"0.53083014",
"0.53083014",
"0.53083014",
"0.53083014",
"0.53080624",
"0.53077286",
"0.5303096",
"0.5299151",
"0.52902067",
"0.528187",
"0.5278758",
"0.52785116",
"0.5276596",
"0.52639",
"0.5259634",
"0.5256119",
"0.5247103",
"0.5245485",
"0.524515",
"0.5243123",
"0.52428603",
"0.52388525",
"0.5218626",
"0.5215614",
"0.52132803",
"0.52132475",
"0.52088183",
"0.51826847",
"0.5178129",
"0.5175271",
"0.5173265",
"0.51709247",
"0.517043",
"0.51690185",
"0.5165931",
"0.5164406",
"0.51637566",
"0.5162633",
"0.5157571",
"0.5156446",
"0.51500475",
"0.5149715",
"0.5146404",
"0.51406044",
"0.51284784",
"0.5126933",
"0.51238734",
"0.51194906",
"0.51085836",
"0.5105677",
"0.5104854",
"0.5100048",
"0.5093995",
"0.50932795",
"0.5092256"
]
| 0.7885374 | 0 |
Propagates the amount from the advance to the travel payment and to the accounting line if the accounting line is read only | public void propagateAdvanceInformationIfNeeded() {
if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().getTravelAdvanceRequested() != null) {
if (!ObjectUtils.isNull(getAdvanceTravelPayment())) {
getAdvanceTravelPayment().setCheckTotalAmount(getTravelAdvance().getTravelAdvanceRequested());
}
final TemSourceAccountingLine maxAmountLine = getAccountingLineWithLargestAmount();
if (!TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus())) {
getAdvanceAccountingLines().get(0).setAmount(getTravelAdvance().getTravelAdvanceRequested());
}
if (!allParametersForAdvanceAccountingLinesSet() && !TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus()) && !advanceAccountingLinesHaveBeenModified(maxAmountLine)) {
// we need to set chart, account, sub-account, and sub-object from account with largest amount from regular source lines
if (maxAmountLine != null) {
getAdvanceAccountingLines().get(0).setChartOfAccountsCode(maxAmountLine.getChartOfAccountsCode());
getAdvanceAccountingLines().get(0).setAccountNumber(maxAmountLine.getAccountNumber());
getAdvanceAccountingLines().get(0).setSubAccountNumber(maxAmountLine.getSubAccountNumber());
}
}
// let's also propogate the due date
if (getTravelAdvance().getDueDate() != null && !ObjectUtils.isNull(getAdvanceTravelPayment())) {
getAdvanceTravelPayment().setDueDate(getTravelAdvance().getDueDate());
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void initiateAdvancePaymentAndLines() {\n setDefaultBankCode();\n setTravelAdvance(new TravelAdvance());\n getTravelAdvance().setDocumentNumber(getDocumentNumber());\n setAdvanceTravelPayment(new TravelPayment());\n getAdvanceTravelPayment().setDocumentNumber(getDocumentNumber());\n getAdvanceTravelPayment().setDocumentationLocationCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TravelParameters.DOCUMENTATION_LOCATION_CODE,\n getParameterService().getParameterValueAsString(TemParameterConstants.TEM_DOCUMENT.class,TravelParameters.DOCUMENTATION_LOCATION_CODE)));\n getAdvanceTravelPayment().setCheckStubText(getConfigurationService().getPropertyValueAsString(TemKeyConstants.MESSAGE_TA_ADVANCE_PAYMENT_HOLD_TEXT));\n final java.sql.Date currentDate = getDateTimeService().getCurrentSqlDate();\n getAdvanceTravelPayment().setDueDate(currentDate);\n updatePayeeTypeForAuthorization(); // if the traveler is already initialized, set up payee type on advance travel payment\n setWireTransfer(new PaymentSourceWireTransfer());\n getWireTransfer().setDocumentNumber(getDocumentNumber());\n setAdvanceAccountingLines(new ArrayList<TemSourceAccountingLine>());\n resetNextAdvanceLineNumber();\n TemSourceAccountingLine accountingLine = initiateAdvanceAccountingLine();\n addAdvanceAccountingLine(accountingLine);\n }",
"@Override\n\tpublic void process(double amt) {\n\t\tSystem.out.println(\"Amt Deposited:\" +amt);\n\t\tb1.bal = b1.bal+amt;\n\t\tb1.getBal();\n\t\tSystem.out.println(\"Transaction completed\");\n\t}",
"public void annualProcess() {\n super.withdraw(annualFee);\n }",
"public void recordPurchase(double amount)\n {\n balance = balance - amount;\n // your code here\n \n }",
"protected void deposit(double amount)\n\t{\n\t\tacc_balance+=amount;\n\t}",
"public void credit(double amount) {\n this.balance += amount;\n }",
"public static void deposit(){\n TOTALCMONEY = TOTALCMONEY + BALANCEDEPOSIT; //the cashier money equals the cashier money plus the amount that is being deposited\r\n BALANCE = BALANCE + BALANCEDEPOSIT; //the user balance equals the user balance plus the amount that is being deposited\r\n }",
"private void updateTransaction() {\n LogUtils.logEnterFunction(Tag);\n\n String inputtedAmount = etAmount.getText().toString().trim().replaceAll(\",\", \"\");\n if (inputtedAmount.equals(\"\") || Double.parseDouble(inputtedAmount) == 0) {\n etAmount.setError(getResources().getString(R.string.Input_Error_Amount_Empty));\n return;\n }\n\n if (mAccount == null) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Account_Empty));\n return;\n }\n\n Double amount = Double.parseDouble(inputtedAmount);\n int categoryId = mCategory != null ? mCategory.getId() : 0;\n String description = tvDescription.getText().toString();\n int accountId = mAccount.getId();\n String strEvent = tvEvent.getText().toString();\n Event event = null;\n\n if (!strEvent.equals(\"\")) {\n event = mDbHelper.getEventByName(strEvent);\n if (event == null) {\n long eventId = mDbHelper.createEvent(new Event(0, strEvent, mCal, null));\n if (eventId != -1) {\n event = mDbHelper.getEvent(eventId);\n }\n }\n }\n\n // Less: Repayment, More: Lend\n if(mCategory.getDebtType() == Category.EnumDebt.LESS || mCategory.getDebtType() == Category.EnumDebt.MORE) {\n\n boolean isDebtValid = true;\n if(mCategory.getDebtType() == Category.EnumDebt.LESS) { // Income -> Debt Collecting\n List<Debt> debts = mDbHelper.getAllDebtByPeople(tvPeople.getText().toString());\n\n Double lend = 0.0, debtCollect = 0.0;\n for(Debt debt : debts) {\n if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) {\n lend += debt.getAmount();\n }\n\n if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) {\n debtCollect += debt.getAmount();\n }\n }\n\n if(debtCollect + amount > lend) {\n isDebtValid = false;\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_collect_invalid));\n }\n\n } // End DebtType() == Category.EnumDebt.LESS\n if(isDebtValid) {\n Transaction transaction = new Transaction(mTransaction.getId(),\n TransactionEnum.Income.getValue(),\n amount,\n categoryId,\n description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n int row = mDbHelper.updateTransaction(transaction);\n if (row == 1) { // Update transaction OK\n\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n Debt debt = mDbHelper.getDebtByTransactionId(mTransaction.getId());\n debt.setCategoryId(mCategory.getId());\n debt.setAmount(amount);\n debt.setPeople(tvPeople.getText().toString());\n\n int debtRow = mDbHelper.updateDebt(debt);\n if(debtRow == 1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_successful));\n cleanup();\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n } else {\n // Revert update\n mDbHelper.updateTransaction(mTransaction);\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_fail));\n }\n } else {\n Debt newDebt = new Debt();\n newDebt.setCategoryId(mCategory.getId());\n newDebt.setTransactionId((int) mTransaction.getId());\n newDebt.setAmount(amount);\n newDebt.setPeople(tvPeople.getText().toString());\n\n long debtId = mDbHelper.createDebt(newDebt);\n if(debtId != -1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));\n cleanup();\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n } else {\n // Revert update\n mDbHelper.updateTransaction(mTransaction);\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_fail));\n }\n } // End create new Debt\n\n } // End Update transaction OK\n } // End isDebtValid\n\n } else { // CATEGORY NORMAL\n Transaction transaction = new Transaction(mTransaction.getId(),\n TransactionEnum.Income.getValue(),\n amount,\n categoryId,\n description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n int row = mDbHelper.updateTransaction(transaction);\n if (row == 1) { // Update transaction OK\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n mDbHelper.deleteDebt(mDbHelper.getDebtByTransactionId(mTransaction.getId()).getId());\n }\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n }\n }\n\n LogUtils.logLeaveFunction(Tag);\n }",
"public void transferToChecking(double amount){\n withdrawSavings(amount);\r\n depositChecking(amount);\r\n }",
"@Override\n\tvoid deposit(double amount) {\n\t\tsuper.balance += amount - 20;\n\t}",
"public void addAdvanceAccountingLine(TemSourceAccountingLine line) {\n line.setSequenceNumber(this.getNextAdvanceLineNumber());\n this.advanceAccountingLines.add(line);\n this.nextAdvanceLineNumber = new Integer(getNextAdvanceLineNumber().intValue() + 1);\n }",
"public AmountOfMoney pay(AmountOfMoney paidAmount) throws InsufficientFundsException{\n AmountOfMoney change = sale.payForSale(paidAmount);\n SaleDTO finalSaleInformation = sale.getSaleData();\n reciept = new Receipt(finalSaleInformation, change, paidAmount);\n registryCreator.getExternalSystems().updateAccountingSystem(finalSaleInformation);\n registryCreator.getExternalSystems().updateInventorySystem(finalSaleInformation);\n printer.printReciept(reciept);\n \n\n return change;\n\n }",
"public void deposit(double value){\r\n balance += value;\r\n}",
"public void withdraw(double amount)\n {\n if (amount <= balance) {\n balance = balance - amount;\n }\n else {\n System.err.println(\"Transaction Declined\");\n remainder = balance - amount;\n System.out.println(\"Your balance would have been \" + remainder);\n }\n }",
"public void withDrawAmount() {\n\t\t\n\t\ttry {\t\n\t\t\tlog.log(Level.INFO, \"Please Enter the account number you want to withdraw: \");\n\t\t\tint withdrawAccountNumber = scan.nextInt();\n\t\t\tlong amount;\n\t\t\tlog.log(Level.INFO, \"Please Enter the amount you want to withdraw : \");\n\t\t\tamount = scan.nextLong();\n\t\t\tbankop.withDraw(withdrawAccountNumber,amount);\n\t\t\t\n\t\t}catch(AccountDetailsException | BalanceException message ) {\n\t\t\tlog.log(Level.INFO, message.getMessage());\n\t\t}\n\n\t}",
"@Override\n protected void withdraw(int request, boolean isOverdraft){\n if(request>0){\n request += SERVICE_FEE;\n }\n //need to change both balances just in case there was a LARGE_DEPOSIT \n //making it so that the 2 balance values differ\n setBalance(getBalance() - request);\n setBalanceAvailable(getBalanceAvailable() - request);\n }",
"public void withdraw (double amount)\n {\n super.withdraw (amount);\n imposeTransactionFee ();\n }",
"void deposit(double amount)\n\t{\n\t\tbalance += amount;\n\t\t//what this translates to is\n\t\t// this.balance += amount;\n\t}",
"public void deposit(double amount) {\n balance = balance + amount + 10;\n }",
"public void deposit (double amount) \r\n {\r\n\r\n balance += amount;\r\n System.out.println (\"Deposit into account shs: \" + account);\r\n System.out.println (\"Standing Amount: \" + amount);\r\n System.out.println (\"Current balance: \" + balance);\r\n System.out.println ();\r\n\r\n }",
"@Override\n\tpublic void payRent(RentDue d) {\n\t\t\n\t}",
"public abstract String withdrawAmount(double amountToBeWithdrawn);",
"private static void deposite (double amount) {\n double resultDeposit = balance + amount;\r\n System.out.println(\"Deposit successful.\\nCurrent balance: \" + \"$\" + resultDeposit+ \".\");\r\n }",
"void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}",
"@Override\n public void withdraw(double amount) //Overridden method\n {\n elapsedPeriods++;\n \n if(elapsedPeriods<maturityPeriods)\n {\n double fees = getBalance()*(interestPenaltyRate/100)*elapsedPeriods;\n super.withdraw(fees);//withdraw the penalty\n super.withdraw(amount);//withdraw the actual amount\n \n }\n \n }",
"public void depositAmount() {\n\t\n\t\ttry {\n\t\t\tlog.log(Level.INFO, \"Please Enter the account number you want to deposit: \");\n\t\t\tint depositAccountNumber = scan.nextInt();\n\t\t\tlong amount;\n\t\t\tlog.log(Level.INFO, \"Please Enter the amount you want to Deposit : \");\n\t\t\tamount = scan.nextLong();\n\t\t\tbankop.deposit(depositAccountNumber,amount);\n\t\t\t\n\t\t}catch(AccountDetailsException | BalanceException message ) {\n\t\t\tlog.log(Level.INFO, message.getMessage());\n\t\t}\n\t\t\n\t}",
"public void payEconomical() {\n if (this.balance >= 2.50) {\n this.balance -= 2.50;\n }\n }",
"@Override\n public boolean withdraw(double amount) {\n boolean res = store_trans(amount*-1);\n\n if(res){\n res=super.withdraw(amount);\n }\n\n return res;\n }",
"@Override\r\n public void resetAccount() {\r\n super.resetAccount();\r\n this.getNewSourceLine().setAmount(null);\r\n this.getNewSourceLine().setAccountLinePercent(new BigDecimal(0));\r\n }",
"public void deposit(double amount)\n {\n balance = balance + amount;\n }",
"public static void amountPaid(){\n NewProject.tot_paid = Double.parseDouble(getInput(\"Please enter NEW amount paid to date: \"));\r\n\r\n UpdateData.updatePayment();\r\n updateMenu();\t//Return back to previous menu.\r\n\r\n }",
"public void deposit(double amount)\n {\n startingBalance += amount;\n }",
"@Override\r\n\tpublic void operateAmount(String AccountID, BigDecimal amount) {\n\r\n\t}",
"@Override\n\tvoid withdraw(double amount) {\n\t\tsuper.balance -= amount - 20;\n\t}",
"@Override\n public double pay() {\n double payment = super.pay() + (this.commision_rate * this.total_sales);\n this.total_sales = 0;\n return payment;\n }",
"public void nonSyncdeposit(double amount)\r\n\t {\r\n\t if(amount<0){//if deposit amount is negative\r\n\t \t System.out.println(\"Invalid amount cannot deposit\");\r\n\t }\r\n\t else{ //logic to deposit amount\r\n\t\t System.out.print(\"Depositing \" + amount);\r\n\t double newBalance = balance + amount;\r\n\t System.out.println(\", new balance is \" + newBalance);\r\n\t balance = newBalance;\r\n\t }\r\n\t }",
"public void deposit(double amount) {\n this.balance += amount;\n }",
"void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }",
"public void setAmount(double amount) {\nloanAmount = amount;\n}",
"public Object creditEarningsAndPayTaxes()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setInitialCash : \" + \"Agent\");\r\n/* 144 */ \tgetPriceFromWorld();\r\n/* 145 */ \tgetDividendFromWorld();\r\n/* */ \r\n/* */ \r\n/* 148 */ \tthis.cash -= (this.price * this.intrate - this.dividend) * this.position;\r\n/* 149 */ \tif (this.cash < this.mincash) {\r\n/* 150 */ \tthis.cash = this.mincash;\r\n/* */ }\t\r\n/* */ \r\n/* 153 */ \tthis.wealth = (this.cash + this.price * this.position);\r\n/* */ \r\n/* 155 */ \treturn this;\r\n/* */ }",
"@Override\n public void deposit(double amount) {\n super.deposit(amount);\n store_trans(amount);\n }",
"public void deposit(double amount)\n {\n balanceChangeLock.lock();\n try\n {\n System.out.print(\"Depositando \" + amount);\n double newBalance = balance + amount;\n System.out.println(\", novo saldo igual a \" + newBalance);\n balance = newBalance;\n sufficientFundsCondition.signalAll();\n }\n finally\n {\n balanceChangeLock.unlock();\n }\n }",
"public void refill(int amount) {\n myAmount = myAmount + amount;\n }",
"@Override\n public void deposit(double amount) {\n double balance = getBalance();\n setBalance(balance+amount);\n }",
"public boolean withdraw(double amount) {\n if (super.withdraw(amount)) {\n airlineDollars += amount * dollarRate;\n totalSpent += amount;\n claimDollars();\n return true;\n }\n return false;\n }",
"public void deposit(double amount){\n\t\tbalance += amount;\n\t}",
"public void setAdvanceTravelPayment(TravelPayment advanceTravelPayment) {\n this.advanceTravelPayment = advanceTravelPayment;\n }",
"public void withdraw(double amount){\n accTransactions.add(new Transaction('W', amount, balance, \"withdraw\"));\n balance -= amount;\n }",
"@Override\n public void calculatePayment()\n {\n this.paymentAmount = annualSalary / SALARY_PERIOD;\n }",
"public void withdraw(double amount){\n\t\tbalance -= amount;\n\t}",
"public void adjustPay(double percentage){\r\n this.commission = getCommission() + getCommission() * percentage;\r\n }",
"public double depositInto(double amount)\r\n {\r\n _balance += amount;\r\n\r\n return _balance;\r\n }",
"public double pay(double amountPayed){\n \n try{\n double change = this.sale.pay(amountPayed);\n this.accounting.updateFinance( this.sale.getAmountToPay() );\n \n this.inventory.updateInventory( this.sale.getListOfProducts() );\n \n Printer printer = new Printer();\n printer.printReceipt( this.sale.creatSaleDTO() );\n \n return change;\n }catch (Exception a){\n System.out.print(a);\n return 0;\n }\n }",
"public void withdraw(long amount) {\n\t\n\tif(canWithdraw == true) {\n\t\tSystem.out.println(\"before \"+balance);\n\t\tbalance\t-= amount;\n\t\tSystem.out.println(\"after \"+balance);\n\t\t//add to log\n\t\tlog += \"Withdraw made to this account in the ammount of \"+amount+\" on \"+date+\"\\n\";\n\t\tlog += log += \" Current balance is \"+balance+\" \\n\"+date;\n\t\tupdate();\n\t}else {\n\t\tlog += \"Overdraft account on \"+date+\" \\n\";\n\t\tSystem.out.println(\"Insufficients funds to complete tranaction!\");\n\t\t}//end else statement\n}",
"public void deposit(double amount) \n\t{\n\t\tbalance += amount;\n\t}",
"void calculateReceivableByUIComponent() throws Exception{\t\t\n\t\tdouble receivableAmt = ConvertUtil.convertCTextToNumber(txtDueAmount).doubleValue();\t\n\t\tdouble receiveAmt = chkPayall.isSelected()?ConvertUtil.convertCTextToNumber(txtDueAmount).doubleValue()\n\t\t\t\t:ConvertUtil.convertCTextToNumber(txtReceiptAmount).doubleValue();\n\t\tdouble bfAmt = ConvertUtil.convertCTextToNumber(txtCustomerBF).doubleValue();\n\t\tdouble paidAmt = ConvertUtil.convertCTextToNumber(txtPaidAmount).doubleValue(); \n\t\tdouble cfAmt = bfAmt + receivableAmt - receiveAmt - paidAmt;\t\t\n\t\ttxtReceiptAmount.setText(SystemConfiguration.decfm.format(receiveAmt));\n\t\ttxtCustomerCfAmount.setText(SystemConfiguration.decfm.format(cfAmt));\t\n\t\ttxtReceiptAmount.selectAll();\n\t}",
"public void deposit(long amount) {\n\t\n\tbalance += amount;\n\t\n\tlog += \"Deposit made to this account in the ammount of \"+amount+\" on \"+date+\"\\n\";\n\tlog += log += \" Current balance is \"+balance+\" \\n\";\n\tupdate();\n}",
"public void withdraw(double amount) {\n this.balance -= amount;\n }",
"public void withdraw(double dollarAmount) throws InsufficientFundsException {\r\n\t\tif (this.accountBalance - dollarAmount < 0 || this.accountBalance - dollarAmount - 1.50 < 0) {\r\n\t\t\tthrow new InsufficientFundsException();\r\n\t\t} else {\r\n\t\t\ttransactionTracker++;\r\n\t\t\tSystem.out.println(transactionTracker);\r\n\t\t\tif (transactionTracker > 4) {\r\n\t\t\t\tthis.accountBalance = this.accountBalance - dollarAmount - 1.50;\r\n\t\t\t} else {\r\n\t\t\t\tthis.accountBalance = this.accountBalance - dollarAmount;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void withdraw(double amount)\n\t{\n\t\tbalance -= amount;\n\t}",
"public void withdraw(double amount)\n {\n startingBalance -= amount;\n }",
"public void withdraw(String PIN, float amount, String currentDate) {\n String finalDate = ProcessingDates.computeFinalDay(currentDate, this.period);\n if(finalDate.compareTo(currentDate) < 0) {\n System.out.println(\"Daca retrageti bani inainte de data scadenta a contului, va veti pierde dobanda\");\n }\n else if(finalDate == currentDate) {\n if (amount <= this.getCurrentBalance()) {\n this.setCurrentBalance(this.getCurrentBalance() - amount);\n\n AccountStatement accountStatement = new AccountStatement(currentDate, \"Retragere numerar\", \"Debit\", amount);\n this.addAccountStatement(accountStatement);\n System.out.println(\"Retragere realizata cu succes!\");\n } else {\n System.out.println(\"Fonduri insuficiente!\");\n }\n }\n }",
"public static void extract_money(){\n TOTALCMONEY = TOTALCMONEY - BALANCERETRIEVE; //the total cashier money equals the total cashier money minus the retrieve request\r\n BALANCE = BALANCE - BALANCERETRIEVE; //the user balance equals the account minus the retrieve request\r\n }",
"public void transferTo(double dollarAmount) {\r\n\t\tthis.accountBalance = this.accountBalance + dollarAmount;\r\n\t}",
"public void deposit (double amount)\n {\n imposeTransactionFee ();\n super.deposit (amount);\n }",
"public BigDecimal getLineNetAmt();",
"public TemSourceAccountingLine createNewAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setCardType(TemConstants.ADVANCE); // really, card type is ignored but it is validated so we have to set something\n accountingLine.setFinancialObjectCode(this.getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE, KFSConstants.EMPTY_STRING));\n return accountingLine;\n }\n catch (IllegalAccessException iae) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", iae);\n }\n catch (InstantiationException ie) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", ie);\n }\n }",
"public int withdraw() {\n\t\tif ((acc.getBalance() - keyboard.getAmt()) > acc.getMinimumBalace()) {\r\n\t\t\tif (casher.withdraw(keyboard.getAmt()) == 1) {\r\n\t\t\t\tsetNewBalance();\r\n\t\t\t\t\r\n\t\t\t\treciept.printer(acc.getAccountNumber(), acc.getBalance(), keyboard.getAmt());\r\n\t\t\t\treturn 1;\r\n\t\t\t} else\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn 0;\r\n\r\n\t}",
"void depositByCash(double amount) {\n\t\tif (isSuspended()) {\n\t\t\tSystem.out.println(\"Account is suspended.\");\n\t\t\tSystem.out.println(\"Depositing failed.\");\n\t\t\treturn;\n\t\t}\n\t\tif (amount <= 0) {\n\t\t\tSystem.out.println(\"Amount must be more than 0.\");\n\t\t\tSystem.out.println(\"Depositing failed.\");\n\t\t\treturn;\n\t\t}\n\t\tbalance += amount;\n\t\tSystem.out.println(\"Deposit \" + amount + \" successfully\");\n\t}",
"@Override\r\n\tpublic void deposit(int amount) {\n\t\t\r\n\t}",
"void withdraw(double amount) {\n\t\tif (isSuspended()) {\n\t\t\tSystem.out.println(\"Account is suspended.\");\n\t\t\treturn;\n\t\t}\n\t\tif (amount <= 0) {\n\t\t\tSystem.out.println(\"Amount must be more than 0.\");\n\t\t\tSystem.out.println(\"Withdrawing failed.\");\n\t\t\treturn;\n\t\t}\n\t\tif (check(amount)) {\n\t\t\tbalance -= amount;\n\t\t\tSystem.out.println(\"Withdraw \" + amount + \" successfully.\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Withdraw \" + amount + \" unsuccessfully. Do not have enough available funds.\");\n\t\t}\n\t}",
"public double withdrawFrom(double amount)\r\n {\r\n _balance -= amount;\r\n\r\n return _balance;\r\n }",
"@Override\n public void logWithdrawal(UUID userUUID, double amount) {\n }",
"public void withdraw(double amount) {\n\t\tbalance -= amount;\n\t}",
"public void withdraw(int amount)\n {\n setBalance(getBalance()-amount);\n }",
"public void transfer(double amount, checkingAccount cAccount)throws InsufficientFundsException{\n if (isFrozen == true){\n return;\n }\n if (UserAccount.isAmountValid(amount) == false){\n throw new IllegalArgumentException(\"Amount entered is not possible to be deposited\");\n }\n else if (amount > balance){\n throw new InsufficientFundsException(\"Not enough money\");\n }\n else{\n balance -= amount;\n cAccount.balance += amount;\n savingTransactions[arrayLocation] = \"Transfer from savings account into checkings account of the amount: \" + String.valueOf(amount);\n arrayLocation++;\n }\n }",
"public int deposit(int amount) {\n\n balance += amount;\n System.out.println(\"--------------------------------------------\\n\" +\n \"* Your new balance is \" + this.balance + \" *\\n\" +\n \"--------------------------------------------\\n\");\n return balance;\n\n }",
"private void updateRewardsPoints(int amount)\n\t{\n\t\tif(\tfileIO.rewardPoints - amount >= 0){\n\t\t\tfileIO.getPrefs();\n\t\t\tfileIO.rewardPoints = fileIO.rewardPoints - amount;\n\t\t\tfileIO.setPrefs();\n\t\t\trewardPointsTV.setText(Integer.toString(fileIO.rewardPoints));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmakeToast(\"You don't have enough points for that reward. You can earn more points by completing tasks.\", true);\n\t\t}\n\t}",
"public void subtractCreditTransaction(double withdrawAmount){\n if(!checkAccountOpen()){\n System.out.println(\"Your credit transaction in the amount of -$\" + withdrawAmount +\" has been declined\");\n }\n else {\n this.currentBalance = this.currentBalance - withdrawAmount;\n if(this.currentBalance<0){\n System.out.println(\"Appropriate funds not found. Please check your current balance.\");\n this.currentBalance = this.currentBalance + withdrawAmount;\n }\n else {\n System.out.println(\"Your credit transaction has been approved!\");\n System.out.println(\"Your current balance is: $\" + currentBalance);\n }\n }\n\n }",
"void deposit(double amount){\r\n\t\t//add to the current balance the amount\r\n\t\t setBalance(getBalance() + amount);\r\n\t }",
"public void deposit(int amount)\n {\n setBalance(getBalance()+amount);\n }",
"public void setLineNetAmt (BigDecimal LineNetAmt);",
"public void deposit(double amount) {\n\t\tbalance += amount;\n\t}",
"public void deposit(double amount) {\n\t\tbalance += amount;\n\t}",
"public void withdraw(double ammount) throws insufficientFunds{\n if(ammount > abal)\n throw new insufficientFunds();\n else{\n ammount = abal - ammount;\n UpdateDB();\n }\n }",
"public synchronized void applyFee() {\r\n balance -= FEE;\r\n }",
"public void withdrawMoney(double amount) {\n\t\tbalance = balance - amount;\n\t}",
"protected TemSourceAccountingLine initiateAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setDocumentNumber(getDocumentNumber());\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setSequenceNumber(new Integer(1));\n accountingLine.setCardType(TemConstants.ADVANCE);\n if (this.allParametersForAdvanceAccountingLinesSet()) {\n accountingLine.setChartOfAccountsCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART));\n accountingLine.setAccountNumber(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT));\n accountingLine.setFinancialObjectCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE));\n }\n return accountingLine;\n }\n catch (InstantiationException ie) {\n LOG.error(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName(), ie);\n }\n catch (IllegalAccessException iae) {\n LOG.error(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName(), iae);\n }\n }",
"public void credit(float amount){\n\t\taccount.credit(amount);\n\t\tSystem.out.println(\"\\t+ \"+ this + \" account is credited with \" + amount + \" euros; its balance is now \" + account );\n\t}",
"private void makeTransfer(String withdrawAmt, String depositAcct){\n //assume this will come as numbers only (Keyboard restricted to numbers)\n Double transferAmt = Double.valueOf(withdrawAmt);\n\n //make transfer\n customer.transferFund(currAcctName, depositAcct, transferAmt);\n\n //reset transfer value\n ((EditText)findViewById(R.id.transferAmt)).setText(\"\");\n\n //update balance\n ((TextView) findViewById(R.id.fromAmt)).setText(customer.getBalanceString(currAcctName));\n }",
"void addBalance(double amount) {\n\t\tbalance += amount;\n\t}",
"public void deposit(double value)\r\n {\r\n //TODO need logic to make sure you can't deposit more then you have in cash\r\n subtractCash(value);\r\n savings += value;\r\n }",
"public float handleClaim(){\r\n float re_amount = amount;\r\n depreciate();\r\n return re_amount;\r\n }",
"private void modifyDepositDue(PrintItinerary itinerary, String xslFormat) {\n\t\tif (xslFormat.equalsIgnoreCase(\"CUSTOMERFORMATBOOKING\")) {\n\t\t\t// long datediff = DateUtils.dateDifferenceInDays(itinerary\n\t\t\t// .getBookingHeader().getBookingDate(), itinerary\n\t\t\t// .getBookingHeader().getDepartureDate());\n\t\t\t// if (datediff <= 45) { //CQ#8927 - Condition added for equal to 45\n\n\t\t\t// for Holiday period 60 days and non holdiday persion 45 scenarion\n\t\t\t// both opt date and finalpayment date will be same\n\t\t\t// according to kim\n\t\t\tlong datediff = DateUtils.dateDifferenceInDays(itinerary\n\t\t\t\t\t.getBookingHeader().getOptionDate(), itinerary\n\t\t\t\t\t.getBookingHeader().getFinalDueDate());\n\t\t\tif (datediff == 0) { // CQ#8927 - Condition added for equal to 45\n\t\t\t\titinerary.getBookingHeader().setMinimumAmount(\n\t\t\t\t\t\titinerary.getBookingHeader().getTourPrice()\n\t\t\t\t\t\t\t\t- itinerary.getBookingHeader().getAmountPaid());\n\t\t\t}\n\t\t\t// CQ#8955 - Added for displaying Gross balance Due in Agent\n\t\t} else if (xslFormat.equalsIgnoreCase(\"AGENTFORMATBOOKING\")) {\n\t\t\tlong datediff = DateUtils.dateDifferenceInDays(itinerary\n\t\t\t\t\t.getBookingHeader().getBookingDate(), itinerary\n\t\t\t\t\t.getBookingHeader().getDepartureDate());\n\t\t\t// if (datediff > 45) {\n\t\t\titinerary.getBookingHeader().setGrossBalanceDue(\n\t\t\t\t\titinerary.getBookingHeader().getTourPrice()\n\t\t\t\t\t\t\t- itinerary.getBookingHeader().getAmountPaid());\n\t\t\t// }\n\n\t\t}\n\t}",
"void preWithdraw(double amount) {\n\t\tSystem.out.println(\"Your account is not saver account.\");\n\t}",
"@Override\n public void toCopy() throws WorkflowException {\n super.toCopy();\n travelAdvancesForTrip = null;\n setTravelDocumentIdentifier(null);\n if (!(this instanceof TravelAuthorizationCloseDocument)) { // TAC's don't have advances\n initiateAdvancePaymentAndLines();\n }\n }",
"public void deposit(double amount){\n if (isFrozen == true){\n return;\n }\n if (UserAccount.isAmountValid(amount) == false){\n throw new IllegalArgumentException(\"Amount entered is not possible to be deposited\");\n }\n else{\n balance += amount;\n savingTransactions[arrayLocation]= \"Deposit into savings account of the amount: \" + String.valueOf(amount);\n arrayLocation++;\n }\n }",
"@Override\n public double calculatePay ()\n {\n double commissionPay = this.sales * this.rate / 100;\n return commissionPay;\n }",
"private void billing_calculate() {\r\n\r\n // need to search patient before calculating amount due\r\n if (billing_fullNameField.equals(\"\")){\r\n JOptionPane.showMessageDialog(this, \"Must search for a patient first!\\nGo to the Search Tab.\",\r\n \"Need to Search Patient\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n if (MainGUI.pimsSystem.lookUpAppointmentDate(currentPatient).equals(\"\")){\r\n JOptionPane.showMessageDialog(this, \"No Appointment to pay for!\\nGo to Appointment Tab to make one.\",\r\n \"Nothing to pay for\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n\r\n // patient has been searched - get info from patient info panel\r\n else {\r\n\r\n currentPatient = MainGUI.pimsSystem.patient_details\r\n (pInfo_lastNameTextField.getText(), Integer.parseInt(pInfo_ssnTextField.getText()));\r\n // patient has a policy, amount due is copay: $50\r\n // no policy, amount due is cost amount\r\n double toPay = MainGUI.pimsSystem.calculate_charge(currentPatient, billing_codeCB.getSelectedItem().toString());\r\n billing_amtDueField.setText(\"$\" + doubleToDecimalString(toPay));\r\n\r\n\r\n\r\n JOptionPane.showMessageDialog(this, \"Amount Due Calculated.\\nClick \\\"Ok\\\" to go to Payment Form\",\r\n \"Calculate\", JOptionPane.DEFAULT_OPTION);\r\n\r\n paymentDialog.setVisible(true);\r\n }\r\n\r\n }",
"public void deposit (double amount) {\r\n\t\t\r\n\t\tbalance=balance+amount;\r\n\t\tif(balance > 0) {\r\n\t\t\t\r\n\t\t\toverDrawn = false;\r\n\t\t}\r\n\t\t\r\n\t}"
]
| [
"0.6242765",
"0.6189203",
"0.6154513",
"0.60776395",
"0.6032234",
"0.5987538",
"0.5962131",
"0.5950135",
"0.5919579",
"0.5880376",
"0.5876894",
"0.584909",
"0.58353055",
"0.5792414",
"0.57877445",
"0.578118",
"0.57678396",
"0.575724",
"0.5701087",
"0.569177",
"0.5679034",
"0.56694907",
"0.5664091",
"0.5662124",
"0.56421906",
"0.5637111",
"0.5634433",
"0.5633479",
"0.5633428",
"0.562644",
"0.56243414",
"0.56238425",
"0.56234366",
"0.562068",
"0.5618814",
"0.5586157",
"0.5580166",
"0.55794954",
"0.55751103",
"0.55633795",
"0.5557486",
"0.55561835",
"0.55513585",
"0.55484426",
"0.5540103",
"0.5538138",
"0.5536982",
"0.5531997",
"0.55307794",
"0.5527613",
"0.55247086",
"0.5518238",
"0.55105764",
"0.55105525",
"0.5503676",
"0.5501195",
"0.5493892",
"0.5493741",
"0.5482725",
"0.5481299",
"0.54748726",
"0.54744536",
"0.5466788",
"0.54617596",
"0.5448286",
"0.5429354",
"0.54279387",
"0.5426558",
"0.5426383",
"0.5425025",
"0.54221565",
"0.54177177",
"0.54167485",
"0.541095",
"0.5406707",
"0.5406108",
"0.5405967",
"0.54005027",
"0.53965616",
"0.5390222",
"0.5387666",
"0.53864443",
"0.5383806",
"0.5383806",
"0.5382617",
"0.53823316",
"0.53809714",
"0.53792346",
"0.5378878",
"0.5378325",
"0.53772235",
"0.5376704",
"0.53710353",
"0.536484",
"0.5362757",
"0.5356662",
"0.53563887",
"0.53534776",
"0.535244",
"0.53471327"
]
| 0.72583634 | 0 |
Generate events for advance accounting lines | @Override
public List generateSaveEvents() {
List events = super.generateSaveEvents();
if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().isAtLeastPartiallyFilledIn() && !(getDocumentHeader().getWorkflowDocument().isInitiated() || getDocumentHeader().getWorkflowDocument().isSaved())) {
// only check advance accounting lines if the travel advance is filled in
final List<TemSourceAccountingLine> persistedAdvanceAccountingLines = getPersistedAdvanceAccountingLinesForComparison();
final List<TemSourceAccountingLine> currentAdvanceAccountingLines = getAdvanceAccountingLinesForComparison();
final List advanceEvents = generateEventsForAdvanceAccountingLines(persistedAdvanceAccountingLines, currentAdvanceAccountingLines);
events.addAll(advanceEvents);
}
return events;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List generateEventsForAdvanceAccountingLines(List<TemSourceAccountingLine> persistedAdvanceAccountingLines, List<TemSourceAccountingLine> currentAdvanceAccountingLines) {\n List events = new ArrayList();\n Map persistedLineMap = buildAccountingLineMap(persistedAdvanceAccountingLines);\n final String errorPathPrefix = KFSConstants.DOCUMENT_PROPERTY_NAME + \".\" + TemPropertyConstants.ADVANCE_ACCOUNTING_LINES;\n final String groupErrorPathPrefix = errorPathPrefix + KFSConstants.ACCOUNTING_LINE_GROUP_SUFFIX;\n\n // (iterate through current lines to detect additions and updates, removing affected lines from persistedLineMap as we go\n // so deletions can be detected by looking at whatever remains in persistedLineMap)\n int index = 0;\n for (TemSourceAccountingLine currentLine : currentAdvanceAccountingLines) {\n String indexedErrorPathPrefix = errorPathPrefix + \"[\" + index + \"]\";\n Integer key = currentLine.getSequenceNumber();\n\n AccountingLine persistedLine = (AccountingLine) persistedLineMap.get(key);\n\n if (persistedLine != null) {\n ReviewAccountingLineEvent reviewEvent = new ReviewAccountingLineEvent(indexedErrorPathPrefix, this, currentLine);\n events.add(reviewEvent);\n\n persistedLineMap.remove(key);\n }\n else {\n // it must be a new addition\n AddAccountingLineEvent addEvent = new AddAccountingLineEvent(indexedErrorPathPrefix, this, currentLine);\n events.add(addEvent);\n }\n }\n\n // detect deletions\n List<TemSourceAccountingLine> remainingPersistedLines = new ArrayList<TemSourceAccountingLine>();\n remainingPersistedLines.addAll(persistedLineMap.values());\n for (TemSourceAccountingLine persistedLine : remainingPersistedLines) {\n DeleteAccountingLineEvent deleteEvent = new DeleteAccountingLineEvent(groupErrorPathPrefix, this, persistedLine, true);\n events.add(deleteEvent);\n }\n return events;\n }",
"public void printVenueCharges (Event _event) {\n\t}",
"protected void initiateAdvancePaymentAndLines() {\n setDefaultBankCode();\n setTravelAdvance(new TravelAdvance());\n getTravelAdvance().setDocumentNumber(getDocumentNumber());\n setAdvanceTravelPayment(new TravelPayment());\n getAdvanceTravelPayment().setDocumentNumber(getDocumentNumber());\n getAdvanceTravelPayment().setDocumentationLocationCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TravelParameters.DOCUMENTATION_LOCATION_CODE,\n getParameterService().getParameterValueAsString(TemParameterConstants.TEM_DOCUMENT.class,TravelParameters.DOCUMENTATION_LOCATION_CODE)));\n getAdvanceTravelPayment().setCheckStubText(getConfigurationService().getPropertyValueAsString(TemKeyConstants.MESSAGE_TA_ADVANCE_PAYMENT_HOLD_TEXT));\n final java.sql.Date currentDate = getDateTimeService().getCurrentSqlDate();\n getAdvanceTravelPayment().setDueDate(currentDate);\n updatePayeeTypeForAuthorization(); // if the traveler is already initialized, set up payee type on advance travel payment\n setWireTransfer(new PaymentSourceWireTransfer());\n getWireTransfer().setDocumentNumber(getDocumentNumber());\n setAdvanceAccountingLines(new ArrayList<TemSourceAccountingLine>());\n resetNextAdvanceLineNumber();\n TemSourceAccountingLine accountingLine = initiateAdvanceAccountingLine();\n addAdvanceAccountingLine(accountingLine);\n }",
"public void printDecisionPointEvents() throws Exception\r\n\t{\r\n\t\tOWLClass firstSystemDPE = this.getOWLClass(EFBO_FRC_URI, \"DecisionPointEvent\");\r\n\t\tOWLClass nextOfDPE = this.getOWLClass(EFBO_V_URI, \"System-1_Event\");\r\n\t\t\r\n\t\tOWLClass secondSystemDPE = this.getOWLClass(EFBO_FRC_URI, \"DecisionPointEvent\");\r\n\t\tOWLClass nextOfDPE2 = this.getOWLClass(EFBO_V_URI, \"System-2_Event\");\r\n\t\t\r\n\t\tOWLObjectProperty hasNextEvent = efboStatusReportManager.getOWLObjectProperty(EFBO_CORE_URI, \"hasNextEvent\");\r\n\t\tOWLObjectProperty hasPrevEvent = efboStatusReportManager.getOWLObjectProperty(EFBO_CORE_URI, \"hasPreviousEvent\");\r\n\t\tOWLObjectProperty isAltEventOf = efboStatusReportManager.getOWLObjectProperty(EFBO_CORE_URI, \"isAlternateEventOf\");\r\n\t\t\r\n\t\tSet<OWLNamedIndividual> inds = efboStatusReportManager.getOWLNamedIndividuals(firstSystemDPE);\r\n\t\t\r\n\t\tString dpeName = \"\";\r\n\t\tfor (OWLNamedIndividual i: inds)\r\n\t\t{\r\n\t\t\tdpeName += efboStatusReportManager.getLabel(i) + \"; \"; \r\n\t\t}\r\n\t\t\r\n\t\tString g = \"@startuml\";\r\n\t g += \"\\ntitle\\n\" + efboStatusReportManager.getLabel(firstSystemDPE)\r\n + \"\\n\" + dpeName\r\n + \"\\nend title\\n\";\r\n\t\tg += getRelatedGraph(\"DecisionPointEvent\", \"System-1_Event\", \"hasNextEvent\", \"hasPreviousEvent\", \"isAlternateEventOf\");\r\n\t\tg += getRelatedGraph(\"DecisionPointEvent\", \"System-2_Event\", \"hasNextEvent\", \"hasPreviousEvent\", \"isAlternateEventOf\");\r\n\t\tg += \"\\n@enduml\";\r\n\t\tSystem.out.println(g);\r\n\t\t\r\n\t\tSystem.out.println(\"\\nDecesion Point Events\");\r\n\t\tthis.printEntityBySystem(firstSystemDPE, hasNextEvent, nextOfDPE);\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"\\nDecesion Point Events\");\r\n\t\tthis.printEntityBySystem(secondSystemDPE, hasNextEvent, nextOfDPE2);\r\n\t\t\r\n\t}",
"public void transferLineasInvestigacion(TransferEvent event) {\r\n try {\r\n for (Object item : event.getItems()) {\r\n int v = item.toString().indexOf(\":\");\r\n Long id = Long.parseLong(item.toString().substring(0, v));\r\n LineaInvestigacion li = lineaInvestigacionService.buscarPorId(new LineaInvestigacion(id));\r\n LineaInvestigacionProyecto lp = new LineaInvestigacionProyecto();\r\n if (li != null) {\r\n lp.setLineaInvestigacionId(li);\r\n }\r\n if (event.isRemove()) {\r\n sessionProyecto.getLineasInvestigacionSeleccionadasTransfer().remove(lp);\r\n sessionProyecto.getLineasInvestigacionRemovidosTransfer().add(lp);\r\n int pos = 0;\r\n for (LineaInvestigacionProyecto lip : sessionProyecto.getLineasInvestigacionProyecto()) {\r\n if (!lip.getLineaInvestigacionId().equals(lp.getLineaInvestigacionId())) {\r\n pos++;\r\n } else {\r\n break;\r\n }\r\n }\r\n sessionProyecto.getLineasInvestigacionSeleccionadas().remove(pos);\r\n } else {\r\n if (event.isAdd()) {\r\n if (contieneLineaInvestigacion(sessionProyecto.getLineasInvestigacionProyecto(), lp)) {\r\n sessionProyecto.getLineasInvestigacionRemovidosTransfer().add(lp);\r\n }\r\n sessionProyecto.getLineasInvestigacionSeleccionadas().add(li);\r\n sessionProyecto.getLineasInvestigacionSeleccionadasTransfer().add(lp);\r\n }\r\n }\r\n }\r\n } catch (NumberFormatException e) {\r\n System.out.println(e);\r\n }\r\n }",
"public void getNextEvent(Event e){\n\t\ttry {\n\t\t\tparser.getInfo(eInfo, line);\n\t\t} catch (CannotParseException ex) {\n\t\t\tSystem.err.println(\"Canot parse line -> \" + line);\n\t\t}\n\t\teInfo2Event(e);\n\t}",
"private void createInventoryAllocationEvent(final OrderModel order)\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal SourcingResults results = getSourcingService().sourceOrder(order);\n\t\t\tif (results != null)\n\t\t\t{\n\t\t\t\tresults.getResults().forEach(result -> logSourcingInfo(result));\n\t\t\t\tLOGGER.info(\"Before allocation event for the the consignemnts on Order : \" + order.getCode());\n\t\t\t\tfinal Collection<ConsignmentModel> consignments = getAllocationService().createConsignments(order,\n\t\t\t\t\t\t\"cons\" + order.getCode(), results);\n\t\t\t\tLOGGER.info(\"After allocation event for the the consignemnts on Order : \" + order.getCode());\n\t\t\t\t\n\t\t\t\tint counter = 0;\n\t\t\t\tfor (final ConsignmentModel consignment : consignments)\n\t\t\t\t{\n\t\t\t\t\tLOGGER.info(\"consignemnts after allocation : \" + consignment.getCode());\n\t\t\t\t\tfor (final ConsignmentEntryModel consignmentEntry : consignment.getConsignmentEntries())\n\t\t\t\t\t{\n\t\t\t\t\t\tconsignmentEntry.setSapOrderEntryRowNumber(++counter);\n\t\t\t\t\t\tgetModelService().save(consignmentEntry);\n\t\t\t\t\t\tLOGGER.info(\"consignemnt entries after save for consignemnt : \" + consignment.getCode());\n\t\t\t\t\t}\n\t\t\t\t\tLOGGER.info(\"Inventory allocation event has been created on Consignment : \" + consignment.getCode());\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (final Exception e)\n\t\t{\n\t\t\tLOGGER.warn(\"Allocation event cannot triggered for consignment : \", e);\n\t\t}\n\t}",
"@EventHandler\n public void on(MoneyWithdrawnEvent event) {\n System.out.println(\"Received Event -> MoneyWithdrawnEvent\");\n }",
"public void addAdvanceAccountingLine(TemSourceAccountingLine line) {\n line.setSequenceNumber(this.getNextAdvanceLineNumber());\n this.advanceAccountingLines.add(line);\n this.nextAdvanceLineNumber = new Integer(getNextAdvanceLineNumber().intValue() + 1);\n }",
"public Event nextEVPEC();",
"public void createMonthScenarioBug10249_perUnit_steppedEvents()\n throws Exception {\n long scenarioStartTime = DateTimeHandling\n .calculateMillis(\"2012-11-28 00:00:00\")\n - DateTimeHandling.daysToMillis(3.5);\n long usageStartTime = DateTimeHandling\n .calculateMillis(\"2012-11-29 00:00:00\")\n - DateTimeHandling.daysToMillis(3.5);\n BillingIntegrationTestBase.setDateFactoryInstance(scenarioStartTime);\n\n VOServiceDetails serviceDetails = serviceSetup\n .createPublishAndActivateMarketableService(\n basicSetup.getSupplierAdminKey(),\n \"BUG10249_PER_UNIT_MONTH_EVENTS\",\n TestService.EXAMPLE_ASYNC,\n TestPriceModel.EXAMPLE_PERUNIT_MONTH_STEPPED_EVENTS,\n technicalServiceAsync, supplierMarketplace);\n\n setCutOffDay(basicSetup.getSupplierAdminKey(), 1);\n\n VORoleDefinition role = VOServiceFactory.getRole(serviceDetails,\n \"ADMIN\");\n container.login(basicSetup.getCustomerAdminKey(),\n ROLE_ORGANIZATION_ADMIN);\n VOSubscriptionDetails subDetails = subscrSetup.subscribeToService(\n \"BUG10249_PER_UNIT_MONTH_EVENTS\", serviceDetails,\n basicSetup.getCustomerUser1(), role);\n // ASYNC\n BillingIntegrationTestBase.setDateFactoryInstance(usageStartTime);\n subDetails = subscrSetup.completeAsyncSubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), subDetails);\n\n // record an event after 8 days\n container.login(basicSetup.getSupplierAdminKey(), ROLE_SERVICE_MANAGER,\n ROLE_TECHNOLOGY_MANAGER);\n subscrSetup.recordEventForSubscription(subDetails, usageStartTime\n + DateTimeHandling.daysToMillis(8), \"FILE_DOWNLOAD\", 75);\n\n // record another event after 10 days\n subscrSetup.recordEventForSubscription(subDetails, usageStartTime\n + DateTimeHandling.daysToMillis(10), \"FILE_UPLOAD\", 13);\n\n // record another event after 12 days\n subscrSetup.recordEventForSubscription(subDetails, usageStartTime\n + DateTimeHandling.daysToMillis(10), \"FOLDER_NEW\", 1);\n\n long usageEndTime = DateTimeHandling\n .calculateMillis(\"2012-12-01 00:00:00\")\n + DateTimeHandling.daysToMillis(10);\n BillingIntegrationTestBase.setDateFactoryInstance(usageEndTime);\n container.login(basicSetup.getCustomerAdminKey(),\n ROLE_ORGANIZATION_ADMIN);\n subscrSetup.unsubscribeToService(subDetails.getSubscriptionId());\n\n resetCutOffDay(basicSetup.getSupplierAdminKey());\n\n BillingIntegrationTestBase.updateSubscriptionListForTests(\n \"BUG10249_PER_UNIT_MONTH_EVENTS\", subDetails);\n }",
"public void handleEvent(Event event) {\n if ((currentTextReports != null)\n && (currentTextReports.size() > currentTextIndex + 1)) {\n String dispStr = removeCR((String) currentTextReports\n .get(currentTextIndex + 1)[0]);\n\t\t\t\t\tString curText = text.getText();\n\t\t\t\t\tint endIndex = curText.indexOf(\"----\");\n if (endIndex != -1) {\n curText = curText.substring(0, endIndex + 4);\n text.setText(curText + \"\\n\" + dispStr);\n } else\n\t\t\t\t\t\ttext.setText(dispStr);\n\t\t\t\t\t\n\t\t\t\t\tnextBtn.setEnabled(true);\n\t\t\t\t\tcurrentTextIndex++;\n if (currentTextReports.size() <= currentTextIndex + 1) {\n prevBtn.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"public void internal_event(){\n logical_clock = logical_clock + 1;\n System.out.println(\"Internal Event Clock:\" +logical_clock);\n //encrypt(logical_clock);\n }",
"private void createEvents() {\n\t}",
"public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}",
"void writeEvent (Event event) throws Exception {\n this.write(\"[event]\\n\");\n this.write(\"timeline \" + event.timeline.name + \"\\n\");\n this.write(\"name \" + event.name + \"\\n\");\n this.write(\"startDate \" + event.startDate[0] + \" \" + event.startDate[1] + \" \" + event.startDate[2] + \"\\n\");\n this.write(\"endDate \" + event.endDate[0] + \" \" + event.endDate[1] + \" \" + event.endDate[2] + \"\\n\");\n this.write(\"visible \" + (event.visible ? 1 : 0) + \"\\n\");\n this.write(event.notes + \"\\n[/event]\\n\");\n this.newLine();\n this.flush();\n }",
"@Test\r\n public void testCommissionPallets() throws Exception\r\n {\r\n String epcToCheck = \"urn:epc:id:sscc:0614141.0000000001\";\r\n XmlObjectEventType event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n Assert.assertNull(event);\r\n\r\n runCaptureTest(COMMISSION_PALLETS_XML);\r\n\r\n event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n Assert.assertNotNull(event);\r\n }",
"@Override\r\n\tpublic void onAdvanceStart(RoadMap map, List<Event> events, int time) {\n\t\t\r\n\t}",
"public static void processCustomerMgmt() throws IOException, XMLStreamException, ParseException {\n futureNullDate = formatter.parse(\"2999-12-31\");\n deleteDatabase();\n\n XMLInputFactory xmlif = XMLInputFactory.newInstance();\n\n xmlif.setEventAllocator(new XMLEventAllocatorImpl());\n allocator = xmlif.getEventAllocator();\n\n XMLStreamReader xmlr = xmlif.createXMLStreamReader(filename, new FileInputStream(filename));\n\n int eventType = xmlr.getEventType();\n\n while (xmlr.hasNext()) {\n eventType = xmlr.next();\n\n if (eventType == XMLStreamConstants.START_ELEMENT && xmlr.getLocalName().equals(\"Action\") && mode == Mode.NULL) {\n StartElement event = getXMLEvent(xmlr).asStartElement();\n\n Attribute attr = event.getAttributeByName(new QName(\"ActionType\"));\n // System.out.println (\"Action: \" + attr.getValue());\n\n\n switch (attr.getValue()) {\n case \"NEW\":\n System.out.println(\"Start NEW\");\n mode = Mode.NEW;\n break;\n case \"ADDACCT\":\n System.out.println(\"Start ADDACCT\");\n mode = Mode.ADDACCT;\n break;\n case \"UPDCUST\":\n System.out.println(\"Start UPDCUST\");\n mode = Mode.UPDCUST;\n break;\n case \"UPDACCT\":\n System.out.println(\"Start UPDACCT\");\n mode = Mode.UPDACCT;\n break;\n case \"CLOSEACCT\":\n System.out.println(\"Start CLOSEACCT\");\n mode = Mode.CLOSEACCT;\n break;\n case \"INACT\":\n System.out.println(\"Start INACT\");\n mode = Mode.INACT;\n break;\n default:\n throw new IllegalArgumentException(\"Invalid attribute: [\" + attr.getValue() + \"]\");\n }\n\n attr = event.getAttributeByName(new QName(\"ActionTS\"));\n actionTimestamp = timeStamp.parse(attr.getValue());\n }\n\n if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"Action\") && mode != Mode.NULL) {\n mode = Mode.NULL;\n actionTimestamp = null;\n }\n\n\n if (eventType == XMLStreamConstants.START_ELEMENT && xmlr.getLocalName().equals(\"Customer\") && mode != Mode.NULL) {\n StartElement event = getXMLEvent(xmlr).asStartElement();\n\n accounts = new ArrayList<DimAccount>();\n String customerID;\n\n Attribute attr = event.getAttributeByName(new QName(\"C_ID\"));\n customerID = attr.getValue();\n System.out.println(\" Customer ID = [\" + customerID + \"]\");\n\n if (mode == Mode.NEW || mode == Mode.UPDCUST || mode == Mode.INACT) {\n dimCustomer = new DimCustomer();\n dimCustomer.setCustomerID(Long.parseLong(attr.getValue())); // I think this gets moved into logic below...\n\n ////////\n // Kimballian Type 2 (New Customer Record)\n dimCustomer.setIsCurrent(true);\n dimCustomer.setEffectiveDate(actionTimestamp);\n dimCustomer.setEndDate(futureNullDate);\n }\n\n if (mode == Mode.ADDACCT || mode == Mode.UPDACCT || mode == Mode.CLOSEACCT) {\n dimCustomer = DimCustomer.find.where().eq(\"customer_id\", customerID).eq(\"is_current\", \"1\").findUnique();\n }\n\n // Copy the original row before making any changes...\n if (mode == Mode.UPDCUST || mode == Mode.INACT) {\n DimCustomer dimCustomerOld = DimCustomer.find.where().eq(\"customer_id\", customerID).eq(\"is_current\", \"1\").findUnique();\n DimCustomer.copyData(dimCustomerOld, dimCustomer);\n\n ////////\n // Kimballian Type 2 (Old Customer Record)\n dimCustomerOld.setIsCurrent(false);\n dimCustomerOld.setEndDate(actionTimestamp);\n dimCustomerOld.save();\n dimCustomerOld = null;\n System.out.println(\" Copy old customer record\");\n }\n\n if (mode == Mode.NEW) {\n dimCustomer.setStatus(\"Active\");\n }\n\n if (mode == Mode.INACT) {\n dimCustomer.setStatus(\"Inactive\");\n }\n\n attr = event.getAttributeByName(new QName(\"C_TAX_ID\"));\n if (attr != null) {\n dimCustomer.setTaxID(attr.getValue());\n }\n\n attr = event.getAttributeByName(new QName(\"C_GNDR\"));\n if (attr != null) {\n dimCustomer.setGender(attr.getValue());\n }\n\n attr = event.getAttributeByName(new QName(\"C_TIER\"));\n if (attr != null) {\n if (!attr.getValue().trim().isEmpty()) {\n dimCustomer.setTier(Integer.parseInt(attr.getValue()));\n }\n else {\n dimCustomer.setTier(null);\n }\n }\n\n attr = event.getAttributeByName(new QName(\"C_DOB\"));\n if (attr != null) {\n dimCustomer.setDob(formatter.parse(attr.getValue()));\n }\n\n } // START_ELEMENT \"Customer\"\n\n\n if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"Customer\") && mode != Mode.NULL) {\n if (mode == Mode.NEW || mode == Mode.UPDCUST || mode == Mode.INACT) {\n dimCustomer.save();\n System.out.println(\" Save customer UID = [\" + dimCustomer.getsK_CustomerID() + \"] Customer ID = [\" + dimCustomer.getCustomerID() + \"]\");\n }\n\n // Iterate over accounts\n for (DimAccount account : accounts) {\n account.setsK_CustomerId(dimCustomer.getsK_CustomerID());\n account.save();\n System.out.println(\" Save account UID = [\" + account.getsK_AccountId() + \"] Account ID = [\" + account.getAccountID() + \"]\");\n }\n\n //for (DimAccount account : accounts) { // I'm going for an explicit delete... just in case GC can't sort it out.\n // accounts.remove(account);\n //}\n accounts = null;\n dimCustomer = null;\n } // END_ELEMENT \"Customer\"\n\n\n if (eventType == XMLStreamConstants.START_ELEMENT && xmlr.getLocalName().equals(\"Account\") && mode != Mode.NULL) {\n StartElement event = getXMLEvent(xmlr).asStartElement();\n\n Attribute attr = event.getAttributeByName(new QName(\"CA_ID\"));\n String accountID = attr.getValue();\n System.out.println(\" Account ID = [\" + accountID + \"]\");\n\n // If we're here, we will always create a new account...\n dimAccount = new DimAccount();\n dimAccount.setAccountID(accountID);\n\n ////////\n // Kimballian Type 2 (New Account Record)\n dimAccount.setIsCurrent(true);\n dimAccount.setEffectiveDate(actionTimestamp);\n dimAccount.setEndDate(futureNullDate);\n\n if (mode == Mode.UPDACCT || mode == Mode.CLOSEACCT) {\n DimAccount dimAccountOld = DimAccount.find.where().eq(\"account_id\", accountID).eq(\"is_current\", \"1\").findUnique();\n DimAccount.copyData(dimAccountOld, dimAccount);\n\n ////////\n // Kimballian Type 2 (Old Account Record)\n dimAccountOld.setIsCurrent(false);\n dimAccountOld.setEndDate(actionTimestamp);\n dimAccountOld.save();\n dimAccountOld = null;\n System.out.println(\" Copy old account record\");\n }\n\n if (mode == Mode.NEW || mode == Mode.ADDACCT) {\n dimAccount.setStatus(\"Active\");\n }\n\n if (mode == Mode.CLOSEACCT) {\n dimAccount.setStatus(\"Inactive\");\n }\n\n attr = event.getAttributeByName(new QName(\"CA_TAX_ST\"));\n if (attr != null) {\n dimAccount.setTaxStatus(attr.getValue());\n }\n\n } // START_ELEMENT \"Account\"\n\n\n if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"Account\") && mode != Mode.NULL) {\n accounts.add(dimAccount);\n\n dimAccount = null;\n }\n\n\n if (eventType == XMLStreamConstants.CHARACTERS) {\n tagContent = xmlr.getText().trim();\n }\n\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_L_NAME\") && mode != Mode.NULL) {\n dimCustomer.setLastName(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_F_NAME\") && mode != Mode.NULL) {\n dimCustomer.setFirstName(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_M_NAME\") && mode != Mode.NULL) {\n dimCustomer.setMiddleInitial(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_ADLINE1\") && mode != Mode.NULL) {\n dimCustomer.setAddressLine1(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_ADLINE2\") && mode != Mode.NULL) {\n dimCustomer.setAddressLine2(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_ZIPCODE\") && mode != Mode.NULL) {\n dimCustomer.setPostalCode(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_CITY\") && mode != Mode.NULL) {\n dimCustomer.setCity(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_STATE_PROV\") && mode != Mode.NULL) {\n dimCustomer.setStateProv(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_CTRY\") && mode != Mode.NULL) {\n dimCustomer.setCountry(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_PRIM_EMAIL\") && mode != Mode.NULL) {\n dimCustomer.seteMail1(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_ALT_EMAIL\") && mode != Mode.NULL) {\n dimCustomer.seteMail2(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"CA_B_ID\") && mode != Mode.NULL) {\n dimAccount.setBrokerId(tagContent);\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"CA_NAME\") && mode != Mode.NULL) {\n dimAccount.setAccountDesc(tagContent);\n }\n else if (eventType == XMLStreamConstants.START_ELEMENT && xmlr.getLocalName().equals(\"C_PHONE_1\") && mode != Mode.NULL) {\n phone = \"\";\n }\n else if (eventType == XMLStreamConstants.START_ELEMENT && xmlr.getLocalName().equals(\"C_PHONE_2\") && mode != Mode.NULL) {\n phone = \"\";\n }\n else if (eventType == XMLStreamConstants.START_ELEMENT && xmlr.getLocalName().equals(\"C_PHONE_3\") && mode != Mode.NULL) {\n phone = \"\";\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_CTRY_CODE\") && mode != Mode.NULL) {\n if (!tagContent.trim().isEmpty()) {\n phone += \"+\" + tagContent;\n }\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_AREA_CODE\") && mode != Mode.NULL) {\n if (!tagContent.trim().isEmpty()) {\n phone += \" (\" + tagContent + \")\";\n }\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_LOCAL\") && mode != Mode.NULL) {\n if (!tagContent.trim().isEmpty()) {\n phone += \" \" + tagContent;\n }\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_EXT\") && mode != Mode.NULL) {\n if (!tagContent.trim().isEmpty()) {\n phone += \" x\" + tagContent;\n }\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_PHONE_1\") && mode != Mode.NULL) {\n dimCustomer.setPhone1(phone.trim());\n phone = \"\";\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_PHONE_2\") && mode != Mode.NULL) {\n dimCustomer.setPhone2(phone.trim());\n phone = \"\";\n }\n else if (eventType == XMLStreamConstants.END_ELEMENT && xmlr.getLocalName().equals(\"C_PHONE_3\") && mode != Mode.NULL) {\n dimCustomer.setPhone3(phone.trim());\n phone = \"\";\n }\n\n }\n }",
"public static Account test() {\r\n\t\tAccount newAccount = createNewAccount(\"[email protected]\", \"Test Account\");\r\n\t\t\r\n\t\t//Create participants - accounts first\r\n\t\tAccount partAccount1 = new Account(\"Manuel\");\r\n\t\tAccount partAccount2 = new Account(\"Tatenda\");\r\n\t\tAccount partAccount3 = new Account(\"Dan\");\r\n\t\tAccount partAccount4 = new Account(\"Kirill\");\r\n\t\t\r\n\t\t//Creates first event - Trip\r\n\t\tnewAccount.createEvent(\"Trip\", \"Short Term\");\r\n\t\t\r\n\t\t//Add participants\r\n\t\tnewAccount.events.get(0).addParticipant(new Participant(partAccount1));\r\n\t\tnewAccount.events.get(0).addParticipant(new Participant(partAccount2));\r\n\t\tnewAccount.events.get(0).addParticipant(new Participant(partAccount3));\r\n\t\tnewAccount.events.get(0).addParticipant(new Participant(partAccount4));\r\n\t\t\r\n\t\tEvent firstEvent = newAccount.events.get(0);\r\n\t\tArrayList<Participant> firstParts = (ArrayList<Participant>) firstEvent.getParticipants();\r\n\t\t\r\n\t\tArrayList<Item> items = new ArrayList<Item>();\r\n\t\titems.add(new Item(\"Bread1\", 10.0));\r\n\t\titems.add(new Item(\"Bread2\", 20.0));\r\n\t\titems.add(new Item(\"Bread3\", 30.0));\r\n\t\titems.add(new Item(\"Bread4\", 40.0));\r\n\t\t\r\n\t\t//Add activities\r\n\t\tfirstEvent.addBalanceChange(new Transaction(\"tmpname1\", firstParts, items));\r\n\t\tfirstEvent.addBalanceChange(new Transaction(\"tmpname2\", firstParts, items));\r\n\t\t//Could add more activities (transactions or payments here)\r\n\t\t\r\n\t\t//Creates second event - Household - and two three activities to it\r\n\t\tnewAccount.createEvent(\"Household\", \"Long Term\");\r\n\t\t\r\n\t\tArrayList<Item> items2 = new ArrayList<Item>();\r\n\t\titems2.add(new Item(\"Meat1\", 10.0));\r\n\t\titems2.add(new Item(\"Meat2\", 20.0));\r\n\t\titems2.add(new Item(\"Meat3\", 30.0));\r\n\t\titems2.add(new Item(\"Meat4\", 40.0));\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Add participants\r\n\t\tnewAccount.events.get(1).addParticipant(new Participant(partAccount1));\r\n\t\tnewAccount.events.get(1).addParticipant(new Participant(partAccount2));\r\n\t\t\r\n\t\t\r\n\t\tEvent secondEvent = newAccount.events.get(1);\r\n\t\tArrayList<Participant> secondParts = (ArrayList<Participant>) secondEvent.getParticipants();\r\n\t\t\r\n\t\t//Add activities\r\n\t\tsecondEvent.addBalanceChange(new Transaction(\"tmpname3\", secondParts, items2));\r\n\t\tsecondEvent.addBalanceChange(new Transaction(\"tmpname4\", secondParts, items2));\r\n\t\t\r\n\t\tnewAccount.updatePastRelations();\r\n\t\t\r\n\t\treturn newAccount;\r\n\t}",
"private void processEvent(Event e) {\n\t\t// adjust timer\n\t\ttime = e.getTime();\n\t\tprintTimer();\n\n\t\t// get related patient and doctor. Start them waiting. Get preferredDoctor\n\t\tPerson p = e.getPatient();\n\t\tp.startWaiting();\n\t\tPerson d = e.getDoctor();\n\t\tif (d != null) {\n\t\t\td.startWaiting();\n\t\t}\n\t\tPerson preferredDoctor = p.getPreferredDoctor();\n\n\t\t// switch on the event type\n\t\tswitch (e.getType()) {\n\t\t\tcase Event.NEW_PATIENT :\n\t\t\t\t// new patient entered ambulance. Add him to incoming waiters\n\t\t\t\t// and check if doctors are waiting\n\t\t\t\tprint(\n\t\t\t\t\t\"New patient: \" + p + \", add to examination-waiting-list\");\n\t\t\t\t_examinationWaiters.addLast(p);\n\t\t\t\tcheckExamination();\n\t\t\t\tbreak;\n\n\t\t\tcase Event.FIRST_EXAMINATION :\n\t\t\t\t// end of 1st examination\n\t\t\t\tprint(\"1st examination end: \" + p + \", \" + d);\n\t\t\t\tif (needXray()) {\n\t\t\t\t\t// if xray needed, add patient to the xray waiters\n\t\t\t\t\t// and check if xray-doctor is waiting\n\t\t\t\t\tprint(\"Xray needed. Add \" + p + \" to xray-waiting-list\");\n\t\t\t\t\tp.setPreferredDoctor(d);\n\t\t\t\t\t_xrayWaiters.addLast(p);\n\t\t\t\t\tcheckXRay();\n\t\t\t\t} else {\n\t\t\t\t\t// if no xray needed, then patient can go home.\n\t\t\t\t\tprint(\"No xray needed. Can go home now: \" + p);\n\t\t\t\t\t_gonePatients.add(p);\n\t\t\t\t}\n\t\t\t\t// check if incoming patients are waiting\n\t\t\t\tcheckExamination();\n\t\t\t\tbreak;\n\n\t\t\tcase Event.XRAY_SHOOTING :\n\t\t\t\t// end of xray-examination. Add Patient to waiters.\n\t\t\t\t// Check if any xray waiters and if doctors are waiting\n\t\t\t\tprint(\"Xray-shooting end: \" + p);\n\t\t\t\tif (_policy == XRAY_FIRST) {\n\t\t\t\t\tprint(\"Add to back-from-xray-waiters: \" + p);\n\t\t\t\t\t_backFromXrayWaiters.addLast(p);\n\t\t\t\t} else {\n\t\t\t\t\tprint(\"Add to examination-waiting-list: \" + p);\n\t\t\t\t\t_examinationWaiters.addLast(p);\n\t\t\t\t}\n\t\t\t\tcheckExamination();\n\t\t\t\tcheckXRay();\n\t\t\t\tbreak;\n\n\t\t\tcase Event.SECOND_EXAMINATION :\n\t\t\t\t// end of second examination. Patient can go home now.\n\t\t\t\t// check if incoming patients are waiting.\n\t\t\t\tprint(\"2nd examination end: \" + p + \", \" + d);\n\t\t\t\tprint(\"Can go home: \" + p);\n\t\t\t\t_gonePatients.add(p);\n\t\t\t\tcheckExamination();\n\t\t\t\tbreak;\n\t\t}\n\t}",
"public String getEventLine(){\r\n\t\t\twhile(name.length()<20){\r\n\t\t\t\tname+= \" \";\r\n\t\t\t}\r\n\t\t\tString Tword;\r\n\t\t\tTword = String.format(\"%05d\", ticket);\r\n\t\t return Integer.toString(date)+ \" \" +Tword+\" \"+name;\r\n\t }",
"@Override\n public void date(SinkEventAttributes attributes)\n {\n }",
"@EventHandler\n public void on(MoneyDepositedEvent event) {\n System.out.println(\"Received Event -> MoneyDepositedEvent\");\n }",
"public void handleEvent(Event event) {\n if ((currentTextReports != null)\n && (currentTextReports.size() > currentTextIndex)\n && (currentTextIndex >= 1)) {\n String dispStr = removeCR((String) currentTextReports\n .get(currentTextIndex - 1)[0]);\n\t\t\t\t\tString curText = text.getText();\n\t\t\t\t\tint endIndex = curText.indexOf(\"----\");\n if (endIndex != -1) {\n curText = curText.substring(0, endIndex + 4);\n text.setText(curText + \"\\n\" + dispStr);\n } else\n\t\t\t\t\t\ttext.setText(dispStr);\n\t\t\t\t\tprevBtn.setEnabled(true);\n\t\t\t\t\tcurrentTextIndex--;\n if (currentTextIndex == 0) {\n\t\t\t\t\t\tnextBtn.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"public static List<Event> generateExpiredEvents() {\n\t\tEvent event1 = Event.create(0);\r\n\t\tevent1.infoStore().add(Info.create(1, 2, 3));\r\n\t\tList<Event> events = new ArrayList<Event>();\r\n\t\tevents.add(event1);\r\n\t\treturn events;\r\n\t}",
"public void testGetNextEvent() throws Exception {\n \n \tint NB_READS = 20;\n \n \t// On lower bound, returns the first event (ts = 1)\n \tTmfContext context = fTrace.seekEvent(new TmfTimestamp(0, SCALE, 0));\n \n \t// Read NB_EVENTS\n \tTmfEvent event;\n for (int i = 0; i < NB_READS; i++) {\n event = fTrace.getNextEvent(context);\n assertEquals(\"Event timestamp\", i + 1, event.getTimestamp().getValue());\n assertEquals(\"Event rank\", i + 1, context.getRank());\n }\n \n // Make sure we stay positioned\n event = fTrace.parseEvent(context);\n assertEquals(\"Event timestamp\", NB_READS + 1, event.getTimestamp().getValue());\n assertEquals(\"Event rank\", NB_READS, context.getRank());\n }",
"public void addCust(Event temp){\n eventLine.add(temp);\n }",
"public String getEventLine(){\r\n\t\t\twhile(name.length()<20){\r\n\t\t\t\tname+= \" \";\r\n\t\t\t}\r\n\t\t\tString Tword;\r\n\t\t\tTword = String.format(\"%05d\", ticket);\r\n\t\t\treturn Integer.toString(date)+ \" \" +Tword+\" \"+name;\r\n\t\t}",
"public void generateRandomEvents();",
"private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }",
"public static void ProcessTransaction(){\r\n\t Iterator<String> iter = masterEventsFile.iterator();\r\n\t //this uses the deletePastEvents method to delete all the past events in the masterEventsFile\r\n\t while (iter.hasNext()){\r\n\t\t String e = iter.next();\r\n\t \r\n\t //for (String e : masterEventsFile){\r\n\t\t Event CheckEvent = new Event(e);\r\n\t\t boolean pastDate = deletePastEvents(CheckEvent);\r\n\t\t if (!pastDate){\r\n\t\t\t break;\r\n\t\t } \r\n\t }\r\n\t //makes each line of the masterEventFile into an Event object for easier processing\r\n\t for (String e : masterEventsFile){\r\n\t\t Event event = new Event(e);\r\n\t\t alteredEventsFile.add(event);\r\n\t }\r\n\t //makes each line into a Transaction object for easier processing\r\n\t for (String t: mergedEventTransactionFile){\r\n\t\t Transaction transaction= new Transaction(t);\r\n\t\t allTransactions.add(transaction);\r\n\t }\r\n\t \r\n\t //Iterates through each Transaction processing them one at a time based on their id\r\n\t for (Transaction t: allTransactions){\r\n\t\t //process sell, return, create, add, delete,end\r\n\t\t if(t.id == 00){\r\n\t\t\t break;\r\n\t\t }\r\n\t\t Event changeEvent = findEvent(t.name);\r\n\t\t if (changeEvent != null){\r\n\t\t\t if (t.id == 01){\t\t\t\t\t\t//sell transaction\r\n\t\t\t\t if((changeEvent.ticket -t.ticket)<0){\r\n\t\t\t\t\t System.out.println(\"Sell transaction could not be performed, not enough tickets\"); //Contraints: no event should ever have a negative nmber of ticekts\r\n\t\t\t\t }else{\r\n\t\t\t\t\t changeEvent.ticket = changeEvent.ticket -t.ticket;\r\n\t\t\t\t }\r\n\t\t\t }else if (t.id == 02){\t\t\t\t//return transaction\r\n\t\t\t\t changeEvent.ticket =changeEvent.ticket + t.ticket;\r\n\t\t\t }else if (t.id == 04){\t\t\t\t//add transaction\r\n\t\t\t\t changeEvent.ticket += t.ticket;\t\r\n\t\t\t }else if (t.id == 05){\t\t\t\t//delete transaction\r\n\t\t\t\t changeEvent = null;\r\n\t\t\t }\r\n\t\t }else{\t\t\t\t\t\t\t\t//constraint: a new event must have a name different from all existing events\r\n\t\t\t if(t.id == 03){\t\t\t\t\t\t//create transaction\r\n\t\t\t\t Event newEvent = new Event (t.getEventLine());\r\n\t\t\t\t InsertEvent(newEvent);\t\t//constraint: <asterEventFile must be kept in ascending order by date\r\n\t\t\t }\r\n\t\t }\r\n\t }\r\n\t \r\n\t String newMasterEventsFile = \"\";\r\n\t String newCurrentEventsFile = \"\"\r\n\t\t\t ;\r\n\t // creates two strings in proper format for output to currenteventsFile and MasterEventsFile\r\n\t for (Event e: alteredEventsFile){\t\t\t\t\t\t\t\t//assumes correct input... constraint:every line is exactly 33 characters(plus newline)\r\n\t\t newMasterEventsFile += e.getEventLine() +\"\\n\";\r\n\t\t newCurrentEventsFile += e.getCurrentEventLine() + \"\\n\";\r\n\t }\r\n\t \r\n\t //does file output stuff\r\n\t try{\r\n\t\t endBackEnd(newMasterEventsFile, newCurrentEventsFile);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }",
"private void generateIncomingReport() {\r\n\r\n\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\tstringBuilder.append(\"\\n----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Incoming Daily Amount \\n\")\r\n\t\t\t\t.append(\"----------------------------------------\\n\")\r\n\t\t\t\t.append(\" Date | Trade Amount \\n\")\r\n\t\t\t\t.append(\"-----------------+----------------------\\n\");\r\n\t\tallIncomings.entrySet().forEach(\r\n\t\t\t\tkey -> stringBuilder.append(key.getKey() + \" | \" + key.getValue().get() + \"\\n\"));\r\n\t\tdataWriter.write(stringBuilder.toString());\r\n\t}",
"protected TemSourceAccountingLine initiateAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setDocumentNumber(getDocumentNumber());\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setSequenceNumber(new Integer(1));\n accountingLine.setCardType(TemConstants.ADVANCE);\n if (this.allParametersForAdvanceAccountingLinesSet()) {\n accountingLine.setChartOfAccountsCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART));\n accountingLine.setAccountNumber(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT));\n accountingLine.setFinancialObjectCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE));\n }\n return accountingLine;\n }\n catch (InstantiationException ie) {\n LOG.error(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName(), ie);\n }\n catch (IllegalAccessException iae) {\n LOG.error(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName(), iae);\n }\n }",
"public TemSourceAccountingLine createNewAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setCardType(TemConstants.ADVANCE); // really, card type is ignored but it is validated so we have to set something\n accountingLine.setFinancialObjectCode(this.getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE, KFSConstants.EMPTY_STRING));\n return accountingLine;\n }\n catch (IllegalAccessException iae) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", iae);\n }\n catch (InstantiationException ie) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", ie);\n }\n }",
"@Override\n public void onEvents( PartitionContext context, Iterable<EventData> events ) throws Exception {\n\n // First time calibration time\n //\n if (lastIterationTime<0) {\n lastIterationTime = System.currentTimeMillis();\n }\n\n // See if we're not doing an iteration in the max wait time timer task...\n //\n while (wait.get() && !azureStep.isStopped()) {\n Thread.sleep( 10 );\n }\n\n int eventCount = 0;\n for ( EventData data : events ) {\n\n // It is important to have a try-catch around the processing of each event. Throwing out of onEvents deprives\n // you of the chance to process any remaining events in the batch.\n //\n azureStep.incrementLinesInput();\n\n try {\n\n Object[] row = RowDataUtil.allocateRowData(azureData.outputRowMeta.size());\n int index = 0;\n\n // Message : String\n //\n if ( StringUtils.isNotEmpty(azureData.outputField)) {\n row[ index++ ] = new String( data.getBytes(), \"UTF-8\" );\n }\n\n // Partition ID : String\n //\n if ( StringUtils.isNotEmpty(azureData.partitionIdField)) {\n row[ index++ ] = context.getPartitionId();\n }\n\n // Offset : String\n //\n if ( StringUtils.isNotEmpty(azureData.offsetField)) {\n row[ index++ ] = data.getSystemProperties().getOffset();\n }\n\n // Sequence number: Integer\n //\n if ( StringUtils.isNotEmpty(azureData.sequenceNumberField)) {\n row[ index++ ] = data.getSystemProperties().getSequenceNumber();\n }\n\n // Host: String\n //\n if ( StringUtils.isNotEmpty(azureData.hostField)) {\n row[ index++ ] = context.getOwner();\n }\n\n // Enqued Time: Timestamp\n //\n if ( StringUtils.isNotEmpty(azureData.enquedTimeField)) {\n Instant enqueuedTime = data.getSystemProperties().getEnqueuedTime();\n row[ index++ ] = Timestamp.from( enqueuedTime );\n }\n\n if (azureData.stt) {\n azureData.sttRowProducer.putRow( azureData.outputRowMeta, row );\n passedRowsCount++;\n lastContext = context;\n lastData = data;\n } else {\n // Just pass the row along, row safety is not of primary concern\n //\n azureStep.putRow( azureData.outputRowMeta, row );\n }\n\n if (azureStep.isDebug()) {\n azureStep.logDebug(\"Event read and passed for PartitionId (\" + context.getPartitionId() + \",\" + data.getSystemProperties().getOffset() + \",\" +\n data.getSystemProperties().getSequenceNumber() + \"): \" + new String( data.getBytes(), \"UTF8\" ) +\" (\"+index+\" values in row)\" );\n }\n\n eventCount++;\n\n // Checkpointing persists the current position in the event stream for this partition and means that the next\n // time any host opens an event processor on this event hub+consumer group+partition combination, it will start\n // receiving at the event after this one. Checkpointing is usually not a fast operation, so there is a tradeoff\n // between checkpointing frequently (to minimize the number of events that will be reprocessed after a crash, or\n // if the partition lease is stolen) and checkpointing infrequently (to reduce the impact on event processing\n // performance). Checkpointing every five events is an arbitrary choice for this sample.\n //\n this.checkpointBatchingCount++;\n if ( ( checkpointBatchingCount % checkpointBatchingSize ) == 0 ) {\n if (azureStep.isDebug()) {\n azureStep.logDebug( \"Partition \" + context.getPartitionId() + \" checkpointing at \" +\n data.getSystemProperties().getOffset() + \",\" + data.getSystemProperties().getSequenceNumber() );\n }\n\n if (azureData.stt) {\n\n if (azureStep.isDetailed()) {\n azureStep.logDetailed( \"Processing the rows sent to the batch transformation at event count \" + checkpointBatchingCount );\n }\n\n doOneIteration();\n } else {\n // Checkpoints are created asynchronously. It is important to wait for the result of checkpointing\n // before exiting onEvents or before creating the next checkpoint, to detect errors and to ensure proper ordering.\n //\n context.checkpoint( data ).get();\n }\n\n\n }\n } catch ( Exception e ) {\n azureStep.logError( \"Processing failed for an event: \" + e.toString(), e );\n azureStep.setErrors( 1 );\n azureStep.stopAll();\n }\n }\n if (azureStep.isDebug()) {\n azureStep.logDebug( \"Partition \" + context.getPartitionId() + \" batch size was \" + eventCount + \" for host \" + context.getOwner() );\n }\n }",
"com.walgreens.rxit.ch.cda.EIVLEvent addNewEvent();",
"@Test\r\n public void testCommissionCases() throws Exception\r\n {\r\n String epcToCheck = \"urn:epc:id:sgtin:0614141.107340.1\";\r\n XmlObjectEventType event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n Assert.assertNull(event);\r\n\r\n runCaptureTest(COMMISSION_CASES_XML);\r\n\r\n event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n Assert.assertNotNull(event);\r\n }",
"public static void main(String[] args) {\n \n //variables\n String event, month, day, year, date, hour, min, time, \n section, row, seat, price, discount, cost, prize; \n double priceNum, discountNum, costNum, prizeNum;\n \n //getting input from user\n Scanner scan = new Scanner(System.in);\n System.out.print(\"Enter your event code: \");\n String userInput = scan.nextLine().trim();\n System.out.println();\n \n //if statement\n if (userInput.length() < MIN_LENGTH) {\n \n System.out.println(\"Invalid Event Code.\\n\"\n + \"Event code must have at least 26 characters.\");\n \n } else {\n \n event = userInput.substring(25, userInput.length());\n month = userInput.substring(0, 2);\n day = userInput.substring(2, 4);\n year = userInput.substring(4, 8);\n date = month + \"/\" + day + \"/\" + year;\n hour = userInput.substring(8, 10);\n min = userInput.substring(10, 12);\n time = hour + \":\" + min;\n section = userInput.substring(19, 21);\n row = userInput.substring(21, 23);\n seat = userInput.substring(23, 25);\n \n //setup formatters\n DecimalFormat dfPrice = new DecimalFormat(\"$#,##0.00\");\n DecimalFormat dfDiscount = new DecimalFormat(\"0%\");\n DecimalFormat dfPrize = new DecimalFormat(\"0000\");\n \n //price\n price = userInput.substring(12, 17);\n priceNum = Double.parseDouble(price);\n priceNum = priceNum / 100;\n price = dfPrice.format(priceNum);\n \n //discount\n discount = userInput.substring(17, 19);\n discountNum = Double.parseDouble(discount);\n discountNum = discountNum / 100;\n discount = dfDiscount.format(discountNum);\n \n //cost\n costNum = priceNum - (priceNum * discountNum);\n cost = dfPrice.format(costNum);\n \n //prize number\n prizeNum = (Math.random() * 10000) + 1;\n prize = dfPrize.format(prizeNum);\n \n \n //print statements\n System.out.print(\"Event: \" + event + \" Date: \" \n + date + \" Time: \" + time + \"\\n\"\n + \"Section: \" + section + \" Row: \" \n + row + \" Seat: \" + seat + \"\\n\"\n + \"Price: \" + price + \" Discount: \" \n + discount + \" Cost: \" + cost + \"\\n\"\n + \"Prize Number: \" + prize); \n }\n \n }",
"protected void sequence_ALL_CURRENT_EVENTS_EXPIRED_OutputEventType_RAW(ISerializationContext context, OutputEventType semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"public void run(){\n Event temp;\n while (!eventLine.isEmpty()) {\n temp = eventLine.poll();\n clock = temp.getEventTime();\n if (temp.isArrival()) { // Arrival Event?\n \tnumCust++; // add to total customers helped\n if (!temp.getWalkIn() && driveInOpen) { // is it a drive-in and is the driveThru open?\n \tTeller tellerTemp = null;\n \t\tfor(Teller t: employees) {\n \t\t\tif(t.isAvailable()) {\n \t\t\t\ttellerTemp = t;\n \t\t\t}\n \t\t}\n \tif(tellerTemp!= null) {\n \t\ttellerTemp.addArrival(temp);\n \t}else {\n \t\tdriveInQ.add(temp); // add the event to the drive-in line\n \t}\n \n }else { // find the teller with the shortest line and add the event\n getShortestLine().addArrival(temp);\n }\n } else {\n \ttemp.getTeller().getNextEvent(); // This was departure that we polled from the Queue\n }\n }\n }",
"public static void generateEvents(int numOfCustomers, double greedyProbability) {\n double scheduledArrivalTime = 0.0;\n int id = 1;\n for (int n = numOfCustomers; n != 0; n--) {\n Customer c = null; \n if (!isCustomerGreedy(greedyProbability)) {\n c = new TypicalCustomer(id, scheduledArrivalTime);\n } else {\n c = new GreedyCustomer(id, scheduledArrivalTime);\n }\n EventManager.addArriveEvent(scheduledArrivalTime, c);\n id++;\n scheduledArrivalTime += randomGenerator.genInterArrivalTime();\n }\n }",
"Date NextEvent(Date d);",
"public void action() {\n store.readNextArrival();\n Employee employee = (Employee)this.getActor();\n checkout = store.firstUnmannedCheckout();\n checkout.setCashier(employee);\n checkout.setOpen(true);\n int quittingTime = employee.getQuittingTime();\n Event event = new ShiftCompletedEvent(quittingTime, employee, checkout);\n store.getEventList().addEvent(event);\n \n System.out.printf(\"Time %d: Cashier %d arrives (Speed %d, quitting time %d, checkout %d)\\n\",\n time,\n employee.getId(),\n employee.getSpeed(),\n employee.getQuittingTime(),\n checkout.getIndex());\n }",
"public static void createEvent(String token){\n ensureGraphClient(token);\n\n LinkedList<Option> requestOptions = new LinkedList<Option>();\n //requestOptions.add(new HeaderOption(\"Authorization\", \"Bearer nupl9.C5rb]aO5:yvT:3L.TKcH7tB1Im\" ));\n\n // Participantes:\n LinkedList<Attendee> attendeesList = new LinkedList<Attendee>();\n Attendee mentor = new Attendee();\n Attendee mentorado = new Attendee();\n\n EmailAddress mentorMail = new EmailAddress();\n mentorMail.address = \"[email protected]\";\n mentorMail.name = \"Daniell Wagner\";\n mentor.emailAddress = mentorMail;\n\n EmailAddress mentoradoMail = new EmailAddress();\n mentoradoMail.address = \"[email protected]\";\n mentoradoMail.name = \"Guilherme Carneiro\";\n mentorado.emailAddress = mentoradoMail;\n\n mentor.type = AttendeeType.REQUIRED;\n mentorado.type = AttendeeType.REQUIRED;\n\n attendeesList.add(mentor);\n attendeesList.add(mentorado);\n\n // Evento:\n Event event = new Event();\n event.subject = \"Mentoria com \" + mentor.emailAddress.name;\n\n ItemBody body = new ItemBody();\n body.contentType = BodyType.HTML;\n body.content = \"\" +\n \"<b>Mentoria sobre SCRUM</b> <br>\" +\n \"Olá, \" + mentorado.emailAddress.name + \" <br> \" +\n \"Você tem uma mentoria marcada com o mentor \"\n + mentor.emailAddress.name + \"!!\";\n\n event.body = body;\n\n DateTimeTimeZone start = new DateTimeTimeZone();\n start.dateTime = \"2020-03-26T16:00:00\";\n start.timeZone = \"Bahia Standard Time\";\n event.start = start;\n\n DateTimeTimeZone end = new DateTimeTimeZone();\n end.dateTime = \"2020-03-26T18:00:00\";\n end.timeZone = \"Bahia Standard Time\";\n event.end = end;\n\n Location location = new Location();\n location.displayName = \"Stefanini Campina Grande\";\n event.location = location;\n\n event.attendees = attendeesList;\n\n try {\n graphClient.me().calendar().events()\n .buildRequest()\n .post(event);\n }catch(Exception e) {\n\n System.out.println(\"Deu águia: \");\n e.printStackTrace();\n }\n }",
"public final void generateEvent(int type, ID regarding) {\r\n\r\n Iterator eachListener = Arrays.asList(eventListeners.toArray()).iterator();\r\n\r\n RendezvousEvent event = new RendezvousEvent(getInterface(), type, regarding);\r\n if (LOG.isEnabledFor(Priority.DEBUG)) {\r\n LOG.debug(\"Calling listeners for \" + event);\r\n }\r\n\r\n while (eachListener.hasNext()) {\r\n RendezvousListener aListener = (RendezvousListener) eachListener.next();\r\n\r\n try {\r\n aListener.rendezvousEvent(event);\r\n } catch (Throwable ignored) {\r\n if (LOG.isEnabledFor(Priority.WARN)) {\r\n LOG.warn(\"Uncaught Throwable in listener (\" + aListener + \")\", ignored);\r\n }\r\n }\r\n }\r\n }",
"@Override\n\t/**\n\t * Defines the look of the day view grid (the division of hours and events throughout the day) \n\t * @param c GregorianCalendar holding the year to be drawn\n\t * @param d the data model holding event information \n\t * @param g2 the graphics package\n\t * @param container the container that will rely on this method to define it's look and feel \n\t */\n\tpublic void drawEventGrid(GregorianCalendar c, DataModel d, Graphics2D g2, Component container)\n\t{\n\t\t\t\tLine2D.Double vertLine = new Line2D.Double(60, 0, 60, container.getHeight()); \n\t\t\t\tg2.setColor(Color.LIGHT_GRAY);\n\t\t\t\tg2.draw(vertLine);\n\n\t\t\t\t//Draw the time text\n\t\t\t\tint hour = 1; \n\t\t\t\tString halfOfDay = \"am\"; \n\n\t\t\t\tfor (int i = 0; i<24; i ++)\n\t\t\t\t{\t\n\t\t\t\t\tif (i < 23)\n\t\t\t\t\t{\n\t\t\t\t\t\tg2.setColor(Color.BLACK);\n\t\t\t\t\t\tif (i == 11)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thalfOfDay = \"pm\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (i == 12)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thour = 1; \n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tString time = Integer.toString(hour) + halfOfDay; \n\t\t\t\t\t\thour++; \n\t\t\t\t\t\tg2.drawString(time, 20, ( i + 1 )*60);\n\t\t\t\t\t}\n\n\n\t\t\t\t\t//Draw the Lines indicating where hours begin \n\t\t\t\t\tg2.setColor(Color.LIGHT_GRAY);\n\t\t\t\t\tLine2D.Double hourLine = new Line2D.Double(60, i*60, container.getWidth(), i*60); \n\t\t\t\t\tg2.draw(hourLine); \n\n\t\t\t\t}\n\n\t\t\t\t//Get events from the datModel \n\t\t\t\tTreeSet<Event> events = d.getEvents(c.get(Calendar.MONTH) + 1 , c.get(Calendar.DAY_OF_MONTH), c.get(Calendar.YEAR));\n\t\t\t\tif (events.size() != 0)\n\t\t\t\t{\n\t\t\t\t\tfor (Event e : events)\n\t\t\t\t\t{\n\t\t\t\t\t\tg2.setColor(Color.BLUE);\n\t\t\t\t\t\tString eventStart = e.getStartTime(); \n\t\t\t\t\t\tString eventEnd = e.getEndTime(); \n\t\t\t\t\t\tint startHour = Integer.parseInt(eventStart.substring(0,2)); \n\t\t\t\t\t\tint startMin = Integer.parseInt(eventStart.substring(3)); \n\t\t\t\t\t\tint endHour = Integer.parseInt(eventEnd.substring(0,2)); \n\t\t\t\t\t\tint endMin = Integer.parseInt(eventEnd.substring(3)); \n\n\t\t\t\t\t\t//Draw the Rectangle representing the scheduled event \n\t\t\t\t\t\tRectangle2D.Double eventBox = new Rectangle2D.Double(60, ((startHour * 60) + startMin), \n\t\t\t\t\t\t\t\tcontainer.getWidth(), ((endHour * 60) - (startHour * 60) + (endMin - startMin)) ); \n\t\t\t\t\t\tg2.fill(eventBox);\n\n\t\t\t\t\t\t//Draw the event details onto the rectangle\n\t\t\t\t\t\tFontMetrics fm = g2.getFontMetrics(container.getFont()); \n\t\t\t\t\t\tg2.setColor(Color.WHITE);\n\t\t\t\t\t\tg2.drawString( \" \" + e.getName() + \" \" + e.getStartTime() + \" - \" + e.getEndTime(), 60, ((startHour * 60) + startMin + fm.getHeight())); \n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t}",
"private void addEnergyEvent(Event e) {\n EnergyUpdateEvent event = (EnergyUpdateEvent) e;\n\n int time = this.getEnvironment().getTime();\n this.addCycle(time);\n\n var agentId = event.getAgent().getID();\n var action = new EnergyUpdate(event.getEnergyPercentage(), event.isIncreased(), agentId);\n this.historyEnergy.get(time).add(action);\n this.addRowTable(time, agentId, action.toString());\n\n repaint();\n }",
"public void setAdvanceAccountingLines(List<TemSourceAccountingLine> advanceAccountingLines) {\n this.advanceAccountingLines = advanceAccountingLines;\n }",
"public static Event handleAddTimeLineEvents(HttpServletRequest request,\r\n\t\t\tLong timeLineId, SessionObjectBase sob) {\r\n\r\n\t\tEvent event = new Event();\r\n\r\n\t\tif (timeLineId == null) {\r\n\t\t\treturn event;\r\n\t\t}\r\n\r\n\t\tTimeLine timeline = TimeLine.getById(sob.schema, timeLineId);\r\n\r\n\t\tString sending_page = (String) request.getParameter(\"sending_page\");\r\n\r\n\t\tif ((sending_page != null)\r\n\t\t\t\t&& (sending_page.equalsIgnoreCase(\"timeline_creator\"))) {\r\n\r\n\t\t\tString command = (String) request.getParameter(\"command\");\r\n\r\n\t\t\tif (command.equalsIgnoreCase(\"Update\")) {\r\n\t\t\t\tString event_id = (String) request.getParameter(\"event_id\");\r\n\r\n\t\t\t\tevent.setId(new Long(event_id));\r\n\t\t\t\tsob.draft_event_id = event.getId();\r\n\r\n\t\t\t}\r\n\r\n\t\t\tif (command.equalsIgnoreCase(\"Clear\")) {\r\n\t\t\t\tsob.draft_event_id = null;\r\n\t\t\t} else { // coming here as update or as create.\r\n\r\n\t\t\t\tString event_type = (String) request.getParameter(\"event_type\");\r\n\r\n\t\t\t\tint eventTypeInt = 1;\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\teventTypeInt = new Long(event_type).intValue();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tevent.setEventType(eventTypeInt);\r\n\t\t\t\t\r\n\t\t\t\tString eventTitle = (String) request.getParameter(\"event_title\");\r\n\t\t\t\t\r\n\t\t\t\tif (!(USIP_OSP_Util.stringFieldHasValue(eventTitle))){\r\n\t\t\t\t\teventTitle = \"No Title Provided\";\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tevent.setEventTitle(eventTitle);\r\n\t\t\t\tevent.setEventMsgBody((String) request\r\n\t\t\t\t\t\t.getParameter(\"event_text\"));\r\n\r\n\t\t\t\tString timeline_event_date = (String) request\r\n\t\t\t\t\t\t.getParameter(\"timeline_event_date\");\r\n\r\n\t\t\t\tSystem.out.println(timeline_event_date);\r\n\r\n\t\t\t\tSimpleDateFormat sdf_startdate = new SimpleDateFormat(\r\n\t\t\t\t\t\t\"MM/dd/yyyy HH:mm\");\r\n\r\n\t\t\t\t// set this to a safe date (now) in case the date entered does not parse well.\r\n\t\t\t\tevent.setEventStartTime(new java.util.Date());\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDate ted = sdf_startdate.parse(timeline_event_date);\r\n\t\t\t\t\tevent.setEventStartTime(ted);\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tsob.errorMsg = \"The date and time that you entered, \\\"\" + timeline_event_date + \"\\\", could not be interpreted. \" + \r\n\t\t\t\t\t\t\"The date was set to your current time.\";\r\n\t\t\t\t}\r\n\t\t\t\tevent.setSimId(sob.sim_id);\r\n\r\n\t\t\t\tevent.setPhaseId(sob.phase_id);\r\n\r\n\t\t\t\t// //////////////////////////////////////////\r\n\t\t\t\tevent.setTimelineId(timeline.getId());\r\n\r\n\t\t\t\tevent.saveMe(sob.schema);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tString remove_event = (String) request.getParameter(\"remove_event\");\r\n\t\tString edit_event = (String) request.getParameter(\"edit_event\");\r\n\r\n\t\tString event_id = (String) request.getParameter(\"event_id\");\r\n\r\n\t\tif ((remove_event != null) && (remove_event.equalsIgnoreCase(\"true\"))) {\r\n\t\t\tEvent.removeMe(sob.schema, new Long(event_id));\r\n\t\t\tsob.draft_event_id = null;\r\n\t\t}\r\n\r\n\t\tif ((edit_event != null) && (edit_event.equalsIgnoreCase(\"true\"))) {\r\n\t\t\tevent = Event.getById(sob.schema, new Long(event_id));\r\n\t\t\tsob.draft_event_id = event.getId();\r\n\t\t}\r\n\r\n\t\treturn event;\r\n\t}",
"@Override\n public void generateAction(ClientQuery clientQuery) {\n this.simPintoDBPointer.getInterFace().refreshConsoleAreaContent(\"Generate Action: Se genera una salida del cliente: \" + clientQuery.getClientID() + \" de tipo \" + clientQuery.getQueryType() + \" del \"\n + \"Transaction and Disk Access Module\" + \" y su tiempo en el sistema es de: \"\n + (simPintoDBPointer.getSimClock() - clientQuery.getQueryStatistics().getSystemArriveTime()));\n\n Event e;\n double eTime = simPintoDBPointer.getSimClock();\n StatementType cST = clientQuery.getQueryType();\n eTime += maxServers * 0.03;\n QueryStatistics qS = clientQuery.getQueryStatistics();\n\n switch (cST) {\n case DDL:\n case UPDATE:\n qS.setUsedBlocks(0);\n break;\n case JOIN:\n int blocks = (int) (1 + (new RandomNumberGenerator().getRandNumb()) * 64);\n qS.setUsedBlocks(blocks);\n break;\n default:\n qS.setUsedBlocks(1);\n break;\n }\n eTime += qS.getUsedBlocks() * (0.10);\n //I need to add the new event to the systemEventList\n PriorityQueue<Event> eQ = simPintoDBPointer.getSistemEventList();\n e = new Event(clientQuery, SimEvent.LEAVE, this, eTime);\n eQ.add(e);\n }",
"public void addEvent()\n throws StringIndexOutOfBoundsException, ArrayIndexOutOfBoundsException {\n System.out.println(LINEBAR);\n try {\n String taskDescription = userIn.split(EVENT_IDENTIFIER)[DESCRIPTION].substring(EVENT_HEADER);\n String timing = userIn.split(EVENT_IDENTIFIER)[TIMING];\n Event event = new Event(taskDescription, timing);\n tasks.add(event);\n storage.writeToFile(event);\n ui.echoUserInput(event, tasks.taskIndex);\n } catch (StringIndexOutOfBoundsException e) {\n ui.printStringIndexOOB();\n } catch (ArrayIndexOutOfBoundsException e) {\n ui.printArrayIndexOOB();\n }\n System.out.println(LINEBAR);\n }",
"public void crear_un_evento_recurrente_para_el_dia_de_hoy() {\n\t\t\n\t}",
"private void addPaymentStartEvent() {\n /*09th July 2019, Resolved Pyze library issue*/\n HashMap<String, Object> customAttributes = new HashMap<String, Object>();\n customAttributes.put(\"packageID\", String.valueOf(PackageID));\n customAttributes.put(\"userID\", String.valueOf(UserID));\n customAttributes.put(\"paymentType\", getIntent().getStringExtra(\"PaymentType\"));\n PyzeEvents.PyzeCommercePayment.postPaymentStarted(customAttributes);\n }",
"void addFamilyLines(Event event,HashSet<Event> filteredEvents,int genLevel) {\n HashSet<Event> parentEvents = singleton.retrieveParentLines(event.getPersonID());\r\n Log.d(TAG,String.valueOf(parentEvents.size()));\r\n for(Event parEvent: parentEvents) {\r\n if(filteredEvents.contains(parEvent)) {\r\n int color;\r\n if(genLevel % 4 == 0) {\r\n //add green\r\n color = Color.GREEN;\r\n }\r\n else if(genLevel % 4 == 1) {\r\n //add grey\r\n color = Color.GRAY;\r\n }\r\n else if(genLevel % 4 == 2) {\r\n //add Yellow\r\n color = Color.YELLOW;\r\n }\r\n else {\r\n //add cyan\r\n color= Color.CYAN;\r\n }\r\n double lat = event.getLatitude();\r\n double longi = event.getLongitude();\r\n LatLng p1 = new LatLng(lat,longi);\r\n lat = parEvent.getLatitude();\r\n longi = parEvent.getLongitude();\r\n LatLng p2 = new LatLng(lat,longi);\r\n drawLine(p1,p2,color,markerWidth - 2*genLevel);\r\n addFamilyLines(parEvent,filteredEvents,genLevel +1);\r\n }\r\n }\r\n }",
"public void savingsWithdrawReceipPrintStamp(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\np.color(0);\np.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Withdrawal ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Withdrawal Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Withdrawal Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Withdrawal Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Withdrawal Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(7).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.addLineSeperator();\np.doubleStrik(true);\n//p.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\np.addLineSeperatorX();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.setText(\"OFFICE NUMBER: \"+receiptDetails.get(12).toString());\n\np.newLine();\np.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }",
"public void onEvent(EventIterator events) {\n\n }",
"private UIEvent generateModifyEvent(){\n List<DataAttribut> dataAttributeList = new ArrayList<>();\n for(int i = 0; i< attributModel.size(); i++){\n String attribut = attributModel.elementAt(i);\n dataAttributeList.add(new DataAttribut(attribut));\n }\n //Erstellen des geänderten Produktdatums und des Events\n DataProduktDatum proposal = new DataProduktDatum(name.getText(), new DataId(id.getText()), dataAttributeList, verweise.getText());\n UIModifyProduktDatumEvent modifyEvent = new UIModifyProduktDatumEvent(dataId, proposal);\n return modifyEvent;\n }",
"protected void printEvent(Event event) {\n System.out.println(\"\\t\" + event.getName());\n System.out.println(\"\\t\" + event.getDate().getDate());\n System.out.println(\"\\t\" + event.getTime().get12HTime());\n\n if (event.getDuration() != 0) {\n System.out.println(\"\\tFor \" + event.getDuration() + \" minutes\");\n }\n }",
"public void advance() {\n\n if (length == Length.DAILY) {\n startDate.add(Calendar.DATE, 1);\n } else if (length == Length.WEEKLY) {\n startDate.add(Calendar.WEEK_OF_YEAR, 1);\n } else if (length == Length.BIWEEKLY) {\n startDate.add(Calendar.DATE, 14);\n } else if (length == Length.MONTHLY) {\n startDate.add(Calendar.MONTH, 1);\n } else if (length == Length.YEARLY) {\n startDate.add(Calendar.YEAR, 1);\n }\n\n calculateEndDate();\n\n }",
"ProgramEventEvent createProgramEventEvent();",
"public IEvent getNextEvent();",
"public TemSourceAccountingLine getAdvanceAccountingLine(int index) {\n while (getAdvanceAccountingLines().size() <= index) {\n getAdvanceAccountingLines().add(createNewAdvanceAccountingLine());\n }\n return getAdvanceAccountingLines().get(index);\n }",
"@Test\n public void printApplicationTimePrintTenuringDistribution() throws Exception {\n TestLogHandler handler = new TestLogHandler();\n handler.setLevel(Level.WARNING);\n GCResource gcResource = new GcResourceFile(\"SampleSun1_7_0_02PrintApplicationTimeTenuringDistribution.txt\");\n gcResource.getLogger().addHandler(handler);\n DataReader reader = getDataReader(gcResource);\n GCModel model = reader.read();\n Assert.assertEquals(\"number of events\", 9, model.size());\n Assert.assertEquals(\"number of concurrent events\", 2, model.getConcurrentEventPauses().size());\n GCEvent youngEvent = ((GCEvent) (model.get(0)));\n Assert.assertEquals(\"gc pause (young)\", 0.00784501, youngEvent.getPause(), 1.0E-9);\n Assert.assertEquals(\"heap (young)\", (20 * 1024), youngEvent.getTotal());\n GCEvent partialEvent = ((GCEvent) (model.get(7)));\n Assert.assertEquals(\"gc pause (partial)\", 0.02648319, partialEvent.getPause(), 1.0E-9);\n Assert.assertEquals(\"heap (partial)\", (128 * 1024), partialEvent.getTotal());\n Assert.assertEquals(\"number of errors\", 0, handler.getCount());\n }",
"public void onTrade(Trade event) {\n tradeCount++;\n }",
"@Override\r\n public void next() {\r\n\r\n LogEntryBuffer l_observable = new LogEntryBuffer();\r\n LogFile l_observer = new LogFile();\r\n l_observable.addObserver(l_observer);\r\n\r\n for(String l_player: d_playerList.keySet())\r\n {\r\n if (d_playerList.get(l_player).d_owned.size()==0)\r\n {\r\n d_playerList.remove(l_player);\r\n d_message = l_player+\" you have lost the game. So you're out of the game!!!\";\r\n System.out.println(d_message);\r\n l_observable.setMsg(d_message);\r\n break;\r\n }\r\n }\r\n if(d_playerList.size()==1)\r\n {\r\n for(String player: d_playerList.keySet()) {\r\n d_message = player + \" is the winner of the game!!!!!!!!\";\r\n System.out.println(d_message);\r\n l_observable.setMsg(d_message);\r\n }\r\n d_ge1.setPhase(new End(d_ge1));\r\n }\r\n else\r\n {\r\n d_ge1.setPhase(new OrderIssuePhase(d_playerList, d_country, d_ge1));\r\n }\r\n }",
"@Test\n\tpublic void advanceAssemblyLineTest(){\n\t\tcmcSystem.logInUser(1);\n\t\tOrder order1 = makeOrder(new ModelC());\n\t\tOrder order2 = makeOrder(new ModelX());\n\t\tOrder order3 = makeOrder(new ModelC());\n\t\tschedule.placeOrder(order1);\n\t\tschedule.placeOrder(order2);\n\t\tschedule.placeOrder(order3);\n\t\tassertTrue(assemblyLine.getWorkstations()[0].isReady());\n\t\tassemblyLine.advance(order1);\n\t\tassertFalse(assemblyLine.isReadyToAdvance());\n\t\tassertFalse(assemblyLine.getWorkstations()[0].isReady());\n\t}",
"public void drawEventsForWeek(){\n WeekController.getController().drawEvents(PersonInfo.getPersonInfo().getEventsForWeek(weekNumber));\n }",
"public List<StreamlineEvent> process(StreamlineEvent event)\r\n throws ProcessingException {\r\n LOG.info(\"Event[\" + event + \"] about to be enriched\");\r\n\r\n StreamlineEventImpl.Builder builder = StreamlineEventImpl.builder();\r\n builder.putAll(event);\r\n\r\n /* Enrich */\r\n Map<String, Object> enrichValues = enrich(event);\r\n LOG.info(\"Enriching events[\" + event\r\n + \"] with the following enriched values: \" + enrichValues);\r\n builder.putAll(enrichValues);\r\n\r\n /* Build the enriched streamline event and return */\r\n List<Result> results = new ArrayList<Result>();\r\n StreamlineEvent enrichedEvent = builder.dataSourceId(\r\n event.getDataSourceId()).build();\r\n LOG.info(\"Enriched StreamLine Event is: \" + enrichedEvent);\r\n\r\n List<StreamlineEvent> newEvents = Collections\r\n .<StreamlineEvent> singletonList(enrichedEvent);\r\n\r\n return newEvents;\r\n }",
"public List<List<PvPEvent>> defineNextEvents(String day, int serverHour, List<\n PvPEvent> events) {\n String[] days = defineDaysLine(day);\n\n List<List<PvPEvent>> testDefinedEvents = new ArrayList<>();\n List<PvPEvent> innerEventsCurrent = new ArrayList<>();\n List<PvPEvent> innerEvents1h = new ArrayList<>();\n List<PvPEvent> innerEvents2h = new ArrayList<>();\n List<PvPEvent> innerEvents3h = new ArrayList<>();\n\n for (int i = 0; i < 10; i++) {\n innerEventsCurrent.add(new PvPEvent(Const.NO_EVENT_ID, getString(R.string.no_event_name)));\n innerEvents1h.add(new PvPEvent(Const.NO_EVENT_ID, getString(R.string.no_event_name)));\n innerEvents2h.add(new PvPEvent(Const.NO_EVENT_ID, getString(R.string.no_event_name)));\n innerEvents3h.add(new PvPEvent(Const.NO_EVENT_ID, getString(R.string.no_event_name)));\n }\n\n for (PvPEvent e : events) {\n String currentDay = days[0];\n for (int i = 0; i < e.getTime().size(); i++) {\n if (currentDay.equals(e.getTime().get(i).getDay())) {\n if (serverHour == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getBeginTime() < serverHour && e.getTime().get(i).getEndTime() > serverHour) &&\n e.getTime().get(i).getEndTime() < serverHour + 3) {\n if (innerEventsCurrent.size() == 10) {\n innerEventsCurrent.clear();\n }\n innerEventsCurrent.add(e);\n }\n if ((serverHour + 1) == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getBeginTime() < (serverHour + 1) && e.getTime().get(i).getEndTime() > (serverHour + 1) &&\n e.getTime().get(i).getEndTime() < serverHour + 4)) {\n if (innerEvents1h.size() == 10) {\n innerEvents1h.clear();\n }\n innerEvents1h.add(e);\n }\n if ((serverHour + 2) == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getBeginTime() < (serverHour + 2) && e.getTime().get(i).getEndTime() > (serverHour + 2) &&\n e.getTime().get(i).getEndTime() < serverHour + 5)) {\n if (innerEvents2h.size() == 10) {\n innerEvents2h.clear();\n }\n innerEvents2h.add(e);\n }\n if ((serverHour + 3) == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getBeginTime() < (serverHour + 3) && e.getTime().get(i).getEndTime() > (serverHour + 3) &&\n e.getTime().get(i).getEndTime() < serverHour + 6)) {\n if (innerEvents3h.size() == 10) {\n innerEvents3h.clear();\n }\n innerEvents3h.add(e);\n }\n }\n\n if (serverHour == 21) {\n currentDay = days[1];\n if (currentDay.equals(e.getTime().get(i).getDay())) {\n if (0 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents3h.size() == 10) {\n innerEvents3h.clear();\n }\n innerEvents3h.add(e);\n }\n }\n }\n if (serverHour == 22) {\n currentDay = days[1];\n if (currentDay.equals(e.getTime().get(i).getDay())) {\n if (0 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents3h.size() == 10) {\n innerEvents3h.clear();\n }\n innerEvents3h.add(e);\n }\n if (1 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents2h.size() == 10) {\n innerEvents2h.clear();\n }\n innerEvents2h.add(e);\n }\n }\n }\n if (serverHour == 23) {\n currentDay = days[1];\n if (currentDay.equals(e.getTime().get(i).getDay())) {\n if (0 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents3h.size() == 10) {\n innerEvents3h.clear();\n }\n innerEvents3h.add(e);\n }\n if (1 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents2h.size() == 10) {\n innerEvents2h.clear();\n }\n innerEvents2h.add(e);\n }\n if (2 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents1h.size() == 10) {\n innerEvents1h.clear();\n }\n innerEvents1h.add(e);\n }\n }\n }\n }\n }\n\n testDefinedEvents.add(0, innerEventsCurrent);\n testDefinedEvents.add(1, innerEvents1h);\n testDefinedEvents.add(2, innerEvents2h);\n testDefinedEvents.add(3, innerEvents3h);\n\n return testDefinedEvents;\n }",
"public void addEvPEC(Event ev);",
"public void incomingResourceReportRequest(APDUEvent e)\n {\n LOGGER.finer(\"Incoming resourceReportRequest\");\n }",
"protected abstract void createHistoryEvents();",
"private void createEvents() {\n\t\taddBtn.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbuildOutput();\n\t\t\t}\n\t\t});\n\t}",
"public int generateEvent(){\r\n\t\tif (Event()){\r\n\t\t\treturn random.nextInt(12);\r\n\t\t} else {\r\n\t\t\treturn 4;\r\n\t\t}\r\n\t}",
"public synchronized void serialEvent(SerialPortEvent oEvent) {\n\t\t\n if (oEvent.getEventType() == SerialPortEvent.DATA_AVAILABLE) {\n\t\t\ttry {\n while (input.ready ()){\n //System.out.println(\"Fuss \"+new1 +\" \"+old);\n\t\t\t\tString inputLine=input.readLine();\n //System.out.println(\"InputLine \"+inputLine);\n new1 = Integer.valueOf(inputLine);\n if(new1-old==1)\n {\n System.out.println(\"new1-old= \"+ (new1-old));\n \n int hour, min, day, month, year;\n java.util.Date date = new java.util.Date();\n Calendar cal= Calendar.getInstance();\n year = cal.get(Calendar.YEAR);\n month = cal.get(Calendar.MONTH); // 0 to 11\n day = cal.get(Calendar.DAY_OF_MONTH);\n hour = cal.get(Calendar.HOUR_OF_DAY);\n min = cal.get(Calendar.MINUTE);\n month = month + 1;\n code.append(\"\");\n if(day/10<1)\n {\n code.append(\"0\");\n code.append(day);\n }\n else\n code.append(day);\n if(month/10<1)\n {\n code.append(\"0\");\n code.append(month);\n }\n else\n code.append(month);\n code.append(year);\n code.delete(4,6);\n if(hour/10<1)\n {\n code.append(\"0\");\n code.append(hour);\n }\n else\n code.append(hour);\n if(min/10<1)\n {\n code.append(\"0\");\n code.append(min);\n }\n else\n code.append(min);\n \n String code1;\n code1= code.toString();\n //Lsignal.setText(code1);\n \n ImageIcon iconLogo = new ImageIcon(path);\n Lsignal.setText(\"\");\n Lsignal.setIcon(iconLogo);\n code.delete(0,11);\n System.out.println(code);\n Code128 barcode = new Code128(); //Barcode Type\n barcode.setData(code1); //Barcode String\n barcode.setX(2); //Barcode data text to encode\n //barcode.setBarcodeWidth(-50f);\n barcode.setLeftMargin(-15);\n barcode.setRightMargin(-5);\n barcode.setBarcodeHeight(50f);\n barcode.drawBarcode(path);\n \n printImg(path);\n }\n else if(new1-old==0)\n System.out.println(\"Nope!\");\n else if(new1-old==-1)\n System.out.println(\"Nope!\");\n old=new1;\n }\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t} finally {\n Lsignal.setIcon(null);\n Lsignal.setText(\"No Input\");\n }\n\t\t}\n\t\t// Ignore all the other eventTypes, but you should consider the other ones.\n\t}",
"void notifyTrace(RecorderTraceEvent event);",
"public void dailyOrders(){\n\t\tint i;\n\t\tint listSize = orderLog.size();\n\t\tRoll temp;\n\t\tString outputText;\n\t\toutputText = \"Daily Customer Orders: \";\n\t\tfor(i = lastOrderOfThePreviousDay; i < listSize; i++){\n\t\t\toutputText = outputText + \"\\n\" + orderLog.get(i).printSimplify();\n\t\t}\n\n\t\tSystem.out.println(outputText);\n\t\tthis.status = outputText;\n\t\tsetChanged();\n notifyObservers();\n\t}",
"public void generateSchedule(){\n\t\t\n\t}",
"public String toString(){\n return \"Eventtype: \" + eventType + \", event time: \" + eventTime + \", Tally time: \" + tallyTime + \", cash: \" + cash;\n }",
"private void createEvent() \n\t{\n\t\t// When the user clicks on the add button\n\t\tbtnAdd.addActionListener(new ActionListener() \n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\t//////////////////////////////////\n\t\t\t\t//////////////////////////////////\n\t\t\t\t//Adding Info To Reservation.txt//\n\t\t\t\t//////////////////////////////////\n\t\t\t\t//////////////////////////////////\n\t\t\t\t/**\n\t\t\t\t * First i surround the whole with with try.. catch block\n\t\t\t\t * First in the try block \n\t\t\t\t * i get the values of the check-in and check-out info\n\t\t\t\t * i save them in strings \n\t\t\t\t * then cast them in integers \n\t\t\t\t * and finally add it to Reservation.txt\n\t\t\t\t * then i close the file.\n\t\t\t\t */\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tObject HotelID = cbHotelsOptions.getSelectedItem();\n\t\t\t\t\tHotel hotel;\n\t\t\t\t\thotel = (Hotel) HotelID;\n\t\t\t\t\tlong id = hotel.getUniqueId();\n\t\t\t\t\t//\tSystem.out.println(id);\n\t\t\t\t\tString inmonth = txtInMonth.getText();\n\t\t\t\t\tint inMonth = Integer.valueOf(inmonth);\n\t\t\t\t\tString inday = txtInDay.getText();\n\t\t\t\t\tint inDay = Integer.parseInt(inday);\n\t\t\t\t\tString outmonth = txtOutMonth.getText();\n\t\t\t\t\tint outMonth = Integer.valueOf(outmonth);\n\t\t\t\t\tString outday = txtOutDay.getText();\n\t\t\t\t\tint OutDay = Integer.parseInt(outday);\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(\"Reservation.txt\", true);\n\t\t\t\t\tPrintWriter pw = new PrintWriter(fos);\n\n\t\t\t\t\t/**\n\t\t\t\t\t * i then check the canBook method and according to the canBook method \n\t\t\t\t\t * i check if they can book, and if yes i add the reservation\n\t\t\t\t\t * otherwise it prints so the user may enter different values\n\t\t\t\t\t */\n\t\t\t\t\t{\n\t\t\t\t\t\tif(h.canBook(new Reservation(id,inMonth, inDay, OutDay)) == true) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treservation.add(new Reservation (id,inMonth, inDay, outMonth, OutDay));\n\t\t\t\t\t\t\tr = new Reservation (id,inMonth, inDay, OutDay);\n\t\t\t\t\t\t\th.addResIfCanBook(new Reservation(id,inMonth, inDay, outMonth, OutDay));\n\t\t\t\t\t\t\treservationsModel.addElement(r);\n\t\t\t\t\t\t\tpw.println( id + \" - \" + inMonth + \"-\"+ inDay+ \" - \" + outMonth + \"-\" + OutDay);\n\t\t\t\t\t\t\tpw.close();\n\t\t\t\t\t\t\ttxtInMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtOutMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtInDay.setText(\"\");\n\t\t\t\t\t\t\ttxtOutDay.setText(\"\");\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\tJOptionPane.showMessageDialog(null, \"These dates are already reserved\"\n\t\t\t\t\t\t\t\t\t+ \"\\nPlease try again!\");\t\n\t\t\t\t\t\t\ttxtInMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtOutMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtInDay.setText(\"\");\n\t\t\t\t\t\t\ttxtOutDay.setText(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\t/**\n\t\t\t\t * Then the catch Block checks for file not found exception\n\t\t\t\t */\n\t\t\t\tcatch (FileNotFoundException fnfe) \n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"File not found.\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// When the user selects a specific hotel \n\t\tcbHotelsOptions.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\t/**\n\t\t\t\t * first i save selected hotel in a hotel object\n\t\t\t\t * then i get reservations for the selected hotel\n\t\t\t\t * then i make all the labels and text fields visible \n\t\t\t\t */\n\t\t\t\tHotel selectedHotel = (Hotel)cbHotelsOptions.getSelectedItem();\n\t\t\t\tJOptionPane.showMessageDialog(null, \"You selected the \" + selectedHotel.getHotelName());\n\t\t\t\tselectedHotel.getReservations();\n\t\t\t\tlblCheckIn.setVisible(true);\n\t\t\t\tlblInMonth.setVisible(true);\n\t\t\t\ttxtInMonth.setVisible(true);\n\t\t\t\tlblInDay.setVisible(true);\n\t\t\t\ttxtInDay.setVisible(true);\n\t\t\t\tlblCheckout.setVisible(true);\n\t\t\t\tlblOutMonth.setVisible(true);\n\t\t\t\ttxtOutMonth.setVisible(true);\n\t\t\t\tlblOutDay.setVisible(true);\n\t\t\t\ttxtOutDay.setVisible(true);\n\t\t\t\tbtnAdd.setVisible(true);\n\t\t\t\treservationsModel.removeAllElements();\n\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t//Reading Info From Reservation.txt//\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t/**\n\t\t\t\t * First i surround everything is a try.. catch blocks \n\t\t\t\t * then in the try block i declare the file input stream\n\t\t\t\t * then a scanner \n\t\t\t\t * then in a while loop i check if the file has next line \n\t\t\t\t * and a user a delimiter \"-\"\n\t\t\t\t * and it adds it to a new reservation\n\t\t\t\t * then it adds it to the ArrayList reservation\n\t\t\t\t * and it also adds it to the hotel object\n\t\t\t\t * then it checks if it can book that hotel\n\t\t\t\t * and if yes it adds it to the ReservationsModel\n\t\t\t\t */\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tFileInputStream fis = new FileInputStream(\"Reservation.txt\");\n\t\t\t\t\tScanner fscan = new Scanner (fis);\n\t\t\t\t\tint INMonth = 0;\n\t\t\t\t\tint INday = 0;\n\t\t\t\t\tint OUTmonth = 0;\n\t\t\t\t\tint OUTday = 0;\n\t\t\t\t\tlong iD = 0;\n\t\t\t\t\twhile (fscan.hasNextLine())\n\t\t\t\t\t{\n\t\t\t\t\t\tScanner ls = new Scanner (fscan.nextLine());\n\t\t\t\t\t\tls.useDelimiter(\"-\");\n\t\t\t\t\t\tiD = Integer.parseInt(ls.next().trim());\n\t\t\t\t\t\tINMonth = Integer.parseInt(ls.next().trim());\n\t\t\t\t\t\tINday = Integer.parseInt(ls.next().trim()); \n\t\t\t\t\t\tOUTmonth = Integer.parseInt(ls.next().trim());\n\t\t\t\t\t\tOUTday = Integer.parseInt(ls.next().trim()); \n\t\t\t\t\t\tr = new Reservation (iD,INMonth, INday, OUTmonth, OUTday);\n\t\t\t\t\t\th.addReservation(new Reservation(iD,INMonth, INday, OUTmonth, OUTday));\n\t\t\t\t\t\tHotel hotel = (Hotel) cbHotelsOptions.getSelectedItem();\n\t\t\t\t\t\tlong hotID = hotel.getUniqueId();\n\t\t\t\t\t\tif(iD == hotID)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treservationsModel.addElement((new Reservation(iD, INMonth, INday, OUTday)));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * The catch block checks to make sure that the file is found\n\t\t\t\t */\n\t\t\t\tcatch( FileNotFoundException fnfe)\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"File not found!\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * This is the setRenderer to make the hotel appear in the hotelsOptions \n\t\t * just the hotel name.\n\t\t */\n\t\tcbHotelsOptions.setRenderer(new DefaultListCellRenderer() {\n\t\t\t@Override\n\t\t\tpublic Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus)\n\t\t\t{\n\t\t\t\tComponent renderer = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n\t\t\t\tif (renderer instanceof JLabel && value instanceof Hotel)\n\t\t\t\t{\n\t\t\t\t\t// Here value will be of the Type 'Hotel'\n\t\t\t\t\t((JLabel) renderer).setText(((Hotel) value).getHotelName());\n\t\t\t\t}\n\t\t\t\treturn renderer;\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * The setCallRenderer is for the reservation's list\n\t\t * it only prints the check-in and check-out info\n\t\t */\n\t\tlstReservation.setCellRenderer(new DefaultListCellRenderer() {\n\t\t\t@Override\n\t\t\tpublic Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus)\n\t\t\t{\n\t\t\t\tComponent renderer = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n\t\t\t\tif (renderer instanceof JLabel && value instanceof Reservation)\n\t\t\t\t{\n\t\t\t\t\t// Here value will be of the Type 'Reservation'\n\t\t\t\t\tHotel selectedHotel = (Hotel) cbHotelsOptions.getSelectedItem();\n\t\t\t\t\t((JLabel) renderer).setText(((Reservation) value).getFormattedDisplayString());\n\t\t\t\t}\n\t\t\t\treturn renderer;\n\t\t\t}\n\t\t});\t\n\t}",
"public void serialEvent(SerialPortEvent e)\n {\n System.out.println(\"+++SERIAL EVENT TYPE ++++++++++++++++ : \"+e.getEventType());\n ezlink.info(\"serialEvent() received in \" + SerialConnection.class.getName());\n \t// Create a StringBuffer and int to receive input data.\n\tStringBuffer inputBuffer = new StringBuffer();\n\tint newData = 0;\n\n\t// Determine type of event.\n\tswitch (e.getEventType())\n\t{\n\n\t // Read data until -1 is returned. If \\r is received substitute\n\t // \\n for correct newline handling.\n\t case SerialPortEvent.DATA_AVAILABLE:\n\t byte[] readBuffer = new byte[500];\n\t\tint numBytes = 0;\n\t\tinputdata = null;\n\n\t\ttry {\n\t\t\t\tSystem.out.println(\"Data Received from com Port=\"+is.available());\n ezlink.info(\"Data Received from com Port= \" +is.available() );\n\n\t\t\t\twhile (is.available() > 0)\n\t\t\t\t{\n\t\t\t\t\tnumBytes = is.read(readBuffer);\n\t\t\t\t\tdataHandler.addISOPart(ISOUtil.hexString(readBuffer,0,numBytes));\n\n\t\t\t\t}\n\n\n\t\t\t\tString strResponse=null;\n\t\t\t\tif((strResponse = dataHandler.getNextISO(1)) !=null)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Response=\"+strResponse);\n ezlink.info(\"Response= : \" +strResponse );\n\t\t\t\t\tinputdata = strResponse;\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Full data not received from terminal\");\n ezlink.info(\"ull data not received from terminal!! \" );\n\t\t\t\t}\n\n\t\t\t\tdataRec =true;\n\n\t\t} catch (IOException exp) {\n System.out.println(\"serialEvent Exception(): \");\n exp.printStackTrace();\n System.out.println(\"serialEvent Exception(): \");\n ezlink.info(\"serialEvent Exception(): \");\n ezlink.error(new Object(), exp);\n }\n\n\t\tbreak;\n\n\t // If break event append BREAK RECEIVED message.\n\t case SerialPortEvent.BI:\n\t\tSystem.out.println(\"\\n--- BREAK RECEIVED ---\\n\");\n ezlink.info(\"\\n--- BREAK RECEIVED ---\\n \" );\n\t}\n\n }",
"public void testParseEvent() throws Exception {\n \n \tint NB_READS = 20;\n \n \t// On lower bound, returns the first event (ts = 0)\n \tTmfContext context = fTrace.seekEvent(new TmfTimestamp(0, SCALE, 0));\n \tTmfContext svContext = new TmfContext(context);\n \n \tTmfEvent event = fTrace.parseEvent(context);\n assertEquals(\"Event timestamp\", 1, event.getTimestamp().getValue());\n assertEquals(\"Event rank\", 0, context.getRank());\n assertTrue(\"parseEvent\", context.equals(svContext));\n \n event = fTrace.parseEvent(context);\n assertEquals(\"Event timestamp\", 1, event.getTimestamp().getValue());\n assertEquals(\"Event rank\", 0, context.getRank());\n assertTrue(\"parseEvent\", context.equals(svContext));\n \n event = fTrace.parseEvent(context);\n assertEquals(\"Event timestamp\", 1, event.getTimestamp().getValue());\n assertEquals(\"Event rank\", 0, context.getRank());\n assertTrue(\"parseEvent\", context.equals(svContext));\n \n // Position the trace at event NB_READS\n for (int i = 1; i < NB_READS; i++) {\n event = fTrace.getNextEvent(context);\n assertEquals(\"Event timestamp\", i, event.getTimestamp().getValue());\n }\n \n \tsvContext = new TmfContext(context);\n event = fTrace.parseEvent(context);\n assertEquals(\"Event timestamp\", NB_READS, event.getTimestamp().getValue());\n assertEquals(\"Event rank\", NB_READS -1 , context.getRank());\n assertTrue(\"parseEvent\", context.equals(svContext));\n \n event = fTrace.parseEvent(context);\n assertEquals(\"Event timestamp\", NB_READS, event.getTimestamp().getValue());\n assertEquals(\"Event rank\", NB_READS - 1, context.getRank());\n assertTrue(\"parseEvent\", context.equals(svContext));\n }",
"private void doEvents() {\n\t\tapplyEvents(generateEvents());\t\t\n\t}",
"BasicEvents createBasicEvents();",
"public String toString() {\n String eventString = \"\";\n DateTimeFormatter ft = DateTimeFormatter.ofPattern(\"ddMMyyyy\");\n String date = this.getDue().format(ft);\n eventString += (\"e,\" + this.getName() + \",\" + this.getDetails() + \",\" +\n date + \";\");\n return eventString;\n }",
"public void loanStatamentStamp(List receiptDetails,Component c) {\n \np.resetAll();\n\np.initialize();\n\np.feedBack((byte)2);\n\np.color(0);\np.chooseFont(1);\np.alignCenter();\n//p.emphasized(true);\n//p.underLine(2);\np.setText(receiptDetails.get(1).toString());\np.newLine();\np.setText(receiptDetails.get(2).toString());\np.newLine();\np.setText(receiptDetails.get(3).toString());\np.newLine();\np.newLine();\n//p.addLineSeperatorX();\np.underLine(0);\np.emphasized(false);\np.underLine(0);\np.alignCenter();\np.setText(\" *** Savings Withdrawal ***\");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Account Number: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(9).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Id: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(0).toString()+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\np.setText(\"Customer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\np.newLine(); \n//p.emphasized(false);\n//p.setText(\"Loan+Interest: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(6).toString()+\"/=\"+p.underLine(0));\n//p.newLine();\n//p.setText(\"Date Taken: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(7).toString()+p.underLine(0));\n//p.newLine();\n//p.setText(\"Loan Status: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(14).toString()+p.underLine(0));\n//p.newLine();\np.setText(\"Withdrawal Date: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(10).toString()+p.underLine(0));\np.newLine();\np.setText(\"Withdrawal Time: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(11).toString()+p.underLine(0));\np.newLine();\n\np.underLine(0);\np.emphasized(false);\n//p.underLine(0);\np.addLineSeperator();\np.newLine();\np.alignCenter();\np.setText(\"***** Withdrawal Details ***** \");\np.newLine();\np.addLineSeperator();\np.newLine();\n\np.alignLeft();\np.setText(\"Withdrawal Made: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(7).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.setText(\"Savings Balance: \" +p.underLine(0)+p.underLine(2)+\"UGX \"+receiptDetails.get(8).toString()+\"/=\"+p.underLine(0));\np.newLine(); \np.alignLeft();\np.emphasized(true);\n//p.setText(\"Customer Name: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(4).toString()+p.underLine(0));\n//p.newLine(); \n//p.emphasized(false);\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer: \" +p.underLine(0)+p.underLine(2)+receiptDetails.get(5).toString()+p.underLine(0));\np.newLine();\np.addLineSeperatorX();\n\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.underLine(2) ;\np.setText(\"Officer Signiture:\");\np.addLineSeperatorX();\n//p.newLine();\np.addLineSeperator();\np.doubleStrik(true);\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.newLine();\np.underLine(2) ;\np.setText(\"Customer Signiture:\");\n//p.addLineSeperatorX();\n//p.newLine();\n//p.setText(\"OFFICE NUMBER: \"+receiptDetails.get(17).toString());\np.addLineSeperatorX();\n//p.newLine();\np.feed((byte)3);\np.finit();\n\nprint.feedPrinter(dbq.printDrivers(c),p.finalCommandSet().getBytes());\n \n\n }",
"public void printEvent(ICompletionEvent event) throws FileNotFoundException {\n\n\t\ttry(FileWriter fw = new FileWriter(directory+File.separator+\"Event_RunOf_\"+timeOfRun+\".txt\", true);\n\t\t\t BufferedWriter bw = new BufferedWriter(fw);\n\t\t\t PrintWriter out = new PrintWriter(bw)){\n\t\t\t\n\t\t\tout.println(event.toString());\n\t\t\tout.println(\"===================================================================\\r\\n\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not write to Event file. Exception was:\"+e.getStackTrace()); \n\t\t}\n\t}",
"public void annualProcess() {\n super.withdraw(annualFee);\n }",
"public interface Events {\n\n /**\n * Archive has stored the entities within a SIP.\n * <p>\n * Indicates that a SIP has been sent to the archive. May represent an add,\n * or an update.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Number of entities archived</dd>\n * <dt>eventTarget</dt>\n * <dd>every archived entity</dd>\n * </dl>\n * </p>\n */\n public static final String ARCHIVE = \"archive\";\n\n /**\n * Signifies that an entity has been identified as a member of a specific\n * batch load process.\n * <p>\n * There may be an arbitrary number of independent events signifying the\n * same batch (same outcome, date, but different sets of targets). A unique\n * combination of date and outcome (batch label) identify a batch.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Batch label/identifier</dd>\n * <dt>eventTarget</dt>\n * <dd>Entities in a batch</dd>\n * </dl>\n * </p>\n */\n public static final String BATCH = \"batch\";\n\n /**\n * File format characterization.\n * <p>\n * Indicates that a format has been verifiably characterized. Format\n * characterizations not accompanied by a corresponding characterization\n * event can be considered to be unverified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>format, in the form \"scheme formatId\" (whitespace separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of characterized file</dd>\n * </dl>\n * </p>\n */\n public static final String CHARACTERIZATION_FORMAT =\n \"characterization.format\";\n\n /**\n * Advanced file characterization and/or metadata extraction.\n * <p>\n * Indicates that some sort of characterization or extraction has produced a\n * document containing file metadata.\n * </p>\n * *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>id of File containing metadata</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File the metadata describes</dd>\n * </dl>\n */\n public static final String CHARACTERIZATION_METADATA =\n \"characterization.metadata\";\n\n /**\n * Initial deposit/transfer of an item into the DCS, preceding ingest.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>SIP identifier uid</dd>\n * <dt>eventTarget</dt>\n * <dd>id of deposited entity</dd>\n * </dl>\n * </p>\n */\n public static final String DEPOSIT = \"deposit\";\n\n /**\n * Content retrieved by dcs.\n * <p>\n * Represents the fact that content has been downloaded/retrieved by the\n * dcs.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstances\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been downloaded</dd>\n * </dl>\n */\n public static final String FILE_DOWNLOAD = \"file.download\";\n\n /**\n * uploaaded/downloaded file content resolution.\n * <p>\n * Indicates that the reference URI to a unit of uploaded or downloaded file\n * content has been resolved and replaced with the DCS file access URI.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>reference_URI</code> 'to' <code>dcs_URI</code></dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been resolved</dd>\n * </dl>\n */\n public static final String FILE_RESOLUTION_STAGED = \"file.resolution\";\n\n /**\n * Indicates the uploading of file content.\n * <p>\n * Represents the physical receipt of bytes from a client.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstanced\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been uploaded</dd>\n * </dl>\n */\n public static final String FILE_UPLOAD = \"file.upload\";\n\n /**\n * Fixity computation/validation for a particular File.\n * <p>\n * Indicates that a particular digest has been computed for given file\n * content. Digest values not accompanied by a corresponding event may be\n * considered to be un-verified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>computed digest value of the form \"alorithm value\" (whitepsace\n * separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of digested file</dd>\n * </dl>\n * </p>\n */\n public static final String FIXITY_DIGEST = \"fixity.digest\";\n\n /**\n * Assignment of an identifier to the given entity, replacing an\n * existing/temporary id. *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>old_identifier</code> 'to' <code>new_identifier</code></dd>\n * <dt>eventTarget</dt>\n * <dd>new id of object</dd>\n * </dl>\n */\n public static final String ID_ASSIGNMENT = \"identifier.assignment\";\n\n /**\n * Marks the start of an ingest process.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_START = \"ingest.start\";\n\n /**\n * Signifies a successful ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_SUCCESS = \"ingest.complete\";\n\n /**\n * Signifies a failed ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_FAIL = \"ingest.fail\";\n\n /**\n * Signifies that a feature extraction or transform has successfully\n * occurred.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM = \"transform\";\n\n /**\n * Signifies that a feature extraction or transform failed.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM_FAIL = \"transform.fail\";\n\n /**\n * Signifies a file has been scanned by the virus scanner.\n * <p>\n * Indicates that a file has been scanned by a virus scanner. There could be\n * more than one event for a file.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of file whose content was scanned</dd>\n * </dl>\n * </p>\n */\n public static final String VIRUS_SCAN = \"virus.scan\";\n\n /**\n * Signifies an new deliverable unit is being ingested as an update to the target deliverable unit.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of the deliverable unit being updated</dd>\n * </dl>\n * </p>\n */\n public static final String DU_UPDATE = \"du.update\";\n\n}",
"public void startNewEvent() {\n // JCudaDriver.cuEventRecord(cUevent,stream);\n }",
"public void showNextEvents() {\n String textToShowCurrent = \"\";\n String textToShow0h = \"\";\n String textToShow1h = \"\";\n String textToShow2h = \"\";\n for (int i = 0; i < mNeededEvents.get(0).size(); i++) {\n textToShowCurrent += mNeededEvents.get(0).get(i).getEventName() + \", \";\n if (i == mNeededEvents.get(0).size() - 1) {\n textToShowCurrent = textToShowCurrent.substring(0, textToShowCurrent.toCharArray().length - 2) + \".\";\n }\n }\n for (int i = 0; i < mNeededEvents.get(1).size(); i++) {\n textToShow0h += mNeededEvents.get(1).get(i).getEventName() + \", \";\n if (i == mNeededEvents.get(1).size() - 1) {\n textToShow0h = textToShow0h.substring(0, textToShow0h.toCharArray().length - 2) + \".\";\n }\n }\n for (int i = 0; i < mNeededEvents.get(2).size(); i++) {\n textToShow1h += mNeededEvents.get(2).get(i).getEventName() + \", \";\n if (i == mNeededEvents.get(2).size() - 1) {\n textToShow1h = textToShow1h.substring(0, textToShow1h.toCharArray().length - 2) + \".\";\n }\n }\n for (int i = 0; i < mNeededEvents.get(3).size(); i++) {\n textToShow2h += mNeededEvents.get(3).get(i).getEventName() + \", \";\n if (i == mNeededEvents.get(3).size() - 1) {\n textToShow2h = textToShow2h.substring(0, textToShow2h.toCharArray().length - 2) + \".\";\n }\n\n }\n mEventCurrent.setText(textToShowCurrent);\n mEvent0h.setText(textToShow0h);\n mEvent1h.setText(textToShow1h);\n mEvent2h.setText(textToShow2h);\n }",
"@Override\n\tpublic void doHandleEvent(CsvEvent event) {\n\t\t\n\t}",
"private static List<Event> parseCustomerEventInfo(final String filename){\n List<Event> customerEvents = new ArrayList<>();\n if (filename != null && filename.trim().length() > 0) {\n File inputFile = new File(filename);\n\n try (BufferedReader br = new BufferedReader(new FileReader(inputFile))) {\n String line;\n while ((line = br.readLine()) != null) {\n if(line .startsWith(\"C\") || line.startsWith(\"c\"))\n {\n // 1. SPLIT THE LINE DATA BASED ON WHITE SPACE\n String [] custData = line.split(\" \");\n\n // 2. CONVERT THE TIME STRING TO LOCAL TIME\n String [] timeInfo = custData[1].split(\":\");\n LocalTime arrivalTime = LocalTime.of(Integer.parseInt(timeInfo[0]), Integer.parseInt(timeInfo[1]));\n\n // 3. CREATE A CUSTOMER EVENT BASED ON THE LINE PROVIDED\n customerEvents.add(new Event(custData[0], arrivalTime, Integer.parseInt(custData[2])));\n }\n }\n }\n catch(IOException | NumberFormatException e) {\n exitOnError(ERROR_MSG);\n }\n } else {\n exitOnError(PROVIDE_FILE);\n }\n\n return customerEvents;\n }",
"public static void main(String[] args) throws Exception {\n \r\n long beginTime = System.nanoTime();\r\n for (int i = 0; i < 50000000; i++) {\r\n// System.out.println(getFlowNo());\r\n getFlowNo();\r\n \r\n }\r\n long endTime = System.nanoTime();\r\n System.out.println(\"onLineWithTransaction cost:\"+((endTime-beginTime)/1000000000) + \"s \" + ((endTime-beginTime)%1000000000) + \"us\");\r\n// \r\n// System.out.println(System.currentTimeMillis());\r\n// TimeUnit.SECONDS.sleep(3);\r\n// System.out.println(System.currentTimeMillis());\r\n }",
"public void addListeners()\n {\n super.addListeners();\n BookingLine recBookingLine = (BookingLine)this.getRecord(BookingLine.BOOKING_LINE_FILE);\n Booking recBooking = (Booking)this.getRecord(Booking.BOOKING_FILE);\n recBooking.addArDetail(null, recBookingLine, false);\n \n recBookingLine.getField(BookingLine.PRICE).addListener(new CopyDataHandler(recBookingLine.getField(BookingLine.PRICING_STATUS_ID), new Integer(PricingStatus.MANUAL), null));\n recBookingLine.addListener(new BookingLineStatusHandler(null));\n }",
"private List<Event> generateEvents() {\n\t\tList<Event> events = new ArrayList<Event>();\n\t\tint numEvents = random.nextInt(2) + 1;\n\t\tfor (int i = 0; i < numEvents; i++) {\n\t\t\tEvent newEvent = null;\n\t\t\tdo {\n\t\t\t\tnewEvent = new Event(db);\n\t\t\t} while (events.contains(newEvent)); // make sure only one instance of an event occurs per turn\n\t\t\tevents.add(newEvent);\t\t\t\n\t\t}\n\t\treturn events;\n\t}",
"public static void main(String[] args) {\n\n CalendarEvent b = new CalendarEvent(\"assignment2\",29,11,2014,\"14:00\",\"20:00\",\"Test1\");\n\n CalendarEvent c = new CalendarEvent(\"assignment3\",27,2,2010,\"2:00\",\"20:00\",\"Test2\");\n\n CalendarEvent d = new CalendarEvent(\"assignment4\",12,7,2013,\"14:00\",\"20:00\",\"Test3\");\n\n CalendarEvent e = new CalendarEvent(\"assignment5\",29,11,2014,\"12:00\",\"20:00\",\"Test4\");\n\n\n CalendarEvent l = new CalendarEvent(\"assignment1a\",30,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent f = new CalendarEvent(\"assignment1\",31,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent g = new CalendarEvent(\"assignment1\",21,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent h = new CalendarEvent(\"assignment1\",21,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent i = new CalendarEvent(\"assignment1\",29,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent j = new CalendarEvent(\"assignment1\",18,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent k = new CalendarEvent(\"assignment1\",1,9,2014,\"14:00\",\"20:00\",\"Test\");\n\n \n \n \n ArrayList<CalendarEvent> listOfEvents = new ArrayList<CalendarEvent>();\n // listOfEvents.add(a);\n listOfEvents.add(b);\n listOfEvents.add(c);\n listOfEvents.add(d);\n listOfEvents.add(e);\n\n Display myDisObject = new Display();\n //myDisObject.displayAssignments(listOfEvents);\n\n \n \n listOfEvents.add(f);\n listOfEvents.add(g);\n listOfEvents.add(h);\n listOfEvents.add(i);\n listOfEvents.add(j);\n listOfEvents.add(k);\n listOfEvents.add(l);\n \n //myDisObject.displayAssignments(listOfEvents);\n myDisObject.displayMonth(10, listOfEvents);\n }",
"public String addCourseEvent(Events events);",
"@Override\n\t\t\tpublic void onNext(AutoNewTicketRequest value) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"On Next is what!!\");\n\t\t\t\tList<TicketData> ticktDataList = new ArrayList<TicketData>();\n\t\t\t\tSystem.out.println(\"Total Ticket is : \"+ ticktDataList.size());\n\t\t\t\tfor(Ticket t : SimpleTicketStore.getTickets()) {\n\t\t\t\t\tticktDataList.add(Ticket2TicketData(t));\n\t\t\t\t}\n\t\t\t\tIterable<TicketData> ticktDataIterable=ticktDataList;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tint i=0;\n\t\t\t\tfor(StreamObserver<GetAllTicketResponse> observer: connected_clients) {\n\t\t\t\t\tSystem.out.println(\"Writing down to clietns\");\n\t\t\t\t\tobserver.onNext(GetAllTicketResponse.newBuilder().addAllTicketData(ticktDataIterable).build());\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(i);\n\t\t\t}"
]
| [
"0.6238797",
"0.57323724",
"0.5667798",
"0.5633643",
"0.55159765",
"0.5510531",
"0.55047774",
"0.5340418",
"0.52951086",
"0.52852196",
"0.5251863",
"0.5219833",
"0.52052355",
"0.5197484",
"0.51647085",
"0.51521677",
"0.51503086",
"0.51355493",
"0.51044595",
"0.5094464",
"0.50801945",
"0.5068531",
"0.5056607",
"0.50468755",
"0.5046073",
"0.50119066",
"0.4997049",
"0.4989877",
"0.49812466",
"0.49630973",
"0.49456772",
"0.49363652",
"0.4934804",
"0.49242714",
"0.49217245",
"0.48938584",
"0.48928508",
"0.488014",
"0.48734963",
"0.4870758",
"0.48691788",
"0.48616707",
"0.4839448",
"0.48393098",
"0.4836221",
"0.4829181",
"0.48277843",
"0.48266032",
"0.48148778",
"0.4811407",
"0.48023215",
"0.47915667",
"0.47841787",
"0.47775063",
"0.4768691",
"0.4768121",
"0.4766814",
"0.4762369",
"0.4761562",
"0.47546142",
"0.4746944",
"0.4742134",
"0.47364676",
"0.473024",
"0.4714592",
"0.471382",
"0.47022063",
"0.4701065",
"0.46970972",
"0.469441",
"0.46937582",
"0.4691307",
"0.46896052",
"0.46877277",
"0.468505",
"0.46741432",
"0.46709222",
"0.46593726",
"0.46468142",
"0.46415734",
"0.4637609",
"0.4634945",
"0.4634583",
"0.46293983",
"0.46292725",
"0.46261173",
"0.46237722",
"0.46221676",
"0.46219048",
"0.46214712",
"0.46163943",
"0.46145612",
"0.46123075",
"0.46106175",
"0.46031892",
"0.45998988",
"0.45930684",
"0.45912787",
"0.45907444",
"0.45905155"
]
| 0.65614873 | 0 |
Generates a List of events for advance accounting lines. UpdateAccountingLine events will never be generated only ReviewAccountingLine, AddAccountingLine, and DeleteAccountingLine events; this way, we never check accessibility for advance accounting lines which is something that isn't really needed | protected List generateEventsForAdvanceAccountingLines(List<TemSourceAccountingLine> persistedAdvanceAccountingLines, List<TemSourceAccountingLine> currentAdvanceAccountingLines) {
List events = new ArrayList();
Map persistedLineMap = buildAccountingLineMap(persistedAdvanceAccountingLines);
final String errorPathPrefix = KFSConstants.DOCUMENT_PROPERTY_NAME + "." + TemPropertyConstants.ADVANCE_ACCOUNTING_LINES;
final String groupErrorPathPrefix = errorPathPrefix + KFSConstants.ACCOUNTING_LINE_GROUP_SUFFIX;
// (iterate through current lines to detect additions and updates, removing affected lines from persistedLineMap as we go
// so deletions can be detected by looking at whatever remains in persistedLineMap)
int index = 0;
for (TemSourceAccountingLine currentLine : currentAdvanceAccountingLines) {
String indexedErrorPathPrefix = errorPathPrefix + "[" + index + "]";
Integer key = currentLine.getSequenceNumber();
AccountingLine persistedLine = (AccountingLine) persistedLineMap.get(key);
if (persistedLine != null) {
ReviewAccountingLineEvent reviewEvent = new ReviewAccountingLineEvent(indexedErrorPathPrefix, this, currentLine);
events.add(reviewEvent);
persistedLineMap.remove(key);
}
else {
// it must be a new addition
AddAccountingLineEvent addEvent = new AddAccountingLineEvent(indexedErrorPathPrefix, this, currentLine);
events.add(addEvent);
}
}
// detect deletions
List<TemSourceAccountingLine> remainingPersistedLines = new ArrayList<TemSourceAccountingLine>();
remainingPersistedLines.addAll(persistedLineMap.values());
for (TemSourceAccountingLine persistedLine : remainingPersistedLines) {
DeleteAccountingLineEvent deleteEvent = new DeleteAccountingLineEvent(groupErrorPathPrefix, this, persistedLine, true);
events.add(deleteEvent);
}
return events;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public List generateSaveEvents() {\n List events = super.generateSaveEvents();\n\n if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().isAtLeastPartiallyFilledIn() && !(getDocumentHeader().getWorkflowDocument().isInitiated() || getDocumentHeader().getWorkflowDocument().isSaved())) {\n // only check advance accounting lines if the travel advance is filled in\n final List<TemSourceAccountingLine> persistedAdvanceAccountingLines = getPersistedAdvanceAccountingLinesForComparison();\n final List<TemSourceAccountingLine> currentAdvanceAccountingLines = getAdvanceAccountingLinesForComparison();\n\n final List advanceEvents = generateEventsForAdvanceAccountingLines(persistedAdvanceAccountingLines, currentAdvanceAccountingLines);\n events.addAll(advanceEvents);\n }\n\n return events;\n }",
"public void setAdvanceAccountingLines(List<TemSourceAccountingLine> advanceAccountingLines) {\n this.advanceAccountingLines = advanceAccountingLines;\n }",
"protected List getPersistedAdvanceAccountingLinesForComparison() {\n return SpringContext.getBean(AccountingLineService.class).getByDocumentHeaderIdAndLineType(getAdvanceAccountingLineClass(), getDocumentNumber(), TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n }",
"public void addAdvanceAccountingLine(TemSourceAccountingLine line) {\n line.setSequenceNumber(this.getNextAdvanceLineNumber());\n this.advanceAccountingLines.add(line);\n this.nextAdvanceLineNumber = new Integer(getNextAdvanceLineNumber().intValue() + 1);\n }",
"public TemSourceAccountingLine getAdvanceAccountingLine(int index) {\n while (getAdvanceAccountingLines().size() <= index) {\n getAdvanceAccountingLines().add(createNewAdvanceAccountingLine());\n }\n return getAdvanceAccountingLines().get(index);\n }",
"protected TemSourceAccountingLine initiateAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setDocumentNumber(getDocumentNumber());\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setSequenceNumber(new Integer(1));\n accountingLine.setCardType(TemConstants.ADVANCE);\n if (this.allParametersForAdvanceAccountingLinesSet()) {\n accountingLine.setChartOfAccountsCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART));\n accountingLine.setAccountNumber(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT));\n accountingLine.setFinancialObjectCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE));\n }\n return accountingLine;\n }\n catch (InstantiationException ie) {\n LOG.error(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName(), ie);\n }\n catch (IllegalAccessException iae) {\n LOG.error(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName(), iae);\n }\n }",
"protected void initiateAdvancePaymentAndLines() {\n setDefaultBankCode();\n setTravelAdvance(new TravelAdvance());\n getTravelAdvance().setDocumentNumber(getDocumentNumber());\n setAdvanceTravelPayment(new TravelPayment());\n getAdvanceTravelPayment().setDocumentNumber(getDocumentNumber());\n getAdvanceTravelPayment().setDocumentationLocationCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TravelParameters.DOCUMENTATION_LOCATION_CODE,\n getParameterService().getParameterValueAsString(TemParameterConstants.TEM_DOCUMENT.class,TravelParameters.DOCUMENTATION_LOCATION_CODE)));\n getAdvanceTravelPayment().setCheckStubText(getConfigurationService().getPropertyValueAsString(TemKeyConstants.MESSAGE_TA_ADVANCE_PAYMENT_HOLD_TEXT));\n final java.sql.Date currentDate = getDateTimeService().getCurrentSqlDate();\n getAdvanceTravelPayment().setDueDate(currentDate);\n updatePayeeTypeForAuthorization(); // if the traveler is already initialized, set up payee type on advance travel payment\n setWireTransfer(new PaymentSourceWireTransfer());\n getWireTransfer().setDocumentNumber(getDocumentNumber());\n setAdvanceAccountingLines(new ArrayList<TemSourceAccountingLine>());\n resetNextAdvanceLineNumber();\n TemSourceAccountingLine accountingLine = initiateAdvanceAccountingLine();\n addAdvanceAccountingLine(accountingLine);\n }",
"public TemSourceAccountingLine createNewAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setCardType(TemConstants.ADVANCE); // really, card type is ignored but it is validated so we have to set something\n accountingLine.setFinancialObjectCode(this.getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE, KFSConstants.EMPTY_STRING));\n return accountingLine;\n }\n catch (IllegalAccessException iae) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", iae);\n }\n catch (InstantiationException ie) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", ie);\n }\n }",
"public interface LaborLedgerExpenseTransferAccountingLine extends AccountingLine, ExternalizableBusinessObject {\n\n /**\n * Gets the emplid\n * \n * @return Returns the emplid.\n */\n public String getEmplid();\n\n /**\n * Gets the laborObject\n * \n * @return Returns the laborObject.\n */\n public LaborLedgerObject getLaborLedgerObject();\n\n /**\n * Gets the payrollEndDateFiscalPeriodCode\n * \n * @return Returns the payrollEndDateFiscalPeriodCode.\n */\n public String getPayrollEndDateFiscalPeriodCode();\n\n /**\n * Gets the payrollEndDateFiscalYear\n * \n * @return Returns the payrollEndDateFiscalYear.\n */\n public Integer getPayrollEndDateFiscalYear();\n\n /**\n * Gets the payrollTotalHours\n * \n * @return Returns the payrollTotalHours.\n */\n public BigDecimal getPayrollTotalHours();\n\n /**\n * Gets the positionNumber\n * \n * @return Returns the positionNumber.\n */\n public String getPositionNumber();\n\n /**\n * Sets the emplid\n * \n * @param emplid The emplid to set.\n */\n public void setEmplid(String emplid);\n\n /**\n * Sets the laborLedgerObject\n * \n * @param laborLedgerObject The laborLedgerObject to set.\n */\n public void setLaborLedgerObject(LaborLedgerObject laborLedgerObject);\n\n /**\n * Sets the payrollEndDateFiscalPeriodCode\n * \n * @param payrollEndDateFiscalPeriodCode The payrollEndDateFiscalPeriodCode to set.\n */\n public void setPayrollEndDateFiscalPeriodCode(String payrollEndDateFiscalPeriodCode);\n\n /**\n * Sets the payrollEndDateFiscalYear\n * \n * @param payrollEndDateFiscalYear The payrollEndDateFiscalYear to set.\n */\n public void setPayrollEndDateFiscalYear(Integer payrollEndDateFiscalYear);\n\n /**\n * Sets the payrollTotalHours\n * \n * @param payrollTotalHours The payrollTotalHours to set.\n */\n public void setPayrollTotalHours(BigDecimal payrollTotalHours);\n\n /**\n * Sets the positionNumber\n * \n * @param positionNumber The positionNumber to set.\n */\n public void setPositionNumber(String positionNumber);\n}",
"public void transferLineasInvestigacion(TransferEvent event) {\r\n try {\r\n for (Object item : event.getItems()) {\r\n int v = item.toString().indexOf(\":\");\r\n Long id = Long.parseLong(item.toString().substring(0, v));\r\n LineaInvestigacion li = lineaInvestigacionService.buscarPorId(new LineaInvestigacion(id));\r\n LineaInvestigacionProyecto lp = new LineaInvestigacionProyecto();\r\n if (li != null) {\r\n lp.setLineaInvestigacionId(li);\r\n }\r\n if (event.isRemove()) {\r\n sessionProyecto.getLineasInvestigacionSeleccionadasTransfer().remove(lp);\r\n sessionProyecto.getLineasInvestigacionRemovidosTransfer().add(lp);\r\n int pos = 0;\r\n for (LineaInvestigacionProyecto lip : sessionProyecto.getLineasInvestigacionProyecto()) {\r\n if (!lip.getLineaInvestigacionId().equals(lp.getLineaInvestigacionId())) {\r\n pos++;\r\n } else {\r\n break;\r\n }\r\n }\r\n sessionProyecto.getLineasInvestigacionSeleccionadas().remove(pos);\r\n } else {\r\n if (event.isAdd()) {\r\n if (contieneLineaInvestigacion(sessionProyecto.getLineasInvestigacionProyecto(), lp)) {\r\n sessionProyecto.getLineasInvestigacionRemovidosTransfer().add(lp);\r\n }\r\n sessionProyecto.getLineasInvestigacionSeleccionadas().add(li);\r\n sessionProyecto.getLineasInvestigacionSeleccionadasTransfer().add(lp);\r\n }\r\n }\r\n }\r\n } catch (NumberFormatException e) {\r\n System.out.println(e);\r\n }\r\n }",
"@Override\n public List getSourceAccountingLines() {\n return super.getSourceAccountingLines();\n }",
"public List<TemSourceAccountingLine> getEncumbranceSourceAccountingLines() {\n List<TemSourceAccountingLine> encumbranceLines = new ArrayList<TemSourceAccountingLine>();\n for (TemSourceAccountingLine line : (List<TemSourceAccountingLine>) getSourceAccountingLines()){\n if (TemConstants.ENCUMBRANCE.equals(line.getCardType())){\n encumbranceLines.add(line);\n }\n }\n return encumbranceLines;\n }",
"public List<MaintenanceInvoiceCreditVO> getMaintenanceCreditAPLines(MaintenanceRequest mrq){\n\t\ttry{\n\t\t\treturn maintenanceInvoiceDAO.getMaintenanceCreditAPLines(mrq);\n\t\t}catch(Exception ex){\n\t\t\tthrow new MalException(\"generic.error.occured.while\", \n\t\t\t\t\tnew String[] { \"retrieving creditAP lines for po: \" + mrq.getJobNo()}, ex);\n\t\t}\n\t}",
"public void addListeners()\n {\n super.addListeners();\n BookingLine recBookingLine = (BookingLine)this.getRecord(BookingLine.BOOKING_LINE_FILE);\n Booking recBooking = (Booking)this.getRecord(Booking.BOOKING_FILE);\n recBooking.addArDetail(null, recBookingLine, false);\n \n recBookingLine.getField(BookingLine.PRICE).addListener(new CopyDataHandler(recBookingLine.getField(BookingLine.PRICING_STATUS_ID), new Integer(PricingStatus.MANUAL), null));\n recBookingLine.addListener(new BookingLineStatusHandler(null));\n }",
"public List<StreamlineEvent> process(StreamlineEvent event)\r\n throws ProcessingException {\r\n LOG.info(\"Event[\" + event + \"] about to be enriched\");\r\n\r\n StreamlineEventImpl.Builder builder = StreamlineEventImpl.builder();\r\n builder.putAll(event);\r\n\r\n /* Enrich */\r\n Map<String, Object> enrichValues = enrich(event);\r\n LOG.info(\"Enriching events[\" + event\r\n + \"] with the following enriched values: \" + enrichValues);\r\n builder.putAll(enrichValues);\r\n\r\n /* Build the enriched streamline event and return */\r\n List<Result> results = new ArrayList<Result>();\r\n StreamlineEvent enrichedEvent = builder.dataSourceId(\r\n event.getDataSourceId()).build();\r\n LOG.info(\"Enriched StreamLine Event is: \" + enrichedEvent);\r\n\r\n List<StreamlineEvent> newEvents = Collections\r\n .<StreamlineEvent> singletonList(enrichedEvent);\r\n\r\n return newEvents;\r\n }",
"org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine addNewExternalOrderLine();",
"public static AccountsFromLineOfCredit testGetAccountsForLineOfCredit() throws MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testGetAccountsForLineOfCredit\");\n\t\t// Test Get Accounts for a line of credit\n\n\t\tString lineOfCreditId = DemoUtil.demoLineOfCreditId;\n\t\tif (lineOfCreditId == null) {\n\t\t\tSystem.out.println(\"WARNING: No Demo Line of credit defined\");\n\t\t\treturn null;\n\t\t}\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\n\t\tSystem.out.println(\"\\nGetting all accounts for LoC with ID= \" + lineOfCreditId);\n\t\tAccountsFromLineOfCredit accountsForLoC = linesOfCreditService.getAccountsForLineOfCredit(lineOfCreditId);\n\t\t// Log returned results\n\t\tList<LoanAccount> loanAccounts = accountsForLoC.getLoanAccounts();\n\t\tList<SavingsAccount> savingsAccounts = accountsForLoC.getSavingsAccounts();\n\t\tSystem.out.println(\"Total Loan Accounts=\" + loanAccounts.size() + \"\\tTotal Savings Accounts=\"\n\t\t\t\t+ savingsAccounts.size() + \" for LoC=\" + lineOfCreditId);\n\n\t\treturn accountsForLoC;\n\t}",
"protected void enhanceEventAttendanceList(\n SmartList<EventAttendance> eventAttendanceList, Map<String, Object> options) {\n }",
"public List<ApprovalEventResponse> getApprovalEvents(KlayTransactionReceipt.TransactionReceipt transactionReceipt) {\n List<SmartContract.EventValuesWithLog> valueList = extractEventParametersWithLog(APPROVAL_EVENT, transactionReceipt);\n ArrayList<ApprovalEventResponse> responses = new ArrayList<ApprovalEventResponse>(valueList.size());\n for (SmartContract.EventValuesWithLog eventValues : valueList) {\n ApprovalEventResponse typedResponse = new ApprovalEventResponse();\n typedResponse.log = eventValues.getLog();\n typedResponse.owner = (String) eventValues.getIndexedValues().get(0).getValue();\n typedResponse.spender = (String) eventValues.getIndexedValues().get(1).getValue();\n typedResponse.value = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue();\n responses.add(typedResponse);\n }\n return responses;\n }",
"void addLIfeStoryLines(String personID, HashSet<Event> filteredEvents) {\n ArrayList<Event> personEvents = singleton.retrieveLifeStory(personID);\r\n if(personEvents.size() < 2) {\r\n return;\r\n }\r\n else {\r\n for(int n = 0; n < personEvents.size()-1; n++) {\r\n Event e1 = personEvents.get(n);\r\n Event e2 = personEvents.get(n+1);\r\n if(filteredEvents.contains(e1) && filteredEvents.contains(e2)) {\r\n double lat = e1.getLatitude();\r\n double longit = e1.getLongitude();\r\n LatLng p1 = new LatLng(lat,longit);\r\n lat = e2.getLatitude();\r\n longit = e2.getLongitude();\r\n LatLng p2 = new LatLng(lat,longit);\r\n drawLine(p1,p2,Color.RED,10);\r\n }\r\n }\r\n }\r\n\r\n }",
"@Override\n public List<PurchaseOrderLine> getOrderlines() {\n return orderLines;\n }",
"public static Event handleAddTimeLineEvents(HttpServletRequest request,\r\n\t\t\tLong timeLineId, SessionObjectBase sob) {\r\n\r\n\t\tEvent event = new Event();\r\n\r\n\t\tif (timeLineId == null) {\r\n\t\t\treturn event;\r\n\t\t}\r\n\r\n\t\tTimeLine timeline = TimeLine.getById(sob.schema, timeLineId);\r\n\r\n\t\tString sending_page = (String) request.getParameter(\"sending_page\");\r\n\r\n\t\tif ((sending_page != null)\r\n\t\t\t\t&& (sending_page.equalsIgnoreCase(\"timeline_creator\"))) {\r\n\r\n\t\t\tString command = (String) request.getParameter(\"command\");\r\n\r\n\t\t\tif (command.equalsIgnoreCase(\"Update\")) {\r\n\t\t\t\tString event_id = (String) request.getParameter(\"event_id\");\r\n\r\n\t\t\t\tevent.setId(new Long(event_id));\r\n\t\t\t\tsob.draft_event_id = event.getId();\r\n\r\n\t\t\t}\r\n\r\n\t\t\tif (command.equalsIgnoreCase(\"Clear\")) {\r\n\t\t\t\tsob.draft_event_id = null;\r\n\t\t\t} else { // coming here as update or as create.\r\n\r\n\t\t\t\tString event_type = (String) request.getParameter(\"event_type\");\r\n\r\n\t\t\t\tint eventTypeInt = 1;\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\teventTypeInt = new Long(event_type).intValue();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tevent.setEventType(eventTypeInt);\r\n\t\t\t\t\r\n\t\t\t\tString eventTitle = (String) request.getParameter(\"event_title\");\r\n\t\t\t\t\r\n\t\t\t\tif (!(USIP_OSP_Util.stringFieldHasValue(eventTitle))){\r\n\t\t\t\t\teventTitle = \"No Title Provided\";\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tevent.setEventTitle(eventTitle);\r\n\t\t\t\tevent.setEventMsgBody((String) request\r\n\t\t\t\t\t\t.getParameter(\"event_text\"));\r\n\r\n\t\t\t\tString timeline_event_date = (String) request\r\n\t\t\t\t\t\t.getParameter(\"timeline_event_date\");\r\n\r\n\t\t\t\tSystem.out.println(timeline_event_date);\r\n\r\n\t\t\t\tSimpleDateFormat sdf_startdate = new SimpleDateFormat(\r\n\t\t\t\t\t\t\"MM/dd/yyyy HH:mm\");\r\n\r\n\t\t\t\t// set this to a safe date (now) in case the date entered does not parse well.\r\n\t\t\t\tevent.setEventStartTime(new java.util.Date());\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDate ted = sdf_startdate.parse(timeline_event_date);\r\n\t\t\t\t\tevent.setEventStartTime(ted);\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tsob.errorMsg = \"The date and time that you entered, \\\"\" + timeline_event_date + \"\\\", could not be interpreted. \" + \r\n\t\t\t\t\t\t\"The date was set to your current time.\";\r\n\t\t\t\t}\r\n\t\t\t\tevent.setSimId(sob.sim_id);\r\n\r\n\t\t\t\tevent.setPhaseId(sob.phase_id);\r\n\r\n\t\t\t\t// //////////////////////////////////////////\r\n\t\t\t\tevent.setTimelineId(timeline.getId());\r\n\r\n\t\t\t\tevent.saveMe(sob.schema);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tString remove_event = (String) request.getParameter(\"remove_event\");\r\n\t\tString edit_event = (String) request.getParameter(\"edit_event\");\r\n\r\n\t\tString event_id = (String) request.getParameter(\"event_id\");\r\n\r\n\t\tif ((remove_event != null) && (remove_event.equalsIgnoreCase(\"true\"))) {\r\n\t\t\tEvent.removeMe(sob.schema, new Long(event_id));\r\n\t\t\tsob.draft_event_id = null;\r\n\t\t}\r\n\r\n\t\tif ((edit_event != null) && (edit_event.equalsIgnoreCase(\"true\"))) {\r\n\t\t\tevent = Event.getById(sob.schema, new Long(event_id));\r\n\t\t\tsob.draft_event_id = event.getId();\r\n\t\t}\r\n\r\n\t\treturn event;\r\n\t}",
"public List<ArticLine> getArticLines() {\n\n if (articLines == null) {\n articLines = new ArrayList<ArticLine>();\n\n List<Element> paragraphs = br.ufrgs.artic.utils.FileUtils.getElementsByTagName(\"para\", omniPageXMLDocument.getDocumentElement());\n\n Integer lineCounter = 0;\n Boolean foundIntroOrAbstract = false;\n String previousAlignment = null;\n Element previousElement = null;\n if (paragraphs != null && !paragraphs.isEmpty()) {\n\n for (Element paragraphElement : paragraphs) {\n\n String alignment = getAlignment(paragraphElement);\n\n String paragraph = \"new\";\n\n List<Element> linesOfParagraph = br.ufrgs.artic.utils.FileUtils.getElementsByTagName(\"ln\", paragraphElement);\n\n if (linesOfParagraph != null && !linesOfParagraph.isEmpty()) {\n for (Element lineElement : linesOfParagraph) {\n ArticLine articLine = new ArticLine(lineCounter, lineElement, previousElement,\n averagePageFontSize, alignment, previousAlignment, topBucketSize, leftBucketSize);\n articLines.add(articLine);\n\n String textContent = articLine.getOriginalText();\n\n if (textContent != null && Pattern.compile(\"intro|abstract\", Pattern.CASE_INSENSITIVE).\n matcher(textContent).find()) {\n foundIntroOrAbstract = true;\n }\n\n if (!foundIntroOrAbstract) { //special case for headers\n articLine.setParagraph(\"header\");\n } else {\n articLine.setParagraph(paragraph);\n }\n\n paragraph = \"same\";\n previousElement = lineElement;\n previousAlignment = alignment;\n lineCounter++;\n }\n }\n }\n }\n }\n\n return articLines;\n }",
"public static void logLinesOfCreditAndDetails(List<LineOfCredit> linesOfCredit){\n\t\t\n\t\tif(CollectionUtils.isEmpty(linesOfCredit)){\n\t\t\tSystem.out.println(\"WARNING: No lines of credit was povided in order to log its details\");\n\t\t}else{\n\t\t\tfor(LineOfCredit loc: linesOfCredit){\n\t\t\t\tlogLineOfCreditDetails(loc);\n\t\t\t}\n\t\t}\n\t}",
"public final void loadEvents() {\n\n if (selectedUser == null || selectedUser.equals(\"All\")) {\n for (Absence a : AbsenceService.getAllUnacknowledged()) {\n\n AbsenceEvent e = new AbsenceEvent(a.getUser().getUsername() + \" \" + a.getAbsenceType(), TimeConverterService.convertLocalDateTimeToDate(a.getStartTime()), TimeConverterService.convertLocalDateTimeToDate(a.getEndTime()), a);\n\n switch (e.getAbsence().getAbsenceType()) {\n\n case MEDICAL_LEAVE:\n e.setStyleClass(\"medical_leave\");\n break;\n case HOLIDAY:\n e.setStyleClass(\"holiday\");\n e.setAllDay(true);\n break;\n case TIME_COMPENSATION:\n e.setStyleClass(\"time_compensation\");\n break;\n case BUSINESSRELATED_ABSENCE:\n e.setStyleClass(\"business-related_absence\");\n break;\n default:\n }\n\n this.addEvent(e);\n }\n } else {\n for (Absence a : AbsenceService.getAbsenceByUserAndUnacknowledged(BenutzerverwaltungService.getUser(selectedUser))) {\n\n AbsenceEvent e = new AbsenceEvent(a.getUser().getUsername() + \" \" + a.getAbsenceType() + \" \" + a.getReason(), TimeConverterService.convertLocalDateTimeToDate(a.getStartTime()), TimeConverterService.convertLocalDateTimeToDate(a.getEndTime()), a);\n\n switch (e.getAbsence().getAbsenceType()) {\n\n case MEDICAL_LEAVE:\n e.setStyleClass(\"medical_leave\");\n break;\n case HOLIDAY:\n e.setStyleClass(\"holiday\");\n e.setAllDay(true);\n break;\n case TIME_COMPENSATION:\n e.setStyleClass(\"time_compensation\");\n break;\n case BUSINESSRELATED_ABSENCE:\n e.setStyleClass(\"business-related_absence\");\n break;\n default:\n }\n\n this.addEvent(e);\n }\n }\n\n DefaultScheduleEvent holidayevent;\n\n for (Holiday h : HolidayService.getList()) {\n holidayevent = new DefaultScheduleEvent(h.getHolidayComment(), TimeConverterService.convertLocalDateToDate(h.getHolidayDate()), TimeConverterService.convertLocalDateToDate(h.getHolidayDate()));\n holidayevent.setAllDay(true);\n holidayevent.setStyleClass(\"feiertag\");\n\n this.addEvent(holidayevent);\n }\n }",
"private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }",
"public void printDecisionPointEvents() throws Exception\r\n\t{\r\n\t\tOWLClass firstSystemDPE = this.getOWLClass(EFBO_FRC_URI, \"DecisionPointEvent\");\r\n\t\tOWLClass nextOfDPE = this.getOWLClass(EFBO_V_URI, \"System-1_Event\");\r\n\t\t\r\n\t\tOWLClass secondSystemDPE = this.getOWLClass(EFBO_FRC_URI, \"DecisionPointEvent\");\r\n\t\tOWLClass nextOfDPE2 = this.getOWLClass(EFBO_V_URI, \"System-2_Event\");\r\n\t\t\r\n\t\tOWLObjectProperty hasNextEvent = efboStatusReportManager.getOWLObjectProperty(EFBO_CORE_URI, \"hasNextEvent\");\r\n\t\tOWLObjectProperty hasPrevEvent = efboStatusReportManager.getOWLObjectProperty(EFBO_CORE_URI, \"hasPreviousEvent\");\r\n\t\tOWLObjectProperty isAltEventOf = efboStatusReportManager.getOWLObjectProperty(EFBO_CORE_URI, \"isAlternateEventOf\");\r\n\t\t\r\n\t\tSet<OWLNamedIndividual> inds = efboStatusReportManager.getOWLNamedIndividuals(firstSystemDPE);\r\n\t\t\r\n\t\tString dpeName = \"\";\r\n\t\tfor (OWLNamedIndividual i: inds)\r\n\t\t{\r\n\t\t\tdpeName += efboStatusReportManager.getLabel(i) + \"; \"; \r\n\t\t}\r\n\t\t\r\n\t\tString g = \"@startuml\";\r\n\t g += \"\\ntitle\\n\" + efboStatusReportManager.getLabel(firstSystemDPE)\r\n + \"\\n\" + dpeName\r\n + \"\\nend title\\n\";\r\n\t\tg += getRelatedGraph(\"DecisionPointEvent\", \"System-1_Event\", \"hasNextEvent\", \"hasPreviousEvent\", \"isAlternateEventOf\");\r\n\t\tg += getRelatedGraph(\"DecisionPointEvent\", \"System-2_Event\", \"hasNextEvent\", \"hasPreviousEvent\", \"isAlternateEventOf\");\r\n\t\tg += \"\\n@enduml\";\r\n\t\tSystem.out.println(g);\r\n\t\t\r\n\t\tSystem.out.println(\"\\nDecesion Point Events\");\r\n\t\tthis.printEntityBySystem(firstSystemDPE, hasNextEvent, nextOfDPE);\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"\\nDecesion Point Events\");\r\n\t\tthis.printEntityBySystem(secondSystemDPE, hasNextEvent, nextOfDPE2);\r\n\t\t\r\n\t}",
"public void propagateAdvanceInformationIfNeeded() {\n if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().getTravelAdvanceRequested() != null) {\n if (!ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setCheckTotalAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n final TemSourceAccountingLine maxAmountLine = getAccountingLineWithLargestAmount();\n if (!TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus())) {\n getAdvanceAccountingLines().get(0).setAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n if (!allParametersForAdvanceAccountingLinesSet() && !TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus()) && !advanceAccountingLinesHaveBeenModified(maxAmountLine)) {\n // we need to set chart, account, sub-account, and sub-object from account with largest amount from regular source lines\n if (maxAmountLine != null) {\n getAdvanceAccountingLines().get(0).setChartOfAccountsCode(maxAmountLine.getChartOfAccountsCode());\n getAdvanceAccountingLines().get(0).setAccountNumber(maxAmountLine.getAccountNumber());\n getAdvanceAccountingLines().get(0).setSubAccountNumber(maxAmountLine.getSubAccountNumber());\n }\n }\n // let's also propogate the due date\n if (getTravelAdvance().getDueDate() != null && !ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setDueDate(getTravelAdvance().getDueDate());\n }\n }\n }",
"@Override\n public void definitionListItem(SinkEventAttributes attributes)\n {\n }",
"public void grabarLineasInvestigacionProyecto() {\r\n try {\r\n if (!sessionProyecto.getEstadoActual().getCodigo().equalsIgnoreCase(EstadoProyectoEnum.INICIO.getTipo())) {\r\n return;\r\n }\r\n for (LineaInvestigacionProyecto lineaInvestigacionProyecto : sessionProyecto.getLineasInvestigacionSeleccionadasTransfer()) {\r\n if (lineaInvestigacionProyecto.getId() == null) {\r\n lineaInvestigacionProyecto.setProyectoId(sessionProyecto.getProyectoSeleccionado());\r\n lineaInvestigacionProyectoService.guardar(lineaInvestigacionProyecto);\r\n grabarIndividuoLP(lineaInvestigacionProyecto);\r\n logDao.create(logDao.crearLog(\"LineaInvestigacionProyecto\", lineaInvestigacionProyecto.getId() + \"\",\r\n \"CREAR\", \"Proyecto=\" + sessionProyecto.getProyectoSeleccionado().getId() + \"|LineaInvestigacion=\"\r\n + lineaInvestigacionProyecto.getLineaInvestigacionId().getId(), sessionUsuario.getUsuario()));\r\n continue;\r\n }\r\n lineaInvestigacionProyectoService.actulizar(lineaInvestigacionProyecto);\r\n }\r\n } catch (Exception e) {\r\n }\r\n \r\n }",
"public void addCust(Event temp){\n eventLine.add(temp);\n }",
"public static String getAchivements(int partnerId) {\n int size = lstEvents.size();\n // List<EventEntity> achievePartners = new ArrayList<>();\n List<EventEntity> allAchievement = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n EventEntity entity = lstEvents.get(i);\n // if (entity.isConcurrent()) {\n if (entity.getPartnerId() == 0 || entity.getPartnerId() == partnerId) {\n allAchievement.add(entity);\n }\n\n // if (entity.getPartnerId() == partnerId) {\n // achievePartners.add(entity);\n // onlyPartner = true;\n // }\n\n // }\n }\n\n List<EventEntity> retEvents;\n // if (onlyPartner) {\n // retEvents = achievePartners;\n // } else {\n retEvents = allAchievement;\n // }\n\n int retSize = retEvents.size();\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < retSize; i++) {\n EventEntity achiveEntity = retEvents.get(i);\n if (achiveEntity.getGameId() >= 0) {\n sb.append(achiveEntity.getEventId()).append(AIOConstants.SEPERATOR_BYTE_1);\n sb.append(achiveEntity.getTittle()).append(AIOConstants.SEPERATOR_BYTE_2);\n }\n }\n\n if (sb.length() > 0) {\n sb.deleteCharAt(sb.length() - 1);\n }\n return sb.toString();\n }",
"public void handleEvent(Event event) {\n if ((currentTextReports != null)\n && (currentTextReports.size() > currentTextIndex + 1)) {\n String dispStr = removeCR((String) currentTextReports\n .get(currentTextIndex + 1)[0]);\n\t\t\t\t\tString curText = text.getText();\n\t\t\t\t\tint endIndex = curText.indexOf(\"----\");\n if (endIndex != -1) {\n curText = curText.substring(0, endIndex + 4);\n text.setText(curText + \"\\n\" + dispStr);\n } else\n\t\t\t\t\t\ttext.setText(dispStr);\n\t\t\t\t\t\n\t\t\t\t\tnextBtn.setEnabled(true);\n\t\t\t\t\tcurrentTextIndex++;\n if (currentTextReports.size() <= currentTextIndex + 1) {\n prevBtn.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"public static List<Event> generateExpiredEvents() {\n\t\tEvent event1 = Event.create(0);\r\n\t\tevent1.infoStore().add(Info.create(1, 2, 3));\r\n\t\tList<Event> events = new ArrayList<Event>();\r\n\t\tevents.add(event1);\r\n\t\treturn events;\r\n\t}",
"void addFamilyLines(Event event,HashSet<Event> filteredEvents,int genLevel) {\n HashSet<Event> parentEvents = singleton.retrieveParentLines(event.getPersonID());\r\n Log.d(TAG,String.valueOf(parentEvents.size()));\r\n for(Event parEvent: parentEvents) {\r\n if(filteredEvents.contains(parEvent)) {\r\n int color;\r\n if(genLevel % 4 == 0) {\r\n //add green\r\n color = Color.GREEN;\r\n }\r\n else if(genLevel % 4 == 1) {\r\n //add grey\r\n color = Color.GRAY;\r\n }\r\n else if(genLevel % 4 == 2) {\r\n //add Yellow\r\n color = Color.YELLOW;\r\n }\r\n else {\r\n //add cyan\r\n color= Color.CYAN;\r\n }\r\n double lat = event.getLatitude();\r\n double longi = event.getLongitude();\r\n LatLng p1 = new LatLng(lat,longi);\r\n lat = parEvent.getLatitude();\r\n longi = parEvent.getLongitude();\r\n LatLng p2 = new LatLng(lat,longi);\r\n drawLine(p1,p2,color,markerWidth - 2*genLevel);\r\n addFamilyLines(parEvent,filteredEvents,genLevel +1);\r\n }\r\n }\r\n }",
"public void addActualExpenseLine(ActualExpense line) {\n line.setDocumentLineNumber(getActualExpenses().size() + 1);\n final String sequenceName = line.getSequenceName();\n final Long sequenceNumber = getSequenceAccessorService().getNextAvailableSequenceNumber(sequenceName, ActualExpense.class);\n line.setId(sequenceNumber);\n line.setDocumentNumber(this.documentNumber);\n notifyChangeListeners(new PropertyChangeEvent(this, TemPropertyConstants.ACTUAL_EXPENSES, null, line));\n getActualExpenses().add(line);\n logErrors();\n }",
"private void forwardChanges(ListChangeListener.Change<? extends CalendarEvent> c) {\n while (c.next()) {\n if (c.wasRemoved()) {\n for (CalendarEvent removedEvent : c.getRemoved()) {\n agenda.appointments().remove(removedEvent);\n }\n }\n if (c.wasAdded()) {\n for (CalendarEvent addedEvent : c.getAddedSubList()) {\n addedEvent.setAppointmentGroup(appointmentGroup);\n agenda.appointments().add(c.getFrom(), addedEvent);\n }\n }\n }\n }",
"public void onAdd(TimelineAddEvent e) {\n\t\tevent = new TimelineEvent(new Booking(), e.getStartDate(), e.getEndDate(), true, e.getGroup());\n\n\t\t// add the new event to the model in case if user will close or cancel the \"Add dialog\"\n\t\t// without to update details of the new event. Note: the event is already added in UI.\n\t\tmodel.add(event);\n\t}",
"@GetMapping(\"/invoice-lines\")\n public List<InvoiceLinesDTO> getAllInvoiceLines() {\n log.debug(\"REST request to get all InvoiceLines\");\n return invoiceLinesService.findAll();\n }",
"protected void deadlineLeasing() {\n log.info(\"OrdersBean : deadlineLeasing\");\n List<OrdersEntity> ordersEntitiesDeadline = ordersServices.findAllOrdersByIdUserAndStatusIsValidate(usersBean.getUsersEntity().getId());\n if (!ordersEntitiesDeadline.isEmpty()) {\n contractsBean.findAllContractsInAllMyOrdersForLeasingAndDeadlineIsLowerThan1Month(ordersEntitiesDeadline);\n }\n }",
"public ArrayList<TransactionDetailByAccount> getMissionChecksByAccount(\n\t\t\tlong accountId, FinanceDate start, FinanceDate end, long companyId)\n\t\t\tthrows AccounterException {\n\t\tSession session = HibernateUtil.getCurrentSession();\n\t\tArrayList<TransactionDetailByAccount> list = new ArrayList<TransactionDetailByAccount>();\n\n\t\tAccount account = (Account) session.get(Account.class, accountId);\n\t\tif (account == null) {\n\t\t\tthrow new AccounterException(Global.get().messages()\n\t\t\t\t\t.pleaseSelect(Global.get().messages().account()));\n\t\t}\n\t\tList result = new ArrayList();\n\t\tif (account.getType() == Account.TYPE_OTHER_CURRENT_ASSET) {\n\t\t\tresult = session\n\t\t\t\t\t.getNamedQuery(\"get.all.invoices.by.account\")\n\t\t\t\t\t.setParameter(\"startDate\", start.getDate())\n\t\t\t\t\t.setParameter(\"endDate\", end.getDate())\n\t\t\t\t\t.setParameter(\"companyId\", companyId)\n\t\t\t\t\t.setParameter(\"accountId\", accountId)\n\t\t\t\t\t.setParameter(\"tobePrint\", \"TO BE PRINTED\",\n\t\t\t\t\t\t\tEncryptedStringType.INSTANCE)\n\t\t\t\t\t.setParameter(\"empty\", \"\", EncryptedStringType.INSTANCE)\n\t\t\t\t\t.list();\n\t\t} else if (account.getType() == ClientAccount.TYPE_BANK) {\n\t\t\tresult = session\n\t\t\t\t\t.getNamedQuery(\"get.missing.checks.by.account\")\n\t\t\t\t\t.setParameter(\"accountId\", accountId)\n\t\t\t\t\t.setParameter(\"startDate\", start.getDate())\n\t\t\t\t\t.setParameter(\"endDate\", end.getDate())\n\t\t\t\t\t.setParameter(\"companyId\", companyId)\n\t\t\t\t\t.setParameter(\"tobePrint\", \"TO BE PRINTED\",\n\t\t\t\t\t\t\tEncryptedStringType.INSTANCE)\n\t\t\t\t\t.setParameter(\"empty\", \"\", EncryptedStringType.INSTANCE)\n\t\t\t\t\t.list();\n\t\t}\n\t\tIterator iterator = result.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tObject[] objects = (Object[]) iterator.next();\n\t\t\tTransactionDetailByAccount detailByAccount = new TransactionDetailByAccount();\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionId((Long) (objects[0] != null ? objects[0]\n\t\t\t\t\t\t\t: 0));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionType((Integer) (objects[1] != null ? objects[1]\n\t\t\t\t\t\t\t: 0));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionNumber((String) (objects[2] != null ? objects[2]\n\t\t\t\t\t\t\t: \"\"));\n\t\t\tClientFinanceDate date = new ClientFinanceDate(\n\t\t\t\t\t(Long) (objects[3] != null ? objects[3] : 0));\n\t\t\tdetailByAccount.setTransactionDate(date);\n\t\t\tdetailByAccount.setName((String) (objects[4] != null ? objects[4]\n\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setAccountName((String) (objects[5] != null ? objects[5]\n\t\t\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount.setMemo((String) (objects[6] != null ? objects[6]\n\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount.setTotal((Double) (objects[7] != null ? objects[7]\n\t\t\t\t\t: 0.0));\n\t\t\tlist.add(detailByAccount);\n\n\t\t}\n\t\treturn list;\n\t}",
"public void handleEvent(Event event) {\n if ((currentTextReports != null)\n && (currentTextReports.size() > currentTextIndex)\n && (currentTextIndex >= 1)) {\n String dispStr = removeCR((String) currentTextReports\n .get(currentTextIndex - 1)[0]);\n\t\t\t\t\tString curText = text.getText();\n\t\t\t\t\tint endIndex = curText.indexOf(\"----\");\n if (endIndex != -1) {\n curText = curText.substring(0, endIndex + 4);\n text.setText(curText + \"\\n\" + dispStr);\n } else\n\t\t\t\t\t\ttext.setText(dispStr);\n\t\t\t\t\tprevBtn.setEnabled(true);\n\t\t\t\t\tcurrentTextIndex--;\n if (currentTextIndex == 0) {\n\t\t\t\t\t\tnextBtn.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"public void addToLinesOfBusiness(entity.AppCritLineOfBusiness element);",
"public void getNextEvent(Event e){\n\t\ttry {\n\t\t\tparser.getInfo(eInfo, line);\n\t\t} catch (CannotParseException ex) {\n\t\t\tSystem.err.println(\"Canot parse line -> \" + line);\n\t\t}\n\t\teInfo2Event(e);\n\t}",
"private void addEntranceLog(String logType) {\n if(ticketTrans == null || checkedItems.size() == 0) return;\n\n Entrance entrance = new Entrance(EntranceStep2Activity.this);\n\n Log.d(EntranceStep2Activity.class.toString(), logType);\n\n try {\n entrance.add(encryptRefNo, checkedItems, logType);\n } catch (Exception e) {\n String reason = e.getMessage();\n Toast.makeText(getApplicationContext(), reason, Toast.LENGTH_SHORT).show();\n } finally {\n loading.dismiss();\n }\n }",
"public void addLines(ArrayList<Dialog> lines) {\n\t\tdecoupleGenericLines(lines);\n\t\tDialogueSystem.GLOBAL_DIALOG_LIST.addAll(lines);\n\t}",
"protected FinancialAccountingLine createFinancialAccountingLine(WarehouseAccounts mmAcctLine,\r\n KualiDecimal chargeAmt) {\r\n FinancialAccountingLine finAcctLine = new FinancialAccountingLine();\r\n finAcctLine.setAccountNumber(mmAcctLine.getAccountNbr());\r\n finAcctLine.setAmount(chargeAmt);\r\n finAcctLine.setBalanceTypeCode(\"AC\");\r\n finAcctLine.setChartOfAccountsCode(mmAcctLine.getFinCoaCd());\r\n finAcctLine.setFinancialDocumentLineDescription(\"Pay warehouse\"\r\n + mmAcctLine.getWarehouseCd());\r\n finAcctLine.setFinancialDocumentLineTypeCode(MMConstants.FIN_ACCT_LINE_TYP_TO);\r\n finAcctLine.setFinancialObjectCode(mmAcctLine.getFinObjectCd());\r\n finAcctLine.setFinancialSubObjectCode(mmAcctLine.getFinSubObjCd());\r\n finAcctLine.setObjectBudgetOverride(false);\r\n finAcctLine.setObjectBudgetOverrideNeeded(false);\r\n finAcctLine.setOrganizationReferenceId(\"\");\r\n finAcctLine.setOverrideCode(\"\");\r\n finAcctLine.setPostingYear(SpringContext.getBean(FinancialSystemAdaptorFactory.class)\r\n .getFinancialUniversityDateService().getCurrentFiscalYear());\r\n finAcctLine.setProjectCode(mmAcctLine.getProjectCd());\r\n finAcctLine.setReferenceNumber(\"\");\r\n finAcctLine.setReferenceOriginCode(GlConstants.getFinancialSystemOriginCode());\r\n finAcctLine.setReferenceTypeCode(\"\");\r\n finAcctLine.setSalesTaxRequired(false);\r\n finAcctLine.setSubAccountNumber(mmAcctLine.getSubAcctNbr());\r\n return finAcctLine;\r\n }",
"@Override\n\tpublic void showAirlines() {\n\t\tArrayList<Airline> airlines = Singleton.AirlineRegistDao().findAll();\n\t\tairlineOptions = \"\";\n\t\tfor (Airline airline : airlines) {\n\t\t\tairlineOptions += String.format(\"<li role=\\\"presentation\\\"> <a role=\\\"menuitem\\\" tabindex=\\\"-1\\\" href=javascript:void(0)>%s</a> </li>\\n\", airline.getName());\n\n\t\t}\n\t\tSystem.out.println(airlineOptions);\n\t}",
"protected Map<String, ExpenseTransferAccountingLine> getAccountingLineGroupMap(List<ExpenseTransferAccountingLine> accountingLines, Class clazz) {\n Map<String, ExpenseTransferAccountingLine> accountingLineGroupMap = new HashMap<String, ExpenseTransferAccountingLine>();\n\n for (ExpenseTransferAccountingLine accountingLine : accountingLines) {\n String stringKey = ObjectUtil.buildPropertyMap(accountingLine, defaultKeyOfExpenseTransferAccountingLine()).toString();\n ExpenseTransferAccountingLine line = null;\n\n if (accountingLineGroupMap.containsKey(stringKey)) {\n line = accountingLineGroupMap.get(stringKey);\n KualiDecimal amount = line.getAmount();\n line.setAmount(amount.add(accountingLine.getAmount()));\n }\n else {\n try {\n line = (ExpenseTransferAccountingLine) clazz.newInstance();\n ObjectUtil.buildObject(line, accountingLine);\n accountingLineGroupMap.put(stringKey, line);\n }\n catch (Exception e) {\n LOG.error(\"Cannot create a new instance of ExpenseTransferAccountingLine\" + e);\n }\n }\n }\n return accountingLineGroupMap;\n }",
"@Override\n public PurchaseOrderLine getOrderLine(int index) {\n return orderLines.get(index);\n }",
"public abstract boolean processAddCollectionLine(AddCollectionLineEvent addEvent);",
"public void onOutputLineAdded(Window window, OutputLine line) {\n\t\t\t\n\t\t\tlinesLayout.addLine(line);\n\t\t}",
"private void setUpLedger() {\n _ledgerLine = new Line();\n _ledgerLine.setStrokeWidth(Constants.STROKE_WIDTH);\n _staffLine = new Line();\n _staffLine.setStrokeWidth(1);\n }",
"public void onEdit(TimelineModificationEvent e) {\n\t\tevent = e.getTimelineEvent();\n\t}",
"public void addLines(){\n\t\tif (controlPoints.size() == 1) return;\n\t\t\n\t\tif (lineLists.size() < controlPoints.size()-1){\n\t\t lineLists.add(new LinkedList<Line>());\n\t\t}\n\t\t\n\t\t\n\t\tint numControlLines = controlPoints.size() - 1;\n\t\t\n\t\tfor (int i = 0; i < numControlLines; i++){\n\t\t\tLine line = new Line();\n\t\t\tif (i == 0){\n\t\t\t\tline.setStroke(Color.LIGHTGRAY);\n\t\t\t\tline.setStrokeWidth(2);\n\t\t\t\tline.setVisible(showPrimaryLines);\n\t\t\t\tpane.getChildren().add(line);\n\t\t\t\tline.toBack();\n\t\t\t} else {\n\t\t\t\tdouble hue = 360 * (((i-1)%controlPoints.size())/(double)controlPoints.size());\n\t\t\t\tdouble sat = .4;\n\t\t\t\tdouble bri = .8;\n\t\t\t\tline.setStroke(Color.hsb(hue, sat, bri));\n\t\t\t\tline.setStrokeWidth(2);\n\t\t\t\tline.setVisible(showSubLines);\n\t\t\t\tpane.getChildren().add(line);\n\t\t\t}\n\t\t\tLinkedList<Line> list = lineLists.get(i);\n\t\t\tlist.add(line);\n\t\t}\n\t}",
"@SuppressWarnings({ \"unused\", \"resource\" })\n public JSONObject selectLines(VariablesSecureApp vars, String fromDate, String InitialBalance,\n String YearInitialBal, String strClientId, String accountId, String BpartnerId,\n String productId, String projectId, String DeptId, String BudgetTypeId, String FunclassId,\n String User1Id, String User2Id, String AcctschemaId, String strOrgFamily, String ClientId,\n String OrgId, String DateTo, String strAccountFromValue, String strAccountToValue,\n String strStrDateFC, String FrmPerStDate, String uniqueCode, String inpcElementValueIdFrom) {\n File file = null;\n String sqlQuery = \"\", sqlQuery1 = \"\", tempUniqCode = \"\", date = \"\", groupClause = \"\",\n tempStartDate = \"\", periodId = \"\";\n BigDecimal initialDr = new BigDecimal(0);\n BigDecimal initialCr = new BigDecimal(0);\n BigDecimal initialNet = new BigDecimal(0);\n PreparedStatement st = null;\n ResultSet rs = null;\n String RoleId = vars.getRole();\n List<GLJournalApprovalVO> list = null;\n JSONObject obj = null;\n int count = 0;\n JSONObject result = new JSONObject();\n JSONArray array = new JSONArray();\n JSONArray arr = null;\n String listofuniquecode = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n\n sqlQuery = \"select a.id,a.c_period_id as periodid,a.periodno,to_char(a.startdate,'dd-MM-yyyy') as startdate ,a.name ,ev.accounttype as type,COALESCE(A.EM_EFIN_UNIQUECODE,ev.value) as account_id, ev.name, a.EM_EFIN_UNIQUECODE as uniquecode,a.defaultdep, a.depart,ev.value as account ,\"\n + \" replace(a.EM_EFIN_UNIQUECODE,'-'||a.depart||'-','-'||a.defaultdep||'-') as replaceacct, \"\n + \" sum(initalamtdr)as initalamtdr, sum(intialamtcr)as intialamtcr , sum(a.initialnet )as SALDO_INICIAL,sum( a.amtacctcr) as amtacctcr, sum(a.amtacctdr) as amtacctdr, sum(A.AMTACCTDR)-sum(A.AMTACCTCR) AS SALDO_FINAL ,\"\n + \" sum(initalamtdr)+sum( a.amtacctdr) as finaldr, sum(a.intialamtcr)+sum( a.amtacctcr) as finalcr , sum(a.initialnet)+sum(A.AMTACCTDR)-sum(A.AMTACCTCR) as finalnet \"\n + \" from( SELECT per.startdate,per.name ,per.periodno ,(case when (DATEACCT < TO_DATE(?) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?)) then F.AMTACCTDR else 0 end) as initalamtdr, \"\n + \"(case when (DATEACCT < TO_DATE(?) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?)) then F.AMTACCTCR else 0 end) as intialamtcr, \"\n + \" (case when (DATEACCT < TO_DATE(?) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?)) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialnet, \"\n + \" (case when (DATEACCT >= TO_DATE(?) AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?) then F.AMTACCTDR else 0 end) as AMTACCTDR, \"\n + \" (case when (DATEACCT >= TO_DATE(?) AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?) then F.AMTACCTCR else 0 end) as AMTACCTCR, \"\n + \" F.ACCOUNT_ID AS ID,F.EM_EFIN_UNIQUECODE,reg.value as depart,f.c_period_id , \"\n + \" (select REG.value from c_salesregion REG where REG.isdefault='Y' \";\n\n if (strClientId != null)\n sqlQuery += \"AND REG.AD_CLIENT_ID IN \" + strClientId;\n sqlQuery += \") as defaultdep \" + \" FROM FACT_ACCT F \"\n + \" left join (select name,periodno,startdate,c_period_id from c_period ) per on per.c_period_id=f.c_period_id left join c_salesregion reg on reg.c_salesregion_id= f.c_salesregion_id where 1=1 \";\n if (strOrgFamily != null)\n sqlQuery += \"AND F.AD_ORG_ID IN (\" + strOrgFamily + \")\";\n if (ClientId != null)\n sqlQuery += \"AND F.AD_CLIENT_ID IN (\" + ClientId + \")\";\n if (ClientId != null)\n sqlQuery += \"AND F.AD_ORG_ID IN (\" + OrgId + \")\";\n // sqlQuery += \" AND DATEACCT > TO_DATE(?) AND DATEACCT < TO_DATE(?) AND 1=1 \";\n sqlQuery += \" AND DATEACCT >= TO_DATE(?) AND DATEACCT < TO_DATE(?) AND 1=1 \";\n if (accountId != null)\n sqlQuery += \"AND F.account_ID='\" + accountId + \"'\";\n if (BpartnerId != null)\n sqlQuery += \"AND F.C_BPARTNER_ID IN (\" + BpartnerId.replaceFirst(\",\", \"\") + \")\";\n if (productId != null)\n sqlQuery += \"AND F.M_PRODUCT_ID IN \" + productId;\n if (projectId != null)\n sqlQuery += \"AND F.C_PROJECT_ID IN (\" + projectId.replaceFirst(\",\", \"\") + \")\";\n if (DeptId != null)\n sqlQuery += \"AND F.C_SALESREGION_ID IN (\" + DeptId.replaceFirst(\",\", \"\") + \")\";\n if (BudgetTypeId != null)\n sqlQuery += \"AND coalesce(F.C_CAMPAIGN_ID, (select c.C_CAMPAIGN_ID from C_CAMPAIGN c where em_efin_iscarryforward = 'N' and ad_client_id = F.ad_client_id limit 1))='\"\n + BudgetTypeId + \"'\";\n if (FunclassId != null)\n sqlQuery += \"AND F.C_ACTIVITY_ID IN (\" + FunclassId.replaceFirst(\",\", \"\") + \")\";\n if (User1Id != null)\n sqlQuery += \"AND F.USER1_ID IN (\" + User1Id.replaceFirst(\",\", \"\") + \")\";\n if (User2Id != null)\n sqlQuery += \"AND F.USER2_ID IN (\" + User2Id.replaceFirst(\",\", \"\") + \")\";\n if (AcctschemaId != null)\n sqlQuery += \"AND F.C_ACCTSCHEMA_ID ='\" + AcctschemaId + \"'\";\n if (uniqueCode != null)\n sqlQuery += \"\t\tAND (F.EM_EFIN_UNIQUECODE = '\" + uniqueCode + \"' or F.acctvalue='\"\n + uniqueCode + \"')\";\n\n sqlQuery += \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \";\n\n sqlQuery += \" AND F.ISACTIVE='Y' \" + \" ) a, c_elementvalue ev \"\n + \" where a.id = ev.c_elementvalue_id and ev.elementlevel = 'S' \";\n if (strAccountFromValue != null)\n sqlQuery += \"\t\tAND EV.VALUE >= '\" + strAccountFromValue + \"'\";\n if (strAccountToValue != null)\n sqlQuery += \"\t\tAND EV.VALUE <= '\" + strAccountToValue + \"'\";\n\n sqlQuery += \" \";\n\n sqlQuery += \" and (a.initialnet <>0 or a.amtacctcr <>0 or a.amtacctdr<>0) group by a.c_period_id,a.name,ev.accounttype, a.startdate , a.id ,a.periodno, A.EM_EFIN_UNIQUECODE,ev.value,ev.name,a.defaultdep,a.depart \"\n + \" order by uniquecode,a.startdate, account_id ,ev.value, ev.name, id \";\n\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, fromDate);\n st.setString(2, fromDate);\n st.setString(3, InitialBalance);\n st.setString(4, fromDate);\n st.setString(5, fromDate);\n st.setString(6, InitialBalance);\n st.setString(7, fromDate);\n st.setString(8, fromDate);\n st.setString(9, InitialBalance);\n st.setString(10, fromDate);\n st.setString(11, fromDate);\n st.setString(12, YearInitialBal);\n st.setString(13, fromDate);\n st.setString(14, fromDate);\n st.setString(15, YearInitialBal);\n st.setString(16, fromDate);\n st.setString(17, DateTo);\n // st.setString(16, DateTo);\n log4j.debug(\"ReportTrialBalancePTD:\" + st.toString());\n rs = st.executeQuery();\n // Particular Date Range if we get record then need to form the JSONObject\n while (rs.next()) {\n // Group UniqueCode Wise Transaction\n // if same uniquecode then Group the transaction under the uniquecode\n if (tempUniqCode.equals(rs.getString(\"uniquecode\"))) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n if (rs.getInt(\"periodno\") == 1\n && (rs.getString(\"type\").equals(\"E\") || rs.getString(\"type\").equals(\"R\"))) {\n initialDr = new BigDecimal(0);\n initialCr = new BigDecimal(0);\n initialNet = new BigDecimal(0);\n FrmPerStDate = getPedStrEndDate(OrgId, ClientId, rs.getString(\"periodid\"), null);\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n } else {\n if (rs.getInt(\"periodno\") > 1) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, rs.getString(\"periodid\"));\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"account_id\"),\n rs.getString(\"startdate\"), FrmPerStDate, strStrDateFC, rs.getString(\"type\"), 2,\n RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO vo = initial.get(0);\n initialDr = vo.getInitDr();\n initialCr = vo.getInitCr();\n initialNet = vo.getInitNet();\n }\n }\n tra.put(\"startdate\", rs.getString(\"name\"));\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(rs.getString(\"startdate\"))));\n tra.put(\"perDr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctdr\")));\n tra.put(\"perCr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctcr\")));\n tra.put(\"finalpernet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"SALDO_FINAL\")));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctdr\").add(initialDr))));\n tra.put(\"finalcr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctcr\").add(initialCr))));\n tra.put(\"finalnet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"SALDO_FINAL\").add(initialNet))));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", rs.getString(\"periodid\"));\n tra.put(\"type\", \"1\");\n arr.put(tra);\n\n }\n // if different uniquecode then form new Uniquecode JsonObject\n else {\n if (listofuniquecode == null)\n listofuniquecode = \"'\" + rs.getString(\"uniquecode\") + \"'\";\n else\n listofuniquecode += \",'\" + rs.getString(\"uniquecode\") + \"'\";\n obj = new JSONObject();\n obj.put(\"uniquecode\", (rs.getString(\"uniquecode\") == null ? rs.getString(\"account\")\n : rs.getString(\"uniquecode\")));\n obj.put(\"accountId\", (rs.getString(\"id\") == null ? \"\" : rs.getString(\"id\")));\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n if (rs.getInt(\"periodno\") == 1\n && (rs.getString(\"type\").equals(\"E\") || rs.getString(\"type\").equals(\"R\"))) {\n initialDr = new BigDecimal(0);\n initialCr = new BigDecimal(0);\n initialNet = new BigDecimal(0);\n FrmPerStDate = getPedStrEndDate(OrgId, ClientId, rs.getString(\"periodid\"), null);\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n } else {\n if (rs.getInt(\"periodno\") > 1) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, rs.getString(\"periodid\"));\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"account_id\"),\n rs.getString(\"startdate\"), FrmPerStDate, strStrDateFC, rs.getString(\"type\"), 1,\n RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO vo = initial.get(0);\n initialDr = vo.getInitDr();\n initialCr = vo.getInitCr();\n initialNet = vo.getInitNet();\n }\n }\n tra.put(\"startdate\", rs.getString(\"name\"));\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(rs.getString(\"startdate\"))));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"perDr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctdr\")));\n tra.put(\"perCr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctcr\")));\n tra.put(\"finalpernet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"SALDO_FINAL\")));\n tra.put(\"finaldr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctdr\").add(initialDr))));\n tra.put(\"finalcr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctcr\").add(initialCr))));\n tra.put(\"finalnet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"SALDO_FINAL\").add(initialNet))));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", rs.getString(\"periodid\"));\n /*\n * if((initialDr.compareTo(new BigDecimal(0)) > 0) || (initialCr.compareTo(new\n * BigDecimal(0)) > 0) || (initialNet.compareTo(new BigDecimal(0)) > 0)) { tra.put(\"type\",\n * \"1\"); } else\n */\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = rs.getString(\"uniquecode\");\n }\n\n result.put(\"list\", array);\n }\n log4j.debug(\"has lsit:\" + result.has(\"list\"));\n if (result.has(\"list\")) {\n JSONArray finalres = result.getJSONArray(\"list\");\n JSONObject json = null, json1 = null, json2 = null;\n log4j.debug(\"json.length:\" + finalres.length());\n for (int i = 0; i < finalres.length(); i++) {\n json = finalres.getJSONObject(i);\n log4j.debug(\"json.getString:\" + json.getString(\"uniquecode\"));\n if (json.getString(\"uniquecode\") != null) {\n String UniqueCode = json.getString(\"uniquecode\");\n String acctId = json.getString(\"accountId\");\n ElementValue type = OBDal.getInstance().get(ElementValue.class, acctId);\n JSONArray transaction = json.getJSONArray(\"transaction\");\n List<GLJournalApprovalVO> period = getAllPeriod(ClientId, fromDate, DateTo);\n List<String> periodIds = new ArrayList<String>(), tempPeriods = new ArrayList<String>();\n\n for (GLJournalApprovalVO vo : period) {\n periodIds.add(vo.getId());\n }\n\n tempPeriods = periodIds;\n\n for (int j = 0; j < transaction.length(); j++) {\n json1 = transaction.getJSONObject(j);\n periodId = json1.getString(\"periodid\");\n tempPeriods.remove(periodId);\n }\n log4j.debug(\"size:\" + tempPeriods.size());\n if (tempPeriods.size() > 0) {\n log4j.debug(\"jtempPeriods:\" + tempPeriods);\n count = 0;\n for (String missingPeriods : tempPeriods) {\n json2 = new JSONObject();\n json2.put(\"startdate\", Utility.getObject(Period.class, missingPeriods).getName());\n Date startdate = Utility.getObject(Period.class, missingPeriods).getStartingDate();\n json2.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\").format(startdate));\n json2.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"id\", acctId);\n json2.put(\"periodid\", missingPeriods);\n Long periodNo = Utility.getObject(Period.class, missingPeriods).getPeriodNo();\n if (new BigDecimal(periodNo).compareTo(new BigDecimal(1)) == 0\n && (type.getAccountType().equals(\"E\") || type.getAccountType().equals(\"R\"))) {\n json2.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"type\", \"1\");\n\n /*\n * count++; if(count > 0) { FrmPerStDate = getPedStrEndDate(OrgId, ClientId,\n * missingPeriods, null); FrmPerStDate = new\n * SimpleDateFormat(\"dd-MM-yyyy\").format(new\n * SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate)); }\n */\n\n } else {\n // Get the Last Opening and closing Balance Entry Date\n // If closing and opening is not happened then assign financial year start date\n Boolean isThereOpeningBeforeThePeriod = false;\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, missingPeriods);\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n isThereOpeningBeforeThePeriod = true;\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n\n FrmPerStDate = getPedStrEndDate(OrgId, ClientId, missingPeriods, null);\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n List<GLJournalApprovalVO> initial = selectInitialBal(UniqueCode,\n new SimpleDateFormat(\"dd-MM-yyyy\").format(startdate), FrmPerStDate,\n strStrDateFC, type.getAccountType(), 2, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO vo = initial.get(0);\n json2.put(\"initialDr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, (vo.getInitDr())));\n json2.put(\"initialCr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, (vo.getInitCr())));\n json2.put(\"initialNet\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, (vo.getInitNet())));\n if (((vo.getInitDr().compareTo(new BigDecimal(0)) > 0)\n || (vo.getInitCr().compareTo(new BigDecimal(0)) > 0)\n || (vo.getInitNet().compareTo(new BigDecimal(0)) > 0))\n || isThereOpeningBeforeThePeriod) {\n json2.put(\"type\", \"1\");\n } else\n json2.put(\"type\", \"0\");\n\n json2.put(\"finaldr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, new BigDecimal(0).add(vo.getInitDr())));\n json2.put(\"finalcr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, new BigDecimal(0).add(vo.getInitCr())));\n json2.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n new BigDecimal(0).add(vo.getInitNet())));\n\n }\n }\n\n transaction.put(json2);\n }\n }\n\n json.put(\"transaction\", transaction);\n }\n\n }\n log4j.debug(\"LIST:\" + list);\n log4j.debug(\"Acct PTD listofuniquecode:\" + listofuniquecode);\n\n List<GLJournalApprovalVO> period = getAllPeriod(ClientId, fromDate, DateTo);\n String tempYear = null;\n sqlQuery1 = \" select a.uniquecode,a.id from( select distinct coalesce(em_efin_uniquecode,acctvalue) as uniquecode ,f.account_id as id from fact_acct f where 1=1 \";\n if (strOrgFamily != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + strOrgFamily + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_CLIENT_ID IN (\" + ClientId + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + OrgId + \")\";\n sqlQuery1 += \" AND DATEACCT < TO_DATE(?) AND 1=1 \";\n if (accountId != null)\n sqlQuery1 += \"AND F.account_ID='\" + accountId + \"'\";\n if (BpartnerId != null)\n sqlQuery1 += \"AND F.C_BPARTNER_ID IN (\" + BpartnerId.replaceFirst(\",\", \"\") + \")\";\n if (productId != null)\n sqlQuery1 += \"AND F.M_PRODUCT_ID IN (\" + productId.replaceFirst(\",\", \"\") + \")\";\n if (projectId != null)\n sqlQuery1 += \"AND F.C_PROJECT_ID IN (\" + projectId.replaceFirst(\",\", \"\") + \")\";\n if (DeptId != null)\n sqlQuery1 += \"AND F.C_SALESREGION_ID IN (\" + DeptId.replaceFirst(\",\", \"\") + \")\";\n if (BudgetTypeId != null)\n sqlQuery1 += \"AND coalesce(F.C_CAMPAIGN_ID, (select c.C_CAMPAIGN_ID from C_CAMPAIGN c where em_efin_iscarryforward = 'N' and ad_client_id = F.ad_client_id limit 1))='\"\n + BudgetTypeId + \"'\";\n if (FunclassId != null)\n sqlQuery1 += \"AND F.C_ACTIVITY_ID IN (\" + FunclassId.replaceFirst(\",\", \"\") + \")\";\n if (User1Id != null)\n sqlQuery1 += \"AND F.USER1_ID IN (\" + User1Id.replaceFirst(\",\", \"\") + \")\";\n if (User2Id != null)\n sqlQuery1 += \"AND F.USER2_ID IN (\" + User2Id.replaceFirst(\",\", \"\") + \")\";\n if (AcctschemaId != null)\n sqlQuery1 += \"AND F.C_ACCTSCHEMA_ID ='\" + AcctschemaId + \"'\";\n\n if (uniqueCode != null)\n sqlQuery1 += \" AND (F.EM_EFIN_UNIQUECODE = '\" + uniqueCode\n + \"' or F.acctvalue='\" + uniqueCode + \"')\";\n if (listofuniquecode != null)\n sqlQuery1 += \" AND F.EM_EFIN_UNIQUECODE not in ( \" + listofuniquecode + \")\";\n sqlQuery1 += \" AND F.ISACTIVE='Y' \" + \" ) a, c_elementvalue ev \"\n + \" where a.id = ev.c_elementvalue_id and ev.elementlevel = 'S' \";\n if (strAccountFromValue != null)\n sqlQuery1 += \" AND EV.VALUE >= '\" + strAccountFromValue + \"'\";\n if (strAccountToValue != null)\n sqlQuery1 += \" AND EV.VALUE <= '\" + strAccountToValue + \"'\";\n st = conn.prepareStatement(sqlQuery1);\n st.setString(1, DateTo);\n log4j.debug(\"Acct PTD afterlist:\" + st.toString());\n rs = st.executeQuery();\n while (rs.next()) {\n ElementValue type = OBDal.getInstance().get(ElementValue.class, rs.getString(\"id\"));\n for (GLJournalApprovalVO vo : period) {\n\n if (tempYear != null) {\n if (!tempYear.equals(vo.getStartdate().split(\"-\")[2])) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n } else {\n tempYear = vo.getStartdate().split(\"-\")[2];\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, vo.getId());\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"uniquecode\"),\n vo.getStartdate(), FrmPerStDate, strStrDateFC, type.getAccountType(), 1, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO VO = initial.get(0);\n initialDr = VO.getInitDr();\n initialCr = VO.getInitCr();\n initialNet = VO.getInitNet();\n\n }\n if (tempUniqCode.equals(rs.getString(\"uniquecode\"))) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n } else {\n obj = new JSONObject();\n obj.put(\"uniquecode\", rs.getString(\"uniquecode\"));\n obj.put(\"accountId\", rs.getString(\"id\"));\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = rs.getString(\"uniquecode\");\n }\n }\n\n }\n }\n // Transaction not exists for the period\n else if (!result.has(\"list\")) {\n\n List<GLJournalApprovalVO> period = getAllPeriod(ClientId, fromDate, DateTo);\n String tempYear = null;\n\n if (uniqueCode != null) {\n ElementValue type = OBDal.getInstance().get(ElementValue.class, inpcElementValueIdFrom);\n for (GLJournalApprovalVO vo : period) {\n\n if (tempYear != null) {\n if (!tempYear.equals(vo.getStartdate().split(\"-\")[2])) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n } else {\n tempYear = vo.getStartdate().split(\"-\")[2];\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, vo.getId());\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n\n List<GLJournalApprovalVO> initial = selectInitialBal(uniqueCode, vo.getStartdate(),\n FrmPerStDate, strStrDateFC, type.getAccountType(), 1, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO VO = initial.get(0);\n initialDr = VO.getInitDr();\n initialCr = VO.getInitCr();\n initialNet = VO.getInitNet();\n\n }\n if (tempUniqCode.equals(uniqueCode)) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n } else {\n obj = new JSONObject();\n obj.put(\"uniquecode\", uniqueCode);\n obj.put(\"accountId\", accountId);\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = uniqueCode;\n }\n }\n result.put(\"list\", array);\n } else {\n\n sqlQuery1 = \" select a.uniquecode,a.id from( select distinct coalesce(em_efin_uniquecode,acctvalue) as uniquecode ,f.account_id as id from fact_acct f where 1=1 \";\n if (strOrgFamily != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + strOrgFamily + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_CLIENT_ID IN (\" + ClientId + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + OrgId + \")\";\n sqlQuery1 += \" AND DATEACCT < TO_DATE(?) AND 1=1 \";\n if (accountId != null)\n sqlQuery1 += \"AND F.account_ID='\" + accountId + \"'\";\n if (BpartnerId != null)\n sqlQuery1 += \"AND F.C_BPARTNER_ID IN (\" + BpartnerId.replaceFirst(\",\", \"\") + \")\";\n if (productId != null)\n sqlQuery1 += \"AND F.M_PRODUCT_ID IN \" + productId;\n if (projectId != null)\n sqlQuery1 += \"AND F.C_PROJECT_ID IN (\" + projectId.replaceFirst(\",\", \"\") + \")\";\n if (DeptId != null)\n sqlQuery1 += \"AND F.C_SALESREGION_ID IN (\" + DeptId.replaceFirst(\",\", \"\") + \")\";\n if (BudgetTypeId != null)\n sqlQuery1 += \"AND coalesce(F.C_CAMPAIGN_ID, (select c.C_CAMPAIGN_ID from C_CAMPAIGN c where em_efin_iscarryforward = 'N' and ad_client_id = F.ad_client_id limit 1))='\"\n + BudgetTypeId + \"'\";\n if (FunclassId != null)\n sqlQuery1 += \"AND F.C_ACTIVITY_ID IN (\" + FunclassId.replaceFirst(\",\", \"\") + \")\";\n if (User1Id != null)\n sqlQuery1 += \"AND F.USER1_ID IN (\" + User1Id.replaceFirst(\",\", \"\") + \")\";\n if (User2Id != null)\n sqlQuery1 += \"AND F.USER2_ID IN (\" + User2Id.replaceFirst(\",\", \"\") + \")\";\n if (AcctschemaId != null)\n sqlQuery1 += \"AND F.C_ACCTSCHEMA_ID ='\" + AcctschemaId + \"'\";\n if (uniqueCode != null)\n sqlQuery1 += \"\t\tAND (F.EM_EFIN_UNIQUECODE = '\" + uniqueCode\n + \"' or F.acctvalue='\" + uniqueCode + \"')\";\n sqlQuery1 += \" AND F.ISACTIVE='Y' \" + \" ) a, c_elementvalue ev \"\n + \" where a.id = ev.c_elementvalue_id and ev.elementlevel = 'S' \";\n if (strAccountFromValue != null)\n sqlQuery1 += \"\t\tAND EV.VALUE >= '\" + strAccountFromValue + \"'\";\n if (strAccountToValue != null)\n sqlQuery1 += \"\t\tAND EV.VALUE <= '\" + strAccountToValue + \"'\";\n st = conn.prepareStatement(sqlQuery1);\n st.setString(1, DateTo);\n log4j.debug(\"Acct PTD:\" + st.toString());\n rs = st.executeQuery();\n while (rs.next()) {\n ElementValue type = OBDal.getInstance().get(ElementValue.class, rs.getString(\"id\"));\n for (GLJournalApprovalVO vo : period) {\n\n if (tempYear != null) {\n if (!tempYear.equals(vo.getStartdate().split(\"-\")[2])) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n } else {\n tempYear = vo.getStartdate().split(\"-\")[2];\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, vo.getId());\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"uniquecode\"),\n vo.getStartdate(), FrmPerStDate, strStrDateFC, type.getAccountType(), 1, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO VO = initial.get(0);\n initialDr = VO.getInitDr();\n initialCr = VO.getInitCr();\n initialNet = VO.getInitNet();\n\n }\n if (tempUniqCode.equals(rs.getString(\"uniquecode\"))) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n } else {\n obj = new JSONObject();\n obj.put(\"uniquecode\", rs.getString(\"uniquecode\"));\n obj.put(\"accountId\", rs.getString(\"id\"));\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = rs.getString(\"uniquecode\");\n }\n }\n result.put(\"list\", array);\n }\n }\n }\n\n } catch (Exception e) {\n log4j.error(\"Exception Creating Excel Sheet\", e);\n }\n return result;\n\n }",
"public void clickAddonLineActivity() {\r\n\t\tthis.clickAddOnlineActivity.click();\r\n\t}",
"public static void main(String[] args) {\n List<Evento> listadoEventos = Evento.createShortList();\n List<Expositor> listadoExpositores = Expositor.createShortList();\n List<Asistente> Asistentes = Asistente.createShortList();\n //Asigno a los eventos sus expositores\n listadoEventos.get(0).setExpositor(listadoExpositores.get(0));\n listadoEventos.get(1).setExpositor(listadoExpositores.get(1));\n listadoEventos.get(2).setExpositor(listadoExpositores.get(2));\n listadoEventos.get(3).setExpositor(listadoExpositores.get(3));\n listadoEventos.get(4).setExpositor(listadoExpositores.get(4));\n listadoEventos.get(5).setExpositor(listadoExpositores.get(5));\n //Asigno los asistentes a los eventos\n listadoEventos.get(0).getListaAsistentes().add(Asistentes.get(0));\n listadoEventos.get(0).getListaAsistentes().add(Asistentes.get(1));\n\n listadoEventos.get(1).getListaAsistentes().add(Asistentes.get(2));\n\n listadoEventos.get(2).getListaAsistentes().add(Asistentes.get(3));\n\n listadoEventos.get(3).getListaAsistentes().add(Asistentes.get(4));\n listadoEventos.get(3).getListaAsistentes().add(Asistentes.get(5));\n\n listadoEventos.get(4).getListaAsistentes().add(Asistentes.get(6));\n\n listadoEventos.get(5).getListaAsistentes().add(Asistentes.get(7));\n listadoEventos.get(5).getListaAsistentes().add(Asistentes.get(8));\n listadoEventos.get(5).getListaAsistentes().add(Asistentes.get(9));\n\n //2A: Listado de manera ordenado por titulo descendiente, expositor y asistentes.\n\n Comparator<Integer> comparador = Collections.reverseOrder();\n\n //Ordenar de forma descendente por titulo\n Collections.sort(listadoEventos, (o1, o2) -> o2.getTitulo().compareTo(o1.getTitulo()));\n\n System.out.println(\"======Prueba 01 - Listado de eventos======\");\n for(Evento e:listadoEventos){\n System.out.println(\"****************************************\");\n System.out.println(\"Evento: \"+e.getTitulo());\n System.out.println(\"Expositor: \"+e.getExpositor().getNombre());\n System.out.println(\"Asistentes:\");\n for(Asistente a : e.getListaAsistentes()){\n System.out.println(a.getCodigo()+\"\\t\"+a.getNombre()+\"\\t\"+a.getApellidos());\n }\n }\n\n }",
"public void generateLineItems(){\n for(int i=0; i<purch.getProdIdx().length; i++){\r\n \r\n prod= new Product(db.getProductDbItem(purch.getProductItem(i)));\r\n \r\n LineItem[] tempL=new LineItem[lineItem.length+1];\r\n System.arraycopy(lineItem,0,tempL,0,lineItem.length);\r\n lineItem=tempL;\r\n lineItem[lineItem.length-1]= new LineItem(prod.getProdId(),purch.getQtyAmtItm(i), \r\n prod.getProdUnitPrice(), prod.getProdDesc(), prod.getProdDiscCode()); \r\n totalPurch += (purch.getQtyAmtItm(i) * prod.getProdUnitPrice());\r\n totalDisc += lineItem[lineItem.length-1].getDiscAmt();\r\n \r\n }\r\n }",
"public static void main(String[] args) {\n\n CalendarEvent b = new CalendarEvent(\"assignment2\",29,11,2014,\"14:00\",\"20:00\",\"Test1\");\n\n CalendarEvent c = new CalendarEvent(\"assignment3\",27,2,2010,\"2:00\",\"20:00\",\"Test2\");\n\n CalendarEvent d = new CalendarEvent(\"assignment4\",12,7,2013,\"14:00\",\"20:00\",\"Test3\");\n\n CalendarEvent e = new CalendarEvent(\"assignment5\",29,11,2014,\"12:00\",\"20:00\",\"Test4\");\n\n\n CalendarEvent l = new CalendarEvent(\"assignment1a\",30,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent f = new CalendarEvent(\"assignment1\",31,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent g = new CalendarEvent(\"assignment1\",21,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent h = new CalendarEvent(\"assignment1\",21,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent i = new CalendarEvent(\"assignment1\",29,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent j = new CalendarEvent(\"assignment1\",18,9,2014,\"14:00\",\"20:00\",\"Test\");\n CalendarEvent k = new CalendarEvent(\"assignment1\",1,9,2014,\"14:00\",\"20:00\",\"Test\");\n\n \n \n \n ArrayList<CalendarEvent> listOfEvents = new ArrayList<CalendarEvent>();\n // listOfEvents.add(a);\n listOfEvents.add(b);\n listOfEvents.add(c);\n listOfEvents.add(d);\n listOfEvents.add(e);\n\n Display myDisObject = new Display();\n //myDisObject.displayAssignments(listOfEvents);\n\n \n \n listOfEvents.add(f);\n listOfEvents.add(g);\n listOfEvents.add(h);\n listOfEvents.add(i);\n listOfEvents.add(j);\n listOfEvents.add(k);\n listOfEvents.add(l);\n \n //myDisObject.displayAssignments(listOfEvents);\n myDisObject.displayMonth(10, listOfEvents);\n }",
"private ListStore<Line> createLines() {\n\t\tStyleInjectorHelper.ensureInjected(CommonGanttResources.resources.css(), true);\n\n\t\tLineProperties lineProps = GWT.create(LineProperties.class);\n\t\tListStore<Line> store = new ListStore<Line>(lineProps.key());\n\t\tString customCssStyle = CommonGanttResources.resources.css().todayLineMain();\n\t\tLine line = new Line(new Date(), \"Текушая дата :\" + new Date().toString(), customCssStyle);\n\t\tstore.add(line);\n\t\treturn store;\n\t}",
"public static void testAddAndRemoveAccountsForLineOfCredit(AccountsFromLineOfCredit accountsForLoC)\n\t\t\tthrows MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testAddAndRemoveAccountsForLineOfCredit\");\n\n\t\tString lineOfCreditId = DemoUtil.demoLineOfCreditId;\n\t\tif (lineOfCreditId == null) {\n\t\t\tSystem.out.println(\"WARNING: No Demo Line of credit defined\");\n\t\t\treturn;\n\t\t}\n\n\t\t// Test remove and add for Loan Accounts\n\t\tList<LoanAccount> loanAccounts = accountsForLoC.getLoanAccounts();\n\t\ttestdeleteAndAddLoanAccounts(lineOfCreditId, loanAccounts);\n\n\t\t// Test remove and add for Savings Accounts\n\t\tList<SavingsAccount> savingsAccounts = accountsForLoC.getSavingsAccounts();\n\t\ttestdeleteAndAddSavingsAccounts(lineOfCreditId, savingsAccounts);\n\t}",
"public ArrayList<TimeLineEvent> getTimeLineEvents() {\n\t\treturn info;\n\t}",
"org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine insertNewExternalOrderLine(int i);",
"@Override\n protected void onDraw(Canvas canvas) {\n for (Line line : pointersTable.values()) {\n // Set the line's color.\n paint.setColor(line.Color);\n\n // Draw the line on the stored coordinates of the touch events.\n canvas.drawLine(line.LineStart.x, line.LineStart.y, line.LineEnd.x, line.LineEnd.y, paint);\n }\n }",
"private void addEnergyEvent(Event e) {\n EnergyUpdateEvent event = (EnergyUpdateEvent) e;\n\n int time = this.getEnvironment().getTime();\n this.addCycle(time);\n\n var agentId = event.getAgent().getID();\n var action = new EnergyUpdate(event.getEnergyPercentage(), event.isIncreased(), agentId);\n this.historyEnergy.get(time).add(action);\n this.addRowTable(time, agentId, action.toString());\n\n repaint();\n }",
"public void addLineItem (LineItem lineItem){\n if (this.orderStatus != OrderStatus.Closed && !lineItem.isOrdered() && !lineItems.contains(lineItem)){\n lineItems.add(lineItem);\n total += lineItem.getPrice();\n lineItem.setOrdered(true);\n this.getAccount().setBalance(this.getAccount().getBalance() - lineItem.getPrice());\n }\n }",
"public void printVenueCharges (Event _event) {\n\t}",
"public void addAssertions(Assertions asserts) {\r\n if (getCommandLine().getAssertions() != null) {\r\n throw new BuildException(\"Only one assertion declaration is allowed\");\r\n }\r\n getCommandLine().setAssertions(asserts);\r\n }",
"@Override\n public void handle( MouseEvent e)\n {\n if( tradeBankGroup.isVisible() || domesticTradeGroup.isVisible())\n return;\n System.out.println(\"Attempt to build edge at index \" + index);\n // Line l = (Line) e.getSource();\n // l.setStroke(Color.RED);\n \n if( construct_type == Construction_type.ROAD){\n if( mainController.buildRoad(index) ){\n Line l = (Line) e.getSource();\n l.setStroke(mainController.getCurrentPlayerColor());\n refreshResources();\n refreshScores();\n }\n }\n \n }",
"public void setFields(List<AccountingLineViewField> fields) {\n this.fields = fields;\n }",
"public void CHECK_IRQ_LINES() {\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d irq_lines_en :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n if (konami.irq_state[KONAMI_IRQ_LINE] != CLEAR_LINE || konami.irq_state[KONAMI_FIRQ_LINE] != CLEAR_LINE) {\n konami.int_state &= ~KONAMI_SYNC; /* clear SYNC flag */\n\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d irq_lines_0 :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n }\n if (konami.irq_state[KONAMI_FIRQ_LINE] != CLEAR_LINE && ((konami.cc & CC_IF) == 0)) {\n /* fast IRQ */\n /* HJB 990225: state already saved by CWAI? */\n if ((konami.int_state & KONAMI_CWAI) != 0) {\n konami.int_state &= ~KONAMI_CWAI; /* clear CWAI */\n\n konami.extra_cycles += 7;\t\t /* subtract +7 cycles */\n\n } else {\n konami.cc &= ~CC_E;\t\t\t\t/* save 'short' state */\n\n PUSHWORD(konami.pc);\n PUSHBYTE(konami.cc);\n konami.extra_cycles += 10;\t/* subtract +10 cycles */\n\n }\n konami.cc |= CC_IF | CC_II;\t\t\t/* inhibit FIRQ and IRQ */\n\n konami.pc = RM16(0xfff6);\n change_pc16(konami.pc);\n konami.irq_callback.handler(KONAMI_FIRQ_LINE);\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d irq_lines_a :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n } else if (konami.irq_state[KONAMI_IRQ_LINE] != CLEAR_LINE && ((konami.cc & CC_II) == 0)) {\n /* standard IRQ */\n /* HJB 990225: state already saved by CWAI? */\n if ((konami.int_state & KONAMI_CWAI) != 0) {\n konami.int_state &= ~KONAMI_CWAI; /* clear CWAI flag */\n\n konami.extra_cycles += 7;\t\t /* subtract +7 cycles */\n\n } else {\n konami.cc |= CC_E; \t\t\t\t/* save entire state */\n\n PUSHWORD(konami.pc);\n PUSHWORD(konami.u);\n PUSHWORD(konami.y);\n PUSHWORD(konami.x);\n PUSHBYTE(konami.dp);\n PUSHBYTE(B());\n PUSHBYTE(A());\n PUSHBYTE(konami.cc);\n konami.extra_cycles += 19;\t /* subtract +19 cycles */\n\n }\n konami.cc |= CC_II;\t\t\t\t\t/* inhibit IRQ */\n\n konami.pc = RM16(0xfff8);\n change_pc16(konami.pc);\n konami.irq_callback.handler(KONAMI_IRQ_LINE);\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d irq_lines_b :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n }\n\n }",
"public List<String> getAirlines(){\n List<String> airlines = new LinkedList<String>();\n for (Flight flight : flights) {\n airlines.add(flight.getAirlineCode());\n }\n return airlines;\n }",
"@Test\n public void loanWithCahargesAndUpfrontAccrualAccountingEnabled() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n Integer percentageDisbursementCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanDisbursementJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\"));\n addCharges(charges, percentageDisbursementCharge, \"1\", null);\n\n Integer percentageSpecifiedDueDateCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", false));\n addCharges(charges, percentageSpecifiedDueDateCharge, \"1\", \"29 September 2011\");\n\n Integer percentageInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", false));\n addCharges(charges, percentageInstallmentFee, \"1\", \"29 September 2011\");\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n Assertions.assertNotNull(collateralId);\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n Assertions.assertNotNull(clientCollateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanProductID = createLoanProduct(false, ACCRUAL_UPFRONT, assetAccount, incomeAccount, expenseAccount,\n overpaymentAccount);\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"12,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n verifyLoanRepaymentSchedule(loanSchedule);\n\n List<HashMap> loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n validateCharge(percentageSpecifiedDueDateCharge, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n\n // check for disbursement fee\n HashMap disbursementDetail = loanSchedule.get(0);\n validateNumberForEqual(\"120.00\", String.valueOf(disbursementDetail.get(\"feeChargesDue\")));\n\n // check for charge at specified date and installment fee\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"149.11\", String.valueOf(firstInstallment.get(\"feeChargesDue\")));\n\n // check for installment fee\n HashMap secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"29.70\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"605.94\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 September 2011\", assetAccountInitialEntry);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 September 2011\",\n new JournalEntry(Float.parseFloat(\"605.94\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"0.0\", \"120.00\", \"0.0\");\n\n LOG.info(\"-------------Make repayment 1-----------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"3300.60\"), loanID);\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"0.00\", \"120.00\", \"0.0\");\n validateCharge(percentageSpecifiedDueDateCharge, loanCharges, \"1\", \"0.00\", \"120.0\", \"0.0\");\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"90.89\", \"29.11\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentageSpecifiedDueDateCharge), \"29 October 2011\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"149.70\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n LOG.info(\"----------- Waive installment charge for 2nd installment ---------\");\n LOAN_TRANSACTION_HELPER.waiveChargesForLoan(loanID, (Integer) getloanCharge(percentageInstallmentFee, loanCharges).get(\"id\"),\n LoanTransactionHelper.getWaiveChargeJSON(String.valueOf(2)));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"61.19\", \"29.11\", \"29.70\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"29.7\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"29.7\"), JournalEntry.TransactionType.DEBIT));\n\n LOG.info(\"----------Make repayment 2------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3271.49\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3271.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3271.49\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"--------------Waive interest---------------\");\n LOAN_TRANSACTION_HELPER.waiveInterest(\"20 December 2011\", String.valueOf(61.79), loanID);\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"60.59\", String.valueOf(thirdInstallment.get(\"interestOutstanding\")));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.DEBIT));\n\n Integer percentagePenaltySpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", true));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentagePenaltySpecifiedDueDate), \"29 September 2011\", \"1\"));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentagePenaltySpecifiedDueDate, loanCharges, \"1\", \"0.00\", \"120.0\", \"0.0\");\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"120\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n // checking the journal entry as applied penalty has been collected\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"----------Make repayment 3 advance------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3301.78\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3301.78\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3301.78\"), JournalEntry.TransactionType.CREDIT));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentagePenaltySpecifiedDueDate), \"10 January 2012\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"120\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3240.58\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Pay applied penalty ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"120\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"0\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3120.58\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Make over payment for repayment 4 ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3220.58\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"3220.58\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3120.58\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForLiabilityAccount(overpaymentAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.CREDIT));\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.getLoanDetail(REQUEST_SPEC, RESPONSE_SPEC, loanID, \"status\");\n LoanStatusChecker.verifyLoanAccountIsOverPaid(loanStatusHashMap);\n }",
"Iterable<Airline> getAirlines();",
"public Cursor getEditedExpenseLineItemCursor() {\n return getContext().getContentResolver().query(\n ExpenseEntry.CONTENT_URI,\n null,\n ExpenseEntry.COLUMN_SYNC_STATUS + \" =? \" +\n //ReportEntry.COLUMN_SYNC_STATUS + \" =? \" +\n \" AND \" + ExpenseEntry.COLUMN_EXPENSE_ID + \"!=?\",\n new String[] {\n SyncStatus.EDITED_REPORT.toString(),\n // SyncStatus.SYNC_IN_PROGRESS.toString(),\n Constants.INTERNAL_EXPENSE_LINE_ITEM_ID\n },\n null\n );\n }",
"@Override\n public final void makeOtherEntries(final Map<String, Object> pAddParam,\n final GoodsLoss pEntity, final boolean pIsNew) throws Exception {\n @SuppressWarnings(\"unchecked\")\n Map<String, String[]> parameterMap = (Map<String, String[]>) pAddParam.\n get(\"parameterMap\");\n if (parameterMap.get(\"actionAdd\") != null\n && \"makeAccEntries\".equals(parameterMap.get(\"actionAdd\")[0])\n && pEntity.getReversedId() != null) {\n //reverse none-reversed lines:\n List<GoodsLossLine> reversedLines = getSrvOrm().\n retrieveEntityOwnedlist(GoodsLossLine.class,\n GoodsLoss.class, pEntity.getReversedId());\n for (GoodsLossLine reversedLine : reversedLines) {\n if (reversedLine.getReversedId() == null) {\n GoodsLossLine reversingLine = new GoodsLossLine();\n reversingLine.setIdDatabaseBirth(getSrvOrm().getIdDatabase());\n reversingLine.setReversedId(reversedLine.getItsId());\n reversingLine.setInvItem(reversedLine.getInvItem());\n reversingLine.setUnitOfMeasure(reversedLine.getUnitOfMeasure());\n reversingLine.setItsQuantity(reversedLine.getItsQuantity()\n .negate());\n reversingLine.setIsNew(true);\n reversingLine.setItsOwner(pEntity);\n reversingLine.setDescription(getSrvI18n().getMsg(\"reversed_n\")\n + reversedLine.getIdDatabaseBirth() + \"-\"\n + reversedLine.getItsId()); //local\n getSrvOrm().insertEntity(reversingLine);\n getSrvWarehouseEntry().reverseDraw(pAddParam, reversingLine);\n getSrvCogsEntry().reverseDraw(pAddParam, reversingLine,\n pEntity.getItsDate(), pEntity.getItsId());\n String descr;\n if (reversedLine.getDescription() == null) {\n descr = \"\";\n } else {\n descr = reversedLine.getDescription();\n }\n reversedLine.setDescription(descr + \" \" + getSrvI18n()\n .getMsg(\"reversing_n\") + reversingLine.getIdDatabaseBirth()\n + \"-\" + reversingLine.getItsId());\n reversedLine.setReversedId(reversingLine.getItsId());\n getSrvOrm().updateEntity(reversedLine);\n }\n }\n }\n }",
"public void processInternalBilling(ReturnDocument rdoc) {\r\n\r\n if (ObjectUtils.isNull(rdoc.getOrderDocument())\r\n || !this.returnOrderBillingDao.hasAccountsForBilling(rdoc.getDocumentNumber()))\r\n return;\r\n\r\n String docNumber = rdoc.getDocumentNumber();\r\n\r\n String warehouseCode = rdoc.getOrderDocument().getWarehouseCd();\r\n\r\n Map<String, List<FinancialInternalBillingItem>> returnedOrderLines = this.returnOrderBillingDao\r\n .getReturnedOrderLines(docNumber);\r\n Set<String> keys = returnedOrderLines.keySet();\r\n Map<String, List<FinancialAccountingLine>> returnedAccountingLines = getReturnBillingAccountingLines(rdoc);\r\n Warehouse warehouse = rdoc.getOrderDocument().getWarehouse();\r\n\r\n if (warehouse == null)\r\n warehouse = StoresPersistableBusinessObject.getObjectByPrimaryKey(Warehouse.class,\r\n warehouseCode);\r\n\r\n for (String key : keys) {\r\n List<FinancialInternalBillingItem> lineItems = returnedOrderLines.get(key);\r\n List<FinancialAccountingLine> acctLines = returnedAccountingLines.get(key);\r\n if (warehouse != null && warehouse.isActive()) {\r\n FinancialCapitalAssetInformation capitalAssetInformation = null;\r\n String astInfoId = null;\r\n if (key.contains(\"-\") && (astInfoId = key.split(\"-\")[1]) != null) {\r\n capitalAssetInformation = new FinancialCapitalAssetInformation();\r\n MMCapitalAssetInformation assetInfo = SpringContext.getBean(\r\n BusinessObjectService.class).findBySinglePrimaryKey(\r\n MMCapitalAssetInformation.class, astInfoId);\r\n if (assetInfo != null) {\r\n adapt(assetInfo, capitalAssetInformation);\r\n List<MMCapitalAssetInformationDetail> assetInformationDetails = assetInfo\r\n .getCapitalAssetInformationDetails();\r\n if (assetInformationDetails != null) {\r\n for (MMCapitalAssetInformationDetail source : assetInformationDetails) {\r\n FinancialCapitalAssetInformationDetail target = new FinancialCapitalAssetInformationDetail();\r\n adapt(source, target);\r\n capitalAssetInformation.getCapitalAssetInformationDetails().add(\r\n target);\r\n }\r\n }\r\n }\r\n }\r\n DocumentHeader ibDocHeader = processInternalBilling(warehouse, lineItems,\r\n acctLines, capitalAssetInformation);\r\n if (ibDocHeader != null) {\r\n String ibDocNumber = ibDocHeader.getDocumentNumber();\r\n if (astInfoId != null) {\r\n for (ReturnDetail detail : rdoc.getReturnDetails()) {\r\n if (detail.getOrderDetailId().toString().equals(astInfoId)) {\r\n detail.setCreditDocumentNumber(ibDocNumber);\r\n }\r\n }\r\n }\r\n else {\r\n for (ReturnDetail detail : rdoc.getReturnDetails()) {\r\n detail.setCreditDocumentNumber(ibDocNumber);\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n // LOG error here\r\n LOG.warn(\"Warehouse \" + lineItems.get(0).getWarehouseCode()\r\n + \" is not valid, so batch did not post charges to the depts\");\r\n }\r\n }\r\n\r\n }",
"public static void deleteEncumLines(EfinBudgetManencum encum, AccountingCombination com,\n EscmProposalMgmt proposal, EscmProposalmgmtLine proposalmgmtline) {\n EfinBudgetManencumlines line = null;\n List<EfinBudgetManencumlines> lineList = new ArrayList<EfinBudgetManencumlines>();\n List<EscmProposalmgmtLine> propsallnLs = null;\n try {\n\n OBQuery<EfinBudgetManencumlines> delLineQry = OBDal.getInstance()\n .createQuery(EfinBudgetManencumlines.class, \" as e where e.manualEncumbrance.id=:encumID \"\n + \" and e.accountingCombination.id=:acctID and e.isauto='Y' \");\n delLineQry.setNamedParameter(\"encumID\", encum.getId());\n delLineQry.setNamedParameter(\"acctID\", com.getId());\n delLineQry.setMaxResult(1);\n lineList = delLineQry.list();\n if (lineList.size() > 0) {\n line = lineList.get(0);\n log.debug(\"line:\" + line);\n if (proposal != null) {\n OBQuery<EscmProposalmgmtLine> propsalln = OBDal.getInstance().createQuery(\n EscmProposalmgmtLine.class,\n \" as e where e.escmProposalmgmt.id=:proposalId and e.efinBudgmanencumline.id=:encumLnId\");\n propsalln.setNamedParameter(\"proposalId\", proposal.getId());\n propsalln.setNamedParameter(\"encumLnId\", line.getId());\n propsallnLs = propsalln.list();\n } else {\n OBQuery<EscmProposalmgmtLine> propsalln = OBDal.getInstance().createQuery(\n EscmProposalmgmtLine.class,\n \" as e where e.id=:proposalLineId and e.efinBudgmanencumline.id=:encumLnId\");\n propsalln.setNamedParameter(\"proposalLineId\", proposalmgmtline.getId());\n propsalln.setNamedParameter(\"encumLnId\", line.getId());\n propsallnLs = propsalln.list();\n }\n\n if (propsallnLs.size() > 0) {\n for (EscmProposalmgmtLine prosalline : propsallnLs) {\n prosalline.setEfinBudgmanencumline(null);\n OBDal.getInstance().save(prosalline);\n }\n }\n encum.getEfinBudgetManencumlinesList().remove(line);\n encum.setDocumentStatus(\"DR\");\n OBDal.getInstance().remove(line);\n }\n encum.setDocumentStatus(\"CO\");\n OBDal.getInstance().flush();\n } catch (Exception e) {\n OBDal.getInstance().rollbackAndClose();\n log.error(\"Exception in deleteEncumLines \" + e, e);\n }\n }",
"@Override\n @XmlElement(name = \"onLine\")\n public Collection<OnlineResource> getOnLines() {\n return onLines = nonNullCollection(onLines, OnlineResource.class);\n }",
"protected List<String> defaultKeyOfExpenseTransferAccountingLine() {\n List<String> defaultKey = new ArrayList<String>();\n\n defaultKey.add(KFSPropertyConstants.POSTING_YEAR);\n defaultKey.add(KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE);\n defaultKey.add(KFSPropertyConstants.ACCOUNT_NUMBER);\n defaultKey.add(KFSPropertyConstants.SUB_ACCOUNT_NUMBER);\n\n defaultKey.add(KFSPropertyConstants.BALANCE_TYPE_CODE);\n defaultKey.add(KFSPropertyConstants.FINANCIAL_OBJECT_CODE);\n defaultKey.add(KFSPropertyConstants.FINANCIAL_SUB_OBJECT_CODE);\n\n defaultKey.add(KFSPropertyConstants.EMPLID);\n defaultKey.add(KFSPropertyConstants.POSITION_NUMBER);\n\n defaultKey.add(LaborPropertyConstants.PAYROLL_END_DATE_FISCAL_YEAR);\n defaultKey.add(LaborPropertyConstants.PAYROLL_END_DATE_FISCAL_PERIOD_CODE);\n\n return defaultKey;\n }",
"public void addCommissionAccounts(CommissionAccount commissionAccount);",
"void getAllLines(Vector<Integer> lineIDs,Vector<Integer> lineDepIDs, Vector<String> lineCodes, String empresa);",
"public void processAddLine() {\n AppTextColorEnterDialogSingleton dialog = AppTextColorEnterDialogSingleton.getSingleton();\n\n // POP UP THE DIALOG\n dialog.show(\"Add Metro Line\", \"Enter Name and Color of the Metro Line:\", Color.web(\"#cccc33\"));\n\n // IF THE USER SAID YES\n if (dialog.getSelection()) {\n // CHANGE THE CURSOR\n Scene scene = app.getGUI().getPrimaryScene();\n scene.setCursor(Cursor.CROSSHAIR);\n \n // CHANGE THE STATE\n dataManager.setState(mmmState.ADD_LINE_MODE);\n }\n }",
"public static void updateAutoEncumbrancechanges(EscmProposalMgmt proposalmgmt, boolean isCancel) {\n try {\n OBContext.setAdminMode();\n BigDecimal amt = BigDecimal.ZERO, amtTemp = BigDecimal.ZERO;\n List<EscmProposalmgmtLine> prolineList = proposalmgmt.getEscmProposalmgmtLineList();\n EscmProposalMgmt baseProposalObj = proposalmgmt.getEscmBaseproposal();\n List<EscmProposalmgmtLine> baseProlineList;\n BigDecimal diff = BigDecimal.ZERO;\n\n // checking with propsal line\n for (EscmProposalmgmtLine proposalline : prolineList) {\n if (!proposalline.isSummary()\n && (proposalline.getStatus() == null || !proposalline.getStatus().equals(\"CL\"))) {\n EfinBudgetManencumlines encline = proposalline.getEfinBudgmanencumline();\n if (isCancel) {\n\n if (encline.getManualEncumbrance().getAppliedAmount().compareTo(BigDecimal.ZERO) == 1) {\n\n if (proposalmgmt.getEscmBaseproposal() == null) {\n\n amt = encline.getAPPAmt().subtract(proposalline.getLineTotal());\n encline.setAPPAmt(amt);\n amtTemp = amtTemp.add(proposalline.getLineTotal());\n if (encline.getManualEncumbrance().getAppliedAmount().subtract(amtTemp)\n .compareTo(BigDecimal.ZERO) == 0 && baseProposalObj == null)\n encline.getManualEncumbrance().setDocumentStatus(\"CA\");\n }\n if (proposalmgmt.getEscmBaseproposal() == null)\n BidManagementDAO.insertEncumbranceModification(encline,\n proposalline.getLineTotal().negate(), null, \"PRO\", null, null);\n } else {\n // This else is for the particular case (proposal->po, po cancel and proposal\n // cancel)\n encline.getManualEncumbrance().setDocumentStatus(\"CA\");\n break;\n }\n\n } else {\n\n if (baseProposalObj == null) {\n if (encline != null) {\n encline.getManualEncumbrance().setDocumentStatus(\"DR\");\n // remove associated proposal line refernce\n if (encline.getEscmProposalmgmtLineEMEfinBudgmanencumlineIDList().size() > 0) {\n for (EscmProposalmgmtLine proLineList : encline\n .getEscmProposalmgmtLineEMEfinBudgmanencumlineIDList()) {\n proLineList.setEfinBudgmanencumline(null);\n OBDal.getInstance().save(proLineList);\n }\n }\n\n OBDal.getInstance().remove(encline);\n }\n }\n }\n /*\n * Trigger changes EfinEncumbarnceRevision.updateBudgetInquiry(encline,\n * encline.getManualEncumbrance(), proposalline.getLineTotal().negate());\n */\n }\n }\n\n // for cancel case if there exist a previous version, then update the encumbrance based on\n // the previous version values (Adding new records in the modification tab based on the new\n // and old proposal)\n if (isCancel) {\n if (baseProposalObj != null) {\n for (EscmProposalmgmtLine newproposalline : prolineList) {\n if (!newproposalline.isSummary()) {\n if (newproposalline.getStatus() == null) {\n EfinBudgetManencumlines encline = newproposalline.getEfinBudgmanencumline();\n diff = newproposalline.getLineTotal()\n .subtract(newproposalline.getEscmOldProposalline() != null\n ? newproposalline.getEscmOldProposalline().getLineTotal()\n : BigDecimal.ZERO);\n if (diff.compareTo(BigDecimal.ZERO) != 0) {\n ProposalManagementActionMethod.insertEncumbranceModification(encline,\n diff.negate(), null, false);\n encline.setAPPAmt(encline.getAPPAmt().add(diff.negate()));\n OBDal.getInstance().save(encline);\n }\n } else if (newproposalline.getStatus() != null\n && newproposalline.getEscmOldProposalline() != null\n && newproposalline.getEscmOldProposalline().getStatus() == null) {\n EfinBudgetManencumlines encline = newproposalline.getEfinBudgmanencumline();\n diff = newproposalline.getEscmOldProposalline() != null\n ? newproposalline.getEscmOldProposalline().getLineTotal()\n : BigDecimal.ZERO;\n if (diff.compareTo(BigDecimal.ZERO) != 0) {\n ProposalManagementActionMethod.insertEncumbranceModification(encline, diff, null,\n false);\n encline.setAPPAmt(encline.getAPPAmt().add(diff));\n OBDal.getInstance().save(encline);\n }\n }\n }\n }\n }\n }\n OBDal.getInstance().flush();\n } catch (final Exception e) {\n log.error(\"Exception in updateManualEncumAppAmt after Reject : \", e);\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"public List<IEntranceValidation> validations(){\n\t\tList<IEntranceValidation> validations = new ArrayList<>();\n\t\tvalidations.add(new ValidationDayMonday(new DateToday()));\n\t\tvalidations.add(new ValidationDisplacement());\n\t\tvalidations.add(new ValidationTires());\n\t\treturn validations;\n\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tmCurriculumVitaeInterface.onAddAwards();\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tmCurriculumVitaeInterface.onAddAwards();\n\t\t\t\t\t}",
"public List<OrderLine> getOrderLineList() {\n\t\tHttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance()\n\t\t\t\t.getExternalContext().getRequest();\n\t\tHttpSession session = ((HttpServletRequest) request).getSession(false);\n\t\t\n\t\t//recuperation du login\n\t\tlogin = (session != null) ? (LoginMB) session.getAttribute(\"loginMB\") : null;\n\t\t//recuperation du user\n\t\tSystem.out.println(\"login user from session : \"+login.getUser().getIdPerson());\n\t\torderList = orderBu.getLastOrder(login.getUser().getIdPerson());\n\t\t\n\t\tSet<OrderLine> set = new HashSet<OrderLine>();\n\t\tset = orderList.get(orderList.size()-1).getOrderLines();\n\t\torderLineList = new ArrayList<OrderLine>(set);\n\t\tsetTotal(orderList.get(orderList.size()-1).getTotalAmount());\n\t\t\n\t\t\n\t\treturn orderLineList;\n\t}",
"private String E19History() {\n StringBuilder buffer = new StringBuilder();\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_HISTORY + \"\\n\\n\");\n\n int count1 = countNewlines(buffer.toString());\n\n buffer.append(\n \" PUBLICATION/LOCATION OF RECORDS STARTING DATE ENDING DATE\\n\");\n buffer.append(\n \" ------------------------------- ------------- -----------\\n\");\n\n int count2 = countNewlines(buffer.toString()) - count1;\n\n int available = getLinesPerPage() - count1 - count2 - 5;\n int avail = available;\n int loop = 0;\n int needed = 0;\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 3);\n\n for (Pub pub : data.getPubList()) {\n String beginDate = sdf.format(pub.getBegin());\n String endDate = \" \";\n if (pub.getEnd() != null) {\n endDate = sdf.format(pub.getEnd());\n }\n String tmp1 = String.format(\" %-25s %7s%10s %10s\\n\",\n pub.getPpub(), \" \", beginDate, endDate);\n needed = 1;\n\n if (needed <= avail) {\n buffer.append(tmp1);\n avail = avail - needed;\n } else {\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n // Do footer\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"))\n .getTime();\n String footer = createFooter(data, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_HISTORY, \"HISTORY\",\n null, E19_STANDARD_LEFT_MARGIN);\n\n buffer.append(footer);\n\n // Do column header\n buffer.append(\n \" PUBLICATION/LOCATION OF RECORDS STARTING DATE ENDING DATE\\n\");\n buffer.append(\n \" ------------------------------- ------------- -----------\\n\");\n\n avail = available + count1;\n loop++;\n }\n }\n\n buffer.append(\"\\n\\n\");\n\n buffer.append(\n \" TYPE OF GAGE OWNER STARTING DATE ENDING DATE\\n\");\n buffer.append(\n \" ------------ ----- ------------- -----------\\n\");\n\n available = getLinesPerPage() - count1 - count2 - 5;\n avail = available;\n loop = 0;\n TextReportData dataGage = TextReportDataManager.getInstance()\n .getGageQueryData(lid);\n ArrayList<Gage> gageList = dataGage.getGageList();\n\n for (Gage gage : gageList) {\n String beginDate = sdf.format(gage.getBegin());\n String endDate = \" \";\n if (gage.getEnd() != null) {\n endDate = sdf.format(gage.getEnd());\n }\n\n String tmp1 = String.format(\n \" %-11s %14s%-11s %10s %10s\\n\", gage.getType(),\n \" \", gage.getOwner(), beginDate, endDate);\n needed = 1;\n\n if (needed <= avail) {\n buffer.append(tmp1);\n avail = avail - needed;\n } else if (needed > avail) {\n // try to place FOOTER at bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n // do footer\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"))\n .getTime();\n String footer = createFooter(dataGage, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_HISTORY, \"HISTORY\",\n null, E19_STANDARD_LEFT_MARGIN);\n\n buffer.append(footer);\n\n // Do column header\n buffer.append(\n \" TYPE OF GAGE OWNER STARTING DATE ENDING DATE\\n\");\n buffer.append(\n \" ------------ ----- ------------- -----------\\n\");\n\n avail = available + count1;\n loop++;\n }\n }\n\n buffer.append(\"\\n\\n\");\n\n buffer.append(\n \" ZERO ELEVATION STARTING DATE\\n\");\n buffer.append(\n \" -------------- -------------\\n\");\n\n available = getLinesPerPage() - count1 - count2 - 5;\n avail = available;\n loop = 0;\n\n for (Datum datum : data.getDatumList()) {\n String elevation = \" \";\n if (datum.getElevation() != -999) {\n elevation = String.format(\"%8.3f\", datum.getElevation());\n }\n\n String date = sdf.format(datum.getDate());\n\n String tmp1 = String.format(\" %s %24s%10s\\n\", elevation,\n \" \", date);\n\n needed = 1;\n\n if (needed <= avail) {\n buffer.append(tmp1);\n\n avail = avail - needed;\n } else if (needed > avail) {\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n // Do footer.\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"))\n .getTime();\n String footer = createFooter(dataGage, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_HISTORY, \"HISTORY\",\n null, E19_STANDARD_LEFT_MARGIN);// ????\n\n buffer.append(footer);\n\n // Do column header.\n buffer.append(\n \" ZERO ELEVATION STARTING DATE\\n\");\n buffer.append(\n \" -------------- -------------\\n\");\n\n avail = available + count1;\n }\n }\n\n buffer.append(\"\\n\\n\");\n\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n // Do footer.\n String footer = createFooter(dataGage, E19_RREVISE_TYPE,\n sdf.format(new Date()), \"NWS FORM E-19\", E19_HISTORY, \"HISTORY\",\n null, E19_STANDARD_LEFT_MARGIN);\n\n buffer.append(footer);\n\n return buffer.toString();\n }",
"public static Account test() {\r\n\t\tAccount newAccount = createNewAccount(\"[email protected]\", \"Test Account\");\r\n\t\t\r\n\t\t//Create participants - accounts first\r\n\t\tAccount partAccount1 = new Account(\"Manuel\");\r\n\t\tAccount partAccount2 = new Account(\"Tatenda\");\r\n\t\tAccount partAccount3 = new Account(\"Dan\");\r\n\t\tAccount partAccount4 = new Account(\"Kirill\");\r\n\t\t\r\n\t\t//Creates first event - Trip\r\n\t\tnewAccount.createEvent(\"Trip\", \"Short Term\");\r\n\t\t\r\n\t\t//Add participants\r\n\t\tnewAccount.events.get(0).addParticipant(new Participant(partAccount1));\r\n\t\tnewAccount.events.get(0).addParticipant(new Participant(partAccount2));\r\n\t\tnewAccount.events.get(0).addParticipant(new Participant(partAccount3));\r\n\t\tnewAccount.events.get(0).addParticipant(new Participant(partAccount4));\r\n\t\t\r\n\t\tEvent firstEvent = newAccount.events.get(0);\r\n\t\tArrayList<Participant> firstParts = (ArrayList<Participant>) firstEvent.getParticipants();\r\n\t\t\r\n\t\tArrayList<Item> items = new ArrayList<Item>();\r\n\t\titems.add(new Item(\"Bread1\", 10.0));\r\n\t\titems.add(new Item(\"Bread2\", 20.0));\r\n\t\titems.add(new Item(\"Bread3\", 30.0));\r\n\t\titems.add(new Item(\"Bread4\", 40.0));\r\n\t\t\r\n\t\t//Add activities\r\n\t\tfirstEvent.addBalanceChange(new Transaction(\"tmpname1\", firstParts, items));\r\n\t\tfirstEvent.addBalanceChange(new Transaction(\"tmpname2\", firstParts, items));\r\n\t\t//Could add more activities (transactions or payments here)\r\n\t\t\r\n\t\t//Creates second event - Household - and two three activities to it\r\n\t\tnewAccount.createEvent(\"Household\", \"Long Term\");\r\n\t\t\r\n\t\tArrayList<Item> items2 = new ArrayList<Item>();\r\n\t\titems2.add(new Item(\"Meat1\", 10.0));\r\n\t\titems2.add(new Item(\"Meat2\", 20.0));\r\n\t\titems2.add(new Item(\"Meat3\", 30.0));\r\n\t\titems2.add(new Item(\"Meat4\", 40.0));\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Add participants\r\n\t\tnewAccount.events.get(1).addParticipant(new Participant(partAccount1));\r\n\t\tnewAccount.events.get(1).addParticipant(new Participant(partAccount2));\r\n\t\t\r\n\t\t\r\n\t\tEvent secondEvent = newAccount.events.get(1);\r\n\t\tArrayList<Participant> secondParts = (ArrayList<Participant>) secondEvent.getParticipants();\r\n\t\t\r\n\t\t//Add activities\r\n\t\tsecondEvent.addBalanceChange(new Transaction(\"tmpname3\", secondParts, items2));\r\n\t\tsecondEvent.addBalanceChange(new Transaction(\"tmpname4\", secondParts, items2));\r\n\t\t\r\n\t\tnewAccount.updatePastRelations();\r\n\t\t\r\n\t\treturn newAccount;\r\n\t}",
"public static void LineCreate(WebDriver driver) throws Exception\n\t\n\t{\n\t\ttry {\n\t\t\tLine_Page_Objects.Left_Menu_Line(driver).click();\n\t\t\tLine_Page_Objects.waitFor2000();\n\t\t\tLine_Page_Objects.Site_Selection(driver).click();\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.ClickPartialLinkText(driver, ExcelUtils.getCellData(1, 6));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.Add_Line(driver).click();\n\t\t\tLine_Page_Objects.waitFor2000();\n\t\t\tLine_Page_Objects.DirectoryNum_Drop(driver).click();\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.ClickLinkText(driver, ExcelUtils.getCellData(1, 0));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.Route_Partition_Drop(driver).click();\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.ClickLinkText(driver, ExcelUtils.getCellData(1, 1));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.Description_Txt(driver).sendKeys(ExcelUtils.getCellData(1, 2));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.Calling_Search_Space_Name_Drop(driver).click();\n\t\t\tLine_Page_Objects.waitFor2000();\n\t\t\tLine_Page_Objects.ClickLinkText(driver, ExcelUtils.getCellData(1, 3));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.VoiceMail_Drop(driver).click();\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.ClickLinkText(driver, ExcelUtils.getCellData(1, 4));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.Auto_Answer_Drop(driver).click();\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.ClickLinkText(driver, ExcelUtils.getCellData(1, 5));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.Save_Button(driver).click();\n\t\t\tLine_Page_Objects.waitFor2000();\n\t\t\tLine_Page_Objects.SaveSuccessMsg(driver).getText().equalsIgnoreCase(\"Line create request submitted successfully\");\n\t\t\tLine_Page_Objects.waitFor3000();\n\t\t\tReporter.reportStep(\"Line Create Passed\", \"PASS\");\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\tReporter.reportStep(\"Line Create Failed\", \"FAIL\");\n\t\t}\n\t}",
"ImmutableList<SchemaOrgType> getAwardsList();",
"@Test\n public void loanWithCahargesOfTypeAmountPlusInterestPercentageAndUpfrontAccrualAccountingEnabled() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n Integer amountPlusInterestPercentageDisbursementCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanDisbursementJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT_AND_INTEREST, \"1\"));\n addCharges(charges, amountPlusInterestPercentageDisbursementCharge, \"1\", null);\n\n Integer amountPlusInterestPercentageSpecifiedDueDateCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC, ChargesHelper\n .getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT_AND_INTEREST, \"1\", false));\n\n Integer amountPlusInterestPercentageInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT_AND_INTEREST, \"1\", false));\n addCharges(charges, amountPlusInterestPercentageInstallmentFee, \"1\", \"29 September 2011\");\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanProductID = createLoanProduct(false, ACCRUAL_UPFRONT, assetAccount, incomeAccount, expenseAccount,\n overpaymentAccount);\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"12,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n verifyLoanRepaymentSchedule(loanSchedule);\n\n List<HashMap> loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageDisbursementCharge, loanCharges, \"1\", \"126.06\", \"0.0\", \"0.0\");\n validateCharge(amountPlusInterestPercentageInstallmentFee, loanCharges, \"1\", \"126.04\", \"0.0\", \"0.0\");\n\n // check for disbursement fee\n HashMap disbursementDetail = loanSchedule.get(0);\n validateNumberForEqual(\"126.06\", String.valueOf(disbursementDetail.get(\"feeChargesDue\")));\n\n // check for charge at specified date and installment fee\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"31.51\", String.valueOf(firstInstallment.get(\"feeChargesDue\")));\n\n // check for installment fee\n HashMap secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"31.51\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"605.94\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"126.06\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"126.04\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 September 2011\", assetAccountInitialEntry);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 September 2011\",\n new JournalEntry(Float.parseFloat(\"605.94\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"126.06\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"126.04\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper.getSpecifiedDueDateChargesForLoanAsJSON(\n String.valueOf(amountPlusInterestPercentageSpecifiedDueDateCharge), \"29 September 2011\", \"1\"));\n\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageDisbursementCharge, loanCharges, \"1\", \"0.0\", \"126.06\", \"0.0\");\n validateCharge(amountPlusInterestPercentageSpecifiedDueDateCharge, loanCharges, \"1\", \"126.06\", \"0.0\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"29 September 2011\",\n new JournalEntry(Float.parseFloat(\"126.06\"), JournalEntry.TransactionType.DEBIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"29 September 2011\",\n new JournalEntry(Float.parseFloat(\"126.06\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"-------------Make repayment 1-----------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"3309.06\"), loanID);\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageDisbursementCharge, loanCharges, \"1\", \"0.00\", \"126.06\", \"0.0\");\n validateCharge(amountPlusInterestPercentageSpecifiedDueDateCharge, loanCharges, \"1\", \"0.00\", \"126.06\", \"0.0\");\n validateCharge(amountPlusInterestPercentageInstallmentFee, loanCharges, \"1\", \"94.53\", \"31.51\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3309.06\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3309.06\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper.getSpecifiedDueDateChargesForLoanAsJSON(\n String.valueOf(amountPlusInterestPercentageSpecifiedDueDateCharge), \"29 October 2011\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"157.57\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n LOG.info(\"----------- Waive installment charge for 2nd installment ---------\");\n LOAN_TRANSACTION_HELPER.waiveChargesForLoan(loanID,\n (Integer) getloanCharge(amountPlusInterestPercentageInstallmentFee, loanCharges).get(\"id\"),\n LoanTransactionHelper.getWaiveChargeJSON(String.valueOf(2)));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageInstallmentFee, loanCharges, \"1\", \"63.02\", \"31.51\", \"31.51\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"31.51\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"31.51\"), JournalEntry.TransactionType.DEBIT));\n\n LOG.info(\"----------Make repayment 2------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3277.55\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3277.55\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3277.55\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"--------------Waive interest---------------\");\n LOAN_TRANSACTION_HELPER.waiveInterest(\"20 December 2011\", String.valueOf(61.79), loanID);\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"60.59\", String.valueOf(thirdInstallment.get(\"interestOutstanding\")));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.DEBIT));\n\n Integer amountPlusInterestPercentagePenaltySpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", true));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper.getSpecifiedDueDateChargesForLoanAsJSON(\n String.valueOf(amountPlusInterestPercentagePenaltySpecifiedDueDate), \"29 September 2011\", \"1\"));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentagePenaltySpecifiedDueDate, loanCharges, \"1\", \"0.0\", \"120.0\", \"0.0\");\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"120\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n // checking the journal entry as applied penalty has been collected\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3309.06\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3309.06\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"----------Make repayment 3 advance------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3303\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3303\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3303\"), JournalEntry.TransactionType.CREDIT));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper.getSpecifiedDueDateChargesForLoanAsJSON(\n String.valueOf(amountPlusInterestPercentagePenaltySpecifiedDueDate), \"10 January 2012\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"120\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3241.19\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Pay applied penalty ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"120\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"0\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3121.19\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Make over payment for repayment 4 ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3221.61\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"3221.61\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3121.19\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForLiabilityAccount(overpaymentAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"100.42\"), JournalEntry.TransactionType.CREDIT));\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.getLoanDetail(REQUEST_SPEC, RESPONSE_SPEC, loanID, \"status\");\n LoanStatusChecker.verifyLoanAccountIsOverPaid(loanStatusHashMap);\n }",
"@EventHandler\n public void on(MoneyWithdrawnEvent event) {\n System.out.println(\"Received Event -> MoneyWithdrawnEvent\");\n }",
"public String arrangeEvents() throws Exception {\n JSONArray scheduledEventList = calObj.retrieveEvents(\"primary\").getJSONArray(\"items\");\n JSONArray unScheduledEventList = calObj.retrieveEvents(this.user.getCalId()).getJSONArray(\"items\");\n\n //Filter events for this week\n\n\n //Make a list of all events\n\n //Prioritise all unscheduled events\n\n\n //Send the list to client to display\n String events = \"\";\n for (int i = 0; i < scheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = scheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n // Unscheduled events set in bot created aPAS calendar\n for (int i = 0; i < unScheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = unScheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n return events;\n }",
"org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine getExternalOrderLineArray(int i);",
"public void listReceivedEvents() {\r\n for (Event event : receivedEvents) {\r\n System.out.print(event);\r\n }\r\n }",
"@Test\n\tpublic void RevenueLineItems_26647_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Navigate to RLIs listview, inline edit Sales Stage and verify the Probability and Forecast are changing respectively\n\t\tsugar().revLineItems.navToListView();\n\t\tsugar().revLineItems.listView.updateRecord(1, updateFS1);\n\t\tsugar().revLineItems.listView.verifyField(1, \"salesStage\", (fullFS1.get(\"salesStage\")));\n\t\tsugar().revLineItems.listView.verifyField(1, \"probability\", (fullFS1.get(\"probability\")));\n\t\tsugar().revLineItems.listView.verifyField(1, \"forecast\", (fullFS1.get(\"forecast\")));\n\n\t\tsugar().revLineItems.listView.updateRecord(2, updateFS2);\n\t\tsugar().revLineItems.listView.verifyField(2, \"salesStage\", fullFS2.get(\"salesStage\"));\n\t\tsugar().revLineItems.listView.verifyField(2, \"probability\", fullFS2.get(\"probability\"));\n\t\tsugar().revLineItems.listView.verifyField(2, \"forecast\", fullFS2.get(\"forecast\"));\n\n\t\tVoodooUtils.voodoo.log.info(testName + \"complete.\");\n\t}",
"public List<EditConfigRequest> createInternalEditRequests(EditConfigRequest sourceRequest, NetconfClientInfo clientInfo, DSValidationContext validationContext) throws GetAttributeException;"
]
| [
"0.6695982",
"0.6467981",
"0.6340381",
"0.5905387",
"0.5765996",
"0.55381894",
"0.5536641",
"0.54553413",
"0.5405989",
"0.5260336",
"0.5254903",
"0.5192552",
"0.5063615",
"0.5055233",
"0.50185937",
"0.48194987",
"0.47514805",
"0.4743744",
"0.46802664",
"0.46767944",
"0.46724248",
"0.46703085",
"0.46702537",
"0.46675438",
"0.4666903",
"0.4649142",
"0.4623366",
"0.46159256",
"0.46124506",
"0.46101618",
"0.4604343",
"0.45923352",
"0.45777792",
"0.45530736",
"0.45347917",
"0.45273995",
"0.446946",
"0.44574893",
"0.4441733",
"0.44341463",
"0.44167015",
"0.44130594",
"0.4406596",
"0.44035256",
"0.43857855",
"0.4381899",
"0.43717116",
"0.437141",
"0.43671858",
"0.4350471",
"0.43466583",
"0.43437976",
"0.43400648",
"0.43381953",
"0.43288717",
"0.43286842",
"0.43282557",
"0.43281874",
"0.43262136",
"0.4325034",
"0.4324507",
"0.43233538",
"0.43169585",
"0.43161052",
"0.43023956",
"0.42923602",
"0.42886856",
"0.42883694",
"0.42852452",
"0.42804408",
"0.4278216",
"0.42740434",
"0.4269358",
"0.42668694",
"0.42634898",
"0.42608047",
"0.4258531",
"0.42415544",
"0.4237387",
"0.42309564",
"0.42301115",
"0.4226789",
"0.42157492",
"0.42087117",
"0.42009342",
"0.4187606",
"0.41848314",
"0.41848314",
"0.41836503",
"0.41827518",
"0.41821444",
"0.41676223",
"0.41659147",
"0.41655087",
"0.41631034",
"0.4157601",
"0.4157502",
"0.4156249",
"0.4153094",
"0.41426048"
]
| 0.7478397 | 0 |
This method gets the Persisted advance Accounting Lines that will be used in comparisons | protected List getPersistedAdvanceAccountingLinesForComparison() {
return SpringContext.getBean(AccountingLineService.class).getByDocumentHeaderIdAndLineType(getAdvanceAccountingLineClass(), getDocumentNumber(), TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected List generateEventsForAdvanceAccountingLines(List<TemSourceAccountingLine> persistedAdvanceAccountingLines, List<TemSourceAccountingLine> currentAdvanceAccountingLines) {\n List events = new ArrayList();\n Map persistedLineMap = buildAccountingLineMap(persistedAdvanceAccountingLines);\n final String errorPathPrefix = KFSConstants.DOCUMENT_PROPERTY_NAME + \".\" + TemPropertyConstants.ADVANCE_ACCOUNTING_LINES;\n final String groupErrorPathPrefix = errorPathPrefix + KFSConstants.ACCOUNTING_LINE_GROUP_SUFFIX;\n\n // (iterate through current lines to detect additions and updates, removing affected lines from persistedLineMap as we go\n // so deletions can be detected by looking at whatever remains in persistedLineMap)\n int index = 0;\n for (TemSourceAccountingLine currentLine : currentAdvanceAccountingLines) {\n String indexedErrorPathPrefix = errorPathPrefix + \"[\" + index + \"]\";\n Integer key = currentLine.getSequenceNumber();\n\n AccountingLine persistedLine = (AccountingLine) persistedLineMap.get(key);\n\n if (persistedLine != null) {\n ReviewAccountingLineEvent reviewEvent = new ReviewAccountingLineEvent(indexedErrorPathPrefix, this, currentLine);\n events.add(reviewEvent);\n\n persistedLineMap.remove(key);\n }\n else {\n // it must be a new addition\n AddAccountingLineEvent addEvent = new AddAccountingLineEvent(indexedErrorPathPrefix, this, currentLine);\n events.add(addEvent);\n }\n }\n\n // detect deletions\n List<TemSourceAccountingLine> remainingPersistedLines = new ArrayList<TemSourceAccountingLine>();\n remainingPersistedLines.addAll(persistedLineMap.values());\n for (TemSourceAccountingLine persistedLine : remainingPersistedLines) {\n DeleteAccountingLineEvent deleteEvent = new DeleteAccountingLineEvent(groupErrorPathPrefix, this, persistedLine, true);\n events.add(deleteEvent);\n }\n return events;\n }",
"@Override\n public List getSourceAccountingLines() {\n return super.getSourceAccountingLines();\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.AppCritLineOfBusiness[] getLinesOfBusiness();",
"public TemSourceAccountingLine getAdvanceAccountingLine(int index) {\n while (getAdvanceAccountingLines().size() <= index) {\n getAdvanceAccountingLines().add(createNewAdvanceAccountingLine());\n }\n return getAdvanceAccountingLines().get(index);\n }",
"public List<TemSourceAccountingLine> getEncumbranceSourceAccountingLines() {\n List<TemSourceAccountingLine> encumbranceLines = new ArrayList<TemSourceAccountingLine>();\n for (TemSourceAccountingLine line : (List<TemSourceAccountingLine>) getSourceAccountingLines()){\n if (TemConstants.ENCUMBRANCE.equals(line.getCardType())){\n encumbranceLines.add(line);\n }\n }\n return encumbranceLines;\n }",
"@Override\n public List generateSaveEvents() {\n List events = super.generateSaveEvents();\n\n if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().isAtLeastPartiallyFilledIn() && !(getDocumentHeader().getWorkflowDocument().isInitiated() || getDocumentHeader().getWorkflowDocument().isSaved())) {\n // only check advance accounting lines if the travel advance is filled in\n final List<TemSourceAccountingLine> persistedAdvanceAccountingLines = getPersistedAdvanceAccountingLinesForComparison();\n final List<TemSourceAccountingLine> currentAdvanceAccountingLines = getAdvanceAccountingLinesForComparison();\n\n final List advanceEvents = generateEventsForAdvanceAccountingLines(persistedAdvanceAccountingLines, currentAdvanceAccountingLines);\n events.addAll(advanceEvents);\n }\n\n return events;\n }",
"public List<OrderLine> getOrderLineList() {\n\t\tHttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance()\n\t\t\t\t.getExternalContext().getRequest();\n\t\tHttpSession session = ((HttpServletRequest) request).getSession(false);\n\t\t\n\t\t//recuperation du login\n\t\tlogin = (session != null) ? (LoginMB) session.getAttribute(\"loginMB\") : null;\n\t\t//recuperation du user\n\t\tSystem.out.println(\"login user from session : \"+login.getUser().getIdPerson());\n\t\torderList = orderBu.getLastOrder(login.getUser().getIdPerson());\n\t\t\n\t\tSet<OrderLine> set = new HashSet<OrderLine>();\n\t\tset = orderList.get(orderList.size()-1).getOrderLines();\n\t\torderLineList = new ArrayList<OrderLine>(set);\n\t\tsetTotal(orderList.get(orderList.size()-1).getTotalAmount());\n\t\t\n\t\t\n\t\treturn orderLineList;\n\t}",
"public String myAfterBalanceAmount() {\r\n\t\tint count=0;\r\n\t\tList<SavingAccount> acc = null;\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"Before Repeat\");\r\n\t\t\tacc = getSavingAccountList();\r\n\r\n\t\t\tfor (SavingAccount savingAcc : acc) {\r\n\t\t\t\tif (!(\"0\".equals(savingAcc.getState()))) {\r\n\t\t\t\t\tif (savingAcc.getState().equals(\"active\")) {\r\n\t\t\t\t\t\tint maxRepeat = Integer.parseInt(savingAcc\r\n\t\t\t\t\t\t\t\t.getRepeatable());\r\n\r\n\t\t\t\t\t\tDate date = new Date();\r\n\t\t\t\t\t\tDate systemDate = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAccSer\r\n\t\t\t\t\t\t\t\t\t\t.convertDateToStringDDmmYYYY(date));\r\n\r\n\t\t\t\t\t\tDate dateEnd = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t.getDateEnd());\r\n\r\n\t\t\t\t\t\tif (systemDate.getTime() == dateEnd.getTime()) {\r\n\t\t\t\t\t\t\tDate newEndDate = DateUtils.addMonths(systemDate,\r\n\t\t\t\t\t\t\t\t\tsavingAcc.getInterestRateId().getMonth());\r\n\r\n\t\t\t\t\t\t\tfloat balance = savingAcc.getBalanceAmount();\r\n\t\t\t\t\t\t\tfloat interest = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getInterestRate();\r\n\r\n\t\t\t\t\t\t\tint month = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getMonth();\r\n\t\t\t\t\t\t\tint days = Days\r\n\t\t\t\t\t\t\t\t\t.daysBetween(\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateStart())),\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateEnd())))\r\n\t\t\t\t\t\t\t\t\t.getDays();\r\n\t\t\t\t\t\t\tfloat amountAll = balance\r\n\t\t\t\t\t\t\t\t\t+ (balance * ((interest / (100)) / 360) * days);\r\n\t\t\t\t\t\t\tsavingAcc.setDateStart(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(systemDate));\r\n\t\t\t\t\t\t\tsavingAcc.setDateEnd(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(newEndDate));\r\n\t\t\t\t\t\t\tsavingAcc.setBalanceAmount(amountAll);\r\n\t\t\t\t\t\t\tsavingAcc.setRepeatable(\"\" + (maxRepeat + 1));\r\n\t\t\t\t\t\t\tupdateSavingAccount(savingAcc);\r\n\t\t\t\t\t\t\tcount+=1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Successfully!! \"+ count +\" Saving Account has been updated. Minh Map!!!\");\r\n\t\t\t\r\n\t\t\treturn \"success\";\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"Exception\");\r\n\r\n\t\t}\r\n\t\treturn \"Fail\";\r\n\t}",
"protected TemSourceAccountingLine initiateAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setDocumentNumber(getDocumentNumber());\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setSequenceNumber(new Integer(1));\n accountingLine.setCardType(TemConstants.ADVANCE);\n if (this.allParametersForAdvanceAccountingLinesSet()) {\n accountingLine.setChartOfAccountsCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART));\n accountingLine.setAccountNumber(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT));\n accountingLine.setFinancialObjectCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE));\n }\n return accountingLine;\n }\n catch (InstantiationException ie) {\n LOG.error(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName(), ie);\n }\n catch (IllegalAccessException iae) {\n LOG.error(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName(), iae);\n }\n }",
"public void grabarLineasInvestigacionProyecto() {\r\n try {\r\n if (!sessionProyecto.getEstadoActual().getCodigo().equalsIgnoreCase(EstadoProyectoEnum.INICIO.getTipo())) {\r\n return;\r\n }\r\n for (LineaInvestigacionProyecto lineaInvestigacionProyecto : sessionProyecto.getLineasInvestigacionSeleccionadasTransfer()) {\r\n if (lineaInvestigacionProyecto.getId() == null) {\r\n lineaInvestigacionProyecto.setProyectoId(sessionProyecto.getProyectoSeleccionado());\r\n lineaInvestigacionProyectoService.guardar(lineaInvestigacionProyecto);\r\n grabarIndividuoLP(lineaInvestigacionProyecto);\r\n logDao.create(logDao.crearLog(\"LineaInvestigacionProyecto\", lineaInvestigacionProyecto.getId() + \"\",\r\n \"CREAR\", \"Proyecto=\" + sessionProyecto.getProyectoSeleccionado().getId() + \"|LineaInvestigacion=\"\r\n + lineaInvestigacionProyecto.getLineaInvestigacionId().getId(), sessionUsuario.getUsuario()));\r\n continue;\r\n }\r\n lineaInvestigacionProyectoService.actulizar(lineaInvestigacionProyecto);\r\n }\r\n } catch (Exception e) {\r\n }\r\n \r\n }",
"public void setAdvanceAccountingLines(List<TemSourceAccountingLine> advanceAccountingLines) {\n this.advanceAccountingLines = advanceAccountingLines;\n }",
"private AccountDetails[] getAccountDetails() {\n String accountData = Utils.readFile(accountFile);\n return gson.fromJson(accountData, AccountDetails[].class);\n }",
"public ArrayList<String> getLines() {\n\t\tif (cachedocs) {\n\t\t\tif (lines == null)\n\t\t\t\tlines = Config.DB.getLines(docid);\n\t\t\treturn lines;\n\t\t}\n\t\telse {\n\t\t\treturn Config.DB.getLines(docid);\n\t\t}\n\t}",
"public static void depositMoney(ATMAccount account) throws FileNotFoundException {\r\n\t\taccountsdb = new File(\"accountsdb.txt\");\r\n\t\t//Use of two dimensional array to account for line number\r\n\t\tString[][] accountInfo = null;\r\n\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\t\t\tint y = 0;\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ty++;\r\n\t\t\t\taccountInfo = new String[y][4];\r\n\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t}\r\n\t\t\taccountsdbReader.close();\r\n\t\t}\r\n\r\n\t\tdouble depositAmount;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the amount you want to deposit:\");\r\n\t\t\tdepositAmount = userInput.nextDouble();\r\n\t\t\tif (depositAmount < 0) {\r\n\t\t\t\tSystem.out.println(\"You cannot deposit a negative amount!\");\r\n\t\t\t}\r\n\r\n\t\t} while (depositAmount < 0);\r\n\t\taccount.setDeposit(depositAmount);\r\n\t\tSystem.out.println(\"Your deposit has been made.\");\r\n\r\n\t\tSystem.out.println(accountInfo.length);\r\n\r\n\t\tString s = \"\";\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\tint y = 0;\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ts = accountsdbReader.nextLine();\r\n\t\t\t\tStringTokenizer spl = new StringTokenizer(s, \" \");\r\n\t\t\t\tfor (int x = 0; x != 4; x++) {\r\n\t\t\t\t\taccountInfo[y][x] = spl.nextToken();\r\n\r\n\t\t\t\t}\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n/**\t\t\t\t\t\t\t\t\t\t\t VALIDATION PROOF\r\n *\t\tSystem.out.println(\"Line #1\" + \"\\n Index #0: \" + accountInfo[0][0] + \"\\t Index #1: \" + accountInfo[0][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[0][2] + \"\\t Index #3: \" + accountInfo[0][3]);\r\n *\t\tSystem.out.println(\"Line #2\" + \"\\n Index #0: \" + accountInfo[1][0] + \"\\t Index #1: \" + accountInfo[1][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[1][2] + \"\\t Index #3: \" + accountInfo[1][3]);\r\n *\t\tSystem.out.println(\"Line #3\" + \"\\n Index #0: \" + accountInfo[2][0] + \"\\t Index #1: \" + accountInfo[2][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[2][2] + \"\\t Index #3: \" + accountInfo[2][3]);\r\n *\t\tSystem.out.println(\"Line #4\" + \"\\n Index #0: \" + accountInfo[3][0] + \"\\t Index #1: \" + accountInfo[3][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[3][2] + \"\\t Index #3: \" + accountInfo[3][3]);\r\n *\t\t\t\t\r\n */\r\n\t\tint line = -1;\r\n\t\ttry {\r\n\r\n\t\t\tint accID;\r\n\t\t\tfor (int y = 0; y != accountInfo.length; y++) {\r\n\t\t\t\taccID = Integer.parseInt(accountInfo[y][0]);\r\n\t\t\t\tif (accID == account.getID())\r\n\t\t\t\t\tline = y;\r\n\r\n\t\t\t}\r\n\t\t\taccountInfo[line][2] = \"\" + account.getBalance();\r\n\t\t\tSystem.out.println(\"Depositing...\");\r\n\t\t\tSystem.out.println(\"New Balance: \" + accountInfo[line][2]);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Account was not found in database array!\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPrintWriter scrubFile = new PrintWriter(accountsdb);\r\n\t\t\tscrubFile.write(\"\");\r\n\t\t\tscrubFile.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(accountsdb, true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfor (int i = 0; i != accountInfo.length; i++) {\r\n\t\t\t\tfileOutput.println(accountInfo[i][0] + \" \" + accountInfo[i][1] + \" \" + accountInfo[i][2] + \" \"\r\n\t\t\t\t\t\t+ accountInfo[i][3]);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\taccountsdbReader.close();\r\n\r\n\t}",
"public Line[] rockLines() {\n\t\treturn outLine;\n\t}",
"public LoanAccounting getAccounting();",
"@Override\n public String getInternalAccounting() {\n\n if(this.internalAccounting == null){\n\n this.internalAccounting = TestDatabase.getInstance().getClientField(token, id, \"internal accounting\");\n }\n return internalAccounting;\n }",
"public List<ArticLine> getArticLines() {\n\n if (articLines == null) {\n articLines = new ArrayList<ArticLine>();\n\n List<Element> paragraphs = br.ufrgs.artic.utils.FileUtils.getElementsByTagName(\"para\", omniPageXMLDocument.getDocumentElement());\n\n Integer lineCounter = 0;\n Boolean foundIntroOrAbstract = false;\n String previousAlignment = null;\n Element previousElement = null;\n if (paragraphs != null && !paragraphs.isEmpty()) {\n\n for (Element paragraphElement : paragraphs) {\n\n String alignment = getAlignment(paragraphElement);\n\n String paragraph = \"new\";\n\n List<Element> linesOfParagraph = br.ufrgs.artic.utils.FileUtils.getElementsByTagName(\"ln\", paragraphElement);\n\n if (linesOfParagraph != null && !linesOfParagraph.isEmpty()) {\n for (Element lineElement : linesOfParagraph) {\n ArticLine articLine = new ArticLine(lineCounter, lineElement, previousElement,\n averagePageFontSize, alignment, previousAlignment, topBucketSize, leftBucketSize);\n articLines.add(articLine);\n\n String textContent = articLine.getOriginalText();\n\n if (textContent != null && Pattern.compile(\"intro|abstract\", Pattern.CASE_INSENSITIVE).\n matcher(textContent).find()) {\n foundIntroOrAbstract = true;\n }\n\n if (!foundIntroOrAbstract) { //special case for headers\n articLine.setParagraph(\"header\");\n } else {\n articLine.setParagraph(paragraph);\n }\n\n paragraph = \"same\";\n previousElement = lineElement;\n previousAlignment = alignment;\n lineCounter++;\n }\n }\n }\n }\n }\n\n return articLines;\n }",
"@Override\n public List<PurchaseOrderLine> getOrderlines() {\n return orderLines;\n }",
"@SuppressWarnings({ \"unused\", \"resource\" })\n public JSONObject selectLines(VariablesSecureApp vars, String fromDate, String InitialBalance,\n String YearInitialBal, String strClientId, String accountId, String BpartnerId,\n String productId, String projectId, String DeptId, String BudgetTypeId, String FunclassId,\n String User1Id, String User2Id, String AcctschemaId, String strOrgFamily, String ClientId,\n String OrgId, String DateTo, String strAccountFromValue, String strAccountToValue,\n String strStrDateFC, String FrmPerStDate, String uniqueCode, String inpcElementValueIdFrom) {\n File file = null;\n String sqlQuery = \"\", sqlQuery1 = \"\", tempUniqCode = \"\", date = \"\", groupClause = \"\",\n tempStartDate = \"\", periodId = \"\";\n BigDecimal initialDr = new BigDecimal(0);\n BigDecimal initialCr = new BigDecimal(0);\n BigDecimal initialNet = new BigDecimal(0);\n PreparedStatement st = null;\n ResultSet rs = null;\n String RoleId = vars.getRole();\n List<GLJournalApprovalVO> list = null;\n JSONObject obj = null;\n int count = 0;\n JSONObject result = new JSONObject();\n JSONArray array = new JSONArray();\n JSONArray arr = null;\n String listofuniquecode = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n\n sqlQuery = \"select a.id,a.c_period_id as periodid,a.periodno,to_char(a.startdate,'dd-MM-yyyy') as startdate ,a.name ,ev.accounttype as type,COALESCE(A.EM_EFIN_UNIQUECODE,ev.value) as account_id, ev.name, a.EM_EFIN_UNIQUECODE as uniquecode,a.defaultdep, a.depart,ev.value as account ,\"\n + \" replace(a.EM_EFIN_UNIQUECODE,'-'||a.depart||'-','-'||a.defaultdep||'-') as replaceacct, \"\n + \" sum(initalamtdr)as initalamtdr, sum(intialamtcr)as intialamtcr , sum(a.initialnet )as SALDO_INICIAL,sum( a.amtacctcr) as amtacctcr, sum(a.amtacctdr) as amtacctdr, sum(A.AMTACCTDR)-sum(A.AMTACCTCR) AS SALDO_FINAL ,\"\n + \" sum(initalamtdr)+sum( a.amtacctdr) as finaldr, sum(a.intialamtcr)+sum( a.amtacctcr) as finalcr , sum(a.initialnet)+sum(A.AMTACCTDR)-sum(A.AMTACCTCR) as finalnet \"\n + \" from( SELECT per.startdate,per.name ,per.periodno ,(case when (DATEACCT < TO_DATE(?) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?)) then F.AMTACCTDR else 0 end) as initalamtdr, \"\n + \"(case when (DATEACCT < TO_DATE(?) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?)) then F.AMTACCTCR else 0 end) as intialamtcr, \"\n + \" (case when (DATEACCT < TO_DATE(?) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?)) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialnet, \"\n + \" (case when (DATEACCT >= TO_DATE(?) AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?) then F.AMTACCTDR else 0 end) as AMTACCTDR, \"\n + \" (case when (DATEACCT >= TO_DATE(?) AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE(?) and F.FACTACCTTYPE = ?) then F.AMTACCTCR else 0 end) as AMTACCTCR, \"\n + \" F.ACCOUNT_ID AS ID,F.EM_EFIN_UNIQUECODE,reg.value as depart,f.c_period_id , \"\n + \" (select REG.value from c_salesregion REG where REG.isdefault='Y' \";\n\n if (strClientId != null)\n sqlQuery += \"AND REG.AD_CLIENT_ID IN \" + strClientId;\n sqlQuery += \") as defaultdep \" + \" FROM FACT_ACCT F \"\n + \" left join (select name,periodno,startdate,c_period_id from c_period ) per on per.c_period_id=f.c_period_id left join c_salesregion reg on reg.c_salesregion_id= f.c_salesregion_id where 1=1 \";\n if (strOrgFamily != null)\n sqlQuery += \"AND F.AD_ORG_ID IN (\" + strOrgFamily + \")\";\n if (ClientId != null)\n sqlQuery += \"AND F.AD_CLIENT_ID IN (\" + ClientId + \")\";\n if (ClientId != null)\n sqlQuery += \"AND F.AD_ORG_ID IN (\" + OrgId + \")\";\n // sqlQuery += \" AND DATEACCT > TO_DATE(?) AND DATEACCT < TO_DATE(?) AND 1=1 \";\n sqlQuery += \" AND DATEACCT >= TO_DATE(?) AND DATEACCT < TO_DATE(?) AND 1=1 \";\n if (accountId != null)\n sqlQuery += \"AND F.account_ID='\" + accountId + \"'\";\n if (BpartnerId != null)\n sqlQuery += \"AND F.C_BPARTNER_ID IN (\" + BpartnerId.replaceFirst(\",\", \"\") + \")\";\n if (productId != null)\n sqlQuery += \"AND F.M_PRODUCT_ID IN \" + productId;\n if (projectId != null)\n sqlQuery += \"AND F.C_PROJECT_ID IN (\" + projectId.replaceFirst(\",\", \"\") + \")\";\n if (DeptId != null)\n sqlQuery += \"AND F.C_SALESREGION_ID IN (\" + DeptId.replaceFirst(\",\", \"\") + \")\";\n if (BudgetTypeId != null)\n sqlQuery += \"AND coalesce(F.C_CAMPAIGN_ID, (select c.C_CAMPAIGN_ID from C_CAMPAIGN c where em_efin_iscarryforward = 'N' and ad_client_id = F.ad_client_id limit 1))='\"\n + BudgetTypeId + \"'\";\n if (FunclassId != null)\n sqlQuery += \"AND F.C_ACTIVITY_ID IN (\" + FunclassId.replaceFirst(\",\", \"\") + \")\";\n if (User1Id != null)\n sqlQuery += \"AND F.USER1_ID IN (\" + User1Id.replaceFirst(\",\", \"\") + \")\";\n if (User2Id != null)\n sqlQuery += \"AND F.USER2_ID IN (\" + User2Id.replaceFirst(\",\", \"\") + \")\";\n if (AcctschemaId != null)\n sqlQuery += \"AND F.C_ACCTSCHEMA_ID ='\" + AcctschemaId + \"'\";\n if (uniqueCode != null)\n sqlQuery += \"\t\tAND (F.EM_EFIN_UNIQUECODE = '\" + uniqueCode + \"' or F.acctvalue='\"\n + uniqueCode + \"')\";\n\n sqlQuery += \" AND F.ACCOUNT_ID IN (select act.c_elementvalue_id from efin_security_rules_act act \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Salesregion_ID in (select dep.C_Salesregion_ID from Efin_Security_Rules_Dept dep \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=dep.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Project_ID in (select proj.c_project_id from efin_security_rules_proj proj \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=proj.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_CAMPAIGN_ID IN(select bud.C_campaign_ID from efin_security_rules_budtype bud \"\n + \"join efin_security_rules ru on ru.efin_security_rules_id=bud.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.C_Activity_ID in (select act.C_Activity_ID from efin_security_rules_activ act \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=act.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User1_ID in (select fut1.User1_ID from efin_security_rules_fut1 fut1 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut1.efin_security_rules_id \"\n + \" where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \"\n + \"AND F.User2_ID in (select fut2.User2_ID from efin_security_rules_fut2 fut2 \"\n + \" join efin_security_rules ru on ru.efin_security_rules_id=fut2.efin_security_rules_id \"\n + \"where ru.efin_security_rules_id=(select em_efin_security_rules_id from ad_role where ad_role_id='\"\n + RoleId + \"' )and efin_processbutton='Y') \";\n\n sqlQuery += \" AND F.ISACTIVE='Y' \" + \" ) a, c_elementvalue ev \"\n + \" where a.id = ev.c_elementvalue_id and ev.elementlevel = 'S' \";\n if (strAccountFromValue != null)\n sqlQuery += \"\t\tAND EV.VALUE >= '\" + strAccountFromValue + \"'\";\n if (strAccountToValue != null)\n sqlQuery += \"\t\tAND EV.VALUE <= '\" + strAccountToValue + \"'\";\n\n sqlQuery += \" \";\n\n sqlQuery += \" and (a.initialnet <>0 or a.amtacctcr <>0 or a.amtacctdr<>0) group by a.c_period_id,a.name,ev.accounttype, a.startdate , a.id ,a.periodno, A.EM_EFIN_UNIQUECODE,ev.value,ev.name,a.defaultdep,a.depart \"\n + \" order by uniquecode,a.startdate, account_id ,ev.value, ev.name, id \";\n\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, fromDate);\n st.setString(2, fromDate);\n st.setString(3, InitialBalance);\n st.setString(4, fromDate);\n st.setString(5, fromDate);\n st.setString(6, InitialBalance);\n st.setString(7, fromDate);\n st.setString(8, fromDate);\n st.setString(9, InitialBalance);\n st.setString(10, fromDate);\n st.setString(11, fromDate);\n st.setString(12, YearInitialBal);\n st.setString(13, fromDate);\n st.setString(14, fromDate);\n st.setString(15, YearInitialBal);\n st.setString(16, fromDate);\n st.setString(17, DateTo);\n // st.setString(16, DateTo);\n log4j.debug(\"ReportTrialBalancePTD:\" + st.toString());\n rs = st.executeQuery();\n // Particular Date Range if we get record then need to form the JSONObject\n while (rs.next()) {\n // Group UniqueCode Wise Transaction\n // if same uniquecode then Group the transaction under the uniquecode\n if (tempUniqCode.equals(rs.getString(\"uniquecode\"))) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n if (rs.getInt(\"periodno\") == 1\n && (rs.getString(\"type\").equals(\"E\") || rs.getString(\"type\").equals(\"R\"))) {\n initialDr = new BigDecimal(0);\n initialCr = new BigDecimal(0);\n initialNet = new BigDecimal(0);\n FrmPerStDate = getPedStrEndDate(OrgId, ClientId, rs.getString(\"periodid\"), null);\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n } else {\n if (rs.getInt(\"periodno\") > 1) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, rs.getString(\"periodid\"));\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"account_id\"),\n rs.getString(\"startdate\"), FrmPerStDate, strStrDateFC, rs.getString(\"type\"), 2,\n RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO vo = initial.get(0);\n initialDr = vo.getInitDr();\n initialCr = vo.getInitCr();\n initialNet = vo.getInitNet();\n }\n }\n tra.put(\"startdate\", rs.getString(\"name\"));\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(rs.getString(\"startdate\"))));\n tra.put(\"perDr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctdr\")));\n tra.put(\"perCr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctcr\")));\n tra.put(\"finalpernet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"SALDO_FINAL\")));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctdr\").add(initialDr))));\n tra.put(\"finalcr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctcr\").add(initialCr))));\n tra.put(\"finalnet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"SALDO_FINAL\").add(initialNet))));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", rs.getString(\"periodid\"));\n tra.put(\"type\", \"1\");\n arr.put(tra);\n\n }\n // if different uniquecode then form new Uniquecode JsonObject\n else {\n if (listofuniquecode == null)\n listofuniquecode = \"'\" + rs.getString(\"uniquecode\") + \"'\";\n else\n listofuniquecode += \",'\" + rs.getString(\"uniquecode\") + \"'\";\n obj = new JSONObject();\n obj.put(\"uniquecode\", (rs.getString(\"uniquecode\") == null ? rs.getString(\"account\")\n : rs.getString(\"uniquecode\")));\n obj.put(\"accountId\", (rs.getString(\"id\") == null ? \"\" : rs.getString(\"id\")));\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n if (rs.getInt(\"periodno\") == 1\n && (rs.getString(\"type\").equals(\"E\") || rs.getString(\"type\").equals(\"R\"))) {\n initialDr = new BigDecimal(0);\n initialCr = new BigDecimal(0);\n initialNet = new BigDecimal(0);\n FrmPerStDate = getPedStrEndDate(OrgId, ClientId, rs.getString(\"periodid\"), null);\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n } else {\n if (rs.getInt(\"periodno\") > 1) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, rs.getString(\"periodid\"));\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"account_id\"),\n rs.getString(\"startdate\"), FrmPerStDate, strStrDateFC, rs.getString(\"type\"), 1,\n RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO vo = initial.get(0);\n initialDr = vo.getInitDr();\n initialCr = vo.getInitCr();\n initialNet = vo.getInitNet();\n }\n }\n tra.put(\"startdate\", rs.getString(\"name\"));\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(rs.getString(\"startdate\"))));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"perDr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctdr\")));\n tra.put(\"perCr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"amtacctcr\")));\n tra.put(\"finalpernet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n rs.getBigDecimal(\"SALDO_FINAL\")));\n tra.put(\"finaldr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctdr\").add(initialDr))));\n tra.put(\"finalcr\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"amtacctcr\").add(initialCr))));\n tra.put(\"finalnet\", Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n (rs.getBigDecimal(\"SALDO_FINAL\").add(initialNet))));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", rs.getString(\"periodid\"));\n /*\n * if((initialDr.compareTo(new BigDecimal(0)) > 0) || (initialCr.compareTo(new\n * BigDecimal(0)) > 0) || (initialNet.compareTo(new BigDecimal(0)) > 0)) { tra.put(\"type\",\n * \"1\"); } else\n */\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = rs.getString(\"uniquecode\");\n }\n\n result.put(\"list\", array);\n }\n log4j.debug(\"has lsit:\" + result.has(\"list\"));\n if (result.has(\"list\")) {\n JSONArray finalres = result.getJSONArray(\"list\");\n JSONObject json = null, json1 = null, json2 = null;\n log4j.debug(\"json.length:\" + finalres.length());\n for (int i = 0; i < finalres.length(); i++) {\n json = finalres.getJSONObject(i);\n log4j.debug(\"json.getString:\" + json.getString(\"uniquecode\"));\n if (json.getString(\"uniquecode\") != null) {\n String UniqueCode = json.getString(\"uniquecode\");\n String acctId = json.getString(\"accountId\");\n ElementValue type = OBDal.getInstance().get(ElementValue.class, acctId);\n JSONArray transaction = json.getJSONArray(\"transaction\");\n List<GLJournalApprovalVO> period = getAllPeriod(ClientId, fromDate, DateTo);\n List<String> periodIds = new ArrayList<String>(), tempPeriods = new ArrayList<String>();\n\n for (GLJournalApprovalVO vo : period) {\n periodIds.add(vo.getId());\n }\n\n tempPeriods = periodIds;\n\n for (int j = 0; j < transaction.length(); j++) {\n json1 = transaction.getJSONObject(j);\n periodId = json1.getString(\"periodid\");\n tempPeriods.remove(periodId);\n }\n log4j.debug(\"size:\" + tempPeriods.size());\n if (tempPeriods.size() > 0) {\n log4j.debug(\"jtempPeriods:\" + tempPeriods);\n count = 0;\n for (String missingPeriods : tempPeriods) {\n json2 = new JSONObject();\n json2.put(\"startdate\", Utility.getObject(Period.class, missingPeriods).getName());\n Date startdate = Utility.getObject(Period.class, missingPeriods).getStartingDate();\n json2.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\").format(startdate));\n json2.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"id\", acctId);\n json2.put(\"periodid\", missingPeriods);\n Long periodNo = Utility.getObject(Period.class, missingPeriods).getPeriodNo();\n if (new BigDecimal(periodNo).compareTo(new BigDecimal(1)) == 0\n && (type.getAccountType().equals(\"E\") || type.getAccountType().equals(\"R\"))) {\n json2.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n json2.put(\"type\", \"1\");\n\n /*\n * count++; if(count > 0) { FrmPerStDate = getPedStrEndDate(OrgId, ClientId,\n * missingPeriods, null); FrmPerStDate = new\n * SimpleDateFormat(\"dd-MM-yyyy\").format(new\n * SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate)); }\n */\n\n } else {\n // Get the Last Opening and closing Balance Entry Date\n // If closing and opening is not happened then assign financial year start date\n Boolean isThereOpeningBeforeThePeriod = false;\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, missingPeriods);\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n isThereOpeningBeforeThePeriod = true;\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n\n FrmPerStDate = getPedStrEndDate(OrgId, ClientId, missingPeriods, null);\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n List<GLJournalApprovalVO> initial = selectInitialBal(UniqueCode,\n new SimpleDateFormat(\"dd-MM-yyyy\").format(startdate), FrmPerStDate,\n strStrDateFC, type.getAccountType(), 2, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO vo = initial.get(0);\n json2.put(\"initialDr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, (vo.getInitDr())));\n json2.put(\"initialCr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, (vo.getInitCr())));\n json2.put(\"initialNet\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, (vo.getInitNet())));\n if (((vo.getInitDr().compareTo(new BigDecimal(0)) > 0)\n || (vo.getInitCr().compareTo(new BigDecimal(0)) > 0)\n || (vo.getInitNet().compareTo(new BigDecimal(0)) > 0))\n || isThereOpeningBeforeThePeriod) {\n json2.put(\"type\", \"1\");\n } else\n json2.put(\"type\", \"0\");\n\n json2.put(\"finaldr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, new BigDecimal(0).add(vo.getInitDr())));\n json2.put(\"finalcr\", Utility.getNumberFormat(vars,\n Utility.numberFormat_PriceRelation, new BigDecimal(0).add(vo.getInitCr())));\n json2.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation,\n new BigDecimal(0).add(vo.getInitNet())));\n\n }\n }\n\n transaction.put(json2);\n }\n }\n\n json.put(\"transaction\", transaction);\n }\n\n }\n log4j.debug(\"LIST:\" + list);\n log4j.debug(\"Acct PTD listofuniquecode:\" + listofuniquecode);\n\n List<GLJournalApprovalVO> period = getAllPeriod(ClientId, fromDate, DateTo);\n String tempYear = null;\n sqlQuery1 = \" select a.uniquecode,a.id from( select distinct coalesce(em_efin_uniquecode,acctvalue) as uniquecode ,f.account_id as id from fact_acct f where 1=1 \";\n if (strOrgFamily != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + strOrgFamily + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_CLIENT_ID IN (\" + ClientId + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + OrgId + \")\";\n sqlQuery1 += \" AND DATEACCT < TO_DATE(?) AND 1=1 \";\n if (accountId != null)\n sqlQuery1 += \"AND F.account_ID='\" + accountId + \"'\";\n if (BpartnerId != null)\n sqlQuery1 += \"AND F.C_BPARTNER_ID IN (\" + BpartnerId.replaceFirst(\",\", \"\") + \")\";\n if (productId != null)\n sqlQuery1 += \"AND F.M_PRODUCT_ID IN (\" + productId.replaceFirst(\",\", \"\") + \")\";\n if (projectId != null)\n sqlQuery1 += \"AND F.C_PROJECT_ID IN (\" + projectId.replaceFirst(\",\", \"\") + \")\";\n if (DeptId != null)\n sqlQuery1 += \"AND F.C_SALESREGION_ID IN (\" + DeptId.replaceFirst(\",\", \"\") + \")\";\n if (BudgetTypeId != null)\n sqlQuery1 += \"AND coalesce(F.C_CAMPAIGN_ID, (select c.C_CAMPAIGN_ID from C_CAMPAIGN c where em_efin_iscarryforward = 'N' and ad_client_id = F.ad_client_id limit 1))='\"\n + BudgetTypeId + \"'\";\n if (FunclassId != null)\n sqlQuery1 += \"AND F.C_ACTIVITY_ID IN (\" + FunclassId.replaceFirst(\",\", \"\") + \")\";\n if (User1Id != null)\n sqlQuery1 += \"AND F.USER1_ID IN (\" + User1Id.replaceFirst(\",\", \"\") + \")\";\n if (User2Id != null)\n sqlQuery1 += \"AND F.USER2_ID IN (\" + User2Id.replaceFirst(\",\", \"\") + \")\";\n if (AcctschemaId != null)\n sqlQuery1 += \"AND F.C_ACCTSCHEMA_ID ='\" + AcctschemaId + \"'\";\n\n if (uniqueCode != null)\n sqlQuery1 += \" AND (F.EM_EFIN_UNIQUECODE = '\" + uniqueCode\n + \"' or F.acctvalue='\" + uniqueCode + \"')\";\n if (listofuniquecode != null)\n sqlQuery1 += \" AND F.EM_EFIN_UNIQUECODE not in ( \" + listofuniquecode + \")\";\n sqlQuery1 += \" AND F.ISACTIVE='Y' \" + \" ) a, c_elementvalue ev \"\n + \" where a.id = ev.c_elementvalue_id and ev.elementlevel = 'S' \";\n if (strAccountFromValue != null)\n sqlQuery1 += \" AND EV.VALUE >= '\" + strAccountFromValue + \"'\";\n if (strAccountToValue != null)\n sqlQuery1 += \" AND EV.VALUE <= '\" + strAccountToValue + \"'\";\n st = conn.prepareStatement(sqlQuery1);\n st.setString(1, DateTo);\n log4j.debug(\"Acct PTD afterlist:\" + st.toString());\n rs = st.executeQuery();\n while (rs.next()) {\n ElementValue type = OBDal.getInstance().get(ElementValue.class, rs.getString(\"id\"));\n for (GLJournalApprovalVO vo : period) {\n\n if (tempYear != null) {\n if (!tempYear.equals(vo.getStartdate().split(\"-\")[2])) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n } else {\n tempYear = vo.getStartdate().split(\"-\")[2];\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, vo.getId());\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"uniquecode\"),\n vo.getStartdate(), FrmPerStDate, strStrDateFC, type.getAccountType(), 1, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO VO = initial.get(0);\n initialDr = VO.getInitDr();\n initialCr = VO.getInitCr();\n initialNet = VO.getInitNet();\n\n }\n if (tempUniqCode.equals(rs.getString(\"uniquecode\"))) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n } else {\n obj = new JSONObject();\n obj.put(\"uniquecode\", rs.getString(\"uniquecode\"));\n obj.put(\"accountId\", rs.getString(\"id\"));\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = rs.getString(\"uniquecode\");\n }\n }\n\n }\n }\n // Transaction not exists for the period\n else if (!result.has(\"list\")) {\n\n List<GLJournalApprovalVO> period = getAllPeriod(ClientId, fromDate, DateTo);\n String tempYear = null;\n\n if (uniqueCode != null) {\n ElementValue type = OBDal.getInstance().get(ElementValue.class, inpcElementValueIdFrom);\n for (GLJournalApprovalVO vo : period) {\n\n if (tempYear != null) {\n if (!tempYear.equals(vo.getStartdate().split(\"-\")[2])) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n } else {\n tempYear = vo.getStartdate().split(\"-\")[2];\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, vo.getId());\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n\n List<GLJournalApprovalVO> initial = selectInitialBal(uniqueCode, vo.getStartdate(),\n FrmPerStDate, strStrDateFC, type.getAccountType(), 1, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO VO = initial.get(0);\n initialDr = VO.getInitDr();\n initialCr = VO.getInitCr();\n initialNet = VO.getInitNet();\n\n }\n if (tempUniqCode.equals(uniqueCode)) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n } else {\n obj = new JSONObject();\n obj.put(\"uniquecode\", uniqueCode);\n obj.put(\"accountId\", accountId);\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = uniqueCode;\n }\n }\n result.put(\"list\", array);\n } else {\n\n sqlQuery1 = \" select a.uniquecode,a.id from( select distinct coalesce(em_efin_uniquecode,acctvalue) as uniquecode ,f.account_id as id from fact_acct f where 1=1 \";\n if (strOrgFamily != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + strOrgFamily + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_CLIENT_ID IN (\" + ClientId + \")\";\n if (ClientId != null)\n sqlQuery1 += \"AND F.AD_ORG_ID IN (\" + OrgId + \")\";\n sqlQuery1 += \" AND DATEACCT < TO_DATE(?) AND 1=1 \";\n if (accountId != null)\n sqlQuery1 += \"AND F.account_ID='\" + accountId + \"'\";\n if (BpartnerId != null)\n sqlQuery1 += \"AND F.C_BPARTNER_ID IN (\" + BpartnerId.replaceFirst(\",\", \"\") + \")\";\n if (productId != null)\n sqlQuery1 += \"AND F.M_PRODUCT_ID IN \" + productId;\n if (projectId != null)\n sqlQuery1 += \"AND F.C_PROJECT_ID IN (\" + projectId.replaceFirst(\",\", \"\") + \")\";\n if (DeptId != null)\n sqlQuery1 += \"AND F.C_SALESREGION_ID IN (\" + DeptId.replaceFirst(\",\", \"\") + \")\";\n if (BudgetTypeId != null)\n sqlQuery1 += \"AND coalesce(F.C_CAMPAIGN_ID, (select c.C_CAMPAIGN_ID from C_CAMPAIGN c where em_efin_iscarryforward = 'N' and ad_client_id = F.ad_client_id limit 1))='\"\n + BudgetTypeId + \"'\";\n if (FunclassId != null)\n sqlQuery1 += \"AND F.C_ACTIVITY_ID IN (\" + FunclassId.replaceFirst(\",\", \"\") + \")\";\n if (User1Id != null)\n sqlQuery1 += \"AND F.USER1_ID IN (\" + User1Id.replaceFirst(\",\", \"\") + \")\";\n if (User2Id != null)\n sqlQuery1 += \"AND F.USER2_ID IN (\" + User2Id.replaceFirst(\",\", \"\") + \")\";\n if (AcctschemaId != null)\n sqlQuery1 += \"AND F.C_ACCTSCHEMA_ID ='\" + AcctschemaId + \"'\";\n if (uniqueCode != null)\n sqlQuery1 += \"\t\tAND (F.EM_EFIN_UNIQUECODE = '\" + uniqueCode\n + \"' or F.acctvalue='\" + uniqueCode + \"')\";\n sqlQuery1 += \" AND F.ISACTIVE='Y' \" + \" ) a, c_elementvalue ev \"\n + \" where a.id = ev.c_elementvalue_id and ev.elementlevel = 'S' \";\n if (strAccountFromValue != null)\n sqlQuery1 += \"\t\tAND EV.VALUE >= '\" + strAccountFromValue + \"'\";\n if (strAccountToValue != null)\n sqlQuery1 += \"\t\tAND EV.VALUE <= '\" + strAccountToValue + \"'\";\n st = conn.prepareStatement(sqlQuery1);\n st.setString(1, DateTo);\n log4j.debug(\"Acct PTD:\" + st.toString());\n rs = st.executeQuery();\n while (rs.next()) {\n ElementValue type = OBDal.getInstance().get(ElementValue.class, rs.getString(\"id\"));\n for (GLJournalApprovalVO vo : period) {\n\n if (tempYear != null) {\n if (!tempYear.equals(vo.getStartdate().split(\"-\")[2])) {\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n } else {\n tempYear = vo.getStartdate().split(\"-\")[2];\n FrmPerStDate = getPedStrDate(OrgId, ClientId, vo.getId());\n FrmPerStDate = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(FrmPerStDate));\n }\n String tempStartDateFC = strStrDateFC;\n strStrDateFC = selectLastOpeningBalanceDate(OrgId, ClientId, vo.getId());\n if (StringUtils.isNotEmpty(strStrDateFC)) {\n strStrDateFC = new SimpleDateFormat(\"dd-MM-yyyy\")\n .format(new SimpleDateFormat(\"yyyy-MM-dd\").parse(strStrDateFC));\n } else {\n strStrDateFC = tempStartDateFC;\n }\n List<GLJournalApprovalVO> initial = selectInitialBal(rs.getString(\"uniquecode\"),\n vo.getStartdate(), FrmPerStDate, strStrDateFC, type.getAccountType(), 1, RoleId);\n if (initial.size() > 0) {\n GLJournalApprovalVO VO = initial.get(0);\n initialDr = VO.getInitDr();\n initialCr = VO.getInitCr();\n initialNet = VO.getInitNet();\n\n }\n if (tempUniqCode.equals(rs.getString(\"uniquecode\"))) {\n arr = obj.getJSONArray(\"transaction\");\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", accountId);\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n } else {\n obj = new JSONObject();\n obj.put(\"uniquecode\", rs.getString(\"uniquecode\"));\n obj.put(\"accountId\", rs.getString(\"id\"));\n arr = new JSONArray();\n JSONObject tra = new JSONObject();\n tra.put(\"startdate\", vo.getName());\n tra.put(\"date\", new SimpleDateFormat(\"MM-dd-yyyy\")\n .format(new SimpleDateFormat(\"dd-MM-yyyy\").parse(FrmPerStDate)));\n tra.put(\"perDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"perCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"finalpernet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, 0));\n tra.put(\"initialDr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"initialCr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"initialNet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"finaldr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialDr));\n tra.put(\"finalcr\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialCr));\n tra.put(\"finalnet\",\n Utility.getNumberFormat(vars, Utility.numberFormat_PriceRelation, initialNet));\n tra.put(\"id\", rs.getString(\"id\"));\n tra.put(\"periodid\", vo.getId());\n tra.put(\"type\", \"1\");\n arr.put(tra);\n obj.put(\"transaction\", arr);\n array.put(obj);\n tempUniqCode = rs.getString(\"uniquecode\");\n }\n }\n result.put(\"list\", array);\n }\n }\n }\n\n } catch (Exception e) {\n log4j.error(\"Exception Creating Excel Sheet\", e);\n }\n return result;\n\n }",
"private List<List<positionTicTacToe>> initializeWinningLines()\n\t{\n\t\tList<List<positionTicTacToe>> winningLines = new ArrayList<List<positionTicTacToe>>();\n\t\t\n\t\t//48 straight winning lines\n\t\t//z axis winning lines\n\t\tfor(int i = 0; i<4; i++)\n\t\t\tfor(int j = 0; j<4;j++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,j,0,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,j,1,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,j,2,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,j,3,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t//y axis winning lines\n\t\tfor(int i = 0; i<4; i++)\n\t\t\tfor(int j = 0; j<4;j++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,0,j,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,1,j,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,2,j,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,3,j,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t//x axis winning lines\n\t\tfor(int i = 0; i<4; i++)\n\t\t\tfor(int j = 0; j<4;j++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(0,i,j,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(1,i,j,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(2,i,j,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(3,i,j,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t\n\t\t//12 main diagonal winning lines\n\t\t//xz plane-4\n\t\tfor(int i = 0; i<4; i++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(0,i,0,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(1,i,1,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(2,i,2,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(3,i,3,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t//yz plane-4\n\t\tfor(int i = 0; i<4; i++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,0,0,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,1,1,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,2,2,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,3,3,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t//xy plane-4\n\t\tfor(int i = 0; i<4; i++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(0,0,i,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(1,1,i,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(2,2,i,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(3,3,i,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t\n\t\t//12 anti diagonal winning lines\n\t\t//xz plane-4\n\t\tfor(int i = 0; i<4; i++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(0,i,3,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(1,i,2,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(2,i,1,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(3,i,0,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t//yz plane-4\n\t\tfor(int i = 0; i<4; i++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,0,3,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,1,2,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,2,1,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,3,0,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t//xy plane-4\n\t\tfor(int i = 0; i<4; i++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(0,3,i,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(1,2,i,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(2,1,i,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(3,0,i,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t\n\t\t//4 additional diagonal winning lines\n\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\toneWinCondtion.add(new positionTicTacToe(0,0,0,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(1,1,1,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(2,2,2,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(3,3,3,-1));\n\t\twinningLines.add(oneWinCondtion);\n\t\t\n\t\toneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\toneWinCondtion.add(new positionTicTacToe(0,0,3,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(1,1,2,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(2,2,1,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(3,3,0,-1));\n\t\twinningLines.add(oneWinCondtion);\n\t\t\n\t\toneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\toneWinCondtion.add(new positionTicTacToe(3,0,0,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(2,1,1,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(1,2,2,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(0,3,3,-1));\n\t\twinningLines.add(oneWinCondtion);\n\t\t\n\t\toneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\toneWinCondtion.add(new positionTicTacToe(0,3,0,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(1,2,1,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(2,1,2,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(3,0,3,-1));\n\t\twinningLines.add(oneWinCondtion);\t\n\t\t\n\t\treturn winningLines;\n\t\t\n\t}",
"public static AccountsFromLineOfCredit testGetAccountsForLineOfCredit() throws MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testGetAccountsForLineOfCredit\");\n\t\t// Test Get Accounts for a line of credit\n\n\t\tString lineOfCreditId = DemoUtil.demoLineOfCreditId;\n\t\tif (lineOfCreditId == null) {\n\t\t\tSystem.out.println(\"WARNING: No Demo Line of credit defined\");\n\t\t\treturn null;\n\t\t}\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\n\t\tSystem.out.println(\"\\nGetting all accounts for LoC with ID= \" + lineOfCreditId);\n\t\tAccountsFromLineOfCredit accountsForLoC = linesOfCreditService.getAccountsForLineOfCredit(lineOfCreditId);\n\t\t// Log returned results\n\t\tList<LoanAccount> loanAccounts = accountsForLoC.getLoanAccounts();\n\t\tList<SavingsAccount> savingsAccounts = accountsForLoC.getSavingsAccounts();\n\t\tSystem.out.println(\"Total Loan Accounts=\" + loanAccounts.size() + \"\\tTotal Savings Accounts=\"\n\t\t\t\t+ savingsAccounts.size() + \" for LoC=\" + lineOfCreditId);\n\n\t\treturn accountsForLoC;\n\t}",
"alluxio.proto.journal.Lineage.LineageEntry getLineage();",
"public String[] getLines() {// otan patas subscribe sto menu , print lista me ta lines\n int length = databaseLineIDToTitle.size();\n\n if (length == 0) {\n return null;\n } else {\n int subs = 0;\n\n for (Map.Entry<Integer, String> pair : databaseLineIDToTitle.entrySet()) { // Entryset, returns the hashmap\n if (subscribedLists.contains(pair.getKey())) {\n subs++;\n }\n }\n\n String[] array = new String[length - subs];\n\n int i = 0;\n\n for (Map.Entry<Integer, String> pair : databaseLineIDToTitle.entrySet()) { // Entryset, returns the hashmap\n if (!subscribedLists.contains(pair.getKey())) {\n array[i++] = String.format(\"%03d - %s \\n \", pair.getKey(), pair.getValue());\n }\n }\n return array;\n }\n }",
"public TemSourceAccountingLine createNewAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setCardType(TemConstants.ADVANCE); // really, card type is ignored but it is validated so we have to set something\n accountingLine.setFinancialObjectCode(this.getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE, KFSConstants.EMPTY_STRING));\n return accountingLine;\n }\n catch (IllegalAccessException iae) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", iae);\n }\n catch (InstantiationException ie) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", ie);\n }\n }",
"@Override\r\n\tprotected String[] getSpecificLines() {\r\n\t\tString[] lines = new String[4];\r\n\t\tlines[0] = \"\";\r\n\t\tif (items.toString().lastIndexOf('_') < 0) {\r\n\t\t\tlines[1] = items.toString();\r\n\t\t\tlines[2] = \"\";\r\n\t\t} else {\r\n\t\t\tlines[1] = items.toString().substring(0, items.toString().lastIndexOf('_'));\r\n\t\t\tlines[2] = items.toString().substring(items.toString().lastIndexOf('_') + 1);\r\n\t\t}\r\n\t\tlines[3] = String.valueOf(cost);\r\n\t\treturn lines;\r\n\t}",
"@Override\r\n\tpublic ArrayList<BankAccountPO> findBankAccountPOList() {\n\t\tArrayList<BankAccountPO> BankAccountList = new ArrayList<>();\r\n\t\tBankAccountList.add(new BankAccountPO(\"SS141250110\",200000));\r\n\t\treturn BankAccountList;\r\n\t}",
"public static int getLines(String path, String Download)\r\n {\r\n int new_set_lines= getFileCount(path);\r\n if(new_set_lines - Syncer.present_set_lines > 0)\r\n {\r\n System.out.println(\"Something is changed... checking now...\");\r\n int temp = Syncer.present_set_lines;\r\n Syncer.present_set_lines = new_set_lines;\r\n return new_set_lines - temp;\r\n }\r\n return 0;\r\n }",
"public KochLine getLineA(){\n\t\tKochLine lineA= new KochLine(p1,p2);\n\t\treturn lineA;\n\t\t\n\t}",
"@Override\n public Line[] getLines(){\n Line[] arrayOfLines = new Line[]{topLine, rightLine, bottomLine, leftLine}; //stores the array of lines that form the rectangle\n return arrayOfLines;\n }",
"private ArrayList<String> saveText(){\n FileReader loadDetails = null;\n String record;\n record = null;\n\n //Create an ArrayList to store the lines from text file\n ArrayList<String> lineKeeper = new ArrayList<String>();\n\n try{\n loadDetails=new FileReader(\"employees.txt\");\n BufferedReader bin=new BufferedReader (loadDetails);\n record=new String();\n while (((record=bin.readLine()) != null)){//Read the file and store it into the ArrayList line by line*\n lineKeeper.add(record);\n }//end while\n bin.close();\n bin=null;\n }//end try\n catch (IOException ioe) {}//end catc\n\n return lineKeeper;\n\n }",
"int getFixedLines();",
"public RecordLedger getLedger();",
"public static ArrayList getLines() {\n return lines;\n }",
"alluxio.proto.journal.Lineage.LineageEntryOrBuilder getLineageOrBuilder();",
"public static MInOutLine[] get (Ctx ctx, int C_OrderLine_ID, Trx trx)\n\t{\n\t\tArrayList<MInOutLine> list = new ArrayList<MInOutLine>();\n\t\tString sql = \"SELECT * FROM M_InOutLine WHERE C_OrderLine_ID=?\";\n\t\tPreparedStatement pstmt = null;\n\t\ttry\n\t\t{\n\t\t\tpstmt = DB.prepareStatement (sql, trx);\n\t\t\tpstmt.setInt (1, C_OrderLine_ID);\n\t\t\tResultSet rs = pstmt.executeQuery ();\n\t\t\twhile (rs.next ())\n\t\t\t\tlist.add(new MInOutLine(ctx, rs, trx));\n\t\t\trs.close ();\n\t\t\tpstmt.close ();\n\t\t\tpstmt = null;\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\ts_log.log(Level.SEVERE, sql, e);\n\t\t}\n\t\ttry\n\t\t{\n\t\t\tif (pstmt != null)\n\t\t\t\tpstmt.close ();\n\t\t\tpstmt = null;\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tpstmt = null;\n\t\t}\n\t\tMInOutLine[] retValue = new MInOutLine[list.size ()];\n\t\tlist.toArray (retValue);\n\t\treturn retValue;\n\t}",
"public ArrayList<Line> getLines() {\n return currentLocation.getLines();\n }",
"public static void withdrawMoney(ATMAccount account) throws FileNotFoundException {\r\n\r\n\t\t// File initialization\r\n\t\taccountsdb = new File(\"accountsdb.txt\");\r\n\t\t// #ADDED THE 2-D ARRAY\r\n\t\tString[][] accountInfo = null;\r\n\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\t\t\tint y = 0;\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ty++;\r\n\t\t\t\taccountInfo = new String[y][4];\r\n\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t}\r\n\t\t\taccountsdbReader.close();\r\n\t\t}\r\n\r\n\t\tdouble withdrawAmount;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the amount you want to withdraw:\");\r\n\t\t\twithdrawAmount = userInput.nextDouble();\r\n\t\t\tif (account.getBalance() < 0 || withdrawAmount > account.getBalance()) {\r\n\t\t\t\tSystem.out.println(\"Insufficient balance!\");\r\n\t\t\t} else {\r\n\t\t\t\taccount.setWithdraw(withdrawAmount);\r\n\t\t\t}\r\n\r\n\t\t} while (withdrawAmount < 0);\r\n\r\n\t\tString s = \"\";\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\tint y = 0;\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ts = accountsdbReader.nextLine();\r\n\t\t\t\tStringTokenizer spl = new StringTokenizer(s, \" \");\r\n\t\t\t\tfor (int x = 0; x != 4; x++) {\r\n\t\t\t\t\taccountInfo[y][x] = spl.nextToken();\r\n\r\n\t\t\t\t}\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tint line = -1;\r\n\t\ttry {\r\n\r\n\t\t\tint accID;\r\n\t\t\tfor (int y = 0; y != accountInfo.length; y++) {\r\n\t\t\t\taccID = Integer.parseInt(accountInfo[y][0]);\r\n\t\t\t\tif (accID == account.getID())\r\n\t\t\t\t\tline = y;\r\n\r\n\t\t\t}\r\n\t\t\taccountInfo[line][2] = \"\" + account.getBalance();\r\n\t\t\tSystem.out.println(\"Withdrawing...\");\r\n\t\t\tSystem.out.println(\"New Balance: \" + accountInfo[line][2]);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPrintWriter scrubFile = new PrintWriter(accountsdb);\r\n\t\t\tscrubFile.write(\"\");\r\n\t\t\tscrubFile.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(accountsdb, true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfor (int i = 0; i != accountInfo.length; i++) {\r\n\t\t\t\tfileOutput.println(accountInfo[i][0] + \" \" + accountInfo[i][1] + \" \" + accountInfo[i][2] + \" \"\r\n\t\t\t\t\t\t+ accountInfo[i][3]);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\taccountsdbReader.close();\r\n\r\n\t}",
"public HashMap<String, ArrayList<Integer>> getLines() {\r\n\t\treturn _fileLines;\r\n\t}",
"@Override\n public PurchaseOrderLine getOrderLine(int index) {\n return orderLines.get(index);\n }",
"public ArrayList<TransactionDetailByAccount> getMissionChecksByAccount(\n\t\t\tlong accountId, FinanceDate start, FinanceDate end, long companyId)\n\t\t\tthrows AccounterException {\n\t\tSession session = HibernateUtil.getCurrentSession();\n\t\tArrayList<TransactionDetailByAccount> list = new ArrayList<TransactionDetailByAccount>();\n\n\t\tAccount account = (Account) session.get(Account.class, accountId);\n\t\tif (account == null) {\n\t\t\tthrow new AccounterException(Global.get().messages()\n\t\t\t\t\t.pleaseSelect(Global.get().messages().account()));\n\t\t}\n\t\tList result = new ArrayList();\n\t\tif (account.getType() == Account.TYPE_OTHER_CURRENT_ASSET) {\n\t\t\tresult = session\n\t\t\t\t\t.getNamedQuery(\"get.all.invoices.by.account\")\n\t\t\t\t\t.setParameter(\"startDate\", start.getDate())\n\t\t\t\t\t.setParameter(\"endDate\", end.getDate())\n\t\t\t\t\t.setParameter(\"companyId\", companyId)\n\t\t\t\t\t.setParameter(\"accountId\", accountId)\n\t\t\t\t\t.setParameter(\"tobePrint\", \"TO BE PRINTED\",\n\t\t\t\t\t\t\tEncryptedStringType.INSTANCE)\n\t\t\t\t\t.setParameter(\"empty\", \"\", EncryptedStringType.INSTANCE)\n\t\t\t\t\t.list();\n\t\t} else if (account.getType() == ClientAccount.TYPE_BANK) {\n\t\t\tresult = session\n\t\t\t\t\t.getNamedQuery(\"get.missing.checks.by.account\")\n\t\t\t\t\t.setParameter(\"accountId\", accountId)\n\t\t\t\t\t.setParameter(\"startDate\", start.getDate())\n\t\t\t\t\t.setParameter(\"endDate\", end.getDate())\n\t\t\t\t\t.setParameter(\"companyId\", companyId)\n\t\t\t\t\t.setParameter(\"tobePrint\", \"TO BE PRINTED\",\n\t\t\t\t\t\t\tEncryptedStringType.INSTANCE)\n\t\t\t\t\t.setParameter(\"empty\", \"\", EncryptedStringType.INSTANCE)\n\t\t\t\t\t.list();\n\t\t}\n\t\tIterator iterator = result.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tObject[] objects = (Object[]) iterator.next();\n\t\t\tTransactionDetailByAccount detailByAccount = new TransactionDetailByAccount();\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionId((Long) (objects[0] != null ? objects[0]\n\t\t\t\t\t\t\t: 0));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionType((Integer) (objects[1] != null ? objects[1]\n\t\t\t\t\t\t\t: 0));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setTransactionNumber((String) (objects[2] != null ? objects[2]\n\t\t\t\t\t\t\t: \"\"));\n\t\t\tClientFinanceDate date = new ClientFinanceDate(\n\t\t\t\t\t(Long) (objects[3] != null ? objects[3] : 0));\n\t\t\tdetailByAccount.setTransactionDate(date);\n\t\t\tdetailByAccount.setName((String) (objects[4] != null ? objects[4]\n\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount\n\t\t\t\t\t.setAccountName((String) (objects[5] != null ? objects[5]\n\t\t\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount.setMemo((String) (objects[6] != null ? objects[6]\n\t\t\t\t\t: \"\"));\n\t\t\tdetailByAccount.setTotal((Double) (objects[7] != null ? objects[7]\n\t\t\t\t\t: 0.0));\n\t\t\tlist.add(detailByAccount);\n\n\t\t}\n\t\treturn list;\n\t}",
"java.lang.String getAccount();",
"@Test\n\tpublic void findAllOrderLines() {\n\t\t// TODO: JUnit - Populate test inputs for operation: findAllOrderLines \n\t\tInteger startResult = 0;\n\t\tInteger maxRows = 0;\n\t\tList<OrderLine> response = null;\n\t\tresponse = service.findAllOrderLines(startResult, maxRows);\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: findAllOrderLines\n\t}",
"String getTradingAccount();",
"List<Line> getLines();",
"public Chart getChartOfAccounts() {\n return chartOfAccounts;\n }",
"public Chart getChartOfAccounts() {\n return chartOfAccounts;\n }",
"private void ReadInAccounts() {\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", \"checking for file\" + AccountMan.CheckForFile());\n\t\taccounts = AccountMan.GetAccounts();\n\t\t//Comment out this line and uncomment the line above after purging the excess accounts\n\t\t//accounts = AccountMan.PurgeDuplicateAccounts(AccountMan.GetAccounts());\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", String.valueOf(accounts.size()));\n\t}",
"protected KualiDecimal calculateM113PendActual1(boolean financialBeginBalanceLoadInd, Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, boolean isEqualDebitCode, String financialObjectCodeForCashInBank) {\n Criteria criteria = new Criteria();\n criteria.addEqualTo(OLEConstants.FINANCIAL_BALANCE_TYPE_CODE_PROPERTY_NAME, OLEConstants.BALANCE_TYPE_ACTUAL);\n\n if (financialBeginBalanceLoadInd) {\n criteria.addEqualTo(OLEConstants.UNIVERSITY_FISCAL_YEAR_PROPERTY_NAME, universityFiscalYear);\n }\n else {\n Criteria sub1 = new Criteria();\n sub1.addEqualTo(OLEConstants.UNIVERSITY_FISCAL_YEAR_PROPERTY_NAME, universityFiscalYear);\n Criteria sub1_1 = new Criteria();\n sub1_1.addEqualTo(OLEConstants.UNIVERSITY_FISCAL_YEAR_PROPERTY_NAME, new Integer(universityFiscalYear.intValue() - 1));\n sub1.addOrCriteria(sub1_1);\n criteria.addAndCriteria(sub1);\n }\n\n criteria.addEqualTo(OLEConstants.CHART_OF_ACCOUNTS_CODE_PROPERTY_NAME, chartOfAccountsCode);\n criteria.addEqualTo(OLEConstants.ACCOUNT_NUMBER_PROPERTY_NAME, accountNumber);\n criteria.addEqualTo(OLEConstants.FINANCIAL_OBJECT_CODE_PROPERTY_NAME, financialObjectCodeForCashInBank);\n\n if (isEqualDebitCode) {\n criteria.addEqualTo(OLEConstants.TRANSACTION_DEBIT_CREDIT_CODE, OLEConstants.GL_DEBIT_CODE);\n }\n else {\n criteria.addNotEqualTo(OLEConstants.TRANSACTION_DEBIT_CREDIT_CODE, OLEConstants.GL_DEBIT_CODE);\n }\n\n criteria.addNotEqualTo(OLEConstants.DOCUMENT_HEADER_PROPERTY_NAME + \".\" + OLEConstants.DOCUMENT_HEADER_DOCUMENT_STATUS_CODE_PROPERTY_NAME, OLEConstants.DocumentStatusCodes.CANCELLED);\n\n ReportQueryByCriteria reportQuery = QueryFactory.newReportQuery(GeneralLedgerPendingEntry.class, criteria);\n reportQuery.setAttributes(new String[] { \"sum(\" + OLEConstants.TRANSACTION_LEDGER_ENTRY_AMOUNT + \")\" });\n\n return executeReportQuery(reportQuery);\n }",
"protected List<String> defaultKeyOfExpenseTransferAccountingLine() {\n List<String> defaultKey = new ArrayList<String>();\n\n defaultKey.add(KFSPropertyConstants.POSTING_YEAR);\n defaultKey.add(KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE);\n defaultKey.add(KFSPropertyConstants.ACCOUNT_NUMBER);\n defaultKey.add(KFSPropertyConstants.SUB_ACCOUNT_NUMBER);\n\n defaultKey.add(KFSPropertyConstants.BALANCE_TYPE_CODE);\n defaultKey.add(KFSPropertyConstants.FINANCIAL_OBJECT_CODE);\n defaultKey.add(KFSPropertyConstants.FINANCIAL_SUB_OBJECT_CODE);\n\n defaultKey.add(KFSPropertyConstants.EMPLID);\n defaultKey.add(KFSPropertyConstants.POSITION_NUMBER);\n\n defaultKey.add(LaborPropertyConstants.PAYROLL_END_DATE_FISCAL_YEAR);\n defaultKey.add(LaborPropertyConstants.PAYROLL_END_DATE_FISCAL_PERIOD_CODE);\n\n return defaultKey;\n }",
"public String toString() {\n\t\treturn accNum + \" $\" + balance + \" \" + rate + \" \" + numWithdraws;\n\t}",
"public long getAccountId()\r\n/* 115: */ {\r\n/* 116:121 */ return this.accountId;\r\n/* 117: */ }",
"public BigDecimal getLINE_NO() {\r\n return LINE_NO;\r\n }",
"public BigDecimal getLINE_NO() {\r\n return LINE_NO;\r\n }",
"public BigDecimal getLINE_NO() {\r\n return LINE_NO;\r\n }",
"public BigDecimal getLINE_NO() {\r\n return LINE_NO;\r\n }",
"public Chart getContinuationChartOfAccount() {\n return continuationChartOfAccount;\n }",
"public Chart getContinuationChartOfAccount() {\n return continuationChartOfAccount;\n }",
"static double calculateAngle(Line2D line, ArrowEnd end) {\n \t\t// Translate the line to 0,0\n \t\tdouble x1 = line.getX1();\n \t\tdouble y1 = line.getY1();\n \t\tdouble x2 = line.getX2();\n \t\tdouble y2 = line.getY2();\n \t\tdouble opposite = y2-y1;\n \t\tdouble adjacent = x2-x1;\n \n \t\tdouble radians = Math.atan(opposite/adjacent);\n \n \t\tif (adjacent < 0) radians += Math.PI;\n \n \t\t// TODO: Flip for other end\n \t\treturn radians;\n \t}",
"org.tensorflow.proto.profiler.XLine getLines(int index);",
"public List<MaintenanceInvoiceCreditVO> getMaintenanceCreditAPLines(MaintenanceRequest mrq){\n\t\ttry{\n\t\t\treturn maintenanceInvoiceDAO.getMaintenanceCreditAPLines(mrq);\n\t\t}catch(Exception ex){\n\t\t\tthrow new MalException(\"generic.error.occured.while\", \n\t\t\t\t\tnew String[] { \"retrieving creditAP lines for po: \" + mrq.getJobNo()}, ex);\n\t\t}\n\t}",
"public Enumeration toLines() {\n Vector lines = null;\n final String secret = this.getSecret();\n final String domain = this.getDomainName();\n final String creator = this.getCreatorEncodedString();\n final String signature = this.getSignatureString();\n if ((secret != null) && !secret.equals(\"\")) {\n if (lines == null) {\n lines = new Vector();\n }\n lines.addElement(FIELD_SECRET + FIELD_NAME_TERM + secret);\n }\n if ((domain != null) && !domain.equals(\"\")) {\n if (lines == null) {\n lines = new Vector();\n }\n lines.addElement(FIELD_DOMAIN_NAME + FIELD_NAME_TERM + domain);\n }\n if ((creator != null) && !creator.equals(\"\")) {\n if (lines == null) {\n lines = new Vector();\n }\n lines.addElement(FIELD_CREATOR + FIELD_NAME_TERM + creator);\n }\n if ((signature != null) && !signature.equals(\"\")) {\n if (lines == null) {\n lines = new Vector();\n }\n lines.addElement(FIELD_SIGNATURE + FIELD_NAME_TERM + signature);\n }\n if (lines == null) {\n return null;\n }\n return lines.elements();\n }",
"public String readLines() {\n\n String fileAsString;\n fileAsString = read();\n StringBuilder newString = new StringBuilder();\n if (fileAsString != null) {\n if (fromLine == toLine) {\n\n newString = new StringBuilder(fileAsString.split(\"\\n\")[fromLine - 1]);\n return newString.toString();\n } else {\n if (toLine > fileAsString.split(\"\\n\").length) {\n toLine = fileAsString.split(\"\\n\").length;\n }\n ;\n for (int i = fromLine - 1; i < toLine; i++) {\n\n newString.append(fileAsString.split(\"\\n\")[i]).append(\"\\n\");\n\n\n }\n }\n\n }\n\n\n return newString.toString();\n }",
"public interface LaborLedgerExpenseTransferAccountingLine extends AccountingLine, ExternalizableBusinessObject {\n\n /**\n * Gets the emplid\n * \n * @return Returns the emplid.\n */\n public String getEmplid();\n\n /**\n * Gets the laborObject\n * \n * @return Returns the laborObject.\n */\n public LaborLedgerObject getLaborLedgerObject();\n\n /**\n * Gets the payrollEndDateFiscalPeriodCode\n * \n * @return Returns the payrollEndDateFiscalPeriodCode.\n */\n public String getPayrollEndDateFiscalPeriodCode();\n\n /**\n * Gets the payrollEndDateFiscalYear\n * \n * @return Returns the payrollEndDateFiscalYear.\n */\n public Integer getPayrollEndDateFiscalYear();\n\n /**\n * Gets the payrollTotalHours\n * \n * @return Returns the payrollTotalHours.\n */\n public BigDecimal getPayrollTotalHours();\n\n /**\n * Gets the positionNumber\n * \n * @return Returns the positionNumber.\n */\n public String getPositionNumber();\n\n /**\n * Sets the emplid\n * \n * @param emplid The emplid to set.\n */\n public void setEmplid(String emplid);\n\n /**\n * Sets the laborLedgerObject\n * \n * @param laborLedgerObject The laborLedgerObject to set.\n */\n public void setLaborLedgerObject(LaborLedgerObject laborLedgerObject);\n\n /**\n * Sets the payrollEndDateFiscalPeriodCode\n * \n * @param payrollEndDateFiscalPeriodCode The payrollEndDateFiscalPeriodCode to set.\n */\n public void setPayrollEndDateFiscalPeriodCode(String payrollEndDateFiscalPeriodCode);\n\n /**\n * Sets the payrollEndDateFiscalYear\n * \n * @param payrollEndDateFiscalYear The payrollEndDateFiscalYear to set.\n */\n public void setPayrollEndDateFiscalYear(Integer payrollEndDateFiscalYear);\n\n /**\n * Sets the payrollTotalHours\n * \n * @param payrollTotalHours The payrollTotalHours to set.\n */\n public void setPayrollTotalHours(BigDecimal payrollTotalHours);\n\n /**\n * Sets the positionNumber\n * \n * @param positionNumber The positionNumber to set.\n */\n public void setPositionNumber(String positionNumber);\n}",
"public java.lang.String CC_GetLandMarks(java.lang.String accessToken, java.lang.String accountNo) throws java.rmi.RemoteException;",
"@Override\r\n\tpublic boolean reverseCorrectIt() {\n\t\t\r\n\tMClient client = new MClient(Env.getCtx(), getAD_Client_ID(), get_TrxName());\r\n\t\t\r\n\t\tMCHesLine hline = null;\r\n\t\tfor (int i=0; i < getLines().length; i++){\r\n\t\t\thline = m_lines[i];\r\n\t\t\tMCPreInvoiceLineG lg = new MCPreInvoiceLineG (Env.getCtx(), hline.getC_PreInvoiceLineG_ID(),get_TrxName());\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (getC_Currency_ID()==client.getC_Currency_ID()) \r\n\t\t\t\tlg.setQtyHes_Veb(lg.getQtyHes_Veb().subtract(hline.getQty()));\r\n\t\t\telse \r\n\t\t\t\tlg.setQtyHes_Usd(lg.getQtyHes_Usd().subtract(hline.getQty()));\r\n\t\t\t\r\n\t\t\tlg.save();\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"public String getAccountNo();",
"protected Map<String, ExpenseTransferAccountingLine> getAccountingLineGroupMap(List<ExpenseTransferAccountingLine> accountingLines, Class clazz) {\n Map<String, ExpenseTransferAccountingLine> accountingLineGroupMap = new HashMap<String, ExpenseTransferAccountingLine>();\n\n for (ExpenseTransferAccountingLine accountingLine : accountingLines) {\n String stringKey = ObjectUtil.buildPropertyMap(accountingLine, defaultKeyOfExpenseTransferAccountingLine()).toString();\n ExpenseTransferAccountingLine line = null;\n\n if (accountingLineGroupMap.containsKey(stringKey)) {\n line = accountingLineGroupMap.get(stringKey);\n KualiDecimal amount = line.getAmount();\n line.setAmount(amount.add(accountingLine.getAmount()));\n }\n else {\n try {\n line = (ExpenseTransferAccountingLine) clazz.newInstance();\n ObjectUtil.buildObject(line, accountingLine);\n accountingLineGroupMap.put(stringKey, line);\n }\n catch (Exception e) {\n LOG.error(\"Cannot create a new instance of ExpenseTransferAccountingLine\" + e);\n }\n }\n }\n return accountingLineGroupMap;\n }",
"public int[] getLineNumbers() {\n return lineNos;\n }",
"private LineSegment[] findSegments() {\n List<LineSegment> segmentList = new ArrayList<>();\n int N = points.length;\n for (int i = 0; i < N; i++) {\n for (int j = i+1; j < N; j++) {\n Double slopePQ = points[i].slopeTo(points[j]);\n for (int k = j+1; k < N; k++) {\n Double slopePR = points[i].slopeTo(points[k]);\n if (slopePQ.equals(slopePR)) {\n for (int l = k + 1; l < N; l++) {\n Double slopePS = points[i].slopeTo(points[l]);\n if (slopePQ.equals(slopePS)) {\n LineSegment lineSegment = new LineSegment(points[i], points[l]);\n segmentList.add(lineSegment);\n }\n }\n }\n }\n }\n }\n return segmentList.toArray(new LineSegment[segmentList.size()]);\n }",
"public List getLineage() {\n\t\tif (this.lineage == null) {\n\t\t\tthis.lineage = new ArrayList();\n\t\t\tfor (Iterator i = this.getAncestors().iterator(); i.hasNext();) {\n\t\t\t\tTeachersDomainStandardsNode node = (TeachersDomainStandardsNode) i.next();\n\t\t\t\tthis.lineage.add(0, node.getItemText());\n\t\t\t}\n\t\t\tthis.lineage.add(this.getLabel());\n\t\t}\n\t\treturn this.lineage;\n\t}",
"@Override \n public String toString() {\n return \"SavingAccount{\" +\n \"interestRate=\" + interestRate +\n \", accountHolder='\" + accountHolder + '\\'' +\n \", accountNum=\" + accountNum +\n \", balance=\" + balance +\n '}';\n }",
"public String getWithdrawalHistory() {\n\n\t\treturn getWithdrawalHistory(\"\");\n\t}",
"public int getAccount2() // getAccount2 method start\n\t\t{\n\t\t\tif (accounts[debitBox1.getSelectedIndex() - 1].getStatus())\n\t\t\t{\n\t\t\t\treturn convertIncreasingName(debitBox2.getSelectedIndex());\n\t\t\t} // end if\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn convertDecreasingName(debitBox2.getSelectedIndex());\n\t\t\t} // end else\n\t\t\t\n\t\t}",
"String getCurrentLine();",
"org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine[] getExternalOrderLineArray();",
"public static List<LnbDraw> getOnlineDrawData( int initialYear, int finalYear, int initialMonth, int finalMonth ) throws IOException{\n List<String> lnbGeneratedUrls = UrlGenerator.CreateUrlListFromYearRange(LNB_URL, initialYear, finalYear, initialMonth, finalMonth);\n \n // Download html data\n List<String> downloadedLnbData = DataDownloader.getData(lnbGeneratedUrls); \n \n //Extract draw data\n List<List<String>> drawData = DataExtractor.ExtractDrawData(downloadedLnbData);\n \n //Map data\n List<LnbDraw> mappedDrawData = DrawMapper.mapDraws(drawData);\n \n //Persisting data\n //PMF.persistEntity(mappedDrawData);\n \n return mappedDrawData;\n \n \n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getClaimLineNumber() {\n return (java.math.BigDecimal)__getInternalInterface().getFieldValue(CLAIMLINENUMBER_PROP.get());\n }",
"public Cursor getEditedExpenseLineItemCursor() {\n return getContext().getContentResolver().query(\n ExpenseEntry.CONTENT_URI,\n null,\n ExpenseEntry.COLUMN_SYNC_STATUS + \" =? \" +\n //ReportEntry.COLUMN_SYNC_STATUS + \" =? \" +\n \" AND \" + ExpenseEntry.COLUMN_EXPENSE_ID + \"!=?\",\n new String[] {\n SyncStatus.EDITED_REPORT.toString(),\n // SyncStatus.SYNC_IN_PROGRESS.toString(),\n Constants.INTERNAL_EXPENSE_LINE_ITEM_ID\n },\n null\n );\n }",
"public static AccountDigit find(final String[] lines) {\n\t\tInteger key = Integer.valueOf(Arrays.hashCode(lines));\n\t\treturn lookup.get(key);\n\t}",
"private List<String> firstRecord() {\n\t\t\t\t\twhile (lines.hasNext()) {\n\t\t\t\t\t\tif (lines.next().startsWith(\"===\")) {\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\treturn nextRecord();\n\t\t\t\t}",
"public KochLine getLineC(){\n\t\tKochLine lineC= new KochLine(p3,p4);\n\t\treturn lineC;\n\t\t\n\t}",
"protected void populateChartOfAccountsCodeFields() {\n AccountService acctService = SpringContext.getBean(AccountService.class);\n AccountPersistenceStructureService apsService = SpringContext.getBean(AccountPersistenceStructureService.class);\n \n // non-collection reference accounts \n PersistableBusinessObject bo = getBusinessObject(); \n Iterator<Map.Entry<String, String>> chartAccountPairs = apsService.listChartCodeAccountNumberPairs(bo).entrySet().iterator(); \n while (chartAccountPairs.hasNext()) {\n Map.Entry<String, String> entry = chartAccountPairs.next();\n String coaCodeName = entry.getKey(); \n String acctNumName = entry.getValue(); \n String accountNumber = (String)ObjectUtils.getPropertyValue(bo, acctNumName);\n String coaCode = null;\n Account account = acctService.getUniqueAccountForAccountNumber(accountNumber); \n if (ObjectUtils.isNotNull(account)) {\n coaCode = account.getChartOfAccountsCode();\n }\n try {\n ObjectUtils.setObjectProperty(bo, coaCodeName, coaCode); \n }\n catch (Exception e) {\n LOG.error(\"Error in setting property value for \" + coaCodeName,e);\n }\n }\n \n // collection reference accounts \n Iterator<Map.Entry<String, Class>> accountColls = apsService.listCollectionAccountFields(bo).entrySet().iterator(); \n while (accountColls.hasNext()) {\n Map.Entry<String, Class> entry = accountColls.next();\n String accountCollName = entry.getKey();\n PersistableBusinessObject newAccount = getNewCollectionLine(accountCollName);\n \n // here we can use hard-coded chartOfAccountsCode and accountNumber field name \n // since all reference account types do follow the standard naming pattern \n String accountNumber = (String)ObjectUtils.getPropertyValue(newAccount, OLEPropertyConstants.ACCOUNT_NUMBER); \n String coaCode = null;\n Account account = acctService.getUniqueAccountForAccountNumber(accountNumber); \n if (ObjectUtils.isNotNull(account)) {\n coaCode = account.getChartOfAccountsCode();\n try {\n ObjectUtils.setObjectProperty(newAccount, OLEPropertyConstants.CHART_OF_ACCOUNTS_CODE, coaCode); \n }\n catch (Exception e) {\n LOG.error(\"Error in setting chartOfAccountsCode property value in account collection \" + accountCollName,e);\n }\n }\n }\n }",
"public String getDepositHistory() {\n\n\t\treturn getDepositHistory(\"\");\n\t}",
"public int getJP_BankDataLine_ID();",
"private List<String> nextRecord() {\n\t\t\t\t\tList<String> record = new LinkedList<String>();\n\t\t\t\t\twhile (lines.hasNext()) {\n\t\t\t\t\t\tString line = lines.next();\n\t\t\t\t\t\tif (line.startsWith(\"---\")) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\trecord.add(line);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn record;\n\t\t\t\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getClaimLineNumber() {\n return (java.math.BigDecimal)__getInternalInterface().getFieldValue(CLAIMLINENUMBER_PROP.get());\n }",
"public Collection<Integer> getLoanAccounts() {\n try {\n return costumerRepo.getAllAccounts(ssn, \"LineOfCreditAccount\");\n }catch (Exception ex) {\n rootLogger.error(\"JDBC: message: {}\", ex.getMessage());\n }\n return null;\n }",
"private void findStaffLinePositions()\n {\n Log.i(TAG, \"findStaffLinePositions\");\n final int sliceStart = (int)(0.45*mWidth);\n final int sliceEnd = (int)(0.65*mWidth);\n \n boolean connected;\n int lineNum;\n for(int x = sliceStart; x<sliceEnd; ++x) //only consider a slice of x values\n {\n connected=false;\n lineNum=0;\n for(int y=0; y<mHeight; ++y)\n {\n if(mHorizontalProjHist[y] >= x) //the histogram for this y value is within the slice we're looking at\n {\n if(mStaffLineMap.indexOfKey(y) < 0) //we haven't seen this y value, so add it\n {\n \tmStaffLineMap.put(y, lineNum);\n }\n connected = true;\n }\n else if(connected) //encountered whitespace after a line\n {\n lineNum++;\n connected = false;\n }\n }\n }\n\n }",
"public String toString()\n {\n return \"Name=\"+accountHolderName+\", \\n Type=\"+accountType+\", \\n Balance=\"+accountBalance+\", \\n Branch=\"+getBankBranch()+ \" \\n BANK Name=\"+getBankName()+ \"\\n IFSC=\"+getBankIfsc() ;\n }",
"public BigDecimal getLineNetAmt();",
"private int getC_BankStatementLine_ID() {\n String sql = \"SELECT C_BankStatementLine_ID FROM C_BankStatementLine WHERE C_Payment_ID=?\";\n int id = DB.getSQLValue(get_TrxName(), sql, getC_Payment_ID());\n if (id < 0) {\n return 0;\n }\n return id;\n }",
"public Line[] getLines(double X, double Y, double D) {\n double d = D / 4; // Local var\n \n // Construct three congruent lines\n Line left = new Line(X - d, Y - d, X - d, Y + d);\n Line middle = new Line(X - d, Y, X + d, Y);\n Line right = new Line(X + d, Y - d, X + d, Y + d);\n\n // Return left, middle, and right as an array\n return new Line[]{left, middle, right};\n }",
"@Test\n\tpublic void loadOrderLines() {\n\t\tSet<OrderLine> response = null;\n\t\tresponse = service.loadOrderLines();\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: loadOrderLines\n\t}",
"public static double getGraidentBasedOnTradingDays(IGraphLine aLine, TreeSet<AbstractGraphPoint> listOfTradingDays) {\r\n double result = 0;\r\n if (null != aLine && null != listOfTradingDays) {\r\n AbstractGraphPoint myCurrStart = aLine.getCurrentC();\r\n AbstractGraphPoint myCurrEnd = aLine.getCurrentE();\r\n if (myCurrStart.getDateAsNumber() != myCurrEnd.getDateAsNumber()) {\r\n// TreeSet<AbstractGraphPoint> tDay = new TreeSet<AbstractGraphPoint>(AbstractGraphPoint.TimeComparator);\r\n// tDay.addAll(listOfTradingDays);\r\n //Calc P1\r\n //Get Market close time on start day\r\n Calendar endTrading = DTUtil.deepCopyCalendar(myCurrStart.getCalDate());\r\n endTrading.setTimeZone(DTConstants.EXCH_TIME_ZONE);\r\n endTrading.set(Calendar.HOUR_OF_DAY, DTConstants.EXCH_CLOSING_HOUR);\r\n endTrading.set(Calendar.MINUTE, DTConstants.EXCH_CLOSING_MIN);\r\n endTrading.set(Calendar.SECOND, DTConstants.EXCH_CLOSING_SEC);\r\n double p1 = endTrading.getTimeInMillis() - myCurrStart.getCalDate().getTimeInMillis();\r\n //double p1 = endTrading.getTimeInMillis() - (myCurrStart.getCalDate().getTimeInMillis() - DTConstants.MILLSECS_PER_HOUR);\r\n //Now calculate P2\r\n //Get Market open time on end day\r\n Calendar startTrading = DTUtil.deepCopyCalendar(myCurrEnd.getCalDate());\r\n startTrading.setTimeZone(DTConstants.EXCH_TIME_ZONE);\r\n startTrading.set(Calendar.HOUR_OF_DAY, DTConstants.EXCH_OPENING_HOUR);\r\n startTrading.set(Calendar.MINUTE, DTConstants.EXCH_OPENING_MIN);\r\n startTrading.set(Calendar.SECOND, DTConstants.EXCH_OPENING_SEC);\r\n double p2 = (myCurrEnd.getCalDate().getTimeInMillis() - startTrading.getTimeInMillis());\r\n //double p2 = (myCurrEnd.getCalDate().getTimeInMillis() - DTConstants.MILLSECS_PER_HOUR) - startTrading.getTimeInMillis();\r\n //Now calc P3\r\n //Get count of trading days from list\r\n// int currStartDay = myCurrStart.getDateAsNumber();\r\n// int currEndDay = myCurrEnd.getDateAsNumber();\r\n// NavigableSet<AbstractGraphPoint> subSet = new TreeSet<AbstractGraphPoint>();\r\n// for(AbstractGraphPoint currPoint : tDay){\r\n// int currDay = currPoint.getDateAsNumber();\r\n// if(currDay > currStartDay && currDay < currEndDay){\r\n// subSet.add(currPoint);\r\n// }\r\n// }\r\n NavigableSet<AbstractGraphPoint> subSet = listOfTradingDays.subSet(myCurrStart, false, myCurrEnd, false);\r\n ArrayList<AbstractGraphPoint> theSet = new ArrayList<AbstractGraphPoint>();\r\n theSet.addAll(subSet);\r\n for (AbstractGraphPoint currPoint : theSet) {\r\n if (currPoint.getDateAsNumber() == myCurrStart.getDateAsNumber() || currPoint.getDateAsNumber() == myCurrEnd.getDateAsNumber()) {\r\n subSet.remove(currPoint);\r\n }\r\n }\r\n double dayCount = subSet.size();\r\n double p3 = dayCount * DTUtil.msPerTradingDay();\r\n\r\n //Sum all three parts as deltaX\r\n double deltaX = p1 + p2 + p3;\r\n double deltaY = myCurrEnd.getLastPrice() - myCurrStart.getLastPrice();\r\n\r\n //Gradient is deltaY / deltaX\r\n result = deltaY / deltaX;\r\n\r\n System.out.println(\"Delta Y = \" + deltaY);\r\n System.out.println(\"Delta X = \" + deltaX);\r\n System.out.println(aLine.toString());\r\n } else {\r\n result = aLine.getGradient();\r\n System.out.println(aLine.toString());\r\n }\r\n }\r\n return result;\r\n }",
"private void getPreferences() {\n Constants constants = new Constants();\n android.content.SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n\n serverUrl = sharedPreferences.getString(\"LedgerLinkBaseUrl\", constants.DEFAULTURL);\n IsEditing = SharedPrefs.readSharedPreferences(getActivity(), \"IsEditing\", \"0\");\n tTrainerId = SharedPrefs.readSharedPreferences(getActivity(), \"ttrainerId\", \"-1\");\n vslaId = SharedPrefs.readSharedPreferences(getActivity(), \"vslaId\", \"-1\");\n\n vslaName = DataHolder.getInstance().getVslaName();\n representativeName = DataHolder.getInstance().getGroupRepresentativeName();\n representativePost = DataHolder.getInstance().getGroupRepresentativePost();\n repPhoneNumber = DataHolder.getInstance().getGroupRepresentativePhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n physAddress = DataHolder.getInstance().getPhysicalAddress();\n regionName = DataHolder.getInstance().getRegionName();\n grpPhoneNumber = DataHolder.getInstance().getGroupPhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n locCoordinates = DataHolder.getInstance().getLocationCoordinates();\n grpSupportType = DataHolder.getInstance().getSupportTrainingType();\n numberOfCycles = DataHolder.getInstance().getNumberOfCycles();\n }",
"boolean splitTradingEmployed();",
"int getLinesRead();",
"protected void initiateAdvancePaymentAndLines() {\n setDefaultBankCode();\n setTravelAdvance(new TravelAdvance());\n getTravelAdvance().setDocumentNumber(getDocumentNumber());\n setAdvanceTravelPayment(new TravelPayment());\n getAdvanceTravelPayment().setDocumentNumber(getDocumentNumber());\n getAdvanceTravelPayment().setDocumentationLocationCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TravelParameters.DOCUMENTATION_LOCATION_CODE,\n getParameterService().getParameterValueAsString(TemParameterConstants.TEM_DOCUMENT.class,TravelParameters.DOCUMENTATION_LOCATION_CODE)));\n getAdvanceTravelPayment().setCheckStubText(getConfigurationService().getPropertyValueAsString(TemKeyConstants.MESSAGE_TA_ADVANCE_PAYMENT_HOLD_TEXT));\n final java.sql.Date currentDate = getDateTimeService().getCurrentSqlDate();\n getAdvanceTravelPayment().setDueDate(currentDate);\n updatePayeeTypeForAuthorization(); // if the traveler is already initialized, set up payee type on advance travel payment\n setWireTransfer(new PaymentSourceWireTransfer());\n getWireTransfer().setDocumentNumber(getDocumentNumber());\n setAdvanceAccountingLines(new ArrayList<TemSourceAccountingLine>());\n resetNextAdvanceLineNumber();\n TemSourceAccountingLine accountingLine = initiateAdvanceAccountingLine();\n addAdvanceAccountingLine(accountingLine);\n }",
"private LineData generateLineData() {\n\n LineData d = new LineData();\n LineDataSet set = new LineDataSet(ReportingRates, \" ARVs (Reporting Rates)\");\n set.setColors(Color.parseColor(\"#90ed7d\"));\n set.setLineWidth(2.5f);\n set.setCircleColor(Color.parseColor(\"#90ed7d\"));\n set.setCircleRadius(2f);\n set.setFillColor(Color.parseColor(\"#90ed7d\"));\n set.setMode(LineDataSet.Mode.CUBIC_BEZIER);\n set.setDrawValues(true);\n\n set.setAxisDependency(YAxis.AxisDependency.LEFT);\n d.addDataSet(set);\n\n return d;\n }"
]
| [
"0.55634415",
"0.54753625",
"0.545475",
"0.5449407",
"0.53983635",
"0.52946025",
"0.5253756",
"0.52167374",
"0.5178857",
"0.5162511",
"0.51537704",
"0.51148957",
"0.5114228",
"0.5100785",
"0.5087117",
"0.50793904",
"0.5051421",
"0.5027728",
"0.50221616",
"0.50098336",
"0.49893713",
"0.49722314",
"0.49611825",
"0.49311277",
"0.49231395",
"0.49213022",
"0.48970023",
"0.48791882",
"0.48579276",
"0.48236606",
"0.48117805",
"0.48056",
"0.47999522",
"0.4788886",
"0.47729602",
"0.47661957",
"0.47629344",
"0.47401997",
"0.47352332",
"0.47334412",
"0.47329736",
"0.47327936",
"0.47243384",
"0.47238272",
"0.4721466",
"0.4718355",
"0.4718355",
"0.47170648",
"0.46979588",
"0.46936244",
"0.468874",
"0.46791738",
"0.46769086",
"0.46769086",
"0.46769086",
"0.46769086",
"0.46746793",
"0.46746793",
"0.4674672",
"0.46698898",
"0.46616262",
"0.4660903",
"0.4659371",
"0.46576437",
"0.46559826",
"0.46527508",
"0.46485928",
"0.46403748",
"0.4637612",
"0.4636736",
"0.46352035",
"0.46345186",
"0.4633701",
"0.462431",
"0.46235025",
"0.4612025",
"0.46050516",
"0.46018696",
"0.45997578",
"0.4598334",
"0.4588115",
"0.45874557",
"0.4587349",
"0.45836964",
"0.45767364",
"0.45757744",
"0.45755208",
"0.45754647",
"0.45735484",
"0.45685855",
"0.4562027",
"0.4561162",
"0.456079",
"0.45511958",
"0.4551137",
"0.4538192",
"0.45368436",
"0.45334306",
"0.45331123",
"0.45300364"
]
| 0.7601001 | 0 |
TA's will route by profile account if they are blanket travel or if the trip type does not generate an enumbrance | @Override
protected boolean shouldRouteByProfileAccount() {
return getBlanketTravel() || !getTripType().isGenerateEncumbrance() || hasOnlyPrepaidExpenses();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getRoute(Point origin, Point destination){\n NavigationRoute.builder(this)\n .profile(DirectionsCriteria.PROFILE_WALKING) //Change Here for car navigation\n .accessToken(Mapbox.getAccessToken())\n .origin(origin)\n .destination(destination)\n .build()\n .getRoute(new Callback<DirectionsResponse>() {\n @Override\n public void onResponse(Call<DirectionsResponse> call, Response<DirectionsResponse> response) {\n if(response.body() == null)\n {\n Log.e(TAG, \"No routes found, check right user and access token\");\n return;\n }else if (response.body().routes().size() == 0){\n Log.e(TAG,\"No routes found\");\n return;\n }\n\n currentRoute = response.body().routes().get(0);\n\n if(navigationMapRoute != null){\n navigationMapRoute.removeRoute();\n }\n else{\n navigationMapRoute = new NavigationMapRoute(null,mapView,map);\n }\n navigationMapRoute.addRoute(currentRoute);\n }\n\n @Override\n public void onFailure(Call<DirectionsResponse> call, Throwable t) {\n Log.e(TAG, \"Error:\" + t.getMessage());\n }\n });\n }",
"@Override\n public void planTrip(String departingAddress, String departingZipCode,\n String arrivalZipCode, Date preferredArrivalTime) {\n FlightSchedule schedule = airlineAgency.bookTicket(departingZipCode, arrivalZipCode, preferredArrivalTime);\n //cab pickup scheduling activity\n cabAgency.requestCab(departingAddress, schedule.getFlightNumber());\n \n //Test output\n System.out.println(\"Test output: trip planned\");\n }",
"public static void main(String[] args) throws CantAdd, CoronaWarn {\n\t\tTravelAgency TravelAgency = new TravelAgency();\r\n\r\n\t\tPlane p=new Plane(200,2,\"first plane max travelers\");\r\n\t\tPlane p1=new Plane(100,1,\"second plan min traelers\");\r\n\r\n\t\tTrip i=new Trip(p,Country.Australia,Country.Canada);\r\n\t\tTrip io=new Trip(p1,Country.Australia,Country.Canada);\r\n\t\t \r\n\t\tDate date=new Date(1,2,5);\r\n\t\tPassport passprt1=new Passport(\"anton\",44,date);\r\n\t\tPassport passprt2=new Passport(\"abdo\",44,date);\r\n\t\tPassport passprt3=new Passport(\"julie\",44,date);\r\n\t\tPassport passprt4=new Passport(\"juliana\",44,date);\r\n\t\tPassport passprt5=new Passport(\"bella\",44,date);\r\n\t\tPassport passprt6=new Passport(\"geris\",44,date);\r\n\t\tTraveler t1=new Traveler(passprt1,true,true);\r\n\t\tTraveler t2=new Traveler(passprt2,true,true);\r\n\t\tTraveler t3=new Traveler(passprt3,true,true);\r\n\t\tTraveler t4=new Traveler(passprt4,true,true);\r\n\t\tTraveler t5=new Traveler(passprt5,true,true);\r\n\t\tTraveler t6=new Traveler(passprt6,true,true);\r\n\t\t\r\n\t\t\r\n\t\tio.addTraveler(t1);\r\n\t\tio.addTraveler(t2);\r\n\t\tio.addTraveler(t3);\r\n\t\tio.addTraveler(t6);\r\n\t\tio.addTraveler(t5);\r\n\t\tio.addTraveler(t4);\r\n\t\tio.addTraveler(t6);\r\n \r\n\t\ti.addTraveler(t1);\r\n\t\ti.addTraveler(t2);\r\n\t\ti.addTraveler(t3);\r\n\t\ti.addTraveler(t4);\r\n\t\r\n\t\ti.addTraveler(t6);\r\n\t\t\r\n\t\tTravelAgency.addTrip(i);\t\r\n\t\tTravelAgency.addTrip(io);\r\n\t\tSystem.out.print(TravelAgency.findUnsafeTrips());\r\n\r\n\t\t\r\n\t\tTravelAgency.AddTraveler(t1);\r\n\t\tTravelAgency.AddTraveler(t2);\r\n\t\tTravelAgency.AddTraveler(t3);\r\n\t\tTravelAgency.AddTraveler(t4);\r\n\t\tTravelAgency.AddTraveler(t5);\r\n\t\tTravelAgency.AddTraveler(t6);\r\n\t\t\r\n\t}",
"public void setTrip(String trip)\r\n {\r\n this.trip=trip;\r\n }",
"public void availableTrains(int type, String source, String destination) {\n\n\t\tint i = 0, temp = 0;\n\n\t\tif (type == 1) {\n\n\t\t\tIterator<PassengerTrain> itr = TrainDetails.passengerList\n\t\t\t\t\t.iterator();// For passenger train\n\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tPassengerTrain passenger = itr.next();\n\n\t\t\t\tif (source.equalsIgnoreCase(passenger.getFromPlace())\n\t\t\t\t\t\t&& destination.equalsIgnoreCase(passenger.getToPlace())) {\n\t\t\t\t\ttemp = temp + 1;\n\t\t\t\t\tSystem.out.println(temp);\n\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"TRAINID\t\tSOURCE \t\tDESTINATION\tDURATION\tSEATS\t PRICE\");\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(passenger.getTrainId() + \"\t\t \"\n\t\t\t\t\t\t\t+ passenger.getFromPlace() + \"\t\t \"\n\t\t\t\t\t\t\t+ passenger.getToPlace() + \" \t\t\"\n\t\t\t\t\t\t\t+ passenger.getDuration() + \" \t\t\"\n\t\t\t\t\t\t\t+ passenger.getSeats() + \" \t\t\"\n\t\t\t\t\t\t\t+ passenger.getPrice());\n\n\t\t\t\t}\n\n\t\t\t\tif (temp == 0) {\n\t\t\t\t\tSystem.out.println(\"No such trains.Try Another\");\n\t\t\t\t\tTrainMenu menu1 = new TrainMenu();\n\t\t\t\t\tmenu1.menu();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\telse {// For goods train\n\t\t\tIterator<GoodsTrain> itr = TrainDetails.goodsList.iterator();\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tGoodsTrain goods = itr.next();\n\t\t\t\tif (source.equalsIgnoreCase(goods.getFromPlace())\n\t\t\t\t\t\t&& destination.equalsIgnoreCase(goods.getToPlace())) {\n\t\t\t\t\ttemp = temp + 1;\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Train Number \tSOURCE \t\tDESTINATION\t\tTIME\t\tWEIGHT\t\tPRICE\");\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(goods.getTrainId() + \"\t\t \"\n\t\t\t\t\t\t\t+ goods.getFromPlace() + \"\t\t \" + goods.getToPlace()\n\t\t\t\t\t\t\t+ \" \t\t\" + goods.getDuration() + \" \t\t\"\n\t\t\t\t\t\t\t+ goods.getWeight() + \" \t\t\" + goods.getPrice());\n\n\t\t\t\t}\n\n\t\t\t\tif (temp == 0) {\n\t\t\t\t\tSystem.out.println(\"No such trains.Try another\");\n\t\t\t\t\tTrainMenu menu1 = new TrainMenu();\n\t\t\t\t\tmenu1.menu();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void endTrip()\r\n {\r\n if (detourTrip == null)\r\n {\r\n // we are in a normal trip\r\n trip = null;\r\n }\r\n else\r\n {\r\n // we are in a detour trip\r\n detourTrip = null;\r\n }\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 }",
"void onSucceedFindDirection(List<RouteBeetweenTwoPointsDTO> route);",
"public void extractDayTrip(DayTrip dayTrip, RouteContext context) {\n\t\t// extract to regions\n\t\tdayTrip.getToRegions().clear();\n\t\tdayTrip.getSights().clear();\n\t\tdayTrip.getCitiesByDesc().clear();\n\t\tdayTrip.setFromCity(null);\n\t\tdayTrip.getToSights().clear();\n\t\tdayTrip.getToAuditSights().clear();\n\t\tboolean fromFlag = true;//有from\n\t\tList<Sight> toRegionList = new ArrayList<Sight>();\n\t\tList<OptionSight> optionToRegions = dict.extractOptionSights(dayTrip.getTitleInfo());\n\t\tint i = 0;\n\t\tfor (OptionSight option : optionToRegions) {\n\t\t\ti++;\n\t\t\tif (option.getOptionSights().size() == 1) {\n\t\t\t\tSight s = option.getOptionSights().get(0);\n\t\t\t\tif (isInRegion(s, context)) {\n\t\t\t\t\ttoRegionList.add(option.getOptionSights().get(0));\t\n\t\t\t\t} \n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tint count = 0;\n\t\t\t\tSight validSight = null;\n\t\t\t\tfor(Sight sight : option.getOptionSights()) {\n\t\t\t\t\tif (isInRegion(sight, context)) {\n\t\t\t\t\t\tvalidSight = sight;\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (count == 1) {\n\t\t\t\t\ttoRegionList.add(validSight);\n\t\t\t\t} else {\n\t\t\t\t\tif (option.getOptionSights().size() == 2) {\n\t\t\t\t\t\tSight s1 = option.getOptionSights().get(0);\n\t\t\t\t\t\tSight s2 = option.getOptionSights().get(1);\n\t\t\t\t\t\tvalidSight = null;\n\t\t\t\t\t\tboolean b = false;\n\t\t\t\t\t\tSight p = null;\n\t\t\t\t\t\tSight p1 = s2;\n\t\t\t\t\t\twhile( (p = p1.getParentSight()) != null) {\n\t\t\t\t\t\t\tif (p == s1) {\n\t\t\t\t\t\t\t\tvalidSight = p;\n\t\t\t\t\t\t\t\tb = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tp1 = p;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!b) {\n\t\t\t\t\t\t\tp = null;\n\t\t\t\t\t\t\tp1 = s1;\n\t\t\t\t\t\t\twhile( (p = p1.getParentSight()) != null) {\n\t\t\t\t\t\t\t\tif (p == s2) {\n\t\t\t\t\t\t\t\t\tvalidSight = p;\n\t\t\t\t\t\t\t\t\tb = true;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tp1 = p;\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\tif (b) {\n\t\t\t\t\t\t\tif (isInRegion(validSight, context)) {\n\t\t\t\t\t\t\t\ttoRegionList.add(validSight);\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}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tif (i == 1) {\n\t\t\t\tif (toRegionList.size() == 0) fromFlag = false;\n\t\t\t}\n\t\t}\n\t\tdayTrip.getToRegions().addAll(toRegionList);\n\t\tList<Sight> toRegionCityList = new ArrayList<Sight>();\n\t\tfor (Sight sight : toRegionList) {\n\t\t\tSight country = sight.getCountry();\n\t\t\tif (country == null) {\n\t\t\t\ttoRegionCityList.add(sight);\n\t\t\t} else if (! \"中国\".equals(country.getName())) {\n\t\t\t\ttoRegionCityList.add(sight);\n\t\t\t} else {\n\t\t\t\tif (\"景区\".equals(sight.getType()) || \"城市\".equals(sight.getType())) {\n\t\t\t\t\ttoRegionCityList.add(sight);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tdayTrip.getToRegions().clear();\n\t\tdayTrip.getToRegions().addAll(toRegionCityList);\n\t\tList<OptionSight> optionSights = dict.extractOptionSights(dayTrip.getDescription(), context);\n\t\tboolean titleNoRegion = dayTrip.getToRegions().size() == 0;\n\t\tif (toRegionCityList.size() == 0) {\n\t\t\tdayTrip.getCitiesByDesc().addAll(this.getOptionSightCity(optionSights, 2));\n\t\t\tfromFlag = false;\n\t\t\tfor(Object o : dayTrip.getCitiesByDesc()) {\n\t\t\t\tif (o instanceof Sight) {\n\t\t\t\t\tSight sight = (Sight)o;\n\t\t\t\t\tSight country = sight.getCountry();\n\t\t\t\t\tif (country == null) continue;\n\t\t\t\t\tif (isInRegion(sight, context)) {\n\t\t\t\t\t\tif (titleNoRegion) {\n\t\t\t\t\t\t\tdayTrip.getToRegions().add(sight);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttoRegionCityList.add(sight);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} else if (o instanceof OptionSight) {\n\t\t\t\t\tOptionSight oSight = (OptionSight)o;\n\t\t\t\t\tint count = 0;\n\t\t\t\t\tSight validSight = null;\n\t\t\t\t\tfor(Sight sight : oSight.getOptionSights()) {\n\t\t\t\t\t\tif (isInRegion(sight, context)) {\n\t\t\t\t\t\t\tvalidSight = sight;\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (count == 1) {\n\t\t\t\t\t\tif (titleNoRegion) {\n\t\t\t\t\t\t\tdayTrip.getToRegions().add(validSight);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttoRegionCityList.add(validSight);\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t// look up all to regions prefix such as 前往 住宿....\n\t\tArrayList<Sight> toRegions = new ArrayList<Sight>();\n\t\tfor (OptionSight optionSight : optionSights) {\n\t\t\tif (!optionSight.isToRegion()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tSight rightSight = getRightSight(optionSight, toRegionCityList);\n\t\t\tif (!isInRegion(rightSight, context)) continue;\n\t\t\tif (rightSight != null) {\n\t\t\t\tdayTrip.getSights().add(rightSight);\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif (rightSight != null && optionSight.isToRegion()) {\n\t\t\t\ttoRegions.add(rightSight);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// look up other\n\t\tfor (OptionSight optionSight : optionSights) {\n\t\t\tif (optionSight.isToRegion()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tSight rightSight = getRightSight(optionSight, toRegionCityList);\t\n\t\t\tif (rightSight != null) {\n\t\t\t\tif (!isInRegion(rightSight, context)) continue;\n\t\t\t\tdayTrip.getSights().add(rightSight);\t\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tif (toRegionCityList == null || toRegionCityList.size() == 0) {\n\t\t\t// to regions extract\n\t\t\tArrayList<Sight> scenics = new ArrayList<Sight>();\n\t\t\tArrayList<Sight> cities = new ArrayList<Sight>();\n\t\t\tArrayList<Sight> countries = new ArrayList<Sight>();\n\t\t\t\n\t\t\tfor (Sight sight: toRegions) {\n\t\t\t\tString type = sight.getType();\n\t\t\t\tif (\"景区\".equals(type)) {\n\t\t\t\t\tscenics.add(sight);\n\t\t\t\t} else if (\"城市\".equals(type)) {\n\t\t\t\t\tcities.add(sight);\n\t\t\t\t} else if (\"国家\".equals(type)) {\n\t\t\t\t\tif (!\"中国\".equals(sight.getName())) {\n\t\t\t\t\t\tcountries.add(sight);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\tfor (Sight sight : scenics) {\n\t\t\t\tif (!isInRegion(sight, context)) continue;\n\t\t\t\tdayTrip.addToRegions(sight);\n\t\t\t}\n\t\t\tfor (Sight sight : cities) {\n\t\t\t\tif (!isInRegion(sight, context)) continue;\n\t\t\t\tdayTrip.addToRegions(sight);\n\t\t\t}\n\t\t\tfor (Sight sight : countries) {\n\t\t\t\tif (!isInRegion(sight, context)) continue;\n\t\t\t\tdayTrip.addToRegions(sight);\n\t\t\t}\n\t\t} else {\n\t\t\tint startIdx = 0;\t\t\t\n\t\t\tif (toRegionCityList.size() > 1) {\n\t\t\t\tstartIdx = 1;\n\t\t\t\tif (fromFlag)\tdayTrip.setFromCity(toRegionCityList.get(0));\n\t\t\t}\t\t\t\n\t\t\tfor (int idx = startIdx; idx < toRegionCityList.size(); idx++) {\n\t\t\t\tSight sight = toRegionCityList.get(idx);\n\t\t\t\tif (isInRegion(sight, context)) {\n\t\t\t\t\tdayTrip.addToRegions(sight);\n\t\t\t\t}\t\t\t\t\n\t\t\t\tSight toCountry = sight.getCountry();\n\t\t\t\tif (toCountry != null && !\"中国\".equals(toCountry.getName())) {\n\t\t\t\t\tdayTrip.addToRegions(toCountry);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSight filterMaxCountCity = this.getMaxCountCityName(optionSights, 2);\n\t\tfor (Sight sight : dayTrip.getSights()) {\n\t\t\tboolean isToSight = filterToSightByToRegion(sight, toRegionCityList, null, dayTrip.getDayNum());\n\t\t\t\n\t\t\t// added contain noise check \n\t\t\tboolean containNoise = false;\n\t\t\tString desc = dayTrip.getDescription();\n\t\t\tint end = sight.getEndPos();\n\t\t\tif (end + 4 > desc.length()) {\n\t\t\t\tend = desc.length();\n\t\t\t} else {\n\t\t\t\tend = end + 4;\n\t\t\t}\n\t\t\t\n\t\t\tString sightAround = desc.substring(sight.getStartPos(), end);\n\t\t\tif (sightAround.contains(\"酒店\") || sightAround.contains(\"机场\")) {\n\t\t\t\tcontainNoise = true;\n\t\t\t}\n\t\t\t\n\t\t\tif (isToSight && !containNoise) {\n\t\t\t\tSight country = sight.getCountry();\n\t\t\t\tif (country == null) { //never true\n\t\t\t\t\tif (\"南极洲\".equals(sight.getName()) ||\n\t\t\t\t\t\t\"北极洲\".equals(sight.getName())\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\tif (isInRegion(sight, context)) \n\t\t\t\t\t\t\tdayTrip.getToSights().add(sight);\n\t\t\t\t\t}\n\t\t\t\t} else if (\"中国\".equals(country.getName())) {\n\t\t\t\t\tString type = sight.getType();\n\t\t\t\t\tif (\"景区\".equals(type)) {\n\t\t\t\t\t\tif (isInRegion(sight, context))\n\t\t\t\t\t\t\tdayTrip.getToSights().add(sight);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (\"景点\".equals(type)) {\n\t\t\t\t\t\t\tSight p = sight.getParentSight();\n\t\t\t\t\t\t\tif (p != null) {\n\t\t\t\t\t\t\t\tif (\"景区\".equals(p.getType())) {\n\t\t\t\t\t\t\t\t\tif (isInRegion(p, context)) {\n\t\t\t\t\t\t\t\t\t\tdayTrip.getToSights().add(p);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (isInRegion(sight, context)) \n\t\t\t\t\t\tdayTrip.getToSights().add(sight);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tString type = sight.getType();\n\t\t\t\tif (\"景点\".equals(type) || \"景区\".equals(type)) {\n\t\t\t\t\tdayTrip.getToAuditSights().add(sight);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (fromFlag) {\n\t\t\tif (dayTrip.getFromCity() != null) {\n\t\t\t\tdayTrip.getToRegions().remove(dayTrip.getFromCity());\n\t\t\t}\n\t\t}\n\t}",
"public void setTrip(Integer trip) {\n this.trip = trip;\n }",
"@Override\n public boolean isTripAvailable() {\n return true;\n }",
"public Trip(Vehicle v, boolean round) {\r\n this.vehicle = v;\r\n roundTrip = round;\r\n }",
"public void routeAllTrains() {\n\t\tfor (Train t : trains) {\n\t\t\tcalculateShortestRoute(t);\n\t\t}\n\t\t\n\t}",
"public static void beginTrip() {\n Trip currentTrip = App.getModel().getSessionTrip();\n currentTrip.setStatus(Trip.STATUS.EN_ROUTE);\n ApplicationService.beginTrip(currentTrip.getRiderID(), currentTrip, ((resultData, err) -> {\n if (err != null) {\n List<Observer> mapObservers = App.getModel().getObserversMatchingClass(MapActivity.class);\n for (Observer map : mapObservers) {\n ((UIErrorHandler) map).onError(err);\n }\n } else {\n App.getModel().setSessionTrip(currentTrip);\n }\n }));\n }",
"@Test\n public void testThatResultsAppearForAOneWayJourney(){\n JourneyDetails journeyDetails = new JourneyDetailsBuilder().isOneWay(true).\n withOrigin(\"Bangalore\").withDestination(\"Delhi\").\n withDepartureDate(tomorrow()).build();\n\n\n user.searchesForAOneWayJourneyWith(journeyDetails);\n user.hasJourneyOptionsAvailableForHisOutboundJourney();\n\n\n }",
"@Test\n public void testThatResultsAppearForAOneWayJourney(){\n JourneyDetails journeyDetails = new JourneyDetailsBuilder().isOneWay(true).\n withOrigin(\"Bangalore\").withDestination(\"Delhi\").\n withDepartureDate(tomorrow()).build();\n\n\n when(user).searchesForAOneWayJourneyWith(journeyDetails);\n then(user).hasJourneyOptionsAvailableForHisOutboundJourney();\n }",
"@Override\n public void calcRoute(final GeoPoint origin, final GeoPoint destination, double bearing, CallbackOnlineRouteReceiver callback){\n final String origLatLong = origin.getLatitude() + \",\" + origin.getLongitude();\n String destLatLong = destination.getLatitude() + \",\" + destination.getLongitude();\n\n // converting the heading to a string\n String heading = String.valueOf(bearing).split(\"\\\\.\")[0];\n\n // then we make the request to Bing API\n BingRequests mapsService = RoutingAPIs.getInstance().connectToBingMaps();\n Call<BingRespGetRoute> responseGetRoute =\n mapsService.requestDirections(\n origLatLong,\n destLatLong,\n heading,\n NavConfig.getLanguageTag(),\n NavConfig.API_KEY);\n\n // enqueuing the response\n responseGetRoute.enqueue(new Callback<BingRespGetRoute>() {\n @Override\n public void onResponse(@NonNull Call<BingRespGetRoute> call, @NonNull Response<BingRespGetRoute> response) {\n\n if (response.isSuccessful() && response.body() != null) {\n // once we get a successful response...\n List<RoutePoint> routePoints = new ArrayList<>(); // we start a new list of RoutePoints, that will be returned\n\n try {\n // we get a list of all the route points\n List<GeoPoint> routeGeoPoints = response.body()\n .getBingRouteResourceSets()[0]\n .getResources()[0]\n .getRoutePath()\n .getLine()\n .getLinePoints();\n\n // then we get a list of all pertinent data from the Bing API\n BingRouteLeg[] bingRouteLegs = response.body()\n .getBingRouteResourceSets()[0]\n .getResources()[0]\n .getRouteLegs();\n\n List<BingItineraryItem> allItems = new ArrayList<>();\n for (BingRouteLeg currentLeg : bingRouteLegs) {\n // adding all itinerary items on the same list (itinerary items encapsulate traffic info, instructions, ...)\n allItems.addAll(Arrays.asList(currentLeg.getItineraryItems()));\n }\n\n // we create a final version of our items list\n final List<BingItineraryItem> allInstructions = new ArrayList<>(allItems);\n\n // finally, we create a string with all route point coordinates to feed the snap to roads request\n String pointsString = \"\";\n for (GeoPoint point : routeGeoPoints) {\n pointsString = pointsString.concat(String.valueOf(point.getLatitude()))\n .concat(\",\")\n .concat(String.valueOf(point.getLongitude()))\n .concat(\";\");\n }\n // for the last point, we simply remove the final \";\"\n pointsString = pointsString.substring(0, pointsString.length() - 1);\n\n Log.d(TAG, \"Bing request Get Route was successful. Requesting snap to roads.\");\n // once we get a successful response, we make a new snap to roads request\n Call<BingRespSnapToRoad> responseSnapToRoad =\n mapsService.requestSnapToRoad(\n pointsString,\n NavConfig.API_KEY);\n\n // enqueuing the snap to roads response\n responseSnapToRoad.enqueue(new Callback<BingRespSnapToRoad>() {\n\n @Override\n public void onResponse(Call<BingRespSnapToRoad> call, Response<BingRespSnapToRoad> response) {\n\n try {\n\n BingSnappedPoint[] snappedPoints\n = response.body()\n .getBingSnapResourceSets()[0]\n .getResources()[0]\n .getSnappedPoints();\n\n List<RoutePoint> allRoutePoints = new ArrayList<>();\n\n // now we build each RoutePoint\n for (BingSnappedPoint point : snappedPoints) {\n\n double latitude = point.getCoordinates().getLatitude();\n double longitude = point.getCoordinates().getLongitude();\n\n GeoPoint gp = new GeoPoint(latitude, longitude);\n RoutePoint newRP = new RoutePoint(gp);\n\n newRP.setStreetName(point.getStreetName());\n newRP.setRecommendedSpeed(String.valueOf(point.getSpeedLimit()));\n\n allRoutePoints.add(newRP);\n }\n\n /* we end up with two parallel lists. One with all the points (allRoutePoints) and another\n with all the instruction data (allInstructions). We have to join them together. We'll cycle\n through all instructions and, for each one, we'll find the closest RoutePoint. Once we do,\n we simply assign all the instructions to that point */\n\n for (BingItineraryItem currentItem : allInstructions) {\n\n // for each item, we find its closest RoutePoint\n RoutePoint closestPoint = findClosestRoutePoint(currentItem, allRoutePoints);\n\n // and complement it\n if (closestPoint != null)\n complementRoutePointFromItem(closestPoint, currentItem);\n\n }\n callback.returnSuccess(allRoutePoints);\n\n } catch (Exception e) {\n Log.e(TAG, \"Exception while retrieving snap to roads: \" + response.message());\n Log.e(TAG, \"Processing original request\");\n e.printStackTrace();\n\n // On failure, we process our original response, without the snapped points\n List<RoutePoint> originalResponseRPs = processOriginalResponse(routeGeoPoints, allInstructions);\n callback.returnSuccess(originalResponseRPs);\n }\n }\n\n @Override\n public void onFailure(Call<BingRespSnapToRoad> call, Throwable throwable) {\n Log.e(TAG, \"ERROR while retrieving Bing snap to roads request. Processing original request\");\n // On failure, we process our original response, without the snapped points\n List<RoutePoint> originalResponseRPs = processOriginalResponse(routeGeoPoints, allInstructions);\n callback.returnSuccess(originalResponseRPs);\n }\n });\n\n } catch (Exception e) {\n Log.e(TAG, \"Exception while retrieving route: \" + response.message());\n e.printStackTrace();\n callback.returnFailure(origin, destination); // calculate an offline route on failure\n }\n } else {\n Log.e(TAG, \"Route request not accepted: \" + response.message());\n callback.returnFailure(origin, destination); // calculate an offline route on failure\n }\n }\n @Override\n public void onFailure(@NonNull Call<BingRespGetRoute> call, @NonNull Throwable t) {\n Log.w(TAG, \"No connection.\");\n callback.returnFailure(origin, destination); // calculate an offline route on failure\n }\n });\n }",
"public void suggestTourPlan(Tour alternativeRoute) throws JSONException, ParseException {\n String tourId = alternativeRoute.getTourName(); //get this from session\n Tour tourDetails = new TourDAOs().getTour(alternativeRoute.getTourName());\n System.out.println(\"Tour Details :\" + tourDetails.getStartDate() + \" \" + tourDetails.getEndDate());\n \n String start = tourDetails.getStartDate().substring(8);\n String end = tourDetails.getEndDate().substring(8);\n int tourDuration = Integer.parseInt(end) - Integer.parseInt(start);\n System.out.println(\"REAL DATE :\" + start + \" \" + end + \" \" + tourDuration);\n\n //get premium route details\n List<Route> routeDetails = new LocationRouteDAO().getDefaultRoute(tourId);\n //to print the locations of default route\n for (Route route : routeDetails) {\n System.out.println(\"Default Route list :\" + route.getLocationId());\n //System.out.println(location.getPoints());\n }\n\n int position = 0;\n int i = 0;\n ArrayList<Route> finalRoutes = new ArrayList<Route>();\n Route r = new Route();\n\n Route hotel = new Route();\n hotel.setDestinationPlaceName(routeDetails.get(0).getSourcePlaceName());\n hotel.setDestinationLatitude(routeDetails.get(0).getSourceLatitude());\n hotel.setDestinationLongitude(routeDetails.get(0).getSourceLongitude());\n finalRoutes.add(hotel);\n\n System.out.println(\"before proceeding with the loop :\" + finalRoutes.get(0).getDestinationPlaceName());\n\n //new code starts here\n for (Route route : routeDetails) {\n\n //get the location name of each location of the premium route\n String locName = route.getDestinationPlaceName();\n\n //find the category of the locName\n String locNameCategory = new LocationDAOs().getCategoryLocName(locName);\n\n //get all the locations that belongs to that category\n List<Location> categoryLocList = new ArrayList();\n categoryLocList = new LocationDAOs().getAllLocationsCategory(locNameCategory);\n\n //the location array that sends to the route generator algorithm\n ArrayList<Location> locations_details_ontology = new ArrayList();\n\n //to add the accommodation location as the first to the ontology array\n i++;\n\n Location loc1 = new Location();\n loc1.setLocationName(finalRoutes.get(finalRoutes.size() - 1).getDestinationPlaceName());\n loc1.setLatitude(finalRoutes.get(finalRoutes.size() - 1).getDestinationLatitude());\n loc1.setLongitude(finalRoutes.get(finalRoutes.size() - 1).getDestinationLongitude());\n locations_details_ontology.add(loc1);\n \n \n for (Location loc : categoryLocList) {\n\n if (!locations_details_ontology.get(0).getLocationName().equals(loc.getLocationName())) {\n Location l = new Location();\n l.setLocationName(loc.getLocationName());\n l.setLatitude(loc.getLatitude());\n l.setLongitude(loc.getLongitude());\n locations_details_ontology.add(l);\n }\n }\n \n //to print locations_details_ontology\n for (Location location : locations_details_ontology) {\n System.out.println(location.getLocationName() + \"----\"\n + location.getLatitude() + \"----\" + location.getLongitude());\n //System.out.println(location.getPoints());\n }\n\n //call the lagorithm to find out nearest locations to the first location in ontology array\n ArrayList<Route> routes = new RouteGenerator().RouteFinder(locations_details_ontology);\n\n // Loop all the routes to take the minimum distance of route.\n double min = 0;\n for (int k = 0; k < routes.size(); k++) {\n\n System.out.println(routes.get(k).getDistance());\n min = routes.get(0).getDistance();\n if (min >= routes.get(k).getDistance()) {\n min = routes.get(k).getDistance();\n r = routes.get(k);\n }\n }\n position++;\n r.setPosition(Integer.toString(position));\n\n boolean res = false;\n for (Route avail : finalRoutes) {\n\n if (r.getDestinationPlaceName().equals(avail.getDestinationPlaceName())) {\n res = true;\n }\n\n }\n if (res == false) {\n finalRoutes.add(r);\n }\n \n //to print final routes array\n for (Route fr : finalRoutes) {\n System.out.println(\"FINAL ROUTES ARRAY SANDUNI :\" + fr.getDestinationPlaceName());\n }\n\n }\n\n //get all location list from the database\n List<Location> allLocationList = new LocationDAOs().getAllLocationsList();\n // finalRoutes = new CustomizeRoute().DayPlanner(finalRoutes, allLocationList);\n\n //int m=0;\n //for (int es = 0; es <= m; es++) {\n for (int es = 0; es <= 4; es++) {\n finalRoutes = new CustomizeRoute().DayPlanner(finalRoutes, allLocationList);\n\n int estimatedDuration = Integer.parseInt(finalRoutes.get(finalRoutes.size() - 1).getDate());\n\n if (tourDuration < estimatedDuration) {\n finalRoutes.remove(finalRoutes.size() - 1);\n //m++;\n\n }\n }\n\n //print final routes array after customizing routes\n for (Route fr : finalRoutes) {\n System.out.println(\"FINAL ROUTES ARRAY ACCORDING TO DA PLAN :\" + fr.getDestinationPlaceName() + \" \" + fr.getDate());\n }\n\n //add alternative route to db\n int res = new LocationRouteDAO().addAlternativeRoute(finalRoutes, alternativeRoute.getTourName());\n\n if (res == 1) {\n System.out.println(\"SUCCESS!\");\n } else {\n System.out.println(\"FAILED!\");\n }\n\n }",
"@Test\n public void checkIfNullandPassportRecord() {\n triplets.add(null);\n triplets.add(new Triplets<String, Integer, Double>(\"passport\", 1, 90.00));\n triplets.add(new Triplets<String, Integer, Double>(\"iddocument\", 1, 90.00));\n Triplets<String, Integer, Double> resultTriplet = Triplets.rankRecords(triplets);\n Assert.assertEquals(\"passport\", resultTriplet.getLabel());\n Assert.assertEquals(new Integer(1), resultTriplet.getImageNumber());\n Assert.assertEquals(new Double(90.0), resultTriplet.getMatchConfidence());\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 }",
"@Test\n public void readyToTravel()\n {\n Position p = country1.readyToTravel(cityA, cityB);\n assertEquals(p.getFrom(), cityA);\n assertEquals(p.getTo(), cityB);\n assertEquals(p.getDistance(),4);\n assertEquals(p.getTotal(),4);\n //From.equals(To)\n p = country1.readyToTravel(cityA, cityA);\n assertEquals(p.getFrom(), cityA);\n assertEquals(p.getTo(), cityA);\n assertEquals(p.getDistance(),0);\n assertEquals(p.getTotal(),0);\n //No direct path from from to to.\n p = country1.readyToTravel(cityB, cityC);\n assertEquals(p.getFrom(), cityB);\n assertEquals(p.getTo(), cityB);\n assertEquals(p.getDistance(),0);\n assertEquals(p.getTotal(),0);\n //From not in the country.\n p = country1.readyToTravel(cityG, cityA);\n assertEquals(p.getFrom(), cityG);\n assertEquals(p.getTo(), cityG);\n assertEquals(p.getDistance(),0);\n assertEquals(p.getTotal(),0);\n \n //To is in another country\n p = country1.readyToTravel(cityD, cityF);\n assertEquals(p.getFrom(), cityD);\n assertEquals(p.getTo(), cityF);\n assertEquals(p.getDistance(),3);\n assertEquals(p.getTotal(),3);\n }",
"@Test\n public void addRoads() {\n assertTrue(country1.getNetwork().get(cityA).size()==3);\n assertTrue(country2.getNetwork().get(cityG).size()==2);\n country1.addRoads(cityA,cityG,5);\n assertTrue(country1.getNetwork().get(cityA).size()==4);\n assertTrue(country2.getNetwork().get(cityG).size()==2);\n country2.addRoads(cityA,cityG,5);\n assertTrue(country1.getNetwork().get(cityA).size()==4);\n assertTrue(country2.getNetwork().get(cityG).size()==3);\n //Two roads created if both cities are in the country.\n assertTrue(country1.getNetwork().get(cityB).size()==2);\n assertTrue(country1.getNetwork().get(cityC).size()==3);\n country1.addRoads(cityB,cityC,5);\n assertTrue(country1.getNetwork().get(cityB).size()==3);\n assertTrue(country1.getNetwork().get(cityC).size()==4);\n //No roads created if the cities are not in the country.\n assertTrue(country2.getNetwork().get(cityE).size()==3);\n assertTrue(country2.getNetwork().get(cityF).size()==3);\n country1.addRoads(cityE,cityF,6);\n assertTrue(country2.getNetwork().get(cityE).size()==3);\n assertTrue(country2.getNetwork().get(cityF).size()==3);\n \n //Null\n assertTrue(country2.getNetwork().get(cityF).size()==3);\n country2.addRoads(null,cityF,6);\n assertTrue(country2.getNetwork().get(cityF).size()==4);\n //Null\n assertTrue(country2.getNetwork().get(cityE).size()==3);\n country2.addRoads(cityE,null,6);\n assertTrue(country2.getNetwork().get(cityE).size()==4);\n }",
"private void travelTo(Location destination) \n\t{\n\t\tSystem.out.println(destination.name());\n\t\tif (destination == Location.Home) {\n\t\t\t\n\t\t\tif (role == Role.Attacker) {\n\t\t\t\t\n\t\t\t\tswitch(startingCorner) { \n\t\t\t\t\t/*case 1: travelTo(Location.X4); travelTo(Location.AttackBase); break;\n\t\t\t\t\tcase 2: travelTo(Location.X3); travelTo(Location.AttackBase); break;\n\t\t\t\t\tcase 3: case 4: travelTo(Location.AttackBase);*/\n\t\t\t\tcase 1: travelTo(Location.AttackBase); break;\n\t\t\t\tcase 2: travelTo(Location.AttackBase); break;\n\t\t\t\tcase 3: //travelTo(Location.X2);\n\t\t\t\t\t\ttravelTo(Location.AttackBase); break;\n\t\t\t\tcase 4: //travelTo(Location.X1);\n\t\t\t\t\t\ttravelTo(Location.AttackBase); break;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else if (role == Role.Defender) {\n\t\t\t\t\n\t\t\t\tswitch(startingCorner) {\n\t\t\t\t\tcase 1: //travelTo(Location.X4);\n\t\t\t\t\t\t\ttravelTo(Location.DefenseBase); break;\n\t\t\t\t\tcase 2: //travelTo(Location.X3);\n\t\t\t\t\t\t\ttravelTo(Location.DefenseBase); break;\n\t\t\t\t\tcase 3: travelTo(Location.DefWay3);\n\t\t\t\t\t\t\ttravelTo(Location.DefenseBase); break;\n\t\t\t\t\tcase 4: travelTo(Location.DefWay4);\n\t\t\t\t\t\t\ttravelTo(Location.DefenseBase); break;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t\telse if (destination == Location.BallPlatform)\n\t\t\tnavigator.travelTo(ballPlatform[0], ballPlatform[1]);\n\t\t\t\n\t\telse if (destination == Location.ShootingRegion)\n\t\t\tnavigator.travelTo(CENTER, 7 * 30.0); // we have to account for the case when there is an obstacle in the destination\n\t\t\t// also need to find a way of determining the y coordinate\n\n\t\telse if (destination == Location.AttackBase)\n\t\t\tnavigator.travelTo(ATTACK_BASE[0], ATTACK_BASE[1]); \n\t\t\n\t\telse if (destination == Location.DefenseBase)\n\t\t\tnavigator.travelTo(DEFENSE_BASE[0], DEFENSE_BASE[1]);\n\t\t\n\t\telse if (destination == Location.X1) \n\t\t\tnavigator.travelTo(X[0][0] * 30.0, X[0][1] * 30.0);\n\n\t\telse if (destination == Location.X2)\n\t\t\tnavigator.travelTo(X[1][0] * 30.0, X[1][1] * 30.0);\n\t\t\n\t\telse if (destination == Location.X3) \n\t\t\tnavigator.travelTo(X[2][0] * 30.0, X[2][1] * 30.0);\n\n\t\telse if (destination == Location.X4)\n\t\t\tnavigator.travelTo(X[3][0] * 30.0, X[3][1] * 30.0);\n\t\t\n\t\telse if (destination == Location.DefWay3)\n\t\t\tnavigator.travelTo(240, 240);\n\t\t\n\t\telse if (destination == Location.DefWay4)\n\t\t\tnavigator.travelTo(60, 240);\n\n\t\t\n\t\t// return from method only after navigation is complete\n\t\twhile (navigator.isNavigating())\n\t\t{\n\t\t\tSystem.out.println(\"destX: \" + navigator.destDistance[0] + \"destY: \" + navigator.destDistance[1]);\n\t\t\ttry {\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\t\t}\n\t\t\n\t}",
"private TransferPointRequest isAccountLinked(TransferPointRequest transferPointRequest) {\n Customer fromCustomer = transferPointRequest.getFromCustomer();\n\n //check whether the customer is linked\n List<LinkedLoyalty> linkedLoyalties = linkedLoyaltyService.getAllLinkedAccounts(fromCustomer.getCusCustomerNo());\n\n //if account is not linked , set account linked as false\n if(linkedLoyalties == null || linkedLoyalties.size() == 0){\n\n transferPointRequest.setAccountLinked(false);\n\n } else {\n\n //if linked , get the primary customer info\n transferPointRequest = isCustomerPrimary(linkedLoyalties,transferPointRequest);\n\n //set accountLinked as true\n transferPointRequest.setAccountLinked(true);\n }\n\n return transferPointRequest;\n }",
"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}",
"private void analyzeRoute(ArrayList<LatLng> route) {\n if (route == null) route = this.route;\n double runningDistance = 0;\n if (waypoints == null) waypoints = new Stack<>();\n\n ArrayList<LatLng> reverseRoute = new ArrayList<>();\n reverseRoute.addAll(route);\n Collections.reverse(reverseRoute);\n\n LatLng previousWaypoint = new LatLng(0, 0);\n Iterator<LatLng> it = reverseRoute.iterator();\n if (it.hasNext())\n previousWaypoint = it.next();\n\n mMap.addMarker(new MarkerOptions().position(previousWaypoint).title(\"Destination\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));\n\n while (it.hasNext()) {\n LatLng waypoint = it.next();\n double distance = directionsHelper.getDistanceInMeters(waypoint, previousWaypoint);\n runningDistance += distance;\n previousWaypoint = waypoint;\n waypoints.push(new Waypoint(waypoint.latitude, waypoint.longitude, runningDistance));\n }\n }",
"public void guardarTripulante(Tripulante tripulante);",
"@java.lang.Override\n public boolean hasRoute() {\n return stepInfoCase_ == 7;\n }",
"public void calculateRoute(View view){\r\n int tripTime;\r\n try{\r\n String endString = ((Spinner)findViewById(R.id.trip_time)).getSelectedItem().toString();\r\n tripTime = Integer.parseInt(endString.split(\":\")[0]) * 60 + Integer.parseInt(endString.split(\":\")[1]);\r\n }catch(Exception ex){\r\n Toast.makeText(getApplicationContext(), getApplicationContext().getString(R.string.exception_trip_time_format), Toast.LENGTH_LONG).show();\r\n return;\r\n }\r\n\r\n Category c = (Category)((Spinner) findViewById(R.id.focus)).getSelectedItem();\r\n\r\n TripConfigurations tc = TripConfigurations.getDefaultTripConfigurations(c, tripTime, manager.getAnySight(), manager.getAnySight());\r\n\r\n tc.setStartSight((Sight)((Spinner)findViewById(R.id.arrival_place)).getSelectedItem());\r\n tc.setEndSight((Sight)((Spinner)findViewById(R.id.departure_place)).getSelectedItem());\r\n\r\n try{\r\n this.pathChanger.setTripCofigurations(tc);\r\n this.pathChanger.calculateRoute(manager);\r\n findViewById(R.id.view_route_on_map).setEnabled(true);\r\n }catch(Exception e){\r\n changeToErrorActivity(e);\r\n }\r\n }",
"private boolean multipleRoutes(StaticPacketTrace trace) {\n boolean multipleRoutes = false;\n IPCriterion ipCriterion = ((IPCriterion) trace.getInitialPacket().getCriterion(Criterion.Type.IPV4_DST));\n IpAddress ip = null;\n if (ipCriterion != null) {\n ip = ipCriterion.ip().address();\n } else if (trace.getInitialPacket().getCriterion(Criterion.Type.IPV6_DST) != null) {\n ip = ((IPCriterion) trace.getInitialPacket().getCriterion(Criterion.Type.IPV6_DST)).ip().address();\n }\n if (ip != null) {\n Optional<ResolvedRoute> optionalRoute = routeNib.longestPrefixLookup(ip);\n if (optionalRoute.isPresent()) {\n ResolvedRoute route = optionalRoute.get();\n multipleRoutes = routeNib.getAllResolvedRoutes(route.prefix()).size() > 1;\n }\n }\n return multipleRoutes;\n }",
"public void addAssociatedTrip(Trip trip) {\n\t\tString id = trip.getTripID();\n\t\tif(!associatedTrips.containsKey(id)) {\n\t\t\tassociatedTrips.put(id, trip);\n\t\t}\n\t}",
"private void m5095a(DrivingRoutePlanOption drivingRoutePlanOption) {\n this.a.m5234a(\"qt\", \"cars\");\n this.a.m5234a(\"sy\", drivingRoutePlanOption.mPolicy.getInt() + \"\");\n this.a.m5234a(\"ie\", \"utf-8\");\n this.a.m5234a(\"lrn\", \"20\");\n this.a.m5234a(MapboxEvent.ATTRIBUTE_VERSION, \"6\");\n this.a.m5234a(\"extinfo\", ANSIConstants.GREEN_FG);\n this.a.m5234a(\"mrs\", C0844a.f2048d);\n this.a.m5234a(\"rp_format\", \"json\");\n this.a.m5234a(\"rp_filter\", \"mobile\");\n this.a.m5234a(\"sn\", m4541a(drivingRoutePlanOption.mFrom));\n this.a.m5234a(\"en\", m4541a(drivingRoutePlanOption.mTo));\n if (drivingRoutePlanOption.mCityName != null) {\n this.a.m5234a(\"c\", drivingRoutePlanOption.mCityName);\n }\n if (drivingRoutePlanOption.mFrom != null) {\n this.a.m5234a(\"sc\", drivingRoutePlanOption.mFrom.getCity());\n }\n if (drivingRoutePlanOption.mTo != null) {\n this.a.m5234a(\"ec\", drivingRoutePlanOption.mTo.getCity());\n }\n List list = drivingRoutePlanOption.mWayPoints;\n String str = new String();\n String str2 = new String();\n if (list != null) {\n String str3 = str;\n str = str2;\n for (int i = 0; i < list.size(); i++) {\n PlanNode planNode = (PlanNode) list.get(i);\n if (planNode != null) {\n str3 = str3 + m4541a(planNode);\n str = str + planNode.getCity();\n if (i != list.size() - 1) {\n str3 = str3 + \"|\";\n str = str + \"|\";\n }\n }\n }\n this.a.m5234a(\"wp\", str3);\n this.a.m5234a(\"wpc\", str);\n }\n }",
"public void doGet(HttpServletRequest req, HttpServletResponse resp){\n\n req.setAttribute(\"page\", \"null\");\n if (!LoginStatus.getStatus()){ // True if the user has not logged in to an account\n req.setAttribute(\"isApproved\", \"0\");\n req.setAttribute(\"log\", LoginStatus.getLogInUrl(\"/create_profile\"));\n try {\n req.setAttribute(\"logIn\", LoginStatus.getLogInUrl(\"/\"));\n req.setAttribute(\"createProf\", LoginStatus.getLogInUrl(\"/create_profile\"));\n req.getRequestDispatcher(\"Home2.jsp\").forward(req, resp);\n } catch(Exception e) {e.printStackTrace();}\n }\n else{ // Runs if the user has logged in to an account\n UserService userService = UserServiceFactory.getUserService(); // Finds the user's email from OAuth\n com.google.appengine.api.users.User user = userService.getCurrentUser();\n String email = user.getEmail();\n req.setAttribute(\"isApproved\", \"1\");\n req.setAttribute(\"log\", LoginStatus.getLogOutUrl(\"/\"));\n\n long curTime = new Date().getTime(); // Calculates the current time as a milliseconds timestamp\n\n\n List<Entity> queriedTrips = queryManager.query(\"trip\",\"lastOrder\", curTime-21600000, 1000,Query.FilterOperator.GREATER_THAN);\n // Queries the trips to find those that are still available for orders\n ArrayList<Trip> trips = new ArrayList<Trip>(); // Valid trips\n HashSet<Key> unique = new HashSet<Key>(); // Checks to see if a user has already joined a trip\n List<Entity> myOrders = queryManager.query(\"order\", \"email\", email ,1000, Query.FilterOperator.EQUAL);\n // Checks the orders that belong to this user\n for(Entity order:myOrders){\n\n unique.add(order.getParent()); // Adds the keys of the trips the users have joined\n\n }\n\n for (Entity trip : queriedTrips){\n if(!unique.contains(trip.getKey())) { // True if the user has not gone on said trip\n trips.add(new Trip(trip)); // Serializes the trip entity to a trip object in the ArrayList\n }\n }\n req.setAttribute(\"trips\", new Gson().toJson(trips)); // Returns a Json representation of the trips\n try{\n req.getRequestDispatcher(\"Home1.jsp\").forward(req, resp); // Sends the user back to the home page\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"@java.lang.Override\n public boolean hasRoute() {\n return stepInfoCase_ == 7;\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}",
"@Override\r\n\tpublic int inquiry(int route, int departure, int arrival) {\n\t\tint k = route;\r\n\t\tint count = 0;\r\n\t\tticket2.departure = departure;\r\n\t\tticket2.arrival = arrival;\r\n\t\tfor (int i = 1; i <= 8*100; i++){\r\n\t\t\tticket2.seat = i%100;\r\n\t\t\tif (ticket2.passenger == null){\r\n\t\t\t\tif ((departure >= ticket.arrival) | (arrival <= ticket.departure)){\r\n\t\t\t\t\tcount ++;\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn count;\r\n\t}",
"@Override\n\tpublic boolean bookingStatus(UserDetails userDetails, FilghtDetails flightDetails) {\n\t\treturn false;\n\t}",
"@Test(enabled = false)\n\tpublic void viewTravelHistoryRegistredCustomerOneAccount() throws Exception {\n\n\t\t// create travel history via soap call\n\t\tSOAPClientSAAJ sClient = new SOAPClientSAAJ();\n\t\tCreditCardNumberGenerator ccGenerator = new CreditCardNumberGenerator();\n\t\tString validCCNumber = ccGenerator.generate(\"4\", 16);\n\t\tString accountID = sClient.travelHistorySOAPCall(validCCNumber);\n\t\tLog.info(\"cc number being used is \" + validCCNumber);\n\t\tLog.info(\"account id being returned is \" + accountID);\n\t\tLog.info(\"waiting for ABP to get updated\");\n\t\tUtils.waitTime(180000);\n\n\t\t\n\t\t// create account and link it to cc\n\t\tcoreTest.signIn(driver);\n\t\tcoreTest.createCustomer(driver);\n\t\tBasePage bPage = new BasePage(driver);\n\t\tbPage.clickLinkAccount(driver);\n\t\tLinkAccountPage lPage = new LinkAccountPage(driver);\n\t\n\t\t// use cc number from soap call to link account\n\t\tlPage.enterBankAccount(driver, validCCNumber);\n\t\tlPage.selectExpMonth(driver);\n\t\tlPage.selectExpYear(driver, 2);\n\t\tlPage.clickSearchToken(driver);\n\t\tlPage.enterNickName(driver, \"adam\");\n\t\tlPage.clickLinkAccount(driver);\n\t\n\t\t// do another tap after linking the account\n\t\t// verify that travel history shows up on one account now\n\t\tString postTab = sClient.travelHistoryPostTab(validCCNumber);\n\t\tLog.info(\"second tab was \" + postTab);\n\t\t\n\t\t// takes around 6 minutes for travel history to show on cmc\n Utils.waitTime(360000);\n\n\t\tbPage.clickTravelHistory(driver);\n\t\t\t// do assertions on oneaccount travel history\n\n\t\tLog.info(\"viewTravelHistoryRegistredCustomerOneAccount Completed\");\n\t\tdriver.close();\n\t}",
"@Given(\"^that I am a using a \\\"([^\\\"]*)\\\" account$\")\n public void thatIAmAUsingAAccount(String accountType) throws Throwable {\n if (accountType.equals(\"driver\")) {\n createDriver();\n } else {\n createPassenger();\n }\n }",
"@Test\n void calculateRoute() {\n GPSObject n2 = new GPSObject(\"Centenary 2\");\n Location n1 = new Location(\"Centenary 2\",\"0\",n2);\n GPSObject n3 = new GPSObject(\"Thuto 1-5\");\n Location n4 = new Location(\"Thuto 1-5\",\"1\",n3);\n Locations loc = new Locations();\n assertNotNull(roo.calculateRoute(loc));\n }",
"@Test\n public void getRoads()\n {\n List<Road> noroads = new ArrayList<>();\n assertEquals(noroads, country1.getRoads(cityG));\n //List of roads starting in the city returned.\n List<Road> roads = new ArrayList<>(country1.getRoads(cityA));\n assertEquals(roads.get(0).getFrom(), cityA);\n assertEquals(roads.get(1).getFrom(), cityA);\n assertEquals(roads.get(2).getFrom(), cityA);\n assertEquals(roads.size(),3);\n //4 calls to addRoads with cityF in setUp, but only 3 roads starting in cityF\n roads = new ArrayList<>(country2.getRoads(cityF));\n assertEquals(roads.get(0).getFrom(), cityF);\n assertEquals(roads.get(1).getFrom(), cityF);\n assertEquals(roads.get(2).getFrom(), cityF);\n assertEquals(roads.size(),3);\n \n roads = new ArrayList<>(country2.getRoads(null));\n assertEquals(noroads, roads);\n }",
"protected boolean requiresTravelerApprovalRouting() {\n //If there's travel advances, route to traveler if necessary\n return requiresTravelAdvanceReviewRouting() && !getTravelAdvance().getTravelAdvancePolicy();\n }",
"@Test\n public void findUserOnTripWithStatus() {\n List<ATrip> trips = new ArrayList<ATrip>();\n ATrip trip = new ATrip();\n trip.setDriverid(DRIVER_ID);\n trip.setPassengerid(PASSENGER_ID);\n trip.setTripid(TRIP_ID);\n trip.setStatus(TRIP_STATUS);\n trips.add(trip);\n\n ATrip trip2 = new ATrip();\n trip2.setDriverid(DRIVER_ID);\n trip2.setPassengerid(PASSENGER_ID_2);\n trip2.setTripid(TRIP_ID2);\n trip2.setStatus(TRIP_STATUS);\n trips.add(trip2);\n\n ATrip trip3 = new ATrip();\n trip3.setDriverid(DRIVER_ID);\n trip3.setPassengerid(NONEXISTING_PASSENGER_ID);\n trip3.setTripid(TRIP_ID3);\n trip3.setStatus(TRIP_STATUS_2);\n trips.add(trip3);\n\n ArrayList<Integer> result = new ArrayList<Integer>();\n result.add(1);\n result.add(2);\n result.add(3);\n result.add(4);\n result.add(5);\n result.add(6);\n\n List<ATripRepository.userTripStatus> response = repo.findUserOnTripWithStatus(TRIP_STATUS, trips, \"Passenger\");\n\n assertEquals(result.size(), response.size());\n for (int i = 0; i < result.size(); i++) {\n assertEquals(result.get(i), new Integer(response.get(i).userid));\n }\n }",
"private boolean requiresRiskManagementReviewRouting() {\n // Right now this works just like International Travel Reviewer, but may change for next version\n if (ObjectUtils.isNotNull(this.getTripTypeCode()) && getParameterService().getParameterValuesAsString(TemParameterConstants.TEM_DOCUMENT.class, TravelParameters.INTERNATIONAL_TRIP_TYPES).contains(this.getTripTypeCode())) {\n return true;\n }\n if (!ObjectUtils.isNull(getTraveler()) && getTraveler().isLiabilityInsurance()) {\n return true;\n }\n return false;\n }",
"java.lang.String getTransitAirport();",
"private void connectToRendezVous(EndpointAddress addr, RouteAdvertisement routeHint) throws IOException {\r\n\r\n // BT nothing implemented yet\r\n }",
"public void TripType()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"TripType\")).click();\n\t}",
"@Test\n public void testThatResultsAppearForAReturnJourney(){\n JourneyDetails journeyDetails = new JourneyDetailsBuilder().isOneWay(false).\n withOrigin(\"Bangalore\").withDestination(\"Delhi\").\n withDepartureDate(tomorrow()).withReturnDate(dayAfterTomorrow()).build();\n\n user.searchesForAReturnJourneyWith(journeyDetails);\n user.hasJourneyOptionsAvailableForTheReturnJourney();\n\n\n }",
"public void guardarTripulanteEncontrado(Tripulante tripulante);",
"@Test\n public void mapAirPricingSolutionTest() {\n Brand brand = new Brand(null, \"dksi33wq9\", \"rewR34aQ!==\", null, null, null, null);\n FlightProduct flightProduct =\n new FlightProduct(\"dksi33wq9\", null, \"K\", \"Economy\", \"2QFLEX\", null, brand);\n List<FlightProduct> flightProducts = new ArrayList<FlightProduct>(Arrays.asList(flightProduct));\n PassengerFlight passengerFlight = new PassengerFlight(null, null, \"ADT\", flightProducts);\n List<PassengerFlight> passengerFlights =\n new ArrayList<PassengerFlight>(Arrays.asList(passengerFlight));\n\n Departure departure = new Departure(null, \"ICN\", \"2040-05-06\", \"19:59:00-07:00\");\n Arrival arrival = new Arrival(null, \"SFO\", \"2040-05-06\", \"21:22:00-08:00\");\n Flight flight = new Flight(null, \"ay7e8\", \"0\", null, null, null, \"UA\", \"777\", null, null, null,\n null, departure, arrival, null);\n FlightSegment flightSegment = new FlightSegment(null, null, null, null, null, flight);\n List<FlightSegment> flightSegments = new ArrayList<FlightSegment>(Arrays.asList(flightSegment));\n\n Product product =\n new Product(null, null, null, null, null, null, flightSegments, passengerFlights);\n List<Product> products = new ArrayList<Product>(Arrays.asList(product));\n Identifier identifier = new Identifier(\"dksi33wq9\", null);\n PaymentCardAuthorizationSummary paymentCardAuthorizationSummary =\n new PaymentCardAuthorizationSummary(null, \"LtkoDd3WSdW20aXZvl4/cw==\", null, null, null,\n null, \"PDz8y7xu4hGdeB/wYIhwmw==\", null);\n Offer offer = new Offer(null, null, null, identifier, products, null, null,\n paymentCardAuthorizationSummary);\n List<Offer> offers = new ArrayList<Offer>(Arrays.asList(offer));\n\n Traveler traveler = new Traveler(null, null, null, null, null, \"ADT\", null, null, identifier,\n null, null, null, null, null, null, null, null);\n List<Traveler> travelers = new ArrayList<Traveler>(Arrays.asList(traveler));\n\n\n Fees fees = new Fees(null, 7.61);\n Taxes taxes = new Taxes(null, 42.81, null);\n Payment payment = new Payment(null, null, null, null, null, null, null, fees, taxes);\n List<Payment> payments = new ArrayList<Payment>(Arrays.asList(payment));\n\n ReservationSummary reservationSummary = new ReservationSummary(null, null, offers, travelers,\n null, null, null, null, payments, null, null, null);\n\n AirPricingSolution airPricingSolution = productMapper.mapAirPricingSolution(reservationSummary);\n\n AirPricingInfo airPricingInfo = airPricingSolution.getAirPricingInfo().get(0);\n assertEquals(\"dksi33wq9\", airPricingInfo.getKey());\n\n FareInfo fareInfo = airPricingInfo.getFareInfo().get(0);\n\n assertEquals(\"dksi33wq9\", fareInfo.getKey());\n assertEquals(\"2QFLEX\", fareInfo.getFareBasis());\n assertEquals(\"ADT\", fareInfo.getPassengerTypeCode());\n\n BookingInfo bookingInfo = airPricingInfo.getBookingInfo().get(0);\n assertEquals(\"K\", bookingInfo.getBookingCode());\n assertEquals(\"Economy\", bookingInfo.getCabinClass());\n assertEquals(\"rewR34aQ!==\", bookingInfo.getFareInfoRef());\n\n TypeBaseAirSegment airSegment = airPricingSolution.getAirSegment().get(0);\n assertEquals(\"ICN\", airSegment.getOrigin());\n assertEquals(BigInteger.valueOf(223), airSegment.getFlightTime());\n assertEquals(\"2040-05-06\", airSegment.getDepartureTime().substring(0, 10));\n assertEquals(\"19:59:00-07:00\", airSegment.getDepartureTime().substring(11));\n assertEquals(\"SFO\", airSegment.getDestination());\n assertEquals(\"2040-05-06\", airSegment.getArrivalTime().substring(0, 10));\n assertEquals(\"21:22:00-08:00\", airSegment.getArrivalTime().substring(11));\n assertEquals(\"ay7e8\", airSegment.getKey());\n assertEquals(\"0\", String.valueOf(airSegment.getGroup()));\n assertEquals(\"UA\", airSegment.getCarrier());\n assertEquals(\"777\", airSegment.getFlightNumber());\n\n assertEquals(\"ADT\", airPricingInfo.getPassengerType().get(0).getCode());\n\n assertEquals(7.61, Double.parseDouble(airPricingInfo.getFees()), 0);\n assertEquals(42.81, Double.parseDouble(airPricingInfo.getTaxes()), 0);\n }",
"@Override\n boolean isSameTransitTrip(TransitNode transitNode) {\n if (transitNode instanceof SubwayStation) {\n return this.startLocation.getLine().equals(((SubwayStation) transitNode).getLine());\n }\n return false;\n }",
"private void makeSubPlan(Plan plan,Time currentTime,ArrayList<POI> POIs,Time timeEnd,Trip trip,Plan mPlan,boolean skip){\n if(mPlan!=null) \n plan.makeCalculations(trip.getStartTime(),trip.getEndTime(),mPlan.getFullCost(),mPlan);\n else\n plan.makeCalculations(trip.getStartTime(),trip.getEndTime(),0,mPlan);\n POI last=plan.getLastPOI();\n for(int i=0; i< POIs.size();i++){\n // Check if iam in Time range or not\n if(!currentTime.compare(timeEnd))\n break;\n else{\n if(canInsertLast(plan, POIs.get(i), trip, currentTime,mPlan,skip)){\n // update current time & plan\n Time from = new Time (0,0);\n Time to = new Time (0,0);\n if(last!=null){\n // cal travel time\n currentTime.add(last.getShortestPath(POIs.get(i).getId()));\n // cal waste time\n int x = Time.substract(currentTime, POIs.get(i).getOpenTime());\n if(skip&&x!=-1)\n currentTime.add(x);\n \n from.hour = currentTime.hour;\n from.min = currentTime.min;\n // cal poi duration \n currentTime.add(POIs.get(i).getDuration());\n to.hour = currentTime.hour;\n to.min = currentTime.min;\n }\n else{\n if(mPlan==null){\n int x = Time.substract(currentTime, POIs.get(i).getOpenTime());\n if(skip&&x!=-1)\n currentTime.add(x);\n from.hour = currentTime.hour;\n from.min = currentTime.min;\n currentTime.add(POIs.get(i).getDuration());\n to.hour = currentTime.hour;\n to.min = currentTime.min;\n }\n else{\n POI mLast = mPlan.getLastPOI();\n if(mLast!=null)\n currentTime.add(mLast.getShortestPath(POIs.get(i).getId()));\n int x = Time.substract(currentTime, POIs.get(i).getOpenTime());\n if(skip&&x!=-1)\n currentTime.add(x);\n from.hour = currentTime.hour;\n from.min = currentTime.min;\n currentTime.add(POIs.get(i).getDuration());\n to.hour = currentTime.hour;\n to.min = currentTime.min;\n }\n }\n plan.insert(POIs.get(i), plan.getNOV(),from,to,null);\n if(mPlan!=null)\n plan.makeCalculations(trip.getStartTime(), trip.getEndTime(),mPlan.getFullCost(),mPlan);\n else\n plan.makeCalculations(trip.getStartTime(),trip.getEndTime(),0,mPlan);\n last=POIs.get(i);\n // Remove poi from POIs\n POIs.remove(i);\n i--;\n }\n }\n }\n }",
"public void addTrip(Trip trip) {\n this.trips.add(trip);\n modifiedSinceLastResult = true;\n }",
"public Trip() {}",
"private void loadTripDetail() {\n\t\tloadCars();\n\t\tloadRoutes();\n\t\t// no trip to load\n\t\tif (tripComboBox.getValue() == null || mode == Mode.ADD_MODE) {\n\t\t\tloadStopPoints();\n\t\t\taddTripMode();\n\t\t}\n\t\t// there are trips to load\n\t\telse {\n\t\t\tupdateTripMode();\n\t\t\tloadStopPoints();\n\t\t\tTrip trip = tripComboBox.getValue();\n\t\t\tdirectionComboBox.setValue(trip.getDirection());\n\t\t\t// set date picker\n\t\t\tstartDatePicker.setValue(trip.getBeginDate());\n\t\t\tendDatePicker.setValue(trip.getExpireDate());\n\t\t\tcarComboBox.getSelectionModel().select(getCarByCarId(trip.getCarId()));\n\t\t\trouteComboBox.getSelectionModel().select(getRouteByRouteId(trip.getRouteId()));\n\t\t\tsetRecurrenceCheckBox(trip.getDay());\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tint grid[][] = new int[][]\n\t\t\t { \n\t\t\t { 1, 1, 0, 0, 0, 0, 1, 0, 0, 0 }, \n\t\t\t { 0, 1, 0, 1, 0, 0, 0, 1, 0, 0 }, \n\t\t\t { 0, 0, 0, 1, 0, 0, 1, 0, 1, 0 }, \n\t\t\t { 1, 1, 1, 1, 0, 1, 1, 1, 1, 0 }, \n\t\t\t { 0, 0, 0, 1, 0, 0, 0, 1, 0, 1 }, \n\t\t\t { 0, 1, 0, 0, 0, 0, 1, 0, 1, 1 }, \n\t\t\t { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }, \n\t\t\t { 0, 1, 0, 0, 0, 0, 1, 0, 0, 0 }, \n\t\t\t { 0, 0, 1, 1, 1, 1, 0, 1, 1, 0 } \n\t\t\t };\n\t\t\n // Step 1: Obtain an instance of GridBasedTrafficControl.\n Configurator cfg = new DefaultConfigurator();\n GridBasedTrafficControl gbtc = cfg.getGridBasedTrafficControl(grid);\n\t\t\n\t // Step 2: Obtain path for Journey-1.\n\t Point source1 = new Point(0, 0);\n\t Point dest1 = new Point(3,4);\t \n\t String vehicleId1 = formVehicleId(source1);\n\t List<Point> path1 = gbtc.allocateRoute(vehicleId1, source1, dest1);\n\t System.out.println(\"Route for Journey-1:\" + path1);\n\t \n\t // Step 3: Obtain path for Journey-2.\n\t // This call will not return a route as the available route conflicts with the route\n\t // allocated for Journey-1.\n\t Point source2 = new Point(3, 0);\n\t Point dest2 = new Point(2,4);\n\t String vehicleId2 = formVehicleId(source2);\n\t List<Point> path2 = gbtc.allocateRoute(vehicleId2, source2, dest2);\n\t System.out.println(\"Route for Journey-2:\" + path2);\n\t \n\t // Step 4: Start Journey-1 and mark Journey-1 as complete.\n\t GridConnectedVehicle vehicle1 = new GridConnectedVehicle(vehicleId1, gbtc);\n\t vehicle1.selfDrive(path1);\n\t gbtc.markJourneyComplete(vehicleId1, source1, dest1);\n\t \n\t // Step 5: Retry call to obtain path for Journey-2.\n\t // This call should return a valid path as Journey-1 was marked as complete.\n\t path2 = gbtc.allocateRoute(formVehicleId(source2), source2, dest2);\n\t System.out.println(\"Route for Journey-2:\" + path2);\n\t \n\t // Step 6: Start Journey-2 and mark Journey-2 as complete.\n\t GridConnectedVehicle vehicle2 = new GridConnectedVehicle(vehicleId2, gbtc);\n\t vehicle2.selfDrive(path2);\n\t gbtc.markJourneyComplete(vehicleId2, source2, dest2);\n\t}",
"public Trip(Flight flight, SeatClass preferredSeatClass) {\n assert flight!=null;\n this.numFlights = 1;\n this.preferredSeatClass = preferredSeatClass;\n this.seatClass = new ArrayList<>();\n this.seatClass.add(flight.checkSeatClass(preferredSeatClass));\n this.flights = new ArrayList<>();\n this.flights.add(flight);\n this.layovers = new ArrayList<>();\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}",
"@Test(priority=19)\n\tpublic void verifyRedirectionOfProfileAndLogoutOptions() throws Exception {\n\t\tOverviewTradusPROPage overviewPage= new OverviewTradusPROPage(driver);\n\t explicitWaitFortheElementTobeVisible(driver,overviewPage.profileIconOnHeader);\n\t click(overviewPage.profileIconOnHeader);\n\t waitTill(1000);\n\t click(overviewPage.profileOptionInProfileIconDropdown);\n\t explicitWaitFortheElementTobeVisible(driver,overviewPage.profilePageVerificationElement);\n\t waitTill(2000);\n\t Assert.assertTrue(driver.getCurrentUrl().equals(\"https://pro.tradus.com/lms/profile\"),\n\t \t\t\"Profile page is not displaying by clicking on profile option under profile icon dropdown list\");\n\t click(overviewPage.logoutOptionInProfileIconDropdown);\n\t explicitWaitFortheElementTobeVisible(driver,overviewPage.LoginText);\n\t waitTill(2000);\n\t Assert.assertTrue(driver.getCurrentUrl().equals(\"https://pro.tradus.com/login\"),\n\t \t\t\"User not logged out from account by cicking on logout option in dropdown\");\n\t}",
"public static void main(String[] args) {\n Airport rtBusiness = new RoundTrip(new Business());\r\n //get description\r\n rtBusiness.description();\r\n //get ticket price for this option\r\n System.out.println(rtBusiness.ticketPrice());\r\n\r\n\r\n // economy class with seat choice option and no stop during flight ticket\r\n Airport economyNoStopSeat = new NoStopsDecorator(new SeatChoiceDecorator(new Economy()));\r\n //get description\r\n economyNoStopSeat.description();\r\n //get ticket price for this option\r\n System.out.println(economyNoStopSeat.ticketPrice());\r\n\r\n\r\n // all option on Business class ticket\r\n Airport allBusiness = new NoStopsDecorator(new RoundTrip(new SeatChoiceDecorator(new Business())));\r\n //get description\r\n allBusiness.description();\r\n //get price\r\n System.out.println(allBusiness.ticketPrice());\r\n\r\n }",
"@Override\n\tpublic void seeRoute() {\n\t\tRoute route = game.getIncidentRoutes();\n\t\tSystem.out.println(route);\n\t\tSystem.out.println(\"Total sailing days required is \"+ game.calculateSailingDays(route)+\" days\");\n\t\tboolean state = false;\n\t\twhile (state == false) {\n\t\t\tSystem.out.println(\"Choose your actions: \");\n\t\t\tSystem.out.println(\"(1) Go back!\");\n\t\t\tSystem.out.println(\"(2) Set Sail\");\n\t\t\ttry { \n\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\tif (selectedAction <= 2 && selectedAction > 0) {\n\t\t\t\tstate = true;\n\t\t\t\tif (selectedAction == 1) {\n\t\t\t\t\tgame.backToMain();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (game.isIslandReachable(route)) {\n\t\t\t\t\t\tif (game.checkMyShipHealth()) {\n\t\t\t\t\t\t\tgame.payCrew(route);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tSystem.out.println(\"You should repair your ship first!\" + \"\\n\" + \"you will be redirected to store at your current Island\" + \"\\n\");\n\t\t\t\t\t\t\tgame.repairMyShip();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"This Island is not accessible because you don't have enough days left, you can choose other Island\");\n\t\t\t\t\t\tgame.backToMain();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public interface TripStates {\n public String ACCEPTED_CUSTOMER_REQUEST = \"accepted_customer_request\";\n public String TRIP_CANCEL = \"trip_cancel\";\n public String GOING_TO_PICKUP = \"going_to_pickup\";\n public String REACHED_CUSTOMER = \"reached_customer\";\n public String PICKEDUP_CUSTOMER = \"pickedup_customer\";\n public String GOING_TO_DESTINATION = \"going_to_destination\";\n public String REACHED_DESTINATION = \"reached_destination\";\n public String TRIP_DONE = \"trip_done\";\n}",
"@Test(priority = 2)\n\tpublic void accountPlan() throws InterruptedException {\n\t\t// log.info(\"Landed on Give Recog page\");\n\t\tselectAccountPlanSideNavbar();\n\t\tThread.sleep(1000L);\n\t\tvalidateBillingPageAssertion();\n\t\tlog.info(\"Testcase-1 passed since application landed on Manage page and Assertion passed\");\n\t}",
"public List<TripDTO> findTripsByCountry(String country);",
"@Test\n\tpublic void testThatResultsAppearForAOneWayJourney() {\n\t\toperation.clickOnObject(OR.oneWayRadioButton);\n\t\toperation.setText(OR.fromTextBox, \"Bangalore\");\n\n\t\t// wait for the auto complete options to appear for the origin\n\t\twait.until(ExpectedConditions\n\t\t\t\t.visibilityOfAllElements(driver.findElement(By.id(\"ui-id-1\")).findElements(By.tagName(\"li\"))));\n\t\tList<WebElement> originOptions = driver.findElement(By.id(\"ui-id-1\")).findElements(By.tagName(\"li\"));\n\t\toperation.clickOnObject(originOptions.get(0));\n\n\t\t// Providing the Arrival location\n\t\toperation.setText(OR.toTextBox, \"Delhi\");\n\n\t\t// wait for the auto complete options to appear for the destination\n\t\twait.until(ExpectedConditions\n\t\t\t\t.visibilityOfAllElements(driver.findElement(By.id(\"ui-id-2\")).findElements(By.tagName(\"li\"))));\n\n\t\t// select the first item from the destination auto complete list\n\t\tList<WebElement> destinationOptions = driver.findElement(By.id(\"ui-id-2\")).findElements(By.tagName(\"li\"));\n\t\toperation.clickOnObject(destinationOptions.get(0));\n\n\t\t// Selecting the date of departure\n\t\toperation.clickOnObject(OR.datePickerLink);\n\n\t\t// all fields filled in. Now click on search\n\t\toperation.clickOnObject(OR.searchFlightsButton);\n\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.className(\"searchSummary\")));\n\t\t// verify that result appears for the provided journey search\n\t\tAssert.assertTrue(operation.isElementPresent(By.className(\"searchSummary\")));\n\n\t}",
"List<FlightResponse> getConnectingFlights(String departure, String arrival, LocalDateTime departureDate,\n LocalDateTime arrivalDate, List<Route> allRoutes) throws ValidationException, ServiceException {\n\n List<ConnectionRoute> connectionRoutes = routeService.getConnectionRoutes(departure, arrival, allRoutes);\n List<FlightResponse> responses = new ArrayList<>();\n\n for (ConnectionRoute cr : connectionRoutes) {\n String depFrom = cr.getDeparture().getAirportFrom();\n String depTo = cr.getDeparture().getAirportTo();\n List<Leg> departureLegs = getDirectFlights(depFrom, depTo, departureDate, arrivalDate).getLegs();\n\n String arrFrom = cr.getArrival().getAirportFrom();\n String arrTo = cr.getArrival().getAirportTo();\n List<Leg> arrivalLegs = getDirectFlights(arrFrom, arrTo, departureDate, arrivalDate).getLegs();\n\n for (Leg depLeg : departureLegs) {\n LocalDateTime depFromConnection = depLeg.getArrivalDateTime().plusHours(2);\n List<Leg> filteredArrivalLegs = arrivalLegs.stream()\n .filter(leg -> leg.getDepartureDateTime().isAfter(depFromConnection))\n .filter(leg -> leg.getDepartureAirport().equals(depLeg.getArrivalAirport()))\n .collect(Collectors.toList());\n\n for (Leg leg : filteredArrivalLegs) {\n responses.add(new FlightResponse(1, Stream.of(depLeg, leg).collect(Collectors.toList())));\n }\n }\n }\n\n return responses;\n }",
"public static void main(String[] args) {\n Trip diving = new Trip(\"ScubaDiving\", new Money(2000.00, Currency.GBP),\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS)),\n LocalDate.of(2021, 5, 3),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER)));\n\n // trip 2 - freediving trip\n // price per person\n Trip freeDiving = new Trip(\"FreeDiving\",\n new Money(500.00, Currency.GBP),\n new HashSet<Gear>(Arrays.asList(Gear.FREEDIVING_FINS, Gear.FREEDIVING_WET_SUITS, Gear.FREEDIVING_MASK)),\n LocalDate.of(2021, 8, 18),\n new HashSet<Qualification>(Arrays.asList(Qualification.AIDA_2)));\n\n // Lynn person detail\n Person lynn = new Person(\"Lynn\",\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS)),\n new Money(2000.00, Currency.GBP),\n new HashSet<LocalDate>(Arrays.asList(LocalDate.of(2021, 5, 1), LocalDate.of(2021, 5, 2),\n LocalDate.of(2021, 5, 3))),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER, Qualification.PADI_OPEN_WATER)));\n\n // Tao person detail\n Person tao = new Person(\"TAO\",\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS, Gear.FREEDIVING_MASK, Gear.FREEDIVING_WET_SUITS, Gear.FREEDIVING_FINS)),\n new Money(10000.00, Currency.GBP),\n new HashSet<LocalDate>(Arrays.asList(LocalDate.of(2021, 8, 18), LocalDate.of(2021, 5, 2),\n LocalDate.of(2021, 5, 3))),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER, Qualification.PADI_OPEN_WATER, Qualification.AIDA_2, Qualification.AIDA_3)));\n\n HashSet<Person> persons = new HashSet<>();\n HashSet<Trip> trips = new HashSet<>();\n\n persons.add(lynn);\n persons.add(tao);\n trips.add(diving);\n trips.add(freeDiving);\n\n// findTrip(persons, trips);\n\n Trip tripToGo = tripWithMaxPersons(persons, trips);\n\n System.out.println(\"Trip to go: \" + tripToGo.getName());\n System.out.println(\"=================================\");\n\n\n HashMap<Trip, HashSet<Person>> tripsAndPersons = findWhoReady(persons, trips);\n for(Trip trip: tripsAndPersons.keySet()){\n System.out.println(\"Trip \" + trip.getName() + \" ready: \" );\n HashSet<Person> personPerTrip = tripsAndPersons.get(trip);\n for(Person person: personPerTrip) {\n System.out.println(person.getName());\n }\n System.out.println(\"-------------------------------\");\n\n }\n\n\n // currency EURO\n // exchange rate?\n\n\n\n }",
"private void planningPaths(String url) {\n removePolyline();\n JSONObject json = new JSONObject();\n JSONObject origin = new JSONObject();\n JSONObject destination = new JSONObject();\n try {\n origin.put(\"lng\", 2.334595);\n origin.put(\"lat\", 48.893478);\n destination.put(\"lng\", destinationLng);\n destination.put(\"lat\", destinationLat);\n json.put(\"origin\", origin);\n json.put(\"destination\", destination);\n } catch (JSONException e) {\n }\n RequestBody body = RequestBody.create(MediaType.parse(\"application/json; charset=utf-8\"), String.valueOf(json));\n OkHttpClient client = new OkHttpClient();\n Request request = new Request.Builder().url(url).post(body).build();\n client.newCall(request).enqueue(new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n Message msg = Message.obtain();\n Bundle bundle = new Bundle();\n bundle.putString(\"errorMsg\", e.getMessage());\n msg.what = ROUTE_PLANNING_FAILED;\n msg.setData(bundle);\n mHandler.sendMessage(msg);\n }\n\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n try {\n String json = response.body().string();\n generateRoute(json);\n } catch (Exception e) {\n e.getMessage();\n }\n }\n });\n }",
"@Test\n\tpublic void testGetTravel() throws DBException{\n\t\tMyProfileController controller = new MyProfileController();\n\t\tMiniTravelBean bean = controller.getTravel(76);\n\t\tboolean equal = true;\n\t\tif(bean.getId()!=76) {\n\t\t\tequal=false;\n\t\t}\n\t\tif(!bean.getNameTravel().equals(\"San Valentino paris\")) {\n\t\t\tequal = false;\n\t\t}\n\t\tassertEquals(equal,true);\n\t}",
"public Rail getNextRail(Rail previous, Train_Element t) {\n\n // ha nincs alagút, vagy épp vonat van az alagútban, sínként funkcionál\n if (Map.getIsTrainInTunnel() || tunnelRail == null) {\n if (previous == prevRail)\n return nextRail;\n\n // Kilépés az alagútszájon:\n else if (previous == tunnelRail) {\n t.setVisible(true);\n Map.setIsTrainInTunnel(false);\n if (dir.equals(\"next\")) {\n return prevRail;\n }\n else {\n return nextRail;\n }\n }\n else\n return prevRail;\n }\n\n\n // ha van alagút és üres is, a vonat belép\n else if (!Map.getIsTrainInTunnel() && tunnelRail != null) {\n\n // ha megfelelő irányból jövünk, behajtunk az alagútba\n if (previous == prevRail) {\n if (dir.equals(\"next\")) {\n t.setVisible(false); // alagútba behajtás: vonaton jelezzük a visible változóval \n Map.isTrainInTunnel = true;\t\t\t\t\t\t\t // map-nek jelezzük static beállításával\n return tunnelRail;\n } else\n return nextRail;\n }\n\n else if (previous == nextRail) {\n if (dir.equals(\"prev\")) {\n t.setVisible(false);\n Map.setIsTrainInTunnel(true);\n return tunnelRail;\n } else {\n return prevRail;\n }\n }\n\n\n // ha az alagútból hajtunk kifelé:\n else {\n\n t.setVisible(true);\n Map.setIsTrainInTunnel(false);\n if (dir.equals(\"next\")) {\n return prevRail;\n }\n else {\n return nextRail;\n }\n }\n }\n System.out.println(\"Error with the tunnel entrance\");\n return null;\n }",
"private boolean accountChecks(Account account){\n // ie. if the account has to be personal for the round-up service to apply\n account.getName(); // check personal\n return true;\n }",
"@Test\n\tpublic void testDoDataOrganiseSingleCarHitBothDirections() throws Exception {\n\t\tList<String> trafficDetails = new ArrayList<>();\n\n\t\ttrafficDetails.add(\"A582668\");\n\t\ttrafficDetails.add(\"B582671\");\n\t\ttrafficDetails.add(\"A582787\");\n\t\ttrafficDetails.add(\"B582789\");\n\n\t\tPowerMockito.whenNew(TrafficInfoBaseImpl.class).withNoArguments()\n\t\t\t\t.thenReturn(mockBase);\n\n\t\tTrafficDataOrganiser.doDataOrganise(trafficDetails);\n\n\t\tArgumentCaptor<TrafficRecord> recordCaptor = ArgumentCaptor\n\t\t\t\t.forClass(TrafficRecord.class);\n\t\tArgumentCaptor<String> directionCaptor = ArgumentCaptor.forClass(String.class);\n\t\tverify(mockBase).addTrafficRecord(directionCaptor .capture(), recordCaptor.capture());\n\t\t\n\t\tList<String> capturedDirections = directionCaptor.getAllValues();\n\t\tassertTrue(CollectionUtils.isNotEmpty(capturedDirections));\n\t\tassertTrue(capturedDirections.size() == 1);\n\t\tassertEquals(Strings.DIRECTION_A, capturedDirections.iterator().next());\n\t\tTrafficRecord capturedRecord = recordCaptor.getValue();\n\t\tTrafficRecordImpl realRecord = (TrafficRecordImpl) capturedRecord;\n\t\tassertEquals(WeekDay.Monday, realRecord.getDay());\n\t}",
"@Test(groups = {\"SMOKE\"})\r\n public void airlinesTest() {\r\n new ChooseFlightPage(driver, url)\r\n .run(new PickFlightScenario(\"Paris\", \"Bunos Aires\"))\r\n .check(new FlightOptionsAssertion())\r\n .verifyFlightNumberOrder(flightNumbersOrderVA)\r\n .verifyFlightNumbersUnordered(flightNumbersUnordered);\r\n }",
"@Override\r\n\tpublic void onGetTransitRouteResult(MKTransitRouteResult arg0, int arg1) {\n\t\t\r\n\t}",
"public boolean saveTrip(Trip trip) {\n\n\t\tif(trip.getName().equals(\"\") || trip.getLocation().equals(\"\") || trip.getTravelDate().equals(\"\")\n\t\t\t\t|| trip.getTravelTime().equals(\"\") || trip.getMeetSpot().equals(\"\") ||\n\t\t\t\ttrip.getPersons() == null) {\n\t\t\tToast.makeText(getBaseContext(), \"All fields are mandatory\", Toast.LENGTH_LONG).show();\n\t\t} else {\n\t\t\tLog.d(\"Saving Trip\", trip.toString());\n\t\t\tIntent intent = new Intent();\n\t\t\tintent.putExtra(\"TripData\", trip);\n\t\t\tsetResult(RESULT_OK, intent);\n\n\t\t\tTripDatabaseHelper databaseHelper = new TripDatabaseHelper(getBaseContext());\n\t\t\tdatabaseHelper.insertTrip(trip);\n\t\t\tdatabaseHelper.insertParticipants(trip, trip.getTripID());\n\t\t\t//Log.d(\"Trip created with id: \", Long.toString(tripID));\n\t\t\tfinish();\n\t\t}\n\n\t\treturn true;\n\t}",
"@Test\n public void testThatResultsAppearForAReturnJourney(){\n JourneyDetails journeyDetails = new JourneyDetailsBuilder().isOneWay(false).\n withOrigin(\"Bangalore\").withDestination(\"Delhi\").\n withDepartureDate(tomorrow()).withReturnDate(dayAfterTomorrow()).build();\n\n when(user).searchesForAReturnJourneyWith(journeyDetails);\n then(user).hasJourneyOptionsAvailableForTheReturnJourney();\n\n\n }",
"ArrayList<TTC> generateSegments() {\n if ((START_STATION instanceof Station) && (endStation instanceof Station)) {\n ArrayList<TTC> route = TTC.SUBWAY_LIST.get(NUMBER);\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n return new ArrayList<>();\n }\n } else {\n ArrayList<TTC> route = TTC.BUS_MAP.get((START_STATION).getNUMBER());\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n return new ArrayList<>();\n }\n }\n }",
"@Override\n\t\tpublic void onGetTransitRouteResult(MKTransitRouteResult arg0, int arg1) {\n\t\t\t\n\t\t}",
"public ArrayList<Trial> createTrials(){\n Profile profile1 = new Profile(\"id1\");\n Profile profile2 = new Profile(\"id2\");\n Profile profile3 = new Profile(\"id3\");\n GeoLocation uni_loc = new GeoLocation(0.0, 0.0);\n ArrayList<Trial> trials = new ArrayList<>();\n\n for (int i=0; i<15; i++){\n if (i<4){\n trials.add(new TrialCount(\"\"+i, uni_loc, profile1));\n } else if (i<10){\n trials.add(new TrialCount(\"\"+i, uni_loc, profile2));\n } else {\n trials.add(new TrialCount(\"\"+i, uni_loc, profile3));\n }\n }\n\n return trials;\n }",
"public void jointAcc()\n {\n int c=0;\n response=RestAssured.get(\"http://18.222.188.206:3333/accounts\");\n Holdertype=response.jsonPath().getList(\"'Holder type'\");\n System.out.println(Holdertype);\n for(int i=0;i<Holdertype.size();i++)\n {\n if(Holdertype.get(i)!=null)\n {\n if(Holdertype.get(i).equalsIgnoreCase(\"joint\"))\n {\n c++;\n }\n }\n }\n System.out.println(\"The total number of accounts that are of the type joint = \"+c);\n \n \n }",
"public void findNewAStarPath(PedSimCity state) {\n\n\t\tRouteData route = new RouteData();\n\t\troute.origin = originNode.getID();\n\t\troute.destination = destinationNode.getID();\n\t\t//\t\toriginNode = PedSimCity.nodesMap.get(9406);\n\t\t//\t\tdestinationNode = PedSimCity.nodesMap.get(4456);\n\n\t\tif (UserParameters.empiricalABM) {\n\t\t\tSystem.out.println(\" Agent nr. \"+this.agentID + \" group \" + this.agp.groupName + \" OD \" + originNode.getID()+\" \" +destinationNode.getID());\n\t\t\tagp.defineRouteChoiceParameters();\n\t\t\tCombinedNavigation combinedNavigation = new CombinedNavigation();\n\t\t\tnewPath = combinedNavigation.path(originNode, destinationNode, agp);\n\t\t\troute.group = this.agp.groupID;\n\t\t\troute.localH = this.agp.localHeuristic;\n\t\t\troute.routeID = this.agentID.toString()+\"-\"+originNode.getID().toString()+\"-\"+destinationNode.getID().toString();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(originNode.getID() + \" \"+ destinationNode.getID()+ \" \"+ap.routeChoice);\n\t\t\tselectRouteChoice();\n\t\t\troute.routeChoice = ap.routeChoice;\n\t\t\t//\t\t\troute.routeID = numTrips;\n\t\t}\n\n\t\tList<Integer> sequenceEdges = new ArrayList<Integer>();\n\n\t\tfor (GeomPlanarGraphDirectedEdge o : newPath) {\n\t\t\t// update edge data\n\t\t\tupdateEdgeData((EdgeGraph) o.getEdge());\n\t\t\tint edgeID = ((EdgeGraph) o.getEdge()).getID();\n\t\t\tsequenceEdges.add(edgeID);\n\t\t}\n\t\troute.sequenceEdges = sequenceEdges;\n\t\tPedSimCity.routesData.add(route);\n\t\tindexOnPath = 0;\n\t\tpath = newPath;\n\n\t\t// set up how to traverse this first link\n\t\tEdgeGraph firstEdge = (EdgeGraph) newPath.get(0).getEdge();\n\t\tsetupEdge(firstEdge); //Sets the Agent up to proceed along an Edge\n\n\t\t// update the current position for this link\n\t\tupdatePosition(segment.extractPoint(currentIndex));\n\t\tnumTrips += 1;\n\t}",
"public List<flight> timeSwich(List<flight> FlightInfo, List<airportInformation> airport){\n\t flight ThisInfo = new flight();\n\t airportInformation ai = new airportInformation();\n\t Iterator AllInfo = FlightInfo.iterator();\n\t \n\t SimpleDateFormat OTime = new SimpleDateFormat(\"yyyy_MM_dd HH:mm\");\n\t OTime.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t SimpleDateFormat NTime = new SimpleDateFormat(\"yyyy_MM_dd HH:mm\");\n\t String[] parts;\n\t String ThisTime;\n\t String[] airportName = ai.sortAirportName(airport);\n\t \n\t while (AllInfo.hasNext())\n\t { \n\t ThisInfo= (flight)AllInfo.next();//From this we can get the arriving airport and departing airport\n\t String date = ThisInfo.getDepartingDate()+\" \"+ThisInfo.getDepartingTime();\n\t Date FTime = null;\n\t switch (ai.getAirportRank(airportName, ThisInfo.getDepartingAirport())){\n\t case 0:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Anchorage\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 1:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 2:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 3:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 4:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 5:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 6:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Chicago\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 7:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Chicago\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 8:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 9:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 10:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 11:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 12:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Denver\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 13:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Detroit\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 14:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 15:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 16:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 17:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"Pacific/Honolulu\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 18:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 19:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 20:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Indiana/Indianapolis\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 21:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 22:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 23:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Los_Angeles\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 24:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 25:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 26:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 27:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 28:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 29:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 30:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 31:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 32:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 33:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 34:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 35:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 36:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Phoenix\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 37:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 38:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 39:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 40:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Mountain\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 41:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 42:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 43:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 44:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 45:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Paciifc\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 46:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 47:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 48:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 49:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 50:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t \n\t }\n\t }\n\t Iterator AllInf = FlightInfo.iterator(); \n\t while (AllInf.hasNext())\n\t { ThisInfo=(flight)AllInf.next();\n\t String date = ThisInfo.getArrivingDate()+\" \"+ThisInfo.getArrivingTime();\n\t Date FTim = null;\n\t switch (ai.getAirportRank(airportName, ThisInfo.getArrivingAirport())){\n\t case 0:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Anchorage\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 1:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 2:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 3:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 4:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 5:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 6:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Chicago\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 7:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Chicago\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 8:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 9:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 10:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 11:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 12:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Denver\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 13:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Detroit\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 14:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 15:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 16:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 17:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"Pacific/Honolulu\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 18:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 19:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 20:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Indiana/Indianapolis\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 21:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 22:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 23:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Los_Angeles\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 24:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 25:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 26:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 27:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 28:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 29:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 30:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 31:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 32:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 33:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 34:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 35:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 36:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Phoenix\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 37:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 38:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 39:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 40:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Mountain\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 41:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 42:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 43:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 44:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 45:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Paciifc\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 46:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 47:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 48:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 49:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 50:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t \n\t }\n\t }\n\t \n\t return FlightInfo;\n\t }",
"private void checkTurns(int i) {\n Random r = new Random();\n Road road = roads.get(i);\n if (road.vehiclesOffRoad.size() > 0) {\n for (int n = 0; n < road.vehiclesOffRoad.size(); n++) {\n int ref;\n int speed = road.vehiclesOffRoad.get(n).getSpeed();\n String type = road.vehiclesOffRoad.get(n).getType();\n\n if (road.connectedRoads.size() == 3) {\n int j = r.nextInt(3);\n if (isEmpty(road.connectedRoads.get(j),\n road.vehiclesOffRoad.get(n).getLength())) {\n ref = road.connectedRoads.get(j);\n addVehicle(type, speed, ref);\n road.vehicles.remove(n);\n\n } else road.vehicles.get(n).setPos(road.getRoadEnd());\n\n } else if (road.connectedRoads.size() == 2) {\n int j = r.nextInt(2);\n if (isEmpty(road.connectedRoads.get(j),\n road.vehiclesOffRoad.get(n).getLength())) {\n ref = road.connectedRoads.get(j);\n addVehicle(type, speed, ref);\n road.vehicles.remove(n);\n } else road.vehicles.get(0).setPos(road.getRoadEnd());\n\n } else if (road.connectedRoads.size() == 1) {\n if (isEmpty(road.connectedRoads.get(0),\n road.vehiclesOffRoad.get(n).getLength())) {\n\n ref = road.connectedRoads.get(n);\n addVehicle(type, speed, ref);\n road.vehicles.remove(n);\n } else road.vehicles.get(0).setPos(road.getRoadEnd());\n } else if (road.connectedRoads.size() == 0) {\n road.vehicles.remove(n);\n road.reset_offRoad();\n }\n\n\n }\n }\n road.reset_offRoad();\n\n }",
"@Override\n\tpublic void onReCalculateRouteForTrafficJam() {\n\n\t}",
"public void trimRoutes(){\n Station firstStation = null;\n Station s = null;\n Link link = null;\n if (trainState instanceof TrainReady)\n s = ((TrainReady) trainState).getStation();\n if (trainState instanceof TrainArrive)\n link = ((TrainArrive) trainState).getLink();\n if (trainState instanceof TrainDepart)\n link = ((TrainDepart) trainState).getLink();\n\n if (trainState instanceof TrainReady){\n firstStation = s;\n } else if (trainState instanceof TrainArrive){\n firstStation = link.getTo();\n } else if (trainState instanceof TrainDepart){\n firstStation = link.getFrom();\n }\n\n Iterator<Route> routeIterator = routes.iterator();\n while (routeIterator.hasNext()) {\n Route route = routeIterator.next();\n Iterator<Link> iter = route.getLinkList().iterator();\n while (iter.hasNext()){\n Link track = iter.next();\n if (!track.getFrom().equals(firstStation))\n iter.remove();\n else\n break;\n }\n if (route.getLinkList().size() == 0) {\n routeIterator.remove();\n }\n }\n }",
"private void computePathsForNode(Station curr, Route route, Trip trip, List<Station> visited)\n {\n if (visited.contains(curr)) return; // cycle detected\n\n visited.add(curr); // add current station to visited list\n\n if (route != null) // this is not the source node\n {\n if (trip == null)\n {\n trip = new Trip();\n trip.addHop(route);\n this.tripList.add(trip);\n }\n else\n {\n if (trip.getHopCount() > 0)\n {\n // Intermediate paths within a larger traversal path.\n // Add all the routes from the original traversal and add the current route at the end.\n // This generates all the sub-paths in a traversal.\n Trip newTrip = new Trip();\n for (Route hop : trip.getHops())\n newTrip.addHop(hop);\n\n tripList.add(newTrip);\n }\n\n // original traversal path\n trip.addHop(route);\n }\n }\n\n // if any outbound routes exist, proceed with the next set of nodes in a depth-first manner\n List<Route> outbound = this.graph.getOutboundRoutes(curr);\n if (outbound != null)\n {\n while (!outbound.isEmpty())\n {\n Route outRoute = outbound.remove(0);\n computePathsForNode(outRoute.destination, outRoute, trip, new ArrayList<Station>(visited));\n }\n }\n if (trip != null)\n {\n trip.removeLastHop(); // remove the hop from the trip list\n }\n\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Trips)) {\n return false;\n }\n Trips other = (Trips) object;\n if ((this.tripId == null && other.tripId != null) || (this.tripId != null && !this.tripId.equals(other.tripId))) {\n return false;\n }\n return true;\n }",
"public Integer getTrip() {\n return trip;\n }",
"private boolean isRelevant(Address address){\n\n return Math.abs(ride.getStartLatitude() - address.getLatitude()) < 2 &&\n Math.abs(ride.getStartLongitude() - address.getLongitude()) < 2;\n }",
"@Test\n\tpublic void fallbackBasicTest() {\n\t\tList<String> newTrain = new ArrayList<String>();\n\t\tnewTrain.add(\"1\");\n\t\tnewTrain.add(\"4\");\n\t\tList<TimeBetweenStop> timeBetweenStops = new ArrayList<TimeBetweenStop>();\n\t\tTimeBetweenStop timeBetweenStop = new TimeBetweenStop(\"1\", \"4\", 20);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\tsubwaySystem.addTrainLine(newTrain, \"B\", timeBetweenStops);\n\t\t\n\t\tList<String> answer = new ArrayList<String>();\n\t\tanswer.add(\"1\");\n\t\tanswer.add(\"2\");\n\t\tanswer.add(\"3\");\n\t\tanswer.add(\"4\");\n\t\tTrip trip = subwaySystem.takeTrain(\"1\", \"4\");\n\t\tAssert.assertTrue(trip.isTripFound());\n\t\tAssert.assertEquals(9, trip.getDuration());\n\t\tAssert.assertTrue(TestHelper.checkAnswer(answer, trip.getStops()));\n\n\t\t//Add a new train, no time info, should use basic\n\t\tnewTrain = new ArrayList<String>();\n\t\tnewTrain.add(\"1\");\n\t\tnewTrain.add(\"4\");\n\t\tsubwaySystem.addTrainLine(newTrain, \"C\");\n\t\t\n\t\tanswer = new ArrayList<String>();\n\t\tanswer.add(\"1\");\n\t\tanswer.add(\"4\");\n\t\ttrip = subwaySystem.takeTrain(\"1\", \"4\");\n\t\tAssert.assertTrue(trip.isTripFound());\n\t\tAssert.assertEquals(2, trip.getStops().size());\n\t\tAssert.assertTrue(TestHelper.checkRoute(trip.getStops(), subwaySystem.getMap().get(\"1\"), 1));\n\t}",
"@Test\r\n void findRouteDifferentLine() {\r\n List<Station> route = model.findRoute(9, 60);\r\n assertNotNull(route);\r\n assertEquals(10, route.size());\r\n assertEquals(\"SuffolkDowns\", route.get(0).getName());\r\n assertEquals(\"Broadway\", route.get(9).getName());\r\n }",
"@Override\r\n\tpublic boolean checkIfOnTraineeship() {\n\t\treturn false;\r\n\t}",
"@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyRBPAccessJourneys() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the RBP user is able to perform journey\");\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"Switchtopaperlessacctspecificsdata\");\t\t\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.bgbloginDetails(userProfile);\t\t\n\t\tnew MultiUserMultiViewAction()\n\t\t.ManageAccountLink(userProfile)\n\t\t.verifyRBPuserjourneyverification();\n\t\n\t}",
"boolean hasOriginFlightLeg();",
"public boolean isTripAbandon() {\n\t\tsharedPreferences = context.getSharedPreferences(\"TRIP\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getBoolean(\"isTripAbandon\", false);\n\t}",
"@Override\r\n\tpublic void guardarTripulanteEncontrado(Tripulante tripulante) {\r\n\t\tlistadoAuxiliar.add(tripulante);\r\n\t}",
"public void selectRouteChoice()\n\t{\n\t\tRoutePlanner planner = new RoutePlanner();\n\t\tthis.sequence = ap.listSequences.get(numTrips);\n\t\t// only minimisation\n\t\tif (ap.routeChoice.equals(\"DS\")) newPath = planner.roadDistance(originNode, destinationNode, ap);\n\t\telse if (ap.routeChoice.equals(\"AC\")) newPath = planner.angularChangeBased(originNode, destinationNode, ap);\n\t\telse if (ap.routeChoice.equals(\"TS\")) newPath = planner.angularChangeBased(originNode, destinationNode, ap);\n\t\t// minimisation plus only global landmarks\n\t\telse if (ap.routeChoice.equals(\"DG\")) newPath = planner.roadDistance(originNode, destinationNode, ap);\n\t\telse if (ap.routeChoice.equals(\"AG\")) newPath = planner.angularChangeBased(originNode, destinationNode, ap);\n\t\t// minimisation plus local and (optionally) global landmarks\n\t\telse if (ap.routeChoice.contains(\"D\") && ap.routeChoice.contains(\"L\")) newPath = planner.roadDistanceSequence(sequence, ap);\n\t\telse if (ap.routeChoice.contains(\"A\") && ap.routeChoice.contains(\"L\")) newPath = planner.angularChangeBasedSequence(sequence, ap);\n\t\t// anything with regions and/or barriers, or just barriers\n\t\telse if (ap.routeChoice.contains(\"R\")) newPath = planner.regionBarrierBasedPath(originNode, destinationNode, ap);\n\t\telse if (ap.routeChoice.contains(\"B\")) newPath = planner.barrierBasedPath(originNode, destinationNode, ap);\n\t}",
"List<IManifestEntry> getTrips();",
"public T trip() {\n return trip;\n }",
"boolean hasRouteDest();"
]
| [
"0.5778484",
"0.56321913",
"0.5609763",
"0.55974823",
"0.55733126",
"0.541609",
"0.53536963",
"0.53122616",
"0.5293905",
"0.5276773",
"0.5250711",
"0.5163916",
"0.514144",
"0.51276493",
"0.512353",
"0.50824547",
"0.50658107",
"0.5065506",
"0.5038438",
"0.5029451",
"0.5027334",
"0.49707767",
"0.49470386",
"0.49333793",
"0.49222884",
"0.49185002",
"0.4883353",
"0.4881471",
"0.487392",
"0.48697186",
"0.48430473",
"0.48399875",
"0.48349726",
"0.48333907",
"0.48331738",
"0.48253015",
"0.4820116",
"0.48159492",
"0.47933656",
"0.47893468",
"0.47603512",
"0.47515386",
"0.4742279",
"0.47382647",
"0.47316885",
"0.47293416",
"0.47241908",
"0.47155645",
"0.47153288",
"0.47112954",
"0.47035158",
"0.4702032",
"0.46923074",
"0.4685721",
"0.468439",
"0.4671455",
"0.46704352",
"0.46646178",
"0.46602687",
"0.46594822",
"0.46501794",
"0.4647083",
"0.46450332",
"0.464399",
"0.46428558",
"0.4632043",
"0.4624456",
"0.46242043",
"0.46206245",
"0.46191505",
"0.46124306",
"0.46117237",
"0.46078494",
"0.46061072",
"0.46054074",
"0.45979145",
"0.45954442",
"0.45944026",
"0.4592779",
"0.45897752",
"0.45880723",
"0.45866466",
"0.4582915",
"0.4573822",
"0.45678082",
"0.4562974",
"0.45601943",
"0.4559034",
"0.45563656",
"0.45542312",
"0.45537254",
"0.45525926",
"0.4551418",
"0.45491353",
"0.45467705",
"0.4545174",
"0.4539739",
"0.4538698",
"0.453594",
"0.4532566"
]
| 0.7359832 | 0 |
Returns the initiation date of the TA | @Override
public Date getEffectiveDateForMileageRate(ActualExpense expense) {
if (getTripBegin() == null) {
return new java.sql.Date(getDocumentHeader().getWorkflowDocument().getDateCreated().getMillis());
}
return new java.sql.Date(getTripBegin().getTime());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}",
"public Timestamp getInitialIssuanceDate() {\n return initialIssuanceDate;\n }",
"@Override\n\tpublic void initDate() {\n\n\t}",
"date initdate(date iDate)\n {\n iDate.updateElementValue(\"date\");\n return iDate;\n }",
"public Date getBeginnDate() {\n\t\treturn beginnDate;\n\t}",
"public Date getBEGIN_DATE() {\n return BEGIN_DATE;\n }",
"private Date getDefaultCenturyStart() {\n\t\tif (defaultCenturyStart == null) {\n\t\t\t// not yet initialized\n\t\t\tinitializeDefaultCenturyStart(defaultCenturyBase);\n\t\t}\n\t\treturn defaultCenturyStart;\n\t}",
"private Date getPreviosDayStartTime() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void setInitialDate(Calendar initialDate) {\n\n\t}",
"public Date getAlta() { return alta; }",
"@Override\r\n\tpublic Date getApp_first_logon_dt() {\n\t\treturn super.getApp_first_logon_dt();\r\n\t}",
"public Date get2DigitYearStart() {\n\t\treturn getDefaultCenturyStart();\n\t}",
"public BidTime getInitTime() {\r\n\t\treturn initTime;\r\n\t}",
"public Date getStartDate()\n {\n return (Date)getAttributeInternal(STARTDATE);\n }",
"Date getStartDate();",
"Date getStartDate();",
"Date getStartDate();",
"public String getInitUpdateDateTime() {\n return initUpdateDateTime;\n }",
"public Date getDefaultStartTime()\r\n {\r\n return (m_defaultStartTime);\r\n }",
"public int firstSettleDate()\n\t{\n\t\treturn _iFirstSettleDate;\n\t}",
"public LocalDateTime getTempoInit() {\n return tempoInit;\n }",
"public Date getAutoDate() {\r\n return autoDate;\r\n }",
"public Date getStartDate();",
"public Date getStartDate();",
"public final /* synthetic */ Object initialValue() {\n return new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\", Locale.US);\n }",
"String getStartDate();",
"private void initializeDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\texpense.setDate(c.getTime());\n\n\t\t// display the current date\n\t\tupdateDateDisplay();\n\t}",
"public SimpleDateFormat initialValue() {\n return new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\", Locale.getDefault());\n }",
"public Date getInstdte() {\r\n return instdte;\r\n }",
"public void setInitialIssuanceDate(Timestamp aInitialIssuanceDate) {\n initialIssuanceDate = aInitialIssuanceDate;\n }",
"public Date getSetUpDate() {\n return setUpDate;\n }",
"public String getStartDate() {\n SimpleDateFormat formatDate = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formatDate.format(fecha);\n }",
"@Override\n\tpublic java.util.Date getNgayTao() {\n\t\treturn _keHoachKiemDemNuoc.getNgayTao();\n\t}",
"public Timestamp getDateStart();",
"public java.lang.String getPymt_beg_dt() {\n\t\treturn pymt_beg_dt;\n\t}",
"public String getStartDate();",
"public int MagicDate(){\n return month = day = year = 1;\n \n }",
"public static Date ahora() {\n return ahoraCalendar().getTime();\n }",
"long getStartDate();",
"long getBeginDate();",
"com.google.type.Date getAcquireDate();",
"public Date getOriginalStart() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.OriginalStart);\n\t}",
"@Override\n\tpublic Date getStartDate() {\n\t\treturn model.getStartDate();\n\t}",
"public Date getFirstRelease() {\n return firstRelease;\n }",
"public Date getFechaIniDate(){\n Date date=new Date(fechaInicio.getTime());\n return date;\n }",
"public DTM getRxa3_DateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }",
"public Date getDATE_SETTLED() {\r\n return DATE_SETTLED;\r\n }",
"public Date() {\r\n\t\tGregorianCalendar c = new GregorianCalendar();\r\n\t\tmonth = c.get(Calendar.MONTH) + 1; // our month starts from 1\r\n\t\tday = c.get(Calendar.DAY_OF_MONTH);\r\n\t\tyear = c.get(Calendar.YEAR);\r\n\t}",
"public Timestamp getDateStart() {\n\t\treturn (Timestamp) get_Value(\"DateStart\");\n\t}",
"public java.util.Date setupSnap()\n\t{\n\t\treturn _dtSetup;\n\t}",
"public long getBeginDate() {\n return beginDate_;\n }",
"abstract Date getDefault();",
"public java.sql.Date getREQ_START_DATE()\n {\n \n return __REQ_START_DATE;\n }",
"java.lang.String getStartDate();",
"public long getBeginDate() {\n return beginDate_;\n }",
"public Date getDefaultTrialExpirationDate(){\n if(AccountType.STANDARD.equals(accountType)){\n Calendar cal = Calendar.getInstance();\n\n //setting the free trial up for standard users\n cal.add(Calendar.DATE, Company.FREE_TRIAL_LENGTH_DAYS);\n return cal.getTime();\n }\n\n return null;\n }",
"public Date getStartDate() {\r\n\t\treturn new Date(startDateText.getDay(), startDateText.getMonth()+1, startDateText.getYear());\r\n\t}",
"@Override\n protected void initialize() {\n startT = Timer.getFPGATimestamp();\n }",
"@Override\n\tpublic java.util.Date getStartDate() {\n\t\treturn _esfTournament.getStartDate();\n\t}",
"public static Date getStartupDateTime() {\r\n\t\treturn startupDateTime;\r\n\t}",
"public String getStartDate() {\n\t\treturn startDate.getText();\n\t}",
"@Override\n public Date getTransactionStartDate() {\n return traxStartDate;\n }",
"public DTM getDateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }",
"private int getDefaultCenturyStartYear() {\n\t\tif (defaultCenturyStart == null) {\n\t\t\t// not yet initialized\n\t\t\tinitializeDefaultCenturyStart(defaultCenturyBase);\n\t\t}\n\t\treturn defaultCenturyStartYear;\n\t}",
"public String Get_date() \n {\n \n return date;\n }",
"public Date getInitialActivityDate(String siteId) {\n\t\tDate date = null;\n\t\ttry{\n\t\t\tdate = siteService.getSite(siteId).getCreatedDate();\n\t\t}catch(Exception e){\n\t\t\treturn new Date(0);\n\t\t}\n\t\treturn date;\n\t}",
"public Date getActualStart()\r\n {\r\n return (m_actualStart);\r\n }",
"public Date getStartDate() {\r\n return startDate;\r\n }",
"public Date getStartDate() {\r\n return startDate;\r\n }",
"public Date getCreationDate()\n {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date(){\n\t\tyear=0;\n\t\tmonth=0;\n\t\tday=0;\n\t}",
"public LocalDate getGenDate() {\n\t\treturn genDate;\n\t}",
"public String getDate(){ return this.start_date;}",
"public int getStartingYear()\n {\n return 2013;\n }",
"public Date getCreationDate() {\n return m_module.getConfiguration().getCreationDate();\n }",
"public Date getStartDate() {\n return startDate;\n }",
"public Date getStartDate() {\n return startDate;\n }",
"public Date getStartDate() {\n return startDate;\n }",
"Date getStartDay();",
"@ApiModelProperty(required = false, value = \"epoch timestamp in milliseconds\")\n public Long getInitiate() {\n return initiate;\n }",
"public Date getStartDate()\r\n {\r\n return this.startDate;\r\n }",
"private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }",
"public Date getStartDate() {\n\t\treturn startDate;\n\t}",
"public Date getStartDate() {\n\t\treturn startDate;\n\t}",
"public java.util.Date getDateOfExamination(){\n return localDateOfExamination;\n }",
"@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _scienceApp.getCreateDate();\n\t}",
"public String getDefaultDate() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMMM d, yyyy\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}",
"public long getStartDate() {\n return startDate_;\n }",
"public Date getStart() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.Start);\n\t}",
"@Override\n\tpublic java.util.Date getNgayBatDau() {\n\t\treturn _keHoachKiemDemNuoc.getNgayBatDau();\n\t}",
"public TelaInicial() {\n\n boolean expirou = false;\n if(new Date().after(new Date(2020 - 1900, Calendar.JULY, 31))){\n JOptionPane.showMessageDialog(this, \"Periodo de teste acabou.\");\n expirou = true;\n }\n initComponents(expirou);\n }",
"public java.util.Date getDateInst(){\r\n return this.dateInst;\r\n }",
"public Date getStart() {\n return start;\n }",
"@JsonGetter(\"initiated_at\")\r\n public String getInitiatedAt() {\r\n return initiatedAt;\r\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getElectronicStartTime() {\n return (Date)getAttributeInternal(ELECTRONICSTARTTIME);\n }"
]
| [
"0.7024682",
"0.66976184",
"0.6425951",
"0.6283977",
"0.61900055",
"0.6129337",
"0.60811037",
"0.60623914",
"0.6004461",
"0.6000034",
"0.599747",
"0.5992051",
"0.5962503",
"0.5942058",
"0.59214574",
"0.59214574",
"0.59214574",
"0.5882331",
"0.58773404",
"0.5874607",
"0.58729815",
"0.58637017",
"0.5852727",
"0.5852727",
"0.5808418",
"0.5795325",
"0.57839406",
"0.5778312",
"0.576733",
"0.57666373",
"0.57664734",
"0.5762022",
"0.57577753",
"0.57425386",
"0.57356447",
"0.572335",
"0.56948274",
"0.56659317",
"0.5662328",
"0.56609863",
"0.56431687",
"0.5638321",
"0.5630871",
"0.56210476",
"0.56149966",
"0.56132764",
"0.56069374",
"0.5605922",
"0.5604601",
"0.55934805",
"0.5575803",
"0.5572834",
"0.5572608",
"0.5569092",
"0.55649143",
"0.5554263",
"0.55536026",
"0.5551211",
"0.553074",
"0.5512296",
"0.55101794",
"0.55096924",
"0.54914474",
"0.5485075",
"0.5483514",
"0.5482074",
"0.5478145",
"0.5474546",
"0.5474546",
"0.5471267",
"0.5463624",
"0.5462438",
"0.5461231",
"0.5457767",
"0.54573154",
"0.54560953",
"0.54560953",
"0.54560953",
"0.5435825",
"0.5435261",
"0.5430419",
"0.542037",
"0.5418517",
"0.5418517",
"0.5417081",
"0.53999484",
"0.5399208",
"0.53961635",
"0.539451",
"0.5388389",
"0.53848696",
"0.53806293",
"0.5372824",
"0.53705025",
"0.53653544",
"0.53653544",
"0.53653544",
"0.53653544",
"0.53653544",
"0.53653544",
"0.53574216"
]
| 0.0 | -1 |
Returns the initiation date of the TA | @Override
public Date getEffectiveDateForMileageRate(PerDiemExpense expense) {
if (getTripBegin() == null) {
return new java.sql.Date(getDocumentHeader().getWorkflowDocument().getDateCreated().getMillis());
}
return new java.sql.Date(getTripBegin().getTime());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}",
"public Timestamp getInitialIssuanceDate() {\n return initialIssuanceDate;\n }",
"@Override\n\tpublic void initDate() {\n\n\t}",
"date initdate(date iDate)\n {\n iDate.updateElementValue(\"date\");\n return iDate;\n }",
"public Date getBeginnDate() {\n\t\treturn beginnDate;\n\t}",
"public Date getBEGIN_DATE() {\n return BEGIN_DATE;\n }",
"private Date getDefaultCenturyStart() {\n\t\tif (defaultCenturyStart == null) {\n\t\t\t// not yet initialized\n\t\t\tinitializeDefaultCenturyStart(defaultCenturyBase);\n\t\t}\n\t\treturn defaultCenturyStart;\n\t}",
"private Date getPreviosDayStartTime() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void setInitialDate(Calendar initialDate) {\n\n\t}",
"public Date getAlta() { return alta; }",
"@Override\r\n\tpublic Date getApp_first_logon_dt() {\n\t\treturn super.getApp_first_logon_dt();\r\n\t}",
"public Date get2DigitYearStart() {\n\t\treturn getDefaultCenturyStart();\n\t}",
"public BidTime getInitTime() {\r\n\t\treturn initTime;\r\n\t}",
"public Date getStartDate()\n {\n return (Date)getAttributeInternal(STARTDATE);\n }",
"Date getStartDate();",
"Date getStartDate();",
"Date getStartDate();",
"public String getInitUpdateDateTime() {\n return initUpdateDateTime;\n }",
"public Date getDefaultStartTime()\r\n {\r\n return (m_defaultStartTime);\r\n }",
"public int firstSettleDate()\n\t{\n\t\treturn _iFirstSettleDate;\n\t}",
"public LocalDateTime getTempoInit() {\n return tempoInit;\n }",
"public Date getAutoDate() {\r\n return autoDate;\r\n }",
"public Date getStartDate();",
"public Date getStartDate();",
"public final /* synthetic */ Object initialValue() {\n return new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\", Locale.US);\n }",
"String getStartDate();",
"private void initializeDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\texpense.setDate(c.getTime());\n\n\t\t// display the current date\n\t\tupdateDateDisplay();\n\t}",
"public SimpleDateFormat initialValue() {\n return new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\", Locale.getDefault());\n }",
"public Date getInstdte() {\r\n return instdte;\r\n }",
"public Date getSetUpDate() {\n return setUpDate;\n }",
"public String getStartDate() {\n SimpleDateFormat formatDate = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formatDate.format(fecha);\n }",
"public void setInitialIssuanceDate(Timestamp aInitialIssuanceDate) {\n initialIssuanceDate = aInitialIssuanceDate;\n }",
"@Override\n\tpublic java.util.Date getNgayTao() {\n\t\treturn _keHoachKiemDemNuoc.getNgayTao();\n\t}",
"public Timestamp getDateStart();",
"public java.lang.String getPymt_beg_dt() {\n\t\treturn pymt_beg_dt;\n\t}",
"public String getStartDate();",
"public int MagicDate(){\n return month = day = year = 1;\n \n }",
"public static Date ahora() {\n return ahoraCalendar().getTime();\n }",
"long getStartDate();",
"long getBeginDate();",
"com.google.type.Date getAcquireDate();",
"public Date getOriginalStart() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.OriginalStart);\n\t}",
"@Override\n\tpublic Date getStartDate() {\n\t\treturn model.getStartDate();\n\t}",
"public Date getFirstRelease() {\n return firstRelease;\n }",
"public Date getFechaIniDate(){\n Date date=new Date(fechaInicio.getTime());\n return date;\n }",
"public DTM getRxa3_DateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }",
"public Date getDATE_SETTLED() {\r\n return DATE_SETTLED;\r\n }",
"public Date() {\r\n\t\tGregorianCalendar c = new GregorianCalendar();\r\n\t\tmonth = c.get(Calendar.MONTH) + 1; // our month starts from 1\r\n\t\tday = c.get(Calendar.DAY_OF_MONTH);\r\n\t\tyear = c.get(Calendar.YEAR);\r\n\t}",
"public Timestamp getDateStart() {\n\t\treturn (Timestamp) get_Value(\"DateStart\");\n\t}",
"public java.util.Date setupSnap()\n\t{\n\t\treturn _dtSetup;\n\t}",
"public long getBeginDate() {\n return beginDate_;\n }",
"abstract Date getDefault();",
"public java.sql.Date getREQ_START_DATE()\n {\n \n return __REQ_START_DATE;\n }",
"java.lang.String getStartDate();",
"public long getBeginDate() {\n return beginDate_;\n }",
"public Date getDefaultTrialExpirationDate(){\n if(AccountType.STANDARD.equals(accountType)){\n Calendar cal = Calendar.getInstance();\n\n //setting the free trial up for standard users\n cal.add(Calendar.DATE, Company.FREE_TRIAL_LENGTH_DAYS);\n return cal.getTime();\n }\n\n return null;\n }",
"public Date getStartDate() {\r\n\t\treturn new Date(startDateText.getDay(), startDateText.getMonth()+1, startDateText.getYear());\r\n\t}",
"@Override\n protected void initialize() {\n startT = Timer.getFPGATimestamp();\n }",
"@Override\n\tpublic java.util.Date getStartDate() {\n\t\treturn _esfTournament.getStartDate();\n\t}",
"public static Date getStartupDateTime() {\r\n\t\treturn startupDateTime;\r\n\t}",
"public String getStartDate() {\n\t\treturn startDate.getText();\n\t}",
"@Override\n public Date getTransactionStartDate() {\n return traxStartDate;\n }",
"public DTM getDateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }",
"public String Get_date() \n {\n \n return date;\n }",
"private int getDefaultCenturyStartYear() {\n\t\tif (defaultCenturyStart == null) {\n\t\t\t// not yet initialized\n\t\t\tinitializeDefaultCenturyStart(defaultCenturyBase);\n\t\t}\n\t\treturn defaultCenturyStartYear;\n\t}",
"public Date getInitialActivityDate(String siteId) {\n\t\tDate date = null;\n\t\ttry{\n\t\t\tdate = siteService.getSite(siteId).getCreatedDate();\n\t\t}catch(Exception e){\n\t\t\treturn new Date(0);\n\t\t}\n\t\treturn date;\n\t}",
"public Date getActualStart()\r\n {\r\n return (m_actualStart);\r\n }",
"public Date getStartDate() {\r\n return startDate;\r\n }",
"public Date getStartDate() {\r\n return startDate;\r\n }",
"public Date getCreationDate()\n {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public LocalDate getGenDate() {\n\t\treturn genDate;\n\t}",
"public Date(){\n\t\tyear=0;\n\t\tmonth=0;\n\t\tday=0;\n\t}",
"public String getDate(){ return this.start_date;}",
"public Date getCreationDate() {\n return m_module.getConfiguration().getCreationDate();\n }",
"public int getStartingYear()\n {\n return 2013;\n }",
"public Date getStartDate() {\n return startDate;\n }",
"public Date getStartDate() {\n return startDate;\n }",
"public Date getStartDate() {\n return startDate;\n }",
"Date getStartDay();",
"@ApiModelProperty(required = false, value = \"epoch timestamp in milliseconds\")\n public Long getInitiate() {\n return initiate;\n }",
"public Date getStartDate()\r\n {\r\n return this.startDate;\r\n }",
"private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }",
"public java.util.Date getDateOfExamination(){\n return localDateOfExamination;\n }",
"public Date getStartDate() {\n\t\treturn startDate;\n\t}",
"public Date getStartDate() {\n\t\treturn startDate;\n\t}",
"@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _scienceApp.getCreateDate();\n\t}",
"public String getDefaultDate() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMMM d, yyyy\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}",
"public long getStartDate() {\n return startDate_;\n }",
"public Date getStart() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.Start);\n\t}",
"@Override\n\tpublic java.util.Date getNgayBatDau() {\n\t\treturn _keHoachKiemDemNuoc.getNgayBatDau();\n\t}",
"public TelaInicial() {\n\n boolean expirou = false;\n if(new Date().after(new Date(2020 - 1900, Calendar.JULY, 31))){\n JOptionPane.showMessageDialog(this, \"Periodo de teste acabou.\");\n expirou = true;\n }\n initComponents(expirou);\n }",
"public java.util.Date getDateInst(){\r\n return this.dateInst;\r\n }",
"public Date getStart() {\n return start;\n }",
"@JsonGetter(\"initiated_at\")\r\n public String getInitiatedAt() {\r\n return initiatedAt;\r\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getElectronicStartTime() {\n return (Date)getAttributeInternal(ELECTRONICSTARTTIME);\n }"
]
| [
"0.70246005",
"0.6696484",
"0.6425127",
"0.62837243",
"0.6190139",
"0.6130035",
"0.6081716",
"0.6061651",
"0.60026306",
"0.6002619",
"0.5998153",
"0.5993253",
"0.59610325",
"0.59427196",
"0.5923168",
"0.5923168",
"0.5923168",
"0.58808744",
"0.5876311",
"0.58745193",
"0.5873023",
"0.5865261",
"0.5853725",
"0.5853725",
"0.5809596",
"0.5797269",
"0.5783649",
"0.5780364",
"0.57698226",
"0.5766948",
"0.5764013",
"0.5763464",
"0.57600933",
"0.57432276",
"0.573643",
"0.57248497",
"0.5696594",
"0.5668465",
"0.5664569",
"0.5662555",
"0.5646989",
"0.5638023",
"0.56309795",
"0.5621465",
"0.5616469",
"0.5612391",
"0.56086594",
"0.5608415",
"0.5604826",
"0.5593947",
"0.55756474",
"0.55747813",
"0.55725676",
"0.55708563",
"0.55647576",
"0.55551416",
"0.55543244",
"0.55502814",
"0.55309504",
"0.551221",
"0.551098",
"0.55104387",
"0.5491047",
"0.54872423",
"0.54861873",
"0.54814327",
"0.5479392",
"0.5474804",
"0.5474804",
"0.54732704",
"0.5465545",
"0.54642785",
"0.54631567",
"0.54591036",
"0.5458734",
"0.54563904",
"0.54563904",
"0.54563904",
"0.5437155",
"0.5435329",
"0.543081",
"0.5422674",
"0.5419409",
"0.5418519",
"0.5418519",
"0.5401935",
"0.5400752",
"0.5396501",
"0.539425",
"0.5392499",
"0.53853995",
"0.5384177",
"0.5372959",
"0.5369943",
"0.5367209",
"0.5367209",
"0.5367209",
"0.5367209",
"0.5367209",
"0.5367209",
"0.5358341"
]
| 0.0 | -1 |
Returns the initiation date of the TA | @Override
public Date getEffectiveDateForPerDiem(PerDiemExpense expense) {
if (getTripBegin() == null) {
return new java.sql.Date(getDocumentHeader().getWorkflowDocument().getDateCreated().getMillis());
}
return new java.sql.Date(getTripBegin().getTime());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}",
"public Timestamp getInitialIssuanceDate() {\n return initialIssuanceDate;\n }",
"@Override\n\tpublic void initDate() {\n\n\t}",
"date initdate(date iDate)\n {\n iDate.updateElementValue(\"date\");\n return iDate;\n }",
"public Date getBeginnDate() {\n\t\treturn beginnDate;\n\t}",
"public Date getBEGIN_DATE() {\n return BEGIN_DATE;\n }",
"private Date getDefaultCenturyStart() {\n\t\tif (defaultCenturyStart == null) {\n\t\t\t// not yet initialized\n\t\t\tinitializeDefaultCenturyStart(defaultCenturyBase);\n\t\t}\n\t\treturn defaultCenturyStart;\n\t}",
"private Date getPreviosDayStartTime() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void setInitialDate(Calendar initialDate) {\n\n\t}",
"public Date getAlta() { return alta; }",
"@Override\r\n\tpublic Date getApp_first_logon_dt() {\n\t\treturn super.getApp_first_logon_dt();\r\n\t}",
"public Date get2DigitYearStart() {\n\t\treturn getDefaultCenturyStart();\n\t}",
"public BidTime getInitTime() {\r\n\t\treturn initTime;\r\n\t}",
"public Date getStartDate()\n {\n return (Date)getAttributeInternal(STARTDATE);\n }",
"Date getStartDate();",
"Date getStartDate();",
"Date getStartDate();",
"public String getInitUpdateDateTime() {\n return initUpdateDateTime;\n }",
"public Date getDefaultStartTime()\r\n {\r\n return (m_defaultStartTime);\r\n }",
"public LocalDateTime getTempoInit() {\n return tempoInit;\n }",
"public int firstSettleDate()\n\t{\n\t\treturn _iFirstSettleDate;\n\t}",
"public Date getAutoDate() {\r\n return autoDate;\r\n }",
"public Date getStartDate();",
"public Date getStartDate();",
"public final /* synthetic */ Object initialValue() {\n return new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\", Locale.US);\n }",
"String getStartDate();",
"private void initializeDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\texpense.setDate(c.getTime());\n\n\t\t// display the current date\n\t\tupdateDateDisplay();\n\t}",
"public SimpleDateFormat initialValue() {\n return new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\", Locale.getDefault());\n }",
"public Date getInstdte() {\r\n return instdte;\r\n }",
"public Date getSetUpDate() {\n return setUpDate;\n }",
"public void setInitialIssuanceDate(Timestamp aInitialIssuanceDate) {\n initialIssuanceDate = aInitialIssuanceDate;\n }",
"public String getStartDate() {\n SimpleDateFormat formatDate = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formatDate.format(fecha);\n }",
"@Override\n\tpublic java.util.Date getNgayTao() {\n\t\treturn _keHoachKiemDemNuoc.getNgayTao();\n\t}",
"public Timestamp getDateStart();",
"public java.lang.String getPymt_beg_dt() {\n\t\treturn pymt_beg_dt;\n\t}",
"public String getStartDate();",
"public int MagicDate(){\n return month = day = year = 1;\n \n }",
"public static Date ahora() {\n return ahoraCalendar().getTime();\n }",
"long getStartDate();",
"long getBeginDate();",
"com.google.type.Date getAcquireDate();",
"public Date getOriginalStart() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.OriginalStart);\n\t}",
"@Override\n\tpublic Date getStartDate() {\n\t\treturn model.getStartDate();\n\t}",
"public Date getFirstRelease() {\n return firstRelease;\n }",
"public Date getFechaIniDate(){\n Date date=new Date(fechaInicio.getTime());\n return date;\n }",
"public DTM getRxa3_DateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }",
"public Date getDATE_SETTLED() {\r\n return DATE_SETTLED;\r\n }",
"public Date() {\r\n\t\tGregorianCalendar c = new GregorianCalendar();\r\n\t\tmonth = c.get(Calendar.MONTH) + 1; // our month starts from 1\r\n\t\tday = c.get(Calendar.DAY_OF_MONTH);\r\n\t\tyear = c.get(Calendar.YEAR);\r\n\t}",
"public Timestamp getDateStart() {\n\t\treturn (Timestamp) get_Value(\"DateStart\");\n\t}",
"public java.util.Date setupSnap()\n\t{\n\t\treturn _dtSetup;\n\t}",
"public long getBeginDate() {\n return beginDate_;\n }",
"public java.sql.Date getREQ_START_DATE()\n {\n \n return __REQ_START_DATE;\n }",
"abstract Date getDefault();",
"java.lang.String getStartDate();",
"public long getBeginDate() {\n return beginDate_;\n }",
"public Date getDefaultTrialExpirationDate(){\n if(AccountType.STANDARD.equals(accountType)){\n Calendar cal = Calendar.getInstance();\n\n //setting the free trial up for standard users\n cal.add(Calendar.DATE, Company.FREE_TRIAL_LENGTH_DAYS);\n return cal.getTime();\n }\n\n return null;\n }",
"public Date getStartDate() {\r\n\t\treturn new Date(startDateText.getDay(), startDateText.getMonth()+1, startDateText.getYear());\r\n\t}",
"@Override\n protected void initialize() {\n startT = Timer.getFPGATimestamp();\n }",
"@Override\n\tpublic java.util.Date getStartDate() {\n\t\treturn _esfTournament.getStartDate();\n\t}",
"public static Date getStartupDateTime() {\r\n\t\treturn startupDateTime;\r\n\t}",
"public String getStartDate() {\n\t\treturn startDate.getText();\n\t}",
"@Override\n public Date getTransactionStartDate() {\n return traxStartDate;\n }",
"public DTM getDateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }",
"private int getDefaultCenturyStartYear() {\n\t\tif (defaultCenturyStart == null) {\n\t\t\t// not yet initialized\n\t\t\tinitializeDefaultCenturyStart(defaultCenturyBase);\n\t\t}\n\t\treturn defaultCenturyStartYear;\n\t}",
"public String Get_date() \n {\n \n return date;\n }",
"public Date getInitialActivityDate(String siteId) {\n\t\tDate date = null;\n\t\ttry{\n\t\t\tdate = siteService.getSite(siteId).getCreatedDate();\n\t\t}catch(Exception e){\n\t\t\treturn new Date(0);\n\t\t}\n\t\treturn date;\n\t}",
"public Date getActualStart()\r\n {\r\n return (m_actualStart);\r\n }",
"public Date getStartDate() {\r\n return startDate;\r\n }",
"public Date getStartDate() {\r\n return startDate;\r\n }",
"public Date getCreationDate()\n {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public LocalDate getGenDate() {\n\t\treturn genDate;\n\t}",
"public Date(){\n\t\tyear=0;\n\t\tmonth=0;\n\t\tday=0;\n\t}",
"public String getDate(){ return this.start_date;}",
"public int getStartingYear()\n {\n return 2013;\n }",
"public Date getCreationDate() {\n return m_module.getConfiguration().getCreationDate();\n }",
"public Date getStartDate() {\n return startDate;\n }",
"public Date getStartDate() {\n return startDate;\n }",
"public Date getStartDate() {\n return startDate;\n }",
"Date getStartDay();",
"@ApiModelProperty(required = false, value = \"epoch timestamp in milliseconds\")\n public Long getInitiate() {\n return initiate;\n }",
"public Date getStartDate()\r\n {\r\n return this.startDate;\r\n }",
"private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }",
"public Date getStartDate() {\n\t\treturn startDate;\n\t}",
"public Date getStartDate() {\n\t\treturn startDate;\n\t}",
"public java.util.Date getDateOfExamination(){\n return localDateOfExamination;\n }",
"@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _scienceApp.getCreateDate();\n\t}",
"public String getDefaultDate() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMMM d, yyyy\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}",
"public long getStartDate() {\n return startDate_;\n }",
"public Date getStart() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.Start);\n\t}",
"@Override\n\tpublic java.util.Date getNgayBatDau() {\n\t\treturn _keHoachKiemDemNuoc.getNgayBatDau();\n\t}",
"public TelaInicial() {\n\n boolean expirou = false;\n if(new Date().after(new Date(2020 - 1900, Calendar.JULY, 31))){\n JOptionPane.showMessageDialog(this, \"Periodo de teste acabou.\");\n expirou = true;\n }\n initComponents(expirou);\n }",
"public java.util.Date getDateInst(){\r\n return this.dateInst;\r\n }",
"public Date getStart() {\n return start;\n }",
"@JsonGetter(\"initiated_at\")\r\n public String getInitiatedAt() {\r\n return initiatedAt;\r\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getElectronicStartTime() {\n return (Date)getAttributeInternal(ELECTRONICSTARTTIME);\n }"
]
| [
"0.7022776",
"0.66953045",
"0.6423966",
"0.6281863",
"0.6188251",
"0.6128163",
"0.6080153",
"0.6060747",
"0.6002195",
"0.599908",
"0.59965676",
"0.59915656",
"0.5962883",
"0.5940811",
"0.5919881",
"0.5919881",
"0.5919881",
"0.58815885",
"0.58762634",
"0.58733916",
"0.5872673",
"0.5862051",
"0.58511215",
"0.58511215",
"0.5807585",
"0.5794054",
"0.5781204",
"0.57775974",
"0.5766358",
"0.57648844",
"0.5764114",
"0.57604736",
"0.57572067",
"0.57421",
"0.57349724",
"0.5721932",
"0.5692942",
"0.5665008",
"0.5660929",
"0.56593466",
"0.5643114",
"0.5636522",
"0.56290704",
"0.5620347",
"0.56134164",
"0.56124336",
"0.5605796",
"0.5604502",
"0.56037754",
"0.55920285",
"0.55739087",
"0.5571636",
"0.55715823",
"0.5567962",
"0.5562991",
"0.55536216",
"0.5551616",
"0.5551297",
"0.5529021",
"0.55107474",
"0.5509",
"0.5508611",
"0.54902875",
"0.5484427",
"0.54824644",
"0.54801637",
"0.5477155",
"0.54729253",
"0.54729253",
"0.54707026",
"0.54623",
"0.5461711",
"0.54600775",
"0.5456784",
"0.54564965",
"0.54545134",
"0.54545134",
"0.54545134",
"0.5434912",
"0.54347855",
"0.5428791",
"0.5418362",
"0.5416852",
"0.5416852",
"0.5415299",
"0.5398047",
"0.53973883",
"0.5394596",
"0.53934413",
"0.53880095",
"0.53844434",
"0.53799933",
"0.5371868",
"0.5370036",
"0.5364805",
"0.5364805",
"0.5364805",
"0.5364805",
"0.5364805",
"0.5364805",
"0.53575104"
]
| 0.0 | -1 |
Returns the initiation date of the TA | @Override
public Date getEffectiveDateForPerDiem(java.sql.Timestamp expenseDate) {
if (getTripBegin() == null) {
return new java.sql.Date(getDocumentHeader().getWorkflowDocument().getDateCreated().getMillis());
}
return new java.sql.Date(getTripBegin().getTime());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}",
"public Timestamp getInitialIssuanceDate() {\n return initialIssuanceDate;\n }",
"@Override\n\tpublic void initDate() {\n\n\t}",
"date initdate(date iDate)\n {\n iDate.updateElementValue(\"date\");\n return iDate;\n }",
"public Date getBeginnDate() {\n\t\treturn beginnDate;\n\t}",
"public Date getBEGIN_DATE() {\n return BEGIN_DATE;\n }",
"private Date getDefaultCenturyStart() {\n\t\tif (defaultCenturyStart == null) {\n\t\t\t// not yet initialized\n\t\t\tinitializeDefaultCenturyStart(defaultCenturyBase);\n\t\t}\n\t\treturn defaultCenturyStart;\n\t}",
"private Date getPreviosDayStartTime() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void setInitialDate(Calendar initialDate) {\n\n\t}",
"public Date getAlta() { return alta; }",
"@Override\r\n\tpublic Date getApp_first_logon_dt() {\n\t\treturn super.getApp_first_logon_dt();\r\n\t}",
"public Date get2DigitYearStart() {\n\t\treturn getDefaultCenturyStart();\n\t}",
"public BidTime getInitTime() {\r\n\t\treturn initTime;\r\n\t}",
"public Date getStartDate()\n {\n return (Date)getAttributeInternal(STARTDATE);\n }",
"Date getStartDate();",
"Date getStartDate();",
"Date getStartDate();",
"public String getInitUpdateDateTime() {\n return initUpdateDateTime;\n }",
"public Date getDefaultStartTime()\r\n {\r\n return (m_defaultStartTime);\r\n }",
"public LocalDateTime getTempoInit() {\n return tempoInit;\n }",
"public int firstSettleDate()\n\t{\n\t\treturn _iFirstSettleDate;\n\t}",
"public Date getAutoDate() {\r\n return autoDate;\r\n }",
"public Date getStartDate();",
"public Date getStartDate();",
"public final /* synthetic */ Object initialValue() {\n return new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\", Locale.US);\n }",
"String getStartDate();",
"private void initializeDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\texpense.setDate(c.getTime());\n\n\t\t// display the current date\n\t\tupdateDateDisplay();\n\t}",
"public SimpleDateFormat initialValue() {\n return new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\", Locale.getDefault());\n }",
"public Date getInstdte() {\r\n return instdte;\r\n }",
"public Date getSetUpDate() {\n return setUpDate;\n }",
"public void setInitialIssuanceDate(Timestamp aInitialIssuanceDate) {\n initialIssuanceDate = aInitialIssuanceDate;\n }",
"public String getStartDate() {\n SimpleDateFormat formatDate = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formatDate.format(fecha);\n }",
"@Override\n\tpublic java.util.Date getNgayTao() {\n\t\treturn _keHoachKiemDemNuoc.getNgayTao();\n\t}",
"public Timestamp getDateStart();",
"public java.lang.String getPymt_beg_dt() {\n\t\treturn pymt_beg_dt;\n\t}",
"public String getStartDate();",
"public int MagicDate(){\n return month = day = year = 1;\n \n }",
"public static Date ahora() {\n return ahoraCalendar().getTime();\n }",
"long getStartDate();",
"long getBeginDate();",
"com.google.type.Date getAcquireDate();",
"public Date getOriginalStart() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.OriginalStart);\n\t}",
"@Override\n\tpublic Date getStartDate() {\n\t\treturn model.getStartDate();\n\t}",
"public Date getFirstRelease() {\n return firstRelease;\n }",
"public Date getFechaIniDate(){\n Date date=new Date(fechaInicio.getTime());\n return date;\n }",
"public DTM getRxa3_DateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }",
"public Date getDATE_SETTLED() {\r\n return DATE_SETTLED;\r\n }",
"public Date() {\r\n\t\tGregorianCalendar c = new GregorianCalendar();\r\n\t\tmonth = c.get(Calendar.MONTH) + 1; // our month starts from 1\r\n\t\tday = c.get(Calendar.DAY_OF_MONTH);\r\n\t\tyear = c.get(Calendar.YEAR);\r\n\t}",
"public Timestamp getDateStart() {\n\t\treturn (Timestamp) get_Value(\"DateStart\");\n\t}",
"public java.util.Date setupSnap()\n\t{\n\t\treturn _dtSetup;\n\t}",
"public long getBeginDate() {\n return beginDate_;\n }",
"public java.sql.Date getREQ_START_DATE()\n {\n \n return __REQ_START_DATE;\n }",
"abstract Date getDefault();",
"java.lang.String getStartDate();",
"public long getBeginDate() {\n return beginDate_;\n }",
"public Date getDefaultTrialExpirationDate(){\n if(AccountType.STANDARD.equals(accountType)){\n Calendar cal = Calendar.getInstance();\n\n //setting the free trial up for standard users\n cal.add(Calendar.DATE, Company.FREE_TRIAL_LENGTH_DAYS);\n return cal.getTime();\n }\n\n return null;\n }",
"public Date getStartDate() {\r\n\t\treturn new Date(startDateText.getDay(), startDateText.getMonth()+1, startDateText.getYear());\r\n\t}",
"@Override\n protected void initialize() {\n startT = Timer.getFPGATimestamp();\n }",
"@Override\n\tpublic java.util.Date getStartDate() {\n\t\treturn _esfTournament.getStartDate();\n\t}",
"public static Date getStartupDateTime() {\r\n\t\treturn startupDateTime;\r\n\t}",
"public String getStartDate() {\n\t\treturn startDate.getText();\n\t}",
"@Override\n public Date getTransactionStartDate() {\n return traxStartDate;\n }",
"public DTM getDateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }",
"private int getDefaultCenturyStartYear() {\n\t\tif (defaultCenturyStart == null) {\n\t\t\t// not yet initialized\n\t\t\tinitializeDefaultCenturyStart(defaultCenturyBase);\n\t\t}\n\t\treturn defaultCenturyStartYear;\n\t}",
"public String Get_date() \n {\n \n return date;\n }",
"public Date getInitialActivityDate(String siteId) {\n\t\tDate date = null;\n\t\ttry{\n\t\t\tdate = siteService.getSite(siteId).getCreatedDate();\n\t\t}catch(Exception e){\n\t\t\treturn new Date(0);\n\t\t}\n\t\treturn date;\n\t}",
"public Date getActualStart()\r\n {\r\n return (m_actualStart);\r\n }",
"public Date getStartDate() {\r\n return startDate;\r\n }",
"public Date getStartDate() {\r\n return startDate;\r\n }",
"public Date getCreationDate()\n {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public LocalDate getGenDate() {\n\t\treturn genDate;\n\t}",
"public Date(){\n\t\tyear=0;\n\t\tmonth=0;\n\t\tday=0;\n\t}",
"public String getDate(){ return this.start_date;}",
"public int getStartingYear()\n {\n return 2013;\n }",
"public Date getCreationDate() {\n return m_module.getConfiguration().getCreationDate();\n }",
"public Date getStartDate() {\n return startDate;\n }",
"public Date getStartDate() {\n return startDate;\n }",
"public Date getStartDate() {\n return startDate;\n }",
"Date getStartDay();",
"@ApiModelProperty(required = false, value = \"epoch timestamp in milliseconds\")\n public Long getInitiate() {\n return initiate;\n }",
"public Date getStartDate()\r\n {\r\n return this.startDate;\r\n }",
"private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }",
"public Date getStartDate() {\n\t\treturn startDate;\n\t}",
"public Date getStartDate() {\n\t\treturn startDate;\n\t}",
"public java.util.Date getDateOfExamination(){\n return localDateOfExamination;\n }",
"@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _scienceApp.getCreateDate();\n\t}",
"public String getDefaultDate() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMMM d, yyyy\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}",
"public long getStartDate() {\n return startDate_;\n }",
"public Date getStart() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.Start);\n\t}",
"@Override\n\tpublic java.util.Date getNgayBatDau() {\n\t\treturn _keHoachKiemDemNuoc.getNgayBatDau();\n\t}",
"public TelaInicial() {\n\n boolean expirou = false;\n if(new Date().after(new Date(2020 - 1900, Calendar.JULY, 31))){\n JOptionPane.showMessageDialog(this, \"Periodo de teste acabou.\");\n expirou = true;\n }\n initComponents(expirou);\n }",
"public java.util.Date getDateInst(){\r\n return this.dateInst;\r\n }",
"public Date getStart() {\n return start;\n }",
"@JsonGetter(\"initiated_at\")\r\n public String getInitiatedAt() {\r\n return initiatedAt;\r\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }",
"public Date getElectronicStartTime() {\n return (Date)getAttributeInternal(ELECTRONICSTARTTIME);\n }"
]
| [
"0.7022776",
"0.66953045",
"0.6423966",
"0.6281863",
"0.6188251",
"0.6128163",
"0.6080153",
"0.6060747",
"0.6002195",
"0.599908",
"0.59965676",
"0.59915656",
"0.5962883",
"0.5940811",
"0.5919881",
"0.5919881",
"0.5919881",
"0.58815885",
"0.58762634",
"0.58733916",
"0.5872673",
"0.5862051",
"0.58511215",
"0.58511215",
"0.5807585",
"0.5794054",
"0.5781204",
"0.57775974",
"0.5766358",
"0.57648844",
"0.5764114",
"0.57604736",
"0.57572067",
"0.57421",
"0.57349724",
"0.5721932",
"0.5692942",
"0.5665008",
"0.5660929",
"0.56593466",
"0.5643114",
"0.5636522",
"0.56290704",
"0.5620347",
"0.56134164",
"0.56124336",
"0.5605796",
"0.5604502",
"0.56037754",
"0.55920285",
"0.55739087",
"0.5571636",
"0.55715823",
"0.5567962",
"0.5562991",
"0.55536216",
"0.5551616",
"0.5551297",
"0.5529021",
"0.55107474",
"0.5509",
"0.5508611",
"0.54902875",
"0.5484427",
"0.54824644",
"0.54801637",
"0.5477155",
"0.54729253",
"0.54729253",
"0.54707026",
"0.54623",
"0.5461711",
"0.54600775",
"0.5456784",
"0.54564965",
"0.54545134",
"0.54545134",
"0.54545134",
"0.5434912",
"0.54347855",
"0.5428791",
"0.5418362",
"0.5416852",
"0.5416852",
"0.5415299",
"0.5398047",
"0.53973883",
"0.5394596",
"0.53934413",
"0.53880095",
"0.53844434",
"0.53799933",
"0.5371868",
"0.5370036",
"0.5364805",
"0.5364805",
"0.5364805",
"0.5364805",
"0.5364805",
"0.5364805",
"0.53575104"
]
| 0.0 | -1 |
The note target for the big travel docs are the progenitor of the trip | @Override
public PersistableBusinessObject getNoteTarget() {
if (StringUtils.isBlank(getTravelDocumentIdentifier()) || isTripProgenitor()) {
// I may not even have a travel doc identifier yet, or else, I call myself the progentitor! I must be the progenitor!
return getDocumentHeader();
}
final TravelDocument rootDocument = getTravelDocumentService().getRootTravelDocumentWithoutWorkflowDocument(getTravelDocumentIdentifier());
if (rootDocument == null) {
return getDocumentHeader(); // I couldn't find a root, so once again, chances are that I am the progenitor, even though I don't believe it entirely myself
}
return rootDocument.getDocumentHeader();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDocumentNote();",
"private void setNote() {\n\t\tNoteOpt.add(\"-nd\");\n\t\tNoteOpt.add(\"/nd\");\n\t\tNoteOpt.add(\"notedetails\");\n\n\t}",
"protected String usaNote() {\n String testo = VUOTA;\n String tag = \"Note\";\n String ref = \"<references/>\";\n\n testo += LibWiki.setParagrafo(tag);\n testo += A_CAPO;\n testo += ref;\n testo += A_CAPO;\n testo += A_CAPO;\n\n return testo;\n }",
"PetriNetDoc getPetrinet();",
"public void testCreateSampleNoteForOffActn() {\n UrlInputDto urlInput = new UrlInputDto(TradeMarkDocumentTypes.TYPE_NOTE.getAlfrescoTypeName());\n urlInput.setSerialNumber(ParameterValues.VALUE_SERIAL_77777777_NUMBER.toString());\n urlInput.setFileName(\"NoteForOffActnAssoc.pdf\");\n String NOTE_CREATE_WEBSCRIPT_URL = CaseCreateUrl.returnGenericCreateUrl(urlInput);\n Map<String, String> noteParam = new HashMap<String, String>();\n noteParam.put(ParameterKeys.URL.toString(), NOTE_CREATE_WEBSCRIPT_URL);\n noteParam.put(ParameterKeys.METADATA.toString(), NoteBaseTest.VALUE_NOTE_METADATA);\n noteParam.put(ParameterKeys.CONTENT_ATTACHEMENT.toString(), NoteBaseTest.CONTENT_NOTE_TTACHMENT);\n ClientResponse response = createDocument(noteParam);\n // String str = response.getEntity(String.class);\n // System.out.println(str);\n assertEquals(201, response.getStatus());\n }",
"public void setDocumentNote (String DocumentNote);",
"public String getToRefid() {\n return targetid;\n }",
"public MainNoteComponent[] convertApproachTonesToNotes(MainNoteComponent[] partiallyCompletedNotes, List<Tone> toneList){\n\t\tChromaticNoteGenerator generator = new ChromaticNoteGenerator();\n\t\tMainNoteComponent[] fullyCompletedNotes = partiallyCompletedNotes.clone();\n\t\t\n\t\tfor (int i = 0; i < fullyCompletedNotes.length; i++) {\n\t\t\tTone tone = toneList.get(i);\n\t\t\tif (tone instanceof ApproachTone) {\n\t\t\t\tMainNoteComponent approachNote;\n\t\t\t\tif (i == fullyCompletedNotes.length-1){ \n\t\t\t\t\t//if the approach tone is at the end of a phrase then we use the previous note to work out the \n\t\t\t\t\t//next approach tone\n\t\t\t\t\t//this may be a rest tone in fact, which causes errors as we can't get approach tones for rest notes\n\t\t\t\t\tint indexDec = 1;\n\t\t\t\t\tMainNoteComponent previousNote = fullyCompletedNotes[i-indexDec];\n\t\t\t\t\twhile(previousNote.getBasicNote().equals(BasicNote.rest())){\n\t\t\t\t\t\tindexDec++;\n\t\t\t\t\t\tpreviousNote = fullyCompletedNotes[i-indexDec];\n\t\t\t\t\t}\n\t\t\t\t\tList<MainNoteComponent> approachNotes = generator.getChromaticUpAndDown(previousNote);\n\t\t\t\t\tint randIndex = RandomListIndexPicker.pickRandomIndex(approachNotes);\n\t\t\t\t\tapproachNote = approachNotes.get(randIndex);\n\t\t\t\t}\n\t\t\t\telse if (i == 0) {\n\t\t\t\t\t//if the approach tone is at the beginning, then we can only use the next note\n\t\t\t\t\tMainNoteComponent nextNote = fullyCompletedNotes[i+1];\n\t\t\t\t\tList<MainNoteComponent> approachNotes = generator.getChromaticUpAndDown(nextNote);\n\t\t\t\t\tint randIndex = RandomListIndexPicker.pickRandomIndex(approachNotes);\n\t\t\t\t\tapproachNote = approachNotes.get(randIndex);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//else we look at the next note always, but we can use the previous note to decided where we want to approach from\n\t\t\t\t\tMainNoteComponent previousNote = fullyCompletedNotes[i-1];\n\t\t\t\t\tMainNoteComponent nextNote = fullyCompletedNotes[i+1];\n\t\t\t\t\tif (previousNote.isLowerThan(nextNote)){\n\t\t\t\t\t\tapproachNote = generator.getOneChromaticNoteDown(nextNote);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tapproachNote = generator.getOneChromaticNoteUp(nextNote);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfullyCompletedNotes[i] = approachNote;\n\t\t\t}\n\t\t}\n\t\treturn fullyCompletedNotes;\n\t}",
"@Override\n\tpublic GalaxyNote detail(GalaxyNote galaxynote) {\n\t\treturn null;\n\t}",
"public Map<Tone, Prefix> getNotes() {\n return notes;\n }",
"public int getToDocType ()\n {\n return this.toDocType;\n }",
"public String getNote()\n {\n return note;\n }",
"public Note getNote() {\n\t \n\t //returns the objected stored in the note field\n\t return this.note;\n }",
"public String getNote(){\r\n\t\treturn note;\r\n\t}",
"public String getNote() {\r\n return note; \r\n }",
"public String getNote() {\r\n return note;\r\n }",
"public String getNote() {\r\n return note;\r\n }",
"public void setNote(String note) {\r\n this.note = note; \r\n }",
"java.lang.String getNotes();",
"java.lang.String getNotes();",
"String get_note()\n {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"@Test//ExSkip\n public void fieldNoteRef() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Create a bookmark with a footnote that the NOTEREF field will reference.\n insertBookmarkWithFootnote(builder, \"MyBookmark1\", \"Contents of MyBookmark1\", \"Footnote from MyBookmark1\");\n\n // This NOTEREF field will display the number of the footnote inside the referenced bookmark.\n // Setting the InsertHyperlink property lets us jump to the bookmark by Ctrl + clicking the field in Microsoft Word.\n Assert.assertEquals(\" NOTEREF MyBookmark2 \\\\h\",\n insertFieldNoteRef(builder, \"MyBookmark2\", true, false, false, \"Hyperlink to Bookmark2, with footnote number \").getFieldCode());\n\n // When using the \\p flag, after the footnote number, the field also displays the bookmark's position relative to the field.\n // Bookmark1 is above this field and contains footnote number 1, so the result will be \"1 above\" on update.\n Assert.assertEquals(\" NOTEREF MyBookmark1 \\\\h \\\\p\",\n insertFieldNoteRef(builder, \"MyBookmark1\", true, true, false, \"Bookmark1, with footnote number \").getFieldCode());\n\n // Bookmark2 is below this field and contains footnote number 2, so the field will display \"2 below\".\n // The \\f flag makes the number 2 appear in the same format as the footnote number label in the actual text.\n Assert.assertEquals(\" NOTEREF MyBookmark2 \\\\h \\\\p \\\\f\",\n insertFieldNoteRef(builder, \"MyBookmark2\", true, true, true, \"Bookmark2, with footnote number \").getFieldCode());\n\n builder.insertBreak(BreakType.PAGE_BREAK);\n insertBookmarkWithFootnote(builder, \"MyBookmark2\", \"Contents of MyBookmark2\", \"Footnote from MyBookmark2\");\n\n doc.updatePageLayout();\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.NOTEREF.docx\");\n testNoteRef(new Document(getArtifactsDir() + \"Field.NOTEREF.docx\")); //ExSkip\n }",
"public int getC_DocTypeTarget_ID();",
"TrgPlace getTarget();",
"public String getNote() {\n\t\treturn _note;\n\t}",
"public void setNote(String note) {\r\n this.note = note;\r\n }",
"public String getNote()\n\t{\n\t\treturn note;\n\t}",
"public Double getNote()\r\n {\r\n return note;\r\n }",
"@Override\r\n\t\t\t\t\tpublic void sendNoteOn(NoteOn noteOn) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"public void setNote(String note) {\n this.note = note;\n }",
"public void setNote(String note) {\n this.note = note;\n }",
"public void setNote(String note) {\n this.note = note;\n }",
"public void setNote(String note) {\n this.note = note;\n }",
"public void setNote(String note) {\n this.note = note;\n }",
"@ApiModelProperty(value = \"Optional additional notes to supplement the Tier Band details\")\n\n\n public List<String> getNotes() {\n return notes;\n }",
"public String getTarget()\r\n\t{\r\n\t\treturn _target;\r\n\t}",
"public String getProposal() {\n return proposal;\n }",
"public int getNoteType() {\n return noteType;\n }",
"String getMyNoteText(MyNoteDto usernote, boolean abbreviated);",
"public static List<Target> createTargetsWithPauses(Relation segs) {\r\n List<Target> targets = new ArrayList<Target>();\r\n \r\n boolean first = true;\r\n Item s = segs.getHead();\r\n Voice v = FreeTTSVoices.getMaryVoice(s.getUtterance().getVoice());\r\n String silenceSymbol = v.sampa2voice(\"_\");\r\n Target lastTarget = null;\r\n Item lastItem = s;\r\n for (; s != null; s = s.getNext()) {\r\n Element maryxmlElement = (Element) s.getFeatures().getObject(\"maryxmlElement\");\r\n //create next target\r\n String segName = s.getFeatures().getString(\"name\");\r\n Target nextLeftTarget = new HalfPhoneTarget(segName+\"_L\", maryxmlElement, s, true); \r\n Target nextRightTarget = new HalfPhoneTarget(segName+\"_R\", maryxmlElement, s, false);\r\n //if first target is not a pause, add one\r\n if (first){\r\n first = false;\r\n //if (! segName.equals(silenceSymbol)){\r\n if (! nextLeftTarget.isSilence()){\r\n //System.out.println(\"Adding two pause targets: \"\r\n // +silenceSymbol+\"_L and \"\r\n // +silenceSymbol+\"_R\");\r\n //build new pause item\r\n Item newPauseItem = s.prependItem(null);\r\n newPauseItem.getFeatures().setString(\"name\", silenceSymbol);\r\n \r\n //add new targets for item\r\n targets.add(new HalfPhoneTarget(silenceSymbol+\"_L\", null, newPauseItem, true)); \r\n targets.add(new HalfPhoneTarget(silenceSymbol+\"_R\", null, newPauseItem, false));\r\n }\r\n }\r\n targets.add(nextLeftTarget);\r\n targets.add(nextRightTarget);\r\n lastTarget = nextRightTarget;\r\n lastItem = s;\r\n } \r\n if (! lastTarget.isSilence()){\r\n //System.out.println(\"Adding pause target \"\r\n // +silenceSymbol);\r\n //build new pause item\r\n Item newPauseItem = lastItem.appendItem(null);\r\n newPauseItem.getFeatures().setString(\"name\", silenceSymbol);\r\n \r\n //add new targets for item\r\n targets.add(new HalfPhoneTarget(silenceSymbol+\"_L\", null, newPauseItem, true)); \r\n targets.add(new HalfPhoneTarget(silenceSymbol+\"_R\", null, newPauseItem, false));\r\n }\r\n return targets;\r\n }",
"protected void addNotes(AccountsPayableDocument accountsPayableDocument, PaymentDetail paymentDetail) {\r\n int count = 1;\r\n\r\n if (accountsPayableDocument instanceof PaymentRequestDocument) {\r\n PaymentRequestDocument prd = (PaymentRequestDocument) accountsPayableDocument;\r\n\r\n if (prd.getSpecialHandlingInstructionLine1Text() != null) {\r\n PaymentNoteText pnt = new PaymentNoteText();\r\n pnt.setCustomerNoteLineNbr(new KualiInteger(count++));\r\n pnt.setCustomerNoteText(prd.getSpecialHandlingInstructionLine1Text());\r\n paymentDetail.addNote(pnt);\r\n }\r\n\r\n if (prd.getSpecialHandlingInstructionLine2Text() != null) {\r\n PaymentNoteText pnt = new PaymentNoteText();\r\n pnt.setCustomerNoteLineNbr(new KualiInteger(count++));\r\n pnt.setCustomerNoteText(prd.getSpecialHandlingInstructionLine2Text());\r\n paymentDetail.addNote(pnt);\r\n }\r\n\r\n if (prd.getSpecialHandlingInstructionLine3Text() != null) {\r\n PaymentNoteText pnt = new PaymentNoteText();\r\n pnt.setCustomerNoteLineNbr(new KualiInteger(count++));\r\n pnt.setCustomerNoteText(prd.getSpecialHandlingInstructionLine3Text());\r\n paymentDetail.addNote(pnt);\r\n }\r\n }\r\n\r\n if (accountsPayableDocument.getNoteLine1Text() != null) {\r\n PaymentNoteText pnt = new PaymentNoteText();\r\n pnt.setCustomerNoteLineNbr(new KualiInteger(count++));\r\n pnt.setCustomerNoteText(accountsPayableDocument.getNoteLine1Text());\r\n paymentDetail.addNote(pnt);\r\n }\r\n\r\n if (accountsPayableDocument.getNoteLine2Text() != null) {\r\n PaymentNoteText pnt = new PaymentNoteText();\r\n pnt.setCustomerNoteLineNbr(new KualiInteger(count++));\r\n pnt.setCustomerNoteText(accountsPayableDocument.getNoteLine2Text());\r\n paymentDetail.addNote(pnt);\r\n }\r\n\r\n if (accountsPayableDocument.getNoteLine3Text() != null) {\r\n PaymentNoteText pnt = new PaymentNoteText();\r\n pnt.setCustomerNoteLineNbr(new KualiInteger(count++));\r\n pnt.setCustomerNoteText(accountsPayableDocument.getNoteLine3Text());\r\n paymentDetail.addNote(pnt);\r\n }\r\n\r\n PaymentNoteText pnt = new PaymentNoteText();\r\n pnt.setCustomerNoteLineNbr(new KualiInteger(count++));\r\n pnt.setCustomerNoteText(\"Sales Tax: \" + accountsPayableDocument.getTotalRemitTax());\r\n }",
"public static Annotation ruleResolvePronoun(Annotation[] basenps, int num, Document doc)\r\n{\n Annotation np2 = basenps[num];\r\n // Get some properties of the np\r\n FeatureUtils.PRTypeEnum type2 = Pronoun.getValue(np2, doc);\r\n String str2 = doc.getAnnotString(np2);\r\n boolean reflexive = FeatureUtils.isReflexive(str2);\r\n // Get the possible antecedents\r\n ArrayList<Annotation> antes = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums = new ArrayList<Integer>();\r\n if (DEBUG) {\r\n System.err.println(\"Pronoun: \" + doc.getAnnotText(np2));\r\n }\r\n if (FeatureUtils.getPronounPerson(str2) == PersonPronounTypeEnum.FIRST) {\r\n if (NumberEnum.SINGLE.equals(Number.getValue(np2, doc)))\r\n return ruleResolvePronounI(np2, basenps, num, doc);\r\n else\r\n return ruleResolvePronounWe(np2, basenps, num, doc);\r\n }\r\n if (FeatureUtils.getPronounPerson(str2) == PersonPronounTypeEnum.SECOND)\r\n return ruleResolvePronounYou(np2, basenps, num, doc);\r\n else {\r\n int sentnum = 0;\r\n for (int i = num - 1; i >= 0 && sentnum <= 3; i--) {\r\n Annotation np1 = basenps[i];\r\n sentnum = sentNum(np1, np2, doc);\r\n if (DEBUG) {\r\n System.err.println(\"Possible antecedent: \" + i + \" :\" + doc.getAnnotText(np1));\r\n }\r\n if (!isNumberIncompatible(np1, np2, doc) && !isGenderIncompatible(np1, np2, doc)\r\n && !isAnimacyIncompatible(np1, np2, doc) && isWNClassComp(np1, np2, doc) && isProComp(np1, np2, doc)\r\n && !Embedded.getValue(np1, doc) && isSyntax(np1, np2, doc)) {\r\n if (DEBUG) {\r\n System.err.println(\"Candidate antecedent: \" + i + \" :\" + doc.getAnnotText(np1));\r\n }\r\n antes.add(0, np1);\r\n nums.add(0, i);\r\n }\r\n }\r\n }\r\n if (antes.size() == 0) return null;\r\n // Check for reflexsives\r\n if (FeatureUtils.isReflexive(doc.getAnnotText(np2))) {\r\n union(nums.get(nums.size() - 1).intValue(), num);\r\n return antes.get(antes.size() - 1);\r\n }\r\n if (antes.size() == 1) {\r\n // Rule 1: Unique in discourse\r\n if (DEBUG) {\r\n System.err.println(\"Rule 1 match!!!\");\r\n }\r\n union(nums.get(0).intValue(), num);\r\n return antes.get(0);\r\n }\r\n // Rule 2: Reflexive -- the last possible antecedent\r\n if (reflexive) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 2 match!!!\");\r\n }\r\n union(nums.get(nums.size() - 1).intValue(), num);\r\n return antes.get(antes.size() - 1);\r\n }\r\n // Rule 3: Unique current + Prior\r\n ArrayList<Annotation> antes1 = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums1 = new ArrayList<Integer>();\r\n int counter = 0;\r\n for (Annotation np1 : antes) {\r\n if (sentNum(np1, np2, doc) < 2) {\r\n antes1.add(np1);\r\n nums1.add(nums.get(counter));\r\n }\r\n counter++;\r\n }\r\n if (antes1.size() == 1) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 3 match!!!\");\r\n }\r\n union(nums1.get(0).intValue(), num);\r\n return antes1.get(0);\r\n }\r\n // Rule 4: Possesive Pro\r\n\r\n if (FeatureUtils.isPossesive(str2) && antes1.size() > 0) {\r\n Integer found = null;\r\n Annotation ant = null;\r\n boolean multiple = false;\r\n for (int i = 0; i < antes1.size() && !multiple; i++) {\r\n Annotation np1 = antes1.get(i);\r\n if (doc.getAnnotText(np1).equalsIgnoreCase(str2) && sentNum(np1, np2, doc) == 1) {\r\n if (found == null) {\r\n found = nums1.get(i);\r\n ant = antes1.get(i);\r\n }\r\n else {\r\n multiple = true;\r\n }\r\n }\r\n }\r\n if (!multiple && found != null) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 4 match!!!\");\r\n }\r\n union(found.intValue(), num);\r\n return ant;\r\n }\r\n }\r\n // Rule #5: Unique in the current sentence\r\n ArrayList<Annotation> antes2 = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums2 = new ArrayList<Integer>();\r\n counter = 0;\r\n for (Annotation np1 : antes1) {\r\n if (sentNum(np1, np2, doc) < 1) {\r\n antes2.add(np1);\r\n nums2.add(nums1.get(counter));\r\n }\r\n counter++;\r\n }\r\n if (antes2.size() == 1) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 5 match!!!\");\r\n }\r\n union(nums2.get(0).intValue(), num);\r\n return antes2.get(0);\r\n }\r\n // Extra Rule: Unique in the current clause (or parent clauses\r\n AnnotationSet parse = doc.getAnnotationSet(Constants.PARSE);\r\n Annotation clause = SyntaxUtils.getClause(np2, parse);\r\n while (clause != null) {\r\n ArrayList<Annotation> antes3 = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums3 = new ArrayList<Integer>();\r\n counter = 0;\r\n for (Annotation np1 : antes2) {\r\n if (clause.covers(np1)) {\r\n antes3.add(np1);\r\n nums3.add(nums2.get(counter));\r\n }\r\n counter++;\r\n }\r\n if (DEBUG) {\r\n System.err.println(antes3.size() + \" antecedents in the clause\");\r\n }\r\n if (antes3.size() == 1) {\r\n if (DEBUG) {\r\n System.err.println(\"Clause rule match!!!\");\r\n }\r\n union(nums3.get(0).intValue(), num);\r\n return antes3.get(0);\r\n }\r\n clause = SyntaxUtils.getParentClause(clause, parse);\r\n }\r\n\r\n // Rule #6: Unique Subject\r\n\r\n // //Look for the subject in the current sentence\r\n // boolean unique = true;\r\n // Annotation subject = null;\r\n // Integer subjectNum = null;\r\n // for(int i=antes.size()-1; i>=0; i--){\r\n // Annotation np1 = antes.get(i);\r\n // if(sentNum(np1, np2, annotations, text)==0){\r\n // if(FeatureUtils.getGramRole(np1, annotations, text).equals(\"SUBJECT\")){\r\n // //&&SyntaxUtils.isMainClause(np1, parse)){\r\n // if(DEBUG)\r\n // System.err.println(\"Rule 6 match!!!\");\r\n // if(subjectNum!=null)\r\n // unique=false;\r\n // subjectNum = nums.get(i);\r\n // subject = antes.get(i);\r\n // }\r\n // }\r\n // }\r\n\r\n // if(subject!=null&&unique){\r\n // union(subjectNum.intValue(), num);\r\n // return subject;\r\n // }\r\n\r\n // Look for the subject in the previous sentence\r\n boolean unique = true;\r\n Annotation subject = null;\r\n Integer subjectNum = null;\r\n if (GramRole.getValue(np2, doc).equals(\"SUBJECT\")) {\r\n // &&SyntaxUtils.isMainClause(np2, parse)){\r\n for (int i = antes.size() - 1; i >= 0; i--) {\r\n Annotation np1 = antes.get(i);\r\n if (sentNum(np1, np2, doc) == 1) {\r\n if (GramRole.getValue(np1, doc).equals(\"SUBJECT\")) {\r\n // &&SyntaxUtils.isMainClause(np1, parse)){\r\n if (DEBUG) {\r\n System.err.println(\"Rule 6 match!!!\");\r\n }\r\n if (subjectNum != null) {\r\n unique = false;\r\n }\r\n subjectNum = nums.get(i);\r\n subject = antes.get(i);\r\n }\r\n }\r\n }\r\n }\r\n if (subject != null && unique) {\r\n union(subjectNum.intValue(), num);\r\n return subject;\r\n }\r\n subjectNum = null;\r\n subject = null;\r\n\r\n // One more Rule -- assign possessive pronouns to the last subject\r\n if (type2.equals(FeatureUtils.PRTypeEnum.POSSESSIVE)) {\r\n for (int i = antes.size() - 1; i >= 0; i--) {\r\n Annotation np1 = antes.get(i);\r\n if (sentNum(np1, np2, doc) == 0) {\r\n if (GramRole.getValue(np1, doc).equals(\"SUBJECT\")) {\r\n // &&SyntaxUtils.isMainClause(np1, parse)){\r\n if (DEBUG) {\r\n System.err.println(\"Rule 6a match!!!\");\r\n }\r\n if (subject == null) {\r\n subjectNum = nums.get(i);\r\n subject = antes.get(i);\r\n }\r\n }\r\n }\r\n }\r\n if (subject != null) {\r\n union(subjectNum.intValue(), num);\r\n return subject;\r\n }\r\n }\r\n\r\n return null;\r\n}",
"@Override\n\tpublic String getNotes() {\n\t\treturn text;\n\t}",
"public void setNote(String note) {\r\n\r\n this.note = note;\r\n }",
"public void setNotes(String notes) {\n this.notes = notes;\n }",
"public String getNote() {\n\t\treturn note;\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Extra notes about this deposit transaction\")\n @JsonProperty(JSON_PROPERTY_NOTES)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getNotes() {\n return notes;\n }",
"public void testCreateOfficeActionWithNoteAssoc() {\n UrlInputDto urlInput = new UrlInputDto(TradeMarkDocumentTypes.TYPE_OFFICE_ACTION.getAlfrescoTypeName());\n urlInput.setSerialNumber(ParameterValues.VALUE_SERIAL_77777777_NUMBER.toString());\n urlInput.setFileName(VALUE_OFFACTN_FILE_NAME_TWO);\n String OFFICEACTION_CREATE_WEBSCRIPT_URL = CaseCreateUrl.returnGenericCreateUrl(urlInput);\n Map<String, String> offActnParam = new HashMap<String, String>();\n offActnParam.put(ParameterKeys.URL.toString(), OFFICEACTION_CREATE_WEBSCRIPT_URL);\n offActnParam.put(ParameterKeys.METADATA.toString(), VALUE_OFFICEACTION_METADATA_THREE);\n offActnParam.put(ParameterKeys.CONTENT_ATTACHEMENT.toString(), OfficeActionBaseTest.CONTENT_OFFICEACTION_ATTACHMENT);\n ClientResponse response = createDocument(offActnParam);\n // String str = response.getEntity(String.class);\n // System.out.println(str);\n // assertEquals(403, response.getStatus());\n // After New Framework changes its returning 400. We can change to 403\n // if this is an issue.\n assertEquals(400, response.getStatus());\n }",
"void setNote(int note) {\n\t\tthis.note = note;\n\t}",
"protected List<Target> overridableCreateTargetsWithPauses(Relation segs)\r\n {\r\n return HalfPhoneTargetFeatureLister.createTargetsWithPauses(segs);\r\n }",
"public String getNotes() {\n return notes;\n }",
"public com.commercetools.api.models.common.Reference getTarget() {\n return this.target;\n }",
"public void setNotes(String notes) {\n\tthis.notes = notes;\n}",
"public String getTarget() {\n return this.target;\n }",
"public String toString ()\n {\n return _refCount == 0 ? _goal.toString()\n : super.toString() + \": (residuation) refs => \" + _refCount\n + \", goal => \" + _goal;\n }",
"public String getNotes() {\n return notes;\n }",
"public String getGoodsNote() {\n return goodsNote;\n }",
"public String getNotes() {\n\treturn notes;\n}",
"public Notes() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"Ontology getTargetOntology();",
"trinsic.services.common.v1.CommonOuterClass.JsonPayload getProofDocument();",
"trinsic.services.common.v1.CommonOuterClass.JsonPayload getProofDocument();",
"protected void createNewDocumentNote(NoteData newNote) {\n /**\n * get data from the server about tags\n */\n String url = globalVariable.getConfigurationData().getServerURL()\n + globalVariable.getConfigurationData().getApplicationInfixURL()\n + globalVariable.getConfigurationData().getRestDocumentAddNotesURL();\n Log.i(LOG_TAG, \"REST - create new doc notes - call: \" + url);\n\n String postBody = RESTUtils.getJSON(newNote);\n\n AppCompatActivity activity = (AppCompatActivity)getActivity();\n RESTUtils.executePOSTNoteCreationRequest(url, postBody, null, \"\", globalVariable, DocumentTaggingActivity.PROPERTY_BAG_KEY, activity);\n\n // mDataArray = TagItemDataHelper.getAlphabetData();\n }",
"public static void explain(boolean[][] docThetaCoeff){\n \t\n System.out.println(\"\\n\\n Document--Topic Associations, Theta[k][d]\\n\\n\");\n \n \tint docLen = docThetaCoeff.length; \n \tint topicNum = docThetaCoeff[0].length;\n \t\n \tfor(int i = 0; i < docLen; i++){\n \t\tSystem.out.print(\"No [\" + i + \"] topic high coefficiency docs are : \");\n \t\tfor(int j = 0; j < topicNum; j++){\n \t\t\tSystem.out.print(docThetaCoeff[i][j] + \" \");\n \t\t}\n \t\tSystem.out.println();\n \t}\n \t\n \tSystem.out.println();\n }",
"public void setNotes(String notes) {\n\t\tthis.notes = notes;\r\n\t}",
"public String getTarget() {\n return target;\n }",
"public String getTarget() {\n return target;\n }",
"public void setNote(String note) {\n\t\tthis.note = note;\n\t}",
"String getProcessingInstructionTarget(Object pi);",
"String getNotes();",
"public String getNotes();",
"boolean getNotes();",
"List<Verse> getVersesWithNotesInPassage(Key passage);",
"protected void setHasNote(boolean b) {\n\t\tthis.hasNote = true;\n\t}",
"public String notes() {\n return this.innerProperties() == null ? null : this.innerProperties().notes();\n }",
"@Test\n\tpublic void findQCIndividualNotesTest(){\n//\t\tlog.trace(\"GETTING individual notes by Trainee\");\n\t\tfinal short weekNum = 2;\n\t\t\n\t\t// get notes\n\t\tList<Note> notes = noteDao.findQCIndividualNotes(TEST_TRAINEE_ID, weekNum);\n\t\t\n\t\t// compare with expected\n\t\tassertEquals(notes.size(),1);\n\t\tassertEquals(notes.get(0).getContent(),\"technically weak on SQL.\");\n\t}",
"public void setNotes(String notes) {\n\t\tthis.notes = notes;\n\t}",
"public Path getProposalPath() { return proposalPath; }",
"public MyNoteDto getCurrentMyNoteDto();",
"List<ComplainNoteDO> selectByExample(ComplainNoteDOExample example);",
"public void setNotes(com.sforce.soap.enterprise.QueryResult notes) {\r\n this.notes = notes;\r\n }",
"public void setNote(Note newNote) {\n\t \n\t //stores newNote in the note field\n\t this.note = newNote;\n }",
"@Test\n public void noteRef() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n builder.write(\"CrossReference: \");\n\n FieldNoteRef field = (FieldNoteRef)builder.insertField(FieldType.FIELD_NOTE_REF, false); // <--- don't update field\n field.setBookmarkName(\"CrossRefBookmark\");\n field.setInsertHyperlink(true);\n field.setInsertReferenceMark(true);\n field.setInsertRelativePosition(false);\n builder.writeln();\n\n builder.startBookmark(\"CrossRefBookmark\");\n builder.write(\"Hello world!\");\n builder.insertFootnote(FootnoteType.FOOTNOTE, \"Cross referenced footnote.\");\n builder.endBookmark(\"CrossRefBookmark\");\n builder.writeln();\n\n doc.updateFields();\n\n // This field works only in older versions of Microsoft Word.\n doc.save(getArtifactsDir() + \"Field.NOTEREF.doc\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.NOTEREF.doc\");\n field = (FieldNoteRef)doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_NOTE_REF, \" NOTEREF CrossRefBookmark \\\\h \\\\f\", \"1\", field);\n TestUtil.verifyFootnote(FootnoteType.FOOTNOTE, true, null, \"Cross referenced footnote.\",\n (Footnote)doc.getChild(NodeType.FOOTNOTE, 0, true));\n }",
"public void setGoodsNote(String goodsNote) {\n this.goodsNote = goodsNote;\n }",
"@Override\n\tpublic void detail(GalaxyNote phone) {\n\t\t\n\t}",
"public boolean isNote() {\n return this.type == Type.NOTE;\n }",
"@Override\n\tpublic TextNote getTextNote(TextNote note) {\n\t\tif (note == null) return note;\n\t\t\n\t\tList<TextNote> noteList = repository.findAll();\n\t\tint listIndex = noteList.indexOf(note);\n\t\treturn noteList.get(listIndex);\n\t}",
"trinsic.services.common.v1.CommonOuterClass.JsonPayloadOrBuilder getProofDocumentOrBuilder();",
"trinsic.services.common.v1.CommonOuterClass.JsonPayloadOrBuilder getProofDocumentOrBuilder();"
]
| [
"0.54723215",
"0.54686534",
"0.5369139",
"0.51656526",
"0.51377386",
"0.50502867",
"0.5041249",
"0.5004424",
"0.5004259",
"0.4958785",
"0.48586383",
"0.4855084",
"0.4850457",
"0.4848502",
"0.48416504",
"0.4823668",
"0.4823668",
"0.48225048",
"0.4809308",
"0.4809308",
"0.47848508",
"0.47787702",
"0.47787702",
"0.47787702",
"0.47787702",
"0.47787702",
"0.47787702",
"0.47787702",
"0.47787702",
"0.47787702",
"0.47787702",
"0.47787702",
"0.47769526",
"0.4754867",
"0.47545677",
"0.47308147",
"0.47291827",
"0.47148404",
"0.47032854",
"0.47008586",
"0.47001818",
"0.47001818",
"0.47001818",
"0.47001818",
"0.47001818",
"0.46993524",
"0.46957728",
"0.4685592",
"0.46761304",
"0.4668606",
"0.46665516",
"0.46616337",
"0.46533218",
"0.4653029",
"0.4650538",
"0.46399847",
"0.46389192",
"0.4638455",
"0.46370175",
"0.46055973",
"0.459899",
"0.45916173",
"0.4580968",
"0.45800272",
"0.4571867",
"0.45677206",
"0.45660326",
"0.4564729",
"0.455477",
"0.45444426",
"0.45394388",
"0.45382962",
"0.45382962",
"0.45353755",
"0.45343518",
"0.45302853",
"0.45270622",
"0.45270622",
"0.45247462",
"0.4515128",
"0.45132518",
"0.45043093",
"0.450275",
"0.44983414",
"0.44962543",
"0.44961905",
"0.44958645",
"0.44918585",
"0.44902378",
"0.44886008",
"0.4488317",
"0.4484849",
"0.44829497",
"0.44802952",
"0.44729692",
"0.44670415",
"0.44661033",
"0.44625056",
"0.4461958",
"0.4461958"
]
| 0.6625741 | 0 |
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting | int countByExample(ReviewLevelSettingExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResultMap\")\r\n ReviewLevelSetting selectByPrimaryKey(String id);",
"@Insert({\r\n \"insert into `review_level_setting` (`id`, `ops_op`, \",\r\n \"`ops_op_label`, `ops_op_level`, \",\r\n \"`created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, \",\r\n \"`del_flg`)\",\r\n \"values (#{id,jdbcType=VARCHAR}, #{opsOp,jdbcType=VARCHAR}, \",\r\n \"#{opsOpLabel,jdbcType=VARCHAR}, #{opsOpLevel,jdbcType=VARCHAR}, \",\r\n \"#{createdBy,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, \",\r\n \"#{updatedBy,jdbcType=VARCHAR}, #{updatedAt,jdbcType=TIMESTAMP}, \",\r\n \"#{delFlg,jdbcType=VARCHAR})\"\r\n })\r\n int insert(ReviewLevelSetting record);",
"List<ReviewLevelSetting> selectByExample(ReviewLevelSettingExample example);",
"@Update({\r\n \"update `review_level_setting`\",\r\n \"set `ops_op` = #{opsOp,jdbcType=VARCHAR},\",\r\n \"`ops_op_label` = #{opsOpLabel,jdbcType=VARCHAR},\",\r\n \"`ops_op_level` = #{opsOpLevel,jdbcType=VARCHAR},\",\r\n \"`created_by` = #{createdBy,jdbcType=VARCHAR},\",\r\n \"`created_at` = #{createdAt,jdbcType=TIMESTAMP},\",\r\n \"`updated_by` = #{updatedBy,jdbcType=VARCHAR},\",\r\n \"`updated_at` = #{updatedAt,jdbcType=TIMESTAMP},\",\r\n \"`del_flg` = #{delFlg,jdbcType=VARCHAR}\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int updateByPrimaryKey(ReviewLevelSetting record);",
"public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}",
"int insertSelective(ReviewLevelSetting record);",
"int updateByPrimaryKeySelective(ReviewLevelSetting record);",
"public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }",
"public void setLevel(String level);",
"public Integer getLevelId() {\n return levelId;\n }",
"public void setLevel(String level){\n\t\tthis.level = level;\n\t}",
"protected void setLevel(int level){\r\n this.level = level;\r\n }",
"public void setLevel(int newlevel)\n {\n level = newlevel; \n }",
"public void setLevel(int level){\n\t\tthis.level = level;\n\t}",
"public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }",
"public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}",
"@Delete({\r\n \"delete from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int deleteByPrimaryKey(String id);",
"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 }",
"public void setMapLevel(String maptyp, int level) {\n\t\tprefs.putInt(title + \".\" + maptyp, level);\n\t}",
"public void setLevelId(Integer levelId) {\n this.levelId = levelId;\n }",
"public String getLevelId() {\n return levelId;\n }",
"public void setLevelLimit(Integer levelLimit) {\n\t\tthis.levelLimit = levelLimit;\r\n\t}",
"public void setLevel(int level) {\n \t\tthis.level = level;\n \t}",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}",
"public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}",
"protected void setLevel(int level)\n {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"int updateByExample(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public int getLevelNo() {\n return levelNo;\n }",
"public int getLevel(){\n return level;\n }",
"public int getLevel(){\n return level;\n }",
"@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();",
"@Override\n public void onCreate(SQLiteDatabase db) { db.execSQL(\"create table vanyrLevel(lvl int(1));\"); }",
"public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}",
"int getGoalConfigLevelValue();",
"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 int getLevel()\n {\n return level; \n }",
"public void setLevel(String lev) {\n\t\tlevel = lev;\n\t}",
"public void setLevelId(String levelId) {\n this.levelId = levelId;\n }",
"int updateByExampleSelective(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public String getLevel ()\n {\n return level;\n }",
"public int getLevel(){\n\t\treturn level;\n\t}",
"public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}",
"public void setLevel(int v)\n {\n m_level = v;\n }",
"protected int getLevel(){\r\n return this.level;\r\n }",
"public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel() { \r\n\t\treturn level; \r\n\t}",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public RiskLevelSelectionModel() {\n\n // get the risk levels\n Set<RiskLevel> riskLevelSet = AgilePlanningObjectFactory.getStoryService().findAllRiskLevel();\n \n // put the risk levels in a list\n riskLevels = new ArrayList<RiskLevel>(riskLevelSet);\n \n }",
"public String newSaveLevel() {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\ttry {\n\t\t\tif (mappingId == null || mappingId == 0) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t/**\n\t\t\t * check Cac muc trong nhom phai co so luong/so tien khac nhau.\n\t\t\t * Khong the muc 1 la 1A, 2B muc 2 cung la 1A, 2B\n\t\t\t */\n\t\t\t//trung nguyen\n\t\t\tList<ExMapping> lstSubCheck = listSubLevelMua;\n\t\t\tInteger checkLevel = 0;\n\t\t\tProductGroup pg = promotionProgramMgr.getrecursive(groupMuaId);\n\t\t\tint recursive = pg.getRecursive();\n\t\t\tint sizeGroupLevel = promotionProgramMgr.getSize(groupMuaId).size();\n\t\t\tboolean isFlag = false;\n\t\t\tif (sizeGroupLevel > 0){\n\t\t\t\tfor (int i = 0; i< sizeGroupLevel; i++){\n\t\t\t\t\tInteger conditionGroupLevel = promotionProgramMgr.getSize(groupMuaId).get(i).getCondition();\n\t\t\t\t\tif (conditionGroupLevel != null){\n\t\t\t\t\t\tisFlag = true;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(\"ZV21\".equals(typeCode) || \"ZV20\".equals(typeCode)){\n\t\t\t\tif(recursive==1){\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tif (isFlag == false && sizeGroupLevel > 2){\n\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstSubCheck = listSubLevelGroupZV192021;\n\t\t\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif (sizeGroupLevel > 1 && isFlag){\n\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tcheckLevel = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t}\n\t\t\tif (checkLevel == 1) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.exist\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 2) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 3) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.value.not.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tMap<String, Object> returnMap = promotionProgramMgr.newSaveSublevel(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t//Map<String, Object> returnMapGroupZv192021 = promotionProg\tramMgr.newSaveGroupZV192021(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t\n\t\t\tresult.put(ERROR, false);\n\t\t\tif (returnMap.get(\"listSubLevelMua\") != null) {\n\t\t\t\tresult.put(\"listSubLevelMua\", returnMap.get(\"listSubLevelMua\"));\n\t\t\t}\n\t\t\tif (returnMap.get(\"listSubLevelKM\") != null) {\n\t\t\t\tresult.put(\"listSubLevelKM\", returnMap.get(\"listSubLevelKM\"));\n\t\t\t}\n\t\t\tif (mappingId != null) {\n\t\t\t\tGroupMapping mapping = promotionProgramMgr.getGroupMappingById(mappingId);\n\t\t\t\tif (mapping != null && mapping.getPromotionGroup() != null && mapping.getPromotionGroup().getPromotionProgram() != null) {\n\t\t\t\t\tPromotionProgram program = mapping.getPromotionGroup().getPromotionProgram();\n\t\t\t\t\tpromotionProgramMgr.updateMD5ValidCode(program, getLogInfoVO());\n\t\t\t\t\tif (mapping.getSaleGroup() != null) {\n\t\t\t\t\t\tpromotionProgramMgr.updateGroupLevelOrderNumber(program.getId(), mapping.getSaleGroup().getId(), getLogInfoVO());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IllegalArgumentException ie) {\n\t\t\tString msg = ie.getMessage();\n\t\t\tif (msg != null) {\n\t\t\t\tif (msg.contains(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS)) {\n\t\t\t\t\tint idx = msg.indexOf(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS);\n\t\t\t\t\tif (idx > -1) {\n\t\t\t\t\t\tString err = msg.substring(idx);\n\t\t\t\t\t\terr = err.replace(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS, \"\");\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.product.in.product.groups\", err));\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t}\n\t\t\t\t} else if (msg.contains(PromotionProgramMgr.DUPLICATE_LEVELS)) {\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.level\"));\n\t\t\t\t\treturn SUCCESS;\n\t\t\t\t}\n\t\t\t}\n\t\t\tLogUtility.logErrorStandard(ie, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t} catch (Exception e) {\n\t\t\tLogUtility.logErrorStandard(e, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public int getLevel()\n {\n return level;\n }",
"public int getLevel()\r\n {\r\n return level;\r\n }",
"public int getLevel() {\r\n return level;\r\n }",
"public void setLevel(String newLevel) {\n level = newLevel;\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 }",
"public int getLevel() {\n return level;\n }",
"@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime >= #{higherSkuParam.startTime}\",\n \"AND s.updateTime <= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}",
"AgentLevel selectByPrimaryKey(Long id);",
"public int getLevelValue() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public String getLevel(){\n\t\treturn level;\n\t}",
"public int getLevel() {\n \t\treturn level;\n \t}",
"public int getLevel()\r\n {\r\n return r_level;\r\n }",
"public int level () {\r\n int iLevel;\r\n\r\n if (isNull(\"id_term1\"))\r\n iLevel = 1;\r\n else if (isNull(\"id_term2\"))\r\n iLevel = 2;\r\n else if (isNull(\"id_term3\"))\r\n iLevel = 3;\r\n else if (isNull(\"id_term4\"))\r\n iLevel = 4;\r\n else if (isNull(\"id_term5\"))\r\n iLevel = 5;\r\n else if (isNull(\"id_term6\"))\r\n iLevel = 6;\r\n else if (isNull(\"id_term7\"))\r\n iLevel = 7;\r\n else if (isNull(\"id_term8\"))\r\n iLevel = 8;\r\n else if (isNull(\"id_term9\"))\r\n iLevel = 9;\r\n else\r\n iLevel = 10;\r\n\r\n return iLevel;\r\n }",
"public void setLevel(String value) {\n this.level = value;\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 }",
"public Long getLevel() {\r\n return (Long) getAttributeInternal(LEVEL);\r\n }",
"public int getLevel(){\n\t\treturn this.level;\n\t}",
"public void setLevel(Long value) {\r\n setAttributeInternal(LEVEL, value);\r\n }",
"public void setLevel(int value) {\n this.level = value;\n }",
"int getLevelTableListCount();",
"public static String getKML(int id, int level) \n\t\t\t{\n\t\t\t\tString ans = null;\n\t\t\t\tString allCustomersQuery = \"SELECT * FROM Users where userID=\"+id+\";\";\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tConnection connection = \n\t\t\t\t\tDriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\t\t\n\t\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\t\tResultSet resultSet = statement.executeQuery(allCustomersQuery);\n\t\t\t\t\tif(resultSet!=null && resultSet.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tans = resultSet.getString(\"kml_\"+level);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SQLException sqle) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"SQLException: \" + sqle.getMessage());\n\t\t\t\t\tSystem.out.println(\"Vendor Error: \" + sqle.getErrorCode());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (ClassNotFoundException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn ans;\n\t\t\t}",
"protected abstract Level[] getLevelSet();",
"public void choiceLevel(String lev) {\n switch (lev) {\n\n case \"ALL\":\n mLevelLogger = Level.ALL;\n break;\n case \"NOTIFICATION\":\n mLevelLogger = Level.INFO;\n break;\n case \"HIGH\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"MEDIUM\":\n mLevelLogger = Level.WARNING;\n break;\n case \"LOW\":\n mLevelLogger = Level.INFO;\n break;\n case \"SEVERE\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"WARNING\":\n mLevelLogger = Level.WARNING;\n break;\n case \"INFO\":\n mLevelLogger = Level.INFO;\n break;\n case \"CONFIG\":\n mLevelLogger = Level.CONFIG;\n break;\n case \"FINE\":\n mLevelLogger = Level.FINE;\n break;\n case \"FINER\":\n mLevelLogger = Level.FINER;\n break;\n case \"FINEST\":\n mLevelLogger = Level.FINEST;\n break;\n case \"OFF\":\n mLevelLogger = Level.OFF;\n break;\n default:\n logger.warning(\"Unknow Level:\" + lev);\n }\n }",
"public void setLevel(final String level) {\n setAttribute(ATTRIBUTE_LEVEL, level);\n }",
"public String getLevel() {\n return level;\n }"
]
| [
"0.68411285",
"0.62139314",
"0.6177488",
"0.61231226",
"0.5251172",
"0.5207476",
"0.52065986",
"0.5131146",
"0.5103007",
"0.50536233",
"0.50087017",
"0.49993244",
"0.4989223",
"0.4979635",
"0.49489287",
"0.49485302",
"0.4942931",
"0.49369144",
"0.49369144",
"0.49369144",
"0.49369144",
"0.49369144",
"0.48987874",
"0.48974442",
"0.48967212",
"0.48949906",
"0.48771417",
"0.48528093",
"0.48528093",
"0.48465464",
"0.4832779",
"0.48253357",
"0.48225835",
"0.48225835",
"0.48049483",
"0.48030204",
"0.47935107",
"0.47935107",
"0.47933108",
"0.47853252",
"0.4782855",
"0.47822213",
"0.47809744",
"0.47809744",
"0.47703287",
"0.4735055",
"0.47324276",
"0.47272494",
"0.4713772",
"0.46937433",
"0.4691861",
"0.46853456",
"0.46852413",
"0.46769994",
"0.4672971",
"0.4672971",
"0.46665168",
"0.4651745",
"0.4651745",
"0.4651745",
"0.4651745",
"0.4651745",
"0.46395516",
"0.46359685",
"0.460822",
"0.46075362",
"0.4605197",
"0.46032527",
"0.45983076",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.45899925",
"0.4584065",
"0.45706922",
"0.4568304",
"0.4568304",
"0.45660332",
"0.45644328",
"0.45632306",
"0.45618185",
"0.4556771",
"0.45550662",
"0.45458576",
"0.4544032",
"0.45381787",
"0.45308676",
"0.45230228",
"0.45203757",
"0.45169285",
"0.45143482",
"0.4514284",
"0.4509002"
]
| 0.45795137 | 81 |
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting | int deleteByExample(ReviewLevelSettingExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResultMap\")\r\n ReviewLevelSetting selectByPrimaryKey(String id);",
"@Insert({\r\n \"insert into `review_level_setting` (`id`, `ops_op`, \",\r\n \"`ops_op_label`, `ops_op_level`, \",\r\n \"`created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, \",\r\n \"`del_flg`)\",\r\n \"values (#{id,jdbcType=VARCHAR}, #{opsOp,jdbcType=VARCHAR}, \",\r\n \"#{opsOpLabel,jdbcType=VARCHAR}, #{opsOpLevel,jdbcType=VARCHAR}, \",\r\n \"#{createdBy,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, \",\r\n \"#{updatedBy,jdbcType=VARCHAR}, #{updatedAt,jdbcType=TIMESTAMP}, \",\r\n \"#{delFlg,jdbcType=VARCHAR})\"\r\n })\r\n int insert(ReviewLevelSetting record);",
"List<ReviewLevelSetting> selectByExample(ReviewLevelSettingExample example);",
"@Update({\r\n \"update `review_level_setting`\",\r\n \"set `ops_op` = #{opsOp,jdbcType=VARCHAR},\",\r\n \"`ops_op_label` = #{opsOpLabel,jdbcType=VARCHAR},\",\r\n \"`ops_op_level` = #{opsOpLevel,jdbcType=VARCHAR},\",\r\n \"`created_by` = #{createdBy,jdbcType=VARCHAR},\",\r\n \"`created_at` = #{createdAt,jdbcType=TIMESTAMP},\",\r\n \"`updated_by` = #{updatedBy,jdbcType=VARCHAR},\",\r\n \"`updated_at` = #{updatedAt,jdbcType=TIMESTAMP},\",\r\n \"`del_flg` = #{delFlg,jdbcType=VARCHAR}\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int updateByPrimaryKey(ReviewLevelSetting record);",
"public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}",
"int insertSelective(ReviewLevelSetting record);",
"int updateByPrimaryKeySelective(ReviewLevelSetting record);",
"public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }",
"public void setLevel(String level);",
"public Integer getLevelId() {\n return levelId;\n }",
"public void setLevel(String level){\n\t\tthis.level = level;\n\t}",
"protected void setLevel(int level){\r\n this.level = level;\r\n }",
"public void setLevel(int newlevel)\n {\n level = newlevel; \n }",
"public void setLevel(int level){\n\t\tthis.level = level;\n\t}",
"public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }",
"public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}",
"@Delete({\r\n \"delete from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int deleteByPrimaryKey(String id);",
"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 }",
"public void setMapLevel(String maptyp, int level) {\n\t\tprefs.putInt(title + \".\" + maptyp, level);\n\t}",
"public void setLevelId(Integer levelId) {\n this.levelId = levelId;\n }",
"public String getLevelId() {\n return levelId;\n }",
"public void setLevelLimit(Integer levelLimit) {\n\t\tthis.levelLimit = levelLimit;\r\n\t}",
"public void setLevel(int level) {\n \t\tthis.level = level;\n \t}",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}",
"public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}",
"protected void setLevel(int level)\n {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"int updateByExample(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public int getLevelNo() {\n return levelNo;\n }",
"public int getLevel(){\n return level;\n }",
"public int getLevel(){\n return level;\n }",
"@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();",
"@Override\n public void onCreate(SQLiteDatabase db) { db.execSQL(\"create table vanyrLevel(lvl int(1));\"); }",
"public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}",
"int getGoalConfigLevelValue();",
"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 int getLevel()\n {\n return level; \n }",
"public void setLevel(String lev) {\n\t\tlevel = lev;\n\t}",
"public void setLevelId(String levelId) {\n this.levelId = levelId;\n }",
"int updateByExampleSelective(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public String getLevel ()\n {\n return level;\n }",
"public int getLevel(){\n\t\treturn level;\n\t}",
"public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}",
"protected int getLevel(){\r\n return this.level;\r\n }",
"public void setLevel(int v)\n {\n m_level = v;\n }",
"public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel() { \r\n\t\treturn level; \r\n\t}",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public RiskLevelSelectionModel() {\n\n // get the risk levels\n Set<RiskLevel> riskLevelSet = AgilePlanningObjectFactory.getStoryService().findAllRiskLevel();\n \n // put the risk levels in a list\n riskLevels = new ArrayList<RiskLevel>(riskLevelSet);\n \n }",
"public String newSaveLevel() {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\ttry {\n\t\t\tif (mappingId == null || mappingId == 0) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t/**\n\t\t\t * check Cac muc trong nhom phai co so luong/so tien khac nhau.\n\t\t\t * Khong the muc 1 la 1A, 2B muc 2 cung la 1A, 2B\n\t\t\t */\n\t\t\t//trung nguyen\n\t\t\tList<ExMapping> lstSubCheck = listSubLevelMua;\n\t\t\tInteger checkLevel = 0;\n\t\t\tProductGroup pg = promotionProgramMgr.getrecursive(groupMuaId);\n\t\t\tint recursive = pg.getRecursive();\n\t\t\tint sizeGroupLevel = promotionProgramMgr.getSize(groupMuaId).size();\n\t\t\tboolean isFlag = false;\n\t\t\tif (sizeGroupLevel > 0){\n\t\t\t\tfor (int i = 0; i< sizeGroupLevel; i++){\n\t\t\t\t\tInteger conditionGroupLevel = promotionProgramMgr.getSize(groupMuaId).get(i).getCondition();\n\t\t\t\t\tif (conditionGroupLevel != null){\n\t\t\t\t\t\tisFlag = true;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(\"ZV21\".equals(typeCode) || \"ZV20\".equals(typeCode)){\n\t\t\t\tif(recursive==1){\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tif (isFlag == false && sizeGroupLevel > 2){\n\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstSubCheck = listSubLevelGroupZV192021;\n\t\t\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif (sizeGroupLevel > 1 && isFlag){\n\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tcheckLevel = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t}\n\t\t\tif (checkLevel == 1) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.exist\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 2) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 3) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.value.not.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tMap<String, Object> returnMap = promotionProgramMgr.newSaveSublevel(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t//Map<String, Object> returnMapGroupZv192021 = promotionProg\tramMgr.newSaveGroupZV192021(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t\n\t\t\tresult.put(ERROR, false);\n\t\t\tif (returnMap.get(\"listSubLevelMua\") != null) {\n\t\t\t\tresult.put(\"listSubLevelMua\", returnMap.get(\"listSubLevelMua\"));\n\t\t\t}\n\t\t\tif (returnMap.get(\"listSubLevelKM\") != null) {\n\t\t\t\tresult.put(\"listSubLevelKM\", returnMap.get(\"listSubLevelKM\"));\n\t\t\t}\n\t\t\tif (mappingId != null) {\n\t\t\t\tGroupMapping mapping = promotionProgramMgr.getGroupMappingById(mappingId);\n\t\t\t\tif (mapping != null && mapping.getPromotionGroup() != null && mapping.getPromotionGroup().getPromotionProgram() != null) {\n\t\t\t\t\tPromotionProgram program = mapping.getPromotionGroup().getPromotionProgram();\n\t\t\t\t\tpromotionProgramMgr.updateMD5ValidCode(program, getLogInfoVO());\n\t\t\t\t\tif (mapping.getSaleGroup() != null) {\n\t\t\t\t\t\tpromotionProgramMgr.updateGroupLevelOrderNumber(program.getId(), mapping.getSaleGroup().getId(), getLogInfoVO());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IllegalArgumentException ie) {\n\t\t\tString msg = ie.getMessage();\n\t\t\tif (msg != null) {\n\t\t\t\tif (msg.contains(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS)) {\n\t\t\t\t\tint idx = msg.indexOf(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS);\n\t\t\t\t\tif (idx > -1) {\n\t\t\t\t\t\tString err = msg.substring(idx);\n\t\t\t\t\t\terr = err.replace(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS, \"\");\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.product.in.product.groups\", err));\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t}\n\t\t\t\t} else if (msg.contains(PromotionProgramMgr.DUPLICATE_LEVELS)) {\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.level\"));\n\t\t\t\t\treturn SUCCESS;\n\t\t\t\t}\n\t\t\t}\n\t\t\tLogUtility.logErrorStandard(ie, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t} catch (Exception e) {\n\t\t\tLogUtility.logErrorStandard(e, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public int getLevel()\n {\n return level;\n }",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public int getLevel()\r\n {\r\n return level;\r\n }",
"public int getLevel() {\r\n return level;\r\n }",
"public void setLevel(String newLevel) {\n level = newLevel;\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 }",
"public int getLevel() {\n return level;\n }",
"@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime >= #{higherSkuParam.startTime}\",\n \"AND s.updateTime <= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}",
"AgentLevel selectByPrimaryKey(Long id);",
"int countByExample(ReviewLevelSettingExample example);",
"public int getLevelValue() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public String getLevel(){\n\t\treturn level;\n\t}",
"public int getLevel() {\n \t\treturn level;\n \t}",
"public int getLevel()\r\n {\r\n return r_level;\r\n }",
"public int level () {\r\n int iLevel;\r\n\r\n if (isNull(\"id_term1\"))\r\n iLevel = 1;\r\n else if (isNull(\"id_term2\"))\r\n iLevel = 2;\r\n else if (isNull(\"id_term3\"))\r\n iLevel = 3;\r\n else if (isNull(\"id_term4\"))\r\n iLevel = 4;\r\n else if (isNull(\"id_term5\"))\r\n iLevel = 5;\r\n else if (isNull(\"id_term6\"))\r\n iLevel = 6;\r\n else if (isNull(\"id_term7\"))\r\n iLevel = 7;\r\n else if (isNull(\"id_term8\"))\r\n iLevel = 8;\r\n else if (isNull(\"id_term9\"))\r\n iLevel = 9;\r\n else\r\n iLevel = 10;\r\n\r\n return iLevel;\r\n }",
"public void setLevel(String value) {\n this.level = value;\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 }",
"public Long getLevel() {\r\n return (Long) getAttributeInternal(LEVEL);\r\n }",
"public int getLevel(){\n\t\treturn this.level;\n\t}",
"public void setLevel(Long value) {\r\n setAttributeInternal(LEVEL, value);\r\n }",
"public void setLevel(int value) {\n this.level = value;\n }",
"int getLevelTableListCount();",
"public static String getKML(int id, int level) \n\t\t\t{\n\t\t\t\tString ans = null;\n\t\t\t\tString allCustomersQuery = \"SELECT * FROM Users where userID=\"+id+\";\";\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tConnection connection = \n\t\t\t\t\tDriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\t\t\n\t\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\t\tResultSet resultSet = statement.executeQuery(allCustomersQuery);\n\t\t\t\t\tif(resultSet!=null && resultSet.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tans = resultSet.getString(\"kml_\"+level);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SQLException sqle) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"SQLException: \" + sqle.getMessage());\n\t\t\t\t\tSystem.out.println(\"Vendor Error: \" + sqle.getErrorCode());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (ClassNotFoundException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn ans;\n\t\t\t}",
"protected abstract Level[] getLevelSet();",
"public void choiceLevel(String lev) {\n switch (lev) {\n\n case \"ALL\":\n mLevelLogger = Level.ALL;\n break;\n case \"NOTIFICATION\":\n mLevelLogger = Level.INFO;\n break;\n case \"HIGH\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"MEDIUM\":\n mLevelLogger = Level.WARNING;\n break;\n case \"LOW\":\n mLevelLogger = Level.INFO;\n break;\n case \"SEVERE\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"WARNING\":\n mLevelLogger = Level.WARNING;\n break;\n case \"INFO\":\n mLevelLogger = Level.INFO;\n break;\n case \"CONFIG\":\n mLevelLogger = Level.CONFIG;\n break;\n case \"FINE\":\n mLevelLogger = Level.FINE;\n break;\n case \"FINER\":\n mLevelLogger = Level.FINER;\n break;\n case \"FINEST\":\n mLevelLogger = Level.FINEST;\n break;\n case \"OFF\":\n mLevelLogger = Level.OFF;\n break;\n default:\n logger.warning(\"Unknow Level:\" + lev);\n }\n }",
"public void setLevel(final String level) {\n setAttribute(ATTRIBUTE_LEVEL, level);\n }",
"public String getLevel() {\n return level;\n }"
]
| [
"0.68405455",
"0.6214392",
"0.6177646",
"0.6122873",
"0.52501476",
"0.5209048",
"0.52076334",
"0.5129414",
"0.5100407",
"0.5052653",
"0.50065285",
"0.4997834",
"0.4987267",
"0.49777448",
"0.49470526",
"0.4946789",
"0.4943164",
"0.49352738",
"0.49352738",
"0.49352738",
"0.49352738",
"0.49352738",
"0.4897981",
"0.48966217",
"0.48953784",
"0.48922315",
"0.4875387",
"0.48509824",
"0.48509824",
"0.48447856",
"0.48323438",
"0.4823998",
"0.4820481",
"0.4820481",
"0.48058972",
"0.48024517",
"0.47925824",
"0.47925824",
"0.47925574",
"0.47838923",
"0.47811046",
"0.47808534",
"0.4779182",
"0.4779182",
"0.47693914",
"0.4734142",
"0.4731264",
"0.47278178",
"0.47123492",
"0.46927744",
"0.46900773",
"0.46848643",
"0.4684075",
"0.46751198",
"0.46722054",
"0.46722054",
"0.4665861",
"0.4650869",
"0.4650869",
"0.4650869",
"0.4650869",
"0.4650869",
"0.4639427",
"0.46331465",
"0.46066687",
"0.46057633",
"0.4604416",
"0.46025124",
"0.4596284",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45893687",
"0.45831493",
"0.45797887",
"0.45699596",
"0.45677593",
"0.45677593",
"0.4564406",
"0.45637065",
"0.45630905",
"0.4560426",
"0.45543522",
"0.45536578",
"0.45454022",
"0.45432645",
"0.45359462",
"0.45291114",
"0.45202962",
"0.4519246",
"0.45159075",
"0.4513586",
"0.45123118",
"0.4507513"
]
| 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting | @Delete({
"delete from `review_level_setting`",
"where `id` = #{id,jdbcType=VARCHAR}"
})
int deleteByPrimaryKey(String id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResultMap\")\r\n ReviewLevelSetting selectByPrimaryKey(String id);",
"@Insert({\r\n \"insert into `review_level_setting` (`id`, `ops_op`, \",\r\n \"`ops_op_label`, `ops_op_level`, \",\r\n \"`created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, \",\r\n \"`del_flg`)\",\r\n \"values (#{id,jdbcType=VARCHAR}, #{opsOp,jdbcType=VARCHAR}, \",\r\n \"#{opsOpLabel,jdbcType=VARCHAR}, #{opsOpLevel,jdbcType=VARCHAR}, \",\r\n \"#{createdBy,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, \",\r\n \"#{updatedBy,jdbcType=VARCHAR}, #{updatedAt,jdbcType=TIMESTAMP}, \",\r\n \"#{delFlg,jdbcType=VARCHAR})\"\r\n })\r\n int insert(ReviewLevelSetting record);",
"List<ReviewLevelSetting> selectByExample(ReviewLevelSettingExample example);",
"@Update({\r\n \"update `review_level_setting`\",\r\n \"set `ops_op` = #{opsOp,jdbcType=VARCHAR},\",\r\n \"`ops_op_label` = #{opsOpLabel,jdbcType=VARCHAR},\",\r\n \"`ops_op_level` = #{opsOpLevel,jdbcType=VARCHAR},\",\r\n \"`created_by` = #{createdBy,jdbcType=VARCHAR},\",\r\n \"`created_at` = #{createdAt,jdbcType=TIMESTAMP},\",\r\n \"`updated_by` = #{updatedBy,jdbcType=VARCHAR},\",\r\n \"`updated_at` = #{updatedAt,jdbcType=TIMESTAMP},\",\r\n \"`del_flg` = #{delFlg,jdbcType=VARCHAR}\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int updateByPrimaryKey(ReviewLevelSetting record);",
"public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}",
"int insertSelective(ReviewLevelSetting record);",
"int updateByPrimaryKeySelective(ReviewLevelSetting record);",
"public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }",
"public void setLevel(String level);",
"public Integer getLevelId() {\n return levelId;\n }",
"public void setLevel(String level){\n\t\tthis.level = level;\n\t}",
"protected void setLevel(int level){\r\n this.level = level;\r\n }",
"public void setLevel(int newlevel)\n {\n level = newlevel; \n }",
"public void setLevel(int level){\n\t\tthis.level = level;\n\t}",
"public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }",
"public void setLevel(int level) { \r\n\t\tthis.level = level; \r\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 }",
"public void setMapLevel(String maptyp, int level) {\n\t\tprefs.putInt(title + \".\" + maptyp, level);\n\t}",
"public void setLevelId(Integer levelId) {\n this.levelId = levelId;\n }",
"public String getLevelId() {\n return levelId;\n }",
"public void setLevelLimit(Integer levelLimit) {\n\t\tthis.levelLimit = levelLimit;\r\n\t}",
"public void setLevel(int level) {\n \t\tthis.level = level;\n \t}",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}",
"public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}",
"protected void setLevel(int level)\n {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"int updateByExample(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public int getLevelNo() {\n return levelNo;\n }",
"public int getLevel(){\n return level;\n }",
"public int getLevel(){\n return level;\n }",
"@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();",
"@Override\n public void onCreate(SQLiteDatabase db) { db.execSQL(\"create table vanyrLevel(lvl int(1));\"); }",
"public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}",
"int getGoalConfigLevelValue();",
"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 int getLevel()\n {\n return level; \n }",
"public void setLevel(String lev) {\n\t\tlevel = lev;\n\t}",
"public void setLevelId(String levelId) {\n this.levelId = levelId;\n }",
"int updateByExampleSelective(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public String getLevel ()\n {\n return level;\n }",
"public int getLevel(){\n\t\treturn level;\n\t}",
"public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}",
"protected int getLevel(){\r\n return this.level;\r\n }",
"public void setLevel(int v)\n {\n m_level = v;\n }",
"public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel() { \r\n\t\treturn level; \r\n\t}",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public RiskLevelSelectionModel() {\n\n // get the risk levels\n Set<RiskLevel> riskLevelSet = AgilePlanningObjectFactory.getStoryService().findAllRiskLevel();\n \n // put the risk levels in a list\n riskLevels = new ArrayList<RiskLevel>(riskLevelSet);\n \n }",
"public String newSaveLevel() {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\ttry {\n\t\t\tif (mappingId == null || mappingId == 0) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t/**\n\t\t\t * check Cac muc trong nhom phai co so luong/so tien khac nhau.\n\t\t\t * Khong the muc 1 la 1A, 2B muc 2 cung la 1A, 2B\n\t\t\t */\n\t\t\t//trung nguyen\n\t\t\tList<ExMapping> lstSubCheck = listSubLevelMua;\n\t\t\tInteger checkLevel = 0;\n\t\t\tProductGroup pg = promotionProgramMgr.getrecursive(groupMuaId);\n\t\t\tint recursive = pg.getRecursive();\n\t\t\tint sizeGroupLevel = promotionProgramMgr.getSize(groupMuaId).size();\n\t\t\tboolean isFlag = false;\n\t\t\tif (sizeGroupLevel > 0){\n\t\t\t\tfor (int i = 0; i< sizeGroupLevel; i++){\n\t\t\t\t\tInteger conditionGroupLevel = promotionProgramMgr.getSize(groupMuaId).get(i).getCondition();\n\t\t\t\t\tif (conditionGroupLevel != null){\n\t\t\t\t\t\tisFlag = true;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(\"ZV21\".equals(typeCode) || \"ZV20\".equals(typeCode)){\n\t\t\t\tif(recursive==1){\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tif (isFlag == false && sizeGroupLevel > 2){\n\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstSubCheck = listSubLevelGroupZV192021;\n\t\t\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif (sizeGroupLevel > 1 && isFlag){\n\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tcheckLevel = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t}\n\t\t\tif (checkLevel == 1) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.exist\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 2) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 3) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.value.not.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tMap<String, Object> returnMap = promotionProgramMgr.newSaveSublevel(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t//Map<String, Object> returnMapGroupZv192021 = promotionProg\tramMgr.newSaveGroupZV192021(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t\n\t\t\tresult.put(ERROR, false);\n\t\t\tif (returnMap.get(\"listSubLevelMua\") != null) {\n\t\t\t\tresult.put(\"listSubLevelMua\", returnMap.get(\"listSubLevelMua\"));\n\t\t\t}\n\t\t\tif (returnMap.get(\"listSubLevelKM\") != null) {\n\t\t\t\tresult.put(\"listSubLevelKM\", returnMap.get(\"listSubLevelKM\"));\n\t\t\t}\n\t\t\tif (mappingId != null) {\n\t\t\t\tGroupMapping mapping = promotionProgramMgr.getGroupMappingById(mappingId);\n\t\t\t\tif (mapping != null && mapping.getPromotionGroup() != null && mapping.getPromotionGroup().getPromotionProgram() != null) {\n\t\t\t\t\tPromotionProgram program = mapping.getPromotionGroup().getPromotionProgram();\n\t\t\t\t\tpromotionProgramMgr.updateMD5ValidCode(program, getLogInfoVO());\n\t\t\t\t\tif (mapping.getSaleGroup() != null) {\n\t\t\t\t\t\tpromotionProgramMgr.updateGroupLevelOrderNumber(program.getId(), mapping.getSaleGroup().getId(), getLogInfoVO());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IllegalArgumentException ie) {\n\t\t\tString msg = ie.getMessage();\n\t\t\tif (msg != null) {\n\t\t\t\tif (msg.contains(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS)) {\n\t\t\t\t\tint idx = msg.indexOf(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS);\n\t\t\t\t\tif (idx > -1) {\n\t\t\t\t\t\tString err = msg.substring(idx);\n\t\t\t\t\t\terr = err.replace(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS, \"\");\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.product.in.product.groups\", err));\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t}\n\t\t\t\t} else if (msg.contains(PromotionProgramMgr.DUPLICATE_LEVELS)) {\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.level\"));\n\t\t\t\t\treturn SUCCESS;\n\t\t\t\t}\n\t\t\t}\n\t\t\tLogUtility.logErrorStandard(ie, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t} catch (Exception e) {\n\t\t\tLogUtility.logErrorStandard(e, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public int getLevel()\n {\n return level;\n }",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public int getLevel()\r\n {\r\n return level;\r\n }",
"public int getLevel() {\r\n return level;\r\n }",
"public void setLevel(String newLevel) {\n level = newLevel;\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 }",
"public int getLevel() {\n return level;\n }",
"@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime >= #{higherSkuParam.startTime}\",\n \"AND s.updateTime <= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}",
"AgentLevel selectByPrimaryKey(Long id);",
"int countByExample(ReviewLevelSettingExample example);",
"public int getLevelValue() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public String getLevel(){\n\t\treturn level;\n\t}",
"public int getLevel() {\n \t\treturn level;\n \t}",
"public int getLevel()\r\n {\r\n return r_level;\r\n }",
"public int level () {\r\n int iLevel;\r\n\r\n if (isNull(\"id_term1\"))\r\n iLevel = 1;\r\n else if (isNull(\"id_term2\"))\r\n iLevel = 2;\r\n else if (isNull(\"id_term3\"))\r\n iLevel = 3;\r\n else if (isNull(\"id_term4\"))\r\n iLevel = 4;\r\n else if (isNull(\"id_term5\"))\r\n iLevel = 5;\r\n else if (isNull(\"id_term6\"))\r\n iLevel = 6;\r\n else if (isNull(\"id_term7\"))\r\n iLevel = 7;\r\n else if (isNull(\"id_term8\"))\r\n iLevel = 8;\r\n else if (isNull(\"id_term9\"))\r\n iLevel = 9;\r\n else\r\n iLevel = 10;\r\n\r\n return iLevel;\r\n }",
"public void setLevel(String value) {\n this.level = value;\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 }",
"public Long getLevel() {\r\n return (Long) getAttributeInternal(LEVEL);\r\n }",
"public int getLevel(){\n\t\treturn this.level;\n\t}",
"public void setLevel(Long value) {\r\n setAttributeInternal(LEVEL, value);\r\n }",
"public void setLevel(int value) {\n this.level = value;\n }",
"int getLevelTableListCount();",
"public static String getKML(int id, int level) \n\t\t\t{\n\t\t\t\tString ans = null;\n\t\t\t\tString allCustomersQuery = \"SELECT * FROM Users where userID=\"+id+\";\";\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tConnection connection = \n\t\t\t\t\tDriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\t\t\n\t\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\t\tResultSet resultSet = statement.executeQuery(allCustomersQuery);\n\t\t\t\t\tif(resultSet!=null && resultSet.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tans = resultSet.getString(\"kml_\"+level);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SQLException sqle) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"SQLException: \" + sqle.getMessage());\n\t\t\t\t\tSystem.out.println(\"Vendor Error: \" + sqle.getErrorCode());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (ClassNotFoundException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn ans;\n\t\t\t}",
"protected abstract Level[] getLevelSet();",
"public void choiceLevel(String lev) {\n switch (lev) {\n\n case \"ALL\":\n mLevelLogger = Level.ALL;\n break;\n case \"NOTIFICATION\":\n mLevelLogger = Level.INFO;\n break;\n case \"HIGH\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"MEDIUM\":\n mLevelLogger = Level.WARNING;\n break;\n case \"LOW\":\n mLevelLogger = Level.INFO;\n break;\n case \"SEVERE\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"WARNING\":\n mLevelLogger = Level.WARNING;\n break;\n case \"INFO\":\n mLevelLogger = Level.INFO;\n break;\n case \"CONFIG\":\n mLevelLogger = Level.CONFIG;\n break;\n case \"FINE\":\n mLevelLogger = Level.FINE;\n break;\n case \"FINER\":\n mLevelLogger = Level.FINER;\n break;\n case \"FINEST\":\n mLevelLogger = Level.FINEST;\n break;\n case \"OFF\":\n mLevelLogger = Level.OFF;\n break;\n default:\n logger.warning(\"Unknow Level:\" + lev);\n }\n }",
"public void setLevel(final String level) {\n setAttribute(ATTRIBUTE_LEVEL, level);\n }",
"public String getLevel() {\n return level;\n }"
]
| [
"0.68405455",
"0.6214392",
"0.6177646",
"0.6122873",
"0.52501476",
"0.5209048",
"0.52076334",
"0.5129414",
"0.5100407",
"0.5052653",
"0.50065285",
"0.4997834",
"0.4987267",
"0.49777448",
"0.49470526",
"0.4946789",
"0.49352738",
"0.49352738",
"0.49352738",
"0.49352738",
"0.49352738",
"0.4897981",
"0.48966217",
"0.48953784",
"0.48922315",
"0.4875387",
"0.48509824",
"0.48509824",
"0.48447856",
"0.48323438",
"0.4823998",
"0.4820481",
"0.4820481",
"0.48058972",
"0.48024517",
"0.47925824",
"0.47925824",
"0.47925574",
"0.47838923",
"0.47811046",
"0.47808534",
"0.4779182",
"0.4779182",
"0.47693914",
"0.4734142",
"0.4731264",
"0.47278178",
"0.47123492",
"0.46927744",
"0.46900773",
"0.46848643",
"0.4684075",
"0.46751198",
"0.46722054",
"0.46722054",
"0.4665861",
"0.4650869",
"0.4650869",
"0.4650869",
"0.4650869",
"0.4650869",
"0.4639427",
"0.46331465",
"0.46066687",
"0.46057633",
"0.4604416",
"0.46025124",
"0.4596284",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45893687",
"0.45831493",
"0.45797887",
"0.45699596",
"0.45677593",
"0.45677593",
"0.4564406",
"0.45637065",
"0.45630905",
"0.4560426",
"0.45543522",
"0.45536578",
"0.45454022",
"0.45432645",
"0.45359462",
"0.45291114",
"0.45202962",
"0.4519246",
"0.45159075",
"0.4513586",
"0.45123118",
"0.4507513"
]
| 0.4943164 | 16 |
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting | @Insert({
"insert into `review_level_setting` (`id`, `ops_op`, ",
"`ops_op_label`, `ops_op_level`, ",
"`created_by`, `created_at`, ",
"`updated_by`, `updated_at`, ",
"`del_flg`)",
"values (#{id,jdbcType=VARCHAR}, #{opsOp,jdbcType=VARCHAR}, ",
"#{opsOpLabel,jdbcType=VARCHAR}, #{opsOpLevel,jdbcType=VARCHAR}, ",
"#{createdBy,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, ",
"#{updatedBy,jdbcType=VARCHAR}, #{updatedAt,jdbcType=TIMESTAMP}, ",
"#{delFlg,jdbcType=VARCHAR})"
})
int insert(ReviewLevelSetting record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResultMap\")\r\n ReviewLevelSetting selectByPrimaryKey(String id);",
"List<ReviewLevelSetting> selectByExample(ReviewLevelSettingExample example);",
"@Update({\r\n \"update `review_level_setting`\",\r\n \"set `ops_op` = #{opsOp,jdbcType=VARCHAR},\",\r\n \"`ops_op_label` = #{opsOpLabel,jdbcType=VARCHAR},\",\r\n \"`ops_op_level` = #{opsOpLevel,jdbcType=VARCHAR},\",\r\n \"`created_by` = #{createdBy,jdbcType=VARCHAR},\",\r\n \"`created_at` = #{createdAt,jdbcType=TIMESTAMP},\",\r\n \"`updated_by` = #{updatedBy,jdbcType=VARCHAR},\",\r\n \"`updated_at` = #{updatedAt,jdbcType=TIMESTAMP},\",\r\n \"`del_flg` = #{delFlg,jdbcType=VARCHAR}\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int updateByPrimaryKey(ReviewLevelSetting record);",
"public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}",
"int insertSelective(ReviewLevelSetting record);",
"int updateByPrimaryKeySelective(ReviewLevelSetting record);",
"public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }",
"public void setLevel(String level);",
"public Integer getLevelId() {\n return levelId;\n }",
"public void setLevel(String level){\n\t\tthis.level = level;\n\t}",
"protected void setLevel(int level){\r\n this.level = level;\r\n }",
"public void setLevel(int newlevel)\n {\n level = newlevel; \n }",
"public void setLevel(int level){\n\t\tthis.level = level;\n\t}",
"public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }",
"public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}",
"@Delete({\r\n \"delete from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int deleteByPrimaryKey(String id);",
"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 }",
"public void setLevelId(Integer levelId) {\n this.levelId = levelId;\n }",
"public String getLevelId() {\n return levelId;\n }",
"public void setMapLevel(String maptyp, int level) {\n\t\tprefs.putInt(title + \".\" + maptyp, level);\n\t}",
"public void setLevelLimit(Integer levelLimit) {\n\t\tthis.levelLimit = levelLimit;\r\n\t}",
"public void setLevel(int level) {\n \t\tthis.level = level;\n \t}",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}",
"public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}",
"protected void setLevel(int level)\n {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"int updateByExample(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public int getLevelNo() {\n return levelNo;\n }",
"@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();",
"public int getLevel(){\n return level;\n }",
"public int getLevel(){\n return level;\n }",
"@Override\n public void onCreate(SQLiteDatabase db) { db.execSQL(\"create table vanyrLevel(lvl int(1));\"); }",
"public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}",
"int getGoalConfigLevelValue();",
"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 int getLevel()\n {\n return level; \n }",
"public void setLevel(String lev) {\n\t\tlevel = lev;\n\t}",
"public void setLevelId(String levelId) {\n this.levelId = levelId;\n }",
"int updateByExampleSelective(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public String getLevel ()\n {\n return level;\n }",
"public int getLevel(){\n\t\treturn level;\n\t}",
"public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}",
"protected int getLevel(){\r\n return this.level;\r\n }",
"public void setLevel(int v)\n {\n m_level = v;\n }",
"public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel() { \r\n\t\treturn level; \r\n\t}",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public RiskLevelSelectionModel() {\n\n // get the risk levels\n Set<RiskLevel> riskLevelSet = AgilePlanningObjectFactory.getStoryService().findAllRiskLevel();\n \n // put the risk levels in a list\n riskLevels = new ArrayList<RiskLevel>(riskLevelSet);\n \n }",
"public String newSaveLevel() {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\ttry {\n\t\t\tif (mappingId == null || mappingId == 0) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t/**\n\t\t\t * check Cac muc trong nhom phai co so luong/so tien khac nhau.\n\t\t\t * Khong the muc 1 la 1A, 2B muc 2 cung la 1A, 2B\n\t\t\t */\n\t\t\t//trung nguyen\n\t\t\tList<ExMapping> lstSubCheck = listSubLevelMua;\n\t\t\tInteger checkLevel = 0;\n\t\t\tProductGroup pg = promotionProgramMgr.getrecursive(groupMuaId);\n\t\t\tint recursive = pg.getRecursive();\n\t\t\tint sizeGroupLevel = promotionProgramMgr.getSize(groupMuaId).size();\n\t\t\tboolean isFlag = false;\n\t\t\tif (sizeGroupLevel > 0){\n\t\t\t\tfor (int i = 0; i< sizeGroupLevel; i++){\n\t\t\t\t\tInteger conditionGroupLevel = promotionProgramMgr.getSize(groupMuaId).get(i).getCondition();\n\t\t\t\t\tif (conditionGroupLevel != null){\n\t\t\t\t\t\tisFlag = true;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(\"ZV21\".equals(typeCode) || \"ZV20\".equals(typeCode)){\n\t\t\t\tif(recursive==1){\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tif (isFlag == false && sizeGroupLevel > 2){\n\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstSubCheck = listSubLevelGroupZV192021;\n\t\t\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif (sizeGroupLevel > 1 && isFlag){\n\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tcheckLevel = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t}\n\t\t\tif (checkLevel == 1) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.exist\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 2) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 3) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.value.not.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tMap<String, Object> returnMap = promotionProgramMgr.newSaveSublevel(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t//Map<String, Object> returnMapGroupZv192021 = promotionProg\tramMgr.newSaveGroupZV192021(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t\n\t\t\tresult.put(ERROR, false);\n\t\t\tif (returnMap.get(\"listSubLevelMua\") != null) {\n\t\t\t\tresult.put(\"listSubLevelMua\", returnMap.get(\"listSubLevelMua\"));\n\t\t\t}\n\t\t\tif (returnMap.get(\"listSubLevelKM\") != null) {\n\t\t\t\tresult.put(\"listSubLevelKM\", returnMap.get(\"listSubLevelKM\"));\n\t\t\t}\n\t\t\tif (mappingId != null) {\n\t\t\t\tGroupMapping mapping = promotionProgramMgr.getGroupMappingById(mappingId);\n\t\t\t\tif (mapping != null && mapping.getPromotionGroup() != null && mapping.getPromotionGroup().getPromotionProgram() != null) {\n\t\t\t\t\tPromotionProgram program = mapping.getPromotionGroup().getPromotionProgram();\n\t\t\t\t\tpromotionProgramMgr.updateMD5ValidCode(program, getLogInfoVO());\n\t\t\t\t\tif (mapping.getSaleGroup() != null) {\n\t\t\t\t\t\tpromotionProgramMgr.updateGroupLevelOrderNumber(program.getId(), mapping.getSaleGroup().getId(), getLogInfoVO());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IllegalArgumentException ie) {\n\t\t\tString msg = ie.getMessage();\n\t\t\tif (msg != null) {\n\t\t\t\tif (msg.contains(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS)) {\n\t\t\t\t\tint idx = msg.indexOf(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS);\n\t\t\t\t\tif (idx > -1) {\n\t\t\t\t\t\tString err = msg.substring(idx);\n\t\t\t\t\t\terr = err.replace(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS, \"\");\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.product.in.product.groups\", err));\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t}\n\t\t\t\t} else if (msg.contains(PromotionProgramMgr.DUPLICATE_LEVELS)) {\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.level\"));\n\t\t\t\t\treturn SUCCESS;\n\t\t\t\t}\n\t\t\t}\n\t\t\tLogUtility.logErrorStandard(ie, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t} catch (Exception e) {\n\t\t\tLogUtility.logErrorStandard(e, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public int getLevel()\n {\n return level;\n }",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public int getLevel()\r\n {\r\n return level;\r\n }",
"public int getLevel() {\r\n return level;\r\n }",
"public void setLevel(String newLevel) {\n level = newLevel;\n }",
"@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime >= #{higherSkuParam.startTime}\",\n \"AND s.updateTime <= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\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 }",
"public int getLevel() {\n return level;\n }",
"AgentLevel selectByPrimaryKey(Long id);",
"int countByExample(ReviewLevelSettingExample example);",
"public int getLevelValue() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public String getLevel(){\n\t\treturn level;\n\t}",
"public int getLevel() {\n \t\treturn level;\n \t}",
"public int getLevel()\r\n {\r\n return r_level;\r\n }",
"public int level () {\r\n int iLevel;\r\n\r\n if (isNull(\"id_term1\"))\r\n iLevel = 1;\r\n else if (isNull(\"id_term2\"))\r\n iLevel = 2;\r\n else if (isNull(\"id_term3\"))\r\n iLevel = 3;\r\n else if (isNull(\"id_term4\"))\r\n iLevel = 4;\r\n else if (isNull(\"id_term5\"))\r\n iLevel = 5;\r\n else if (isNull(\"id_term6\"))\r\n iLevel = 6;\r\n else if (isNull(\"id_term7\"))\r\n iLevel = 7;\r\n else if (isNull(\"id_term8\"))\r\n iLevel = 8;\r\n else if (isNull(\"id_term9\"))\r\n iLevel = 9;\r\n else\r\n iLevel = 10;\r\n\r\n return iLevel;\r\n }",
"public void setLevel(String value) {\n this.level = value;\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 }",
"public Long getLevel() {\r\n return (Long) getAttributeInternal(LEVEL);\r\n }",
"public int getLevel(){\n\t\treturn this.level;\n\t}",
"public void setLevel(Long value) {\r\n setAttributeInternal(LEVEL, value);\r\n }",
"public void setLevel(int value) {\n this.level = value;\n }",
"int getLevelTableListCount();",
"public static String getKML(int id, int level) \n\t\t\t{\n\t\t\t\tString ans = null;\n\t\t\t\tString allCustomersQuery = \"SELECT * FROM Users where userID=\"+id+\";\";\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tConnection connection = \n\t\t\t\t\tDriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\t\t\n\t\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\t\tResultSet resultSet = statement.executeQuery(allCustomersQuery);\n\t\t\t\t\tif(resultSet!=null && resultSet.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tans = resultSet.getString(\"kml_\"+level);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SQLException sqle) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"SQLException: \" + sqle.getMessage());\n\t\t\t\t\tSystem.out.println(\"Vendor Error: \" + sqle.getErrorCode());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (ClassNotFoundException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn ans;\n\t\t\t}",
"protected abstract Level[] getLevelSet();",
"public void setLevel(final String level) {\n setAttribute(ATTRIBUTE_LEVEL, level);\n }",
"public void choiceLevel(String lev) {\n switch (lev) {\n\n case \"ALL\":\n mLevelLogger = Level.ALL;\n break;\n case \"NOTIFICATION\":\n mLevelLogger = Level.INFO;\n break;\n case \"HIGH\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"MEDIUM\":\n mLevelLogger = Level.WARNING;\n break;\n case \"LOW\":\n mLevelLogger = Level.INFO;\n break;\n case \"SEVERE\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"WARNING\":\n mLevelLogger = Level.WARNING;\n break;\n case \"INFO\":\n mLevelLogger = Level.INFO;\n break;\n case \"CONFIG\":\n mLevelLogger = Level.CONFIG;\n break;\n case \"FINE\":\n mLevelLogger = Level.FINE;\n break;\n case \"FINER\":\n mLevelLogger = Level.FINER;\n break;\n case \"FINEST\":\n mLevelLogger = Level.FINEST;\n break;\n case \"OFF\":\n mLevelLogger = Level.OFF;\n break;\n default:\n logger.warning(\"Unknow Level:\" + lev);\n }\n }",
"public String getLevel() {\n return level;\n }"
]
| [
"0.6840986",
"0.61784756",
"0.6122362",
"0.52511483",
"0.52083963",
"0.52072066",
"0.5130003",
"0.5100895",
"0.50540996",
"0.5007428",
"0.49974728",
"0.4987594",
"0.49781394",
"0.4947288",
"0.49468568",
"0.49425763",
"0.49357766",
"0.49357766",
"0.49357766",
"0.49357766",
"0.49357766",
"0.48980212",
"0.48966578",
"0.4896569",
"0.48927715",
"0.4875368",
"0.48514745",
"0.48514745",
"0.48448968",
"0.48336077",
"0.48235542",
"0.4821486",
"0.4821486",
"0.48068282",
"0.48026863",
"0.4795162",
"0.47929353",
"0.47929353",
"0.47836816",
"0.47810268",
"0.47806755",
"0.47795922",
"0.47795922",
"0.47698557",
"0.47331467",
"0.47329077",
"0.47289175",
"0.47128263",
"0.4692519",
"0.46902812",
"0.46849197",
"0.46836",
"0.4675495",
"0.46726754",
"0.46726754",
"0.46653315",
"0.46507558",
"0.46507558",
"0.46507558",
"0.46507558",
"0.46507558",
"0.46378082",
"0.4635005",
"0.46067655",
"0.4606108",
"0.46042815",
"0.46022463",
"0.45970282",
"0.45956245",
"0.45913938",
"0.45913938",
"0.45913938",
"0.45913938",
"0.45913938",
"0.45913938",
"0.45913938",
"0.45913938",
"0.45913938",
"0.45913938",
"0.45854858",
"0.45801917",
"0.45697984",
"0.45672837",
"0.45672837",
"0.45641646",
"0.45630324",
"0.45616055",
"0.45602432",
"0.45553064",
"0.45534164",
"0.45450625",
"0.4543133",
"0.4536624",
"0.45296207",
"0.45221815",
"0.4520455",
"0.45155385",
"0.45125827",
"0.45119157",
"0.45074117"
]
| 0.62142193 | 1 |
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting | int insertSelective(ReviewLevelSetting record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResultMap\")\r\n ReviewLevelSetting selectByPrimaryKey(String id);",
"@Insert({\r\n \"insert into `review_level_setting` (`id`, `ops_op`, \",\r\n \"`ops_op_label`, `ops_op_level`, \",\r\n \"`created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, \",\r\n \"`del_flg`)\",\r\n \"values (#{id,jdbcType=VARCHAR}, #{opsOp,jdbcType=VARCHAR}, \",\r\n \"#{opsOpLabel,jdbcType=VARCHAR}, #{opsOpLevel,jdbcType=VARCHAR}, \",\r\n \"#{createdBy,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, \",\r\n \"#{updatedBy,jdbcType=VARCHAR}, #{updatedAt,jdbcType=TIMESTAMP}, \",\r\n \"#{delFlg,jdbcType=VARCHAR})\"\r\n })\r\n int insert(ReviewLevelSetting record);",
"List<ReviewLevelSetting> selectByExample(ReviewLevelSettingExample example);",
"@Update({\r\n \"update `review_level_setting`\",\r\n \"set `ops_op` = #{opsOp,jdbcType=VARCHAR},\",\r\n \"`ops_op_label` = #{opsOpLabel,jdbcType=VARCHAR},\",\r\n \"`ops_op_level` = #{opsOpLevel,jdbcType=VARCHAR},\",\r\n \"`created_by` = #{createdBy,jdbcType=VARCHAR},\",\r\n \"`created_at` = #{createdAt,jdbcType=TIMESTAMP},\",\r\n \"`updated_by` = #{updatedBy,jdbcType=VARCHAR},\",\r\n \"`updated_at` = #{updatedAt,jdbcType=TIMESTAMP},\",\r\n \"`del_flg` = #{delFlg,jdbcType=VARCHAR}\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int updateByPrimaryKey(ReviewLevelSetting record);",
"public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}",
"int updateByPrimaryKeySelective(ReviewLevelSetting record);",
"public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }",
"public void setLevel(String level);",
"public Integer getLevelId() {\n return levelId;\n }",
"public void setLevel(String level){\n\t\tthis.level = level;\n\t}",
"protected void setLevel(int level){\r\n this.level = level;\r\n }",
"public void setLevel(int newlevel)\n {\n level = newlevel; \n }",
"public void setLevel(int level){\n\t\tthis.level = level;\n\t}",
"public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }",
"public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}",
"@Delete({\r\n \"delete from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int deleteByPrimaryKey(String id);",
"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 }",
"public void setMapLevel(String maptyp, int level) {\n\t\tprefs.putInt(title + \".\" + maptyp, level);\n\t}",
"public void setLevelId(Integer levelId) {\n this.levelId = levelId;\n }",
"public String getLevelId() {\n return levelId;\n }",
"public void setLevelLimit(Integer levelLimit) {\n\t\tthis.levelLimit = levelLimit;\r\n\t}",
"public void setLevel(int level) {\n \t\tthis.level = level;\n \t}",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}",
"public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}",
"protected void setLevel(int level)\n {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"int updateByExample(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public int getLevelNo() {\n return levelNo;\n }",
"public int getLevel(){\n return level;\n }",
"public int getLevel(){\n return level;\n }",
"@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();",
"@Override\n public void onCreate(SQLiteDatabase db) { db.execSQL(\"create table vanyrLevel(lvl int(1));\"); }",
"public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}",
"int getGoalConfigLevelValue();",
"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 int getLevel()\n {\n return level; \n }",
"public void setLevel(String lev) {\n\t\tlevel = lev;\n\t}",
"public void setLevelId(String levelId) {\n this.levelId = levelId;\n }",
"int updateByExampleSelective(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public String getLevel ()\n {\n return level;\n }",
"public int getLevel(){\n\t\treturn level;\n\t}",
"public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}",
"public void setLevel(int v)\n {\n m_level = v;\n }",
"protected int getLevel(){\r\n return this.level;\r\n }",
"public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel() { \r\n\t\treturn level; \r\n\t}",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public RiskLevelSelectionModel() {\n\n // get the risk levels\n Set<RiskLevel> riskLevelSet = AgilePlanningObjectFactory.getStoryService().findAllRiskLevel();\n \n // put the risk levels in a list\n riskLevels = new ArrayList<RiskLevel>(riskLevelSet);\n \n }",
"public String newSaveLevel() {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\ttry {\n\t\t\tif (mappingId == null || mappingId == 0) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t/**\n\t\t\t * check Cac muc trong nhom phai co so luong/so tien khac nhau.\n\t\t\t * Khong the muc 1 la 1A, 2B muc 2 cung la 1A, 2B\n\t\t\t */\n\t\t\t//trung nguyen\n\t\t\tList<ExMapping> lstSubCheck = listSubLevelMua;\n\t\t\tInteger checkLevel = 0;\n\t\t\tProductGroup pg = promotionProgramMgr.getrecursive(groupMuaId);\n\t\t\tint recursive = pg.getRecursive();\n\t\t\tint sizeGroupLevel = promotionProgramMgr.getSize(groupMuaId).size();\n\t\t\tboolean isFlag = false;\n\t\t\tif (sizeGroupLevel > 0){\n\t\t\t\tfor (int i = 0; i< sizeGroupLevel; i++){\n\t\t\t\t\tInteger conditionGroupLevel = promotionProgramMgr.getSize(groupMuaId).get(i).getCondition();\n\t\t\t\t\tif (conditionGroupLevel != null){\n\t\t\t\t\t\tisFlag = true;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(\"ZV21\".equals(typeCode) || \"ZV20\".equals(typeCode)){\n\t\t\t\tif(recursive==1){\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tif (isFlag == false && sizeGroupLevel > 2){\n\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstSubCheck = listSubLevelGroupZV192021;\n\t\t\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif (sizeGroupLevel > 1 && isFlag){\n\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tcheckLevel = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t}\n\t\t\tif (checkLevel == 1) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.exist\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 2) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 3) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.value.not.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tMap<String, Object> returnMap = promotionProgramMgr.newSaveSublevel(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t//Map<String, Object> returnMapGroupZv192021 = promotionProg\tramMgr.newSaveGroupZV192021(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t\n\t\t\tresult.put(ERROR, false);\n\t\t\tif (returnMap.get(\"listSubLevelMua\") != null) {\n\t\t\t\tresult.put(\"listSubLevelMua\", returnMap.get(\"listSubLevelMua\"));\n\t\t\t}\n\t\t\tif (returnMap.get(\"listSubLevelKM\") != null) {\n\t\t\t\tresult.put(\"listSubLevelKM\", returnMap.get(\"listSubLevelKM\"));\n\t\t\t}\n\t\t\tif (mappingId != null) {\n\t\t\t\tGroupMapping mapping = promotionProgramMgr.getGroupMappingById(mappingId);\n\t\t\t\tif (mapping != null && mapping.getPromotionGroup() != null && mapping.getPromotionGroup().getPromotionProgram() != null) {\n\t\t\t\t\tPromotionProgram program = mapping.getPromotionGroup().getPromotionProgram();\n\t\t\t\t\tpromotionProgramMgr.updateMD5ValidCode(program, getLogInfoVO());\n\t\t\t\t\tif (mapping.getSaleGroup() != null) {\n\t\t\t\t\t\tpromotionProgramMgr.updateGroupLevelOrderNumber(program.getId(), mapping.getSaleGroup().getId(), getLogInfoVO());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IllegalArgumentException ie) {\n\t\t\tString msg = ie.getMessage();\n\t\t\tif (msg != null) {\n\t\t\t\tif (msg.contains(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS)) {\n\t\t\t\t\tint idx = msg.indexOf(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS);\n\t\t\t\t\tif (idx > -1) {\n\t\t\t\t\t\tString err = msg.substring(idx);\n\t\t\t\t\t\terr = err.replace(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS, \"\");\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.product.in.product.groups\", err));\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t}\n\t\t\t\t} else if (msg.contains(PromotionProgramMgr.DUPLICATE_LEVELS)) {\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.level\"));\n\t\t\t\t\treturn SUCCESS;\n\t\t\t\t}\n\t\t\t}\n\t\t\tLogUtility.logErrorStandard(ie, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t} catch (Exception e) {\n\t\t\tLogUtility.logErrorStandard(e, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public int getLevel()\n {\n return level;\n }",
"public int getLevel()\r\n {\r\n return level;\r\n }",
"public int getLevel() {\r\n return level;\r\n }",
"public void setLevel(String newLevel) {\n level = newLevel;\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 }",
"public int getLevel() {\n return level;\n }",
"@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime >= #{higherSkuParam.startTime}\",\n \"AND s.updateTime <= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}",
"AgentLevel selectByPrimaryKey(Long id);",
"int countByExample(ReviewLevelSettingExample example);",
"public int getLevelValue() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public String getLevel(){\n\t\treturn level;\n\t}",
"public int getLevel() {\n \t\treturn level;\n \t}",
"public int getLevel()\r\n {\r\n return r_level;\r\n }",
"public int level () {\r\n int iLevel;\r\n\r\n if (isNull(\"id_term1\"))\r\n iLevel = 1;\r\n else if (isNull(\"id_term2\"))\r\n iLevel = 2;\r\n else if (isNull(\"id_term3\"))\r\n iLevel = 3;\r\n else if (isNull(\"id_term4\"))\r\n iLevel = 4;\r\n else if (isNull(\"id_term5\"))\r\n iLevel = 5;\r\n else if (isNull(\"id_term6\"))\r\n iLevel = 6;\r\n else if (isNull(\"id_term7\"))\r\n iLevel = 7;\r\n else if (isNull(\"id_term8\"))\r\n iLevel = 8;\r\n else if (isNull(\"id_term9\"))\r\n iLevel = 9;\r\n else\r\n iLevel = 10;\r\n\r\n return iLevel;\r\n }",
"public void setLevel(String value) {\n this.level = value;\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 }",
"public Long getLevel() {\r\n return (Long) getAttributeInternal(LEVEL);\r\n }",
"public int getLevel(){\n\t\treturn this.level;\n\t}",
"public void setLevel(Long value) {\r\n setAttributeInternal(LEVEL, value);\r\n }",
"public void setLevel(int value) {\n this.level = value;\n }",
"int getLevelTableListCount();",
"public static String getKML(int id, int level) \n\t\t\t{\n\t\t\t\tString ans = null;\n\t\t\t\tString allCustomersQuery = \"SELECT * FROM Users where userID=\"+id+\";\";\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tConnection connection = \n\t\t\t\t\tDriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\t\t\n\t\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\t\tResultSet resultSet = statement.executeQuery(allCustomersQuery);\n\t\t\t\t\tif(resultSet!=null && resultSet.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tans = resultSet.getString(\"kml_\"+level);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SQLException sqle) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"SQLException: \" + sqle.getMessage());\n\t\t\t\t\tSystem.out.println(\"Vendor Error: \" + sqle.getErrorCode());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (ClassNotFoundException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn ans;\n\t\t\t}",
"protected abstract Level[] getLevelSet();",
"public void choiceLevel(String lev) {\n switch (lev) {\n\n case \"ALL\":\n mLevelLogger = Level.ALL;\n break;\n case \"NOTIFICATION\":\n mLevelLogger = Level.INFO;\n break;\n case \"HIGH\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"MEDIUM\":\n mLevelLogger = Level.WARNING;\n break;\n case \"LOW\":\n mLevelLogger = Level.INFO;\n break;\n case \"SEVERE\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"WARNING\":\n mLevelLogger = Level.WARNING;\n break;\n case \"INFO\":\n mLevelLogger = Level.INFO;\n break;\n case \"CONFIG\":\n mLevelLogger = Level.CONFIG;\n break;\n case \"FINE\":\n mLevelLogger = Level.FINE;\n break;\n case \"FINER\":\n mLevelLogger = Level.FINER;\n break;\n case \"FINEST\":\n mLevelLogger = Level.FINEST;\n break;\n case \"OFF\":\n mLevelLogger = Level.OFF;\n break;\n default:\n logger.warning(\"Unknow Level:\" + lev);\n }\n }",
"public void setLevel(final String level) {\n setAttribute(ATTRIBUTE_LEVEL, level);\n }",
"public String getLevel() {\n return level;\n }"
]
| [
"0.68411285",
"0.62139314",
"0.6177488",
"0.61231226",
"0.5251172",
"0.52065986",
"0.5131146",
"0.5103007",
"0.50536233",
"0.50087017",
"0.49993244",
"0.4989223",
"0.4979635",
"0.49489287",
"0.49485302",
"0.4942931",
"0.49369144",
"0.49369144",
"0.49369144",
"0.49369144",
"0.49369144",
"0.48987874",
"0.48974442",
"0.48967212",
"0.48949906",
"0.48771417",
"0.48528093",
"0.48528093",
"0.48465464",
"0.4832779",
"0.48253357",
"0.48225835",
"0.48225835",
"0.48049483",
"0.48030204",
"0.47935107",
"0.47935107",
"0.47933108",
"0.47853252",
"0.4782855",
"0.47822213",
"0.47809744",
"0.47809744",
"0.47703287",
"0.4735055",
"0.47324276",
"0.47272494",
"0.4713772",
"0.46937433",
"0.4691861",
"0.46853456",
"0.46852413",
"0.46769994",
"0.4672971",
"0.4672971",
"0.46665168",
"0.4651745",
"0.4651745",
"0.4651745",
"0.4651745",
"0.4651745",
"0.46395516",
"0.46359685",
"0.460822",
"0.46075362",
"0.4605197",
"0.46032527",
"0.45983076",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.45899925",
"0.4584065",
"0.45795137",
"0.45706922",
"0.4568304",
"0.4568304",
"0.45660332",
"0.45644328",
"0.45632306",
"0.45618185",
"0.4556771",
"0.45550662",
"0.45458576",
"0.4544032",
"0.45381787",
"0.45308676",
"0.45230228",
"0.45203757",
"0.45169285",
"0.45143482",
"0.4514284",
"0.4509002"
]
| 0.5207476 | 5 |
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting | List<ReviewLevelSetting> selectByExample(ReviewLevelSettingExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResultMap\")\r\n ReviewLevelSetting selectByPrimaryKey(String id);",
"@Insert({\r\n \"insert into `review_level_setting` (`id`, `ops_op`, \",\r\n \"`ops_op_label`, `ops_op_level`, \",\r\n \"`created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, \",\r\n \"`del_flg`)\",\r\n \"values (#{id,jdbcType=VARCHAR}, #{opsOp,jdbcType=VARCHAR}, \",\r\n \"#{opsOpLabel,jdbcType=VARCHAR}, #{opsOpLevel,jdbcType=VARCHAR}, \",\r\n \"#{createdBy,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, \",\r\n \"#{updatedBy,jdbcType=VARCHAR}, #{updatedAt,jdbcType=TIMESTAMP}, \",\r\n \"#{delFlg,jdbcType=VARCHAR})\"\r\n })\r\n int insert(ReviewLevelSetting record);",
"@Update({\r\n \"update `review_level_setting`\",\r\n \"set `ops_op` = #{opsOp,jdbcType=VARCHAR},\",\r\n \"`ops_op_label` = #{opsOpLabel,jdbcType=VARCHAR},\",\r\n \"`ops_op_level` = #{opsOpLevel,jdbcType=VARCHAR},\",\r\n \"`created_by` = #{createdBy,jdbcType=VARCHAR},\",\r\n \"`created_at` = #{createdAt,jdbcType=TIMESTAMP},\",\r\n \"`updated_by` = #{updatedBy,jdbcType=VARCHAR},\",\r\n \"`updated_at` = #{updatedAt,jdbcType=TIMESTAMP},\",\r\n \"`del_flg` = #{delFlg,jdbcType=VARCHAR}\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int updateByPrimaryKey(ReviewLevelSetting record);",
"public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}",
"int insertSelective(ReviewLevelSetting record);",
"int updateByPrimaryKeySelective(ReviewLevelSetting record);",
"public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }",
"public void setLevel(String level);",
"public Integer getLevelId() {\n return levelId;\n }",
"public void setLevel(String level){\n\t\tthis.level = level;\n\t}",
"protected void setLevel(int level){\r\n this.level = level;\r\n }",
"public void setLevel(int newlevel)\n {\n level = newlevel; \n }",
"public void setLevel(int level){\n\t\tthis.level = level;\n\t}",
"public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }",
"public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}",
"@Delete({\r\n \"delete from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int deleteByPrimaryKey(String id);",
"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 }",
"public void setMapLevel(String maptyp, int level) {\n\t\tprefs.putInt(title + \".\" + maptyp, level);\n\t}",
"public void setLevelId(Integer levelId) {\n this.levelId = levelId;\n }",
"public String getLevelId() {\n return levelId;\n }",
"public void setLevelLimit(Integer levelLimit) {\n\t\tthis.levelLimit = levelLimit;\r\n\t}",
"public void setLevel(int level) {\n \t\tthis.level = level;\n \t}",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}",
"public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}",
"protected void setLevel(int level)\n {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"int updateByExample(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public int getLevelNo() {\n return levelNo;\n }",
"public int getLevel(){\n return level;\n }",
"public int getLevel(){\n return level;\n }",
"@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();",
"@Override\n public void onCreate(SQLiteDatabase db) { db.execSQL(\"create table vanyrLevel(lvl int(1));\"); }",
"public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}",
"int getGoalConfigLevelValue();",
"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 int getLevel()\n {\n return level; \n }",
"public void setLevel(String lev) {\n\t\tlevel = lev;\n\t}",
"public void setLevelId(String levelId) {\n this.levelId = levelId;\n }",
"int updateByExampleSelective(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public String getLevel ()\n {\n return level;\n }",
"public int getLevel(){\n\t\treturn level;\n\t}",
"public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}",
"protected int getLevel(){\r\n return this.level;\r\n }",
"public void setLevel(int v)\n {\n m_level = v;\n }",
"public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel() { \r\n\t\treturn level; \r\n\t}",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public RiskLevelSelectionModel() {\n\n // get the risk levels\n Set<RiskLevel> riskLevelSet = AgilePlanningObjectFactory.getStoryService().findAllRiskLevel();\n \n // put the risk levels in a list\n riskLevels = new ArrayList<RiskLevel>(riskLevelSet);\n \n }",
"public String newSaveLevel() {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\ttry {\n\t\t\tif (mappingId == null || mappingId == 0) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t/**\n\t\t\t * check Cac muc trong nhom phai co so luong/so tien khac nhau.\n\t\t\t * Khong the muc 1 la 1A, 2B muc 2 cung la 1A, 2B\n\t\t\t */\n\t\t\t//trung nguyen\n\t\t\tList<ExMapping> lstSubCheck = listSubLevelMua;\n\t\t\tInteger checkLevel = 0;\n\t\t\tProductGroup pg = promotionProgramMgr.getrecursive(groupMuaId);\n\t\t\tint recursive = pg.getRecursive();\n\t\t\tint sizeGroupLevel = promotionProgramMgr.getSize(groupMuaId).size();\n\t\t\tboolean isFlag = false;\n\t\t\tif (sizeGroupLevel > 0){\n\t\t\t\tfor (int i = 0; i< sizeGroupLevel; i++){\n\t\t\t\t\tInteger conditionGroupLevel = promotionProgramMgr.getSize(groupMuaId).get(i).getCondition();\n\t\t\t\t\tif (conditionGroupLevel != null){\n\t\t\t\t\t\tisFlag = true;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(\"ZV21\".equals(typeCode) || \"ZV20\".equals(typeCode)){\n\t\t\t\tif(recursive==1){\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tif (isFlag == false && sizeGroupLevel > 2){\n\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstSubCheck = listSubLevelGroupZV192021;\n\t\t\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif (sizeGroupLevel > 1 && isFlag){\n\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tcheckLevel = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t}\n\t\t\tif (checkLevel == 1) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.exist\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 2) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 3) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.value.not.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tMap<String, Object> returnMap = promotionProgramMgr.newSaveSublevel(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t//Map<String, Object> returnMapGroupZv192021 = promotionProg\tramMgr.newSaveGroupZV192021(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t\n\t\t\tresult.put(ERROR, false);\n\t\t\tif (returnMap.get(\"listSubLevelMua\") != null) {\n\t\t\t\tresult.put(\"listSubLevelMua\", returnMap.get(\"listSubLevelMua\"));\n\t\t\t}\n\t\t\tif (returnMap.get(\"listSubLevelKM\") != null) {\n\t\t\t\tresult.put(\"listSubLevelKM\", returnMap.get(\"listSubLevelKM\"));\n\t\t\t}\n\t\t\tif (mappingId != null) {\n\t\t\t\tGroupMapping mapping = promotionProgramMgr.getGroupMappingById(mappingId);\n\t\t\t\tif (mapping != null && mapping.getPromotionGroup() != null && mapping.getPromotionGroup().getPromotionProgram() != null) {\n\t\t\t\t\tPromotionProgram program = mapping.getPromotionGroup().getPromotionProgram();\n\t\t\t\t\tpromotionProgramMgr.updateMD5ValidCode(program, getLogInfoVO());\n\t\t\t\t\tif (mapping.getSaleGroup() != null) {\n\t\t\t\t\t\tpromotionProgramMgr.updateGroupLevelOrderNumber(program.getId(), mapping.getSaleGroup().getId(), getLogInfoVO());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IllegalArgumentException ie) {\n\t\t\tString msg = ie.getMessage();\n\t\t\tif (msg != null) {\n\t\t\t\tif (msg.contains(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS)) {\n\t\t\t\t\tint idx = msg.indexOf(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS);\n\t\t\t\t\tif (idx > -1) {\n\t\t\t\t\t\tString err = msg.substring(idx);\n\t\t\t\t\t\terr = err.replace(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS, \"\");\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.product.in.product.groups\", err));\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t}\n\t\t\t\t} else if (msg.contains(PromotionProgramMgr.DUPLICATE_LEVELS)) {\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.level\"));\n\t\t\t\t\treturn SUCCESS;\n\t\t\t\t}\n\t\t\t}\n\t\t\tLogUtility.logErrorStandard(ie, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t} catch (Exception e) {\n\t\t\tLogUtility.logErrorStandard(e, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public int getLevel()\n {\n return level;\n }",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public int getLevel()\r\n {\r\n return level;\r\n }",
"public int getLevel() {\r\n return level;\r\n }",
"public void setLevel(String newLevel) {\n level = newLevel;\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 }",
"public int getLevel() {\n return level;\n }",
"@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime >= #{higherSkuParam.startTime}\",\n \"AND s.updateTime <= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}",
"AgentLevel selectByPrimaryKey(Long id);",
"int countByExample(ReviewLevelSettingExample example);",
"public int getLevelValue() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public String getLevel(){\n\t\treturn level;\n\t}",
"public int getLevel() {\n \t\treturn level;\n \t}",
"public int getLevel()\r\n {\r\n return r_level;\r\n }",
"public int level () {\r\n int iLevel;\r\n\r\n if (isNull(\"id_term1\"))\r\n iLevel = 1;\r\n else if (isNull(\"id_term2\"))\r\n iLevel = 2;\r\n else if (isNull(\"id_term3\"))\r\n iLevel = 3;\r\n else if (isNull(\"id_term4\"))\r\n iLevel = 4;\r\n else if (isNull(\"id_term5\"))\r\n iLevel = 5;\r\n else if (isNull(\"id_term6\"))\r\n iLevel = 6;\r\n else if (isNull(\"id_term7\"))\r\n iLevel = 7;\r\n else if (isNull(\"id_term8\"))\r\n iLevel = 8;\r\n else if (isNull(\"id_term9\"))\r\n iLevel = 9;\r\n else\r\n iLevel = 10;\r\n\r\n return iLevel;\r\n }",
"public void setLevel(String value) {\n this.level = value;\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 }",
"public Long getLevel() {\r\n return (Long) getAttributeInternal(LEVEL);\r\n }",
"public int getLevel(){\n\t\treturn this.level;\n\t}",
"public void setLevel(Long value) {\r\n setAttributeInternal(LEVEL, value);\r\n }",
"public void setLevel(int value) {\n this.level = value;\n }",
"int getLevelTableListCount();",
"public static String getKML(int id, int level) \n\t\t\t{\n\t\t\t\tString ans = null;\n\t\t\t\tString allCustomersQuery = \"SELECT * FROM Users where userID=\"+id+\";\";\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tConnection connection = \n\t\t\t\t\tDriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\t\t\n\t\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\t\tResultSet resultSet = statement.executeQuery(allCustomersQuery);\n\t\t\t\t\tif(resultSet!=null && resultSet.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tans = resultSet.getString(\"kml_\"+level);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SQLException sqle) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"SQLException: \" + sqle.getMessage());\n\t\t\t\t\tSystem.out.println(\"Vendor Error: \" + sqle.getErrorCode());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (ClassNotFoundException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn ans;\n\t\t\t}",
"protected abstract Level[] getLevelSet();",
"public void choiceLevel(String lev) {\n switch (lev) {\n\n case \"ALL\":\n mLevelLogger = Level.ALL;\n break;\n case \"NOTIFICATION\":\n mLevelLogger = Level.INFO;\n break;\n case \"HIGH\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"MEDIUM\":\n mLevelLogger = Level.WARNING;\n break;\n case \"LOW\":\n mLevelLogger = Level.INFO;\n break;\n case \"SEVERE\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"WARNING\":\n mLevelLogger = Level.WARNING;\n break;\n case \"INFO\":\n mLevelLogger = Level.INFO;\n break;\n case \"CONFIG\":\n mLevelLogger = Level.CONFIG;\n break;\n case \"FINE\":\n mLevelLogger = Level.FINE;\n break;\n case \"FINER\":\n mLevelLogger = Level.FINER;\n break;\n case \"FINEST\":\n mLevelLogger = Level.FINEST;\n break;\n case \"OFF\":\n mLevelLogger = Level.OFF;\n break;\n default:\n logger.warning(\"Unknow Level:\" + lev);\n }\n }",
"public void setLevel(final String level) {\n setAttribute(ATTRIBUTE_LEVEL, level);\n }",
"public String getLevel() {\n return level;\n }"
]
| [
"0.68405455",
"0.6214392",
"0.6122873",
"0.52501476",
"0.5209048",
"0.52076334",
"0.5129414",
"0.5100407",
"0.5052653",
"0.50065285",
"0.4997834",
"0.4987267",
"0.49777448",
"0.49470526",
"0.4946789",
"0.4943164",
"0.49352738",
"0.49352738",
"0.49352738",
"0.49352738",
"0.49352738",
"0.4897981",
"0.48966217",
"0.48953784",
"0.48922315",
"0.4875387",
"0.48509824",
"0.48509824",
"0.48447856",
"0.48323438",
"0.4823998",
"0.4820481",
"0.4820481",
"0.48058972",
"0.48024517",
"0.47925824",
"0.47925824",
"0.47925574",
"0.47838923",
"0.47811046",
"0.47808534",
"0.4779182",
"0.4779182",
"0.47693914",
"0.4734142",
"0.4731264",
"0.47278178",
"0.47123492",
"0.46927744",
"0.46900773",
"0.46848643",
"0.4684075",
"0.46751198",
"0.46722054",
"0.46722054",
"0.4665861",
"0.4650869",
"0.4650869",
"0.4650869",
"0.4650869",
"0.4650869",
"0.4639427",
"0.46331465",
"0.46066687",
"0.46057633",
"0.4604416",
"0.46025124",
"0.4596284",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45893687",
"0.45831493",
"0.45797887",
"0.45699596",
"0.45677593",
"0.45677593",
"0.4564406",
"0.45637065",
"0.45630905",
"0.4560426",
"0.45543522",
"0.45536578",
"0.45454022",
"0.45432645",
"0.45359462",
"0.45291114",
"0.45202962",
"0.4519246",
"0.45159075",
"0.4513586",
"0.45123118",
"0.4507513"
]
| 0.6177646 | 2 |
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting | @Select({
"select",
"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, ",
"`updated_by`, `updated_at`, `del_flg`",
"from `review_level_setting`",
"where `id` = #{id,jdbcType=VARCHAR}"
})
@ResultMap("BaseResultMap")
ReviewLevelSetting selectByPrimaryKey(String id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Insert({\r\n \"insert into `review_level_setting` (`id`, `ops_op`, \",\r\n \"`ops_op_label`, `ops_op_level`, \",\r\n \"`created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, \",\r\n \"`del_flg`)\",\r\n \"values (#{id,jdbcType=VARCHAR}, #{opsOp,jdbcType=VARCHAR}, \",\r\n \"#{opsOpLabel,jdbcType=VARCHAR}, #{opsOpLevel,jdbcType=VARCHAR}, \",\r\n \"#{createdBy,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, \",\r\n \"#{updatedBy,jdbcType=VARCHAR}, #{updatedAt,jdbcType=TIMESTAMP}, \",\r\n \"#{delFlg,jdbcType=VARCHAR})\"\r\n })\r\n int insert(ReviewLevelSetting record);",
"List<ReviewLevelSetting> selectByExample(ReviewLevelSettingExample example);",
"@Update({\r\n \"update `review_level_setting`\",\r\n \"set `ops_op` = #{opsOp,jdbcType=VARCHAR},\",\r\n \"`ops_op_label` = #{opsOpLabel,jdbcType=VARCHAR},\",\r\n \"`ops_op_level` = #{opsOpLevel,jdbcType=VARCHAR},\",\r\n \"`created_by` = #{createdBy,jdbcType=VARCHAR},\",\r\n \"`created_at` = #{createdAt,jdbcType=TIMESTAMP},\",\r\n \"`updated_by` = #{updatedBy,jdbcType=VARCHAR},\",\r\n \"`updated_at` = #{updatedAt,jdbcType=TIMESTAMP},\",\r\n \"`del_flg` = #{delFlg,jdbcType=VARCHAR}\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int updateByPrimaryKey(ReviewLevelSetting record);",
"public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}",
"int insertSelective(ReviewLevelSetting record);",
"int updateByPrimaryKeySelective(ReviewLevelSetting record);",
"public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }",
"public void setLevel(String level);",
"public Integer getLevelId() {\n return levelId;\n }",
"public void setLevel(String level){\n\t\tthis.level = level;\n\t}",
"protected void setLevel(int level){\r\n this.level = level;\r\n }",
"public void setLevel(int newlevel)\n {\n level = newlevel; \n }",
"public void setLevel(int level){\n\t\tthis.level = level;\n\t}",
"public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }",
"public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}",
"@Delete({\r\n \"delete from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int deleteByPrimaryKey(String id);",
"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 }",
"public void setMapLevel(String maptyp, int level) {\n\t\tprefs.putInt(title + \".\" + maptyp, level);\n\t}",
"public void setLevelId(Integer levelId) {\n this.levelId = levelId;\n }",
"public String getLevelId() {\n return levelId;\n }",
"public void setLevelLimit(Integer levelLimit) {\n\t\tthis.levelLimit = levelLimit;\r\n\t}",
"public void setLevel(int level) {\n \t\tthis.level = level;\n \t}",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}",
"public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}",
"protected void setLevel(int level)\n {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"int updateByExample(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public int getLevelNo() {\n return levelNo;\n }",
"public int getLevel(){\n return level;\n }",
"public int getLevel(){\n return level;\n }",
"@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();",
"@Override\n public void onCreate(SQLiteDatabase db) { db.execSQL(\"create table vanyrLevel(lvl int(1));\"); }",
"public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}",
"int getGoalConfigLevelValue();",
"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 int getLevel()\n {\n return level; \n }",
"public void setLevel(String lev) {\n\t\tlevel = lev;\n\t}",
"public void setLevelId(String levelId) {\n this.levelId = levelId;\n }",
"int updateByExampleSelective(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public String getLevel ()\n {\n return level;\n }",
"public int getLevel(){\n\t\treturn level;\n\t}",
"public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}",
"protected int getLevel(){\r\n return this.level;\r\n }",
"public void setLevel(int v)\n {\n m_level = v;\n }",
"public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel() { \r\n\t\treturn level; \r\n\t}",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public RiskLevelSelectionModel() {\n\n // get the risk levels\n Set<RiskLevel> riskLevelSet = AgilePlanningObjectFactory.getStoryService().findAllRiskLevel();\n \n // put the risk levels in a list\n riskLevels = new ArrayList<RiskLevel>(riskLevelSet);\n \n }",
"public String newSaveLevel() {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\ttry {\n\t\t\tif (mappingId == null || mappingId == 0) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t/**\n\t\t\t * check Cac muc trong nhom phai co so luong/so tien khac nhau.\n\t\t\t * Khong the muc 1 la 1A, 2B muc 2 cung la 1A, 2B\n\t\t\t */\n\t\t\t//trung nguyen\n\t\t\tList<ExMapping> lstSubCheck = listSubLevelMua;\n\t\t\tInteger checkLevel = 0;\n\t\t\tProductGroup pg = promotionProgramMgr.getrecursive(groupMuaId);\n\t\t\tint recursive = pg.getRecursive();\n\t\t\tint sizeGroupLevel = promotionProgramMgr.getSize(groupMuaId).size();\n\t\t\tboolean isFlag = false;\n\t\t\tif (sizeGroupLevel > 0){\n\t\t\t\tfor (int i = 0; i< sizeGroupLevel; i++){\n\t\t\t\t\tInteger conditionGroupLevel = promotionProgramMgr.getSize(groupMuaId).get(i).getCondition();\n\t\t\t\t\tif (conditionGroupLevel != null){\n\t\t\t\t\t\tisFlag = true;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(\"ZV21\".equals(typeCode) || \"ZV20\".equals(typeCode)){\n\t\t\t\tif(recursive==1){\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tif (isFlag == false && sizeGroupLevel > 2){\n\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstSubCheck = listSubLevelGroupZV192021;\n\t\t\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif (sizeGroupLevel > 1 && isFlag){\n\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tcheckLevel = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t}\n\t\t\tif (checkLevel == 1) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.exist\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 2) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 3) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.value.not.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tMap<String, Object> returnMap = promotionProgramMgr.newSaveSublevel(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t//Map<String, Object> returnMapGroupZv192021 = promotionProg\tramMgr.newSaveGroupZV192021(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t\n\t\t\tresult.put(ERROR, false);\n\t\t\tif (returnMap.get(\"listSubLevelMua\") != null) {\n\t\t\t\tresult.put(\"listSubLevelMua\", returnMap.get(\"listSubLevelMua\"));\n\t\t\t}\n\t\t\tif (returnMap.get(\"listSubLevelKM\") != null) {\n\t\t\t\tresult.put(\"listSubLevelKM\", returnMap.get(\"listSubLevelKM\"));\n\t\t\t}\n\t\t\tif (mappingId != null) {\n\t\t\t\tGroupMapping mapping = promotionProgramMgr.getGroupMappingById(mappingId);\n\t\t\t\tif (mapping != null && mapping.getPromotionGroup() != null && mapping.getPromotionGroup().getPromotionProgram() != null) {\n\t\t\t\t\tPromotionProgram program = mapping.getPromotionGroup().getPromotionProgram();\n\t\t\t\t\tpromotionProgramMgr.updateMD5ValidCode(program, getLogInfoVO());\n\t\t\t\t\tif (mapping.getSaleGroup() != null) {\n\t\t\t\t\t\tpromotionProgramMgr.updateGroupLevelOrderNumber(program.getId(), mapping.getSaleGroup().getId(), getLogInfoVO());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IllegalArgumentException ie) {\n\t\t\tString msg = ie.getMessage();\n\t\t\tif (msg != null) {\n\t\t\t\tif (msg.contains(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS)) {\n\t\t\t\t\tint idx = msg.indexOf(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS);\n\t\t\t\t\tif (idx > -1) {\n\t\t\t\t\t\tString err = msg.substring(idx);\n\t\t\t\t\t\terr = err.replace(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS, \"\");\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.product.in.product.groups\", err));\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t}\n\t\t\t\t} else if (msg.contains(PromotionProgramMgr.DUPLICATE_LEVELS)) {\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.level\"));\n\t\t\t\t\treturn SUCCESS;\n\t\t\t\t}\n\t\t\t}\n\t\t\tLogUtility.logErrorStandard(ie, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t} catch (Exception e) {\n\t\t\tLogUtility.logErrorStandard(e, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public int getLevel()\n {\n return level;\n }",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public int getLevel()\r\n {\r\n return level;\r\n }",
"public int getLevel() {\r\n return level;\r\n }",
"public void setLevel(String newLevel) {\n level = newLevel;\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 }",
"public int getLevel() {\n return level;\n }",
"@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime >= #{higherSkuParam.startTime}\",\n \"AND s.updateTime <= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}",
"AgentLevel selectByPrimaryKey(Long id);",
"int countByExample(ReviewLevelSettingExample example);",
"public int getLevelValue() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public String getLevel(){\n\t\treturn level;\n\t}",
"public int getLevel() {\n \t\treturn level;\n \t}",
"public int getLevel()\r\n {\r\n return r_level;\r\n }",
"public int level () {\r\n int iLevel;\r\n\r\n if (isNull(\"id_term1\"))\r\n iLevel = 1;\r\n else if (isNull(\"id_term2\"))\r\n iLevel = 2;\r\n else if (isNull(\"id_term3\"))\r\n iLevel = 3;\r\n else if (isNull(\"id_term4\"))\r\n iLevel = 4;\r\n else if (isNull(\"id_term5\"))\r\n iLevel = 5;\r\n else if (isNull(\"id_term6\"))\r\n iLevel = 6;\r\n else if (isNull(\"id_term7\"))\r\n iLevel = 7;\r\n else if (isNull(\"id_term8\"))\r\n iLevel = 8;\r\n else if (isNull(\"id_term9\"))\r\n iLevel = 9;\r\n else\r\n iLevel = 10;\r\n\r\n return iLevel;\r\n }",
"public void setLevel(String value) {\n this.level = value;\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 }",
"public Long getLevel() {\r\n return (Long) getAttributeInternal(LEVEL);\r\n }",
"public int getLevel(){\n\t\treturn this.level;\n\t}",
"public void setLevel(Long value) {\r\n setAttributeInternal(LEVEL, value);\r\n }",
"public void setLevel(int value) {\n this.level = value;\n }",
"int getLevelTableListCount();",
"public static String getKML(int id, int level) \n\t\t\t{\n\t\t\t\tString ans = null;\n\t\t\t\tString allCustomersQuery = \"SELECT * FROM Users where userID=\"+id+\";\";\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tConnection connection = \n\t\t\t\t\tDriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\t\t\n\t\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\t\tResultSet resultSet = statement.executeQuery(allCustomersQuery);\n\t\t\t\t\tif(resultSet!=null && resultSet.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tans = resultSet.getString(\"kml_\"+level);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SQLException sqle) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"SQLException: \" + sqle.getMessage());\n\t\t\t\t\tSystem.out.println(\"Vendor Error: \" + sqle.getErrorCode());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (ClassNotFoundException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn ans;\n\t\t\t}",
"protected abstract Level[] getLevelSet();",
"public void choiceLevel(String lev) {\n switch (lev) {\n\n case \"ALL\":\n mLevelLogger = Level.ALL;\n break;\n case \"NOTIFICATION\":\n mLevelLogger = Level.INFO;\n break;\n case \"HIGH\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"MEDIUM\":\n mLevelLogger = Level.WARNING;\n break;\n case \"LOW\":\n mLevelLogger = Level.INFO;\n break;\n case \"SEVERE\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"WARNING\":\n mLevelLogger = Level.WARNING;\n break;\n case \"INFO\":\n mLevelLogger = Level.INFO;\n break;\n case \"CONFIG\":\n mLevelLogger = Level.CONFIG;\n break;\n case \"FINE\":\n mLevelLogger = Level.FINE;\n break;\n case \"FINER\":\n mLevelLogger = Level.FINER;\n break;\n case \"FINEST\":\n mLevelLogger = Level.FINEST;\n break;\n case \"OFF\":\n mLevelLogger = Level.OFF;\n break;\n default:\n logger.warning(\"Unknow Level:\" + lev);\n }\n }",
"public void setLevel(final String level) {\n setAttribute(ATTRIBUTE_LEVEL, level);\n }",
"public String getLevel() {\n return level;\n }"
]
| [
"0.6214392",
"0.6177646",
"0.6122873",
"0.52501476",
"0.5209048",
"0.52076334",
"0.5129414",
"0.5100407",
"0.5052653",
"0.50065285",
"0.4997834",
"0.4987267",
"0.49777448",
"0.49470526",
"0.4946789",
"0.4943164",
"0.49352738",
"0.49352738",
"0.49352738",
"0.49352738",
"0.49352738",
"0.4897981",
"0.48966217",
"0.48953784",
"0.48922315",
"0.4875387",
"0.48509824",
"0.48509824",
"0.48447856",
"0.48323438",
"0.4823998",
"0.4820481",
"0.4820481",
"0.48058972",
"0.48024517",
"0.47925824",
"0.47925824",
"0.47925574",
"0.47838923",
"0.47811046",
"0.47808534",
"0.4779182",
"0.4779182",
"0.47693914",
"0.4734142",
"0.4731264",
"0.47278178",
"0.47123492",
"0.46927744",
"0.46900773",
"0.46848643",
"0.4684075",
"0.46751198",
"0.46722054",
"0.46722054",
"0.4665861",
"0.4650869",
"0.4650869",
"0.4650869",
"0.4650869",
"0.4650869",
"0.4639427",
"0.46331465",
"0.46066687",
"0.46057633",
"0.4604416",
"0.46025124",
"0.4596284",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45893687",
"0.45831493",
"0.45797887",
"0.45699596",
"0.45677593",
"0.45677593",
"0.4564406",
"0.45637065",
"0.45630905",
"0.4560426",
"0.45543522",
"0.45536578",
"0.45454022",
"0.45432645",
"0.45359462",
"0.45291114",
"0.45202962",
"0.4519246",
"0.45159075",
"0.4513586",
"0.45123118",
"0.4507513"
]
| 0.68405455 | 0 |
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting | int updateByExampleSelective(@Param("record") ReviewLevelSetting record, @Param("example") ReviewLevelSettingExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResultMap\")\r\n ReviewLevelSetting selectByPrimaryKey(String id);",
"@Insert({\r\n \"insert into `review_level_setting` (`id`, `ops_op`, \",\r\n \"`ops_op_label`, `ops_op_level`, \",\r\n \"`created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, \",\r\n \"`del_flg`)\",\r\n \"values (#{id,jdbcType=VARCHAR}, #{opsOp,jdbcType=VARCHAR}, \",\r\n \"#{opsOpLabel,jdbcType=VARCHAR}, #{opsOpLevel,jdbcType=VARCHAR}, \",\r\n \"#{createdBy,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, \",\r\n \"#{updatedBy,jdbcType=VARCHAR}, #{updatedAt,jdbcType=TIMESTAMP}, \",\r\n \"#{delFlg,jdbcType=VARCHAR})\"\r\n })\r\n int insert(ReviewLevelSetting record);",
"List<ReviewLevelSetting> selectByExample(ReviewLevelSettingExample example);",
"@Update({\r\n \"update `review_level_setting`\",\r\n \"set `ops_op` = #{opsOp,jdbcType=VARCHAR},\",\r\n \"`ops_op_label` = #{opsOpLabel,jdbcType=VARCHAR},\",\r\n \"`ops_op_level` = #{opsOpLevel,jdbcType=VARCHAR},\",\r\n \"`created_by` = #{createdBy,jdbcType=VARCHAR},\",\r\n \"`created_at` = #{createdAt,jdbcType=TIMESTAMP},\",\r\n \"`updated_by` = #{updatedBy,jdbcType=VARCHAR},\",\r\n \"`updated_at` = #{updatedAt,jdbcType=TIMESTAMP},\",\r\n \"`del_flg` = #{delFlg,jdbcType=VARCHAR}\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int updateByPrimaryKey(ReviewLevelSetting record);",
"public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}",
"int insertSelective(ReviewLevelSetting record);",
"int updateByPrimaryKeySelective(ReviewLevelSetting record);",
"public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }",
"public void setLevel(String level);",
"public Integer getLevelId() {\n return levelId;\n }",
"public void setLevel(String level){\n\t\tthis.level = level;\n\t}",
"protected void setLevel(int level){\r\n this.level = level;\r\n }",
"public void setLevel(int newlevel)\n {\n level = newlevel; \n }",
"public void setLevel(int level){\n\t\tthis.level = level;\n\t}",
"public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }",
"public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}",
"@Delete({\r\n \"delete from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int deleteByPrimaryKey(String id);",
"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 }",
"public void setLevelId(Integer levelId) {\n this.levelId = levelId;\n }",
"public String getLevelId() {\n return levelId;\n }",
"public void setMapLevel(String maptyp, int level) {\n\t\tprefs.putInt(title + \".\" + maptyp, level);\n\t}",
"public void setLevelLimit(Integer levelLimit) {\n\t\tthis.levelLimit = levelLimit;\r\n\t}",
"public void setLevel(int level) {\n \t\tthis.level = level;\n \t}",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}",
"public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}",
"protected void setLevel(int level)\n {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"int updateByExample(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public int getLevelNo() {\n return levelNo;\n }",
"@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();",
"public int getLevel(){\n return level;\n }",
"public int getLevel(){\n return level;\n }",
"@Override\n public void onCreate(SQLiteDatabase db) { db.execSQL(\"create table vanyrLevel(lvl int(1));\"); }",
"public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}",
"int getGoalConfigLevelValue();",
"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 int getLevel()\n {\n return level; \n }",
"public void setLevel(String lev) {\n\t\tlevel = lev;\n\t}",
"public void setLevelId(String levelId) {\n this.levelId = levelId;\n }",
"public String getLevel ()\n {\n return level;\n }",
"public int getLevel(){\n\t\treturn level;\n\t}",
"public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}",
"protected int getLevel(){\r\n return this.level;\r\n }",
"public void setLevel(int v)\n {\n m_level = v;\n }",
"public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel() { \r\n\t\treturn level; \r\n\t}",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public RiskLevelSelectionModel() {\n\n // get the risk levels\n Set<RiskLevel> riskLevelSet = AgilePlanningObjectFactory.getStoryService().findAllRiskLevel();\n \n // put the risk levels in a list\n riskLevels = new ArrayList<RiskLevel>(riskLevelSet);\n \n }",
"public String newSaveLevel() {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\ttry {\n\t\t\tif (mappingId == null || mappingId == 0) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t/**\n\t\t\t * check Cac muc trong nhom phai co so luong/so tien khac nhau.\n\t\t\t * Khong the muc 1 la 1A, 2B muc 2 cung la 1A, 2B\n\t\t\t */\n\t\t\t//trung nguyen\n\t\t\tList<ExMapping> lstSubCheck = listSubLevelMua;\n\t\t\tInteger checkLevel = 0;\n\t\t\tProductGroup pg = promotionProgramMgr.getrecursive(groupMuaId);\n\t\t\tint recursive = pg.getRecursive();\n\t\t\tint sizeGroupLevel = promotionProgramMgr.getSize(groupMuaId).size();\n\t\t\tboolean isFlag = false;\n\t\t\tif (sizeGroupLevel > 0){\n\t\t\t\tfor (int i = 0; i< sizeGroupLevel; i++){\n\t\t\t\t\tInteger conditionGroupLevel = promotionProgramMgr.getSize(groupMuaId).get(i).getCondition();\n\t\t\t\t\tif (conditionGroupLevel != null){\n\t\t\t\t\t\tisFlag = true;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(\"ZV21\".equals(typeCode) || \"ZV20\".equals(typeCode)){\n\t\t\t\tif(recursive==1){\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tif (isFlag == false && sizeGroupLevel > 2){\n\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstSubCheck = listSubLevelGroupZV192021;\n\t\t\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif (sizeGroupLevel > 1 && isFlag){\n\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tcheckLevel = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t}\n\t\t\tif (checkLevel == 1) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.exist\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 2) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 3) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.value.not.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tMap<String, Object> returnMap = promotionProgramMgr.newSaveSublevel(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t//Map<String, Object> returnMapGroupZv192021 = promotionProg\tramMgr.newSaveGroupZV192021(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t\n\t\t\tresult.put(ERROR, false);\n\t\t\tif (returnMap.get(\"listSubLevelMua\") != null) {\n\t\t\t\tresult.put(\"listSubLevelMua\", returnMap.get(\"listSubLevelMua\"));\n\t\t\t}\n\t\t\tif (returnMap.get(\"listSubLevelKM\") != null) {\n\t\t\t\tresult.put(\"listSubLevelKM\", returnMap.get(\"listSubLevelKM\"));\n\t\t\t}\n\t\t\tif (mappingId != null) {\n\t\t\t\tGroupMapping mapping = promotionProgramMgr.getGroupMappingById(mappingId);\n\t\t\t\tif (mapping != null && mapping.getPromotionGroup() != null && mapping.getPromotionGroup().getPromotionProgram() != null) {\n\t\t\t\t\tPromotionProgram program = mapping.getPromotionGroup().getPromotionProgram();\n\t\t\t\t\tpromotionProgramMgr.updateMD5ValidCode(program, getLogInfoVO());\n\t\t\t\t\tif (mapping.getSaleGroup() != null) {\n\t\t\t\t\t\tpromotionProgramMgr.updateGroupLevelOrderNumber(program.getId(), mapping.getSaleGroup().getId(), getLogInfoVO());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IllegalArgumentException ie) {\n\t\t\tString msg = ie.getMessage();\n\t\t\tif (msg != null) {\n\t\t\t\tif (msg.contains(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS)) {\n\t\t\t\t\tint idx = msg.indexOf(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS);\n\t\t\t\t\tif (idx > -1) {\n\t\t\t\t\t\tString err = msg.substring(idx);\n\t\t\t\t\t\terr = err.replace(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS, \"\");\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.product.in.product.groups\", err));\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t}\n\t\t\t\t} else if (msg.contains(PromotionProgramMgr.DUPLICATE_LEVELS)) {\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.level\"));\n\t\t\t\t\treturn SUCCESS;\n\t\t\t\t}\n\t\t\t}\n\t\t\tLogUtility.logErrorStandard(ie, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t} catch (Exception e) {\n\t\t\tLogUtility.logErrorStandard(e, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public int getLevel()\n {\n return level;\n }",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public int getLevel()\r\n {\r\n return level;\r\n }",
"public int getLevel() {\r\n return level;\r\n }",
"public void setLevel(String newLevel) {\n level = newLevel;\n }",
"@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime >= #{higherSkuParam.startTime}\",\n \"AND s.updateTime <= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\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 }",
"public int getLevel() {\n return level;\n }",
"AgentLevel selectByPrimaryKey(Long id);",
"int countByExample(ReviewLevelSettingExample example);",
"public int getLevelValue() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public String getLevel(){\n\t\treturn level;\n\t}",
"public int getLevel() {\n \t\treturn level;\n \t}",
"public int getLevel()\r\n {\r\n return r_level;\r\n }",
"public int level () {\r\n int iLevel;\r\n\r\n if (isNull(\"id_term1\"))\r\n iLevel = 1;\r\n else if (isNull(\"id_term2\"))\r\n iLevel = 2;\r\n else if (isNull(\"id_term3\"))\r\n iLevel = 3;\r\n else if (isNull(\"id_term4\"))\r\n iLevel = 4;\r\n else if (isNull(\"id_term5\"))\r\n iLevel = 5;\r\n else if (isNull(\"id_term6\"))\r\n iLevel = 6;\r\n else if (isNull(\"id_term7\"))\r\n iLevel = 7;\r\n else if (isNull(\"id_term8\"))\r\n iLevel = 8;\r\n else if (isNull(\"id_term9\"))\r\n iLevel = 9;\r\n else\r\n iLevel = 10;\r\n\r\n return iLevel;\r\n }",
"public void setLevel(String value) {\n this.level = value;\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 }",
"public Long getLevel() {\r\n return (Long) getAttributeInternal(LEVEL);\r\n }",
"public int getLevel(){\n\t\treturn this.level;\n\t}",
"public void setLevel(Long value) {\r\n setAttributeInternal(LEVEL, value);\r\n }",
"public void setLevel(int value) {\n this.level = value;\n }",
"int getLevelTableListCount();",
"public static String getKML(int id, int level) \n\t\t\t{\n\t\t\t\tString ans = null;\n\t\t\t\tString allCustomersQuery = \"SELECT * FROM Users where userID=\"+id+\";\";\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tConnection connection = \n\t\t\t\t\tDriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\t\t\n\t\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\t\tResultSet resultSet = statement.executeQuery(allCustomersQuery);\n\t\t\t\t\tif(resultSet!=null && resultSet.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tans = resultSet.getString(\"kml_\"+level);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SQLException sqle) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"SQLException: \" + sqle.getMessage());\n\t\t\t\t\tSystem.out.println(\"Vendor Error: \" + sqle.getErrorCode());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (ClassNotFoundException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn ans;\n\t\t\t}",
"protected abstract Level[] getLevelSet();",
"public void setLevel(final String level) {\n setAttribute(ATTRIBUTE_LEVEL, level);\n }",
"public void choiceLevel(String lev) {\n switch (lev) {\n\n case \"ALL\":\n mLevelLogger = Level.ALL;\n break;\n case \"NOTIFICATION\":\n mLevelLogger = Level.INFO;\n break;\n case \"HIGH\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"MEDIUM\":\n mLevelLogger = Level.WARNING;\n break;\n case \"LOW\":\n mLevelLogger = Level.INFO;\n break;\n case \"SEVERE\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"WARNING\":\n mLevelLogger = Level.WARNING;\n break;\n case \"INFO\":\n mLevelLogger = Level.INFO;\n break;\n case \"CONFIG\":\n mLevelLogger = Level.CONFIG;\n break;\n case \"FINE\":\n mLevelLogger = Level.FINE;\n break;\n case \"FINER\":\n mLevelLogger = Level.FINER;\n break;\n case \"FINEST\":\n mLevelLogger = Level.FINEST;\n break;\n case \"OFF\":\n mLevelLogger = Level.OFF;\n break;\n default:\n logger.warning(\"Unknow Level:\" + lev);\n }\n }",
"public String getLevel() {\n return level;\n }"
]
| [
"0.6840986",
"0.62142193",
"0.61784756",
"0.6122362",
"0.52511483",
"0.52083963",
"0.52072066",
"0.5130003",
"0.5100895",
"0.50540996",
"0.5007428",
"0.49974728",
"0.4987594",
"0.49781394",
"0.4947288",
"0.49468568",
"0.49425763",
"0.49357766",
"0.49357766",
"0.49357766",
"0.49357766",
"0.49357766",
"0.48980212",
"0.48966578",
"0.4896569",
"0.48927715",
"0.4875368",
"0.48514745",
"0.48514745",
"0.48448968",
"0.48336077",
"0.48235542",
"0.4821486",
"0.4821486",
"0.48068282",
"0.48026863",
"0.4795162",
"0.47929353",
"0.47929353",
"0.47836816",
"0.47810268",
"0.47806755",
"0.47795922",
"0.47795922",
"0.47698557",
"0.47331467",
"0.47329077",
"0.47128263",
"0.4692519",
"0.46902812",
"0.46849197",
"0.46836",
"0.4675495",
"0.46726754",
"0.46726754",
"0.46653315",
"0.46507558",
"0.46507558",
"0.46507558",
"0.46507558",
"0.46507558",
"0.46378082",
"0.4635005",
"0.46067655",
"0.4606108",
"0.46042815",
"0.46022463",
"0.45970282",
"0.45956245",
"0.45913938",
"0.45913938",
"0.45913938",
"0.45913938",
"0.45913938",
"0.45913938",
"0.45913938",
"0.45913938",
"0.45913938",
"0.45913938",
"0.45854858",
"0.45801917",
"0.45697984",
"0.45672837",
"0.45672837",
"0.45641646",
"0.45630324",
"0.45616055",
"0.45602432",
"0.45553064",
"0.45534164",
"0.45450625",
"0.4543133",
"0.4536624",
"0.45296207",
"0.45221815",
"0.4520455",
"0.45155385",
"0.45125827",
"0.45119157",
"0.45074117"
]
| 0.47289175 | 47 |
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting | int updateByExample(@Param("record") ReviewLevelSetting record, @Param("example") ReviewLevelSettingExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResultMap\")\r\n ReviewLevelSetting selectByPrimaryKey(String id);",
"@Insert({\r\n \"insert into `review_level_setting` (`id`, `ops_op`, \",\r\n \"`ops_op_label`, `ops_op_level`, \",\r\n \"`created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, \",\r\n \"`del_flg`)\",\r\n \"values (#{id,jdbcType=VARCHAR}, #{opsOp,jdbcType=VARCHAR}, \",\r\n \"#{opsOpLabel,jdbcType=VARCHAR}, #{opsOpLevel,jdbcType=VARCHAR}, \",\r\n \"#{createdBy,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, \",\r\n \"#{updatedBy,jdbcType=VARCHAR}, #{updatedAt,jdbcType=TIMESTAMP}, \",\r\n \"#{delFlg,jdbcType=VARCHAR})\"\r\n })\r\n int insert(ReviewLevelSetting record);",
"List<ReviewLevelSetting> selectByExample(ReviewLevelSettingExample example);",
"@Update({\r\n \"update `review_level_setting`\",\r\n \"set `ops_op` = #{opsOp,jdbcType=VARCHAR},\",\r\n \"`ops_op_label` = #{opsOpLabel,jdbcType=VARCHAR},\",\r\n \"`ops_op_level` = #{opsOpLevel,jdbcType=VARCHAR},\",\r\n \"`created_by` = #{createdBy,jdbcType=VARCHAR},\",\r\n \"`created_at` = #{createdAt,jdbcType=TIMESTAMP},\",\r\n \"`updated_by` = #{updatedBy,jdbcType=VARCHAR},\",\r\n \"`updated_at` = #{updatedAt,jdbcType=TIMESTAMP},\",\r\n \"`del_flg` = #{delFlg,jdbcType=VARCHAR}\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int updateByPrimaryKey(ReviewLevelSetting record);",
"public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}",
"int insertSelective(ReviewLevelSetting record);",
"int updateByPrimaryKeySelective(ReviewLevelSetting record);",
"public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }",
"public void setLevel(String level);",
"public Integer getLevelId() {\n return levelId;\n }",
"public void setLevel(String level){\n\t\tthis.level = level;\n\t}",
"protected void setLevel(int level){\r\n this.level = level;\r\n }",
"public void setLevel(int newlevel)\n {\n level = newlevel; \n }",
"public void setLevel(int level){\n\t\tthis.level = level;\n\t}",
"public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }",
"public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}",
"@Delete({\r\n \"delete from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int deleteByPrimaryKey(String id);",
"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 }",
"public void setMapLevel(String maptyp, int level) {\n\t\tprefs.putInt(title + \".\" + maptyp, level);\n\t}",
"public void setLevelId(Integer levelId) {\n this.levelId = levelId;\n }",
"public String getLevelId() {\n return levelId;\n }",
"public void setLevelLimit(Integer levelLimit) {\n\t\tthis.levelLimit = levelLimit;\r\n\t}",
"public void setLevel(int level) {\n \t\tthis.level = level;\n \t}",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}",
"public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}",
"protected void setLevel(int level)\n {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"public int getLevelNo() {\n return levelNo;\n }",
"public int getLevel(){\n return level;\n }",
"public int getLevel(){\n return level;\n }",
"@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();",
"@Override\n public void onCreate(SQLiteDatabase db) { db.execSQL(\"create table vanyrLevel(lvl int(1));\"); }",
"public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}",
"int getGoalConfigLevelValue();",
"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 int getLevel()\n {\n return level; \n }",
"public void setLevel(String lev) {\n\t\tlevel = lev;\n\t}",
"public void setLevelId(String levelId) {\n this.levelId = levelId;\n }",
"int updateByExampleSelective(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public String getLevel ()\n {\n return level;\n }",
"public int getLevel(){\n\t\treturn level;\n\t}",
"public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}",
"public void setLevel(int v)\n {\n m_level = v;\n }",
"protected int getLevel(){\r\n return this.level;\r\n }",
"public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel() { \r\n\t\treturn level; \r\n\t}",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public RiskLevelSelectionModel() {\n\n // get the risk levels\n Set<RiskLevel> riskLevelSet = AgilePlanningObjectFactory.getStoryService().findAllRiskLevel();\n \n // put the risk levels in a list\n riskLevels = new ArrayList<RiskLevel>(riskLevelSet);\n \n }",
"public String newSaveLevel() {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\ttry {\n\t\t\tif (mappingId == null || mappingId == 0) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t/**\n\t\t\t * check Cac muc trong nhom phai co so luong/so tien khac nhau.\n\t\t\t * Khong the muc 1 la 1A, 2B muc 2 cung la 1A, 2B\n\t\t\t */\n\t\t\t//trung nguyen\n\t\t\tList<ExMapping> lstSubCheck = listSubLevelMua;\n\t\t\tInteger checkLevel = 0;\n\t\t\tProductGroup pg = promotionProgramMgr.getrecursive(groupMuaId);\n\t\t\tint recursive = pg.getRecursive();\n\t\t\tint sizeGroupLevel = promotionProgramMgr.getSize(groupMuaId).size();\n\t\t\tboolean isFlag = false;\n\t\t\tif (sizeGroupLevel > 0){\n\t\t\t\tfor (int i = 0; i< sizeGroupLevel; i++){\n\t\t\t\t\tInteger conditionGroupLevel = promotionProgramMgr.getSize(groupMuaId).get(i).getCondition();\n\t\t\t\t\tif (conditionGroupLevel != null){\n\t\t\t\t\t\tisFlag = true;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(\"ZV21\".equals(typeCode) || \"ZV20\".equals(typeCode)){\n\t\t\t\tif(recursive==1){\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tif (isFlag == false && sizeGroupLevel > 2){\n\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstSubCheck = listSubLevelGroupZV192021;\n\t\t\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif (sizeGroupLevel > 1 && isFlag){\n\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tcheckLevel = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t}\n\t\t\tif (checkLevel == 1) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.exist\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 2) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 3) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.value.not.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tMap<String, Object> returnMap = promotionProgramMgr.newSaveSublevel(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t//Map<String, Object> returnMapGroupZv192021 = promotionProg\tramMgr.newSaveGroupZV192021(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t\n\t\t\tresult.put(ERROR, false);\n\t\t\tif (returnMap.get(\"listSubLevelMua\") != null) {\n\t\t\t\tresult.put(\"listSubLevelMua\", returnMap.get(\"listSubLevelMua\"));\n\t\t\t}\n\t\t\tif (returnMap.get(\"listSubLevelKM\") != null) {\n\t\t\t\tresult.put(\"listSubLevelKM\", returnMap.get(\"listSubLevelKM\"));\n\t\t\t}\n\t\t\tif (mappingId != null) {\n\t\t\t\tGroupMapping mapping = promotionProgramMgr.getGroupMappingById(mappingId);\n\t\t\t\tif (mapping != null && mapping.getPromotionGroup() != null && mapping.getPromotionGroup().getPromotionProgram() != null) {\n\t\t\t\t\tPromotionProgram program = mapping.getPromotionGroup().getPromotionProgram();\n\t\t\t\t\tpromotionProgramMgr.updateMD5ValidCode(program, getLogInfoVO());\n\t\t\t\t\tif (mapping.getSaleGroup() != null) {\n\t\t\t\t\t\tpromotionProgramMgr.updateGroupLevelOrderNumber(program.getId(), mapping.getSaleGroup().getId(), getLogInfoVO());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IllegalArgumentException ie) {\n\t\t\tString msg = ie.getMessage();\n\t\t\tif (msg != null) {\n\t\t\t\tif (msg.contains(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS)) {\n\t\t\t\t\tint idx = msg.indexOf(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS);\n\t\t\t\t\tif (idx > -1) {\n\t\t\t\t\t\tString err = msg.substring(idx);\n\t\t\t\t\t\terr = err.replace(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS, \"\");\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.product.in.product.groups\", err));\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t}\n\t\t\t\t} else if (msg.contains(PromotionProgramMgr.DUPLICATE_LEVELS)) {\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.level\"));\n\t\t\t\t\treturn SUCCESS;\n\t\t\t\t}\n\t\t\t}\n\t\t\tLogUtility.logErrorStandard(ie, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t} catch (Exception e) {\n\t\t\tLogUtility.logErrorStandard(e, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public int getLevel()\n {\n return level;\n }",
"public int getLevel()\r\n {\r\n return level;\r\n }",
"public int getLevel() {\r\n return level;\r\n }",
"public void setLevel(String newLevel) {\n level = newLevel;\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 }",
"public int getLevel() {\n return level;\n }",
"@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime >= #{higherSkuParam.startTime}\",\n \"AND s.updateTime <= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}",
"AgentLevel selectByPrimaryKey(Long id);",
"int countByExample(ReviewLevelSettingExample example);",
"public int getLevelValue() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public String getLevel(){\n\t\treturn level;\n\t}",
"public int getLevel() {\n \t\treturn level;\n \t}",
"public int getLevel()\r\n {\r\n return r_level;\r\n }",
"public int level () {\r\n int iLevel;\r\n\r\n if (isNull(\"id_term1\"))\r\n iLevel = 1;\r\n else if (isNull(\"id_term2\"))\r\n iLevel = 2;\r\n else if (isNull(\"id_term3\"))\r\n iLevel = 3;\r\n else if (isNull(\"id_term4\"))\r\n iLevel = 4;\r\n else if (isNull(\"id_term5\"))\r\n iLevel = 5;\r\n else if (isNull(\"id_term6\"))\r\n iLevel = 6;\r\n else if (isNull(\"id_term7\"))\r\n iLevel = 7;\r\n else if (isNull(\"id_term8\"))\r\n iLevel = 8;\r\n else if (isNull(\"id_term9\"))\r\n iLevel = 9;\r\n else\r\n iLevel = 10;\r\n\r\n return iLevel;\r\n }",
"public void setLevel(String value) {\n this.level = value;\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 }",
"public Long getLevel() {\r\n return (Long) getAttributeInternal(LEVEL);\r\n }",
"public int getLevel(){\n\t\treturn this.level;\n\t}",
"public void setLevel(Long value) {\r\n setAttributeInternal(LEVEL, value);\r\n }",
"public void setLevel(int value) {\n this.level = value;\n }",
"int getLevelTableListCount();",
"public static String getKML(int id, int level) \n\t\t\t{\n\t\t\t\tString ans = null;\n\t\t\t\tString allCustomersQuery = \"SELECT * FROM Users where userID=\"+id+\";\";\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tConnection connection = \n\t\t\t\t\tDriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\t\t\n\t\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\t\tResultSet resultSet = statement.executeQuery(allCustomersQuery);\n\t\t\t\t\tif(resultSet!=null && resultSet.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tans = resultSet.getString(\"kml_\"+level);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SQLException sqle) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"SQLException: \" + sqle.getMessage());\n\t\t\t\t\tSystem.out.println(\"Vendor Error: \" + sqle.getErrorCode());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (ClassNotFoundException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn ans;\n\t\t\t}",
"protected abstract Level[] getLevelSet();",
"public void choiceLevel(String lev) {\n switch (lev) {\n\n case \"ALL\":\n mLevelLogger = Level.ALL;\n break;\n case \"NOTIFICATION\":\n mLevelLogger = Level.INFO;\n break;\n case \"HIGH\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"MEDIUM\":\n mLevelLogger = Level.WARNING;\n break;\n case \"LOW\":\n mLevelLogger = Level.INFO;\n break;\n case \"SEVERE\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"WARNING\":\n mLevelLogger = Level.WARNING;\n break;\n case \"INFO\":\n mLevelLogger = Level.INFO;\n break;\n case \"CONFIG\":\n mLevelLogger = Level.CONFIG;\n break;\n case \"FINE\":\n mLevelLogger = Level.FINE;\n break;\n case \"FINER\":\n mLevelLogger = Level.FINER;\n break;\n case \"FINEST\":\n mLevelLogger = Level.FINEST;\n break;\n case \"OFF\":\n mLevelLogger = Level.OFF;\n break;\n default:\n logger.warning(\"Unknow Level:\" + lev);\n }\n }",
"public void setLevel(final String level) {\n setAttribute(ATTRIBUTE_LEVEL, level);\n }",
"public String getLevel() {\n return level;\n }"
]
| [
"0.68411285",
"0.62139314",
"0.6177488",
"0.61231226",
"0.5251172",
"0.5207476",
"0.52065986",
"0.5131146",
"0.5103007",
"0.50536233",
"0.50087017",
"0.49993244",
"0.4989223",
"0.4979635",
"0.49489287",
"0.49485302",
"0.4942931",
"0.49369144",
"0.49369144",
"0.49369144",
"0.49369144",
"0.49369144",
"0.48987874",
"0.48974442",
"0.48967212",
"0.48949906",
"0.48771417",
"0.48528093",
"0.48528093",
"0.48465464",
"0.4832779",
"0.48253357",
"0.48225835",
"0.48225835",
"0.48030204",
"0.47935107",
"0.47935107",
"0.47933108",
"0.47853252",
"0.4782855",
"0.47822213",
"0.47809744",
"0.47809744",
"0.47703287",
"0.4735055",
"0.47324276",
"0.47272494",
"0.4713772",
"0.46937433",
"0.4691861",
"0.46853456",
"0.46852413",
"0.46769994",
"0.4672971",
"0.4672971",
"0.46665168",
"0.4651745",
"0.4651745",
"0.4651745",
"0.4651745",
"0.4651745",
"0.46395516",
"0.46359685",
"0.460822",
"0.46075362",
"0.4605197",
"0.46032527",
"0.45983076",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.4592345",
"0.45899925",
"0.4584065",
"0.45795137",
"0.45706922",
"0.4568304",
"0.4568304",
"0.45660332",
"0.45644328",
"0.45632306",
"0.45618185",
"0.4556771",
"0.45550662",
"0.45458576",
"0.4544032",
"0.45381787",
"0.45308676",
"0.45230228",
"0.45203757",
"0.45169285",
"0.45143482",
"0.4514284",
"0.4509002"
]
| 0.48049483 | 34 |
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting | int updateByPrimaryKeySelective(ReviewLevelSetting record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResultMap\")\r\n ReviewLevelSetting selectByPrimaryKey(String id);",
"@Insert({\r\n \"insert into `review_level_setting` (`id`, `ops_op`, \",\r\n \"`ops_op_label`, `ops_op_level`, \",\r\n \"`created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, \",\r\n \"`del_flg`)\",\r\n \"values (#{id,jdbcType=VARCHAR}, #{opsOp,jdbcType=VARCHAR}, \",\r\n \"#{opsOpLabel,jdbcType=VARCHAR}, #{opsOpLevel,jdbcType=VARCHAR}, \",\r\n \"#{createdBy,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, \",\r\n \"#{updatedBy,jdbcType=VARCHAR}, #{updatedAt,jdbcType=TIMESTAMP}, \",\r\n \"#{delFlg,jdbcType=VARCHAR})\"\r\n })\r\n int insert(ReviewLevelSetting record);",
"List<ReviewLevelSetting> selectByExample(ReviewLevelSettingExample example);",
"@Update({\r\n \"update `review_level_setting`\",\r\n \"set `ops_op` = #{opsOp,jdbcType=VARCHAR},\",\r\n \"`ops_op_label` = #{opsOpLabel,jdbcType=VARCHAR},\",\r\n \"`ops_op_level` = #{opsOpLevel,jdbcType=VARCHAR},\",\r\n \"`created_by` = #{createdBy,jdbcType=VARCHAR},\",\r\n \"`created_at` = #{createdAt,jdbcType=TIMESTAMP},\",\r\n \"`updated_by` = #{updatedBy,jdbcType=VARCHAR},\",\r\n \"`updated_at` = #{updatedAt,jdbcType=TIMESTAMP},\",\r\n \"`del_flg` = #{delFlg,jdbcType=VARCHAR}\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int updateByPrimaryKey(ReviewLevelSetting record);",
"public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}",
"int insertSelective(ReviewLevelSetting record);",
"public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }",
"public void setLevel(String level);",
"public Integer getLevelId() {\n return levelId;\n }",
"public void setLevel(String level){\n\t\tthis.level = level;\n\t}",
"protected void setLevel(int level){\r\n this.level = level;\r\n }",
"public void setLevel(int newlevel)\n {\n level = newlevel; \n }",
"public void setLevel(int level){\n\t\tthis.level = level;\n\t}",
"public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }",
"public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}",
"@Delete({\r\n \"delete from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int deleteByPrimaryKey(String id);",
"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 }",
"public void setMapLevel(String maptyp, int level) {\n\t\tprefs.putInt(title + \".\" + maptyp, level);\n\t}",
"public void setLevelId(Integer levelId) {\n this.levelId = levelId;\n }",
"public String getLevelId() {\n return levelId;\n }",
"public void setLevelLimit(Integer levelLimit) {\n\t\tthis.levelLimit = levelLimit;\r\n\t}",
"public void setLevel(int level) {\n \t\tthis.level = level;\n \t}",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}",
"public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}",
"protected void setLevel(int level)\n {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"int updateByExample(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public int getLevelNo() {\n return levelNo;\n }",
"public int getLevel(){\n return level;\n }",
"public int getLevel(){\n return level;\n }",
"@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();",
"@Override\n public void onCreate(SQLiteDatabase db) { db.execSQL(\"create table vanyrLevel(lvl int(1));\"); }",
"public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}",
"int getGoalConfigLevelValue();",
"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 int getLevel()\n {\n return level; \n }",
"public void setLevel(String lev) {\n\t\tlevel = lev;\n\t}",
"public void setLevelId(String levelId) {\n this.levelId = levelId;\n }",
"int updateByExampleSelective(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public String getLevel ()\n {\n return level;\n }",
"public int getLevel(){\n\t\treturn level;\n\t}",
"public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}",
"protected int getLevel(){\r\n return this.level;\r\n }",
"public void setLevel(int v)\n {\n m_level = v;\n }",
"public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel() { \r\n\t\treturn level; \r\n\t}",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public RiskLevelSelectionModel() {\n\n // get the risk levels\n Set<RiskLevel> riskLevelSet = AgilePlanningObjectFactory.getStoryService().findAllRiskLevel();\n \n // put the risk levels in a list\n riskLevels = new ArrayList<RiskLevel>(riskLevelSet);\n \n }",
"public String newSaveLevel() {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\ttry {\n\t\t\tif (mappingId == null || mappingId == 0) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t/**\n\t\t\t * check Cac muc trong nhom phai co so luong/so tien khac nhau.\n\t\t\t * Khong the muc 1 la 1A, 2B muc 2 cung la 1A, 2B\n\t\t\t */\n\t\t\t//trung nguyen\n\t\t\tList<ExMapping> lstSubCheck = listSubLevelMua;\n\t\t\tInteger checkLevel = 0;\n\t\t\tProductGroup pg = promotionProgramMgr.getrecursive(groupMuaId);\n\t\t\tint recursive = pg.getRecursive();\n\t\t\tint sizeGroupLevel = promotionProgramMgr.getSize(groupMuaId).size();\n\t\t\tboolean isFlag = false;\n\t\t\tif (sizeGroupLevel > 0){\n\t\t\t\tfor (int i = 0; i< sizeGroupLevel; i++){\n\t\t\t\t\tInteger conditionGroupLevel = promotionProgramMgr.getSize(groupMuaId).get(i).getCondition();\n\t\t\t\t\tif (conditionGroupLevel != null){\n\t\t\t\t\t\tisFlag = true;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(\"ZV21\".equals(typeCode) || \"ZV20\".equals(typeCode)){\n\t\t\t\tif(recursive==1){\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tif (isFlag == false && sizeGroupLevel > 2){\n\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstSubCheck = listSubLevelGroupZV192021;\n\t\t\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif (sizeGroupLevel > 1 && isFlag){\n\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tcheckLevel = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t}\n\t\t\tif (checkLevel == 1) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.exist\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 2) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 3) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.value.not.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tMap<String, Object> returnMap = promotionProgramMgr.newSaveSublevel(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t//Map<String, Object> returnMapGroupZv192021 = promotionProg\tramMgr.newSaveGroupZV192021(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t\n\t\t\tresult.put(ERROR, false);\n\t\t\tif (returnMap.get(\"listSubLevelMua\") != null) {\n\t\t\t\tresult.put(\"listSubLevelMua\", returnMap.get(\"listSubLevelMua\"));\n\t\t\t}\n\t\t\tif (returnMap.get(\"listSubLevelKM\") != null) {\n\t\t\t\tresult.put(\"listSubLevelKM\", returnMap.get(\"listSubLevelKM\"));\n\t\t\t}\n\t\t\tif (mappingId != null) {\n\t\t\t\tGroupMapping mapping = promotionProgramMgr.getGroupMappingById(mappingId);\n\t\t\t\tif (mapping != null && mapping.getPromotionGroup() != null && mapping.getPromotionGroup().getPromotionProgram() != null) {\n\t\t\t\t\tPromotionProgram program = mapping.getPromotionGroup().getPromotionProgram();\n\t\t\t\t\tpromotionProgramMgr.updateMD5ValidCode(program, getLogInfoVO());\n\t\t\t\t\tif (mapping.getSaleGroup() != null) {\n\t\t\t\t\t\tpromotionProgramMgr.updateGroupLevelOrderNumber(program.getId(), mapping.getSaleGroup().getId(), getLogInfoVO());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IllegalArgumentException ie) {\n\t\t\tString msg = ie.getMessage();\n\t\t\tif (msg != null) {\n\t\t\t\tif (msg.contains(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS)) {\n\t\t\t\t\tint idx = msg.indexOf(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS);\n\t\t\t\t\tif (idx > -1) {\n\t\t\t\t\t\tString err = msg.substring(idx);\n\t\t\t\t\t\terr = err.replace(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS, \"\");\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.product.in.product.groups\", err));\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t}\n\t\t\t\t} else if (msg.contains(PromotionProgramMgr.DUPLICATE_LEVELS)) {\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.level\"));\n\t\t\t\t\treturn SUCCESS;\n\t\t\t\t}\n\t\t\t}\n\t\t\tLogUtility.logErrorStandard(ie, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t} catch (Exception e) {\n\t\t\tLogUtility.logErrorStandard(e, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public int getLevel()\n {\n return level;\n }",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public int getLevel()\r\n {\r\n return level;\r\n }",
"public int getLevel() {\r\n return level;\r\n }",
"public void setLevel(String newLevel) {\n level = newLevel;\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 }",
"public int getLevel() {\n return level;\n }",
"@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime >= #{higherSkuParam.startTime}\",\n \"AND s.updateTime <= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}",
"AgentLevel selectByPrimaryKey(Long id);",
"int countByExample(ReviewLevelSettingExample example);",
"public int getLevelValue() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public String getLevel(){\n\t\treturn level;\n\t}",
"public int getLevel() {\n \t\treturn level;\n \t}",
"public int getLevel()\r\n {\r\n return r_level;\r\n }",
"public int level () {\r\n int iLevel;\r\n\r\n if (isNull(\"id_term1\"))\r\n iLevel = 1;\r\n else if (isNull(\"id_term2\"))\r\n iLevel = 2;\r\n else if (isNull(\"id_term3\"))\r\n iLevel = 3;\r\n else if (isNull(\"id_term4\"))\r\n iLevel = 4;\r\n else if (isNull(\"id_term5\"))\r\n iLevel = 5;\r\n else if (isNull(\"id_term6\"))\r\n iLevel = 6;\r\n else if (isNull(\"id_term7\"))\r\n iLevel = 7;\r\n else if (isNull(\"id_term8\"))\r\n iLevel = 8;\r\n else if (isNull(\"id_term9\"))\r\n iLevel = 9;\r\n else\r\n iLevel = 10;\r\n\r\n return iLevel;\r\n }",
"public void setLevel(String value) {\n this.level = value;\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 }",
"public Long getLevel() {\r\n return (Long) getAttributeInternal(LEVEL);\r\n }",
"public int getLevel(){\n\t\treturn this.level;\n\t}",
"public void setLevel(Long value) {\r\n setAttributeInternal(LEVEL, value);\r\n }",
"public void setLevel(int value) {\n this.level = value;\n }",
"int getLevelTableListCount();",
"public static String getKML(int id, int level) \n\t\t\t{\n\t\t\t\tString ans = null;\n\t\t\t\tString allCustomersQuery = \"SELECT * FROM Users where userID=\"+id+\";\";\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tConnection connection = \n\t\t\t\t\tDriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\t\t\n\t\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\t\tResultSet resultSet = statement.executeQuery(allCustomersQuery);\n\t\t\t\t\tif(resultSet!=null && resultSet.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tans = resultSet.getString(\"kml_\"+level);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SQLException sqle) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"SQLException: \" + sqle.getMessage());\n\t\t\t\t\tSystem.out.println(\"Vendor Error: \" + sqle.getErrorCode());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (ClassNotFoundException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn ans;\n\t\t\t}",
"protected abstract Level[] getLevelSet();",
"public void choiceLevel(String lev) {\n switch (lev) {\n\n case \"ALL\":\n mLevelLogger = Level.ALL;\n break;\n case \"NOTIFICATION\":\n mLevelLogger = Level.INFO;\n break;\n case \"HIGH\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"MEDIUM\":\n mLevelLogger = Level.WARNING;\n break;\n case \"LOW\":\n mLevelLogger = Level.INFO;\n break;\n case \"SEVERE\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"WARNING\":\n mLevelLogger = Level.WARNING;\n break;\n case \"INFO\":\n mLevelLogger = Level.INFO;\n break;\n case \"CONFIG\":\n mLevelLogger = Level.CONFIG;\n break;\n case \"FINE\":\n mLevelLogger = Level.FINE;\n break;\n case \"FINER\":\n mLevelLogger = Level.FINER;\n break;\n case \"FINEST\":\n mLevelLogger = Level.FINEST;\n break;\n case \"OFF\":\n mLevelLogger = Level.OFF;\n break;\n default:\n logger.warning(\"Unknow Level:\" + lev);\n }\n }",
"public void setLevel(final String level) {\n setAttribute(ATTRIBUTE_LEVEL, level);\n }",
"public String getLevel() {\n return level;\n }"
]
| [
"0.68405455",
"0.6214392",
"0.6177646",
"0.6122873",
"0.52501476",
"0.5209048",
"0.5129414",
"0.5100407",
"0.5052653",
"0.50065285",
"0.4997834",
"0.4987267",
"0.49777448",
"0.49470526",
"0.4946789",
"0.4943164",
"0.49352738",
"0.49352738",
"0.49352738",
"0.49352738",
"0.49352738",
"0.4897981",
"0.48966217",
"0.48953784",
"0.48922315",
"0.4875387",
"0.48509824",
"0.48509824",
"0.48447856",
"0.48323438",
"0.4823998",
"0.4820481",
"0.4820481",
"0.48058972",
"0.48024517",
"0.47925824",
"0.47925824",
"0.47925574",
"0.47838923",
"0.47811046",
"0.47808534",
"0.4779182",
"0.4779182",
"0.47693914",
"0.4734142",
"0.4731264",
"0.47278178",
"0.47123492",
"0.46927744",
"0.46900773",
"0.46848643",
"0.4684075",
"0.46751198",
"0.46722054",
"0.46722054",
"0.4665861",
"0.4650869",
"0.4650869",
"0.4650869",
"0.4650869",
"0.4650869",
"0.4639427",
"0.46331465",
"0.46066687",
"0.46057633",
"0.4604416",
"0.46025124",
"0.4596284",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45893687",
"0.45831493",
"0.45797887",
"0.45699596",
"0.45677593",
"0.45677593",
"0.4564406",
"0.45637065",
"0.45630905",
"0.4560426",
"0.45543522",
"0.45536578",
"0.45454022",
"0.45432645",
"0.45359462",
"0.45291114",
"0.45202962",
"0.4519246",
"0.45159075",
"0.4513586",
"0.45123118",
"0.4507513"
]
| 0.52076334 | 6 |
This method was generated by MyBatis Generator. This method corresponds to the database table review_level_setting | @Update({
"update `review_level_setting`",
"set `ops_op` = #{opsOp,jdbcType=VARCHAR},",
"`ops_op_label` = #{opsOpLabel,jdbcType=VARCHAR},",
"`ops_op_level` = #{opsOpLevel,jdbcType=VARCHAR},",
"`created_by` = #{createdBy,jdbcType=VARCHAR},",
"`created_at` = #{createdAt,jdbcType=TIMESTAMP},",
"`updated_by` = #{updatedBy,jdbcType=VARCHAR},",
"`updated_at` = #{updatedAt,jdbcType=TIMESTAMP},",
"`del_flg` = #{delFlg,jdbcType=VARCHAR}",
"where `id` = #{id,jdbcType=VARCHAR}"
})
int updateByPrimaryKey(ReviewLevelSetting record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Select({\r\n \"select\",\r\n \"`id`, `ops_op`, `ops_op_label`, `ops_op_level`, `created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, `del_flg`\",\r\n \"from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n @ResultMap(\"BaseResultMap\")\r\n ReviewLevelSetting selectByPrimaryKey(String id);",
"@Insert({\r\n \"insert into `review_level_setting` (`id`, `ops_op`, \",\r\n \"`ops_op_label`, `ops_op_level`, \",\r\n \"`created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, \",\r\n \"`del_flg`)\",\r\n \"values (#{id,jdbcType=VARCHAR}, #{opsOp,jdbcType=VARCHAR}, \",\r\n \"#{opsOpLabel,jdbcType=VARCHAR}, #{opsOpLevel,jdbcType=VARCHAR}, \",\r\n \"#{createdBy,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, \",\r\n \"#{updatedBy,jdbcType=VARCHAR}, #{updatedAt,jdbcType=TIMESTAMP}, \",\r\n \"#{delFlg,jdbcType=VARCHAR})\"\r\n })\r\n int insert(ReviewLevelSetting record);",
"List<ReviewLevelSetting> selectByExample(ReviewLevelSettingExample example);",
"public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}",
"int insertSelective(ReviewLevelSetting record);",
"int updateByPrimaryKeySelective(ReviewLevelSetting record);",
"public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }",
"public void setLevel(String level);",
"public Integer getLevelId() {\n return levelId;\n }",
"public void setLevel(String level){\n\t\tthis.level = level;\n\t}",
"protected void setLevel(int level){\r\n this.level = level;\r\n }",
"public void setLevel(int newlevel)\n {\n level = newlevel; \n }",
"public void setLevel(int level){\n\t\tthis.level = level;\n\t}",
"public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }",
"public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}",
"@Delete({\r\n \"delete from `review_level_setting`\",\r\n \"where `id` = #{id,jdbcType=VARCHAR}\"\r\n })\r\n int deleteByPrimaryKey(String id);",
"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 }",
"public void setMapLevel(String maptyp, int level) {\n\t\tprefs.putInt(title + \".\" + maptyp, level);\n\t}",
"public void setLevelId(Integer levelId) {\n this.levelId = levelId;\n }",
"public String getLevelId() {\n return levelId;\n }",
"public void setLevelLimit(Integer levelLimit) {\n\t\tthis.levelLimit = levelLimit;\r\n\t}",
"public void setLevel(int level) {\n \t\tthis.level = level;\n \t}",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}",
"public interface ArchetypeLevelsSchema {\n\tString TABLE_NAME = \"creature_archetype_levels\";\n\n\tString COLUMN_ARCHETYPE_ID = \"archetypeId\";\n\tString COLUMN_LEVEL = \"level\";\n\tString COLUMN_ATTACK = \"attack\";\n\tString COLUMN_ATTACK2 = \"attack2\";\n\tString COLUMN_DEF_BONUS = \"defensiveBonus\";\n\tString COLUMN_BODY_DEV = \"bodyDevelopment\";\n\tString COLUMN_PRIME_SKILL = \"primeSkill\";\n\tString COLUMN_SECONDARY_SKILL = \"secondarySkill\";\n\tString COLUMN_POWER_DEV = \"powerDevelopment\";\n\tString COLUMN_SPELLS = \"spells\";\n\tString COLUMN_TALENT_DP = \"talentDP\";\n\tString COLUMN_AGILITY = \"agility\";\n\tString COLUMN_CONS_STAT = \"constitutionStat\";\n\tString COLUMN_CONSTITUTION = \"constitution\";\n\tString COLUMN_EMPATHY = \"empathy\";\n\tString COLUMN_INTUITION = \"intuition\";\n\tString COLUMN_MEMORY = \"memory\";\n\tString COLUMN_PRESENCE = \"presence\";\n\tString COLUMN_QUICKNESS = \"quickness\";\n\tString COLUMN_REASONING = \"reasoning\";\n\tString COLUMN_SELF_DISC = \"selfDiscipline\";\n\tString COLUMN_STRENGTH = \"strength\";\n\n\tString TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n\t\t\t+ TABLE_NAME\n\t\t\t+ \" (\"\n\t\t\t+ COLUMN_ARCHETYPE_ID + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_LEVEL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_ATTACK2 + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_DEF_BONUS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_BODY_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRIME_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SECONDARY_SKILL + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_POWER_DEV + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SPELLS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_TALENT_DP + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_AGILITY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONS_STAT + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_CONSTITUTION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_EMPATHY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_INTUITION + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_MEMORY + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_PRESENCE + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_QUICKNESS + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_REASONING + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_SELF_DISC + \" INTEGER NOT NULL, \"\n\t\t\t+ COLUMN_STRENGTH + \" INTEGER NOT NULL, \"\n\t\t\t+ \"PRIMARY KEY(\" + COLUMN_ARCHETYPE_ID + \",\" + COLUMN_LEVEL + \")\"\n\t\t\t+ \")\";\n\n\tString[] COLUMNS = new String[] { COLUMN_ARCHETYPE_ID, COLUMN_LEVEL, COLUMN_ATTACK, COLUMN_ATTACK2, COLUMN_DEF_BONUS,\n\t\t\tCOLUMN_BODY_DEV, COLUMN_PRIME_SKILL, COLUMN_SECONDARY_SKILL, COLUMN_POWER_DEV, COLUMN_SPELLS, COLUMN_TALENT_DP,\n\t\t\tCOLUMN_AGILITY, COLUMN_CONS_STAT, COLUMN_CONSTITUTION, COLUMN_EMPATHY, COLUMN_INTUITION, COLUMN_MEMORY,\n\t\t\tCOLUMN_PRESENCE, COLUMN_QUICKNESS, COLUMN_REASONING, COLUMN_SELF_DISC, COLUMN_STRENGTH};\n}",
"protected void setLevel(int level)\n {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"int updateByExample(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public int getLevelNo() {\n return levelNo;\n }",
"public int getLevel(){\n return level;\n }",
"public int getLevel(){\n return level;\n }",
"@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();",
"@Override\n public void onCreate(SQLiteDatabase db) { db.execSQL(\"create table vanyrLevel(lvl int(1));\"); }",
"public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}",
"int getGoalConfigLevelValue();",
"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 int getLevel()\n {\n return level; \n }",
"public void setLevel(String lev) {\n\t\tlevel = lev;\n\t}",
"public void setLevelId(String levelId) {\n this.levelId = levelId;\n }",
"int updateByExampleSelective(@Param(\"record\") ReviewLevelSetting record, @Param(\"example\") ReviewLevelSettingExample example);",
"public String getLevel ()\n {\n return level;\n }",
"public int getLevel(){\n\t\treturn level;\n\t}",
"public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}",
"protected int getLevel(){\r\n return this.level;\r\n }",
"public void setLevel(int v)\n {\n m_level = v;\n }",
"public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel(){\n return this.level;\n }",
"public int getLevel() { \r\n\t\treturn level; \r\n\t}",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public RiskLevelSelectionModel() {\n\n // get the risk levels\n Set<RiskLevel> riskLevelSet = AgilePlanningObjectFactory.getStoryService().findAllRiskLevel();\n \n // put the risk levels in a list\n riskLevels = new ArrayList<RiskLevel>(riskLevelSet);\n \n }",
"public String newSaveLevel() {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\ttry {\n\t\t\tif (mappingId == null || mappingId == 0) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t/**\n\t\t\t * check Cac muc trong nhom phai co so luong/so tien khac nhau.\n\t\t\t * Khong the muc 1 la 1A, 2B muc 2 cung la 1A, 2B\n\t\t\t */\n\t\t\t//trung nguyen\n\t\t\tList<ExMapping> lstSubCheck = listSubLevelMua;\n\t\t\tInteger checkLevel = 0;\n\t\t\tProductGroup pg = promotionProgramMgr.getrecursive(groupMuaId);\n\t\t\tint recursive = pg.getRecursive();\n\t\t\tint sizeGroupLevel = promotionProgramMgr.getSize(groupMuaId).size();\n\t\t\tboolean isFlag = false;\n\t\t\tif (sizeGroupLevel > 0){\n\t\t\t\tfor (int i = 0; i< sizeGroupLevel; i++){\n\t\t\t\t\tInteger conditionGroupLevel = promotionProgramMgr.getSize(groupMuaId).get(i).getCondition();\n\t\t\t\t\tif (conditionGroupLevel != null){\n\t\t\t\t\t\tisFlag = true;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(\"ZV21\".equals(typeCode) || \"ZV20\".equals(typeCode)){\n\t\t\t\tif(recursive==1){\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tif (isFlag == false && sizeGroupLevel > 2){\n\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstSubCheck = listSubLevelGroupZV192021;\n\t\t\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif (sizeGroupLevel > 1 && isFlag){\n\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tcheckLevel = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t}\n\t\t\tif (checkLevel == 1) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.exist\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 2) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 3) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.value.not.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tMap<String, Object> returnMap = promotionProgramMgr.newSaveSublevel(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t//Map<String, Object> returnMapGroupZv192021 = promotionProg\tramMgr.newSaveGroupZV192021(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t\n\t\t\tresult.put(ERROR, false);\n\t\t\tif (returnMap.get(\"listSubLevelMua\") != null) {\n\t\t\t\tresult.put(\"listSubLevelMua\", returnMap.get(\"listSubLevelMua\"));\n\t\t\t}\n\t\t\tif (returnMap.get(\"listSubLevelKM\") != null) {\n\t\t\t\tresult.put(\"listSubLevelKM\", returnMap.get(\"listSubLevelKM\"));\n\t\t\t}\n\t\t\tif (mappingId != null) {\n\t\t\t\tGroupMapping mapping = promotionProgramMgr.getGroupMappingById(mappingId);\n\t\t\t\tif (mapping != null && mapping.getPromotionGroup() != null && mapping.getPromotionGroup().getPromotionProgram() != null) {\n\t\t\t\t\tPromotionProgram program = mapping.getPromotionGroup().getPromotionProgram();\n\t\t\t\t\tpromotionProgramMgr.updateMD5ValidCode(program, getLogInfoVO());\n\t\t\t\t\tif (mapping.getSaleGroup() != null) {\n\t\t\t\t\t\tpromotionProgramMgr.updateGroupLevelOrderNumber(program.getId(), mapping.getSaleGroup().getId(), getLogInfoVO());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IllegalArgumentException ie) {\n\t\t\tString msg = ie.getMessage();\n\t\t\tif (msg != null) {\n\t\t\t\tif (msg.contains(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS)) {\n\t\t\t\t\tint idx = msg.indexOf(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS);\n\t\t\t\t\tif (idx > -1) {\n\t\t\t\t\t\tString err = msg.substring(idx);\n\t\t\t\t\t\terr = err.replace(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS, \"\");\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.product.in.product.groups\", err));\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t}\n\t\t\t\t} else if (msg.contains(PromotionProgramMgr.DUPLICATE_LEVELS)) {\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.level\"));\n\t\t\t\t\treturn SUCCESS;\n\t\t\t\t}\n\t\t\t}\n\t\t\tLogUtility.logErrorStandard(ie, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t} catch (Exception e) {\n\t\t\tLogUtility.logErrorStandard(e, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public int getLevel()\n {\n return level;\n }",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public int getLevel()\r\n {\r\n return level;\r\n }",
"public int getLevel() {\r\n return level;\r\n }",
"public void setLevel(String newLevel) {\n level = newLevel;\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 }",
"public int getLevel() {\n return level;\n }",
"@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime >= #{higherSkuParam.startTime}\",\n \"AND s.updateTime <= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}",
"AgentLevel selectByPrimaryKey(Long id);",
"int countByExample(ReviewLevelSettingExample example);",
"public int getLevelValue() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public String getLevel(){\n\t\treturn level;\n\t}",
"public int getLevel() {\n \t\treturn level;\n \t}",
"public int getLevel()\r\n {\r\n return r_level;\r\n }",
"public int level () {\r\n int iLevel;\r\n\r\n if (isNull(\"id_term1\"))\r\n iLevel = 1;\r\n else if (isNull(\"id_term2\"))\r\n iLevel = 2;\r\n else if (isNull(\"id_term3\"))\r\n iLevel = 3;\r\n else if (isNull(\"id_term4\"))\r\n iLevel = 4;\r\n else if (isNull(\"id_term5\"))\r\n iLevel = 5;\r\n else if (isNull(\"id_term6\"))\r\n iLevel = 6;\r\n else if (isNull(\"id_term7\"))\r\n iLevel = 7;\r\n else if (isNull(\"id_term8\"))\r\n iLevel = 8;\r\n else if (isNull(\"id_term9\"))\r\n iLevel = 9;\r\n else\r\n iLevel = 10;\r\n\r\n return iLevel;\r\n }",
"public void setLevel(String value) {\n this.level = value;\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 }",
"public Long getLevel() {\r\n return (Long) getAttributeInternal(LEVEL);\r\n }",
"public int getLevel(){\n\t\treturn this.level;\n\t}",
"public void setLevel(Long value) {\r\n setAttributeInternal(LEVEL, value);\r\n }",
"public void setLevel(int value) {\n this.level = value;\n }",
"int getLevelTableListCount();",
"public static String getKML(int id, int level) \n\t\t\t{\n\t\t\t\tString ans = null;\n\t\t\t\tString allCustomersQuery = \"SELECT * FROM Users where userID=\"+id+\";\";\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tConnection connection = \n\t\t\t\t\tDriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\t\t\n\t\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\t\tResultSet resultSet = statement.executeQuery(allCustomersQuery);\n\t\t\t\t\tif(resultSet!=null && resultSet.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tans = resultSet.getString(\"kml_\"+level);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SQLException sqle) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"SQLException: \" + sqle.getMessage());\n\t\t\t\t\tSystem.out.println(\"Vendor Error: \" + sqle.getErrorCode());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcatch (ClassNotFoundException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn ans;\n\t\t\t}",
"protected abstract Level[] getLevelSet();",
"public void choiceLevel(String lev) {\n switch (lev) {\n\n case \"ALL\":\n mLevelLogger = Level.ALL;\n break;\n case \"NOTIFICATION\":\n mLevelLogger = Level.INFO;\n break;\n case \"HIGH\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"MEDIUM\":\n mLevelLogger = Level.WARNING;\n break;\n case \"LOW\":\n mLevelLogger = Level.INFO;\n break;\n case \"SEVERE\":\n mLevelLogger = Level.SEVERE;\n break;\n case \"WARNING\":\n mLevelLogger = Level.WARNING;\n break;\n case \"INFO\":\n mLevelLogger = Level.INFO;\n break;\n case \"CONFIG\":\n mLevelLogger = Level.CONFIG;\n break;\n case \"FINE\":\n mLevelLogger = Level.FINE;\n break;\n case \"FINER\":\n mLevelLogger = Level.FINER;\n break;\n case \"FINEST\":\n mLevelLogger = Level.FINEST;\n break;\n case \"OFF\":\n mLevelLogger = Level.OFF;\n break;\n default:\n logger.warning(\"Unknow Level:\" + lev);\n }\n }",
"public void setLevel(final String level) {\n setAttribute(ATTRIBUTE_LEVEL, level);\n }",
"public String getLevel() {\n return level;\n }"
]
| [
"0.68405455",
"0.6214392",
"0.6177646",
"0.52501476",
"0.5209048",
"0.52076334",
"0.5129414",
"0.5100407",
"0.5052653",
"0.50065285",
"0.4997834",
"0.4987267",
"0.49777448",
"0.49470526",
"0.4946789",
"0.4943164",
"0.49352738",
"0.49352738",
"0.49352738",
"0.49352738",
"0.49352738",
"0.4897981",
"0.48966217",
"0.48953784",
"0.48922315",
"0.4875387",
"0.48509824",
"0.48509824",
"0.48447856",
"0.48323438",
"0.4823998",
"0.4820481",
"0.4820481",
"0.48058972",
"0.48024517",
"0.47925824",
"0.47925824",
"0.47925574",
"0.47838923",
"0.47811046",
"0.47808534",
"0.4779182",
"0.4779182",
"0.47693914",
"0.4734142",
"0.4731264",
"0.47278178",
"0.47123492",
"0.46927744",
"0.46900773",
"0.46848643",
"0.4684075",
"0.46751198",
"0.46722054",
"0.46722054",
"0.4665861",
"0.4650869",
"0.4650869",
"0.4650869",
"0.4650869",
"0.4650869",
"0.4639427",
"0.46331465",
"0.46066687",
"0.46057633",
"0.4604416",
"0.46025124",
"0.4596284",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45914963",
"0.45893687",
"0.45831493",
"0.45797887",
"0.45699596",
"0.45677593",
"0.45677593",
"0.4564406",
"0.45637065",
"0.45630905",
"0.4560426",
"0.45543522",
"0.45536578",
"0.45454022",
"0.45432645",
"0.45359462",
"0.45291114",
"0.45202962",
"0.4519246",
"0.45159075",
"0.4513586",
"0.45123118",
"0.4507513"
]
| 0.6122873 | 3 |
Give it perfect input and see if it computes the expected values | @Test void perfect() {
standardScene();
simulateScene(0);
var alg = new DistanceMetricTripleReprojection23();
var model = new MetricCameraTriple();
model.view1.setTo(cameraA);
model.view2.setTo(cameraB);
model.view3.setTo(cameraC);
model.view_1_to_2.setTo(truthView_1_to_i(1));
model.view_1_to_3.setTo(truthView_1_to_i(2));
alg.setModel(model);
for (AssociatedTriple a : observations3) {
assertEquals(0.0, alg.distance(a), UtilEjml.TEST_F64);
}
var set = observations3.subList(4, 11);
var distances = new double[set.size()];
alg.distances(set, distances);
for (int i = 0; i < distances.length; i++) {
assertEquals(0.0, distances[i], UtilEjml.TEST_F64);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void test() {\n Assert.assertEquals(0.83648556F, Problem232.solve(/* change signature to provide required inputs */));\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int no_cases = scanner.nextInt();\n for (int i = 0; i < no_cases; i++) {\n int n = scanner.nextInt();\n int[] input = new int[n];\n for(int j = 0; j < n; j++) {\n input[j] = scanner.nextInt();\n }\n System.out.printf(\"%.2f\\n\", getExpectedValue(input));\n }\n }",
"@Test\r\n public void Test004TakeUserInputValid()\r\n {\r\n gol.input = new Scanner(new ByteArrayInputStream(\"1 1 2 2 2 3 2 4 -1\".getBytes()));\r\n gol.takeUserInput();\r\n assertTrue(gol.grid[1][1] == 1 && gol.grid[2][2] == 1 && gol.grid[2][3] == 1 && gol.grid[2][4] == 1);\r\n }",
"public double calculateExpectedDisagreement();",
"@Test\r\n public void test() {\r\n String[][] equations = { { \"a\", \"b\" }, { \"b\", \"c\" } },\r\n queries = { { \"a\", \"c\" }, { \"b\", \"a\" }, { \"a\", \"e\" }, { \"a\", \"a\" }, { \"x\", \"x\" } };\r\n double[] values = { 2.0, 3.0 };\r\n assertArrayEquals(new double[] { 6.0, 0.5, -1.0, 1.0, -1.0 }, calcEquation(equations, values, queries),\r\n Double.MIN_NORMAL);\r\n }",
"@Test\n public void testSpreadCalc() {\n Result result = calculator.calculate(.1, .32);\n assert (result.getMaxProfit().doubleValue() == 4.84);\n assert (result.getMaxLoss().doubleValue() == .16);\n assert (result.getBreakEven().doubleValue() == 39.84);\n assert (result.getMaxProfitPerContract().doubleValue() == 484);\n assert (result.getMaxLossPerContract().doubleValue() == 16);\n assert (result.getBreakEvenPerContract().doubleValue() == 3984);\n }",
"public void testOutputIsVaild()\n {\n Collection<Puzzle> puzzles = new ArrayList<Puzzle>();\n\n puzzles = (Collection<Puzzle>) Config.get(\"Puzzles\", puzzles);\n\n for (Puzzle puzzle : puzzles)\n {\n byte[] grid = puzzle.getData();\n GridSolver cs = new GridSolver(grid);\n cs.solveGrid();\n assertTrue(new GridChecker(cs.getDataSolution()).checkGrid());\n }\n }",
"@Test\n public void TestIlegalCorrectInputCheck(){\n Assert.assertEquals(player.CorrectInputCheck(\"horisonaz\",5,1,1)\n ,false , \" check horisontal spelling\"\n );\n\n //illegal : check vertical\n Assert.assertEquals(player.CorrectInputCheck(\"verticles\",5,1,1)\n ,false , \" check vertical spelling\"\n );\n\n //illegal : place a 5 ship horisontal at 0,1 outside of the grid\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,0,1)\n ,false,\" illegal : place a 5 ship horisontal at 0,1 outside of the grid \"\n );\n\n // illegal : place a 5 ship horisontal at 1,0 outside of the grid\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,1,0)\n ,false, \" illegal : place a 5 ship horisontal at 1,0 outside of the grid \"\n );\n\n // illegal : place a 5 ship horisontal at 7,1 ship is to big it goes outside the grid\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,7,1)\n ,false , \" illegal : place a 5 ship horisontal at 7,1 outside of the grid \"\n );\n\n // illegal : place a 5 ship horisontal at 1,10\n Assert.assertEquals(player.CorrectInputCheck(\"vertical\",5,1,7)\n ,false , \" illegal : place a 5 ship horisontal at 1,7 outside of the grid \"\n );\n\n\n }",
"@Test\n public void TestLegalCorrectInputCheck(){\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,1,1)\n ,true , \" check horisontal \"\n );\n\n //legal : check vertical spelling\n Assert.assertEquals(player.CorrectInputCheck(\"vertical\",5,1,1)\n ,true , \" check vertical \"\n );\n\n //legal : place a 5 ship horisontal at 1,1\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,1,1)\n ,true , \" legal : place a 5 ship horisontal at 1,1 \"\n );\n\n // legal : place a 5 ship horisontal at 1,10\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,1,10)\n ,true ,\" legal : place a 5 ship horisontal at 1,10 \"\n );\n\n // legal : place a 5 ship vertical at 1,10\n Assert.assertEquals(player.CorrectInputCheck(\"vertical\",5,1,1)\n ,true , \" legal : place a 5 ship vertical at 1,10 \"\n );\n\n // legal : place a 5 ship vertical at 1,10\n Assert.assertEquals(player.CorrectInputCheck(\"vertical\",5,10,1)\n ,true ,\"000 legal : place a 5 ship vertical at 1,10 \"\n );\n\n // legal : place a 5 ship horisontal at 6,1\n Assert.assertEquals(player.CorrectInputCheck(\"horisontal\",5,6,1)\n ,true , \" legal : place a 5 ship horisontal at 6,1 \"\n );\n\n // legal : place a 5 ship vertical at 1,6\n Assert.assertEquals(player.CorrectInputCheck(\"vertical\",5,1,6)\n ,true ,\"000 legal : place a 5 ship vertical at 10,6 \"\n );\n\n }",
"public static double sanityCheck(Match match)\n {\n Lane lane;\n Role role;\n \n int bot = 0;\n int bottom = 0;\n int jungle = 0;\n int mid = 0;\n int middle = 0;\n int top = 0;\n \n int solo = 0;\n int duo = 0;\n int duo_carry = 0;\n int duo_support = 0;\n int none = 0;\n \n\n \n for(int i = 0; i<10; i++)\n {\n lane = match.getParticipants().get(i).getTimeline().getLane();\n role = match.getParticipants().get(i).getTimeline().getRole();\n \n switch(lane)\n {\n case BOT:\n bot++;\n break;\n \n case BOTTOM:\n bottom++;\n break;\n \n case JUNGLE:\n jungle++;\n break;\n \n case MID:\n mid++;\n break;\n \n case MIDDLE:\n middle++;\n break;\n \n case TOP:\n top++;\n break;\n }\n \n switch(role)\n {\n case SOLO:\n solo++;\n break;\n \n case DUO:\n duo++;\n break;\n \n case DUO_CARRY:\n duo_carry++;\n break;\n \n case DUO_SUPPORT:\n duo_support++;\n break;\n \n case NONE:\n none++;\n break;\n }\n }\n \n double total = 0;\n \n if(top == 2)\n total++;\n if(mid+middle == 2)\n total++;\n if(jungle == 2)\n total++;\n if(bot + bottom == 4)\n total++;\n \n if(solo == 4)\n total++;\n if(duo + duo_carry + duo_support == 4);\n total++;\n if( duo_carry == 2);\n total++;\n if(duo_support == 2)\n total++;\n if(none == 2)\n total++;\n \n //it would be total =/ 9 but I figured every time one is wrong it makes another wrong, but there's really only 1 error \n total = ((total/18.0)+.5);\n \n \n //TestPrints\n //System.out.println(\"Sanity Check:\\nTop: \"+ top + \"\\nJungle: \"+ jungle + \"\\nMid: \" + (mid+middle) + \"\\nBot: \" + (bot+bottom)+ \"\\n\\nSolo: \"+solo + \"\\nDuo: \" + (duo+duo_carry+duo_support)\n //+ \"\\n\\\"Bot\\\": \"+ duo+\"\\nADC: \"+ duo_carry+ \"\\nSupport: \"+duo_support+ \"\\nNone: \" + none + \"\\nTotal Score: \" +total);\n \n \n \n return total;\n \n }",
"@Test\r\n\tpublic void testInput2() throws BasePriceMustBePositiveException, \r\n\t NegativePersonCountException, ProductCategoryNotSpecifiedException {\r\n\t\tNuPackEstimator estimator = new NuPackEstimator(new BigDecimal(\"5432.00\"), 1, \"drugs\");\r\n\t assertEquals(estimator.estimateFinalCost(), new BigDecimal(\"6199.81\"));\r\n\t}",
"@Test\n public void testCalculateScore() {\n System.out.println(\"calculateScore\");\n String input1 = \"8 0 3 1 6 5 -2 4 7 1 3 -2 6\";\n String input2 = \"8 0 3 1 6 5 -2 4 7 3 2 -2 6\";\n CCGeneticDrift instance = new CCGeneticDrift();\n int expResult1 = 2;\n int expResult2 = 4;\n int result1 = instance.calculateScore(input1);\n assertEquals(result1, expResult1);\n int result2 = instance.calculateScore(input2);\n assertEquals(result2, expResult2);\n }",
"@Test\r\n\tpublic void testInput1() throws BasePriceMustBePositiveException, \r\n\t NegativePersonCountException, ProductCategoryNotSpecifiedException {\r\n\t\tNuPackEstimator estimator = new NuPackEstimator(new BigDecimal(\"1299.99\"), 3, \"food\");\r\n\t assertEquals(estimator.estimateFinalCost(), new BigDecimal(\"1591.58\"));\r\n\t}",
"@Test\n public void testInterestAccumulated() {\n //Just ensure that the first two digits are the same\n assertEquals(expectedResults.getInterestAccumulated(), results.getInterestAccumulated(), 0.15);\n }",
"protected void runTest() throws OgnlException\n {\n Object result;\n\n result = OgnlOps.convertValue(value, toClass);\n if (!isEqual(result, expectedValue)) {\n if (scale >= 0) {\n double scalingFactor = Math.pow(10, scale),\n v1 = ((Number) value).doubleValue() * scalingFactor,\n v2 = ((Number) expectedValue).doubleValue() * scalingFactor;\n\n assertTrue((int) v1 == (int) v2);\n } else {\n fail();\n }\n }\n }",
"@Test\n public void allStrikesExpected_300(){\n String input = \"XXXXXXXXXXXX\";\n assertEquals(game.scoreOfGame(input),300);\n }",
"@Test\n public void testCalcTotalFillTime() throws PuzzleWaterSceneException {\n System.out.println(\"calcTotalFillTime\");\n double tubFillRate = 18.18;\n double numberOfFills = 3.0;\n PuzzleSceneWater instance = new PuzzleSceneWater();\n double expResult = 54.54;\n double result = instance.calcTotalFillTime(tubFillRate, numberOfFills);\n assertEquals(expResult, result, 54.54);\n \n /**\n * Test case #2\n * Test of calcTubFillRate method, of class PuzzleSceneWater.\n */\n System.out.println(\"\\tTest case #2\");\n \n // input values for test case 2\n double volume = -1.0;\n double gpm = 2.2;\n numberOfFills = 3.0;\n \n expResult = -1; // expected output returned value\n \n // call function to run test\n result = instance.calcTubFillRate((int) volume, gpm);\n \n // compare expected return value with actual value returned\n assertEquals(expResult, result, -1.0);\n \n /**\n * Test case #3\n * Test of calcTubFillRate method, of class PuzzleSceneWater.\n */\n System.out.println(\"\\tTest case #3\");\n \n // input values for test case 3\n volume = 40.0;\n gpm = -1;\n numberOfFills = 3.0;\n \n expResult = -1; // expected output returned value\n \n // call function to run test\n result = instance.calcTubFillRate((int) volume, gpm);\n \n // compare expected return value with actual value returned\n assertEquals(expResult, result, -1.0);\n \n /**\n * Test case #4\n * Test of calcTubFillRate method, of class PuzzleSceneWater.\n */\n System.out.println(\"\\tTest case #4\");\n \n // input values for test case 4\n volume = 40.0;\n gpm = 2.2;\n numberOfFills = -1;\n \n expResult = 18.18181818181818; // expected output returned value\n \n // call function to run test\n result = instance.calcTubFillRate((int) volume, gpm);\n \n // compare expected return value with actual value returned\n assertEquals(expResult, result, 18.18181818181818);\n \n /**\n * Test case #5\n * Test of calcTubFillRate method, of class PuzzleSceneWater.\n */\n System.out.println(\"\\tTest case #5\");\n \n // input values for test case 5\n volume = 40.0;\n gpm = 2.2;\n numberOfFills = 3.0;\n \n expResult = 54.54; // expected output returned value\n \n // call function to run test\n result = instance.calcTubFillRate((int) volume, gpm);\n \n // compare expected return value with actual value returned\n assertEquals(expResult, result, 54.54);\n \n }",
"@Test\r\n\tpublic void testInput3() throws BasePriceMustBePositiveException, \r\n\t NegativePersonCountException, ProductCategoryNotSpecifiedException {\r\n\t\tNuPackEstimator estimator = new NuPackEstimator(new BigDecimal(\"12456.95\"), 4, \"books\");\r\n\t assertEquals(estimator.estimateFinalCost(), new BigDecimal(\"13707.63\"));\r\n\t}",
"@Test\n public void allOnesExpected_20(){\n String input = \"11111111111111111111\";\n assertEquals(game.scoreOfGame(input),20);\n }",
"@Test\n public void testExactness() {\n assertMetrics(\"exactness:1\", \"a b c\",\"a x b x x c\");\n assertMetrics(\"exactness:0.9\", \"a b c\",\"a x b:0.7 x x c\");\n assertMetrics(\"exactness:0.7\", \"a b c\",\"a x b:0.6 x x c:0.5\");\n assertMetrics(\"exactness:0.775\", \"a!200 b c\",\"a x b:0.6 x x c:0.5\");\n assertMetrics(\"exactness:0.65\", \"a b c!200\",\"a x b:0.6 x x c:0.5\");\n }",
"private static void badApproach() {\n\t\t\n\t\tList<Double> result = new ArrayList<>();\n\t\t\n\t\tThreadLocalRandom.current()\n\t\t\t.doubles(10_000).boxed()\n\t\t\t.forEach(\n\t\t\t\t\td -> NewMath.inv(d)\n\t\t\t\t\t\t.ifPresent(\n\t\t\t\t\t\t\tinv -> NewMath.sqrt(inv)\n\t\t\t\t\t\t\t\t.ifPresent(\n\t\t\t\t\t\t\t\t\t\tsqrt -> result.add(sqrt)\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\n\t\tSystem.out.println(\"# result = \"+result.size());\n\t\t\n\t}",
"@Test\n\tpublic void calculateTest(){\n\t\tAssertions.assertThat(calculate(\"5*5\")).isEqualTo(25);\n\t}",
"@Test\n public void testCalcProbTheta() throws Exception {\n\n double guessProb1 = ItemResponseTheory.calcProbTheta(c, lambda, theta1, alpha1);\n double guessProb2 = ItemResponseTheory.calcProbTheta(c, lambda, theta2, alpha1);\n double guessProb3 = ItemResponseTheory.calcProbTheta(c, lambda, theta3, alpha1);\n double guessProb4 = ItemResponseTheory.calcProbTheta(c, lambda, theta4, alpha1);\n double guessProb5 = ItemResponseTheory.calcProbTheta(c, lambda, theta5, alpha1);\n double guessProb6 = ItemResponseTheory.calcProbTheta(c, lambda, theta6, alpha1);\n double guessProb7 = ItemResponseTheory.calcProbTheta(c, lambda, theta7, alpha1);\n\n double ans1 = 0.2;\n double ans2 = 0.21;\n double ans3 = 0.23;\n double ans4 = 0.3;\n double ans5 = 0.47;\n double ans6 = 0.73;\n double ans7 = 0.9;\n\n double tolerance = 0.005;\n\n assertTrue(\"Prob(theta1)\", Math.abs(guessProb1 - ans1)< tolerance);\n assertTrue(\"Prob(theta2)\", Math.abs(guessProb2 - ans2) < tolerance);\n assertTrue(\"Prob(theta3)\", Math.abs(guessProb3 - ans3) < tolerance);\n assertTrue(\"Prob(theta4)\", Math.abs(guessProb4 - ans4) < tolerance);\n assertTrue(\"Prob(theta5)\", Math.abs(guessProb5 - ans5) < tolerance);\n assertTrue(\"Prob(theta6)\", Math.abs(guessProb6 - ans6) < tolerance);\n assertTrue(\"Prob(theta7)\", Math.abs(guessProb7 - ans7) < tolerance);\n\n }",
"public static boolean doTestsPass() {\r\n // todo: implement more tests, please\r\n // feel free to make testing more elegant\r\n boolean testsPass = true;\r\n double result = power(2,-2);\r\n return testsPass && result==0.25;\r\n }",
"public static int compareSafetyComputations() {\n\t\tSystem.out.println(\"Distance,Duration,Exhalation,Derived,Inferred\");\n\t\tfinal boolean[] derived_results = new boolean[10];\n\t\tfinal boolean[] inferred_results = new boolean[10];\n\t\tint correctInferences = 0;\n\t\tfor(int i = 0; i < derived_results.length; i++) {\n\t\t\tfinal int randomDistance = (int) (Math.random() * (LARGE_DISTANCE * 3));\n\t\t\tfinal int randomDuration = (int) (Math.random() * (LARGE_DURATION * 3));\n\t\t\tfinal int randomExhalation = (int) (Math.random() * (LARGE_EXHALATION_LEVEL * 3));\n\t\t\tderived_results[i] = isDerivedSafe(randomDistance, randomDuration, randomExhalation);\n\t\t\tinferred_results[i] = isInferredSafe(randomDistance, randomDuration, randomExhalation);\n\t\t\tSystem.out.println(randomDistance + COMMA + randomDuration + COMMA \n\t\t\t\t\t\t\t\t+ randomExhalation + COMMA + derived_results[i] + COMMA\n\t\t\t\t\t\t\t\t+ inferred_results[i]);\n\t\t}\n\t\tfor(int j = 0; j < derived_results.length; j++) {\n\t\t\tif(derived_results[j] == inferred_results[j]) {\n\t\t\t\tcorrectInferences++;\n\t\t\t}\n\t\t}\n\t\treturn correctInferences;\n\t}",
"@Test\r\n public void testCalcScore() {\r\n \r\n //initialize variables\r\n int year = 0;\r\n int wheat = 0;\r\n int population = 0;\r\n int acres = 0;\r\n double expResult = 0;\r\n double result = 0;\r\n \r\n //test one - valid test\r\n System.out.println(\"Test 01\");\r\n year = 1;\r\n wheat = 100;\r\n population = 50;\r\n acres = 50;\r\n expResult = 1200.0;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n \r\n //test two - invalid year\r\n System.out.println(\"Test 02\");\r\n year = 0;\r\n wheat = 100;\r\n population = 50;\r\n acres = 50;\r\n expResult = -1;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n \r\n //test three - invalid wheat\r\n System.out.println(\"Test 03\");\r\n year = 3;\r\n wheat = -350;\r\n population = 100;\r\n acres = 5;\r\n expResult = -1;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n \r\n //test four - invalid acres\r\n System.out.println(\"Test 04\");\r\n year = 1;\r\n wheat = 25;\r\n population = 5;\r\n acres = -5;\r\n expResult = -1;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n \r\n //test five - invalid population\r\n System.out.println(\"Test 05\");\r\n year = 2;\r\n wheat = 35;\r\n population = -50;\r\n acres = 3;\r\n expResult = -1;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n \r\n //test six - multiple invalids\r\n System.out.println(\"Test 06\");\r\n year = -1;\r\n wheat = -100;\r\n population = -5;\r\n acres = -1;\r\n expResult = -1;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n \r\n //test seven - single invalid, positive result\r\n System.out.println(\"Test 07\");\r\n year = 2;\r\n wheat = 100;\r\n population = -50;\r\n acres = 5;\r\n expResult = -1;\r\n result = ScoreControl.calcScore(year, wheat, population, acres);\r\n assertEquals(expResult, result, 0.0);\r\n System.out.println(result + \" \" + expResult);\r\n }",
"private double assertApproximation(IApproximator approx) {\r\n double a = approx.approximate(param);\r\n Assert.assertTrue(\"Not \" + minExpected + \"<=\" + a + \"<=\" + maxExpected + \" for \" + param, \r\n minExpected <= a && a <= maxExpected);\r\n return a;\r\n }",
"@Override\n public void verifyResult() {\n assertThat(calculator.getResult(), is(4));\n }",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int tests = in.nextInt();\n for (int test = 0; test < tests; test++) {\n /* read low limit and upper limit */\n int A = in.nextInt();\n int B = in.nextInt();\n /* find roots of both limits */\n int rootA = (int)Math.sqrt(A);\n int rootB = (int)Math.sqrt(B);\n /* find the number of perfect squares in between */\n int result = rootB-rootA;\n /* check if the low limit is also a perfect square */\n if (rootA*rootA == A)\n result++;\n /* print result to STDOUT */\n System.out.println(result);\n }\n /* close scanner */\n in.close();\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println((0+15)/2);\r\n\t\tSystem.out.println(2.0e-6*10000000000.1);\r\n\t\tSystem.out.println(true&&false||true&&true);\r\n\t\t\r\n\t\t//1.1.2\r\n\t\tSystem.out.println((1+2.236)/2);\r\n\t\tSystem.out.println(1+2+3+4.0);\r\n\t\tSystem.out.println(4.1>=4);\r\n\t\tSystem.out.println(1+2+\"3\");\r\n\t\t\r\n\t\t//1.1.3\r\n//\t\tSystem.out.println(\"Please enter three nums\");\r\n\t\tScanner scanner=new Scanner(System.in);\r\n//\t\tint num=scanner.nextInt();\r\n//\t\tint num2=scanner.nextInt();\r\n//\t\tint num3=scanner.nextInt();\r\n//\t\r\n//\t\tif(num==num2&&num==num3) {\r\n//\t\t\tSystem.out.println(\"Eqaul:\");\r\n//\t\t}else {\r\n//\t\t\tSystem.out.println(\"Not equal:\");\r\n//\t\t}\r\n//\r\n//\t\t\t\r\n//\t\t//1.1.4\r\n//\t\t//a. then 语法错误\r\n//\t\t//b. ok\r\n//\t\t//c. ok\r\n//\t\t//d. ok\r\n//\r\n//\t\t\r\n//\t\t//1.1.5\r\n//\t\tint x=scanner.nextInt();\r\n//\t\tint y=scanner.nextInt();\r\n//\t\tif(x<1.0 && y<1.0 && x>0 && y>0) {\r\n//\t\t\tSystem.out.println(\"true\");\r\n//\t\t}\r\n//\t\telse {\r\n//\t\t\tSystem.out.println(\"false\");\r\n//\t\t}\r\n//\t\t\r\n\t\t\r\n\t\t//1.1.6\r\n//\t\tint f=0;\r\n//\t\tint g=1;\r\n//\t\tfor(int i=0;i<=15;i++) {\r\n//\t\t\tSystem.out.print(f+\"\\t\");\r\n//\t\t\tf=f+g;\r\n//\t\t\tg=f-g;\r\n//\t\t}\r\n\t\t\r\n\t\t//1.1.7\r\n//\t\tdouble t=9.0;\r\n//\t\twhile(Math.abs(t-9.0/t)> .001) {\r\n//\t\t\tt=(9.0/t+t)/2.0;\r\n//\t\t}\r\n//\t\tSystem.out.printf(\"%.5f\\n\", t);\r\n//\t\t\r\n//\t\t\r\n//\t\tint sum=0;\r\n//\t\tfor(int i=1;i<1000;i++)\r\n//\t\t\tfor(int j=0;j<i;j++)\r\n//\t\t\t\tsum++;\r\n//\t\tSystem.out.println(sum);\r\n//\t\r\n//\t\t\r\n//\t\tint sum2=0;\r\n//\t\tfor(int i=1;i<1000;i*=2)\r\n//\t\t\tfor(int j=0;j<1000;j++)\r\n//\t\t\t\tsum2++;\r\n//\t\tSystem.out.println(sum2);\r\n\t\r\n\t\t//1.1.8\r\n//\t\tSystem.out.println('b');\r\n//\t\tSystem.out.println('b'+'c');\r\n//\t\tSystem.out.println((char)('a'+4));\r\n\t\t\r\n\t\t//1.1.9\r\n//\t\tSystem.out.println(\"Please enter one num and return with a binary code\");\r\n//\t\tint N=scanner.nextInt();\r\n//\t\tString string=\"\";\r\n//\t\tfor(int n=N;n>0;n/=2) {\r\n//\t\t\tstring=(n%2)+string;\r\n//\t\t}\r\n//\t\tSystem.out.println(string);\r\n\t\t\r\n\t\t//1.1.10\r\n\t\t//int[] a=new int[10];\r\n\t\t\r\n\t\t//1.1.11\r\n//\t\tboolean[][] arrays= {{true,true,true},\r\n//\t\t\t\t{false,false,false},\r\n//\t\t\t\t{true,false,true},\r\n//\t\t};\r\n//\t\t\r\n//\t\tfor(int i=0;i<arrays.length;i++)\r\n//\t\t\tfor(int j=0;j<arrays.length;j++) {\r\n//\t\t\t\tif(arrays[i][j]) {\r\n//\t\t\t\t\tSystem.out.print(\"*\"+\"\\t\");\r\n//\t\t\t\t}\r\n//\t\t\t\telse {\r\n//\t\t\t\t\tSystem.out.print(\"^\"+\"\\t\");\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n\t\t//1.1.12\r\n//\t\tint[] a=new int[10];\r\n//\t\tfor(int i=0;i<10;i++)\r\n//\t\t\ta[i]=9-i;\r\n//\t\tfor(int i=0;i<10;i++)\r\n//\t\t\ta[i]=a[a[i]];\r\n//\t\tfor(int i=0;i<10;i++)\r\n//\t\t\tSystem.out.println(i);\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t}",
"public boolean check() {\n BigInteger t1 = y.modPow(int2, c.p);\n BigInteger t2 = x.modPow(int3, c.p);\n BigInteger t3 = ((t2.add(c.a.multiply(x))).add(c.b)).mod(c.p);\n return t1.compareTo(t3) == 0;\n }",
"@Test\n\tprivate void checkPossibilityTest() {\n\t\tint[] input = new int[] {1,1,1};\n Assertions.assertThat(checkPossibility(input)).isTrue();\n\n input = new int[] {0,0,3};\n Assertions.assertThat(checkPossibility(input)).isTrue();\n\n input = new int[] {4,2,3};\n Assertions.assertThat(checkPossibility(input)).isTrue();\n\n input = new int[] {2,3,4,2,3};\n Assertions.assertThat(checkPossibility(input)).isFalse();\n\t}",
"@Test\n\tpublic void testValidInput() {\n\t\t\n\t\tString normalInput = \"1357.459\";\n\t\tString germanInput = \"1357,459\";\n\t\tBigDecimal expectedOutput = new BigDecimal(normalInput);\n\t\t\n\t\t// normal input\n\t\tfor( final CellProcessor p : Arrays.asList(processor, processor2, processorChain, processorChain2) ) {\n\t\t\tassertExecution(p, normalInput, expectedOutput);\n\t\t}\n\t\t\n\t\t// german input (\",\" instead of \".\" as decimal symbol)\n\t\tfor( final CellProcessor p : Arrays.asList(processor3, processorChain3) ) {\n\t\t\tassertExecution(p, germanInput, expectedOutput);\n\t\t}\n\t}",
"@Test\n public void testPrimeNumberChecker() {\n System.out.println(\"Parameterized Number is : \" + inputNumber);\n assertEquals(expectedResult,\n primo.validate(inputNumber));\n }",
"@Test\n void _correctIfCaseTest() {\n\n actionApply();\n\n for (ReceiverPair receiverPair : dependedReceiverPairs) {\n for (AssingablePair assingablePair : incompatibleAssignablePairs) {\n verify(model).arithm(receiverPair.getVariableReceiver(), \"=\", assingablePair.getIndexAssignable());\n }\n }\n }",
"public double checkHypothesisResult() {\n \tSystem.out.println(\"Enter the variables:\");\n \tdouble [] x = new double[numberOfVariables];\n \tdouble result = theta[0];\n \t\n \tsc = new Scanner(System.in);\n \tfor (int j = 0; j < numberOfVariables-1; j++) {\n \t\tx[j] = sc.nextDouble();\n \t}\n \tfor (int i = 1; i < numberOfVariables; i++) {\n \t\tresult += theta[i] * x[i - 1];\n \t}\n\n \treturn result;\n }",
"@Test\n public void shouldCalculateProperMoveProbabilities() throws Exception {\n\n int actualCity = 0;\n boolean[] visited = new boolean[] {true, false, false, false};\n int[][] firstCriterium = new int[][] {{0, 2, 1, 2},\n {2, 2, 1, 1},\n {1, 1, 0, 1},\n {2, 1, 1, 0}};\n int[][] secondCriterium = new int[][] {{0, 3, 2, 1},\n {3, 0, 0, 0},\n {2, 0, 0, 0},\n {1, 0, 0, 0}};\n// final AttractivenessCalculator attractivenessCalculator = new AttractivenessCalculator(1.0, 0.0, 0.0, 0.0, 0.0);\n// double[][] array = new double[0][0];\n// final double[] probabilities = attractivenessCalculator.movesProbability(actualCity, visited, array, firstCriterium, secondCriterium, null, 0.0, 0.0);\n\n// assertTrue(probabilities[0] == 0.0);\n// assertTrue(probabilities[1] == 0.0);\n// assertTrue(probabilities[2] == 0.5);\n// assertTrue(probabilities[3] == 0.5);\n }",
"@Test\n public void test() {\n Assert.assertEquals(3L, Problem162.solve(/* change signature to provide required inputs */));\n }",
"@Test\n public void testExampleInputs() {\n CheckSum checkSum = new CheckSum();\n Integer[][] testData = new Integer[][]{\n { 5, 9, 2, 8 },\n { 9, 4, 7,3 },\n { 3, 8, 6, 5},\n };\n\n Integer result = checkSum.checksum(testData);\n System.out.printf(\"Result \" + result);\n assertEquals(new Integer(9), result);\n }",
"@Test\n public void testCalcMedAmount() {\n \n //Test case 1\n \n System.out.println(\"calcMedAmount Test Case 1 - Dose is correct\");\n \n //Input Values for Test Case 1\n \n double weightInPounds = 100;\n double numberOfPills = 1;\n \n AntidoteControl instance = new AntidoteControl();\n \n double expResult = 227;\n double result = AntidoteControl.calcMedAmount(weightInPounds);\n assertEquals(expResult, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n \n \n //Test case 2\n \n System.out.println(\"calcMedAmount Test Case 2 Invalid weight\");\n \n //Input Values for Test Case 2\n \n weightInPounds = 0;\n numberOfPills = 1;\n \n // AntidoteControl instance = new AntidoteControl();\n \n expResult = -1;\n result = AntidoteControl.calcMedAmount(weightInPounds);\n assertEquals(expResult, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n \n \n //Test case 3\n \n System.out.println(\"calcMedAmount Test Case 3 Underdose\");\n \n //Input Values for Test Case 3\n \n weightInPounds = 10001;\n numberOfPills = 0;\n \n // AntidoteControl instance = new AntidoteControl();\n \n expResult = -2;\n result = AntidoteControl.calcMedAmount(weightInPounds);\n assertEquals(expResult, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n \n \n //Test case 4\n \n System.out.println(\"calcMedAmount Test Case 4 Overdose\");\n \n //Input Values for Test Case 4\n \n weightInPounds = 100;\n numberOfPills = 4;\n \n // AntidoteControl instance = new AntidoteControl();\n \n expResult = 227;\n result = AntidoteControl.calcMedAmount(weightInPounds);\n assertEquals(expResult, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"private boolean caculate(double currentValue, double lastValue, NotifyStrategy.Expression expr,\n Map<String, Object> judgeResult) {\n\n double diff = currentValue - lastValue;\n double upperLimit = 0;\n String upperLimitString = expr.getUpperLimit();\n\n // get upperLimit\n if (upperLimitString.contains(\"#\")) {\n upperLimit = Double.parseDouble(upperLimitString.substring(upperLimitString.indexOf('#') + 1));\n }\n else if (upperLimitString.contains(\"%\")) {\n upperLimit = Double.parseDouble(upperLimitString.substring(0, upperLimitString.indexOf('%')));\n diff = diff * 100 / lastValue;\n }\n else if (!upperLimitString.contains(\"*\")) {\n upperLimit = Double.parseDouble(upperLimitString);\n }\n\n if (!upperLimitString.contains(\"*\") && diff > upperLimit) {\n judgeResult.put(\"actualValue\", String.format(\"%.2f\", diff) + (upperLimitString.contains(\"%\") ? \"%\" : \"\"));\n judgeResult.put(\"expectedValue\", upperLimitString);\n judgeResult.put(\"upperORlower\", \"upper\");\n\n return true;\n }\n\n diff = currentValue - lastValue;\n double lowerLimit = 0;\n String lowerLimitString = expr.getLowerLimit();\n\n // get lowerLimit\n if (lowerLimitString.contains(\"#\")) {\n lowerLimit = 0 - Double.parseDouble(lowerLimitString.substring(lowerLimitString.indexOf('#') + 1));\n }\n else if (lowerLimitString.contains(\"%\")) {\n lowerLimit = Double.parseDouble(lowerLimitString.substring(0, lowerLimitString.indexOf('%')));\n diff = diff * 100 / lastValue;\n }\n else if (!lowerLimitString.contains(\"*\")) {\n lowerLimit = Double.parseDouble(lowerLimitString);\n }\n\n if (!lowerLimitString.contains(\"*\") && diff < 0 - lowerLimit) {\n judgeResult.put(\"actualValue\", String.format(\"%.2f\", diff) + (lowerLimitString.contains(\"%\") ? \"%\" : \"\"));\n judgeResult.put(\"expectedValue\", lowerLimitString);\n judgeResult.put(\"upperORlower\", \"lower\");\n\n return true;\n }\n\n return false;\n }",
"@Test\r\n\tpublic void testCalculateReinforcement() {\r\n\r\n\t\tint actual_value = playerTwo.getStrategyType().calculateReinforcementArmy();\r\n\t\tint expected_value = 3;\r\n\t\tassertEquals(expected_value, actual_value);\r\n\t}",
"@Test\r\n\tpublic void test() {\n\t\tdouble actual = conv.dollarToRupees(25);\r\n\t\tassertEquals(2500.0,actual,0);\r\n\t\t//assertEquals(expected,actual,precision[delta])\r\n\t\t\r\n\t}",
"@Test\n\tpublic void testMultiplica2Enteros() {\n\t\tdouble resultado= Producto.multiplica2enteros(10, 10);\n\t\tdouble esperado= 100;\n\t\t\n\t\tassertEquals(esperado, resultado);\n\t}",
"private static void evaluateCase() {\n try {\n int n = SYS_IN.nextInt();\n int m = SYS_IN.nextInt();\n SYS_IN.nextLine();\n int mn = Integer.MAX_VALUE;\n long sum = 0L;\n int num;\n int sign = 1;\n for (int ni = 0; ni < n; ni++) {\n for (int mi = 0; mi < m; mi++) {\n num = SYS_IN.nextInt();\n if (num < 0) {\n sign *= -1;\n num = -num;\n }\n sum += num;\n mn = Math.min(mn, num);\n }\n SYS_IN.nextLine();\n }\n if (sign == -1) {\n sum -= 2 * mn;\n }\n System.out.println(sum);\n } catch (Exception e) {}\n }",
"@Test\r\n public void Test005TakeUserInputInValidRow()\r\n {\r\n gol.input = new Scanner(new ByteArrayInputStream(\"20 1 2 2 2 3 2 4 -1\".getBytes()));\r\n gol.takeUserInput();\r\n assertTrue(gol.grid[2][3] == 1 && gol.grid[2][2] == 1 && gol.grid[2][3] == 1 && gol.grid[2][4] == 1);\r\n }",
"@Test\r\n public void testAppartentMagnitude() {\r\n System.out.println(\"appartentMagnitude\");\r\n \r\n // Test case one.\r\n System.out.println(\"Test case #1\"); \r\n \r\n double magnitude = 12;\r\n double distance = 200;\r\n \r\n SceneControl instance = new SceneControl();\r\n \r\n double expResult = 0.0003;\r\n double result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case two.\r\n System.out.println(\"Test case #2\"); \r\n \r\n magnitude = 13;\r\n distance = -50;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case three.\r\n System.out.println(\"Test case #3\"); \r\n \r\n magnitude = 56;\r\n distance = 20;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, -999999);\r\n \r\n // Test case four.\r\n System.out.println(\"Test case #4\"); \r\n \r\n magnitude = 56;\r\n distance = 20;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case five.\r\n System.out.println(\"Test case #5\"); \r\n \r\n magnitude = 14;\r\n distance = 0;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case six.\r\n System.out.println(\"Test case #6\"); \r\n \r\n magnitude = -50;\r\n distance = 12;\r\n \r\n expResult = -0.3472;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case seven.\r\n System.out.println(\"Test case #7\"); \r\n \r\n magnitude = 50;\r\n distance = 20;\r\n \r\n expResult = 0.125;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case eight.\r\n System.out.println(\"Test case #8\"); \r\n \r\n magnitude = 13;\r\n distance = 1;\r\n \r\n expResult = 13;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n }",
"@Test\n public void integral_isCorrect() {\n }",
"@Test\n\tpublic void testMultiplica2Enteros0() {\n\t\tdouble resultado= Producto.multiplica2enteros(100, 0);\n\t\tdouble esperado= 0;\n\t\t\n\t\tassertEquals(esperado, resultado);\n\t}",
"@Test\n \tpublic void testCheckingAccusation() {\n \t\t//Set answer\n \t\tSolution answer = new Solution(\"Colonel Mustard\", \"Knife\", \"Library\");\n \t\tSolution guess = new Solution(\"Colonel Mustard\", \"Knife\", \"Library\");\n \t\tgame.setAnswer(answer);\n \t\t//Check correct accusation\n \t\t//correct if it contains the correct person, weapon and room\n \t\tAssert.assertTrue(game.checkAccusation(guess));\n \t\t//Check false accusation\n \t\t//not correct if the room is wrong, or if the person is wrong, if the weapon is wrong, or if all three are wrong\n \t\t//wrong room\n \t\tguess = new Solution(\"Colonel Mustard\", \"Knife\", \"Billiards Room\");\n \t\tAssert.assertFalse(game.checkAccusation(guess));\n \t\t//wrong weapon\n \t\tguess = new Solution(\"Colonel Mustard\", \"Lead Pipe\", \"Library\");\n \t\tAssert.assertFalse(game.checkAccusation(guess));\n \t\t//wrong person\n \t\tguess = new Solution(\"Ms. Peacock\", \"Knife\", \"Library\");\n \t\tAssert.assertFalse(game.checkAccusation(guess));\n \t}",
"@Test\n public void sumOfMultiplesBelow_isCorrect_test1() {\n int actual = sut.sumOfMultiplesBelow(10, 3, 5);\n assertThat(actual, equalTo(23));\n }",
"protected abstract int isValidInput();",
"@Test\n void studentMCQTotalScoreTest(){\n Student student = new Student(\"Lim\");\n student.setNumCorrectAns(8); // Set Total Number Question(s) Answered Correctly\n student.setNumQuestionAns(10); // Set Total Number Question(s) Answered Correctly\n\n\n double expectedResult = 80; // Input for testing\n // Calculate total score and set it\n student.setCalculatedScore(student.getNumCorrectAns(), student.getNumQuestionAns());\n System.out.println(\"Test Case #5\");\n System.out.println(\"\\tExpected Result: \" + expectedResult); // print expected result\n double actualResult = student.getTotalScore(); // Actual Result\n System.out.println(\"\\tActual Result: \" + actualResult); // Print actual result\n assertEquals(expectedResult, actualResult); // Compare the expected result (True) & Actual Result\n }",
"public abstract boolean verifyInput();",
"@Test\r\n\tpublic void calculLostPointsByRulesTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByRules(mapConf, mapIssues), new Float(3.5));\r\n\t}",
"@Test\n public void testOriginalAmountOwed() {\n //Just ensure that the first two digits are the same\n assertEquals(expectedResults.getOriginalAmountOwed(), results.getOriginalAmountOwed(), 0.15);\n }",
"@Test\n\tpublic void testAbsVal() {\n\t\tdouble tmpRndVal = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = Math.abs(doubleRandomNegativeNumbers());\n\t\t\tassertTrue( (tmpRndVal == ac.absoluteValue(tmpRndVal))\n\t\t\t\t\t|| (0.0 == ac.absoluteValue(tmpRndVal)) \n\t\t\t\t\t|| (-0.123456789 == ac.absoluteValue(tmpRndVal)) );\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = Math.abs(doubleRandomPositiveNumbers());\n\t\t\tassertTrue((tmpRndVal == ac.absoluteValue(tmpRndVal)));\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\tdouble inpResult = 0.0;\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tinpResult = Math.abs(zero);\n\t\t\tassertTrue( (inpResult == ac.absoluteValue(zero)) );\n\t\t}\n\t\t\n\t}",
"private boolean isValidInput() {\n\t\treturn true;\n\t}",
"public static void main(String[] args) {\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString[] input = sc.nextLine().split(\" \");\r\n\t\tint a = Math.max(Integer.valueOf(input[0]), Integer.valueOf(input[1]));\r\n\t\tint b = Math.min(Integer.valueOf(input[0]), Integer.valueOf(input[1]));\r\n\t\tint N = Integer.valueOf(sc.nextLine());\r\n\t\tList<String> inputList = new ArrayList<String>(N);\r\n\t\twhile (N > 0) {\r\n\t\t\tinputList.add(sc.nextLine());\r\n\t\t\tN--;\r\n\t\t}\r\n\t\tint i = 0;\r\n\t\twhile (i < inputList.size()) {\r\n\t\t\tinput = inputList.get(i).split(\" \");\r\n\r\n\t\t\tif (input[0].equals(\"R\")) {\r\n\t\t\t\tint p = Math.max(Integer.valueOf(input[1]), Integer.valueOf(input[2]));\r\n\t\t\t\tint q = Math.min(Integer.valueOf(input[1]), Integer.valueOf(input[2]));\r\n\t\t\t\tif (p <= a && q <= b)\r\n\t\t\t\t\tSystem.out.println(\"YES\");\r\n\t\t\t\telse {\r\n\t\t\t\t\tdouble sumPower = Math.pow(p, 2) + Math.pow(q, 2);\r\n\t\t\t\t\tdouble diffPower = Math.pow(p, 2) - Math.pow(q, 2);\r\n\t\t\t\t\tif (p > a && b >= (((2 * p * q * a) + (diffPower * Math.pow(sumPower - Math.pow(a, 2), 0.5))) / sumPower))\r\n\t\t\t\t\t\tSystem.out.println(\"YES\");\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tSystem.out.println(\"NO\");\r\n\t\t\t\t}\r\n\t\t\t} else if (input[0].equals(\"C\")) {\r\n\t\t\t\tif (((22 / 7) * Math.pow(Integer.valueOf(input[1]), 2)) < a * b)\r\n\t\t\t\t\tSystem.out.println(\"YES\");\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\"NO\");\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tsc.close();\r\n\t}",
"@Test\n public void shouldSolveProblem2() {\n assertThat(sumOfEvenFibonacciValuesNotExceeding(90)).isEqualTo(2 + 8 + 34);\n assertThat(sumOfEvenFibonacciValuesNotExceeding(4_000_000)).isEqualTo(4_613_732);\n }",
"@Test\n public void testCalculateMoviePrice2D() {\n\n String roomFormatForMovie = \"2D\";\n float moviePrice = 6.5F;\n CalculateMoviePrice instance = new CalculateMoviePrice();\n float expResult = 5.0F;\n float result = instance.calculateMoviePrice(roomFormatForMovie, moviePrice);\n assertEquals(expResult, result, 0.0);\n System.out.println(\"calculateMoviePrice2D : \"+expResult);\n // TODO review the generated test code and remove the default call to fail.\n if (result != expResult) {\n fail(\"The test case is a prototype.\");\n }\n }",
"@Test\n public void testScoreUpdate() {\n try {\n final BestEvalScore score = new BestEvalScore(\"thjtrfwaw\");\n double expected = 0;\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n final Evaluation eval = new Evaluation(2);\n eval.eval(0,1);\n eval.eval(1,1);\n\n expected = eval.accuracy();\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n eval.eval(0,1);\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n eval.eval(1,1);\n eval.eval(1,1);\n expected = eval.accuracy();\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n\n\n } catch (IOException e) {\n throw new IllegalStateException(\"Failed to create instance!\", e);\n }\n\n\n }",
"@Test\n public void testCalculation() {\n int expResult = 321;\n game.calculation(180);\n int result = Integer.valueOf(game.getRemainigScore());\n assertEquals(\"testCalculation: \",expResult, result);\n }",
"@Test\n\tvoid test() {\n\t\tassertEquals(0, solution1.solution(2147483647));\n\t\tassertEquals(1, solution1.solution(5));\n\t}",
"private void testSolution(String input, String output) {\n runs++;\n\n // Load the problem & solution\n ProblemSpec problemSpec = Solution.loadProblem(input);\n Solution solution = new Solution(problemSpec);\n\n // Solve and time the solution\n long startTime = System.currentTimeMillis();\n List<State> states = solution.solve();\n long endTime = System.currentTimeMillis();\n durations.put(input, endTime - startTime);\n\n // Output the solution\n Solution.writeSolution(Formatter.format(states), output);\n\n problemSpec = Solution.loadProblem(input, output);\n if (solutionPasses(problemSpec)) {\n passes++;\n }\n\n successes++;\n }",
"@Test\n void _correctThenCaseTest() {\n\n actionApply();\n\n for (ReceiverPair receiverPair : dependedReceiverPairs) {\n for (AssingablePair assingablePair : incompatibleAssignablePairs) {\n verify(model).arithm(receiverPair.getVariableDependentReceiver(), \"!=\", assingablePair.getIndexdependentAssignable());\n }\n }\n }",
"@Test\n public void test02() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[6];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, '\\u0086');\n assertEquals(Double.POSITIVE_INFINITY, evaluation0.meanPriorAbsoluteError(), 0.01D);\n }",
"@Test\r\n public void testCalcItemToPounds() {\r\n System.out.println(\"calcItemToPounds\");\r\n \r\n /**********************\r\n * Test case #1\r\n *********************/\r\n System.out.println(\"\\tTest case #1\");\r\n \r\n //input values for test case 1\r\n int numOfItems = 2;\r\n String items = \"egg\";\r\n \r\n //create instance of InventoryControl class\r\n calcItemToPounds instance = new calcItemToPounds();\r\n \r\n double expResult = 0.44; //expected output returned value\r\n \r\n //call function to run test\r\n double result = instance.calcItemToPounds(numOfItems, items);\r\n \r\n // compare expected return value with actual value returned\r\n assertEquals(expResult, result, 0.001);\r\n System.out.println(result);\r\n \r\n /**********************\r\n * Test case #2\r\n *********************/\r\n System.out.println(\"\\tTest case #2\");\r\n \r\n //input values for test case 2\r\n numOfItems = -1;\r\n items = \"egg\";\r\n \r\n expResult = -1; //expected output returned value\r\n \r\n //call function to run test\r\n result = instance.calcItemToPounds(numOfItems, items);\r\n \r\n // compare expected return value with actual value returned\r\n assertEquals(expResult, result, 0.001);\r\n System.out.println(result);\r\n \r\n /**********************\r\n * Test case #3\r\n *********************/\r\n System.out.println(\"\\tTest case #3\");\r\n \r\n //input values for test case 3\r\n numOfItems = 4;\r\n items = \"EGG\";\r\n \r\n expResult = -1; //expected output returned value\r\n \r\n //call function to run test\r\n result = instance.calcItemToPounds(numOfItems, items);\r\n \r\n // compare expected return value with actual value returned\r\n assertEquals(expResult, result, 0.001);\r\n System.out.println(result);\r\n \r\n /**********************\r\n * Test case #4\r\n *********************/\r\n System.out.println(\"\\tTest case #4\");\r\n \r\n //input values for test case 4\r\n numOfItems = 5;\r\n items = \"egg\";\r\n \r\n expResult = -1; //expected output returned value\r\n \r\n //call function to run test\r\n result = instance.calcItemToPounds(numOfItems, items);\r\n \r\n // compare expected return value with actual value returned\r\n assertEquals(expResult, result, 0.001);\r\n System.out.println(result);\r\n \r\n /**********************\r\n * Test case #5\r\n *********************/\r\n System.out.println(\"\\tTest case #5\");\r\n \r\n //input values for test case 5\r\n numOfItems = 0;\r\n items = \"egg\";\r\n \r\n expResult = 0; //expected output returned value\r\n \r\n //call function to run test\r\n result = instance.calcItemToPounds(numOfItems, items);\r\n \r\n // compare expected return value with actual value returned\r\n assertEquals(expResult, result, 0.001);\r\n System.out.println(result);\r\n \r\n /**********************\r\n * Test case #6\r\n *********************/\r\n System.out.println(\"\\tTest case #6\");\r\n \r\n //input values for test case 6\r\n numOfItems = 0; // only accept integer values won't accept .25\r\n items = \"egg\";\r\n \r\n expResult = 0; //expected output returned value\r\n \r\n //call function to run test\r\n result = instance.calcItemToPounds(numOfItems, items);\r\n \r\n // compare expected return value with actual value returned\r\n assertEquals(expResult, result, 0.001);\r\n System.out.println(result);\r\n \r\n /**********************\r\n * Test case #7\r\n *********************/\r\n System.out.println(\"\\tTest case #7\");\r\n \r\n //input values for test case 7\r\n numOfItems = 4;\r\n items = \"egg\";\r\n \r\n expResult = 0.88; //expected output returned value\r\n \r\n //call function to run test\r\n result = instance.calcItemToPounds(numOfItems, items);\r\n \r\n // compare expected return value with actual value returned\r\n assertEquals(expResult, result, 0.001);\r\n System.out.println(result);\r\n }",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n scan.useLocale(Locale.ENGLISH);\n System.out.print(\"Enter A: \");\n double A = scan.nextDouble();\n System.out.print(\"Enter B: \");\n double B = scan.nextDouble();\n System.out.print(\"Enter x: \");\n double x = scan.nextDouble();\n System.out.print(\"Enter y: \");\n double y = scan.nextDouble();\n System.out.print(\"Enter z: \");\n double z = scan.nextDouble();\n\n double minSize = Math.min(A,B);\n double maxSize = Math.max(A,B);\n double minBrick = Math.min(Math.min(x,y),z);\n double midBrick = Math.min(Math.max(x,y),z);\n\n if (A*B>=minBrick*midBrick) {\n if (minSize>=minBrick || maxSize>=midBrick) {\n System.out.println(\"True\");\n }\n } else {\n System.out.println(\"False\");\n }\n }",
"@LargeTest\n\tpublic void testScore_perfectEnding() {\n\t\tsolve();\n\t\tassertEquals((Integer) START_SCORE, Integer.valueOf(solo.getText(1).getText().toString()));\n\t}",
"@Test\n\tpublic void testPotencia0() {\n\t\tdouble resultado=Producto.potencia(0, 8);\n\t\tdouble esperado=0;\n\t\t\n\t\tassertEquals(esperado,resultado);\n\t}",
"public static void checkConsistency(){\n double[] aNormalW=new double[numberOfObjectives];\n double randomIndex=0;\n double sum=0;\n for (int row=0;row<numberOfObjectives;row++){\n for (int column=0;column<numberOfObjectives;column++){\n\n sum+=weights[column]*objectives[row][column];\n }\n df.setRoundingMode(RoundingMode.UP);\n aNormalW[row]= Double.valueOf(df.format(sum));\n sum=0;\n }\n double awtDividedByWt=0;\n for (int i=0;i<numberOfObjectives;i++){\n awtDividedByWt+=aNormalW[i]/weights[i];\n decimalFormat.setRoundingMode(RoundingMode.HALF_UP);\n Double.valueOf(decimalFormat.format(awtDividedByWt));\n }\n double reciprocalNumber=(double) 1/numberOfObjectives;\n decimalFormat.setRoundingMode(RoundingMode.UP);\n Double.valueOf(decimalFormat.format(reciprocalNumber));\n double step3=reciprocalNumber*awtDividedByWt;\n decimalFormat.setRoundingMode(RoundingMode.UP);\n double numerator=Double.valueOf(decimalFormat.format(step3))-numberOfObjectives;\n double denominator=numberOfObjectives-1;\n decimalFormat.setRoundingMode(RoundingMode.UP);\n double ci=Double.valueOf(decimalFormat.format(numerator)) /denominator;\n decimalFormat.setRoundingMode(RoundingMode.CEILING);\n System.out.println(\"Consistency Index (CI)= \"+Double.valueOf(decimalFormat.format(ci)));\n System.out.println();\n double ciDividedByRI=ci/table23(numberOfObjectives);\n decimalFormat.setRoundingMode(RoundingMode.UP);\n // Double.valueOf(df.format(ciDividedByRI));\n if (ciDividedByRI<0.10){\n randomIndex=ci/table23(numberOfObjectives);\n decimalFormat.setRoundingMode(RoundingMode.UP);\n System.out.println(\"Random Index (RI)= \"+Double.valueOf(decimalFormat.format(randomIndex)));\n System.out.println(\"degree of consistency is satisfactory !!\");\n }else {\n System.out.println(\"the AHP may not yield meaningful results !!\");\n }\n System.out.println();\n }",
"public void TestCaseCheck() {\n\t\t//int[] A = {200,400,499,550,600}; //Test Case 1 No rearrangement\n\t\t//int[] A = {200,300,100,500,400}; //Test Case 2 Arrangement needed\n\t\t//int[] A = {100,200,300,300,400}; //Test Case 3 Duplicates\n\t\t//int[] A = {100}; //Test Case 4 One number only\n\t\t//int[] A = {100,200,300,400,500,600}; //Test Case 5 No rearrangement Even\n\t\t//int[] A = {600,500,400,300,200,100}; //Test Case 6 Rearrangement Even\n\t\t//int[] A = {550,500,450,400,350,300,250,200,150,100}; //Test Case 7 10 numbers\n\t\tint[] A = {-300,-200,0,100,200}; //Test Case 8 Negative Numbers\n\t\t\n\t\t\n\t\tSystem.out.println(\"Brute Foce Median result: \" + BruteForceMedian(A));\n\t\tSystem.out.println(\"Partition Median result: \" + Median(A));\n\t}",
"@Test\n\tpublic void caseCostWithCorrectInput() {\n\t\tFloat cost = 50f;\n\t\tboolean isNameValid;\n\t\ttry {\n\t\t\tisNameValid = StringNumberUtil.positiveNumberUtil(cost);\n\t\t\tassertTrue(isNameValid);\n\t\t} catch (NumberException e) {\n\t\t\tfail();\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\ttry {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString inp = in.readLine();\n\t\t\n\t\twhile(!inp.isEmpty()) \n\t\t{\n\t\t\tint testCases = Integer.parseInt(inp);\n\t\t\twhile(testCases>0)\n\t\t\t{\n\t\t\t\tint inp1 = Integer.parseInt(in.readLine());\n\t\t\t\tfloat exprsn = (((((inp1*567)/9)+7492)*235)/47) - 498;\n\t\t\t\tint exprsnInt = (int) (exprsn/10);\n\t\t\t\tSystem.out.println(Math.abs((exprsnInt%10)));\n\t\t\t\ttestCases--;\n\t\t\t}\n\t\t}\n\t}\n\tcatch(Exception e){\n\t\t\n\t}\n\n}",
"@Test\n public void shouldEvaluateWorkProperlyCase3() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.5);\n solution.setObjective(1, 0.5);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.5, 1.5})) ;\n\n assertEquals((1.5 - 0.75) * (1.5 - 0.25) + (0.75 - 0.5) * (1.5 - 0.5) + (0.5 - 0.25) * (1.5 - 0.75), result, 0.0001) ;\n }",
"boolean isMismatch(double score);",
"void calcFittest(){\n System.out.println(\"Wall hugs\");\n System.out.println(this.wallHugs);\n\n System.out.println(\"Freedom points\");\n System.out.println(this.freedomPoints);\n\n System.out.println(\"Visited points\");\n System.out.println(this.vistedPoints);\n\n this.fitnessScore = freedomPoints - wallHugs - vistedPoints;\n System.out.println(\"Individual fit score: \" + fitnessScore);\n }",
"final private void evaluate() {\n\n int lastPalindrome = getLast();\n\n while (lastPalindrome > minNum * minNum) {\n int palindrome = getNextPalindrome();\n\n for (int i = maxNum; i >= minNum; i--) {\n if ((palindrome % i) == 0) {\n int j = palindrome / i;\n if ((j >= minNum) && (j <= maxNum)) {\n num1 = i;\n num2 = j;\n return;\n }\n }\n }\n }\n }",
"@Test\n public void testValiderLaCouvertureDuSoin() {\n \n assertTrue(soin1.validerLaCouvertureDuSoin());\n soin3.setPourcentage(2.0);\n assertFalse(soin3.validerLaCouvertureDuSoin());\n soin3.setPourcentage(-1.1);\n assertFalse(soin3.validerLaCouvertureDuSoin());\n assertTrue(soin2.validerLaCouvertureDuSoin());\n }",
"public static void main(String[] args) {\r\n int grade = 0;\r\n \r\n initializeBoard();\r\n \r\n System.out.println(game);\r\n//getValueIn is a simple getter method the returns value at given array index \r\n if (game.getValueIn(1, 1) == 5)\r\n grade += 5;\r\n else\r\n System.out.println(\"getValueIn(r,c) test failed\");\r\n//confirms that to string was done correctly \r\n if (testToString()) \r\n grade += 5;\r\n else\r\n System.out.println(\"toString() test failed\");\r\n//testAddGuess1() test tries to add a guess (value to array index) that depends on boolean flag states \r\n game.addGuess(2, 3, 5);\r\n if (testAddGuess1()) \r\n grade += 5;\r\n else\r\n System.out.println(\"addGuess(r,c,v) test 1 failed\"); \r\n//testAddGuess2() test tries to add a guess (value to array index) that depends on boolean flag states \r\n game.addGuess(2, 2, 5);\r\n if (testAddGuess2()) \r\n grade += 5;\r\n else\r\n System.out.println(\"addGuess(r,c,v) test 2 failed\"); \r\n//testAddGuess3() test tries to add a guess (value to array index) that depends on boolean flag states \r\n game.addGuess(2, 4, 1);\r\n if (testAddGuess3()) \r\n grade += 10;\r\n else\r\n System.out.println(\"addGuess(r,c,v) test 3 failed\"); \r\n //tests reset(), by re-running the first toString test above, after running game.reset() \r\n game.reset();\r\n if (testToString())\r\n grade += 10;\r\n else\r\n System.out.println(\"reset() test failed\");\r\n//tests the game.getAllowedValues method by passing the game object method call and hence it's results\r\n//to the testGetAllowedValues(), which appears to only apply to one cell/array index at a time\r\n//so if I am correct this is saying what values can be used at coordinates 8, 8.\r\n//the answer that it uses to compare is a visual/manual analysis of expected results for cell 8, 8. \r\n if (testGetAllowedValues(game.getAllowedValues(8, 8)))\r\n grade += 10;\r\n else\r\n System.out.println(\"getAllowedValues() test failed\");\r\n \r\n System.out.printf(\"Your grade is %d/50.\\n\", grade);\r\n }",
"@Test public void operationTest(){\n assertEquals(calculator.squareOf(8),64);\n assertEquals(calculator.elementOf(9),3);\n assertEquals(calculator.factorial(5),120);\n assertEquals(calculator.isPrimeNumber(2),true);\n assertEquals(calculator.isPrimeNumber(13),true);\n assertEquals(calculator.isPrimeNumber(9),false);\n // assertNotEquals(calculator.factorial(4),10);\n }",
"@Test\n public void testPostAmountCalc() {\n //To test if it calculates the correct value.\n int carportLength = 200;\n int carportWidth = 300;\n int expResult = 4;\n int result = (int) Calculators.postsAmountCalc(carportLength, carportWidth);\n assertEquals(expResult, result);\n \n carportLength = 250;\n result = (int) Calculators.postsAmountCalc(carportLength, carportWidth);\n assertEquals(expResult, result);\n \n carportLength = 300;\n expResult = 6;\n result = (int) Calculators.postsAmountCalc(carportLength, carportWidth);\n assertEquals(expResult, result);\n \n carportLength = 400;\n expResult = 8;\n result = (int) Calculators.postsAmountCalc(carportLength, carportWidth);\n assertEquals(expResult, result);\n \n carportLength = 500;\n expResult = 10;\n result = (int) Calculators.postsAmountCalc(carportLength, carportWidth);\n assertEquals(expResult, result);\n \n }",
"private boolean isInputValid() {\n return true;\n }",
"@Test //This is integration test\r\n\tpublic void testCalculatePrice01() throws Exception\r\n\t{\n\t\tImportInformation information = new ImportInformation();\r\n\t\tinformation.importMenu(\"Food_Data_Test1\");\r\n\t\tinformation.importUserInput();\t\r\n\t\tCalculation calcPrice = new Calculation();\r\n\t\tcalcPrice.calculatePrice(information.getMenu(),information.getUserInput());\r\n\t\t// compare the object itself and its side effects instead of String output, the string output can be done in main.\r\n\t\tArrayList<Food> exspectedFoodList = new ArrayList<Food>();\r\n\t\tArrayList<Combination> exspectedCombinationList = new ArrayList<Combination>();\r\n\t\tassertEquals(exspectedCombinationList, calcPrice.getResult());\r\n\t}",
"@Test\r\n public void Test006TakeUserInputInValidColumn()\r\n {\r\n gol.input = new Scanner(new ByteArrayInputStream(\"2 1 2 20 2 3 2 4 -1\".getBytes()));\r\n gol.takeUserInput();\r\n assertTrue(gol.grid[2][1] == 1 && gol.grid[2][3] == 1 && gol.grid[2][4] == 1);\r\n }",
"@Test\n\tpublic void testDivision() {\n\t\tdouble tmpRndVal = 0.0;\n\t\tdouble tmpRndVal2 = 0.0;\n\t\tdouble tmpResult = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomNegativeNumbers();\n\t\t\ttmpRndVal2 = doubleRandomNegativeNumbers();\n\t\t\ttmpResult = tmpRndVal / tmpRndVal2;\n\t\t\t//assertEquals(bc.division(tmpRndVal, tmpRndVal2), tmpResult);\n\t\t\tassertTrue((tmpResult == bc.division(tmpRndVal, tmpRndVal2)));\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomPositiveNumbers();\n\t\t\ttmpRndVal2 = doubleRandomPositiveNumbers();\n\t\t\ttmpResult = tmpRndVal / tmpRndVal2;\n\t\t\t//assertEquals(bc.division(tmpRndVal, tmpRndVal2), tmpResult);\n\t\t\tassertTrue((tmpResult == bc.division(tmpRndVal, tmpRndVal2)));\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\tdouble stdReturn = -0.123456789;\n\t\tint tmpVal = 7;\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tassertTrue( ((bc.division(tmpVal, zero) == zero) \n\t\t\t\t\t|| (bc.division(tmpVal, zero) == stdReturn) \n\t\t\t\t\t|| (bc.division(zero, zero) == zero)\n\t\t\t\t\t|| (bc.division(zero, tmpVal) == zero) ));\n\t\t}\n\t\t\n\t}",
"@Test\n public void shouldEvaluateWorkProperlyCase2() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.5);\n solution.setObjective(1, 0.5);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.0, 1.0})) ;\n\n assertEquals(0.25*0.75 + 0.25*0.5 + 0.25*0.25, result, 0.0001) ;\n }",
"@Test\n public void testCalculerValeurLot() {\n double superficie = 456.0;\n double prixMin = 4.32;\n double expResult = 1969.95;\n double result = CalculAgricole.calculerValeurLot(superficie, prixMin);\n assertEquals(\"Montant pour la Valeur du Lot n'était pas correct.\", expResult, result, 0);\n }",
"@Test\n\tpublic void test() {\n\t\tTestUtil.testEquals(new Object[][]{\n\t\t\t\t{4, 2, 7, 1, 3},\n\t\t\t\t{3, 3, 5, 2, 1},\n\t\t\t\t{15, 2, 4, 8, 2}\n\t\t});\n\t}",
"@Test(timeout = 4000)\n public void test069() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[4];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, (-1.0));\n assertEquals(Double.NEGATIVE_INFINITY, evaluation0.meanPriorAbsoluteError(), 0.01);\n }",
"public static void main(String[] args) {\n\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\tint A = scan.nextInt();\r\n\t\tint B = scan.nextInt();\r\n\t\tlong x = scan.nextInt();\r\n\t\tlong y = scan.nextInt();\r\n\t\tlong z = scan.nextInt();\r\n\t\t\r\n\t\tlong requiredA = x * 2 + y;\r\n\t\tlong requiredB = y + z * 3;\r\n\t\t\r\n\t\tlong neededA = Math.max(0, requiredA - A);\r\n\t\tlong neededB = Math.max(0, requiredB - B);\r\n\t\tSystem.out.print(neededA + neededB);\r\n\t}",
"private static double checkInput(String input) {\n\t\tdouble parsedValue = 0;\n\t\ttry {\n\t\t\tparsedValue = Double.parseDouble(input);\n\t\t} catch (NumberFormatException parseFailed) {\n\t\t\tSystem.out.println(\"'\" + input + \"' se ne može protumačiti kao broj.\");\n\t\t\treturn ERROR;\n\t\t}\n\n\t\tif (parsedValue > 0) {\n\t\t\treturn parsedValue;\n\t\t} else if (parsedValue < 0) {\n\t\t\tSystem.out.println(\"Unijeli ste negativnu vrijednost.\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Ne postoji pravokutnik sa stranicom duljine nula.\");\n\t\t}\n\t\treturn ERROR;\n\t}",
"public static void main(String[] args) throws IOException {\n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n StringTokenizer st = new StringTokenizer(f.readLine());\n int a = Integer.parseInt(st.nextToken());\n int b = Integer.parseInt(st.nextToken());\n int c = Integer.parseInt(st.nextToken());\n int d = Integer.parseInt(st.nextToken());\n int x = -1;\n int y = -1;\n for(int i = 1; i < 45000; i++) {\n if(i*(i-1)/2 == a) {\n x = i;\n }\n if(i*(i-1)/2 == d) {\n y = i;\n }\n }\n if(x == -1 || y == -1) {\n out.println(\"Impossible\");\n } else {\n if(x*y == b+c) {\n int w = c/x;\n int z = c%x;\n out.println(\"1\".repeat(w)+\"0\".repeat(x-z)+\"1\".repeat(z > 0 ? 1 : 0)+\"0\".repeat(z)+\"1\".repeat(y-w-(z > 0 ? 1 : 0)));\n } else {\n if(b+c > 0) {\n out.println(\"Impossible\");\n } else if(x == 1) {\n out.println(\"1\".repeat(y));\n } else if(y == 1) {\n out.println(\"0\".repeat(x));\n } else {\n out.println(\"Impossible\");\n }\n }\n }\n f.close();\n out.close();\n }",
"public static void main(String[] args) {\n\t\tfor (double x = 0; x < 100; x++) {\n\t\t\tfor (double y = 0; y < 100; y++) {\n\t\t\t\tString expression = \"( ( \"+x+\" * \"+x+\" ) * ( \"+y+\" * \"+y+\" ) )\";\n\t\t\t\tif ( ( evaluate(expression) != ( x * x * ( y * y ) ) ) )\n\t\t\t\t\tthrow new AssertionError();\n\t\t\t}\n\t\t}\n\n\t\tString testExpression = \"( ( 10 * 10 ) * ( 10 * 10 ) )\";\n\t\tSystem.out.println(evaluate(testExpression)); // == 10000.0\n\n\t\t// Should pass\n\t\tif ( evaluate(testExpression) != 10000.0 )\n\t\t\tthrow new AssertionError();\n\t}",
"@Test\n\t/**\n\t * Testing the basic expressions.\n\t * Testing:\n\t * - A correct sample program.\n\t * - A sample program containing spelling and context free errors.\n\t * - A sample program containing context errors.\n\t * - A sample program containing runtime errors.\n\t * \n\t * @throws ParseException\n\t * @throws IOException\n\t */\n\tpublic void basicExprTest() throws ParseException, IOException{\n\t\tint[] input = {0, 1, 0, 99, 2, 1, 2, 0, 0, 99};\n\t\tint[] output = {1, 0, -1, 0, 1, -1, 0, 99, 97, -1, 2, 1, 2, 0, -1, 0, 1, 0, -1, 97, -1, 2, -1, 98};\n\t\tcheckRuntime(\"basicExprCorrect\", input, output);\n\t\t\n\t\t/** Check whether a program contains syntax errors. */\n\t\tcheckFail(\"basicExprSpellingContextFreeSyntaxError\");\n\t\t\n\t\t/** Check whether a program contains the given errors. */\n\t\tSet<String> errors = new HashSet<String>();\n\t\terrors.add(\"Line 10:1 - Variable 'z' is immutable.\");\n\t\terrors.add(\"Line 13:3 - Expected type 'Integer' but found 'Boolean'\");\n\t\terrors.add(\"Line 15:5 - Expected type 'Boolean' but found 'Char'\");\n\t\terrors.add(\"Line 17:10 - Expected type 'Integer' but found 'Char'\");\n\t\terrors.add(\"Line 17:1 - Expected type 'Integer' but found 'Boolean'\");\n\t\terrors.add(\"Line 18:1 - Expected type 'Integer' but found 'Char'\");\n\t\terrors.add(\"Line 18:16 - Expected type 'Integer' but found 'Char'\");\n\t\terrors.add(\"Line 19:7 - Expected type 'Boolean' but found 'Integer'\");\n\t\terrors.add(\"Line 19:13 - Expected type 'Boolean' but found 'Char'\");\n\t\terrors.add(\"Line 22:1 - Expected type 'Integer' but found 'Boolean'\");\t\t\n\t\terrors.add(\"Line 23:1 - Expected type 'Char' but found 'Integer'\");\n\t\terrors.add(\"Line 26:5 - Expected type 'Char' but found 'Integer'\");\n\t\terrors.add(\"Line 27:5 - Expected type 'Boolean' but found 'Integer'\");\n\t\terrors.add(\"Line 30:1 - 'p' not defined in scope\");\n\t\terrors.add(\"Line 30:1 - Variable 'p' not declared\");\n\t\terrors.add(\"Line 30:4 - 'q' not defined in scope\");\n\t\terrors.add(\"Line 30:4 - Variable 'q' not declared\");\n\t\terrors.add(\"Line 37:1 - Expected type 'null' but found 'Char'\");\n\t\terrors.add(\"Line 38:58 - Expected type not null but found 'null'\");\n\t\tcheckContextFail(\"basicExprContextError\", errors);\n\t\t\n\t\t/** Check whether a program gives a runtime error. */\n\t\tcheckRuntimeFail(\"basicExprRuntimeError\");\n\t}",
"public static void main(String[] args) {\n try {\n Scanner sr = new Scanner(System.in);\n System.out.println(\"Enter a = \");\n double a = sr.nextDouble();\n System.out.println(\"Enter b = \");\n double b = sr.nextDouble();\n System.out.println(\"Enter c = \");\n double c = sr.nextDouble();\n if (check(a) && check(b) && check(c)) {\n solve(a, b, c);\n }\n } catch (Exception e) {\n System.out.println(\"You entered not a number!\");\n }\n }",
"public boolean test_entry() {\n\t\tboolean t = false;\n\t\tdouble val = Double.parseDouble(numericfield.getText());\n\n\t\tif (val == opt) {\n\t\t\tt = true;\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Vous avez trouvé le bon parametre pour ce remede\");\n\t\t}\n\t\t// case init > opt ---> on doit diminuer la valeur !!!!\n\t\tif (init > opt) {\n\t\t\tif (init > val && val > opt)\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\"Vous allez dans le bon sens , continuez\");\n\t\t\tif (init > val && opt > val)\n\t\t\t\tJOptionPane\n\t\t\t\t\t\t.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\" Vous avez raté le parametre optimale et vous allez dans le mauvais sens\");\n\t\t\tif (val > init)\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\" Vous allez dans le mauvais sens\");\n\t\t}\n\n\t\t// case init < opt ---> on doit augmenter la valeur !!!!\n\t\tif (init < opt) {\n\t\t\tif (init < val && val < opt)\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\"Vous allez dans le bon sens , continuez\");\n\t\t\tif (init < val && opt < val)\n\t\t\t\tJOptionPane\n\t\t\t\t\t\t.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\" Vous avez raté le parametre optimale et vous allez dans le mauvais sens\");\n\t\t\tif (val < init)\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\" Vous allez dans le mauvais sens\");\n\t\t}\n\t\treturn t;\n\t}",
"private void validateInputParameters(){\n\n }",
"@Test\n public void testAsinsBehaveSimilarly() {\n double tolerance = 0.00000001;\n double standardAsin1 = Math.asin(1);\n double j2meAsin1 = MathUtils.asin(1);\n Assert.assertTrue(\"Math.asin(1) = \" + standardAsin1\n + \", while MathUtils.asin(1) = \" + j2meAsin1,\n Math.abs(standardAsin1 - j2meAsin1) < tolerance);\n }",
"public static void main(String[] args) {\r\n Scanner in = new Scanner(System.in);\r\n System.out.println(\"Please, enter the height\");\r\n float height = in.nextFloat();\r\n System.out.println(\"Please, enter the weight\");\r\n float weight = in.nextFloat();\r\n float idealWeight = height - 110;\r\n\r\n if (idealWeight < weight){\r\n System.out.println(\"You need to loose \" + (weight - idealWeight) + \"kg\");\r\n } else if (idealWeight > weight){\r\n System.out.println(\"You need to gain \" + (idealWeight - weight) + \"kg\");\r\n } else {\r\n System.out.println(\"Your weight is perfect\");\r\n }\r\n }"
]
| [
"0.680083",
"0.64299935",
"0.6403282",
"0.6402218",
"0.64006335",
"0.6331664",
"0.63313216",
"0.6322365",
"0.6308928",
"0.6307317",
"0.6279225",
"0.6255244",
"0.6253739",
"0.62003654",
"0.61811376",
"0.6088167",
"0.60606915",
"0.6058805",
"0.60530895",
"0.60425633",
"0.60390294",
"0.60384953",
"0.6023224",
"0.60063446",
"0.59972924",
"0.5987245",
"0.5983911",
"0.59573936",
"0.5956354",
"0.5923387",
"0.5913745",
"0.5912574",
"0.59121174",
"0.5909644",
"0.58978856",
"0.5891233",
"0.58855563",
"0.5884847",
"0.58586216",
"0.583842",
"0.583078",
"0.5823864",
"0.5819187",
"0.5817653",
"0.5807998",
"0.57914203",
"0.57864255",
"0.57839537",
"0.577699",
"0.5776247",
"0.5775007",
"0.5774721",
"0.57703036",
"0.576894",
"0.5763852",
"0.57554936",
"0.57417667",
"0.5736953",
"0.57256186",
"0.5719804",
"0.5709825",
"0.5706236",
"0.57047236",
"0.57017714",
"0.5699158",
"0.56949794",
"0.56932753",
"0.5686544",
"0.56860113",
"0.5680195",
"0.5679292",
"0.56773466",
"0.5672122",
"0.56718105",
"0.5666232",
"0.5660651",
"0.5657187",
"0.56570315",
"0.5655846",
"0.5647956",
"0.56477994",
"0.56461954",
"0.564312",
"0.56423557",
"0.563947",
"0.56394476",
"0.56367755",
"0.56328255",
"0.56225646",
"0.5621854",
"0.5612777",
"0.56122446",
"0.5608109",
"0.5590704",
"0.5588142",
"0.5583894",
"0.5583006",
"0.5577265",
"0.55754834",
"0.55713755",
"0.556601"
]
| 0.0 | -1 |
Checks to see if distance() and distances() return the same value and the the error is larger than 0 | @Test void noisy() {
standardScene();
simulateScene(0);
var alg = new DistanceMetricTripleReprojection23();
var model = new MetricCameraTriple();
model.view1.setTo(cameraA);
model.view2.setTo(cameraB);
model.view3.setTo(cameraC);
model.view_1_to_2.setTo(truthView_1_to_i(1));
model.view_1_to_3.setTo(truthView_1_to_i(2));
model.view3.fx += 40; // this will mess things up a bit
alg.setModel(model);
var set = observations3.subList(0, 20);
var distances = new double[set.size()];
alg.distances(set, distances);
for (int i = 0; i < distances.length; i++) {
assertTrue(distances[i] != 0.0);
assertEquals(distances[i], alg.distance(set.get(i)), UtilEjml.TEST_F64);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static boolean isDistanceOK(double[] diff) {\n\t\tfor (double d : diff) {\n\t\t\tif (Math.abs(d) > MAX_PIXEL_DISTANCE) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean isFinished() {\n double[] positions = drivetrain.getPositions();\n\n return Math.abs(positions[0] - targetDistance) <= allowedError && Math.abs(positions[1] - targetDistance) <= allowedError;\n }",
"private double calcErrForNeighbour(GNode node) {\n return 0.0;\n }",
"boolean hasDistance();",
"private static double calcError(Instances data, Instances data2) {\n\t\t// calculate the total l1 norm of the class values of the two data sets \n\t\tdouble error = 0;\n\t\tfor (int i=0; i < data.numInstances(); ++i) {\n\t\t\terror += Math.abs(data.instance(i).classValue() - data2.instance(i).classValue());\t\t\t\n\t\t}\n\t\treturn error;\n\t}",
"@Test\n\tpublic void testGetDistance() {\n\t\t// Initialize 3 points\n\t\tPoint2D p1 = new Point2D.Double(1.848,8.331);\n\t\tPoint2D p2 = new Point2D.Double(10.241,9.463);\n\t\tPoint2D p3 = new Point2D.Double(8.889,2.456);\n\t\t\n\t\t// Initialized the Triangulate object and load points and radii\n\t\tTriangulate test = new Triangulate();\n\t\ttest.setPoints(p1, p2, p3);\n\t\tdouble err = 1e-4; \n\t\t\n\t\tdouble[] dist = test.getDistance();\n\t\tdouble actual1 = 8.4690;\n\t\tdouble actual2 = 7.1362;\n\t\tdouble actual3 = 9.1701;\n\t\t\n\t\tassertEquals(actual1, dist[0], err);\n\t\tassertEquals(actual2, dist[1], err);\n\t\tassertEquals(actual3, dist[2], err);\n\t}",
"@Test\n public void testDistanceTo() {\n System.out.println(\"Testing distanceTo() for a range of different GPS coordinates\");\n double distancesExpected[] = {\n 786.3,\n 786.3,\n 786.3,\n 786.3,\n\t\t\t102.2,\n\t\t\t102.2,\n\t\t\t102.2,\n\t\t\t102.2\n };\n\t\t\n for (int i = 0; i < this.testCoordinates.length; i++) {\n double expResult = distancesExpected[i];\n double result = this.origin.distanceTo(this.testCoordinates[i]);\n\t\t\tSystem.out.println(\"Expected: \" + expResult + \", Actual: \" + result);\n assertEquals(expResult, result, 0.1);\n }\n }",
"public void getMissDistance() {\n missDistance = targetDistance - projDistance;\n }",
"private double getErrorSquare(DataObject o1, DataObject o2) {\n\t\treturn getDistance(o1, o2);\n\t}",
"private float checkDistance(float d) {\r\n if (d < 0) {\r\n return 0f;\r\n }\r\n if (d > 1) {\r\n return 1f;\r\n }\r\n return d;\r\n }",
"@Test\n public void testDoubleErrorDetecting() {\n final int[] msgWithError = {0,0,1,0, 1,0,1,1, 1,0,1,1, 1,1,1,0};\n final int expectedErrorIndex = ResponseCode.TWO_ERRORS.code;\n\n // When executing error detection\n final int errorIndex = HammingAlgorithm.calculateErrorIndex(msgWithError);\n\n // Then check if errorIndex is as expected\n assertThat(errorIndex).isEqualTo(expectedErrorIndex);\n }",
"boolean listDoubleEquals(double[] list1, double[] list2) {\r\n\t\tassert(list1.length == list2.length);\r\n\t\tdouble error = 0;\r\n\t\tfor (int i=0 ; i < list1.length ; i++) {\r\n\t\t\terror += (list1[i] - list2[i]);\r\n\t\t}\r\n\t\t\r\n\t\treturn (error < 0.00001 && error > -0.00001);\r\n\t}",
"public boolean applyErrors() {\n\t\t/*\n\t\tdouble erreur = Math.random(); // on genere un nombre entre 0 et 1\n\t\tSystem.out.print(this.error*erreur + \"\\n\");\n\t\tif (erreur * this.error < 0.07) { // on multiplie l'erreur aleatoire par l'error de la sonde (qui sera aussi compris entre 0 et 1)\n\t\t\treturn true;\t\t\t\t// si l'erreur finle (produit des deux erreur) est inferieur a 20%\n\t\t}\n\t\treturn false;\n\t\t*/\n\t\treturn true;\n\t}",
"public static void main(String[] args) {\n MaxDistance max = new MaxDistance();\n //int arr[] = {9, 2, 3, 4, 5, 6, 7, 8, 18, 0};\n\n //int arr[] = {3, 5, 4, 2};\n //int arr[] = {3,2,1};\n //int arr[] = {1,10};\n int arr[] = {100, 100, 100}; //return 0, not checking equal value\n \n //int arr[] = { 83564666, 2976674, 46591497, 24720696, 16376995, 63209921, 25486800, 49369261, 20465079, 64068560, 7453256, 14180682, 65396173, 45808477, 10172062, 28790225, 82942061, 88180229, 62446590, 77573854, 79342753, 2472968, 74250054, 17223599, 47790265, 24757250, 40512339, 24505824, 30067250, 82972321, 32482714, 76111054, 74399050, 65518880, 94248755, 76948016, 76621901, 46454881, 40376566, 13867770, 76060951, 71404732, 21608002, 26893621, 27370182, 35088766, 64827587, 67610608, 90182899, 66469061, 67277958, 92926221, 58156218, 44648845, 37817595, 46518269, 44972058, 27607545, 99404748, 39262620, 98825772, 89950732, 69937719, 78068362, 78924300, 91679939, 52530444, 71773429, 57678430, 75699274, 5835797, 74160501, 51193131, 47950620, 4572042, 85251576, 49493188, 77502342, 3244395, 51211050, 44229120, 2135351, 47258209, 77312779, 37416880, 59038338, 96069936, 20766025, 35497532, 67316276, 38312269, 38357645, 41600875, 58590177, 99257528, 99136750, 4796996, 84369137, 54237155, 64368327, 94789440, 40718847, 12226041, 80504660, 8177227, 85151842, 36165763, 72764013, 36326808, 80969323, 22947547, 76322099, 7536094, 18346503, 65759149, 45879388, 53114170, 92521723, 15492250, 42479923, 20668783, 64053151, 68778592, 3669297, 73903133, 28973293, 73195487, 64588362, 62227726, 17909010, 70683505, 86982984, 64191987, 71505285, 45949516, 28244755, 33863602, 18256044, 25110337, 23997763, 81020611, 10135495, 925679, 98158797, 73400633, 27282156, 45863518, 49288993, 52471826, 30553639, 76174500, 28828417, 41628693, 80019078, 64260962, 5577578, 50920883, 16864714, 54950300, 9267396, 56454292, 40872286, 33819401, 75369837, 6552946, 26963596, 22368984, 43723768, 39227673, 98188566, 1054037, 28292455, 18763814, 72776850, 47192134, 58393410, 14487674, 4852891, 44100801, 9755253, 37231060, 42836447, 38104756, 77865902, 67635663, 43494238, 76484257, 80555820, 8632145, 3925993, 81317956, 12645616, 23438120, 48241610, 20578077, 75133501, 46214776, 35621790, 15258257, 20145132, 32680983, 94521866, 43456056, 19341117, 29693292, 38935734, 62721977, 31340268, 91841822, 22303667, 96935307, 29160182, 61869130, 33436979, 32438444, 87945655, 43629909, 88918708, 85650550, 4201421, 11958347, 74203607, 37964292, 56174257, 20894491, 33858970, 45292153, 22249182, 77695201, 34240048, 36320401, 64890030, 81514017, 58983774, 88785054, 93832841, 12338671, 46297822, 26489779, 85959340 };\n\n //int arr[] = { 46158044, 9306314, 51157916, 93803496, 20512678, 55668109, 488932, 24018019, 91386538, 68676911, 92581441, 66802896, 10401330, 57053542, 42836847, 24523157, 50084224, 16223673, 18392448, 61771874, 75040277, 30393366, 1248593, 71015899, 20545868, 75781058, 2819173, 37183571, 94307760, 88949450, 9352766, 26990547, 4035684, 57106547, 62393125, 74101466, 87693129, 84620455, 98589753, 8374427, 59030017, 69501866, 47507712, 84139250, 97401195, 32307123, 41600232, 52669409, 61249959, 88263327, 3194185, 10842291, 37741683, 14638221, 61808847, 86673222, 12380549, 39609235, 98726824, 81436765, 48701855, 42166094, 88595721, 11566537, 63715832, 21604701, 83321269, 34496410, 48653819, 77422556, 51748960, 83040347, 12893783, 57429375, 13500426, 49447417, 50826659, 22709813, 33096541, 55283208, 31924546, 54079534, 38900717, 94495657, 6472104, 47947703, 50659890, 33719501, 57117161, 20478224, 77975153, 52822862, 13155282, 6481416, 67356400, 36491447, 4084060, 5884644, 91621319, 43488994, 71554661, 41611278, 28547265, 26692589, 82826028, 72214268, 98604736, 60193708, 95417547, 73177938, 50713342, 6283439, 79043764, 52027740, 17648022, 33730552, 42851318, 13232185, 95479426, 70580777, 24710823, 48306195, 31248704, 24224431, 99173104, 31216940, 66551773, 94516629, 67345352, 62715266, 8776225, 18603704, 7611906 };\n\n int n = arr.length;\n int maxDiff = max.maxIndexDiff(arr, n);\n System.out.println(maxDiff);\n }",
"boolean checkError() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n int a = seq.next();\n int b = in.next();\n if (a != b) {\n attempts++;\n return true;\n }\n }\n return false;\n }",
"@Test\n public void testGPSpingInvalid() {\n assertEquals(0.0, err1.getLat(), PRECISION);\n assertEquals(0.0, err1.getLon(), PRECISION);\n assertEquals(0.0, err2.getLon(), PRECISION);\n assertEquals(0,err1.getTime());\n assertEquals(0,err2.getTime());\n }",
"private void calculateError() {\n this.error = this.elementCount - this.strippedPartition.size64();\n }",
"public double calculateExpectedDisagreement();",
"public boolean execute() {\n\t\t\t\t\n\t\tif( numberOfEncoders == 1) {\n\t\t\tif (Math.abs(rightDistanceTraveled - distance) <= error || Math.abs(leftDistanceTraveled - distance) <= error) {\n\t\t\t\tthis.reset();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\telse if( numberOfEncoders == 2) {\n\t\t\tif (Math.abs(leftDistanceTraveled - distance) <= error && Math.abs(rightDistanceTraveled - distance) <= error ) {\n\t\t\t\tthis.reset();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n//\t\t\tif(Math.abs(prevErrorLeft - leftDistanceTraveled) <= 3 && Math.abs(prevErrorRight - rightDistanceTraveled) <= 3 && stallStartTime == 0) {\n//\t\t\t\tstallStartTime = System.currentTimeMillis();\n//\t\t\t} else {\n//\t\t\t\tstallStartTime = 0;\n//\t\t\t}\n\t\t}\n//\t\tSystem.out.println(stallStartTime + \" \" + Math.abs(prevErrorLeft - leftDistanceTraveled));\n//\t\tif(stallStartTime + timeout > System.currentTimeMillis()) {\n//\t\t\tthis.reset();\n//\t\t\treturn true;\n//\t\t}\n\t\t\n\t\tif(Math.abs(leftDistanceTraveled - distance) > error) {\n\t\t\tleftDistanceTraveled = SensorInputControl.getInstance().getEncoder(SensorType.DRIVE_TRAIN_LEFT_ENCODER).getDistance();\n\t\t\tleftDriveOutput = leftDistanceControlLoop.getPID(distance, leftDistanceTraveled);\n\t\t\t\n\t\t\tif(leftDriveOutput > 0) {\n\t\t\t\tleftDriveOutput = (leftDriveOutput < AutoDriveForward.MIN_SPEED ? AutoDriveForward.MIN_SPEED : leftDriveOutput);\n\t\t\t} else if(leftDriveOutput < 0) {\n\t\t\t\tleftDriveOutput = (leftDriveOutput > -AutoDriveForward.MIN_SPEED ? -AutoDriveForward.MIN_SPEED : leftDriveOutput);\n\t\t\t}\n\t\t} else {\n\t\t\tleftDistanceControlLoop.reset();\n\t\t\tleftDriveOutput = 0;\n\t\t}\n\t\t\n\t\tif(Math.abs(rightDistanceTraveled - distance) > error) {\n\t\t\trightDistanceTraveled = -SensorInputControl.getInstance().getEncoder(SensorType.DRIVE_TRAIN_RIGHT_ENCODER).getDistance();\n\t\t\trightDriveOutput = rightDistanceControlLoop.getPID(distance, rightDistanceTraveled);\n\t\t\t\n\t\t\tif(rightDriveOutput > 0) {\n\t\t\t\trightDriveOutput = (rightDriveOutput < AutoDriveForward.MIN_SPEED ? AutoDriveForward.MIN_SPEED : rightDriveOutput);\n\t\t\t} else if (rightDriveOutput < 0) {\n\t\t\t\trightDriveOutput = (rightDriveOutput > -AutoDriveForward.MIN_SPEED ? -AutoDriveForward.MIN_SPEED : rightDriveOutput);\n\t\t\t}\n\t\t} else {\n\t\t\trightDistanceControlLoop.reset();\n\t\t\trightDriveOutput = 0;\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"AutoDriveFwd::[left speed, right speed] \" + leftDriveOutput + \", \" + rightDriveOutput);\n\t\t\n\t\tDrivetrainControl.getInstance().setLeftDriveSpeed(-leftDriveOutput);\n\t\tDrivetrainControl.getInstance().setRightDriveSpeed(-rightDriveOutput);\n\t\t\n\t\tprevErrorLeft = leftDistanceTraveled - distance;\n\t\tprevErrorRight = rightDistanceTraveled - distance;\n\n\t\t\n\t\treturn false;\n\t\t\n\t}",
"@Test\r\n\tpublic void testDistancia0() \r\n\t{\r\n\t\tAssert.assertEquals(1.41, new Ponto(3,3).dist(new Ponto(4,2)), EPSILON);\r\n\t\tAssert.assertEquals(26.20, new Ponto(-7,-4).dist(new Ponto(17,6.5)), EPSILON);\t\r\n\t\tAssert.assertEquals(0.00, new Ponto(0,0).dist(new Ponto(0,0)), EPSILON);\t\r\n\t}",
"private double computeError(){\n double temp = 0;\r\n for(int trial_Number = 0; trial_Number < expectedOutputList.length; trial_Number++){\r\n for(int index = 0; index< expectedOutputList[trial_Number].length; index++){\r\n double difference = expectedOutputList[trial_Number][index] - this.getOutput()[index];\r\n double error = difference*difference;\r\n temp += error;\r\n }\r\n }\r\n return temp;\r\n }",
"private void checkForMinimumDistanceFailure(final ReadEndsForMateCigar current) {\n if (!toMarkQueue.isEmpty()) {\n final ReadEndsForMateCigar other = toMarkQueue.peek();\n if (other.read1ReferenceIndex == current.read1ReferenceIndex && toMarkQueue.getToMarkQueueMinimumDistance() <= other.read1Coordinate - current.read1Coordinate) {\n if (checkCigarForSkips(other.getRecord().getCigar())) {\n throw new PicardException(\"Found a samRecordWithOrdinal with sufficiently large code length that we may have\\n\"\n + \" missed including it in an early duplicate marking iteration. Alignment contains skipped\"\n + \" reference bases (N's). If this is an\\n RNAseq aligned bam, please use MarkDuplicates instead,\"\n + \" as this tool does not work well with spliced reads.\\n Minimum distance set to \"\n + toMarkQueue.getToMarkQueueMinimumDistance() + \" but \" + (other.read1Coordinate - current.read1Coordinate - 1)\n + \" would be required.\\n\" + \"Record was: \" + other.getRecord().getSAMString());\n } else {\n System.err.print(\"record #1: \" + other.getRecord().getSAMString());\n System.err.print(\"record #2: \" + current.getRecord().getSAMString());\n throw new PicardException(\"Found a samRecordWithOrdinal with sufficiently large clipping that we may have\\n\"\n + \" missed including it in an early duplicate marking iteration. Please increase the\"\n + \" minimum distance to at least \" + (other.read1Coordinate - current.read1Coordinate - 1)\n + \"bp\\nto ensure it is considered (was \" + toMarkQueue.getToMarkQueueMinimumDistance() + \").\\n\"\n + \"Record was: \" + other.getRecord().getSAMString());\n }\n }\n }\n }",
"boolean isMismatch(double score);",
"private double distanceResult(double preLng, double preLat, double nextLng, double nextLat) {\n\t\treturn Math.sqrt((preLng - nextLng) * (preLng - nextLng) + (preLat - nextLat) * (preLat - nextLat));\n\t}",
"private void ensureDistances() {\n if (getDistanceEnd() > distances.length) {\n int newLength = distances.length * 4;\n double[] newDistances = new double[newLength];\n System.arraycopy(distances, 0, newDistances, 0, distances.length);\n Arrays.fill(newDistances, distances.length, newLength, -1);\n distances = newDistances;\n }\n }",
"@Test\n\tpublic void lineGetDistanceTest() {\n\t\tDouble distanceOfFirstLine = Math.sqrt((10 - 0) * (10 - 0) + (10 - 0) * (10 - 0));\n\n\t\tassertEquals(distanceOfFirstLine, firstLine.getDistance(), .0001d);\n\t\tassertNotEquals(Math.sqrt(2 * distanceOfFirstLine),\n\t\t\t\tfirstLine.getDistance(), .0001d);\n\t}",
"public void testGetDistancedoubledouble() {\r\n\t\tCircleArc2D arc = new CircleArc2D(new Point2D(0, 0), 10, 0, PI/2);\r\n\t\tassertEquals(arc.distance(0, 0), 10, Shape2D.ACCURACY);\r\n\t\tassertEquals(arc.distance(10, 0), 0, Shape2D.ACCURACY);\r\n\t\tassertEquals(arc.distance(0, 10), 0, Shape2D.ACCURACY);\r\n\t\tassertEquals(arc.distance(10, -10), 10, Shape2D.ACCURACY);\t\t\r\n\t\tassertEquals(arc.distance(10, 10), (10*(Math.sqrt(2)-1)), Shape2D.ACCURACY);\t\t\r\n\t}",
"static int filter(int distance) {\n if (distance >= MAX_SENSOR_DIST && invalidSampleCount < INVALID_SAMPLE_LIMIT) {\n // bad value, increment the filter value and return the distance remembered from before\n invalidSampleCount++;\n return prevDistance;\n } else {\n if (distance < MAX_SENSOR_DIST) {\n invalidSampleCount = 0; // reset filter and remember the input distance.\n }\n prevDistance = distance;\n return distance;\n }\n }",
"private double calculateError(double[] outputsActual, double[] outputsTarget) {\n return Utilities.calculateError(outputsActual, outputsTarget);\n }",
"@Test\n\tpublic void testDistance() {\n\t\tCoordinate newBasic = new Coordinate(4,4);\n\t\tassertTrue(\"Correct distance\", newBasic.distance(basic2) == 5);\n\t}",
"private static boolean findTermination(int count, double[][] oldM, double[][] m){\n\t boolean check = true;\n\t if(count + 2 > MaxCount){\n\t \tcheck = false;\t \t\n\t }\t \n\n\t if (!IgnoreMaxError){\n\t \tdouble err = 0.0;\n\t\t for (int i = 0; i <m.length; i++){\n\t double sumEuclidDistance = 0.0;\n\t for (int j=0; j<m[i].length; j++){\n\t sumEuclidDistance += Math.pow((m[i][j] - oldM[i][j]), 2);\n\t }\n\t\t err = Math.sqrt(sumEuclidDistance);\n\n\t\t if ((err < MaxError && err > 0) || (err == 0 && count > 1)){\n\t\t check = false;\n\t\t }\n\t\t }\n\t\t currentError = err;\n\t } \n\n\t return check;\n }",
"@Test\n public void testMesurerDistanceCoordonnees() {\n System.out.println(\"MesurerDistanceCoordonnees\");\n double lat1 = 0.0;\n double lon1 = 0.0;\n double lat2 = 0.0;\n double lon2 = 0.0;\n double expResult = 0.0;\n double result = Utils.MesurerDistanceCoordonnees(lat1, lon1, lat2, lon2);\n assertEquals(expResult, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"private boolean validarNumDistanc(double value) {\n\n String msjeError;\n if (value < 0) {\n\n msjeError = \"Valor No Aceptado\";\n this.jLabelError.setText(msjeError);\n this.jLabelError.setForeground(Color.RED);\n this.jLabelError.setVisible(true);\n\n this.jLabel5.setForeground(Color.red);\n return false;\n } else {\n\n this.jLabel5.setForeground(jlabelColor);\n this.jLabelError.setVisible(false);\n return true;\n }\n }",
"private boolean validateUserInput(int distance){\n return distance>0\n && distance<Integer.MAX_VALUE;\n }",
"@Test\n public void testSingleErrorDetecting() {\n final int[] msgWithError = {0,0,1,0, 1,0,1,1, 1,0,1,0, 1,1,1,0};\n final int expectedErrorIndex = 10;\n\n // When executing error detection\n final int errorIndex = HammingAlgorithm.calculateErrorIndex(msgWithError);\n\n // Then check if errorIndex is as expected\n assertThat(errorIndex).isEqualTo(expectedErrorIndex);\n }",
"private boolean hasDeviation(Location location){\n\n double dth = 2;\n double d = getDistanceFromNextPoint(location);\n details.setText(details.getText()+\"\\n\"+\"Min Dis :\"+String.valueOf(dth));\n details.setText(details.getText()+\"\\n\"+\"Min_m Dist :\"+String.valueOf(d));\n\n if (d >= dth)\n return true;\n return false;\n }",
"boolean updateValue() {\n boolean ret;\n\n if (Math.abs(curUtilityValue - nextUtilityValue) < Math.abs(curUtilityValue) * MAX_ERR_PERCENT / 100)\n ret = true;\n else {\n ret = false;\n // System.out.println(\" no match cell: x: \"+x+\" y: \"+y);\n }\n curUtilityValue = nextUtilityValue;\n return ret;\n\n }",
"@Override\n protected boolean isFinished() {\n return Math.abs(m_currentError) <= constants.tolerance;\n }",
"private double calculateErrors(Instance instance, Hashtable<NeuralNode, Double> nodeValues) throws Exception {\r\n\t\tdouble ret = 0;\r\n\t\t\r\n\t\t// calculate errors for the network\r\n\t\tfor (InputNode input : inputs) {\r\n\t\t\tinput.getError(instance, nodeValues);\r\n\t\t}\r\n\t\t\r\n\t\tfor (OutputNode output : outputs) {\r\n\t\t\tdouble error = output.getError(instance, nodeValues);\r\n\t\t\tret += error * error;\r\n\t\t}\r\n\t\treturn ret;\r\n\r\n\t}",
"@Test\n\tpublic void checkDistanceRouteAEBCD() {\n\t\tassertEquals(Trains.distanceRoute(\"A\", \"E\", \"B\", \"C\", \"D\"), \"22\");\n\t}",
"public int euclideanDistance(DataValue<T> value1, DataValue<T> value2)\r\n\t{\n\t\tint difference = value1.difference(value2);\r\n\t\tdifference = difference * difference;\t\r\n\t\treturn (int) Math.sqrt(difference);\r\n\t}",
"@Test (expected = IllegalArgumentException.class)\n\tpublic void testSubDistance1() {\n\t\tDistance d1 = new Distance(0, 0);\n\t\tDistance d2 = new Distance();\n\t\td1.subDistance(d1, d2);\t\t\n\t}",
"@Test (expected = IllegalArgumentException.class)\n\tpublic void testSubDistance3() {\n\t\tDistance d5 = new Distance(Integer.MAX_VALUE, 1);\n\t\tDistance d6 = new Distance(Integer.MIN_VALUE, 1);\n\t\td5.subDistance(d5, d6);\n\t}",
"@Test\n public void distanceTest() {\n //Query Matrix API\n Response response = given()\n .param(\"locations\", getParameter(\"manyLocations\"))\n .param(\"sources\", \"all\")\n .param(\"destinations\",\"all\")\n .param(\"metrics\", \"distance\")\n .param(\"profile\", \"driving-car\")\n .param(\"resolve_locations\", \"true\")\n .when()\n .get(getEndPointName());\n\n String[] locations = (String[]) getParameter(\"manyLocationsArray\");\n\n Assert.assertEquals(response.getStatusCode(), 200);\n JSONObject jResponse = new JSONObject(response.body().asString());\n JSONArray jDistances = jResponse.getJSONArray(\"distances\");\n //Query Routing API 12x12 times\n for(int i = 0; i < 12; i++) {\n for (int j = 0; j < 12; j++) {\n Response response2 = given()\n .param(\"coordinates\", locations[i] + \"|\" + locations[j])\n .param(\"instructions\", \"false\")\n .param(\"preference\", getParameter(\"preference\"))\n .param(\"profile\", getParameter(\"carProfile\"))\n .when()\n .get(\"routes\");\n\n JSONObject jResponseRouting = new JSONObject(response2.body().asString());\n JSONObject jRoute = (jResponseRouting.getJSONArray(\"routes\")).getJSONObject(0);\n double routeDistance = jRoute.getJSONObject(\"summary\").getDouble(\"distance\");\n double matrixDistance = jDistances.getJSONArray(i).getDouble(j);\n Assert.assertTrue( matrixDistance - .1 < routeDistance);\n Assert.assertTrue( matrixDistance + .1 > routeDistance);\n\n }\n }\n }",
"public boolean errors() {\n \treturn semantErrors != 0;\n }",
"public void calcDistance() {\n if (DataManager.INSTANCE.getLocation() != null && location.getLength() == 2) {\n Log.e(\"asdf\", DataManager.INSTANCE.getLocation().getLength() + \"\");\n Log.e(\"asdf\", DataManager.INSTANCE.getLocation().getLength() + \"\");\n double dLat = Math.toRadians(location.getLatitude() - DataManager.INSTANCE.getLocation().getLatitude()); // deg2rad below\n double dLon = Math.toRadians(location.getLongitude() - DataManager.INSTANCE.getLocation().getLongitude());\n double a =\n Math.sin(dLat / 2) * Math.sin(dLat / 2) +\n Math.cos(Math.toRadians(location.getLatitude()))\n * Math.cos(Math.toRadians(location.getLatitude()))\n * Math.sin(dLon / 2)\n * Math.sin(dLon / 2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n double d = KM_IN_RADIUS * c; // Distance in km\n distance = (float) d;\n } else distance = null;\n }",
"public abstract double getDistance(T o1, T o2) throws Exception;",
"@Override\r\n protected double getToleranceForAssertions(final double longitude, final double latitude) {\r\n final double delta = abs(longitude - centralMeridian)/2 +\r\n abs(latitude - latitudeOfOrigin);\r\n if (delta > 40) {\r\n return 0.5;\r\n }\r\n if (delta > 15) {\r\n return 0.1;\r\n }\r\n return super.getToleranceForAssertions(longitude, latitude);\r\n }",
"@Test\n public void testEditDistEqualStrings() throws Exception{\n assertEquals(0,Esercizio2.edit_distance_dyn(s1,s4));\n }",
"private boolean checkPrevious(String id1, String id2, double[] distances) {\n boolean retVal;\n // Create a string pair.\n var pair = new StringPair(id1, id2);\n double[] oldDistances = this.oldResultMap.get(pair);\n if (oldDistances == null)\n retVal = false;\n else {\n // Copy the cached results to the provided result array.\n System.arraycopy(oldDistances, 0, distances, 0, distances.length);\n retVal = true;\n }\n return retVal;\n }",
"@Test (expected = IllegalArgumentException.class)\n\tpublic void testLessThanZero(){\n\t\tDistance d = new Distance(-1, 1);\n\t\t\n\t}",
"@Test\n public void shouldCalculateBarDistanceCorrectly() {\n assertEquals(-3, Location.distance(Location.R_BAR, Location.B3));\n\n assertEquals(4, Location.distance(Location.B_BAR, Location.R4));\n\n }",
"public abstract double calculateDistance(double[] x1, double[] x2);",
"@Test\n public void testSmallDist() throws Exception {\n assertTrue(\n new ImageSimilarity(getFile(\"imageSimilarity/with.png\"))\n .calcDistance(ImageIO.read(getFile(\"imageSimilarity/without.png\")))\n > 0);\n }",
"public interface DistanceMeasure {\n\n /**\n * Euclidean distance algorithms to calculate the minium distance. This\n * algorithms operate on two double array.\n *\n * @param a coordinates of the either point.\n * @param b coordinates of the other point.\n * @return distance of the two given coordinates.\n * @see MultidimensionalPoint\n */\n default double euclideanDistance(double[] a, double[] b) {\n checkLengthOfArrays(a, b);\n double sum = 0.0;\n for (int i = 0; i < a.length; i++) {\n final double d = a[i] - b[i];\n sum += d * d;\n }\n return Math.sqrt(sum);\n }\n\n /**\n * Euclidean distance algorithms to calculate the minium distance by the\n * absolute methods which used to calculate the difference of two\n * coordinate. This algorithms operate on two double array.\n *\n * @param a coordinates of the either point.\n * @param b coordinates of the other point.\n * @return distance of the two given coordinates.\n * @see MultidimensionalPoint\n */\n default double euclideanDistanceAbs(double[] a, double[] b) {\n checkLengthOfArrays(a, b);\n double sum = 0.0;\n for (int i = 0; i < a.length; i++) {\n final double d = Math.abs(a[i] - b[i]);\n sum += d * d;\n }\n return Math.sqrt(sum);\n }\n\n /**\n * Check the two given double array has the same length.\n *\n * @param a given array of coordinates.\n * @param b given array of coordinates.\n * @throws IllegalArgumentException\n */\n default void checkLengthOfArrays(double[] a, double[] b) throws IllegalArgumentException {\n if (a.length != b.length) {\n throw new IllegalArgumentException(\"Dimensions are not the same.\");\n }\n }\n}",
"private static boolean arePointsDifferent(double dLat0, double dLon0, double dLat1, double dLon1){\n\t\tif(fuzzyEquals(dLat0,dLat1,0.0000000000001) && fuzzyEquals(dLon0,dLon1,0.0000000000001)){\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}",
"@Test\n public void testDistantPoints() {\n // OK with 1000 visited nodes:\n MapMatching mapMatching = new MapMatching(hopper, algoOptions);\n List<GPXEntry> inputGPXEntries = createRandomGPXEntries(\n new GHPoint(51.23, 12.18),\n new GHPoint(51.45, 12.59));\n MatchResult mr = mapMatching.doWork(inputGPXEntries);\n\n assertEquals(57650, mr.getMatchLength(), 1);\n assertEquals(2747796, mr.getMatchMillis(), 1);\n\n // not OK when we only allow a small number of visited nodes:\n AlgorithmOptions opts = AlgorithmOptions.start(algoOptions).maxVisitedNodes(1).build();\n mapMatching = new MapMatching(hopper, opts);\n try {\n mr = mapMatching.doWork(inputGPXEntries);\n fail(\"Expected sequence to be broken due to maxVisitedNodes being too small\");\n } catch (RuntimeException e) {\n assertTrue(e.getMessage().startsWith(\"Sequence is broken for submitted track\"));\n }\n }",
"@Test\n\tpublic void checkDistanceRouteABC() {\n\t\tassertEquals(Trains.distanceRoute(\"A\", \"B\", \"C\"), \"9\");\n\t}",
"boolean isValidRangeReading(double dist) {\n return ( !Double.isNaN(dist) && dist>MIN_RANGE_DIST && dist<MAX_RANGE_DIST ) ;\n }",
"private boolean isInDistanceLimit(double distance) {\n return distance < distanceLimit;\n }",
"public boolean checkMissingLonLatTime() {\n\t\ttry {\n _locationsChecked = true;\n\t\t\tDouble[] longitudes = getSampleLongitudes();\n\t\t\tfor (int rowIdx = 0; rowIdx < numSamples; rowIdx++) {\n\t\t\t\tif ( longitudes[rowIdx] == null ) {\n\t\t\t\t\t_locationsOk = false;\n\t\t\t\t\tADCMessage msg = new ADCMessage();\n\t\t\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\t\t\tmsg.setRowIndex(rowIdx);\n\t\t\t\t\tmsg.setColIndex(longitudeIndex);\n\t\t\t\t\tmsg.setColName(userColNames[longitudeIndex]);\n\t\t\t\t\tString comment = \"missing longitude\";\n\t\t\t\t\tmsg.setGeneralComment(comment);\n\t\t\t\t\tmsg.setDetailedComment(comment);\n\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch ( Exception ex ) {\n\t\t\t_locationsOk = false;\n\t\t\tADCMessage msg = new ADCMessage();\n\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\tString comment = \"no longitude column\";\n\t\t\tmsg.setGeneralComment(comment);\n\t\t\tmsg.setDetailedComment(comment);\n\t\t\tstdMsgList.add(msg);\n\t\t}\n\n\t\ttry {\n\t\t\tDouble[] latitudes = getSampleLatitudes();\n\t\t\tfor (int rowIdx = 0; rowIdx < numSamples; rowIdx++) {\n\t\t\t\tif ( latitudes[rowIdx] == null ) {\n\t\t\t\t\t_locationsOk = false;\n\t\t\t\t\tADCMessage msg = new ADCMessage();\n\t\t\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\t\t\tmsg.setRowIndex(rowIdx);\n\t\t\t\t\tmsg.setColIndex(latitudeIndex);\n\t\t\t\t\tmsg.setColName(userColNames[latitudeIndex]);\n\t\t\t\t\tString comment = \"missing latitude\";\n\t\t\t\t\tmsg.setGeneralComment(comment);\n\t\t\t\t\tmsg.setDetailedComment(comment);\n\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch ( Exception ex ) {\n\t\t\t_locationsOk = false;\n\t\t\tADCMessage msg = new ADCMessage();\n\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\tString comment = \"no latitude column\";\n\t\t\tmsg.setGeneralComment(comment);\n\t\t\tmsg.setDetailedComment(comment);\n\t\t\tstdMsgList.add(msg);\n\t\t}\n\n//\t DashDataType<?> pressureColumn = findDataColumn(\"water_pressure\");\n//\t DashDataType<?> depthColumn = findDataColumn(\"sample_depth\");\n//\t if ( depthColumn != null ) {\n//\t\t\ttry {\n//\t\t\t\tDouble[] depths = getSampleDepths();\n//\t\t\t\tfor (int rowIdx = 0; rowIdx < numSamples; rowIdx++) {\n//\t\t\t\t\tif ( depths[rowIdx] == null ) {\n//\t\t\t\t\t\tisOk = pressureColumn != null;\n//\t\t\t\t\t\tADCMessage msg = new ADCMessage();\n//\t\t\t\t\t\tmsg.setSeverity(pressureColumn == null ? Severity.ERROR : Severity.WARNING);\n//\t\t\t\t\t\tmsg.setRowIndex(rowIdx);\n//\t\t\t\t\t\tmsg.setColIndex(sampleDepthIndex);\n//\t\t\t\t\t\tmsg.setColName(userColNames[sampleDepthIndex]);\n//\t\t\t\t\t\tString comment = \"missing sample depth\";\n//\t\t\t\t\t\tmsg.setGeneralComment(comment);\n//\t\t\t\t\t\tmsg.setDetailedComment(comment);\n//\t\t\t\t\t\tstdMsgList.add(msg);\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t} catch ( Exception ex ) {\n//\t\t\t ex.printStackTrace();\n//\t\t\t}\n//\t\t} else if ( pressureColumn == null ) {\n//\t\t\tisOk = false;\n//\t\t\tADCMessage msg = new ADCMessage();\n//\t\t\tmsg.setSeverity(Severity.CRITICAL);\n//\t\t\tString comment = \"no sample depth column\";\n//\t\t\tmsg.setGeneralComment(comment);\n//\t\t\tmsg.setDetailedComment(comment);\n//\t\t\tstdMsgList.add(msg);\n//\t\t}\n\n\t\tDouble[] times = null;\n\t\ttry {\n _timesChecked = true;\n\t\t\ttimes = getSampleTimes();\n\t\t\tfor (int rowIdx = 0; _timesOk && rowIdx < numSamples; rowIdx++) {\n\t\t\t\tif ( times[rowIdx] == null ) {\n\t\t\t\t\t_timesOk = false;\n // XXX Messages are now added during the data standarization phase\n\t\t\t\t\t// in the StdUserDataArray constructor.\n//\t\t\t\t\tADCMessage msg = new ADCMessage();\n//\t\t\t\t\tmsg.setSeverity(Severity.CRITICAL);\n//\t\t\t\t\tmsg.setRowIndex(rowIdx);\n//\t\t\t\t\tString comment = \"incomplete sample date/time specification\";\n//\t\t\t\t\tmsg.setGeneralComment(\"Bad date/time value\");\n//\t\t\t\t\tmsg.setDetailedComment(comment);\n//\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch ( Exception ex ) {\n\t\t\t_timesOk = false;\n\t\t\tex.printStackTrace();\n\t\t\tADCMessage msg = new ADCMessage();\n\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\tString comment = \"incomplete columns specifying sample date/time\";\n\t\t\tmsg.setGeneralComment(comment);\n\t\t\tmsg.setDetailedComment(ex.getMessage());\n\t\t\tstdMsgList.add(msg);\n\t\t}\n\n\t\treturn _locationsOk && _timesOk;\n\t}",
"@Override\r\n\tprotected double evaluate(IChromosome a_subject) {\r\n\t\tint errors = 0;\r\n\r\n\t\tGene[] genes = a_subject.getGenes();\r\n\t\tfor (int i = 0; i < genes.length; i++) {\r\n\t\t\tString allele = (String) genes[i].getAllele();\r\n\t\t\tint diff = Math.abs((int) allele.charAt(0) - (int) this.target.charAt(i));\r\n\t\t\terrors += diff * diff;\r\n\t\t}\r\n\r\n\t\treturn errors;\r\n\t}",
"@Override\n\tpublic double computeDistance(AssociatedPair obs) {\n\n\t\t// triangulate the point in 3D space\n\t\ttriangulate.triangulate(obs.p1,obs.p2,keyToCurr,p);\n\n\t\tif( p.z < 0 )\n\t\t\treturn Double.MAX_VALUE;\n\n\t\t// compute observational error in each view\n\t\tdouble error = errorCam1.errorSq(obs.p1.x,obs.p1.y,p.x/p.z,p.y/p.z);\n\n\t\tSePointOps_F64.transform(keyToCurr,p,p);\n\t\tif( p.z < 0 )\n\t\t\treturn Double.MAX_VALUE;\n\n\t\terror += errorCam2.errorSq(obs.p2.x,obs.p2.y, p.x/p.z , p.y/p.z);\n\n\t\treturn error;\n\t}",
"public static double sanityCheck(Match match)\n {\n Lane lane;\n Role role;\n \n int bot = 0;\n int bottom = 0;\n int jungle = 0;\n int mid = 0;\n int middle = 0;\n int top = 0;\n \n int solo = 0;\n int duo = 0;\n int duo_carry = 0;\n int duo_support = 0;\n int none = 0;\n \n\n \n for(int i = 0; i<10; i++)\n {\n lane = match.getParticipants().get(i).getTimeline().getLane();\n role = match.getParticipants().get(i).getTimeline().getRole();\n \n switch(lane)\n {\n case BOT:\n bot++;\n break;\n \n case BOTTOM:\n bottom++;\n break;\n \n case JUNGLE:\n jungle++;\n break;\n \n case MID:\n mid++;\n break;\n \n case MIDDLE:\n middle++;\n break;\n \n case TOP:\n top++;\n break;\n }\n \n switch(role)\n {\n case SOLO:\n solo++;\n break;\n \n case DUO:\n duo++;\n break;\n \n case DUO_CARRY:\n duo_carry++;\n break;\n \n case DUO_SUPPORT:\n duo_support++;\n break;\n \n case NONE:\n none++;\n break;\n }\n }\n \n double total = 0;\n \n if(top == 2)\n total++;\n if(mid+middle == 2)\n total++;\n if(jungle == 2)\n total++;\n if(bot + bottom == 4)\n total++;\n \n if(solo == 4)\n total++;\n if(duo + duo_carry + duo_support == 4);\n total++;\n if( duo_carry == 2);\n total++;\n if(duo_support == 2)\n total++;\n if(none == 2)\n total++;\n \n //it would be total =/ 9 but I figured every time one is wrong it makes another wrong, but there's really only 1 error \n total = ((total/18.0)+.5);\n \n \n //TestPrints\n //System.out.println(\"Sanity Check:\\nTop: \"+ top + \"\\nJungle: \"+ jungle + \"\\nMid: \" + (mid+middle) + \"\\nBot: \" + (bot+bottom)+ \"\\n\\nSolo: \"+solo + \"\\nDuo: \" + (duo+duo_carry+duo_support)\n //+ \"\\n\\\"Bot\\\": \"+ duo+\"\\nADC: \"+ duo_carry+ \"\\nSupport: \"+duo_support+ \"\\nNone: \" + none + \"\\nTotal Score: \" +total);\n \n \n \n return total;\n \n }",
"protected boolean isFinished() {\n \t//finish if distance >= requried distance\n return (Robot.drive.leftEncoder.getDistance() >= distance || Robot.drive.rightEncoder.getDistance() >= distance);\n }",
"@Override\n\tpublic double distance(Instance first, Instance second,\n\t\t\tPerformanceStats stats) throws Exception {\n\t\treturn 0;\n\t}",
"@Test\n\tpublic void testWithAnUnexistenceRoute() {\n\t\tassertEquals(Trains.distanceRoute(\"A\", \"E\", \"D\"), \"NO SUCH ROUTE\");\n\t}",
"public boolean validate() {\n double ab = lengthSide(a, b);\n double ac = lengthSide(a, c);\n double bc = lengthSide(b, c);\n\n return ((ab < ac + bc)\n && (ac < ab + bc)\n && (bc < ab + ac));\n }",
"public boolean distLocX(Animal an) {\n return (locX != an.locX);\n }",
"private static void badApproach() {\n\t\t\n\t\tList<Double> result = new ArrayList<>();\n\t\t\n\t\tThreadLocalRandom.current()\n\t\t\t.doubles(10_000).boxed()\n\t\t\t.forEach(\n\t\t\t\t\td -> NewMath.inv(d)\n\t\t\t\t\t\t.ifPresent(\n\t\t\t\t\t\t\tinv -> NewMath.sqrt(inv)\n\t\t\t\t\t\t\t\t.ifPresent(\n\t\t\t\t\t\t\t\t\t\tsqrt -> result.add(sqrt)\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\n\t\tSystem.out.println(\"# result = \"+result.size());\n\t\t\n\t}",
"@Test\n\tpublic void checkDistanceRouteAD() {\n\t\tassertEquals(Trains.distanceRoute(\"A\", \"D\"), \"5\");\n\t}",
"public boolean isValidMovement(Board chessBoard, Position destination){\n Position distance = Position.manhattanDistance(getPosition(), destination);\n Boolean slope1 = distance.file == 2 && distance.rank == 1;\n Boolean slope2 = distance.file == 1 && distance.rank == 2;\n return slope1 || slope2;\n }",
"private void assertValidity() {\n if (latitudes.size() != longitudes.size()) {\n throw new IllegalStateException(\"GIS location needs equal number of lat/lon points.\");\n }\n if (!(latitudes.size() == 1 || latitudes.size() >= 3)) {\n throw new IllegalStateException(\"GIS location needs either one point or more than two.\");\n }\n }",
"@Override\n\tpublic void calculateError() {\n\t\t\n\t}",
"double getDistance();",
"private void computeDistances() {\n for (int i = 0; i < groundTruthInstant.size(); ++i)\n for (int j = 0; j < estimatedInstant.size(); ++j) {\n float currentDist = groundTruthInstant.get(i).getDistanceTo(estimatedInstant.get(j).getPos());\n if (currentDist < distToClosestEstimate[i][0]) {\n distToClosestEstimate[i][0] = currentDist;\n distToClosestEstimate[i][1] = j;\n }\n }\n }",
"public boolean getLocationsFrom(double curLat, double curLon, Double num) {\r\n boolean locationsFromDB = true;\r\n String previousCurLat, previousCurLon;\r\n Log.d(\"Detailed analysis\",\"getting data from db, calling getdata function\");\r\n Cursor rs1 = myDB.getData(curLat, curLon, num);\r\n //In this condition if data not found locationsFromDB is set to false and then returned\r\n if (rs1.getCount() <= 0){\r\n System.out.println(rs1.getCount());\r\n locationsFromDB = false;\r\n Log.d(\"Detailed analysis\",\"Data not found\");\r\n }\r\n //In this condition if data is found need to do the further action of finding the user has moved or not and calculating the direction and distance if user has moved\r\n else {\r\n Log.d(\"Detailed analysis\", \"data found\");\r\n Double[] latArray = new Double[rs1.getCount()];\r\n Double[] lonArray = new Double[rs1.getCount()];\r\n int z = 0;\r\n double distanceBtwLocations = 0;\r\n double finalLat = 0.0;\r\n double finalLon = 0.0;\r\n while (rs1.moveToNext()) {\r\n latArray[z] = Double.parseDouble(rs1.getString(rs1.getColumnIndex(DBHelper.Locations_COLUMN_lat)));\r\n lonArray[z] = Double.parseDouble(rs1.getString(rs1.getColumnIndex(DBHelper.Locations_COLUMN_lon)));\r\n Log.d(\"Detailed Analysis\", latArray[z] +\", \" + lonArray[z] );\r\n double tempDistance = findDistanceBetweenPoints(latArray[z], lonArray[z], Math.round(curLat * 10000.0) / 10000.0, Math.round(curLon * 10000.0) / 10000.0);\r\n System.out.println(tempDistance + \" : tempDistance\");\r\n if (distanceBtwLocations < tempDistance) {\r\n finalLat = latArray[z];\r\n finalLon = lonArray[z];\r\n distanceBtwLocations = tempDistance;\r\n System.out.println(distanceBtwLocations + \" : distanceBtwLocations\");\r\n }\r\n z++;\r\n }\r\n if (distanceBtwLocations < 100 * 1606.34) {\r\n Log.d(\"Detailed Analysis\", \"Distance is not greater than 100 miles\");\r\n previousCurLat = String.valueOf(finalLat);//rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_lat));\r\n previousCurLon = String.valueOf(finalLon);//rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_lon));\r\n Cursor rs = myDB.getData(finalLat, finalLon, num);\r\n rs.moveToFirst();\r\n// condChoice = Integer.parseInt(rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_condChoice)));\r\n number = Double.parseDouble(rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_num)));\r\n Log.d(\"Detailed Analysis\", \"number while data found: \" + number);\r\n Log.d(\"Detailed Analysis\", \"Recent number value from getLocationsFrom: \" + number);\r\n Log.d(\"Detailed analysis\", \"Lattittude and Longitude points\" + \" \" + Double.parseDouble(previousCurLat) + \",\" + Double.parseDouble(previousCurLon) + \":\" + Math.round(curLat * 10000.0) / 10000.0 + \",\" + Math.round(curLon * 10000.0) / 10000.0);\r\n //if user has not moved then locationsFromDB is set to true and then returned\r\n if (Double.parseDouble(previousCurLat) == Math.round(curLat * 10000.0) / 10000.0 && Double.parseDouble(previousCurLon) == Math.round(curLon * 10000.0) / 10000.0) {\r\n Log.d(\"Detailed analysis\", \"lattitudes and longitudes are same\");\r\n rs.moveToFirst();\r\n locationValues = rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_results));\r\n locationsFromDB = true;\r\n } else {\r\n Log.d(\"Detailed analysis\", \"lattitudes and longitudes are not same\");\r\n float distance = 0;\r\n LatLng movedPoints;\r\n Log.d(\"Detailed analysis\", \"finding distance between lattitudes and longitudes\");\r\n distance = findDistanceBetweenPoints(Double.parseDouble(previousCurLat), Double.parseDouble(previousCurLon), curLat, curLon);\r\n Log.d(\"Detailed Analysis\", \"distance in meters\" + \" \" + distance);\r\n direction = SphericalUtil.computeHeading(new LatLng(Double.parseDouble(previousCurLat), Double.parseDouble(previousCurLon)), new LatLng(curLat, curLon));\r\n Log.d(\"Detailed Analysis\", \"direction in degrees\" + \" \" + direction);\r\n String values = rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_results));\r\n String valuesArray[] = values.split(\":\");\r\n Log.d(\"Detailed analysis\", \"finding random locations after moving a bit\");\r\n for (int i = 0; i < valuesArray.length; i++) {\r\n String pointsArray[] = valuesArray[i].split(\",\");\r\n Log.d(\"Detailed analysis\", \"lattitudes and longitudes points\" + pointsArray[0] + \" \" + pointsArray[1]);\r\n movedPoints = findMovedPoints(Double.parseDouble(pointsArray[0]), Double.parseDouble(pointsArray[1]), distance, direction);\r\n Log.d(\"Detailed Analysis\", \"latitude and longitude points after moving\" + \" \" + movedPoints);\r\n locationValues = findRandomLocations(movedPoints.latitude, movedPoints.longitude, 1, distance + 1);\r\n }\r\n }\r\n }\r\n else{\r\n locationValues = findRandomLocations(curLat, curLon, num, 30);\r\n }\r\n locationsFromDB = true;\r\n }\r\n return locationsFromDB;\r\n }",
"private double distance() {\n\t\tdouble dist = 0;\n\t\tdist = Math.sqrt(Math.abs((xOrigin - x) * (xOrigin - x) + (yOrigin - y) * (yOrigin - y)));\n\t\treturn dist;\n\t}",
"@Test\n\tpublic void testEquals1() {\n\t\tDistance d1 = new Distance(0, 0);\n\t\tDistance d2 = new Distance();\n\t\tassertEquals(false, d1.equals(d2));\n\t}",
"public boolean nearZero() {\n\t\treturn (Math.abs(this.angleDelta) < Constants.Values.Drive.ANGLE_TOLERANCE_STOP && \n\t\t\t\tMath.abs(this.distanceDelta) < Constants.Values.Drive.DISTANCE_TOLERANCE_STOP);\n\t}",
"public abstract double distanceFrom(double x, double y);",
"public float classError() { return _errors / (float) _rows; }",
"public double distance(InputDatum datum, InputDatum datum2) throws MetricException;",
"private void straightDistance(double distance) {\n\t\tdouble marginOfError = 0.3;// in inches\n\t\tdouble distanceTraveled = 0;// in inches\n\t\tdouble forwardSpeed = 0;\n\t\tdouble rightSpeed = 0;\n\t\tdouble leftSpeed = 0;\n\t\t// desiredAngle = maggie.getAngle();\n\t\tleftEncoder.reset();\n\t\trightEncoder.reset();\n\n\t\twhile (Math.abs(distanceTraveled - distance) > marginOfError && isEnabled() && isAutonomous()) {\n\t\t\tdistanceTraveled = kDriveToInches * ((-leftEncoder.get() + rightEncoder.get()) / 2);\n\t\t\tSmartDashboard.putNumber(\"distance Traveled\", distanceTraveled);\n\t\t\t// slowed down for now\n\t\t\tforwardSpeed = Math.atan(0.125 * (distance - distanceTraveled)) / (0.5 * Math.PI);//replace arctan with 1/(1+(1.0*e^(-1.0*x)))\n\t\t\t/*rightSpeed = forwardSpeed * (1 + (0.01 * (maggie.getAngle() - desiredAngle)));\n\t\t\tleftSpeed = forwardSpeed * (1 - 0.01 * (maggie.getAngle() - desiredAngle));*/\n\t\t\trobot.lDrive(leftSpeed);\n\t\t\trobot.rDrive(rightSpeed);\n\t\t\televator.update();\n\t\t\trobot.eDrive(elevator.motorMovement);\n\t\t\treportEncoder();\n\t\t}\n\t}",
"public void testDistanceTo() {\n City boston = new City(\"Boston\", 42.3601, -71, 1);\n City austin = new City(\"Austin\", 30.26, -97, 2);\n\n assertEquals(2674.2603695871003, boston.distanceTo(austin));\n assertEquals(2674.2603695871003, austin.distanceTo(boston));\n }",
"private int robustCrossingInternal2(S2Point d) {\n if (!hasTangents) {\n S2Point norm = S2Point.normalize(S2.robustCrossProd(a, b));\n aTangent = S2Point.crossProd(a, norm);\n bTangent = S2Point.crossProd(norm, b);\n hasTangents = true;\n }\n\n // The error in robustCrossProd() is insignificant. The maximum error in the call to\n // crossProd() (i.e., the maximum norm of the error vector) is\n // (0.5 + 1/sqrt(3)) * S2.DBL_EPSILON. The maximum error in each call to dotProd() below is\n // S2.DBL_EPSILON. (There is also a small relative error term that is insignificant because\n // we are comparing the result against a constant that is very close to zero.)\n final double kError = (1.5 + 1 / Math.sqrt(3)) * S2.DBL_EPSILON;\n if ((c.dotProd(aTangent) > kError && d.dotProd(aTangent) > kError)\n || (c.dotProd(bTangent) > kError && d.dotProd(bTangent) > kError)) {\n return -1;\n }\n\n // Otherwise, eliminate the cases where any two vertices are equal. (These cases could be\n // handled in the code below, but since expensiveSign lives up to its name we would rather\n // avoid calling it if possible.)\n //\n // These are the cases where two vertices from different edges are equal.\n if (a.equalsPoint(c) || a.equalsPoint(d) || b.equalsPoint(c) || b.equalsPoint(d)) {\n return 0;\n }\n\n // These are the cases where an input edge is degenerate. Note that in most cases, if CD is\n // degenerate then this method is not even called because acb and bda have different signs.\n // That's why this method is documented to return either 0 or -1 when an input edge is\n // degenerate.\n if (a.equalsPoint(b) || c.equalsPoint(d)) {\n return 0;\n }\n\n // Otherwise it's time to break out the big guns.\n if (acb == 0) {\n acb = -S2Predicates.Sign.expensive(a, b, c, true);\n assert acb != 0;\n }\n if (bdaReturn == 0) {\n bdaReturn = S2Predicates.Sign.expensive(a, b, d, true);\n assert bdaReturn != 0;\n }\n if (bdaReturn != acb) {\n return -1;\n }\n\n S2Point cCrossD = S2Point.crossProd(c, d);\n int cbd = -sign(c, d, b, cCrossD);\n assert cbd != 0;\n if (cbd != acb) {\n return -1;\n }\n\n int dac = sign(c, d, a, cCrossD);\n assert dac != 0;\n return (dac == acb) ? 1 : -1;\n }",
"void calculateError(List<Neuron> connectedNeurons) {\n double weightedErrorSum = 0.0;\n Iterator<Neuron> iter = connectedNeurons.iterator();\n while(iter.hasNext()) {\n Neuron neuron = iter.next();\n weightedErrorSum += neuron.error * neuron.output;\n }\n this.error = this.getOutput()*(1-this.getOutput())*weightedErrorSum;\n }",
"public double getEuclideanDistanceTo(Position other) {\n\n double sum = 0;\n //POEY comment: values.length = the number of extraction functions\n //find different values of every object's values in each function (round-robin tournament event itself)\n for (int i = 0; i < values.length; i++) {\n double value = values[i];\n double otherValue = other.values[i];\n double diff = value - otherValue;\n sum += (diff * diff);\n }\n\n return Math.sqrt(sum);\n \n }",
"@Test\n\tpublic void testSymmetry() {\n\t\tPosition first = new Position(1,2);\n\t\tPosition second = new Position(4, 1);\n\n\t\tint firstDistance = euclideanSquaredMetric.calculateCost(first, second);\n\t\tint secondDistance = euclideanSquaredMetric.calculateCost(second, first);\n\n\t\tassertTrue(firstDistance == secondDistance);\n\t}",
"@Test\n public void testEditDistDifferentStrings() throws Exception{\n assertEquals(1,Esercizio2.edit_distance_dyn(s1, s2));\n }",
"final double measureErrorSq(final double[] ox, final double[] oy, final double[] oz) {\n \t\t\tdouble error = 0;\n \t\t\tfor (int i=1; i<ox.length -1; i++) {\n \t\t\t\tdouble min_dist = Double.MAX_VALUE;\n \t\t\t\tfor (int j=1; j<px.length; j++) {\n \t\t\t\t\t// distance from a original point to a line defined by two consecutive new points\n \t\t\t\t\tdouble dist = M.distancePointToSegmentSq(ox[i], oy[i], oz[i],\n \t\t\t\t\t\t\t px[j-1], py[j-1], pz[j-1],\n \t\t\t\t\t\t\t\t\t px[j], py[j], pz[j]);\n \t\t\t\t\tif (dist < min_dist) min_dist = dist;\n \t\t\t\t}\n \t\t\t\terror += min_dist;\n \t\t\t}\n \t\t\treturn error;\n \t\t}",
"public double distance() {\n \tif (dist == -1) {\n \t\tdist = distance(vertex1, vertex2);\n \t}\n \n \treturn dist;\n }",
"public int absoluteDistance(DataValue<T>value1, DataValue<T>value2)\r\n\t{\n\t\treturn value1.difference(value2);\r\n\t}",
"public static boolean roughlyEqual(double a, double b) {\n if (Double.isNaN(a)) {\n return Double.isNaN(b);\n }\n\n if (Double.isNaN(b)) {\n return false;\n }\n\n return Math.abs(a - b) < 0.01;\n }",
"@Test (expected = IllegalArgumentException.class)\n\tpublic void testSubDistance2() throws InputMismatchException \n\t{\n\t\tDistance d3 = new Distance(3, 2);\n\t\tDistance d4 = new Distance(-1, 1);\n\t\td3.subDistance(d3, d4);\n\t\t\n }",
"default double euclideanDistance(double[] a, double[] b) {\n checkLengthOfArrays(a, b);\n double sum = 0.0;\n for (int i = 0; i < a.length; i++) {\n final double d = a[i] - b[i];\n sum += d * d;\n }\n return Math.sqrt(sum);\n }",
"@Test\n public void getDistancesTest() {\n final double[] pointA = new double[3];\n final double[] pointB = new double[3];\n double result;\n\n //points\n //A->B\n pointA[0] = -4; pointA[1] = -6; pointA[2] = -3;\n pointB[0] = 2; pointB[1] = 3; pointB[2] = 4;\n result = Math.sqrt(166);\n Assert.assertEquals(\"getDistanceBetween2Envelopes : A -> B\", result, getDistanceBetween2Positions(pointA, pointB), EPSILON);\n //b->A\n Assert.assertEquals(\"getDistanceBetween2Envelopes : B -> A\", result, getDistanceBetween2Positions(pointB, pointA), EPSILON);\n\n final double[] envelopeA = new double[6];\n final double[] envelopeB = new double[6];\n\n //envelopes\n //A->B\n envelopeA[0] = -6; envelopeA[3] = -2;\n envelopeA[1] = -12; envelopeA[4] = 0;\n envelopeA[2] = -3.5; envelopeA[5] = -2.5;\n\n envelopeB[0] = 1; envelopeB[3] = 3;\n envelopeB[1] = 0; envelopeB[4] = 6;\n envelopeB[2] = 3.5; envelopeB[5] = 4.5;\n Assert.assertEquals(\"getDistanceBetween2Envelopes : A -> B\", result, getDistanceBetween2Envelopes(envelopeA, envelopeB), EPSILON);\n //b->A\n Assert.assertEquals(\"getDistanceBetween2Envelopes : B -> A\", result, getDistanceBetween2Envelopes(envelopeB, envelopeA), EPSILON);\n }",
"public static void compare () {\r\n for (int i = 0; i < dim; i++) {\r\n for (int j = 0; j < dim; j++) {\r\n if (d[i][j] != adjacencyMatrix[i][j])// here \r\n {\r\n System.out.println(\"Comparison failed\");\r\n \r\n return;\r\n }\r\n }\r\n }\r\n System.out.println(\"Comparison succeeded\");\r\n }",
"public int distance(Coord coord1, Coord coord2);",
"@Override\n\tpublic ComparisonResult computeDifference() throws Exception {\n\t\t\n\t\tList<Token> tokens1 = file1.getTokens();\n\t\tList<Token> tokens2 = file2.getTokens();\n\t\t\n\t\t\n\t\tif (tokens1.size() == 0 || tokens2.size() == 0)\n\t\t\treturn new ComparisonResult(null, 0);\n\t\t\n\t\tQGramToken qGram1 = (QGramToken) new QGramTokenContainer(tokens1, tokens1.size()).get(0);\n\t\tQGramToken qGram2 = (QGramToken) new QGramTokenContainer(tokens2, tokens2.size()).get(0);\n\t\t\n\t\t// peut être négatif si les deux fichiers ont un taux d'alignement des tokens supérieur au nombre total de token.\n\t\tdouble val = qGram1.needlemanWunschAlignment(qGram2, -1) / (double) Math.max(qGram1.size(), qGram2.size());\n\t\t\n\t\treturn new ComparisonResult((val > heuristicPlagiatThreshold) ? (Boolean)true : val <= 0 ? false : null, val < 0 ? 0 : val);\n\t}",
"@Test\n public void testEditDistEmptyString() throws Exception{\n assertEquals(4, Esercizio2.edit_distance_dyn(s1, s3));\n }"
]
| [
"0.6451864",
"0.6392978",
"0.6354002",
"0.6329067",
"0.6319817",
"0.623446",
"0.61366063",
"0.6118318",
"0.60687345",
"0.5979597",
"0.5876661",
"0.5861186",
"0.5847188",
"0.5828991",
"0.5800161",
"0.57967883",
"0.5793623",
"0.5785841",
"0.57838094",
"0.575225",
"0.5709465",
"0.5697023",
"0.56875503",
"0.5679948",
"0.56786",
"0.5666006",
"0.56489253",
"0.5606265",
"0.5603406",
"0.55673254",
"0.5560961",
"0.5553843",
"0.5541948",
"0.5534685",
"0.54915726",
"0.54854655",
"0.5482388",
"0.54820263",
"0.547705",
"0.5455816",
"0.5449774",
"0.5422127",
"0.54169923",
"0.54123235",
"0.5376074",
"0.53752565",
"0.5368932",
"0.5368382",
"0.5368356",
"0.5366964",
"0.5358031",
"0.53547",
"0.5348666",
"0.5322285",
"0.5316528",
"0.5312531",
"0.5304524",
"0.53022164",
"0.52994454",
"0.5266835",
"0.5265528",
"0.52654684",
"0.52654624",
"0.52434295",
"0.5241612",
"0.52380276",
"0.5228772",
"0.52056885",
"0.52033913",
"0.520239",
"0.5200169",
"0.51907265",
"0.5189827",
"0.5185461",
"0.5183978",
"0.5179788",
"0.51769245",
"0.5172323",
"0.5171802",
"0.5165838",
"0.5164352",
"0.515325",
"0.5151235",
"0.51372284",
"0.5134425",
"0.51297367",
"0.51242054",
"0.51241887",
"0.51178986",
"0.5117718",
"0.5104697",
"0.50978494",
"0.5096681",
"0.50896585",
"0.50731856",
"0.50725424",
"0.50725365",
"0.50709844",
"0.5067154",
"0.50662214",
"0.5063846"
]
| 0.0 | -1 |
split this resource in two will transfer as much as possible to the new object ( minimum between amount and this.amount ) | public Resource split( int amount )
{
Resource r = pool.obtain();
this.transter(r, amount);
return r;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void split(){\n\t\tamountOfShares = amountOfShares*2;\n\t}",
"public void transter( Resource r, int amount )\n\t{\n\t\tif( amount<0 )\n\t\t\tthrow new IllegalArgumentException(\"cannot transfer negative amount\");\n\t\t\n\t\tif( r.type != this.type )\n\t\t\tthrow new IllegalArgumentException(\"two resources must be of the same type to transfer\");\n\t\t\n\t\tif( this.amount < amount )\n\t\t\tamount = this.amount;\n\t\t\n\t\tr.amount = amount;\n\t\tthis.amount -= amount;\n\t}",
"public void merge( Resource r )\n\t{\n\t\tr.transter(this, r.amount);\n\t\tr.recycle();\n\t}",
"public void makeTrans(final double newAmount) {\n this.amount = newAmount;\n balance = balance + amount;\n }",
"boolean transfer(UUID from, UUID to, double amount);",
"@Override\n public boolean transfer(Account from, Account to, BigDecimal amount) {\n return false;\n }",
"private BrandsData allocateDataStorage(BrandsData b1, BrandsData b2) {\n\t\tDouble [] data = new Double[12];\n\t\tdata[0] = b1.getSales(thisPeriod)+b2.getSales(thisPeriod);\n\t\tdata[1] = b1.getSales(lastPeriod)+b2.getSales(lastPeriod);\n\t\tdata[2] = b1.getAnyPromo(thisPeriod)+b2.getAnyPromo(thisPeriod);\n\t\tdata[3] = b1.getAnyPromo(lastPeriod)+b2.getAnyPromo(lastPeriod);\n\t\tdata[4] = b1.getPriceDisc(thisPeriod)+b2.getPriceDisc(thisPeriod);\n\t\tdata[5] = b1.getPriceDisc(lastPeriod)+b2.getPriceDisc(lastPeriod);\n\t\tdata[6] = b1.getFeat(thisPeriod)+b2.getFeat(thisPeriod);\n\t\tdata[7] = b1.getFeat(lastPeriod)+b2.getFeat(lastPeriod);\n\t\tdata[8] = b1.getDisplay(thisPeriod)+b2.getDisplay(thisPeriod);\n\t\tdata[9] = b1.getDisplay(lastPeriod)+b2.getDisplay(lastPeriod);\n\t\tdata[10] = b1.getQual(thisPeriod)+b2.getQual(thisPeriod);\n\t\tdata[11] = b1.getQual(lastPeriod)+b2.getQual(lastPeriod);\n\t\tString brand = b2.getBrand();\n\t\tBrandsData input = new BrandsData(brand, data);\n\t\treturn input;\n\t}",
"@Override\n public void transferLockingAccounts(int fromId, int toId, long amount) throws InsufficientFundsException {\n Account fromAcct = accountMap.get(fromId);\n Account toAcct = accountMap.get(toId);\n Account lock1, lock2;\n\n if(fromAcct.getId() < toAcct.getId()){\n lock1 = fromAcct;\n lock2 = toAcct;\n } else {\n lock1 = toAcct;\n lock2 = fromAcct;\n }\n\n synchronized (lock1){\n synchronized (lock2){\n fromAcct.withdraw(amount);\n toAcct.deposit(amount);\n }\n }\n }",
"@Test\n\tpublic void moneyTrnasferExcetionInsufficientBalanceOfFromAccount() {\n\t\t\n\t\tString accountNumberFrom = createAccount(\"krishna\",4000);\n\t\tString accountNumberTo = createAccount(\"ram\",2000);\n\t\tdouble amountToBeTranfered = 40000.0;\n\t\tMoneyTransfer moneyTransfer = new MoneyTransfer();\n\t\tmoneyTransfer.setAccountNumberFrom(Integer.parseInt(accountNumberFrom));\n\t\tmoneyTransfer.setAccountNumberTo(Integer.parseInt(accountNumberTo));\n\t\tmoneyTransfer.setAmount(amountToBeTranfered);\n\t\t\n\t\tString requestBody = gson.toJson(moneyTransfer);\n\t\t\n\t\tRequestSpecification request = RestAssured.given();\n\t\trequest.body(requestBody);\n\t\tResponse response = request.put(\"/transfer\");\n\t\t\n\t\t// This logic is required due to response has been set as mix of Message and return data value. - START\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"Account Number - \");\n\t\tsb.append(accountNumberFrom);\n\t\tsb.append(\" do not have sufficient amout to transfer.\");\n\t\t// This logic is required due to response has been set as mix of Message and return data value. - END\n\t\t\n\t\tAssertions.assertEquals(sb.toString(), response.asString());\n\t\t\n\t}",
"@Override\r\n\tpublic TransferAmountResponseDto transfer(TransferAmountRequestDto transferAmountRequestDto) {\r\n\t\tlog.info(\"inside transaction service\");\r\n\r\n\t\tTransferAmountResponseDto transferAmountResponseDto = new TransferAmountResponseDto();\r\n\r\n\t\tTransaction debitTransaction = new Transaction();\r\n\t\tTransaction creditTransaction = new Transaction();\r\n\r\n\t\tAccount fromAccount = accountRepository.findByCustomerId(transferAmountRequestDto.getCustomerId());\r\n\t\tAccount toAccount = accountRepository.findByAccountNumber(transferAmountRequestDto.getCreditTo());\r\n\r\n\t\tif (fromAccount == null) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.ACCOUNT_NOT_FOUND);\r\n\t\t}\r\n\r\n\t\tif (toAccount == null) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.ACCOUNT_NOT_FOUND);\r\n\t\t}\r\n\r\n\t\tif (fromAccount.getAccountNumber().equalsIgnoreCase(toAccount.getAccountNumber())) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.INVALID_ACCOUNT);\r\n\t\t}\r\n\r\n\t\tBeneficiary existBeneficiary = beneficiaryRepository.findByCustomerAccountNumberAndBeneficiaryAccountNumber(\r\n\t\t\t\tfromAccount.getAccountNumber(), toAccount.getAccountNumber());\r\n\r\n\t\tif (existBeneficiary == null) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.NOT_BENEFICIARY);\r\n\t\t}\r\n\r\n\t\tif (fromAccount.getBalance() < transferAmountRequestDto.getTransferAmount()) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.INVALID_AMOUNT);\r\n\t\t}\r\n\r\n\t\tif (transferAmountRequestDto.getTransferAmount() <= 0) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.MINIMUM_AMOUNT);\r\n\t\t}\r\n\r\n\t\tdebitTransaction.setAccountNumber(fromAccount.getAccountNumber());\r\n\t\tdebitTransaction.setTransactionType(\"debit\");\r\n\t\tdebitTransaction.setTransferAmount(transferAmountRequestDto.getTransferAmount());\r\n\t\tdebitTransaction.setTransactionDate(LocalDateTime.now());\r\n\t\tdebitTransaction.setAccount(fromAccount);\r\n\r\n\t\tcreditTransaction.setAccountNumber(toAccount.getAccountNumber());\r\n\t\tcreditTransaction.setTransactionType(\"credit\");\r\n\t\tcreditTransaction.setTransferAmount(transferAmountRequestDto.getTransferAmount());\r\n\t\tcreditTransaction.setTransactionDate(LocalDateTime.now());\r\n\t\tcreditTransaction.setAccount(toAccount);\r\n\r\n\t\tdouble remainingBalance = fromAccount.getBalance() - transferAmountRequestDto.getTransferAmount();\r\n\t\tdouble updatedBalance = toAccount.getBalance() + transferAmountRequestDto.getTransferAmount();\r\n\r\n\t\tfromAccount.setBalance(remainingBalance);\r\n\t\ttoAccount.setBalance(updatedBalance);\r\n\r\n\t\taccountRepository.save(fromAccount);\r\n\r\n\t\tTransaction transaction = transactionRepository.save(debitTransaction);\r\n\t\tif (transaction.getTransactionId() == null) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.TRANSACTION_FAILED);\r\n\t\t}\r\n\t\taccountRepository.save(toAccount);\r\n\r\n\t\ttransactionRepository.save(creditTransaction);\r\n\r\n\t\ttransferAmountResponseDto.setMessage(\"Amount Transferred successfully..\");\r\n\t\ttransferAmountResponseDto.setTransactionId(transaction.getTransactionId());\r\n\t\ttransferAmountResponseDto.setStatusCode(201);\r\n\t\treturn transferAmountResponseDto;\r\n\t}",
"public Refillable(int initialAmount) {\n myAmount = initialAmount;\n }",
"@Override\n public double takeFromWarehouse(double amount) {\n double amountTaken = super.takeFromWarehouse(amount);\n this.inventoryHistory.add(this.getBalance());\n return amountTaken;\n }",
"public CurrencyTransferResponse(CurrencyTransferResponse other) {\n if (other.isSetStatus()) {\n this.status = other.status;\n }\n if (other.isSetDescription()) {\n this.description = other.description;\n }\n if (other.isSetSourceCharged()) {\n this.sourceCharged = new CurrencyAmount(other.sourceCharged);\n }\n if (other.isSetTargetDeposit()) {\n this.targetDeposit = new CurrencyAmount(other.targetDeposit);\n }\n }",
"public boolean makeTransfer(int originAccNo, int targetAccNo, float amount) {\n Account origAccount = getAccountByAccountNo(originAccNo);\n Account targetAccount = getAccountByAccountNo(targetAccNo);\n if (checkIfEnough(origAccount, amount)) {\n origAccount.setBalance(origAccount.getBalance() - amount);\n targetAccount.setBalance(targetAccount.getBalance() + amount);\n //update the two accounts after the transaction\n saveOrUpdate(origAccount);\n saveOrUpdate(targetAccount);\n //save transaction to database with current timestamp\n Transaction transaction = new Transaction();\n transaction.setAccountNo(originAccNo);\n transaction.setTime(new Timestamp(new Date().getTime()));\n transaction.setType(\"transfer from\");\n transactionRepository.save(transaction);\n Transaction transaction2 = new Transaction();\n transaction2.setAccountNo(targetAccNo);\n transaction2.setTime(new Timestamp(new Date().getTime()));\n transaction2.setType(\"transfer to\");\n transactionRepository.save(transaction2);\n\n return true;\n } else {\n return false;\n }\n }",
"@Override\n\tvoid deposit(double amount) {\n\t\tsuper.balance += amount - 20;\n\t}",
"@Override\n void invokeOperation() {\n\n AcquiredAccount from, to;\n if (fromIndex < toIndex) {\n from = acquire(fromIndex, this);\n to = acquire(toIndex, this);\n } else {\n to = acquire(toIndex, this);\n from = acquire(fromIndex, this);\n }\n\n if (from != null && to != null) {\n if (amount > from.amount)\n errorMessage = \"Underflow\";\n else if (to.amount + amount > MAX_AMOUNT)\n errorMessage = \"Overflow\";\n else {\n from.newAmount = from.amount - amount;\n to.newAmount = to.amount + amount;\n }\n this.completed = true;\n }\n\n if (fromIndex < toIndex) {\n release(toIndex, this);\n release(fromIndex, this);\n } else {\n release(fromIndex, this);\n release(toIndex, this);\n }\n }",
"@Override\n public Transfer makeTransfer(String counterAccount, Money amount)\n throws BusinessException {\n if (amount.greaterThan(this.transferLimit)) {\n throw new BusinessException(\"Limit exceeded!\");\n }\n // 2. Assuming result is 9-digit bank account number, validate 11-test:\n int sum = AccountChekSum(counterAccount);\n\n if (sum % 11 == 0) {\n // 3. Look up counter account and make transfer object:\n Transfer result = doTransfer(counterAccount,amount);\n return result;\n } else {\n throw new BusinessException(\"Invalid account number!\");\n }\n }",
"public int transfer(String fromAccNum, String toAccNum, double amount) {\n String output; \n\n Account fromAcc = bank.retrieveAccount(fromAccNum); \n Account toAcc = bank.retrieveAccount(toAccNum);\n\n if (fromAcc.getBalance() >= amount) {\n fromAcc.deduct(amount);\n toAcc.add(amount); \n \n return 0;\n }\n return -1; \n\n\n }",
"public boolean transferAmount(String id,String sourceAccount,String targetAccount,int amountTransfer) throws SQLException {\n\t\n\tConnection con = null;\n\tcon = DatabaseUtil.getConnection();\n\tint var=0;\n\tint var2=0;\n\tPreparedStatement ps1 = null;\n\tPreparedStatement ps2 = null;\n\tPreparedStatement ps3 = null;\n\tPreparedStatement ps4 = null;\n\tResultSet rs1 = null;\n\tResultSet rs2 = null;\n\tResultSet rs3 = null;\n\tResultSet rs4 = null;\n\tboolean flag=false;\n\n\tcon = DatabaseUtil.getConnection();\n\t\n\t//Account account=new Account();\n\tps1=con.prepareStatement(\"select Balance from CustomerAccount_RBM where SSN_ID=? and Account_Type=?\");\n\tps1.setInt(1,Integer.parseInt(id));\n\tps1.setString(2,targetAccount);\n\trs1=ps1.executeQuery();\n\t\n\twhile (rs1.next()) {\n\t var = rs1.getInt(1);\n\t \n\t if (rs1.wasNull()) {\n\t System.out.println(\"id is null\");\n\t }\n\t}\n\t\n\tint targetAmount=var+amountTransfer;\n\tSystem.out.println(\"target amount \"+targetAmount);\n\t//System.out.println(\"very good\");\n\tps2=con.prepareStatement(\"select Balance from CustomerAccount_RBM where SSN_ID=? and Account_Type=?\");\n\tps2.setInt(1,Integer.parseInt(id));\n\tps2.setString(2,sourceAccount);\n\trs2=ps2.executeQuery();\n\t\n\twhile (rs2.next()) {\n\t var2 = rs2.getInt(1);\n\t //System.out.println(\"id=\" + var);\n\t if (rs2.wasNull()) {\n\t System.out.println(\"name is null\");\n\t }\n\t}\n\t\n\tint sourceAmount=var2-amountTransfer;\n\tSystem.out.println(\"source amount\"+ sourceAmount);\n\tif(sourceAmount<0 ) {\n\t\tSystem.out.println(\"Unable to tranfer\");\n\t}else {\n\t\tflag=true;\n\t\tps3=con.prepareStatement(\"update CustomerAccount_RBM set Balance=? where Account_Type=?\");\n\t\tps3.setInt(1,sourceAmount);\n\t\tps3.setString(2,sourceAccount);\n\t\t//System.out.println(\"hey\");\n\t\trs3=ps3.executeQuery();\n\t\t\n\t\tps4=con.prepareStatement(\"update CustomerAccount_RBM set Balance=? where Account_Type=?\");\n\t\tps4.setInt(1,targetAmount);\n\t\tps4.setString(2,targetAccount);\n\t\trs4=ps4.executeQuery();\n\t\t//System.out.println(\"Transfer Dao1\");\n\t}\n\tDatabaseUtil.closeConnection(con);\n\tDatabaseUtil.closeStatement(ps1);\n\tDatabaseUtil.closeStatement(ps2);\n\tDatabaseUtil.closeStatement(ps3);\n\tDatabaseUtil.closeStatement(ps4);\n\treturn flag;\n}",
"public TransactionResponse sell() {\r\n \t\ttry {\r\n \t\t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\t\tCalculation calc = hc.getCalculation();\r\n \t\t\tAccount acc = hc.getAccount();\r\n \t\t\tLanguageFile L = hc.getLanguageFile();\r\n \t\t\tLog log = hc.getLog();\r\n \t\t\tNotification not = hc.getNotify();\r\n \t\t\tInfoSignHandler isign = hc.getInfoSignHandler();\r\n \t\t\tString playerecon = hp.getEconomy();\r\n \t\t\tint id = hyperObject.getId();\r\n \t\t\tint data = hyperObject.getData();\r\n \t\t\tString name = hyperObject.getName();\r\n \t\t\tif (giveInventory == null) {\r\n \t\t\t\tgiveInventory = hp.getPlayer().getInventory();\r\n \t\t\t}\r\n \t\t\tif (amount > 0) {\r\n \t\t\t\tif (id >= 0) {\r\n \t\t\t\t\tint totalitems = im.countItems(id, data, giveInventory);\r\n \t\t\t\t\tif (totalitems < amount) {\r\n \t\t\t\t\t\tboolean sellRemaining = hc.getYaml().getConfig().getBoolean(\"config.sell-remaining-if-less-than-requested-amount\");\r\n \t\t\t\t\t\tif (sellRemaining) {\r\n \t\t\t\t\t\t\tamount = totalitems;\r\n \t\t\t\t\t\t} else {\t\r\n \t\t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"YOU_DONT_HAVE_ENOUGH\"), name), hyperObject);\r\n \t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (amount > 0) {\r\n \t\t\t\t\t\tdouble price = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\tBoolean toomuch = false;\r\n \t\t\t\t\t\tif (price == 3235624645000.7) {\r\n \t\t\t\t\t\t\ttoomuch = true;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif (!toomuch) {\r\n \t\t\t\t\t\t\tint maxi = hyperObject.getMaxInitial();\r\n \t\t\t\t\t\t\tboolean isstatic = false;\r\n \t\t\t\t\t\t\tboolean isinitial = false;\r\n \t\t\t\t\t\t\tisinitial = Boolean.parseBoolean(hyperObject.getInitiation());\r\n \t\t\t\t\t\t\tisstatic = Boolean.parseBoolean(hyperObject.getIsstatic());\r\n \t\t\t\t\t\t\tif ((amount > maxi) && !isstatic && isinitial) {\r\n \t\t\t\t\t\t\t\tamount = maxi;\r\n \t\t\t\t\t\t\t\tprice = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tboolean sunlimited = hc.getYaml().getConfig().getBoolean(\"config.shop-has-unlimited-money\");\r\n \t\t\t\t\t\t\tif (acc.checkshopBalance(price) || sunlimited) {\r\n \t\t\t\t\t\t\t\tif (maxi == 0) {\r\n \t\t\t\t\t\t\t\t\tprice = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tim.removeItems(id, data, amount, giveInventory);\r\n \t\t\t\t\t\t\t\tdouble shopstock = 0;\r\n \t\t\t\t\t\t\t\tshopstock = hyperObject.getStock();\r\n \t\t\t\t\t\t\t\tif (!Boolean.parseBoolean(hyperObject.getIsstatic()) || !hc.getConfig().getBoolean(\"config.unlimited-stock-for-static-items\")) {\r\n \t\t\t\t\t\t\t\t\thyperObject.setStock(shopstock + amount);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tint maxi2 = hyperObject.getMaxInitial();\r\n \t\t\t\t\t\t\t\tif (maxi2 == 0) {\r\n \t\t\t\t\t\t\t\t\thyperObject.setInitiation(\"false\");\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tdouble salestax = hp.getSalesTax(price);\r\n \t\t\t\t\t\t\t\tacc.deposit(price - salestax, hp.getPlayer());\r\n \t\t\t\t\t\t\t\tacc.withdrawShop(price - salestax);\r\n \t\t\t\t\t\t\t\tif (sunlimited) {\r\n \t\t\t\t\t\t\t\t\tString globalaccount = hc.getYaml().getConfig().getString(\"config.global-shop-account\");\r\n \t\t\t\t\t\t\t\t\tacc.setBalance(0, globalaccount);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t\tresponse.addSuccess(L.f(L.get(\"SELL_MESSAGE\"), amount, calc.twoDecimals(price), name, calc.twoDecimals(salestax)), price - salestax, hyperObject);\r\n \t\t\t\t\t\t\t\tresponse.setSuccessful();\r\n \t\t\t\t\t\t\t\tString type = \"dynamic\";\r\n \t\t\t\t\t\t\t\tif (Boolean.parseBoolean(hyperObject.getInitiation())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"initial\";\r\n \t\t\t\t\t\t\t\t} else if (Boolean.parseBoolean(hyperObject.getIsstatic())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"static\";\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tlog.writeSQLLog(hp.getName(), \"sale\", name, (double) amount, calc.twoDecimals(price - salestax), calc.twoDecimals(salestax), playerecon, type);\r\n \t\t\t\t\t\t\t\tisign.updateSigns();\r\n \t\t\t\t\t\t\t\tnot.setNotify(name, null, playerecon);\r\n \t\t\t\t\t\t\t\tnot.sendNotification();\r\n \t\t\t\t\t\t\t\treturn response;\r\n \t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\tresponse.addFailed(L.get(\"SHOP_NOT_ENOUGH_MONEY\"), hyperObject);\r\n \t\t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"CURRENTLY_CANT_SELL_MORE_THAN\"), hyperObject.getStock(), name), hyperObject);\r\n \t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"YOU_DONT_HAVE_ENOUGH\"), name), hyperObject);\r\n \t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresponse.addFailed(L.f(L.get(\"CANNOT_BE_SOLD_WITH\"), name), hyperObject);\r\n \t\t\t\t\treturn response;\t\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.f(L.get(\"CANT_SELL_LESS_THAN_ONE\"), name), hyperObject);\r\n \t\t\t\treturn response;\t\r\n \t\t\t}\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"Transaction sell() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"', id='\" + hyperObject.getId() + \"', data='\" + hyperObject.getData() + \"', amount='\" + amount + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}",
"public PhysicalResource take(PhysicalResource res) throws NotEnoughResourcesException{\n if(res.getType().equals(ResType.UNKNOWN))\n return res;\n\n if(resources.get(res.getType()) < res.getQuantity())\n throw new NotEnoughResourcesException(\"Not enough \"+ res.getType().name() +\" in the StrongBox!\");\n else\n resources.replace(res.getType(), (resources.get(res.getType()) - res.getQuantity()));\n return res;\n }",
"@Override\n public void transfer(int fromId, int toId, long amount) {\n synchronized (accounts.get(fromId)){\n synchronized (accounts.get(toId)){\n try {\n accounts.get(fromId).withdraw(amount);\n accounts.get(toId).deposit(amount);\n } catch (InsufficientFundsException e) {\n //Swallow the error and do nothing\n }\n\n }\n }\n }",
"@Override\n public void addResource(Shelf to, ResourceSingle resource, int amount) throws IllegalCupboardException{\n if(to == null || resource == null)\n throw new NullPointerException();\n if(amount <= 0 )\n throw new IllegalArgumentException();\n if(!contains(to))\n throw new NoSuchElementException();\n\n try{\n to.addResources(resource, amount);\n }catch(IllegalResourceTransferException e){\n throw new IllegalCupboardException(\"Transaction is not valid\");\n }\n\n //if the new cupboard configuration is not valid, IllegalCupboardException is thrown\n if(!isValid()){\n try {\n to.removeResources(amount);\n }catch(IllegalResourceTransferException e){\n throw new IllegalCupboardException(\"Error while restoring original state\");\n }\n throw new IllegalCupboardException(\"Cupboard configuration would not be valid\");\n }\n }",
"public Transfer(Account from, int[] amounts, Account to) {\n this.from = from;\n this.amounts = amounts;\n this.to = to;\n }",
"public void subBalance()\n\t\t{\n\t\t\tthis.setBalance_acc2(this.getBalance_acc2() - this.getTemp_w_acc2());\n\t\t}",
"@Override\n\tpublic void give(Fraction fraction) {\n\t\tFraction amount = Fraction.minimum(getSize().subtract(getAmount()), fraction);\n\n\t\tsetAmount(Fraction.add(getAmount(), amount));\n\t}",
"public boolean transfer(int fromId, int toId, double amount) {\n boolean result;\n synchronized (this.base) {\n User from = this.base.get(fromId);\n User to = this.base.get(toId);\n if (result = from != null && to != null) {\n if (result = amount > 0 && from.getAmount() >= amount) {\n synchronized (this.base) {\n this.base.put(fromId, new User(fromId, from.getAmount() - amount));\n this.base.put(toId, new User(toId, to.getAmount() + amount));\n }\n }\n }\n }\n return result;\n }",
"public abstract Response makeTransfer(Transaction transaction) throws AccountNotFoundException, InsufficientFundsException;",
"public static Fraction add(Fraction f1, Fraction f2)// to construct a new object of the same class and store the value of the sum in that object and then return the object\n\t{\n\t\tint num1= f1.numerator*f2.denominator + f2.numerator*f1.denominator;\n\t\tint den1= f1.denominator*f2.denominator;\n\t\tFraction f3= new Fraction(num1,den1);\n\t\treturn f3;\n\t\n}",
"public int makeTransfer(int tr_amount, int from_account, int to_account, int from_final_balance, int to_final_balance) {\n int generated_id = 0;\n\n try {\n operationLock.lock();\n executeTransfer(generated_id = currentOperationId++, tr_amount, from_account,\n to_account, from_final_balance, to_final_balance, rawDataSource.getConnection());\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n operationLock.unlock();\n }\n\n updateBalance(from_account, from_final_balance);\n updateBalance(to_account, to_final_balance);\n\n return generated_id;\n }",
"@Override\r\n\tpublic void makePayment(Payment p, int amount) {\n\t\t\r\n\t}",
"public void charge() {\r\n capacity = Math.min(capacity += originalCapacity, originalCapacity);\r\n }",
"public boolean changeAmountBy(Money Other);",
"@Override\n public void transferLockingBank(int fromId, int toId, long amount) throws InsufficientFundsException {\n synchronized (this){\n accounts.get(fromId).withdraw(amount);\n accounts.get(toId).deposit(amount);\n }\n }",
"@Override\n\tvoid withdraw(double amount) {\n\t\tsuper.balance -= amount - 20;\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void transferBetweenTwoAccountsMustBelongToSameOwner() {\n Account accountFrom = AccountFactory.createAccount(AccountFactory.AccountType.SAVINGS, \"owner1\");\n Account accountTo = AccountFactory.createAccount(AccountFactory.AccountType.SAVINGS, \"owner2\");\n\n // Put some money in the from account\n Transaction transaction = new Transaction.Builder().setDescription(\"Test\").setAmount(DollarAmount.fromInt(100)).setType(Transaction.Type.DEPOSIT).build();\n accountFrom.applyTransaction(transaction);\n assertEquals(accountFrom.getAccountBalance(), DollarAmount.fromInt(100));\n\n // Attempt transfer\n Account.transfer(accountFrom, accountTo, DollarAmount.fromInt(30));\n\n // Assert transfer was successful\n assertEquals(DollarAmount.fromInt(70), accountFrom.getAccountBalance());\n assertEquals(DollarAmount.fromInt(30), accountTo.getAccountBalance());\n }",
"@Override\n\tpublic void take(Fraction fraction) {\n\t\tFraction amount = Fraction.minimum(getAmount(), fraction);\n\n\t\tsetAmount(Fraction.subtract(getAmount(), amount));\n\t}",
"@Override\r\n\tpublic void fundTransfer(String sender, String reciever, double amount) {\n\t\t\r\n\t\tString name, newMobileNo;\r\n\t\tfloat age;\r\n\t\tdouble amountFund;\r\n\t\t\r\n\t\tCustomer custSender = custMap.get(sender);\r\n\t\tCustomer custReciever = custMap.get(reciever);\r\n\t\t\r\n\t\tdouble recieverAmount = custReciever.getInitialBalance();\r\n\t\tdouble senderAmount = custSender.getInitialBalance();\r\n\t\tif(senderAmount - amount > 500){\r\n\t\t\trecieverAmount += amount;\r\n\t\t\tsenderAmount -= amount;\r\n\t\t\tSystem.out.println(\"Fund Transferred\");\r\n\t\t}\r\n\t\tname = custSender.getName();\r\n\t\tnewMobileNo = custSender.getMobileNo();\r\n\t\tage = custSender.getAge();\r\n\t\tamountFund = senderAmount;\r\n\t\t\r\n\t\tcustSender.setAge(age);\r\n\t\tcustSender.setInitialBalance(senderAmount);\r\n\t\tcustSender.setMobileNo(newMobileNo);\r\n\t\tcustSender.setName(name);\r\n\t\t\r\n\t\tcustMap.put(newMobileNo, custSender);\r\n\t\t\r\n\t\tname = custReciever.getName();\r\n\t\tnewMobileNo = custReciever.getMobileNo();\r\n\t\tage = custReciever.getAge();\r\n\t\tamountFund = recieverAmount;\r\n\t\t\r\n\t\tcustReciever.setAge(age);\r\n\t\tcustReciever.setInitialBalance(recieverAmount);\r\n\t\tcustReciever.setMobileNo(newMobileNo);\r\n\t\tcustReciever.setName(name);\r\n\t\t\r\n\t\tcustMap.put(newMobileNo, custReciever);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public Resource takeResource( Resource.Type type, int amount );",
"@Override\n public void transferLockingAccounts(int fromId, int toId, long amount) throws InsufficientFundsException {\n Account fromAccount = accounts.get(fromId);\n Account toAccount = accounts.get(toId);\n synchronized (fromAccount) {\n fromAccount.withdraw(amount);\n }\n synchronized (toAccount) {\n toAccount.deposit(amount);\n }\n }",
"@Override\n public void makeTransfer(BigInteger sender, BigInteger recipient, BigDecimal amount)\n throws InsufficientFundsException, GenericBankNowException {\n if (isTheSameAccount(sender, recipient)) {\n throw new GenericBankNowException(\"Sender and recipient are the same accounts\");\n } else {\n Account accountSender = accountDao.getAccountByIban(sender);\n if (hasEfficientFunds(accountSender, amount)) {\n throw new InsufficientFundsException(\"Insufficient funds to proceed transfer\");\n } else {\n Account accountRecipient = accountDao.getAccountByIban(recipient);\n accountSender.setBalance(accountSender.getBalance().subtract(amount));\n accountRecipient.setBalance(accountRecipient.getBalance().add(amount));\n\n accountDao.updateAccount(accountSender);\n accountDao.updateAccount(accountRecipient);\n\n transactionDao.storeTransaction(new Transaction(sender, recipient, amount, TransactionType.TRANSFER));\n }\n }\n }",
"@Override\r\n\tpublic void increaseAmount(ResourceType resource) {\n\t\t\r\n\t}",
"@Override\n public int getAmount() {\n return 1;\n }",
"public void wire(String accountNumber,int bankNumber, String toAccountNumber, int amount) {\n\t\t\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll, lp, ls, mm, nn;\n\t\tString url = \"jdbc:mysql://localhost:3306/mars\";\n\t\tString username = \"root\";\n\t\tString password = \"1113\";\n\t\tint lastBalance;\n\t\tint tolastBalance;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry{\n\t\tconn=DriverManager.getConnection(url, username, password);\n\t\tString sql = \"select balance,userId from \"+this.name+\" where accountNumber=?\";\n\t\tps= (PreparedStatement) conn.prepareStatement(sql);\n\t\tps.setString(1, accountNumber.toString());\n\t\tResultSet rs = ps.executeQuery();\n\t\tint nowBalance = 0;\n\t\tString id = \"\";\n\t\twhile(rs.next()) { \n\t\t\tnowBalance=rs.getInt(\"balance\");\n\t\t\tid = rs.getString(\"userId\");\n\t\t}\n\t\tif (nowBalance<amount) {\n\t\t\tSystem.out.println(\"No Balance\");\n\t\t\treturn;\n\t\t}\n\t\tlastBalance = nowBalance - amount;\n\t\t//System.out.println(lastBalance);\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tls = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tls.setInt(1, lastBalance);\n\t\tls.setString(2, accountNumber.toString());\n\t\tls.executeUpdate();\n\t\t\n\t\t\n\t\t\n\t\t//to account\n\t\tconn=DriverManager.getConnection(url, username, password);\n\t\tString sql3 = \"select bankName from bank where bankNumber=?\";\n\t\tll= (PreparedStatement) conn.prepareStatement(sql3);\n\t\tll.setString(1, String.valueOf(bankNumber).toString());\n\t\tResultSet rs3 = ll.executeQuery();\n\t\tString toname = \"\";\n\t\twhile(rs3.next()) { \n\t\t\ttoname=rs3.getString(\"bankName\");\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tString sql4 = \"select balance,userId from \"+toname+\" where accountNumber=?\";\n\t\tpp= (PreparedStatement) conn.prepareStatement(sql4);\n\t\tpp.setString(1, accountNumber.toString());\n\t\tResultSet rs4 = pp.executeQuery();\n\t\tint tonowBalance = 0;\n\t\tString toid = \"\";\n\t\twhile(rs4.next()) { \n\t\t\ttonowBalance=rs4.getInt(\"balance\");\n\t\t\ttoid = rs4.getString(\"userId\");\n\t\t}\n\t\t\n\t\ttolastBalance = tonowBalance + amount;\n\t\t//System.out.println(lastBalance);\n\t\tString sql5 = \"UPDATE \"+toname+\" SET balance=? where accountNumber=?\";\n\t\tlp = (PreparedStatement) conn.prepareStatement(sql5);\n\t\tlp.setInt(1, tolastBalance);\n\t\tlp.setString(2, toAccountNumber.toString());\n\t\tlp.executeUpdate();\n\t\t\n\t\t\n\t\t//log\n\t\tString logs = \"wired : \"+ amount+\" to \"+toAccountNumber+\"/ balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tmm = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tmm.setString(1, logs);\n\t\tmm.executeUpdate();\n\t\tSystem.out.println(\"You wired $\"+String.valueOf(amount));\n\t\t\n\t\tString logs1 = \"get : \"+ amount+\" from \" +accountNumber+ \"/ balance: \"+String.valueOf(tolastBalance);\n\t\tString sql12 = \"insert into \"+toid+\" (log) values (?)\";\n\t\tnn = (PreparedStatement) conn.prepareStatement(sql12);\n\t\tnn.setString(1, logs1);\n\t\tnn.executeUpdate();\n\t\tSystem.out.println(\"You got $\"+String.valueOf(amount));\n\t\t\n\t\t\n\t\t}catch (SQLException e) {\n\t\t throw new IllegalStateException(\"Cannot connect the database!\", e);\n\t\t}\n\t}",
"@Override\r\n\tpublic void increaseDomesticTradeResourceAmount(ResourceType resource) {\n\t\t\r\n\t}",
"public Account doMoneyTransfer(MoneyTransferDTO moneyTransferDTO, Long id) {\n Account origin = accountService.getAccountById(id);\n Account destination = accountService.getAccountById(moneyTransferDTO.getToAccountId());\n\n // check for fraud detection\n //fraudDetectionService.checkMoneyTransfer(origin, moneyTransferDTO);\n fraudDetectionService.checkMoneyTransferV2(origin, moneyTransferDTO);\n\n // check enough funds in origin account\n BigDecimal currentBalance = origin.getBalance().getAmount();\n BigDecimal transferAmount = moneyTransferDTO.getAmount();\n if (transferAmount.compareTo(currentBalance) > 0)\n throw new ResponseStatusException(HttpStatus.BAD_REQUEST, \"Amount exceeds balance of the account\");\n\n // check if penalty fee has to be deducted later\n BigDecimal result = currentBalance.subtract(transferAmount);\n boolean applyPenaltyFee =\n currentBalance.compareTo(origin.getMinimumBalance().getAmount()) > 0 &&\n result.compareTo(origin.getMinimumBalance().getAmount()) < 0;\n\n // make the transaction\n Transaction transaction = new Transaction(new Money(transferAmount));\n transaction.setType(Type.MONEY_TRANSFER);\n transaction.setFromAccount(origin);\n transaction.setToAccount(destination);\n //transaction.setAmount(new Money(transferAmount));\n transaction.setAuthorName(moneyTransferDTO.getName());\n transaction.setDescription(moneyTransferDTO.getDescription());\n Transaction newTransaction = transactionService.addTransaction(transaction);\n\n // deduct penalty fee with another transaction if needed\n if (applyPenaltyFee) {\n\n Transaction deductionTransaction = new Transaction(origin.getPenaltyFee());\n transaction.setType(Type.PENALTY_FEE);\n deductionTransaction.setFromAccount(origin);\n //deductionTransaction.setToAccount(null);\n //deductionTransaction.setAmount(origin.getPenaltyFee()); // set amount before accounts\n deductionTransaction.setAuthorName(moneyTransferDTO.getName());\n deductionTransaction.setDescription(\"Penalty fee deduction\");\n transactionService.addTransaction(deductionTransaction);\n }\n\n return accountService.saveAccount(origin);\n }",
"public void transferFunds(BankAccount account1, BankAccount account2, double amount){\n if(account1.checkAccountOpen()&&account2.checkAccountOpen()){\n if((account1.getCurrentBalance()-amount)>0) {\n if (isSameAccount(account1, account2)) {\n account1.subtractCreditTransaction(amount);\n account2.addDebitTransaction(amount);\n } else {\n System.out.println(\"This transaction could not be processed. BankAccount owners are not the same.\");\n }\n }\n else {\n System.out.println(\"Appropriate funds not found. Please check your current balance.\");\n }\n\n\n }\n }",
"@Override\n public void transferWithoutLocking(int fromId, int toId, long amount) throws InsufficientFundsException {\n Account fromAcct = accountMap.get(fromId);\n Account toAcct = accountMap.get(toId);\n fromAcct.withdraw(amount);\n toAcct.deposit(amount);\n }",
"public Deposit amend(double newAmount) {\n return new Deposit(newAmount, date, payee);\n }",
"@PostMapping(value = \"/transfer\")\n public ResponseEntity<ResponseWrapper> transfer(@RequestBody AccountWrapper accountWrapper) {\n ResponseWrapper wrapper =new ResponseWrapper();\n UserAccount userAccount = userAccountRepository.findByAccountNumber(accountWrapper.getAccountNumber());\n if(Objects.isNull(userAccount)){\n wrapper.setMessage(\"Account With that account number does not exist\");\n return new ResponseEntity<>(wrapper, HttpStatus.OK);\n }\n\n if (userAccount.getAmount() < accountWrapper.getAmount()) {\n wrapper.setMessage(\"Amount in your account is less than the amount you want to transfer \");\n return new ResponseEntity<>(wrapper, HttpStatus.OK);\n }\n\n //crediting the other user account\n UserAccount userAccount2 = userAccountRepository.findByAccountNumber(accountWrapper.getTransfer_accountNumber());\n if(Objects.isNull(userAccount2)){\n wrapper.setMessage(\"Account To Transfer With that account number does not exist\");\n return new ResponseEntity<>(wrapper, HttpStatus.OK);\n }\n Float amount = userAccount2.getAmount() + accountWrapper.getAmount();\n userAccount2.setAmount(amount);\n userAccountRepository.save(userAccount2);\n\n //debit the user transferring money\n float amount1 = userAccount.getAmount() - accountWrapper.getAmount();\n userAccount.setAmount(amount1);\n userAccountRepository.save(userAccount);\n\n accountTransactionService.saveTransaction(new AccountTransaction(TRANSFER,accountWrapper.getAccountNumber(),\"Transferring Money\",\n accountWrapper.getAmount(),accountWrapper.getTransfer_accountNumber(),userAccount.getUserID()));\n wrapper.setData(\"Amount transfered successfully\");\n\n return new ResponseEntity<>(wrapper, HttpStatus.OK);\n }",
"public Payment(User to, User from, double cashAmount, String paymentName) {\n this.cashAmount = cashAmount;\n this.to = to;\n this.from = from;\n this.paymentName = paymentName;\n paymentID = rand.nextInt(max - min + 1) + min;\n }",
"private Builder(TransferSerialMessage other) {\n super(TransferSerialMessage.SCHEMA$);\n if (isValidValue(fields()[0], other.accountID)) {\n this.accountID = data().deepCopy(fields()[0].schema(), other.accountID);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.brokerId)) {\n this.brokerId = data().deepCopy(fields()[1].schema(), other.brokerId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.createDate)) {\n this.createDate = data().deepCopy(fields()[2].schema(), other.createDate);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.TransferSerials)) {\n this.TransferSerials = data().deepCopy(fields()[3].schema(), other.TransferSerials);\n fieldSetFlags()[3] = true;\n }\n }",
"public void merge() {\n\t\tfor(int i = 1;i<crystalQuantity.length;i++) {\n\t\t\tif (crystalQuantity[i] >= 2) { \n\t\t\t\tcrystalQuantity[i] -= 2; // remove two of the current tier\n\t\t\t\tcrystalQuantity[i+1] += 1; // add one of the new tier\n\t\t\t}\n\t\t}\n\t\tfor(int i = 1;i<dustQuantity.length;i++) {\n\t\t\tif (dustQuantity[i] >= 2) { \n\t\t\t\tdustQuantity[i] -= 2; // remove two of the current tier\n\t\t\t\tcrystalQuantity[i+1] += 1; // add one of the new tier\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tif(!automerge) {\n\t\t\tcollection();\n\t\t}\n\t\t\n\t}",
"public void transferFromBrokerageToSavings(long socialSecurityNumber, String userName, String password, double amount) throws AuthenticationException,UnauthorizedActionException, InsufficientAssetsException{\r\n if(security(socialSecurityNumber, userName, password)){\r\n throw new AuthenticationException();\r\n }\r\n if(getPatron(socialSecurityNumber).getSavingsAccount() == null || getPatron(socialSecurityNumber).getBrokerageAccount() == null){\r\n throw new UnauthorizedActionException();\r\n }\r\n try{\r\n Transaction withdraw = new Transaction(getPatron(socialSecurityNumber), Transaction.TRANSACTION_TYPE.WITHDRAW, getPatron(socialSecurityNumber).getBrokerageAccount(), amount);\r\n withdraw.execute();\r\n txHistoryByPatron.get(getPatron(socialSecurityNumber)).add(withdraw);\r\n Transaction deposit = new Transaction(getPatron(socialSecurityNumber), Transaction.TRANSACTION_TYPE.DEPOSIT, getPatron(socialSecurityNumber).getSavingsAccount(), amount);\r\n deposit.execute();\r\n txHistoryByPatron.get(getPatron(socialSecurityNumber)).add(deposit);\r\n } catch (InsufficientAssetsException e){\r\n throw new InsufficientAssetsException();\r\n }\r\n }",
"public int TransBroBuy(Long userid,Long compid,Long newbalance,Double amount)throws SQLException {\n\t\tjava.util.Date d=new java.util.Date();\r\n\t\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\t\tString sdate=sd.format(d);\r\n\t\tResultSet rs1=DbConnect.getStatement().executeQuery(\"select * from transaction where type='purchase' and bywhom='broker' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\"\");\r\n\t\tif(rs1.next()==true)\r\n\t\t{\r\n\t\t\tint l=DbConnect.getStatement().executeUpdate(\"update transaction set amount=amount+\"+amount+\",SHAREAMOUNT=SHAREAMOUNT+\"+newbalance+\" where type='purchase' and bywhom='broker' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\" \");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tint i=DbConnect.getStatement().executeUpdate(\"Insert into transaction values(trans_seq.nextval,\"+userid+\",'\"+sdate+\"',\"+amount+\",'purchase','broker',\"+compid+\",\"+newbalance+\")\");\r\n\r\n\t\t}\r\n\t\t\tResultSet rss=DbConnect.getStatement().executeQuery(\"select * from FINALALLOCATION where user_id=\"+userid+\" and comp_id=\"+compid+\" \");\r\n\t\tif(rss.next()==true)\r\n\t\t{\r\n\t\t\tint j=DbConnect.getStatement().executeUpdate(\"update FINALALLOCATION set no_share=no_share+\"+newbalance+\" where user_id=\"+userid+\" and comp_id=\"+compid+\" \");\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tint k=DbConnect.getStatement().executeUpdate(\"insert into FINALALLOCATION values(\"+userid+\",\"+compid+\",\"+newbalance+\")\");\r\n\t\t}\r\n\t\treturn 1;\r\n\t}",
"public void transferToChecking(double amount){\n withdrawSavings(amount);\r\n depositChecking(amount);\r\n }",
"public void drain(double amount) {\r\n capacity = Math.max(capacity -= amount, 0);\r\n }",
"public void transferFromSavingsToBrokerage(long socialSecurityNumber, String userName, String password, double amount) throws AuthenticationException,UnauthorizedActionException, InsufficientAssetsException {\r\n if(security(socialSecurityNumber, userName, password)){\r\n throw new AuthenticationException();\r\n }\r\n if(getPatron(socialSecurityNumber).getSavingsAccount() == null || getPatron(socialSecurityNumber).getBrokerageAccount() == null){\r\n throw new UnauthorizedActionException();\r\n }\r\n try{\r\n Transaction withdraw = new Transaction(getPatron(socialSecurityNumber), Transaction.TRANSACTION_TYPE.WITHDRAW, getPatron(socialSecurityNumber).getSavingsAccount(), amount);\r\n withdraw.execute();\r\n txHistoryByPatron.get(getPatron(socialSecurityNumber)).add(withdraw);\r\n Transaction deposit = new Transaction(getPatron(socialSecurityNumber), Transaction.TRANSACTION_TYPE.DEPOSIT, getPatron(socialSecurityNumber).getBrokerageAccount(), amount);\r\n deposit.execute();\r\n txHistoryByPatron.get(getPatron(socialSecurityNumber)).add(deposit);\r\n } catch (InsufficientAssetsException e){\r\n throw new InsufficientAssetsException();\r\n }\r\n }",
"public void setBalance(){\n balance.setBalance();\n }",
"Transfer updateChargeBack(Transfer transfer, Transfer chargeback);",
"public ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount addNewAmount()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount target = null;\n target = (ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount)get_store().add_element_user(AMOUNT$6);\n return target;\n }\n }",
"Person(Card card1, Card card2) {\n\t\t_money = 50; // Start with 50 dollars\n\t\t_bet = 0;\n\t\t_hand = new Hand(card1, card2); // for now a person starts with an empty deck this way everyone can get a card\n\t\t\t\t\t\t\t// at the same time\n\t\t_wins = 0;\n\t\t_pushes = 0;\n\t\t_loses = 0;\n\t}",
"private Path(Path other){\n\t\t\n\t\tthis.source = other.source;\n\t\tthis.destination = other.destination;\n\t\tthis.cities = other.cities;\n\t\t\n\t\tthis.cost = other.cost;\n\t\tthis.destination = other.destination;\n\t\t\n\t\tthis.connections = new LinkedList<Connection>();\n\t\t\n\t\tfor (Connection c : other.connections){\n\t\t\tthis.connections.add((Connection) c.clone());\n\t\t}\n\t\t\n\t}",
"public Percentage minus(Percentage other) {\n return new Percentage(amount.minus(other.amount));\n }",
"U2(){\r\n setCurrentWeight(0);\r\n setMaxWeight(29*1000);\r\n setCost(120*1000000);\r\n }",
"public static void main(String[] args) {\n\t\tBankAccount first=new BankAccount(123456);\r\n\t\tBankAccount second=new BankAccount(234567);\r\n\t\t\r\n\t\tfirst.deposit(900);\r\n\t\t\r\n\t\tSystem.out.println(first.balance);\r\n\t\tSystem.out.println(second.balance);\r\n\t\t\r\n\t\tfirst.transfer(second, 100);\r\n\t\tSystem.out.println(first.balance);\r\n\t\tSystem.out.println(second.balance);\r\n\t}",
"public IResourceDepot createResourceDepot() {\n\n /*\n * Defining a ResourceDepot \"JackTruckDepot\" that can store DeliverGood and PickupGood.\n *\n */\n\n // We can store a maximum of 10 DeliverGood on our track (assuming that no other load is\n // present)\n // Further, we start with an initial load of 5 DeliverGoods.\n ILoadCapacity deliverGoodCapacity = new SimpleLoadCapacity(\"DeliverGood\", 10, 5);\n\n // We can store a maximum of 5 PickupGood on our track (assuming that no other load is present)\n ILoadCapacity pickupGoodCapacity = new SimpleLoadCapacity(\"PickupGood\", 5, 0);\n\n // Our depot can store a maximum of 10 total items. For example, 7 DeliverGoods\n // and 3 PickupGoods.\n IResourceDepot depot = new SimpleResourceDepot(\"JackTruckDepot\", 10);\n\n // Adding the capacities to our depot\n depot.add(deliverGoodCapacity);\n depot.add(pickupGoodCapacity);\n\n return depot;\n }",
"public void refuelBoat(double amount){\n\t if(amount > 0.0 && amount < 6.0){\n\t if (amount + amountOfFuelInTheTank > capacityOfTheFuelTank)\n\t \tamountOfFuelInTheTank = capacityOfTheFuelTank;\n\t else\n\t \tamountOfFuelInTheTank += amount;\n\t }\n\t }",
"static void add(Car x, Car y) {\n\t\tx = new Car(x.getName(), x.getSpeed(), x.getColor(), x.getCapacity());\n\t\tx.setCapacity(x.getCapacity() + y.getCapacity());\n\t}",
"public int TransBroSale(Long userid,Long compid,Long newbalance,Double amount)throws SQLException {\n\t\tjava.util.Date d=new java.util.Date();\r\n\t\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\t\tString sdate=sd.format(d);\r\n\t\tResultSet rs1=DbConnect.getStatement().executeQuery(\"select * from transaction where type='sale' and bywhom='broker' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\"\");\r\n\t\tif(rs1.next()==true)\r\n\t\t{\r\n\t\t\tint l=DbConnect.getStatement().executeUpdate(\"update transaction set amount=amount+\"+amount+\",SHAREAMOUNT=SHAREAMOUNT+\"+newbalance+\" where type='sale' and bywhom='broker' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\" \");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tint i=DbConnect.getStatement().executeUpdate(\"Insert into transaction values(trans_seq.nextval,\"+userid+\",'\"+sdate+\"',\"+amount+\",'sale','broker',\"+compid+\",\"+newbalance+\")\");\r\n\r\n\t\t}\r\n\t\t\tResultSet rss=DbConnect.getStatement().executeQuery(\"select * from FINALALLOCATION where user_id=\"+userid+\" and comp_id=\"+compid+\" \");\r\n\t\tif(rss.next()==true)\r\n\t\t{\r\n\t\t\tint j=DbConnect.getStatement().executeUpdate(\"update FINALALLOCATION set no_share=no_share-\"+newbalance+\" where user_id=\"+userid+\" and comp_id=\"+compid+\" \");\t\r\n\t\t}\r\n\t\t\r\n\t\treturn 1;\r\n\t}",
"public void sellProperty(){\n owner.addMoney(costs[0]/2);\n owner.removeProperty(this);\n owner = null;\n }",
"@Test\n\tpublic void createNewAccountWithOpeningBalanceOtherTest() {\n\t\tcreateAccountOtherInvestmentTest();\n\t\tcreateNewAccountWithOpeningBalanceHelper();\n\t}",
"private void copyStock(OwnedStock stock){\n\t\t//If quantity == 0, then \n\t\tif(stock.getQuantityOfShares() > 0){\n\t\t\tsetQuantityOfShares(stock.getQuantityOfShares());\n\t\t\tsetPrinciple(stock.getPrinciple());\n\t\t\tsetTotalValue(stock.getTotalValue());\n\t\t\tsetNet(stock.getNet());\n\t\t}\n\t\telse{\n\t\t\tprinciple = new BigDecimal(0);\n\t\t\ttotalValue = new BigDecimal(0);\n\t\t\tnet = new BigDecimal(0);\n\t\t}\n\t}",
"public abstract Route combineWith(Route other, double ratio);",
"@Override\n public int getAmount() {\n return 1;\n }",
"@Test\n\tpublic void moneyTrnasferSucess() {\n\t\t\n\t\tString accountNumberFrom = createAccount(\"krishna\",4000);\n\t\tString accountNumberTo = createAccount(\"ram\",2000);\n\t\tdouble amountToBeTranfered = 500.0;\n\t\tMoneyTransfer moneyTransfer = new MoneyTransfer();\n\t\tmoneyTransfer.setAccountNumberFrom(Integer.parseInt(accountNumberFrom));\n\t\tmoneyTransfer.setAccountNumberTo(Integer.parseInt(accountNumberTo));\n\t\tmoneyTransfer.setAmount(amountToBeTranfered);\n\t\t\n\t\tString requestBody = gson.toJson(moneyTransfer);\n\t\t\n\t\tRequestSpecification request = RestAssured.given();\n\t\trequest.body(requestBody);\n\t\tResponse response = request.put(\"/transfer\");\n\t\t\n\t\t// This logic is required due to response has been set as mix of Message and return data value. - START\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(amountToBeTranfered);\n\t\tsb.append(\" has been transferred to : \");\n\t\tsb.append(accountNumberTo);\n\t\t// This logic is required due to response has been set as mix of Message and return data value. - END\n\t\t\n\t\tAssertions.assertEquals(sb.toString(), response.asString());\n\t\t\n\t}",
"public void createNewAccountWithOpeningBalanceHelper() {\n\t\tparseDateTextFieldHelper();\n\t\tBalance balance = data.createNewAccountWithOpeningBalance();\n\t\tLocalDate date = LocalDate.of(year, month, dayOfMonth);\n\t\tbalance.setDate(date);\n\t\tJTextField amount = data.getTextFieldBalance();\n\t\t// this before was not being set, i thought i set it in expectedResult but\n\t\t// that's a different object!\n\t\tbalance.setAmount(Float.parseFloat(amount.getText()));\n\t\t// I think you can actually just insert the values here instead if using get()\n\t\tBalance resultExpected = new Balance(bankTest, accountTest,\n\t\t\t\tdate.getYear(), date.getMonthValue(), date.getDayOfMonth(),\n\t\t\t\tFloat.parseFloat(amount.getText()), TEST_TXTR_EXTRA_NOTES);\n\t\tassertEquals(resultExpected, balance);\n\t}",
"@Override\n public void transferWithoutLocking(int fromId, int toId, long amount) throws InsufficientFundsException {\n accounts.get(fromId).withdraw(amount);\n accounts.get(toId).deposit(amount);\n }",
"@Test\n public void customerCanPerformTransferBetweenAccounts() {\n String ownerId = \"ownerId\";\n Account accountFrom = AccountFactory.createAccount(AccountFactory.AccountType.SAVINGS, ownerId);\n Account accountTo = AccountFactory.createAccount(AccountFactory.AccountType.SAVINGS, ownerId);\n\n // Put some money in the from account\n Transaction transaction = new Transaction.Builder().setDescription(\"Test\").setAmount(DollarAmount.fromInt(100)).setType(Transaction.Type.DEPOSIT).build();\n accountFrom.applyTransaction(transaction);\n assertEquals(accountFrom.getAccountBalance(), DollarAmount.fromInt(100));\n\n // Attempt transfer\n Account.transfer(accountFrom, accountTo, DollarAmount.fromInt(30));\n\n // Assert transfer was successful\n assertEquals(DollarAmount.fromInt(70), accountFrom.getAccountBalance());\n assertEquals(DollarAmount.fromInt(30), accountTo.getAccountBalance());\n }",
"@Override\r\n\tpublic Exchange aggregate(Exchange oldExchange, Exchange newExchange) {\n\t\tInteger oldBid=0;\r\n\t\tif(oldExchange!=null){\r\n\t\t\toldBid = oldExchange.getIn().getHeader(\"Bid\", Integer.class);\r\n\t\t}\r\n\t\tInteger newBid = newExchange.getIn().getHeader(\"Bid\", Integer.class);\r\n return (newBid > oldBid) ? newExchange : oldExchange;\r\n\t}",
"private Evolvable splitCross(Evolvable parent1, Evolvable parent2, int split)\n\t{\n\t\tint[] dnaP1 = ((SNSAgent)parent1).getDna();\n\t\t//dna of second parent\n\t\tint[] dnaP2 = ((SNSAgent)parent2).getDna();\n\t\t\n\t\t//result dna\n\t\tint dnaChild[] = new int[3000];\n\t\t//simple cross\n\t\tfor(int i = 0; i < 3000; i++)\n\t\t{\t\t\n\t\t\tif(i < split)\n\t\t\t\tdnaChild[i] = dnaP1[i];\n\t\t\telse\n\t\t\t\tdnaChild[i] = dnaP2[i];\n\t\t}\n\t\treturn new SNSAgent(dnaChild, ((SNSAgent)parent1).behavior);\n\t\t\n\t}",
"public Partie Charger() {\n if (SaveNum > 0 && SaveNum < 10) {\n //System.out.println(SaveNum);\n try {\n // System.out.println(slot[SaveNum - 1]);\n FileInputStream fis = new FileInputStream(slot[SaveNum - 1]);\n //System.out.println(\"recu\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n //System.out.println(\"recu\");\n Object p = ois.readObject();\n //System.out.println(\"recu\");\n ois.close();\n if (p instanceof Partie) {\n SaveNum = 20;\n return (Partie) p;\n }\n } catch (IOException | NullPointerException | ClassNotFoundException e) {\n System.out.println(\"Erreur lors du chargement du fichier\");\n }\n }\n return part;\n }",
"@Transactional\n public String transferMoney(Integer destCardId, double amount, HttpServletRequest r) {\n Card toCard = cardService.getCard(destCardId);\n double currentAmount = currentCard.getAmount();\n JSONObject json = new JSONObject();\n if (currentAmount < amount) {\n try {\n json.put(\"sucess\", false);\n json.put(\"result\", \"Недостаточно средств.\");\n } catch (JSONException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n\n } else {\n currentCard.setAmount(currentAmount - amount);\n double newAmount = converter.convert(currentCard.getCurrency(), toCard.getCurrency(), amount);\n toCard.setAmount(toCard.getAmount() + newAmount);\n Invoice invoice = currentCard.createInvoice();\n invoice.setToCard(destCardId);\n invoice.setAmount(newAmount);\n String date = new SimpleDateFormat(\"dd.MM.yyyy-hh.mm-a\").format(GregorianCalendar.getInstance().getTime());\n invoice.setDate(date);\n invoice.setCurrency(toCard.getCurrency());\n invoiceService.addInvoice(invoice);\n try {\n json.put(\"sucess\", true);\n json.put(\"result\", \"Успешно.\");\n } catch (JSONException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n }\n cardService.update(currentCard);\n r.getSession().setAttribute(\"Card\", currentCard);\n cardService.update(toCard);\n return json.toString();\n }",
"public Saving(Money balance, AccountHolder primaryOwner, AccountHolder secondaryOwner, String secretKey, Money minimumBalance, BigDecimal interestRate, Status status) {\n super(balance, primaryOwner, secondaryOwner);\n setUpdateDate(LocalDate.now());\n setSecretKey(secretKey);\n setMinimumBalance(minimumBalance);\n setInterestRate(interestRate);\n setStatus(status);\n }",
"@Override\r\n\tpublic void decreaseAmount(ResourceType resource) {\n\t\t\r\n\t}",
"public void reduceBalance(int amount){\n this.money.subtractMoney(amount);\n }",
"public void setAmount(final double newAmount) {\n this.amount = newAmount;\n }",
"List<Debt> split(Transaction transaction);",
"public void Add(int a, int b) {\n RationalFraction Fraction = new RationalFraction(a, b);\n bigList.add(Fraction);\n amountLess.clear();\n amountMore.clear();\n }",
"public Sale makeSale(Sale sale) throws ProcessingException, FrantishexCriteriaValidationException\n\t{\n\t\tif (getEntityManager().contains(sale)) {\n\t\t\tthrow new IllegalArgumentException(\"do not pass entity managed instance. We always expect a detached one!\");\n\t\t}\n\n\t\t/**\n\t\t * The Reservation only unique key is description\n\t\t */\n\t\tif (null != sale.getDescription() && !sale.getDescription().isEmpty()\n\t\t\t\t&& (null == sale.getId() || 0 == sale.getId()) && sale.getSaleType() == SaleTypeEnum.RESERVATION\n\t\t\t\t&& findByKey(\"description\", sale.getDescription()).size() > 0) {\n\t\t\tthrow new IllegalArgumentException(\"Sale duplicated\");\n\t\t}\n\n\t\t// determine the old client\n\t\tSale oldSale = sale.getId() != null ? findById(sale.getId()) : null;\n\t\tSale detachedOldSale = sale.getId() != null ? mapperUtils.map(findById(sale.getId()), Sale.class) : null;\n\t\tClient oldClien = oldSale != null ? oldSale.getClient() : null;\n\n\t\tsale = saveOrUpdate(sale);\n\n\t\tList<Client> findByKey = clientService.findByKey(\"cardNumber\", sale.getCardNumber());\n\t\tif (findByKey.size() > 0) {\n\t\t\tClient client = findByKey.get(0);\n\t\t\tsale.setClient(client);\n\t\t}\n\n\t\tContext context = new Context(sale, detachedOldSale);\n\t\tif (sale.getSaleType() == SaleTypeEnum.RESERVATION) {\n\t\t\tif (sale.getConfirmed()) {\n\t\t\t\tbonusChain.invoke(context);\n\t\t\t} else {\n\t\t\t\tbonusChainNoPoints.invoke(context);\n\t\t\t}\n\t\t} else {\n\t\t\tbonusChainOnlyPoints.invoke(context);\n\t\t}\n\t\tClient client = sale.getClient();\n\t\trecalculateClientPoints(client);\n\t\tif (oldClien == null || (oldClien != null && client == null) || (oldClien.getId() != client.getId())) {\n\t\t\trecalculateClientPoints(oldClien);\n\t\t}\n\n\t\treturn sale;\n\n\t}",
"@Override\n\tpublic void calculateAndUpdateBalance() {\n\n\t\tbalance -= fee;\n\n\t}",
"public Transaction(final double newBalance) { // but This shouldn't happen\n this(newBalance, 0, null);\n }",
"public void modifyResource(Resource resToChange, int amount) {\n\t\ttry {\n\t\t\tswitch (resToChange) {\n\t\t\tcase GOLD:\n\t\t\t\tchest.modifyGold(amount);\n\t\t\t\tbreak;\n\t\t\tcase GLORY:\n\t\t\t\tif(amount>0 || gloryPoints + amount > 0)\n\t\t\t\t\tgloryPoints += amount;\n\t\t\t\telse\n\t\t\t\t\tgloryPoints = 0;\n\t\t\t\tbreak;\n\t\t\tcase SOLAR:\n\t\t\t\tchest.modifySolar(amount);\n\t\t\t\tbreak;\n\t\t\tcase LUNAR:\n\t\t\t\tchest.modifyLunar(amount);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"|| Not enough \" + resToChange.toString() + \" ||\" + \"resTo = \" + resToChange + \" amount = \" + amount + \" \"+ getGold() + \" \"+ getSolar() + \" \"+ getLunar());\n\t\t}\n\t}",
"@Override\n\tpublic List<Transfer> populate(Account account, Account other) {\n\t\treturn new ArrayList<Transfer>();\n\t}",
"public void enoughForTransfer(double amount) throws BankException {\n if (this.currentAmount + amount > MAX_AMOUNT) {\n logger.warning(\"The amount in the receiving bank account cannot exceed 9 digits\");\n throw new BankException(\"The amount in the receiving bank account cannot exceed 9 digits\");\n }\n }",
"public void setAmount(int amount) {\n this.amount = amount;\n }",
"public void purchase(double shares, double pricePerShare)\n {\n this.totalShares += shares;\n super.addCost(shares * pricePerShare);\n }",
"public Person reduceDebt(Float returnedMoney){\n this.debt += returnedMoney;\n return this;\n }",
"public void transferTo(double dollarAmount) {\r\n\t\tthis.accountBalance = this.accountBalance + dollarAmount;\r\n\t}",
"@Override\n public void addToWarehouse(double amount) {\n super.addToWarehouse(amount);\n this.inventoryHistory.add(this.getBalance());\n }"
]
| [
"0.6373766",
"0.60612434",
"0.54738814",
"0.52505904",
"0.5216801",
"0.5213341",
"0.5210743",
"0.5203942",
"0.50810283",
"0.5078856",
"0.5036304",
"0.502175",
"0.4998687",
"0.498159",
"0.49779257",
"0.49772894",
"0.4977165",
"0.49771225",
"0.49455088",
"0.49442324",
"0.4943114",
"0.49408528",
"0.4936555",
"0.49361423",
"0.4927983",
"0.49262092",
"0.4920649",
"0.49178645",
"0.49069288",
"0.49051958",
"0.49000376",
"0.48999184",
"0.48887473",
"0.4880711",
"0.48793152",
"0.4879149",
"0.48778278",
"0.48759866",
"0.4869216",
"0.48682833",
"0.48645335",
"0.48512778",
"0.48388612",
"0.48337874",
"0.4821714",
"0.4821249",
"0.4814674",
"0.48088273",
"0.48059055",
"0.47927952",
"0.47887352",
"0.47798732",
"0.4777944",
"0.47570443",
"0.47502664",
"0.47492245",
"0.47475585",
"0.474308",
"0.47429278",
"0.47288463",
"0.47268394",
"0.4725128",
"0.4719305",
"0.47159567",
"0.47148365",
"0.4712119",
"0.4711891",
"0.471088",
"0.4703067",
"0.4702245",
"0.46958056",
"0.46948665",
"0.4692394",
"0.46879876",
"0.46868202",
"0.46652105",
"0.4663536",
"0.4657117",
"0.46562088",
"0.46539962",
"0.46446443",
"0.46361575",
"0.4636016",
"0.463427",
"0.46327886",
"0.4628736",
"0.46259138",
"0.461381",
"0.46138024",
"0.46097517",
"0.46072692",
"0.46058175",
"0.4603926",
"0.45931938",
"0.45902056",
"0.45871854",
"0.4584158",
"0.45834082",
"0.45802486",
"0.457642"
]
| 0.717197 | 0 |
transfer amount of this resource to Resource r this and r must be of the same type. will transfer as much as possible ( minimum between amount and this.amount ) | public void transter( Resource r, int amount )
{
if( amount<0 )
throw new IllegalArgumentException("cannot transfer negative amount");
if( r.type != this.type )
throw new IllegalArgumentException("two resources must be of the same type to transfer");
if( this.amount < amount )
amount = this.amount;
r.amount = amount;
this.amount -= amount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void increaseAmount(ResourceType resource) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void increaseDomesticTradeResourceAmount(ResourceType resource) {\n\t\t\r\n\t}",
"@Transactional\n public String transferMoney(Integer destCardId, double amount, HttpServletRequest r) {\n Card toCard = cardService.getCard(destCardId);\n double currentAmount = currentCard.getAmount();\n JSONObject json = new JSONObject();\n if (currentAmount < amount) {\n try {\n json.put(\"sucess\", false);\n json.put(\"result\", \"Недостаточно средств.\");\n } catch (JSONException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n\n } else {\n currentCard.setAmount(currentAmount - amount);\n double newAmount = converter.convert(currentCard.getCurrency(), toCard.getCurrency(), amount);\n toCard.setAmount(toCard.getAmount() + newAmount);\n Invoice invoice = currentCard.createInvoice();\n invoice.setToCard(destCardId);\n invoice.setAmount(newAmount);\n String date = new SimpleDateFormat(\"dd.MM.yyyy-hh.mm-a\").format(GregorianCalendar.getInstance().getTime());\n invoice.setDate(date);\n invoice.setCurrency(toCard.getCurrency());\n invoiceService.addInvoice(invoice);\n try {\n json.put(\"sucess\", true);\n json.put(\"result\", \"Успешно.\");\n } catch (JSONException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n }\n cardService.update(currentCard);\n r.getSession().setAttribute(\"Card\", currentCard);\n cardService.update(toCard);\n return json.toString();\n }",
"boolean transfer(UUID from, UUID to, double amount);",
"public int transfer(String fromAccNum, String toAccNum, double amount) {\n String output; \n\n Account fromAcc = bank.retrieveAccount(fromAccNum); \n Account toAcc = bank.retrieveAccount(toAccNum);\n\n if (fromAcc.getBalance() >= amount) {\n fromAcc.deduct(amount);\n toAcc.add(amount); \n \n return 0;\n }\n return -1; \n\n\n }",
"@Override\n public void transfer(int fromId, int toId, long amount) {\n synchronized (accounts.get(fromId)){\n synchronized (accounts.get(toId)){\n try {\n accounts.get(fromId).withdraw(amount);\n accounts.get(toId).deposit(amount);\n } catch (InsufficientFundsException e) {\n //Swallow the error and do nothing\n }\n\n }\n }\n }",
"@Override\r\n\tpublic void decreaseAmount(ResourceType resource) {\n\t\t\r\n\t}",
"@Override\n public boolean transfer(Account from, Account to, BigDecimal amount) {\n return false;\n }",
"public void setAmount(int amount) {\n this.amount = amount;\n }",
"public void merge( Resource r )\n\t{\n\t\tr.transter(this, r.amount);\n\t\tr.recycle();\n\t}",
"public boolean transferAmount(String id,String sourceAccount,String targetAccount,int amountTransfer) throws SQLException {\n\t\n\tConnection con = null;\n\tcon = DatabaseUtil.getConnection();\n\tint var=0;\n\tint var2=0;\n\tPreparedStatement ps1 = null;\n\tPreparedStatement ps2 = null;\n\tPreparedStatement ps3 = null;\n\tPreparedStatement ps4 = null;\n\tResultSet rs1 = null;\n\tResultSet rs2 = null;\n\tResultSet rs3 = null;\n\tResultSet rs4 = null;\n\tboolean flag=false;\n\n\tcon = DatabaseUtil.getConnection();\n\t\n\t//Account account=new Account();\n\tps1=con.prepareStatement(\"select Balance from CustomerAccount_RBM where SSN_ID=? and Account_Type=?\");\n\tps1.setInt(1,Integer.parseInt(id));\n\tps1.setString(2,targetAccount);\n\trs1=ps1.executeQuery();\n\t\n\twhile (rs1.next()) {\n\t var = rs1.getInt(1);\n\t \n\t if (rs1.wasNull()) {\n\t System.out.println(\"id is null\");\n\t }\n\t}\n\t\n\tint targetAmount=var+amountTransfer;\n\tSystem.out.println(\"target amount \"+targetAmount);\n\t//System.out.println(\"very good\");\n\tps2=con.prepareStatement(\"select Balance from CustomerAccount_RBM where SSN_ID=? and Account_Type=?\");\n\tps2.setInt(1,Integer.parseInt(id));\n\tps2.setString(2,sourceAccount);\n\trs2=ps2.executeQuery();\n\t\n\twhile (rs2.next()) {\n\t var2 = rs2.getInt(1);\n\t //System.out.println(\"id=\" + var);\n\t if (rs2.wasNull()) {\n\t System.out.println(\"name is null\");\n\t }\n\t}\n\t\n\tint sourceAmount=var2-amountTransfer;\n\tSystem.out.println(\"source amount\"+ sourceAmount);\n\tif(sourceAmount<0 ) {\n\t\tSystem.out.println(\"Unable to tranfer\");\n\t}else {\n\t\tflag=true;\n\t\tps3=con.prepareStatement(\"update CustomerAccount_RBM set Balance=? where Account_Type=?\");\n\t\tps3.setInt(1,sourceAmount);\n\t\tps3.setString(2,sourceAccount);\n\t\t//System.out.println(\"hey\");\n\t\trs3=ps3.executeQuery();\n\t\t\n\t\tps4=con.prepareStatement(\"update CustomerAccount_RBM set Balance=? where Account_Type=?\");\n\t\tps4.setInt(1,targetAmount);\n\t\tps4.setString(2,targetAccount);\n\t\trs4=ps4.executeQuery();\n\t\t//System.out.println(\"Transfer Dao1\");\n\t}\n\tDatabaseUtil.closeConnection(con);\n\tDatabaseUtil.closeStatement(ps1);\n\tDatabaseUtil.closeStatement(ps2);\n\tDatabaseUtil.closeStatement(ps3);\n\tDatabaseUtil.closeStatement(ps4);\n\treturn flag;\n}",
"public boolean transfer(int fromId, int toId, double amount) {\n boolean result;\n synchronized (this.base) {\n User from = this.base.get(fromId);\n User to = this.base.get(toId);\n if (result = from != null && to != null) {\n if (result = amount > 0 && from.getAmount() >= amount) {\n synchronized (this.base) {\n this.base.put(fromId, new User(fromId, from.getAmount() - amount));\n this.base.put(toId, new User(toId, to.getAmount() + amount));\n }\n }\n }\n }\n return result;\n }",
"public void setAmount(Integer amount) {\n this.amount = amount;\n }",
"@Override\n\tpublic void give(Fraction fraction) {\n\t\tFraction amount = Fraction.minimum(getSize().subtract(getAmount()), fraction);\n\n\t\tsetAmount(Fraction.add(getAmount(), amount));\n\t}",
"public void transferTo(double dollarAmount) {\r\n\t\tthis.accountBalance = this.accountBalance + dollarAmount;\r\n\t}",
"@Override\r\n\tpublic void decreaseDomesticTradeResourceAmount(ResourceType resource) {\n\t\t\r\n\t}",
"@Override\n public void transferWithoutLocking(int fromId, int toId, long amount) throws InsufficientFundsException {\n Account fromAcct = accountMap.get(fromId);\n Account toAcct = accountMap.get(toId);\n fromAcct.withdraw(amount);\n toAcct.deposit(amount);\n }",
"public Resource takeResource( Resource.Type type, int amount );",
"void deductFromAmount(double amount) {\n this.currentAmount -= amount;\n }",
"public int getAmount() { return this.amount; }",
"@Override\r\n\tpublic TransferAmountResponseDto transfer(TransferAmountRequestDto transferAmountRequestDto) {\r\n\t\tlog.info(\"inside transaction service\");\r\n\r\n\t\tTransferAmountResponseDto transferAmountResponseDto = new TransferAmountResponseDto();\r\n\r\n\t\tTransaction debitTransaction = new Transaction();\r\n\t\tTransaction creditTransaction = new Transaction();\r\n\r\n\t\tAccount fromAccount = accountRepository.findByCustomerId(transferAmountRequestDto.getCustomerId());\r\n\t\tAccount toAccount = accountRepository.findByAccountNumber(transferAmountRequestDto.getCreditTo());\r\n\r\n\t\tif (fromAccount == null) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.ACCOUNT_NOT_FOUND);\r\n\t\t}\r\n\r\n\t\tif (toAccount == null) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.ACCOUNT_NOT_FOUND);\r\n\t\t}\r\n\r\n\t\tif (fromAccount.getAccountNumber().equalsIgnoreCase(toAccount.getAccountNumber())) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.INVALID_ACCOUNT);\r\n\t\t}\r\n\r\n\t\tBeneficiary existBeneficiary = beneficiaryRepository.findByCustomerAccountNumberAndBeneficiaryAccountNumber(\r\n\t\t\t\tfromAccount.getAccountNumber(), toAccount.getAccountNumber());\r\n\r\n\t\tif (existBeneficiary == null) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.NOT_BENEFICIARY);\r\n\t\t}\r\n\r\n\t\tif (fromAccount.getBalance() < transferAmountRequestDto.getTransferAmount()) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.INVALID_AMOUNT);\r\n\t\t}\r\n\r\n\t\tif (transferAmountRequestDto.getTransferAmount() <= 0) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.MINIMUM_AMOUNT);\r\n\t\t}\r\n\r\n\t\tdebitTransaction.setAccountNumber(fromAccount.getAccountNumber());\r\n\t\tdebitTransaction.setTransactionType(\"debit\");\r\n\t\tdebitTransaction.setTransferAmount(transferAmountRequestDto.getTransferAmount());\r\n\t\tdebitTransaction.setTransactionDate(LocalDateTime.now());\r\n\t\tdebitTransaction.setAccount(fromAccount);\r\n\r\n\t\tcreditTransaction.setAccountNumber(toAccount.getAccountNumber());\r\n\t\tcreditTransaction.setTransactionType(\"credit\");\r\n\t\tcreditTransaction.setTransferAmount(transferAmountRequestDto.getTransferAmount());\r\n\t\tcreditTransaction.setTransactionDate(LocalDateTime.now());\r\n\t\tcreditTransaction.setAccount(toAccount);\r\n\r\n\t\tdouble remainingBalance = fromAccount.getBalance() - transferAmountRequestDto.getTransferAmount();\r\n\t\tdouble updatedBalance = toAccount.getBalance() + transferAmountRequestDto.getTransferAmount();\r\n\r\n\t\tfromAccount.setBalance(remainingBalance);\r\n\t\ttoAccount.setBalance(updatedBalance);\r\n\r\n\t\taccountRepository.save(fromAccount);\r\n\r\n\t\tTransaction transaction = transactionRepository.save(debitTransaction);\r\n\t\tif (transaction.getTransactionId() == null) {\r\n\t\t\tthrow new CommonException(ExceptionConstants.TRANSACTION_FAILED);\r\n\t\t}\r\n\t\taccountRepository.save(toAccount);\r\n\r\n\t\ttransactionRepository.save(creditTransaction);\r\n\r\n\t\ttransferAmountResponseDto.setMessage(\"Amount Transferred successfully..\");\r\n\t\ttransferAmountResponseDto.setTransactionId(transaction.getTransactionId());\r\n\t\ttransferAmountResponseDto.setStatusCode(201);\r\n\t\treturn transferAmountResponseDto;\r\n\t}",
"public int getAmount() {\n return amount_;\n }",
"@Override\n public void transferWithoutLocking(int fromId, int toId, long amount) throws InsufficientFundsException {\n accounts.get(fromId).withdraw(amount);\n accounts.get(toId).deposit(amount);\n }",
"public void refill(int amount) {\n myAmount = myAmount + amount;\n }",
"public void reduceBalance(int amount){\n this.money.subtractMoney(amount);\n }",
"@Override\n public void transferLockingBank(int fromId, int toId, long amount) throws InsufficientFundsException {\n synchronized (this){\n accounts.get(fromId).withdraw(amount);\n accounts.get(toId).deposit(amount);\n }\n }",
"@Override\n public Transfer makeTransfer(String counterAccount, Money amount)\n throws BusinessException {\n if (amount.greaterThan(this.transferLimit)) {\n throw new BusinessException(\"Limit exceeded!\");\n }\n // 2. Assuming result is 9-digit bank account number, validate 11-test:\n int sum = AccountChekSum(counterAccount);\n\n if (sum % 11 == 0) {\n // 3. Look up counter account and make transfer object:\n Transfer result = doTransfer(counterAccount,amount);\n return result;\n } else {\n throw new BusinessException(\"Invalid account number!\");\n }\n }",
"public int getAmount() {\n return amount_;\n }",
"public void transferToChecking(double amount){\n withdrawSavings(amount);\r\n depositChecking(amount);\r\n }",
"@Override\n public void addResource(Shelf to, ResourceSingle resource, int amount) throws IllegalCupboardException{\n if(to == null || resource == null)\n throw new NullPointerException();\n if(amount <= 0 )\n throw new IllegalArgumentException();\n if(!contains(to))\n throw new NoSuchElementException();\n\n try{\n to.addResources(resource, amount);\n }catch(IllegalResourceTransferException e){\n throw new IllegalCupboardException(\"Transaction is not valid\");\n }\n\n //if the new cupboard configuration is not valid, IllegalCupboardException is thrown\n if(!isValid()){\n try {\n to.removeResources(amount);\n }catch(IllegalResourceTransferException e){\n throw new IllegalCupboardException(\"Error while restoring original state\");\n }\n throw new IllegalCupboardException(\"Cupboard configuration would not be valid\");\n }\n }",
"@Override\r\n\tpublic void fundTransfer(String sender, String reciever, double amount) {\n\t\t\r\n\t\tString name, newMobileNo;\r\n\t\tfloat age;\r\n\t\tdouble amountFund;\r\n\t\t\r\n\t\tCustomer custSender = custMap.get(sender);\r\n\t\tCustomer custReciever = custMap.get(reciever);\r\n\t\t\r\n\t\tdouble recieverAmount = custReciever.getInitialBalance();\r\n\t\tdouble senderAmount = custSender.getInitialBalance();\r\n\t\tif(senderAmount - amount > 500){\r\n\t\t\trecieverAmount += amount;\r\n\t\t\tsenderAmount -= amount;\r\n\t\t\tSystem.out.println(\"Fund Transferred\");\r\n\t\t}\r\n\t\tname = custSender.getName();\r\n\t\tnewMobileNo = custSender.getMobileNo();\r\n\t\tage = custSender.getAge();\r\n\t\tamountFund = senderAmount;\r\n\t\t\r\n\t\tcustSender.setAge(age);\r\n\t\tcustSender.setInitialBalance(senderAmount);\r\n\t\tcustSender.setMobileNo(newMobileNo);\r\n\t\tcustSender.setName(name);\r\n\t\t\r\n\t\tcustMap.put(newMobileNo, custSender);\r\n\t\t\r\n\t\tname = custReciever.getName();\r\n\t\tnewMobileNo = custReciever.getMobileNo();\r\n\t\tage = custReciever.getAge();\r\n\t\tamountFund = recieverAmount;\r\n\t\t\r\n\t\tcustReciever.setAge(age);\r\n\t\tcustReciever.setInitialBalance(recieverAmount);\r\n\t\tcustReciever.setMobileNo(newMobileNo);\r\n\t\tcustReciever.setName(name);\r\n\t\t\r\n\t\tcustMap.put(newMobileNo, custReciever);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public void modifyResource(Resource resToChange, int amount) {\n\t\ttry {\n\t\t\tswitch (resToChange) {\n\t\t\tcase GOLD:\n\t\t\t\tchest.modifyGold(amount);\n\t\t\t\tbreak;\n\t\t\tcase GLORY:\n\t\t\t\tif(amount>0 || gloryPoints + amount > 0)\n\t\t\t\t\tgloryPoints += amount;\n\t\t\t\telse\n\t\t\t\t\tgloryPoints = 0;\n\t\t\t\tbreak;\n\t\t\tcase SOLAR:\n\t\t\t\tchest.modifySolar(amount);\n\t\t\t\tbreak;\n\t\t\tcase LUNAR:\n\t\t\t\tchest.modifyLunar(amount);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"|| Not enough \" + resToChange.toString() + \" ||\" + \"resTo = \" + resToChange + \" amount = \" + amount + \" \"+ getGold() + \" \"+ getSolar() + \" \"+ getLunar());\n\t\t}\n\t}",
"public void drain(double amount) {\r\n capacity = Math.max(capacity -= amount, 0);\r\n }",
"public Account doMoneyTransfer(MoneyTransferDTO moneyTransferDTO, Long id) {\n Account origin = accountService.getAccountById(id);\n Account destination = accountService.getAccountById(moneyTransferDTO.getToAccountId());\n\n // check for fraud detection\n //fraudDetectionService.checkMoneyTransfer(origin, moneyTransferDTO);\n fraudDetectionService.checkMoneyTransferV2(origin, moneyTransferDTO);\n\n // check enough funds in origin account\n BigDecimal currentBalance = origin.getBalance().getAmount();\n BigDecimal transferAmount = moneyTransferDTO.getAmount();\n if (transferAmount.compareTo(currentBalance) > 0)\n throw new ResponseStatusException(HttpStatus.BAD_REQUEST, \"Amount exceeds balance of the account\");\n\n // check if penalty fee has to be deducted later\n BigDecimal result = currentBalance.subtract(transferAmount);\n boolean applyPenaltyFee =\n currentBalance.compareTo(origin.getMinimumBalance().getAmount()) > 0 &&\n result.compareTo(origin.getMinimumBalance().getAmount()) < 0;\n\n // make the transaction\n Transaction transaction = new Transaction(new Money(transferAmount));\n transaction.setType(Type.MONEY_TRANSFER);\n transaction.setFromAccount(origin);\n transaction.setToAccount(destination);\n //transaction.setAmount(new Money(transferAmount));\n transaction.setAuthorName(moneyTransferDTO.getName());\n transaction.setDescription(moneyTransferDTO.getDescription());\n Transaction newTransaction = transactionService.addTransaction(transaction);\n\n // deduct penalty fee with another transaction if needed\n if (applyPenaltyFee) {\n\n Transaction deductionTransaction = new Transaction(origin.getPenaltyFee());\n transaction.setType(Type.PENALTY_FEE);\n deductionTransaction.setFromAccount(origin);\n //deductionTransaction.setToAccount(null);\n //deductionTransaction.setAmount(origin.getPenaltyFee()); // set amount before accounts\n deductionTransaction.setAuthorName(moneyTransferDTO.getName());\n deductionTransaction.setDescription(\"Penalty fee deduction\");\n transactionService.addTransaction(deductionTransaction);\n }\n\n return accountService.saveAccount(origin);\n }",
"@Override\n public void makeTransfer(BigInteger sender, BigInteger recipient, BigDecimal amount)\n throws InsufficientFundsException, GenericBankNowException {\n if (isTheSameAccount(sender, recipient)) {\n throw new GenericBankNowException(\"Sender and recipient are the same accounts\");\n } else {\n Account accountSender = accountDao.getAccountByIban(sender);\n if (hasEfficientFunds(accountSender, amount)) {\n throw new InsufficientFundsException(\"Insufficient funds to proceed transfer\");\n } else {\n Account accountRecipient = accountDao.getAccountByIban(recipient);\n accountSender.setBalance(accountSender.getBalance().subtract(amount));\n accountRecipient.setBalance(accountRecipient.getBalance().add(amount));\n\n accountDao.updateAccount(accountSender);\n accountDao.updateAccount(accountRecipient);\n\n transactionDao.storeTransaction(new Transaction(sender, recipient, amount, TransactionType.TRANSFER));\n }\n }\n }",
"void deposit(double amount)\n\t{\n\t\tbalance += amount;\n\t\t//what this translates to is\n\t\t// this.balance += amount;\n\t}",
"public void setAmount(long amount);",
"void addToAmount(double amount) {\n this.currentAmount += amount;\n }",
"public void credit(double amount) {\n this.balance += amount;\n }",
"void setAmount(ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount amount);",
"public double withdrawFrom(double amount)\r\n {\r\n _balance -= amount;\r\n\r\n return _balance;\r\n }",
"@java.lang.Override\n public long getAmount() {\n return amount_;\n }",
"public void setAmount(double amount) {\n this.amount = amount;\n }",
"public void setAmount(double amount) {\n this.amount = amount;\n }",
"public void enoughForTransfer(double amount) throws BankException {\n if (this.currentAmount + amount > MAX_AMOUNT) {\n logger.warning(\"The amount in the receiving bank account cannot exceed 9 digits\");\n throw new BankException(\"The amount in the receiving bank account cannot exceed 9 digits\");\n }\n }",
"public abstract Response makeTransfer(Transaction transaction) throws AccountNotFoundException, InsufficientFundsException;",
"public int amount() {\n return amount;\n }",
"public void setAmount (double amount) {\r\n\t\tthis.amount = amount;\r\n\t}",
"public CurrencyTransferResponse(CurrencyTransferResponse other) {\n if (other.isSetStatus()) {\n this.status = other.status;\n }\n if (other.isSetDescription()) {\n this.description = other.description;\n }\n if (other.isSetSourceCharged()) {\n this.sourceCharged = new CurrencyAmount(other.sourceCharged);\n }\n if (other.isSetTargetDeposit()) {\n this.targetDeposit = new CurrencyAmount(other.targetDeposit);\n }\n }",
"public void withdraw(double amount) {\n this.balance -= amount;\n }",
"public void deposit(int amount)\n {\n setBalance(getBalance()+amount);\n }",
"public Refillable(int initialAmount) {\n myAmount = initialAmount;\n }",
"public int getAmount() {\n return amount;\n }",
"public int getAmount() {\n return amount;\n }",
"public int getAmount() {\n return amount;\n }",
"public long getAmount() {\r\n return amount;\r\n }",
"public void setAmount(String amount) {\r\n this.amount = amount;\r\n }",
"void transfer(BankAccount x,double amt)\n\t{\n\t\tSystem.out.println(\"transferring the amount\");\n\t\twithdraw(amt);\n\t\tx.deposit(amt);\n\t\tSystem.out.println(\"transfer done successfully! \");\n\t}",
"@Override\n\tvoid deposit(double amount) {\n\t\tsuper.balance += amount - 20;\n\t}",
"public void setAmount(String amount) {\n this.amount = amount;\n }",
"@Override\n\tpublic long getAmount() {\n\t\treturn amount;\n\t}",
"@ApiModelProperty(required = true, value = \"The amount to transfer from account\")\n @JsonProperty(JSON_PROPERTY_AMOUNT)\n @JsonInclude(value = JsonInclude.Include.ALWAYS)\n\n public BigDecimal getAmount() {\n return amount;\n }",
"public void withdraw(int amount)\n {\n setBalance(getBalance()-amount);\n }",
"@ApiModelProperty(required = true, value = \"The transaction amount to be delivered to the recipient.\")\n public Double getAmount() {\n return amount;\n }",
"@Override\n public void transferLockingAccounts(int fromId, int toId, long amount) throws InsufficientFundsException {\n Account fromAcct = accountMap.get(fromId);\n Account toAcct = accountMap.get(toId);\n Account lock1, lock2;\n\n if(fromAcct.getId() < toAcct.getId()){\n lock1 = fromAcct;\n lock2 = toAcct;\n } else {\n lock1 = toAcct;\n lock2 = fromAcct;\n }\n\n synchronized (lock1){\n synchronized (lock2){\n fromAcct.withdraw(amount);\n toAcct.deposit(amount);\n }\n }\n }",
"public double getAmount() { return amount; }",
"public int spend(int amount, boolean destroy) {\n int tvalue = tget();\n if (tvalue >= amount) {\n tvalue -= amount;\n tset(tvalue);\n if (destroy && tvalue == 0) {\n destroy_object(this); // does not inform client.\n }\n return TRUE;\n }\n return FALSE;\n }",
"public PhysicalResource take(PhysicalResource res) throws NotEnoughResourcesException{\n if(res.getType().equals(ResType.UNKNOWN))\n return res;\n\n if(resources.get(res.getType()) < res.getQuantity())\n throw new NotEnoughResourcesException(\"Not enough \"+ res.getType().name() +\" in the StrongBox!\");\n else\n resources.replace(res.getType(), (resources.get(res.getType()) - res.getQuantity()));\n return res;\n }",
"public long getAmount() {\n return amount;\n }",
"@Override\n public void transferLockingAccounts(int fromId, int toId, long amount) throws InsufficientFundsException {\n Account fromAccount = accounts.get(fromId);\n Account toAccount = accounts.get(toId);\n synchronized (fromAccount) {\n fromAccount.withdraw(amount);\n }\n synchronized (toAccount) {\n toAccount.deposit(amount);\n }\n }",
"public Integer getAmount() {\n return amount;\n }",
"public Integer getAmount() {\n return amount;\n }",
"public Integer getAmount() {\n return amount;\n }",
"@Override\n\tpublic void transferAccount(Bank recievingBank, String recievingUser,\n\t\t\tBank payingBank, String payingUser, double amount) {\n\t\ttry {\n\t\t\tif (getAccount(payingBank, payingUser).getBalance() >= amount) {\n\t\t\tgetAccount(payingBank, payingUser).withdrawal(amount);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Not enough funds\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t}catch(NullPointerException e){\n\t\t\t\tSystem.out.println(\"User not found\");\n\t\t\t}\n\t\t\n\t\ttry {\n\t\tgetAccount(recievingBank, recievingUser).deposit(amount);\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\tSystem.out.println(\"User not found\");\n\t\t\tgetAccount(payingBank, payingUser).deposit(amount);\n\t\t}\n\t}",
"@Override\r\n\tpublic void makePayment(Payment p, int amount) {\n\t\t\r\n\t}",
"public void setAmount(Double amount) {\r\n this.amount = amount;\r\n }",
"@Override\n public int getAmount() {\n return 1;\n }",
"public int makeTransfer(int tr_amount, int from_account, int to_account, int from_final_balance, int to_final_balance) {\n int generated_id = 0;\n\n try {\n operationLock.lock();\n executeTransfer(generated_id = currentOperationId++, tr_amount, from_account,\n to_account, from_final_balance, to_final_balance, rawDataSource.getConnection());\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n operationLock.unlock();\n }\n\n updateBalance(from_account, from_final_balance);\n updateBalance(to_account, to_final_balance);\n\n return generated_id;\n }",
"public boolean makeTransfer(int originAccNo, int targetAccNo, float amount) {\n Account origAccount = getAccountByAccountNo(originAccNo);\n Account targetAccount = getAccountByAccountNo(targetAccNo);\n if (checkIfEnough(origAccount, amount)) {\n origAccount.setBalance(origAccount.getBalance() - amount);\n targetAccount.setBalance(targetAccount.getBalance() + amount);\n //update the two accounts after the transaction\n saveOrUpdate(origAccount);\n saveOrUpdate(targetAccount);\n //save transaction to database with current timestamp\n Transaction transaction = new Transaction();\n transaction.setAccountNo(originAccNo);\n transaction.setTime(new Timestamp(new Date().getTime()));\n transaction.setType(\"transfer from\");\n transactionRepository.save(transaction);\n Transaction transaction2 = new Transaction();\n transaction2.setAccountNo(targetAccNo);\n transaction2.setTime(new Timestamp(new Date().getTime()));\n transaction2.setType(\"transfer to\");\n transactionRepository.save(transaction2);\n\n return true;\n } else {\n return false;\n }\n }",
"public int receiveMoney(int amount) {\r\n\t\tmoney = money + amount;\r\n\t\treturn money;\r\n\t}",
"Transfer updateChargeBack(Transfer transfer, Transfer chargeback);",
"public void setAmount(Double amount) {\n this.amount = amount;\n }",
"public void setAmount(double amount) {\r\n\t\tthis.amount = amount;\r\n\t}",
"public Amount getAmount() {\n return amount;\n }",
"@Override\n\tvoid withdraw(double amount) {\n\t\tsuper.balance -= amount - 20;\n\t}",
"@Test\n\tpublic void moneyTrnasferExcetionInsufficientBalanceOfFromAccount() {\n\t\t\n\t\tString accountNumberFrom = createAccount(\"krishna\",4000);\n\t\tString accountNumberTo = createAccount(\"ram\",2000);\n\t\tdouble amountToBeTranfered = 40000.0;\n\t\tMoneyTransfer moneyTransfer = new MoneyTransfer();\n\t\tmoneyTransfer.setAccountNumberFrom(Integer.parseInt(accountNumberFrom));\n\t\tmoneyTransfer.setAccountNumberTo(Integer.parseInt(accountNumberTo));\n\t\tmoneyTransfer.setAmount(amountToBeTranfered);\n\t\t\n\t\tString requestBody = gson.toJson(moneyTransfer);\n\t\t\n\t\tRequestSpecification request = RestAssured.given();\n\t\trequest.body(requestBody);\n\t\tResponse response = request.put(\"/transfer\");\n\t\t\n\t\t// This logic is required due to response has been set as mix of Message and return data value. - START\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"Account Number - \");\n\t\tsb.append(accountNumberFrom);\n\t\tsb.append(\" do not have sufficient amout to transfer.\");\n\t\t// This logic is required due to response has been set as mix of Message and return data value. - END\n\t\t\n\t\tAssertions.assertEquals(sb.toString(), response.asString());\n\t\t\n\t}",
"@Override\n public double takeFromWarehouse(double amount) {\n double amountTaken = super.takeFromWarehouse(amount);\n this.inventoryHistory.add(this.getBalance());\n return amountTaken;\n }",
"public void setAmount(Long amount) {\n this.amount = amount;\n }",
"public void setAmount(Long amount) {\n this.amount = amount;\n }",
"public void setAmount(Long amount) {\n this.amount = amount;\n }",
"public void setAmount(Long amount) {\n this.amount = amount;\n }",
"public void transferMoney(float amount, String transferToNumber) {}",
"public int getAmount() {\n\t\treturn amount;\n\t}",
"public boolean transfer(double total, String sender, String receiver) {\n\n }",
"public ModelMessage addAmount(String key, int amount) {\n super.addAmount(key, amount);\n return this;\n }",
"@Override\t\n\t@Transactional\n\tpublic Boolean transferMoney(TransferDto transferData) throws Exception {\n\t\t\n\t\tUser targetUser = userDao.findByUsername(transferData.getTargetUser().getUsername());\n\t\t\n\t\tBalanceDto balanceData = transferData.getBalance();\n\t\t\n\t\t\n\t\tbalanceData.setType(AccountTransactionType.SUBTRACT);\n\t\t\n\t\taddSubtractBalance(balanceData);\n\t\n\t\tbalanceData.setType(AccountTransactionType.ADD);\n\t\t\n\t\tbalanceData.setAccount(transferData.getTargetAccount());\n\t\t\n\t\t\n\t\taddSubtractBalanceByUser(targetUser, balanceData);\n\t\t\n\t\t\n\t\treturn true;\n\t}",
"public Long getAmount() {\n return amount;\n }",
"public Long getAmount() {\n return amount;\n }",
"public Long getAmount() {\n return amount;\n }",
"public Long getAmount() {\n return amount;\n }"
]
| [
"0.6296365",
"0.6245939",
"0.6195216",
"0.6179543",
"0.6157056",
"0.6136403",
"0.6085878",
"0.6085128",
"0.5966026",
"0.59376746",
"0.5918161",
"0.5904995",
"0.584037",
"0.582138",
"0.5800361",
"0.57773596",
"0.5774817",
"0.5770859",
"0.57568264",
"0.57482755",
"0.5726276",
"0.5724737",
"0.57166815",
"0.57048535",
"0.5691853",
"0.5688781",
"0.56856745",
"0.5679447",
"0.56778866",
"0.5669688",
"0.56529486",
"0.5649894",
"0.56275856",
"0.5617529",
"0.561418",
"0.56070805",
"0.56029767",
"0.55985415",
"0.55928636",
"0.5588173",
"0.55792767",
"0.5559771",
"0.5559099",
"0.5559099",
"0.55581087",
"0.5556503",
"0.5553173",
"0.5551859",
"0.554575",
"0.5545628",
"0.5545571",
"0.5542664",
"0.5540029",
"0.5540029",
"0.5540029",
"0.55369085",
"0.5533458",
"0.55262977",
"0.552152",
"0.5516803",
"0.55057245",
"0.55037206",
"0.5501757",
"0.5499414",
"0.54909515",
"0.5488561",
"0.54807025",
"0.54782224",
"0.54778546",
"0.54745984",
"0.546965",
"0.546965",
"0.546965",
"0.5464878",
"0.5460825",
"0.54581153",
"0.5450221",
"0.54489684",
"0.54479945",
"0.5444249",
"0.5443867",
"0.5442467",
"0.5437466",
"0.5432921",
"0.5431754",
"0.5422957",
"0.5420265",
"0.5419138",
"0.5419138",
"0.5419138",
"0.5419138",
"0.541383",
"0.54134303",
"0.5409555",
"0.54000163",
"0.53953457",
"0.53928673",
"0.53928673",
"0.53928673",
"0.53928673"
]
| 0.80302364 | 0 |
merge r with this. r will be recycled. | public void merge( Resource r )
{
r.transter(this, r.amount);
r.recycle();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Node merge(Node r) {\r\n if (r.op() == Empty) return r;\r\n assert(r.op() == List);\r\n if (r.left().op() == Rule) { merge(r.right()); return r; }\r\n Node n = r.left();\r\n assert(n.op() == List);\r\n r.left(n.left());\r\n if (n.right().op() == Empty) return r;\r\n n.left(n.right());\r\n n.right(r.right());\r\n r.right(n);\r\n merge(r);\r\n return r;\r\n }",
"public ResourceHolder<ByteBuffer> getMergeBuffer()\n {\n final ByteBuffer buffer = mergeBuffers.pop();\n return new ResourceHolder<ByteBuffer>()\n {\n @Override\n public ByteBuffer get()\n {\n return buffer;\n }\n\n @Override\n public void close()\n {\n mergeBuffers.add(buffer);\n }\n };\n }",
"private void rmerge(int[] arr, int a, int l, int r) {\n\t\tfor (int i = 0; i < l; i += r) {\n\t\t\t// select smallest arr[p0+n*r]\n\t\t\tint q = i;\n\t\t\tfor (int j = i + r; j < l; j += r) {\n\t\t\t\tif (this.reads.compare(arr[a + q], arr[a + j]) > 0) {\n\t\t\t\t\tq = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (q != i) {\n\t\t\t\taswap(arr, a + i, a + q, r); // swap it with current position\n\t\t\t}\n\t\t\tif (i != 0) {\n\t\t\t\taswap(arr, a + l, a + i, r); // swap current position with buffer\n\t\t\t\tbackmerge(arr, a + (l + r - 1), r, a + (i - 1), r); // buffer :merge: arr[i-r..i) -> arr[i-r..i+r)\n\t\t\t}\n\t\t}\n\t}",
"public Rect union(Rect r) {\n int minX = min(this.x1, r.x1);\n int minY = min(this.y1, r.y1);\n int maxX = max(this.x2, r.x2);\n int maxY = max(this.y2, r.y2);\n return new Rect(minX, minY, maxX, maxY);\n }",
"@Override\n public abstract void merge(Mergeable merge);",
"public Item merge(Item other);",
"@Override\n\tpublic T merge(T obj) throws Exception {\n\t\treturn null;\n\t}",
"public Builder clearR() {\n \n r_ = getDefaultInstance().getR();\n onChanged();\n return this;\n }",
"public Object merge(Object obj) throws HibException;",
"public T merge ( T object );",
"protected Rectangle unionBounds(Rectangle r, Rectangle bds)\n {\n if (bds != null) {\n if (r == null) {\n r = new Rectangle(bds);\n }\n else {\n r.union(bds);\n }\n }\n\n return r;\n }",
"public abstract void merge (org.apache.spark.sql.expressions.MutableAggregationBuffer buffer1, org.apache.spark.sql.Row buffer2) ;",
"void merge();",
"@Override\n\tprotected void merge(Object in1, Object in2, Object out) {\n\t\t\n\t}",
"SortedSet<K> rB() {\n return new h(rL());\n }",
"public GridCollector merge(GridCollector other) {\n\t\t// cell-wise merge\n\t\tIntStream.range(0, cells.size())\n\t\t .forEach(i -> cells.get(i).addAll(other.cells.get(i)));\n\t\treturn this;\n\t}",
"public Report combine(Report r) {\r\n \tif(substitution.isCompatible(r.getSubstitutions())) {\r\n \t\tSubstitutions combinedSubs = substitution.union(r.getSubstitutions());\r\n \t\tPropositionSet combinedSupport = new PropositionSet();\r\n \t\ttry {\r\n\t\t\t\tcombinedSupport = support.union(r.getSupport());\r\n\t\t\t} catch (NotAPropositionNodeException |\r\n\t\t\t\t\tNodeNotFoundInNetworkException e1) {\r\n\t\t\t}\r\n\r\n \t\tInferenceTypes resultingType;\r\n \t\tif(inferenceType.equals(InferenceTypes.FORWARD) ||\r\n\t\t\t\t\tr.getInferenceType().equals(InferenceTypes.FORWARD))\r\n\t\t\t\tresultingType = InferenceTypes.FORWARD;\r\n\t\t\telse\r\n\t\t\t\tresultingType = InferenceTypes.BACKWARD;\r\n\r\n \t\treturn new Report(combinedSubs,\r\n\t\t\t\t\tcombinedSupport, sign, resultingType);\r\n \t}\r\n\r\n \treturn null;\r\n }",
"private void merge(ArrayList<T> arr, int p, int q, int r) {\n\t\t// we assume that in array arr, p to q are sorted and q+1 to r are sorted.\n\t\tint n1 = q-p+1;\n\t\tint n2 = r-q;\n\t\t\n\t\t// lets get two temp arraylists to hold the value while we merge\n\t\tArrayList<T> Larr = new ArrayList<T>();\n\t\tArrayList<T> Rarr = new ArrayList<T>();\n\t\tfor(int i = 1; i <= n1; i++) {\n\t\t\tLarr.add(arr.get(p+i-1));\n\t\t}\n\t\tfor(int i = 1; i <= n2; i++) {\n\t\t\tRarr.add(arr.get(q+i));\n\t\t}\n\t\t\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint k = p;\n\t\twhile( i<n1 && j<n2) {\n\t\t\tif(Larr.get(i).compareTo(Rarr.get(j)) <= 0) {\n\t\t\t\tarr.set(k, Larr.get(i));\n\t\t\t\ti++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tarr.set(k, Rarr.get(j));\n\t\t\t\tj++;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t\t\n\t\t//copy remaining elements of L and R if any\n\t\twhile( i < n1) {\n\t\t\tarr.set(k, Larr.get(i));\n\t\t\ti++;\n\t\t\tk++;\n\t\t}\n\t\t\n\t\twhile( j < n2) {\n\t\t\tarr.set(k, Rarr.get(j));\n\t\t\tj++;\n\t\t\tk++;\n\t\t}\n\t}",
"public Builder mergeRegisterRes(Register.Res value) {\n copyOnWrite();\n instance.mergeRegisterRes(value);\n return this;\n }",
"@Override \n public Object clone() {\n try {\n Resource2Builder result = (Resource2Builder)super.clone();\n result.self = result;\n return result;\n } catch (CloneNotSupportedException e) {\n throw new InternalError(e.getMessage());\n }\n }",
"@Override\n\tpublic void r() {\n\n\t}",
"void merge(int arr[], int l, int m, int r) {\r\n\t\tint[] temp = new int[r - l + 1];\r\n\t\tint i = l;\r\n\t\tint j = m + 1;\r\n\t\tint k = 0;\r\n\t\twhile (i <= m && j <= r) {\r\n\t\t\tif (arr[i] < arr[j])\r\n\t\t\t\ttemp[k++] = arr[i++]; // same as b[k]=a[i]; k++; i++;\r\n\t\t\telse\r\n\t\t\t\ttemp[k++] = arr[j++];\r\n\t\t}\r\n\r\n\t\twhile (j <= r) {\r\n\t\t\ttemp[k++] = arr[j++];\r\n\t\t}\r\n\t\twhile (i <= m) {\r\n\t\t\ttemp[k++] = arr[i++];\r\n\t\t}\r\n\r\n\t\tfor (i = r; i >= l; i--) {\r\n\t\t\tarr[i] = temp[--k];\r\n\t\t}\r\n\t}",
"private void merge(Object [] arr, int l, int m, int r) \n\t{\n\t\tint n1 = m - l + 1; \n\t\tint n2 = r - m; \n\n\t\t/* Create temp arrays */\n\t\tObject L[] = new Object [n1]; \n\t\tObject R[] = new Object [n2]; \n\n\t\t/*Copy data to temp arrays*/\n\t\tfor (int i=0; i<n1; ++i) \n\t\t\tL[i] = arr[l + i]; \n\t\tfor (int j=0; j<n2; ++j) \n\t\t\tR[j] = arr[m + 1+ j]; \n\n\n\t\t/* Merge the temp arrays */\n\n\t\t// Initial indexes of first and second subarrays \n\t\tint i = 0, j = 0; \n\n\t\t// Initial index of merged subarry array \n\t\tint k = l; \n\t\twhile (i < n1 && j < n2) \n\t\t{ \n\t\t\tint comparison = ((T)L[i]).compareTo((T)R[j]);\n\t\t\tif (comparison <= 0) \n\t\t\t{ \n\t\t\t\tarr[k] = L[i]; \n\t\t\t\ti++; \n\t\t\t} \n\t\t\telse\n\t\t\t{ \n\t\t\t\tarr[k] = R[j]; \n\t\t\t\tj++; \n\t\t\t} \n\t\t\tk++; \n\t\t} \n\n\t\t/* Copy remaining elements of L[] if any */\n\t\twhile (i < n1) \n\t\t{ \n\t\t\tarr[k] = L[i]; \n\t\t\ti++; \n\t\t\tk++; \n\t\t} \n\n\t\t/* Copy remaining elements of R[] if any */\n\t\twhile (j < n2) \n\t\t{ \n\t\t\tarr[k] = R[j]; \n\t\t\tj++; \n\t\t\tk++; \n\t\t} \n\t}",
"@Override\n public BinaryOperator<ObjectNode> combiner() {\n return (l, r) -> {\n Iterator<Map.Entry<String, JsonNode>> it = r.fields();\n while (it.hasNext()) {\n Map.Entry<String, JsonNode> entry = it.next();\n l.set(entry.getKey(), entry.getValue());\n }\n return l;\n };\n }",
"private UriKeyMap merge(final UriKeyMap acc, final String key, final String ramlKey)\n\t{\n\n\t\tif (!acc.containsKey(ramlKey))\n\t\t{\n\t\t\tacc.put(ramlKey, UriKeyMap.noUri(_collector.get(key)));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmerge((UriKeyMap) getMap(acc, ramlKey), _collector.get(key));\n\t\t}\n\n\t\treturn acc;\n\t}",
"public void addAll(XResultSet r) {\n this.getNodeRefs().addAll(r.getNodeRefs());\n this.numberFound += r.numberFound;\n }",
"public Curso merge(Long id, Curso c) {\n\t\tfor (Curso curso : cursos) {\n\t\t\tif(curso.getId() == id) {\n\t\t\t\tc.setId(curso.getId());\n\t\t\t\tcursos.remove(curso);\n\t\t\t\tcursos.add(c); \n\t\t\t\treturn curso;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t\t\n\t}",
"private NodoBin<T> clonarAS(NodoBin<T> r){\t\t\t\t\n if(r==null)\n return r;\n else\n {\n NodoBin<T> aux=new NodoBin<T>(r.getInfo(), clonarAS(r.getIzq()), clonarAS(r.getDer()));\n return aux;\n }\n }",
"public void merge(int arr[],int l, int m, int r){\n int n1 =m-l+1;\n int n2=r-m;\n \n //create temp array\n int L[]=new int[n1];\n int R[] = new int[n2];\n \n //Copy data in temp array\n for(int i=0;i<n1;i++){\n L[i]=arr[l+1];\n }\n for(int j=0;j<n2;j++){\n R[j]=arr[m+1+j];\n }\n \n // Merge arrray\n int i=0,j=0;\n int k=l;\n while(i<n1 && j<n2){\n if(L[i]<=R[i]){\n arr[k] = L[i];\n i++;\n }\n else{\n arr[k]=R[j];\n j++;\n }\n k++;\n }\n // Copy rmaing elements of L[]\n while(i<n1){\n arr[k]=L[i];\n i++;\n k++;\n }\n \n while(j<n2){\n arr[k]=R[j];\n j++;\n k++;\n }\n \n }",
"public ResourceMount autodetectMerging() {\n\t\t_merge = null;\n\t\treturn this;\n\t}",
"public void merge(int[] num, int l, int m, int r) {\n\t\tint n1 = m - l + 1;\n\t\tint n2 = r - m;\n\t\t\n\t\tint L[] = new int[n1];\n\t\tint R[] = new int[n2];\n\t\t\n\t\tfor (int i = 0; i < n1; i++) {\n\t\t\tL[i] = num[l + i];\n\t\t}\n\t\tfor (int i = 0; i < n2; i++) {\n\t\t\tR[i] = num[m + 1 + i];\n\t\t}\n\t\t\n\t\tint k = l;\n\t\tint i = 0, j = 0;\n\t\twhile (i < n1 && j < n2) {\n\t\t\tif (L[i] < R[j]) {\n\t\t\t\tnum[k] = L[i];\n\t\t\t\ti++;\n\t\t\t} else {\n\t\t\t\tnum[k] = R[j];\n\t\t\t\tj++;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t\t\n\t\twhile (i < n1) {\n\t\t\tnum[k] = L[i];\n\t\t\tk++;\n\t\t\ti++;\n\t\t}\n\t\t\n\t\twhile (j < n2) {\n\t\t\tnum[k] = R[j];\n\t\t\tk++;\n\t\t\tj++;\n\t\t}\n\t}",
"void merge(T other);",
"@Override\n public Image merge(Image a, Image b) {\n if (a.getCached() == null) {\n drawImage(a, 0, 0);\n }\n if (b.getCached() == null) {\n drawImage(b, 0, 0);\n }\n Object nativeImage = graphicsEnvironmentImpl.mergeImages(canvas, a, b, a.getCached(), b.getCached());\n Image merged = Image.create(getImageSource(nativeImage));\n merged.cache(nativeImage);\n return merged;\n }",
"private void merge(int p, int q, int r) {\n int n1 = q - p + 1;\n int n2 = r - (q + 1) + 1;\n int[] left = new int[n1 + 1];\n int[] right = new int[n2 + 1];\n for (int i = 0; i < n1; i++) {\n left[i] = data[p + i];\n }\n left[n1] = Integer.MAX_VALUE;\n for (int j = 0; j < n2; j++) {\n right[j] = data[q + 1 + j];\n }\n right[n2] = Integer.MAX_VALUE;\n\n int i = 0, j = 0;\n for (int k = p; k <= r; k++) {\n if (left[i] <= right[j]) {\n data[k] = left[i];\n i++;\n } else {\n data[k] = right[j];\n j++;\n }\n }\n }",
"public void relinkLR()\n {\n this.L.R = this.R.L = this;\n }",
"public Builder<V, E> setR(double r) {\n this.r = r;\n return this;\n }",
"public void add(R result) {\n results.add(result);\n }",
"public Reader chain(final Reader rdr) {\n ConcatFilter newFilter = new ConcatFilter(rdr);\n newFilter.setPrepend(getPrepend());\n newFilter.setAppend(getAppend());\n // Usually the initialized is set to true. But here it must not.\n // Because the prepend and append readers have to be instantiated\n // on runtime\n //newFilter.setInitialized(true);\n return newFilter;\n }",
"@Override\r\n\tpublic void merge(Worker worker) {\n\t\tbaseDao.merge(worker);\r\n\t}",
"@Override\n\tpublic L mergeIntoPersisted(R root, L entity) {\n\t\treturn entity;\n\t}",
"T merge(T x);",
"public Value joinModified() {\n checkNotUnknown();\n if (isMaybeModified())\n return this;\n Value r = new Value(this);\n r.flags |= MODIFIED;\n return canonicalize(r);\n }",
"@Override\n\tpublic boolean mergeWith(BUEdge other) {\n\t\t// TODO Auto-generated method stub\n\t\treturn false;\n\t}",
"public void merge(int l, int m, int r){\n int n1 = m-l+1;\n int n2 = r-m;\n\n // temp arrays \n int[] L = new int[n1];\n int[] R = new int[n2];\n\n // copy data of the 2 subarrays int he temp ones\n // TODO : can be reduced to one loop and another loop of length |n1-n2|\n for(int i=0; i<n1; i++) L[i] = arr[l+i];\n for(int i=0; i<n2; i++) R[i] = arr[m+1+i];\n\n\n // init indexes\n int i=0, j=0, k=l;\n while (i<n1 && j<n2){ // ordering in asc order\n if(L[i] <= R[j]){\n arr[k] = L[i];\n i++;\n } else{\n arr[k] = R[j];\n j++;\n }\n k++;\n }\n\n // insert the remaining items\n while(i<n1){\n arr[k] = L[i];\n i++;\n k++;\n }\n\n while(j<n2){\n arr[k] = R[j];\n j++;\n k++;\n }\n \n\n }",
"public final void m14223a(R r) {\n synchronized (this.f11863a) {\n if (this.f11874m || this.f11873l) {\n m14216b((Result) r);\n return;\n }\n m14229d();\n ad.m9051a(m14229d() ^ 1, (Object) \"Results have already been set\");\n ad.m9051a(this.f11872k ^ 1, (Object) \"Result has already been consumed\");\n m14217c(r);\n }\n }",
"@Override\n\tpublic Instance mergeInstance(final Instance inst) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic <T> T merge(T entity) {\n\t\treturn null;\n\t}",
"public static GcResult merge(GcResult a, GcResult b) {\n\t\treturn a.compareTo(b) < 0 ? a : b;\n\t}",
"private NodoBin<T> rDerecha(NodoBin<T> r) {\n NodoBin<T> x = r.getIzq();\n r.setIzq(x.getDer());\n x.setDer(r);\n return x;\n }",
"@Override\n public void run() {\n rView.setAdapter(rcAdapter);\n }",
"@GuardedBy(\"this\")\n private Cursor createMergedCursor() {\n try {\n final boolean hasNewCalls = mNewCallsCursor.getCount() != 0;\n final boolean hasOldCalls = mOldCallsCursor.getCount() != 0;\n \n if (!hasNewCalls) {\n // Return only the old calls, without the header.\n MoreCloseables.closeQuietly(mNewCallsCursor);\n return mOldCallsCursor;\n }\n \n if (!hasOldCalls) {\n // Return only the new calls.\n MoreCloseables.closeQuietly(mOldCallsCursor);\n return new MergeCursor(\n new Cursor[]{ createNewCallsHeaderCursor(), mNewCallsCursor });\n }\n \n return new MergeCursor(new Cursor[]{\n createNewCallsHeaderCursor(), mNewCallsCursor,\n createOldCallsHeaderCursor(), mOldCallsCursor});\n } finally {\n // Any cursor still open is now owned, directly or indirectly, by the caller.\n mNewCallsCursor = null;\n mOldCallsCursor = null;\n }\n }",
"public Join dup (Join self)\n {\n if (self == null)\n return null;\n\n Join copy = new Join ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.group = self.group;\n copy.status = self.status;\n return copy;\n }",
"@Override\n public DistinctCountAnswer merge(Optional<DistinctCountAnswer> last, DistinctCountAnswer current, MiruSolutionLog solutionLog) {\n return current;\n }",
"@Override\n public T update(T element) {\n return manager.merge(element);\n }",
"protected abstract void recombineNext();",
"static void Merge(int[] A, int p, int q, int r) {\n\t\tint ls = q - p + 1;\n\t\tint rs = r - q;\n\t\tint[] B = new int[ls+rs];\n\t\tfor (int i = p; i <= r; i++){\n\t\t\tB[i - p] = A[i];\n\t\t}\n\t\tint i = 0;\n\t\tint j = ls;\n\t\tfor (int k = p; k <= r; k++) {\n\t\t\tif ((j >=(ls+rs)) || ((i < ls) && (B[i] <= B[j])))\n\t\t\t\tA[k] = B[i++];\n\t\t\telse\n\t\t\t\tA[k] = B[j++];\n\t\t}\n\t\treturn;\n\t}",
"public void mergeROIs() {\n\t\tgroup1 = new ArrayList<Double>();\n\t\tgroup1.add(Data[0][0]);\n\t\tfor (int i = 1; i < (nResults-1);i++) {\n\t\t\tif ((Data[1][i]-similarity*Data[2][i]) < (Data[1][0]+similarity*Data[2][0]) ) { // if the lines are similar to the minimum line, add them to group1\n\t\t\t\tgroup1.add(Data[0][i]);//addes new element to group 1 with value of roiindex[i]\n\t\t\t}\n\t\t}\n\t\tint[] group1a = new int[group1.size()];\n\t\tfor(int i =0; i < group1.size(); i++){\n\t\t\tdouble temp = group1.get(i);\n\t\t\tgroup1a[i] = (int)temp;\n\t\t}\n\t\tgroup2 = new ArrayList<Double>();\n\t\tgroup2.add(Data[0][nResults-1]);\n\t\tfor (int i=(nResults-2);i>1;i--) {\n\t\t\tif ((Data[1][i]+similarity*Data[2][i]) > (Data[1][nResults-1]-similarity*Data[2][nResults-1]) ) { \n\t\t\t// if the lines are similar to the maximum line, add them to group2\n\t\t\tgroup2.add(0,Data[0][i]);\n\t\t\t}\n\t\t}\n\t\tint[] group2a = new int[group2.size()];\n\t\tfor(int i =0; i < group2.size(); i++){\n\t\t\tdouble temp = group2.get(i);\n\t\t\tgroup2a[i] = (int)temp;\n\t\t}\n\t\tint count;\n\t\t//IJ.run(\"Select None\");\n\t\tActiveROIManager.deselect();\n\t\tActiveROIManager.setSelectedIndexes(group1a);\n\t\tif(group1a.length > 1) {\n\t\t\tActiveROIManager.runCommand(ActiveImage,\"Combine\"); \n\t\t\t//Creates new ROI that is combination of group 2\n\t\t\tcount = ActiveROIManager.getCount();\n\t\t\tRoi1 = ActiveROIManager.getRoi(count-1);//Selects the combined group1 ROI\n\t\t}\n\t\telse{\n\t\t\tRoi1 = ActiveROIManager.getRoi(group1a[0]);\n\t\t}\n\t\tActiveROIManager.setSelectedIndexes(group2a);\n\t\tif(group2a.length > 1) {\n\t\t\tActiveROIManager.runCommand(ActiveImage,\"Combine\"); \n\t\t\t//Creates new ROI that is combination of group 2\n\t\t\tcount = ActiveROIManager.getCount();\n\t\t\tRoi2 = ActiveROIManager.getRoi(count-1); //Selects the combined group2 ROI\n\t\t}\n\t\telse{\n\t\t\tRoi2 = ActiveROIManager.getRoi(group2a[0]);\n\t\t}\n\t\tActiveROIManager.reset();\n\t\trt.reset();\n\t\tActiveROIManager.add(ActiveImage,Roi1,0);\n\t\tActiveROIManager.select(ActiveImage,0);\n\t\tAnalyzer ActiveAnalyzer = new Analyzer(ActiveImage,measurements,rt);\n\t\tActiveAnalyzer.measure();\n\t\tActiveROIManager.add(ActiveImage,Roi2,1);\n\t\tActiveROIManager.select(ActiveImage,1);\n\t\tActiveAnalyzer.measure();\n\t\tActiveROIManager.runCommand(Image,\"Show All without labels\");// removes the labels, which a user may find confusing in the context of this macro\n\t\treturn;\n\t}",
"public void merge(BoundsUserSpace b) {\n add(b);\n }",
"public Builder mergeSearchUserRes(SearchUser.Res value) {\n copyOnWrite();\n instance.mergeSearchUserRes(value);\n return this;\n }",
"public void combine() {\n\t\t// differences with leafNode: need to address ptrs, and need to demote parent\n\t\tif (next == null) {\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\"combine internal:\\t\" + Arrays.toString(keys) + lastindex + \"\\t\" + Arrays.toString(next.keys) + next.lastindex);\n\t\tNode nextNode = next;\n\n\t\t// demote parent\n\t\tNode parentNode = nextNode.parentref.getNode();\n\t\tint parentIndex = nextNode.parentref.getIndex();\n\t\tlastindex += 1;\n\t\tkeys[lastindex] = parentNode.keys[parentIndex];\n\t\tptrs[lastindex] = next.ptrs[0];\n\t\tptrs[lastindex].parentref = new Reference(this, lastindex, false);\n\n\t\tparentNode.delete(parentIndex); // delete parent\n\n\t\t// transfer next sibling node's date into current node\n\t\tfor (int i = 1; i <= next.lastindex; i++) { // start from 1\n\t\t\tlastindex += 1;\n\t\t\tkeys[lastindex] = next.keys[i];\n\t\t\tptrs[lastindex] = next.ptrs[i];\n\t\t\tptrs[lastindex].parentref = new Reference(this, lastindex, false); // set parent\n\t\t}\n\t\t// connect node, delete nextNode\n\t\tNode nextNextNode = nextNode.next;\n\t\tthis.next = nextNextNode;\n\t\tif (nextNextNode != null) {\n\t\t\tnextNextNode.prev = this;\n\t\t}\n\t}",
"public T copyOnWrite() {\n T r = ref;\n if(r.getRefCount() <= 1) { return r; }\n @SuppressWarnings(\"unchecked\")\n T r2 = (T)r.clone();\n r.removeRef();\n ref = r2;\n r2.addRef();\n return r2;\n }",
"static void merge(int array[], int l, int x, int r) {\n int arrSize1 = x - l + 1;\n int arrSize2 = r - x;\n\n //Create temp arrays \n int tempArray1[] = new int[arrSize1];\n int tempArray2[] = new int[arrSize2];\n\n // Copy elements to temp arrays\n for (int i = 0; i < arrSize1; ++i)\n \ttempArray1[i] = array[l + i];\n for (int j = 0; j < arrSize2; ++j)\n \ttempArray2[j] = array[x + 1 + j];\n\n // Merge the temp arrays\n\n // Initial the indexes of two arrays\n int i = 0, j = 0;\n\n int k = l;\n while (i < arrSize1 && j < arrSize2) {\n\n if (tempArray1[i] <= tempArray2[j]) {\n array[k] = tempArray1[i];\n i++;\n }\n else {\n array[k] = tempArray2[j];\n j++;\n }\n k++;\n }\n\n // If there are any elements left, copy those elements of tempArray1\n while (i < arrSize1) {\n array[k] = tempArray1[i];\n i++;\n k++;\n }\n\n // If there are any elements left, copy those elements of tempArray2\n while (j < arrSize2) {\n array[k] = tempArray2[j];\n j++;\n k++;\n }\n\n }",
"@Override\n protected BackendEntry mergeEntries(BackendEntry e1, BackendEntry e2) {\n\n UltraSearchBackendEntry current = (UltraSearchBackendEntry) e1;\n UltraSearchBackendEntry next = (UltraSearchBackendEntry) e2;\n\n E.checkState(current == null || current.type().isVertex(),\n \"The current entry must be null or VERTEX\");\n E.checkState(next != null && next.type().isEdge(),\n \"The next entry must be EDGE\");\n\n if (current != null) {\n Id nextVertexId = IdGenerator.of(\n next.<String>column(HugeKeys.OWNER_VERTEX));\n if (current.id().equals(nextVertexId)) {\n current.subRow(next.row());\n return current;\n }\n }\n\n return this.wrapByVertex(next);\n }",
"public void close()\n {\n if( r != null )\n {\n r.close();\n }\n }",
"public ResourceSpec merge(final ResourceSpec other) {\n\t\tcheckNotNull(other, \"Cannot merge with null resources\");\n\n\t\tif (this.equals(UNKNOWN) || other.equals(UNKNOWN)) {\n\t\t\treturn UNKNOWN;\n\t\t}\n\n\t\tResourceSpec target = new ResourceSpec(\n\t\t\tthis.cpuCores.merge(other.cpuCores),\n\t\t\tthis.taskHeapMemory.add(other.taskHeapMemory),\n\t\t\tthis.taskOffHeapMemory.add(other.taskOffHeapMemory),\n\t\t\tthis.managedMemory.add(other.managedMemory));\n\t\ttarget.extendedResources.putAll(extendedResources);\n\t\tfor (Resource resource : other.extendedResources.values()) {\n\t\t\ttarget.extendedResources.merge(resource.getName(), resource, (v1, v2) -> v1.merge(v2));\n\t\t}\n\t\treturn target;\n\t}",
"public AmmoAmountUncapped add(AmmoAmountUncapped r){\n Map<AmmoColor,Integer> newMap = new EnumMap<>(getAmounts());\n for (Map.Entry<AmmoColor, Integer> i: r.getAmounts().entrySet()){\n newMap.put(i.getKey(), getAmounts().get(i.getKey())+i.getValue());\n }\n return new AmmoAmountUncapped(newMap);\n }",
"Merge() {\n //Unused Constructor.\n }",
"public void merge(List<Integer> a, List<Integer> l, List<Integer> r, int left, int right) \n {\n \n int i = 0, j = 0, k = 0;\n while (i < left && j < right) \n {\n if (l.get(i) < r.get(j)) \n {\n a.add(k++, l.get(i++));\n a.remove(k);\n }\n else \n {\n a.add(k++, r.get(j++));\n a.remove(k);\n }\n }\n \n while (i < left) \n {\n a.add(k++, l.get(i++));\n a.remove(k);\n }\n while (j < right) \n {\n a.add(k++, r.get(j++));\n a.remove(k);\n }\n }",
"public static void mergeJsonIntoBase(List<Response> r1, List<Response> r2){\n //List of json objects in the new but not old json\n List<String> toAdd = new ArrayList<>();\n for(int i = 0; i < r1.size(); i ++){\n String r1ID = r1.get(i).getId();\n for(int j = 0; j < r2.size(); j ++){\n String r2ID = r2.get(j).getId();\n if(r1ID.equals(r2ID)){\n compareJson(r1.get(i), r2.get(j));\n }else{\n if (!toAdd.contains(r2ID)) {\n toAdd.add(r2ID);\n }\n }\n }\n }\n //Add all new elements into the base element\n List<Response> remainderToAdd = getElementListById(toAdd, r2);\n\n for(Response r: remainderToAdd){\n r1.add(r);\n }\n }",
"public FlowGraph serial_merge(FlowGraph graph){\r\n end.merge(graph.start);\r\n end = graph.end;\r\n return this;\r\n }",
"public static void merge(int[] arr, int l,int m, int r) {\n // Original array is broken in two parts\n // left and right array\n int len1 = m - l + 1, len2 = r - m;\n int[] left = new int[len1];\n int[] right = new int[len2];\n for (int x = 0; x < len1; x++){\n left[x] = arr[l + x];\n }\n for (int x = 0; x < len2; x++){\n right[x] = arr[m + 1 + x];\n }\n\n int i = 0;\n int j = 0;\n int k = l;\n\n // After comparing, we merge those two array\n // in larger sub array\n while (i < len1 && j < len2) {\n if (left[i] <= right[j]) {\n arr[k] = left[i];\n i++;\n }\n else {\n arr[k] = right[j];\n j++;\n }\n k++;\n }\n\n // Copy remaining elements\n // of left, if any\n while (i < len1){\n arr[k] = left[i];\n k++;\n i++;\n }\n\n // Copy remaining element\n // of right, if any\n while (j < len2){\n arr[k] = right[j];\n k++;\n j++;\n }\n }",
"Node copy(Node r) {\r\n\t\tif (r == null)\r\n\t\t\treturn null;\r\n\t\tNode leftTree = copy(r.left);\r\n\t\tNode rightTree = copy(r.right);\r\n\t\treturn new Node(r.element, leftTree, rightTree);\r\n\t}",
"public Builder mergeRedPoint(pb4client.RedPoint value) {\n if (redPointBuilder_ == null) {\n if (((bitField0_ & 0x00000001) == 0x00000001) &&\n redPoint_ != null &&\n redPoint_ != pb4client.RedPoint.getDefaultInstance()) {\n redPoint_ =\n pb4client.RedPoint.newBuilder(redPoint_).mergeFrom(value).buildPartial();\n } else {\n redPoint_ = value;\n }\n onChanged();\n } else {\n redPointBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }",
"public Builder mergeHeartBeatRes(HeartBeat.Res value) {\n copyOnWrite();\n instance.mergeHeartBeatRes(value);\n return this;\n }",
"public synchronized void mergeWith(DefaultInvertedIndex b) { \r\n\t\tfor (String tokenB : b)\r\n\t\t\tthis.add(tokenB, b.map.get(tokenB));\r\n\t}",
"void merge(int arr[], int l, int m , int r)\n {\n int n1 = m-l+1;\n int n2 = r-m;\n\n //create temp arrays\n int L[] = new int[n1];\n int R[] = new int[n2];\n\n //copy the elements to the array\n for(int i=0; i < n1 ;i++)\n L[i] = arr[l+i];\n for(int j=0; j < n2 ;j++)\n R[j] = arr[m+1+j];\n\n // Initial indexes of first and second subarrays\n int i = 0, j = 0;\n\n // Initial index of merged subarry array\n int k = l;\n\n while(i<n1 && j< n2)\n {\n if(L[i] <= R[j])\n {\n arr[k++] = L[i++];\n }\n else\n {\n arr[k++] = R[j++];\n }\n }\n\n while(i<n1)\n {\n arr[k++]=L[i++];\n }\n\n while(j<n2)\n {\n arr[k++]=R[j++];\n }\n\n }",
"private NodoBin<T> rIzquierda(NodoBin<T> r) {\n NodoBin<T> x = r.getDer();\n r.setDer(x.getIzq());\n x.setIzq(r);\n return x;\n }",
"public Roster with (Player p)\n\t{\n\t\tList<Player> resultList = new ArrayList<Player>();\n\t\tresultList.addAll(playerList);\n\t\tif(!has(p))\n\t\t\tresultList.add(p);\n\t\treturn new Rosters(resultList);\n\t}",
"@Override\n\tpublic void merge(MutableAggregationBuffer buffer1, Row buffer2) {\n\t\tif (buffer1.getString(0) == null) {\n\t\t\tbuffer1.update(0, buffer2.getString(0));\n\t\t} else\n\t\t\tbuffer1.update(0, buffer1.getString(0) + \",\" + buffer2.getString(0));\n\n\t\tbuffer1.update(1, buffer1.getLong(1) + buffer2.getLong(1));\n\t\tbuffer1.update(2, buffer1.getLong(2) + buffer2.getLong(2));\n\n\t}",
"void add(R group);",
"protected Object readResolve() {\n calculateHashCode(keys);\n return this;\n }",
"@Override\r\n\tpublic Buffer copy() {\n\t\t\r\n\t\treturn null;\r\n\t}",
"void mergeSort(int[] arr, int l, int r) {\r\n if (l<r)\r\n {\r\n int m = (l+r)/2;\r\n\r\n mergeSort(arr,l,m);\r\n mergeSort(arr, m+1, r);\r\n merge(arr, l, m, r);\r\n }\r\n }",
"public void setReceber(Receber r){\r\n\t\tthis.temp = r;\r\n\t}",
"public void merge(T entity) {\n\t\t\n\t}",
"public final /* synthetic */ m mR() {\n AppMethodBeat.i(91901);\n a aVar = new a(this);\n AppMethodBeat.o(91901);\n return aVar;\n }",
"public boolean collided(Rectangle r){\n\t\t\tif (this.intersects(r)) { return true;} \n\t\t\telse return false;\n\t\t}",
"public Bag union(Bag u) {\n return u;\n }",
"public OVecR2 suma(OVecR2 b){\n //TODO: implementar\n return new OVecR2();\n }",
"private RecordSet armaRSetFinalAceptarModificar(RecordSet r, RecordSet rAccesos)\n {\n \n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalAceptarModificar(RecordSet r, RecordSet rAccesos): Entrada\");\n\n UtilidadesLog.debug(\"***** RecordSet entrada: \" + r);\n UtilidadesLog.debug(\"***** RecordSet entrada: \" + rAccesos); \n \n for (int i = 0; i < r.getRowCount(); i++)\n {\n String descAcceso = (String) rAccesos.getValueAt(i,1);\n //Long oidAcceso = new Long( bigOidAcceso.longValue() );\n r.setValueAt(descAcceso, i,7);\n }\n \n UtilidadesLog.debug(\"***** RecordSet modificado: \" + r);\n UtilidadesLog.info(\"DAOGestionComisiones.armaRSetFinalAceptarModificar(RecordSet r, RecordSet rAccesos): Salida\");\n return r; \n }",
"private void mergesort(ToCompare[] a, int l, int r) throws BrokenBarrierException, InterruptedException {\n if (l >= r) {\r\n return;\r\n }\r\n\r\n //recursion step: a[l..r] is not empty \r\n //divide into sublists and merge \r\n int m = (l + r) / 2;\r\n mergesort(a, l, m);\r\n mergesort(a, m + 1, r);\r\n merge(a, l, m, r);\r\n }",
"public R next(){\n return (R) listR.get(index++);\n }",
"public void merge(MediaEntity other) {\n merge(other, false);\n }",
"public void mergeRight(Node rightLink,Node leftLink, int count) throws ClassNotFoundException, IOException{\n\t\tString parentKey;\n\t\t\n\t\tparentKey = keys.remove(count);\n\t\t\n\t\trightLink.keys.add(0,parentKey);\n\t\t\n\t\t// put left values into right values\n\t\tfor(String s: leftLink.keys) {\n\t\t\trightLink.keys.add(0,s);\n\t\t}// end for\n\t\t//left links go into rights links\n\t\tfor(int i = leftLink.links.size(); i > 0;i--){\n\t\t\t\trightLink.links.add(0,leftLink.links.get(i -1));\n\t\t}// end for\n\t\t\n\t\tlinks.remove(count);\n\t\ttemp.clear();\n\t\ttemp.add(rightLink);\n\t}",
"static void mergeSort(int[] arr, int l, int r) {\n\t\tif (l<r) {\n\t\t\tint m = (l+r)/2;\n\n\t\t\tmergeSort(arr, l, m);\n\t\t\tmergeSort(arr, m+1, r);\n\t\t\tmerge(arr, l, r, m);\n\t\t}\n\t}",
"public JsonObjectBuilder update() {\n\t\tDeque<RSSFeedItem> pulledData = pullFeed();\n\t\tif (pulledData == null || pulledData.isEmpty()) return null;\n\t\t\n\t\tDeque<RSSFeedItem> newData = null;\n\t\t\n\t\tRSSFeedItem newItem;\n\t\twhile (!pulledData.isEmpty()) {\n\t\t\tnewItem = pulledData.removeLast();\n\t\t\tif (!itemDeque.contains(newItem)) {\n\t\t\t\t\n\t\t\t\t// Initialize\n\t\t\t\tif (newData == null) newData = new ArrayDeque<>();\n\t\t\t\t\n\t\t\t\tnewData.add(newItem);\n\t\t\t\titemDeque.push(newItem);\n\t\t\t\t\n\t\t\t\tif (itemDeque.size() > RSSParser.maxItemsStored) {\n\t\t\t\t\titemDeque.removeLast();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (newData == null) return null;\n\t\treturn getObjectBuilder(newData);\n\t}",
"public SearchCriteria merge(SearchCriteria newOne) {\n this.minimalSize = newOne.minimalSize;\n this.maximalSize = newOne.maximalSize;\n this.fromMonthInclusive = newOne.fromMonthInclusive;\n this.toMonthInclusive = newOne.toMonthInclusive;\n this.dayOfWeek = newOne.dayOfWeek;\n this.coach = newOne.coach;\n this.savedBy = newOne.savedBy;\n return this;\n }",
"static void merge(int arr[], int l, int m, int r) \n { \n // Sizes of the two subarrays\n int size1 = m - l + 1; \n int size2 = r - m; \n \n // Temporary arrays\n int left[] = new int [size1]; \n int right[] = new int [size2]; \n \n // Copy over to temps\n for (int i=0; i<size1; ++i) \n left[i] = arr[l + i]; \n for (int j=0; j<size2; ++j) \n right[j] = arr[m + 1+ j]; \n \n \n // Initial indexes of first and second subarrays \n int i = 0, j = 0; \n \n // Initial index of merged subarry array \n int k = l; \n while (i < size1 && j < size2) \n { \n if (left[i] <= right[j]) \n { \n arr[k] = left[i]; \n i++; \n } \n else\n { \n arr[k] = right[j]; \n j++; \n } \n k++; \n } \n \n // Copy rest of arrays\n while (i < size1) \n { \n arr[k] = left[i]; \n i++; \n k++; \n } \n \n // For the other array\n while (j < size2) \n { \n arr[k] = right[j]; \n j++; \n k++; \n } \n }",
"public void unlinkLR()\n {\n this.L.R = this.R;\n this.R.L = this.L;\n }",
"public void merge(NODE node) {\n root = root == null ? node : root.merge(node);\n }"
]
| [
"0.60706407",
"0.5663269",
"0.5644627",
"0.56343704",
"0.5558426",
"0.54842097",
"0.5358995",
"0.5335529",
"0.53000313",
"0.52872753",
"0.5263885",
"0.5237371",
"0.52268976",
"0.5128656",
"0.51004875",
"0.50773287",
"0.50449467",
"0.5036711",
"0.5013807",
"0.5004277",
"0.49912715",
"0.49701408",
"0.49577034",
"0.49522835",
"0.4951093",
"0.49390882",
"0.4902039",
"0.48920217",
"0.48740694",
"0.48504007",
"0.4842075",
"0.4832653",
"0.48254833",
"0.4820812",
"0.48069456",
"0.48056132",
"0.479894",
"0.4788849",
"0.47872922",
"0.476295",
"0.47450614",
"0.47267777",
"0.47136658",
"0.47122237",
"0.46984887",
"0.46833828",
"0.46802476",
"0.46791673",
"0.467635",
"0.4670462",
"0.46666116",
"0.4661122",
"0.46583742",
"0.46582624",
"0.46558988",
"0.46451604",
"0.463641",
"0.4631949",
"0.46315378",
"0.46211103",
"0.4620871",
"0.46138453",
"0.46132067",
"0.4609653",
"0.46050018",
"0.4604121",
"0.45981765",
"0.45965272",
"0.45962122",
"0.4588684",
"0.4588513",
"0.45768797",
"0.45752135",
"0.45738372",
"0.45690486",
"0.45675144",
"0.4550113",
"0.45499015",
"0.45409566",
"0.453531",
"0.451905",
"0.45165938",
"0.4510532",
"0.45073563",
"0.449234",
"0.44816464",
"0.44716415",
"0.44711423",
"0.44652146",
"0.44650805",
"0.4464546",
"0.44601038",
"0.44593355",
"0.4456288",
"0.44529703",
"0.4452663",
"0.4448251",
"0.4446811",
"0.4442066",
"0.44399372"
]
| 0.7185297 | 0 |
this was removed from API by precaution | public long increaseExitDelay(long value) {
logger.warn("ShutdownService : increaseExitDelay : " + value);
return _delay.addAndGet(value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"public final void mo51373a() {\n }",
"OptimizeResponse() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo38117a() {\n }",
"@Override\n protected void prot() {\n }",
"protected void mo6255a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo55254a() {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\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\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 sacrifier() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"public void mo6081a() {\n }",
"private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"public void method_4270() {}",
"@Override\r\n\t\t\tpublic void onRequest() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"private Aliyun() {\n\t\tsuper();\n\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t\t\t\t\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n\n }",
"@Override\r\n\tprotected void processRespond() {\n\r\n\t}",
"@Override\r\n\tprotected void processRespond() {\n\r\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"public void mo1531a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n protected void initialize() {\n\n \n }",
"protected boolean func_70814_o() { return true; }",
"@Override\n public void onResponseSuccess(final String resp) {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"public boolean method_4088() {\n return false;\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public int describeContents() { return 0; }",
"private void m50366E() {\n }",
"@Override\n public int getMethodCount()\n {\n return 1;\n }",
"zzafe mo29840Y() throws RemoteException;",
"@Override\r\n protected void parseAttributes()\r\n {\n\r\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public int getVersion() {\n return 0;\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }",
"private Singletion3() {}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"private Response() {\n initFields();\n }",
"private WAPIHelper() { }",
"public void m23075a() {\n }",
"protected boolean func_70041_e_() { return false; }",
"public void mo12628c() {\n }",
"zzang mo29839S() throws RemoteException;",
"public void mo9848a() {\n }",
"public boolean method_216() {\r\n return false;\r\n }",
"@Override\n public boolean isOutdated() {\n return false;\n }",
"@Override\n public void init() {\n\n }",
"private void kk12() {\n\n\t}",
"private PredictRequest() {\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public boolean method_208() {\r\n return false;\r\n }",
"public boolean method_4093() {\n return false;\n }",
"private FlyWithWings(){\n\t\t\n\t}",
"@Override\n\tpublic void OnRequest() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n public void onFailure(VolleyError error)\r\n {\n }",
"@Override\r\n public void onFailure(VolleyError error)\r\n {\n }",
"@Override\r\n public void onFailure(VolleyError error)\r\n {\n }",
"@Override\n public void init() {\n }"
]
| [
"0.58745974",
"0.58001405",
"0.57952356",
"0.5756292",
"0.5694681",
"0.5694681",
"0.5694681",
"0.5694681",
"0.5694681",
"0.5694681",
"0.5694681",
"0.5635445",
"0.5610516",
"0.55918115",
"0.5569258",
"0.55600244",
"0.55468047",
"0.5531138",
"0.5531138",
"0.5508927",
"0.55044234",
"0.54951537",
"0.54951537",
"0.54951537",
"0.54951537",
"0.54951537",
"0.54951537",
"0.54906785",
"0.54906785",
"0.54891014",
"0.547596",
"0.54744196",
"0.54719007",
"0.54397845",
"0.54397845",
"0.5432975",
"0.54308546",
"0.5418208",
"0.5407226",
"0.5399057",
"0.5397652",
"0.53964233",
"0.53951144",
"0.53909785",
"0.5390465",
"0.53854644",
"0.5371957",
"0.5371957",
"0.5368069",
"0.5367802",
"0.5353125",
"0.53487575",
"0.53371656",
"0.5336951",
"0.5334616",
"0.53339744",
"0.53243035",
"0.5322941",
"0.5321699",
"0.5321699",
"0.5321699",
"0.5321699",
"0.5321699",
"0.5317704",
"0.53157294",
"0.53129745",
"0.5298997",
"0.5294814",
"0.5294502",
"0.529026",
"0.5287347",
"0.52865756",
"0.5281637",
"0.5274415",
"0.5247209",
"0.5247206",
"0.5247206",
"0.52468365",
"0.5246609",
"0.5244901",
"0.52422565",
"0.5239005",
"0.5230787",
"0.5228702",
"0.5227458",
"0.52001995",
"0.51955914",
"0.5194906",
"0.51889",
"0.51855135",
"0.51788145",
"0.51773906",
"0.51760465",
"0.51716334",
"0.5168679",
"0.51678324",
"0.5167325",
"0.5165857",
"0.5165857",
"0.5165857",
"0.5165433"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @RequiresApi(api = Build.VERSION_CODES.O)
@Override
public void onCreate() {
super.onCreate();
createVirtualEnvironment();
createNotificationChannel();
} | {
"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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.