query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
github_test Create on 7/10/2017.
public interface WebhookParserService { boolean parse(String payload); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testGitHub() {\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Hellow GitHub!!!\");\n\t\t// commit testing...\n\t\t// add: line 9 write...\n\t\tSystem.out.println(\"add code\");\n\t\t\n\t\tint a = 0;\n\t\tfor(int i=0; i<5; i++) {\n\t\t\ta++;\n\t\t}\n\t\tSystem.out.println(a);\n\t}", "@Test\n public void testProjectNameWithGitExtension()\n throws AuthorCommitsFailedException, IOException{\n EasyMock.expect(mockManager.openRepository(new Project.NameKey(\"trial\")))\n .andReturn(\n RepositoryCache.open(FileKey.lenient(new File(\n \"../../review_site/git\", \"trial.git\"), FS.DETECTED)));\n EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability);\n EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(true);\n replay(mockUser, mockCapability, mockManager);\n List<CommitInfo> expected = new LinkedList<CommitInfo>();\n CommitInfo ex = new CommitInfo();\n ex.setId(\"ede945e22cba9203ce8a0aae1409e50d36b3db72\");\n ex.setAuth(\"Keerath Jaggi <[email protected]> 1401771779 +0530\");\n ex.setMsg(\"init commit\\n\");\n ex.setDate(\"Tue Jun 03 10:32:59 IST 2014\");\n expected.add(ex);\n cmd_test.setCommits(new Project.NameKey(\"trial.git\"), \"kee\");\n assertEquals(expected, cmd_test.getCommits());\n }", "@Test\n public void testCorrectUsage() throws\n IOException, AuthorCommitsFailedException {\n EasyMock.expect(mockManager.openRepository(new Project.NameKey(\"trial\")))\n .andReturn(\n RepositoryCache.open(FileKey.lenient(new File(\n \"../../review_site/git\", \"trial.git\"), FS.DETECTED)));\n EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability);\n EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(true);\n replay(mockUser, mockCapability, mockManager);\n List<CommitInfo> expected = new LinkedList<CommitInfo>();\n CommitInfo ex = new CommitInfo();\n ex.setId(\"ede945e22cba9203ce8a0aae1409e50d36b3db72\");\n ex.setAuth(\"Keerath Jaggi <[email protected]> 1401771779 +0530\");\n ex.setMsg(\"init commit\\n\");\n ex.setDate(\"Tue Jun 03 10:32:59 IST 2014\");\n expected.add(ex);\n cmd_test.setCommits(new Project.NameKey(\"trial\"), \"kee\");\n assertEquals(expected, cmd_test.getCommits());\n }", "public GithubClient() {\n// client = ClientBuilder.newClient();\n// userTarget = client.target(\"https://api.github.com/users/{username}\");\n// userRepoTarget = client.target(\"https://api.github.com/users/{username}/repos\");\n// releaseCountTarget = client.target(\"https://api.github.com/repos/{owner}/{repo}/releases\");\n }", "@Test\n public void authorDateWithSubsecondsCorrectlyPopulated() throws Exception {\n fetch = primaryBranch;\n push = primaryBranch;\n\n Files.write(workdir.resolve(\"test.txt\"), \"some content\".getBytes(UTF_8));\n\n ZonedDateTime zonedDateTime = ZonedDateTime.ofInstant(\n Instant.ofEpochMilli(1496333940012L), ZoneId.of(\"-04:00\"));\n DummyRevision firstCommit = new DummyRevision(\"first_commit\")\n .withAuthor(new Author(\"Foo Bar\", \"[email protected]\"))\n .withTimestamp(zonedDateTime);\n process(firstCommitWriter(), firstCommit);\n\n String authorDate = git(\"log\", \"-1\", \"--pretty=%aI\");\n\n assertThat(authorDate).isEqualTo(\"2017-06-01T12:19:00-04:00\\n\");\n }", "public static void main(String[] args) {\n\t\t\tSystem.out.println(\"git_test!\");\n\t}", "@Test\n\tpublic void createRepo() throws NoFilepatternException, GitAPIException, IOException {\n\t\t\n\t\t\n\t\tFile baseDir = Files.createTempDir(\"gitrepo\");\n\t\tFile gitDir = new File(baseDir, \".git\");\n\n\t\tRepository repo = new FileRepositoryBuilder().setGitDir(gitDir).setWorkTree(baseDir).build();\n\t\trepo.create();\n\n\t\tGit git = new Git(repo);\n\n\t\tFiles.write(\"Nothing\", new File(baseDir,\"my.sample\"));\n\t\t\n\t\tgit.add().addFilepattern(\"*.sample\").call();\n\t\tgit.commit().setMessage(\"first commit\").call();\n\t\t\n\t\tgit.branchCreate().setName(\"new-branch\").call();\n\t\tgit.checkout().setName(\"new-branch\").call();\n\t\t\n\t\tList<Ref> branches = git.branchList().call();\n\t\t\n\t\tSystem.out.println(\"Branches: \"+branches);\n\t\t\n\t\tAssert.assertTrue(\"clean up\",Files.deleteAll(baseDir));\n\t}", "@Test\n public void createProjectTest() throws Exception {\n //set up user\n deleteUsers();\n String userId = createTestUser();\n\t //deleteProjects(userId);//all projects have already been deleted by server since deleteUsers();\n\n try {\n // Covered user cases 5.1\n CloseableHttpResponse response = createProject(\"testProjectName\", userId);\n\n int status = response.getStatusLine().getStatusCode();\n HttpEntity entity;\n if (status == 201) {\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n String strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n String id = getIdFromStringResponse(strResponse);\n\n String expectedJson = \"{\\\"id\\\":\" + id + \",\\\"projectname\\\":\\\"testProjectName\\\",\\\"userId\\\":\" + userId + \"}\";\n\t JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n // create duplicate name project // Covered user cases 5.2\n response = createProject(\"testProjectName\", userId);\n status = response.getStatusLine().getStatusCode();\n Assert.assertEquals(409, status);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n // 400 bad request\n response = createProject(\"testProjectName1\", userId + \"abc\");\n status = response.getStatusLine().getStatusCode();\n Assert.assertEquals(400, status);\n EntityUtils.consume(response.getEntity());\n response.close();\n // 404 user not found\n response = createProject(\"testProjectName2\", userId + \"666\");\n status = response.getStatusLine().getStatusCode();\n Assert.assertEquals(404, status);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n } finally {\n httpclient.close();\n }\n }", "public static void main(String[] args) {\n \n new Scanner (System.in); \n System.out.println(\"Estoy probando GIT y GIT HUB\");\n System.out.println(\"Ahora estoy probando a crear una segunda versión.\");\n System.out.println(\"Estoy probando GIT y GIT HUB\");\n \n }", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"github\");\r\n\t\t\r\n\t\tSystem.out.println(\"changed it for job text\");\r\n\t}", "@Test\n public void testCommitsApi() throws Exception\n {\n \n \n RequestBuilder builder = new RequestBuilder(\"GET\");\n Request request = builder.setUrl(\n UriTemplate.fromTemplate(BASE)\n .append(PATH_EXPRESSION)\n .set(\"user\", \"damnhandy\")\n .set(\"repo\", \"Handy-URI-Templates\")\n .set(\"function\",\"commits\")\n .expand()).build();\n Assert.assertEquals(\"https://api.github.com/repos/damnhandy/Handy-URI-Templates/commits\", request.getUrl());\n executeRequest(createClient(), request);\n }", "public static void main(String[] args) {\nSystem.out.println(\"day one example how to use git\");\r\n\t}", "private HelloGitUtil(){\n\t}", "@Test\n public void testingTheTwoPlane2016Order() {\n }", "@Test\n\tpublic void testRegistBlog() {\n\t}", "@Test\n public void versionTest() {\n // TODO: test version\n }", "@Test\n public void testingTheSixFlatbed2017Order() {\n }", "@Test\n public void testInitialiseNewGitRepo() throws Exception {\n moveToTempTestDirectory(\"test-project-initialise\", \"pom.xml\");\n\n final File rootFolder = getFolder().getRoot();\n assertTrue(rootFolder.exists());\n\n verifyRepositoryInitializedWithoutErrors(rootFolder);\n }", "public static void main(String[] args) {\n System.out.println(\"GitHub is for everyone!\");\n }", "@Test\n\tpublic void testCreate() throws Exception {\n\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\t\tDate startDate = new Date();\n\t\tCalendar calendar = new GregorianCalendar();\n\t\tcalendar.setTime(startDate);\n\t\tcalendar.add(Calendar.MONTH, 2);\n\t\t//\"name\":\"mizehau\",\"introduction\":\"dkelwfjw\",\"validityStartTime\":\"2015-12-08 15:06:21\",\"validityEndTime\":\"2015-12-10 \n\n\t\t//15:06:24\",\"cycle\":\"12\",\"industry\":\"1202\",\"area\":\"2897\",\"remuneration\":\"1200\",\"taskId\":\"TVRRME9UVTFPRE0zT0RBeU1EQXdNRFkyTVRnMU9EQTU=\"\n\t\tProject a = new Project();\n\t\tDate endDate = calendar.getTime();\n\t\tString name = \"mizehau\";\n\t\tString introduction = \"dkelwfjw\";\n\t\tString industry = \"1202\";\n\t\tString area = \"test闫伟旗创建项目\";\n\t\t//String document = \"test闫伟旗创建项目\";\n\t\tint cycle = 12;\n\t\tString taskId = \"TVRRME9UVTFPRE0zT0RBeU1EQXdNRFkyTVRnMU9EQTU=\";\n\t\tdouble remuneration = 1200;\n\t\tTimestamp validityStartTime = Timestamp.valueOf(sdf.format(startDate));\n\t\tTimestamp validityEndTime = Timestamp.valueOf(sdf.format(endDate));\n\t\ta.setArea(area);\n\t\ta.setName(name);\n\t\ta.setIntroduction(introduction);\n\t\ta.setValidityStartTime(validityStartTime);\n\t\ta.setValidityEndTime(validityEndTime);\n\t\ta.setCycle(cycle);\n\t\ta.setIndustry(industry);\n\t\ta.setRemuneration(remuneration);\n\t\ta.setDocument(taskId);\n\t\tProject p = projectService.create(a);\n\t\tSystem.out.println(p);\n\t}", "@Test\n public void checkoutTest() {\n\n }", "@Test\n public void createNewComputerBuildSuccess() {\n ComputerBuild computerBuild = createComputerBuild(SAMPLE_BUDGET_COMPUTER_BUILD_NAME, SAMPLE_BUDGET_COMPUTER_BUILD_DESCRIPTION);\n LoginRequest loginRequest = new LoginRequest(ANOTHER_USER_NAME_TO_CREATE_NEW_USER, USER_PASSWORD);\n\n loginAndCreateBuild(computerBuild, loginRequest, SAMPLE_BUDGET_COMPUTER_BUILD_NAME, SAMPLE_BUDGET_COMPUTER_BUILD_DESCRIPTION);\n }", "@Test\n public void testHistory(){\n\n userService.insertHistory(\"kaaksd\",\"------sdas\");\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello\");\n\t\t//ADDing comment 1 in testRebase branch\n\t\t//Adding commit2 in testRebase branch\n\t\t\n\t\t\n\t\t//Add commit 1.1 in master branch\n\n\t}", "@Test\n public void testGetOwner() {\n \n }", "@Test\n public void testGetAuthor() {\n }", "public void gitThis(){\n\t}", "@Test\n public void testCreate() {\n\n }", "@Test\n\tpublic void createNewBankTest() {\n\t\tBank bank = data.createNewBank();\n\t\tassertEquals(bankTest, bank);\n\t}", "@Test\n public void create_databaseEmpty_201() throws Exception {\n\n // PREPARE THE DATABASE\n // No data needed in database \n\n // PREPARE THE TEST\n Workflow mo = new Workflow();\n mo.setName(\"My_Macro_Operator\");\n mo.setDescription(\"Description of my new macro operator\");\n mo.setRaw(\"Macro operator content\");\n\n // DO THE TEST\n Response response = callAPI(VERB.POST, \"/mo/\", mo);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(201, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n\n URI headerLocation = response.getLocation();\n Pattern pattern = Pattern.compile(\".*/mo/([0-9]+)\");\n Matcher matcher = pattern.matcher(headerLocation.toString());\n assertEquals(true, matcher.matches());\n String expectedId = matcher.group(1);\n assertEquals(getAPIURL() + \"/mo/\" + expectedId, headerLocation.toString());\n\n List<WorkflowEntitySummary> macroOpList = Facade.listAllMacroOp();\n assertEquals(1, macroOpList.size());\n\n Response response2 = callAPI(VERB.GET, \"/mo/\" + expectedId, mo);\n assertEquals(200, response2.getStatus());\n\n\n }", "public static void main(String[] args) {\nSystem.out.println(\"nagarjuna is .................\");\r\n//second commit\r\nSystem.out.println(\"vinay is ..............................\");\r\n//third commit\r\nSystem.out.println(\"vinay is a ?\");\r\n\t}", "@Test\n\n public void create() {\n User user = new User();\n user.setAccount(\"TestUser03\");\n user.setEmail(\"[email protected]\");\n user.setPhoneNumber(\"010-1111-3333\");\n user.setCreatedAt(LocalDateTime.now());\n user.setCreatedBy(\"TestUser3\");\n\n User newUser = userRepository.save(user);\n System.out.println(\"newUser : \" + newUser);\n }", "@Test\n\tpublic void testCreatePostLive() throws Exception\n\t{\n\t}", "@Before\n public void setUp() throws Exception {\n api = PowerMockito.spy(new BitbucketCloudApiClient(\"alexbrjo\", \"repo1\", null));\n String correctUrl = \"https://bitbucket.org/api/1.0/repositories/alexbrjo/repo1/raw/\";\n\n // mock api response for branch 'name with spaces'\n PowerMockito.doThrow(new IllegalArgumentException(\"Invalid uri\"))\n .when(api, \"getRequestStatus\",correctUrl + \"name with spaces/Jenkinsfile\");\n PowerMockito.doReturn(200)\n .when(api, \"getRequestStatus\",correctUrl + \"name%20with%20spaces/Jenkinsfile\");\n // mock api response for branch '~`!@#$%^&*()_+=[]{}\\|;\"<>,./\\?a'\n PowerMockito.doThrow(new IllegalArgumentException(\"Invalid uri\"))\n .when(api, \"getRequestStatus\",correctUrl + \"~`!@#$%^&*()_+=[]{}\\\\|;\\\"<>,./\\\\?a/Jenkinsfile\");\n PowerMockito.doReturn(200)\n .when(api, \"getRequestStatus\",correctUrl + \"~%60!@%23$%25%5E&*()_%2B=%5B%5D%7B%7D%5C%7C;%22%3C%3E,./%5C%3Fa/Jenkinsfile\");\n }", "@Test\n\tpublic void testMainScenario() {\n\t\tProject project = this.db.project().create(\"Test project\", 200, \"13-05-2014\", null);\n\n//Test #1\t\t\n\t\tassertEquals(project.getActivities().size(), 0);\n\t\tassertEquals(project.getEstPercentageCompletion(), 0);\n\t\tassertEquals(project.getEstHoursRemaining(), 200);\n\t\tassertEquals(project.getHourBudget(), 200);\n\t\tassertEquals(project.getHoursAllocatedToActivities(), 0);\n\t\tassertEquals(project.getHoursRegistered(), 0);\n\t\t\n\t\tActivity activity1 = this.db.activity().createProjectActivity(project.getId(), \"activity1\", 10, this.stringDateTimeToLong(\"01-05-2013 01:00\"), this.stringDateTimeToLong(\"01-05-2014 01:00\"));\n\t\tActivity activity2 = this.db.activity().createProjectActivity(project.getId(), \"activity2\", 10, this.stringDateTimeToLong(\"01-05-2013 01:00\"), this.stringDateTimeToLong(\"01-05-2014 01:00\"));\n\n//Test #2\t\t\n\t\tassertEquals(project.getActivities().size(), 2);\n\t\tassertEquals(project.getEstPercentageCompletion(), 0);\n\t\tassertEquals(project.getEstHoursRemaining(), 200);\n\t\tassertEquals(project.getHourBudget(), 200);\n\t\tassertEquals(project.getHoursAllocatedToActivities(), 20);\n\t\tassertEquals(project.getHoursRegistered(), 0);\n\t\t\n\t\tDeveloper developer = this.db.developer().readByInitials(\"JL\").get(0);\n\t\tDeveloper developer2 = this.db.developer().readByInitials(\"PM\").get(0);\n\t\tDeveloper developer3 = this.db.developer().readByInitials(\"GH\").get(0);\n\t\tDeveloper developer4 = this.db.developer().readByInitials(\"RS\").get(0);\n\t\tactivity1.addDeveloper(developer);\n\t\tactivity1.addDeveloper(developer2);\n\t\tactivity1.addDeveloper(developer3);\n\t\tactivity1.addDeveloper(developer4);\n\n//Test #3\n\t\t//Tests that the initials of all developers are stored correctly\t\t\n\t\tassertEquals(activity1.getAllDevsInitials(),\"JL,PM,GH,RS\");\n\t\tassertEquals(activity1.getAllDevsInitials() == \"The Beatles\", false); //Please fail!\n\t\t\n\t\tthis.db.registerTime().create(this.stringDateTimeToLong(\"11-05-2013 06:30\"), this.stringDateTimeToLong(\"11-05-2013 09:30\"), developer.getId(), activity1.getId(), false);\n\t\tthis.db.registerTime().create(this.stringDateTimeToLong(\"11-05-2013 06:30\"), this.stringDateTimeToLong(\"11-05-2013 09:30\"), developer2.getId(), activity1.getId(), false);\n\t\t\n\t\t//Showed in the project maintainance view, and is relevant to the report\n\t\tassertEquals(activity1.getHoursRegistered(),6);\n\t\t\n//Test #4\n\t\t//Tests normal registration\t\t\n\t\tassertEquals(project.getEstPercentageCompletion(), 3);\n\t\tassertEquals(project.getEstHoursRemaining(), 194);\n\t\tassertEquals(project.getHourBudget(), 200);\n\t\tassertEquals(project.getHoursAllocatedToActivities(), 20);\n\t\tassertEquals(project.getHoursRegistered(), 6);\n\t\t\n\t\tthis.db.registerTime().create(this.stringDateTimeToLong(\"12-05-2013 06:30\"), this.stringDateTimeToLong(\"12-05-2013 09:30\"), developer3.getId(), activity2.getId(), true);\n\t\tthis.db.registerTime().create(this.stringDateTimeToLong(\"12-05-2013 06:30\"), this.stringDateTimeToLong(\"12-05-2013 09:30\"), developer4.getId(), activity2.getId(), true);\n\n//Test #5\n\t\t//Tests that assits also count\t\t\n\t\tassertEquals(project.getEstPercentageCompletion(), 6);\n\t\tassertEquals(project.getEstHoursRemaining(), 188);\n\t\tassertEquals(project.getHourBudget(), 200);\n\t\tassertEquals(project.getHoursAllocatedToActivities(), 20);\n\t\tassertEquals(project.getHoursRegistered(), 12);\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Primer commit\");\r\n\t\tSystem.out.println(\"18/05/2020 - segundo commit\");\r\n\t\tSystem.out.println(\"Rosana - tercer commit\");\r\n\t\tSystem.out.println(\"prueba - sexto commit\");\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"trying git\"); \r\n\t\tSystem.out.println(\"Getting there\");\r\n\t\t//Faisel\r\n\t}", "@Test\r\n \tpublic void testGetLastUpdated() {\n \t\tDate date = localProject.getLastUpdated();\r\n \t\tassertNull(date);\r\n \t}", "public static void main(String[] args) {\n System.out.println(\"Testando o Git\");\r\n System.out.println(\"Tomara que tudo tenha saido corretamente!\");\r\n JOptionPane.showMessageDialog(null, \"Deu tudo certo\");\r\n }", "@Test\n public void createPost() {\n User bob = new User(\"Jasdeep\",\"Madan\",\"JD\",\"[email protected]\",\"password\", \"member\", true, true).save();\n\n //Create a new Category and save it\n Category category = new Category(\"Tech\", \"Some Description\").save();\n\n // Create a new post\n new Article(\"My first post\", \"Hello world\", bob, category, true, null, null).save();\n\n // Test that the post has been created\n assertEquals(1, Article.count());\n\n // Retrieve all posts created by Bob\n List<Article> bobPosts = Article.find(\"byAuthor\", bob).fetch();\n\n // Tests\n assertEquals(1, bobPosts.size());\n Article firstPost = bobPosts.get(0);\n assertNotNull(firstPost);\n assertEquals(bob, firstPost.author);\n assertEquals(\"My first post\", firstPost.title);\n assertEquals(\"Hello world\", firstPost.content);\n assertNotNull(firstPost.submit_date);\n }", "public HockeyTeamTest()\n {\n }", "@Test\n public void testGetLabelByName() {\n System.out.println(\"getLabelByName\");\n String labelName = \"yupiya\";\n String labelColor = \"#FF3300\";\n\n Label label = createlabel(labelColor, labelName);\n label = issueService.createLabel(label);\n Label result = issueService.getLabelByName(labelName);\n assertEquals(result.getId(), label.getId());;\n }", "@Test\n public void saveAndFlushTest() {\n FileMetaData fileMetaData = new FileMetaData();\n fileMetaData.setAuthorName(\"Puneet\");\n fileMetaData.setFileName(\"resume4\");\n fileMetaData.setDescription(\"Attached resume to test upload\");\n fileMetaData.setUploadTimeStamp(DateUtil.getCurrentDate());\n FileMetaData newRecord = fileMetaDataRepository.saveAndFlush(fileMetaData);\n Assert.assertNotNull(newRecord);\n Assert.assertEquals(\"Puneet\", newRecord.getAuthorName());\n Assert.assertEquals(\"Attached resume to test upload\", newRecord.getDescription()); \n }", "public void testContentCreationTest() {\n\t\tQuestion question = new Question(\"Q title test\", \"Q body test\", \"Q author id test\");\n\t\tAnswer answer = new Answer(\"A body test\", \"A author id test\");\n\t\tReply reply = new Reply(\"R body test\", \"R author id test\");\n\t\tUser user = new User();\n\t\t//adds the question of the topic to an array of saved questions\n\t\tquestion.addAnswer(answer);\n\t\tquestion.addReply(reply);\n\t\t//question.setFavourite(user);\n\t\t//answer.setFavourite(user);\n\t\tanswer.addReply(reply);\n\t\t//tests if answer added to question is correct\n\t\tassertTrue(question.getAnswerCount() == 1);\n\t\t//smoke test code reply and answers.\n\t\tassertTrue(question.getReplies().get(0).getId().equals(reply.getId()));\n\t\tassertTrue(question.getAnswers().get(0).equals(answer));\n\t}", "public static void main(String[] args) {\n\n\t\tSystem.out.println(\"THis is my new claas in local repo\");\n\t\tSystem.out.println(\"Lets make some changes on local class and again we have to push that class in GIT\");\n\t}", "@Test(expected = RuntimeException.class)\r\n \tpublic void testCommit2() throws ESException {\n \t\tlocalProject.commit(ESLogMessage.FACTORY.createLogMessage(\"test\", \"super\"), null, new NullProgressMonitor());\r\n \t\tfail(\"Should not be able to commit an unshared Project!\");\r\n \t}", "@BeforeClass\n public static void setUp() throws Exception\n {\n Assume.assumeTrue(InetAddress.getByName(\"api.github.com\").isReachable(1000));\n Assume.assumeNotNull(System.getProperty(\"github.username\"), \n System.getProperty(\"github.password\"));\n\n }", "@Test\n\tpublic void testGenerateCompany() throws Exception {\n\n\t}", "public static void main(String[] args) {\n\n\t\tString mensajeGit = \"Hello Git and GitHub, a bug was fixed!!\";\n\t\t\n\t\t/* String mensajeGit = \"Hello Git!\";\n\t\t * String mensajeGit = \"Hello GitHub!\";\n\t\t * String mensajeGit = \"Hello Git and GitHub!\";\n\t\t * String mensajeGit = \"Hello Git a bug was fixed!!\";\n\t\t * String mensajeGit = \"Hello Git and GitHub, a bug was fixed!!\";\n\t\t*/\n\t\t\n\t\tSystem.out.println(\"<<< \" + mensajeGit + \" >>>\");\n\n\t}", "@Test\n\tpublic void test_increment_commits(){\n\t\tassertEquals(\"Initial commit number should be 1\", 1, test1.getCommitCount());\n\t\ttest1.incrementCommitCount();\n\t\tassertEquals(\"Number of Commit should be incremented\", 2, test1.getCommitCount());\n\t}", "@Test\n public void testCrearArchivo() {\n System.out.println(\"CrearArchivo\");\n String Ruta = \"\";\n RandomX instance = null;\n instance.CrearArchivo(Ruta);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "private static Release release() throws Exception {\n final Release release = Mockito.mock(Release.class);\n final Repo repo = new MkGithub(\"john\").repos().create(\n new Repos.RepoCreate(\"blueharvest\", false)\n );\n Mockito.doReturn(repo).when(release).repo();\n Mockito.doReturn(1).when(release).number();\n return release;\n }", "@Test\n public void TestCreateCat() {\n String expectedName = \"Milo\";\n Date expectedBirthDate = new Date();\n\n Cat newCat = AnimalFactory.createCat(expectedName, expectedBirthDate);\n\n Assert.assertEquals(expectedName, newCat.getName());\n Assert.assertEquals(expectedBirthDate, newCat.getBirthDate());\n }", "public static void main(String[] args) {\nSystem.out.println(\"This is for git\");\n\t}", "@Test\n public void testGetCreationDate() {\n System.out.println(\"getCreationDate\");\n Comment instance = new Comment(\"Test Komment 2\", testCommentable, testAuthor);\n Date expResult = new Date();\n Date result = instance.getCreationDate();\n assertEquals(expResult.getTime(), result.getTime());\n }", "@Test\n public void create_databaseFilled_201() throws Exception {\n\n // PREPARE THE DATABASE\n addMOToDb(1);\n\n // PREPARE THE TEST\n Workflow mo = new Workflow();\n mo.setName(\"My_Macro_Operator\");\n mo.setDescription(\"Description of my new macro operator\");\n mo.setRaw(\"Macro operator content\");\n\n // DO THE TEST\n Response response = callAPI(VERB.POST, \"/mo/\", mo);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(201, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n\n URI headerLocation = response.getLocation();\n Pattern pattern = Pattern.compile(\".*/mo/([0-9]+)\");\n Matcher matcher = pattern.matcher(headerLocation.toString());\n assertEquals(true, matcher.matches());\n String expectedId = matcher.group(1);\n assertEquals(getAPIURL() + \"/mo/\" + expectedId, headerLocation.toString());\n\n List<WorkflowEntitySummary> macroOpList = Facade.listAllMacroOp();\n assertEquals(2, macroOpList.size());\n\n Response response2 = callAPI(VERB.GET, \"/mo/\" + expectedId, mo);\n assertEquals(200, response2.getStatus());\n\n }", "@BeforeClass\n public static void setUpClass() throws Exception {\n if (!RunningOnGithubAction.isRunningOnGithubAction()) {\n Connection connection = getSnowflakeAdminConnection();\n connection\n .createStatement()\n .execute(\n \"alter system set\"\n + \" master_token_validity=60\"\n + \",session_token_validity=20\"\n + \",SESSION_RECORD_ACCESS_INTERVAL_SECS=1\");\n connection.close();\n }\n }", "@Test\n public void testCommitsApiWithSpecificCommit() throws Exception\n {\n \n \n RequestBuilder builder = new RequestBuilder(\"GET\");\n Request request = builder.setUrl(\n UriTemplate.fromTemplate(BASE)\n .append(PATH_EXPRESSION)\n .set(\"user\", \"damnhandy\")\n .set(\"repo\", \"Handy-URI-Templates\")\n .set(\"function\",\"commits\")\n .set(\"id\",\"7cdf7ff75f8ede138228ceff7f5a1c18a5835b94\")\n .expand()).build();\n Assert.assertEquals(\"https://api.github.com/repos/damnhandy/Handy-URI-Templates/commits/7cdf7ff75f8ede138228ceff7f5a1c18a5835b94\", request.getUrl());\n executeRequest(createClient(), request);\n }", "@Test\n public void aHashtagShouldBeAbleToBeCreatedWithAName()\n {\n Hashtag tag = new Hashtag(\"Amazing\");\n assertNotNull(tag);\n }", "@Test\n void retrieveDataFromGitHub() {\n g.retrieveDataFromGitHub();\n GitHubSearchResponse r = g.getResponse();\n assertNotNull(r.getItems(), \"Results cannot be null\");\n assertEquals(r.getTotalCount(), r.getItems().size(),\n \"Unequal total results count and actual number of results\");\n }", "@Test\n\tpublic void testCreateTicketFail() {\n\t}", "@Test\n public void testStoringRepos() throws IOException, DuplicateRepoNameException, RepositoryNotFoundException {\n ConfigDatabase.instance().addRepo(testRepo1);\n ConfigDatabase.instance().addRepo(testRepo2);\n assertEquals(testRepo1.getCRSID(),\n ConfigDatabase.instance().getRepoByName(\"test-repo-name1\").getCRSID());\n assertEquals(testRepo2.getCRSID(),\n ConfigDatabase.instance().getRepoByName(\"test-repo-name2\").getCRSID());\n assertNotEquals(ConfigDatabase.instance().getRepoByName(\"test-repo-name1\").getCRSID(),\n ConfigDatabase.instance().getRepoByName(\"test-repo-name2\").getCRSID());\n }", "@Test\n public void destiny2PullFromPostmasterTest() {\n InlineResponse20019 response = api.destiny2PullFromPostmaster();\n\n // TODO: test validations\n }", "@Test\n public void getProjectTest() throws Exception {\n httpclient = HttpClients.createDefault();\n //set up user\n deleteUsers();\n\n String userId = createTestUser();\n\n //deleteProjects(userId);//all projects have already been deleted by server since deleteUsers();\n\n try {\n CloseableHttpResponse response = createProject(\"testProjectName\", userId);\n String id = getIdFromResponse(response);\n // EntityUtils.consume(response.getEntity());\n response.close();\n\n response = getProject(userId, id);\n\n int status = response.getStatusLine().getStatusCode();\n HttpEntity entity;\n String strResponse;\n if (status == 200) {\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n String expectedJson = \"{\\\"id\\\":\" + id + \",\\\"projectname\\\":\\\"testProjectName\\\",\\\"userId\\\":\" + userId + \"}\";\n\t JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n // 400 bad request\n response = getProject(userId + \"abc\", id);\n status = response.getStatusLine().getStatusCode();\n Assert.assertEquals(400, status);\n EntityUtils.consume(response.getEntity());\n response.close();\n // 404 User not found\n response = getProject(userId + \"666\", id);\n status = response.getStatusLine().getStatusCode();\n Assert.assertEquals(404, status);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n } finally {\n httpclient.close();\n }\n }", "@Test\n public void testGetRepos() throws Exception\n {\n String userName = \"ahmed-fathy-aly\";\n List<Repo> repoList = gitHubAPIService.getRepos(userName);\n\n assertNotNull(repoList);\n assertTrue(repoList.size() > 0);\n for (Repo repo : repoList)\n {\n assertNotNull(repo.getName());\n assertNotNull(repo.getId());\n }\n }", "@Test\n\tpublic void test04_CreateNewPageUsingExistingTemplate() {\n\t\tinfo(\"Test 4: Create new page using existing template\");\n\t\tString template1 = wTempData.getWikiTemplate(0);\n\t\tString title1 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template1);\n\t\tString template2 = wTempData.getWikiTemplate(1);\n\t\tString title2 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template2);\n\t\tString template3 = wTempData.getWikiTemplate(2);\n\t\tString title3 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template3);\n\t\tString template4 = wTempData.getWikiTemplate(3);\n\t\tString title4 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template4);\n\t\tString template5 = wTempData.getWikiTemplate(4);\n\t\tString title5 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template5);\n\t\t\n\t\t/*Step Number: 1\n\t\t*Step Name: Step 1: Open form to create new page\n\t\t*Step Description: \n\t\t\t- Choose path to add new page\n\t\t\t- Click [Add Page] --> [From Template...]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\t- By default, the [Create Wiki page] is displayed in the [Rich Text] mode */\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t \n\t /*Step Number: 2\n\t\t*Step Name: Step 2: Create new page with Two Column layout\n\t\t*Step Description: \n\t\t\t- Choose template [Two Column layout] in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with two column layout*/\n\t\twikiMg.addSimpleWikiPageByTemplate(template1,title1);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title1);\n\t\tarrayPage.add(title1);\n\t \n\t\t /*Step Number: 3\n\t\t*Step Name: Step 3: Create new page with Three Column layout\n\t\t*Step Description: \n\t\t\t- Choose template [Three Column layout] in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like.\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with three column layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template2,title2);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title2);\n\t\tarrayPage.add(title2);\n\t\t\n\t\t /*Step Number: 4\n\t\t*Step Name: Step 4: Create new page with Status Meeting layout\n\t\t*Step Description: \n\t\t\t- Choose template \"Status Meeting\" in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like.\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with Status Meeting layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template3,title3);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title3);\n\t\tarrayPage.add(title3);\n\t\t\n\t\t /*Step Number: 5\n\t\t*Step Name: Step 5: Create new page with HOW-TO Guide layout\n\t\t*Step Description: \n\t\t\t- Choose template [HOW-TO Guide] layout in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with HOW-TO Guide layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template4,title4);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title4);\n\t\tarrayPage.add(title4);\n\t\t\n\t\t/*Step Number: 6\n\t\t*Step Name: Step 6: Create new page with Leave Planning layout\n\t\t*Step Description: \n\t\t\t- Choose template [Leave Planning] layout in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with Leave Planning layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template5,title5);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title5);\n\t\tarrayPage.add(title5);\n \t}", "public void testAddEntry(){\n }", "@Test\n public void lastUpdateTest() {\n // TODO: test lastUpdate\n }", "@Test\n\t\tpublic void createTweet() {\n\t\t\t\n\t\t\tRestAssured.baseURI=\"https://api.twitter.com/1.1/statuses\";\n\t\t\tResponse res=given().auth().oauth(ConsumerKey,ConsumerSecret,Token,TokenSecret).\n\t\t\tqueryParam(\"status\",\"I am learning API testing using RestAssured Java #Qualitest\").\n\t\t\twhen().post(\"/update.json\").then().extract().response();\n\t\t\t\n\t\t\tString responseString=res.asString();\n\t\t\t//System.out.println(responseString);\n\t\t\tlog.info(responseString);\n\t\t \n\t\t\tJsonPath js=new JsonPath(responseString);\n\t\t\tString id=js.get(\"id\").toString();\n\t\t\tlog.info(id);\n\t\t\tString text=js.get(\"text\").toString();\n\t\t\tlog.info(text);\n\t\t \n\t\t\t\n//\t\t\tString responseString=res.asString();\n//\t\t\tlog.info(responseString);\n//\t\t \n//\t\t\tJsonPath js=new JsonPath(responseString);\n//\t\t\tString id=js.get(\"id\").toString();\n//\t\t\tlog.info(id);\n//\t\t\tString text=js.get(\"text\").toString();\n//\t\t\tlog.info(text);\n//\t\t \n\t\t}", "@Test\n public void TestCreateDog() {\n String expectedName = \"Tyro\";\n Date expectedBirthDate = new Date();\n\n Dog newDog = AnimalFactory.createDog(expectedName, expectedBirthDate);\n\n Assert.assertEquals(expectedName, newDog.getName());\n Assert.assertEquals(expectedBirthDate, newDog.getBirthDate());\n }", "@Test\n public void testDAM30102001() {\n\n // データ初期化\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n // Connect to DB and fetch the Todo list\n TodoListPage todoListPage = dam3IndexPage.dam30102001Click();\n\n // Open todo registration page\n TodoRegisterPage registerTodoPage = todoListPage.registerTodo();\n\n // input todo details\n registerTodoPage.setTodoId(\"0000000030\");\n registerTodoPage.setTodoCategory(\"CA2\");\n registerTodoPage.setTodoTitle(\"Todo 30\");\n\n TodoDetailsPage todoDetailsPage = registerTodoPage.addTodo();\n\n // assert all the properties of fetched record.\n assertThat(todoDetailsPage.getTodoTitle(), equalTo(\"Todo 30\"));\n assertThat(todoDetailsPage.getTodoID(), equalTo(\"0000000030\"));\n assertThat(todoDetailsPage.getTodoCategory(), equalTo(\"CA2\"));\n assertThat(todoDetailsPage.getTodoStatus(), equalTo(\"In-Complete\"));\n assertThat(todoDetailsPage.getTodoCreatedDate(), equalTo(\"2016/12/28\"));\n assertThat(todoDetailsPage.getTodoVersion(), equalTo(\"0\"));\n\n }", "@Test\n public void package3PicTest() {\n // TODO: test package3Pic\n }", "@Test\n\tpublic void testVersionCheck() throws Exception{\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\" commit\");\n\t\tSystem.out.println(\"3rd commit\");\n\t\tSystem.out.println(\"final commit\");\n\t\tSystem.out.println(\"pull\");\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"This is commited by GitData\");\n\n\t}", "@Test\n public void testDAM30204001() {\n {\n clearAndCreateTestDataForBook();\n }\n\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n // Connect to DB and fetch the Todo list\n TodoListPage todoListPage = dam3IndexPage.dam30204001Click();\n\n TodoRegisterPage registerTodoPage = todoListPage.registerTodo();\n\n registerTodoPage.setTodoId(\"0000000030\");\n registerTodoPage.setTodoCategory(\"CA2\");\n\n TodoDetailsPage todoDetailsPage = registerTodoPage\n .addTodoWithNullTitle();\n // confirm that the ToDo registered with null title is saved in DB\n assertThat(todoDetailsPage.getTodoTitle(), equalTo(\"\"));\n assertThat(todoDetailsPage.getTodoID(), equalTo(\"0000000030\"));\n assertThat(todoDetailsPage.getTodoCategory(), equalTo(\"CA2\"));\n assertThat(todoDetailsPage.getTodoStatus(), equalTo(\"In-Complete\"));\n assertThat(todoDetailsPage.getTodoCreatedDate(), equalTo(\"2016/12/28\"));\n assertThat(todoDetailsPage.getTodoVersion(), equalTo(\"0\"));\n }", "@Test\n \tpublic void testCreateMindProject() throws Exception {\n \t\tString name = \"Test\" ; //call a generator which compute a new name\n \t\tGTMenu.clickItem(\"File\", \"New\", FRACTAL_MIND_PROJECT);\n \t\tGTShell shell = new GTShell(Messages.MindProjectWizard_window_title);\n \t\t//shell.findTree().selectNode(\"Mind\",FRACTAL_MIND_PROJECT);\n \t\t//shell.findButton(\"Next >\").click();\n \t\tshell.findTextWithLabel(\"Project name:\").typeText(name);\n \t\tshell.close();\n \t\t\n \t\tTestMindProject.assertMindProject(name);\t\t\n \t}", "@Test(expected = RuntimeException.class)\r\n \tpublic void testCommit() throws ESException {\n \t\tlocalProject.commit();\r\n \t\tfail(\"Should not be able to commit an unshared Project!\");\r\n \t}", "public static void main(String[] args) {\n\t\tPull_request0731 pr = new Pull_request0731();\n\t\tpr.getNewPull_request(pr.pull_request_history_openFile);\n\t}", "@Test\n public void testCanReadGitRevision() throws Exception {\n MatcherAssert.assertThat(\n new TestJenkins().jobs().findByName(\n \"test-parametrised-job\"\n ).next().builds().findByNumber(\"#4\").next().details().gitRevision(),\n new IsEqual<>(\"3d21ea7072da134395eedbc7a07bf0f00cfabf97\")\n );\n }", "@Test(expected = RepositoryNotFoundException.class)\n public void testNonExistingRepository() throws AuthorCommitsFailedException,\n IOException{\n EasyMock.expect(mockManager.openRepository(new Project.NameKey(\"abcdefg\")))\n .andReturn(\n RepositoryCache.open(FileKey.lenient(new File(\n \"../../review_site/git\", \"abcdefg.git\"), FS.DETECTED)));\n EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability);\n EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(true);\n replay(mockUser, mockCapability, mockManager);\n cmd_test.setCommits(new Project.NameKey(\"abcdefg\"), \"kee\");\n }", "public void testRegisterNewAuthor() {\r\n //given\r\n /*System.out.println(\"registerNewAuthor\"); \r\n String name = \"James Fenimore\";\r\n String surname = \"Cooper\";\r\n int birthYear = 1789;\r\n int deathYear = 1851;\r\n String shortDescription = \"One of the most popular american novelists\";\r\n String referencePage = \"http://en.wikipedia.org/wiki/James_Fenimore_Cooper\";\r\n AuthorHibernateDao instance = new AuthorHibernateDao();\r\n boolean expResult = true;\r\n \r\n //when\r\n boolean result = instance.registerNewAuthor(name, surname, birthYear, deathYear, shortDescription, referencePage);\r\n \r\n //then\r\n assertEquals(expResult, result);*/ \r\n }", "@Test\n public void shouldBeZeroForTolkienAuthor() {\n\n }", "@Test(enabled = true)\n public void createPerson() {\n List <Account> accounts = new ArrayList<>();\n List<Subscription> sub = new ArrayList<>();\n \n Contact contact = new Contact.Builder().emailaddress(\"[email protected]\").phoneNumber(\"021345685\").build();\n Address address = new Address.Builder().location(\"Daveyton\").streetName(\"Phaswane Street\").houseNumber(45).build();\n \n repo = ctx.getBean(PersonsRepository.class);\n Person p = new Person.Builder()\n .firstname(\"Nobu\")\n .lastname(\"Tyokz\")\n .age(25)\n .account(accounts)\n .sub(sub)\n .contact(contact)\n .address(address)\n .build();\n repo.save(p);\n id = p.getId();\n Assert.assertNotNull(p);\n\n }", "@Test\n public void testDAM30102002() {\n\n // データ初期化\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n // Connect to DB and fetch the Todo list\n TodoListPage todoListPage = dam3IndexPage.dam30102002Click();\n\n // Open todo registration page\n TodoRegisterPage registerTodoPage = todoListPage.registerTodo();\n\n // input todo details\n registerTodoPage.setTodoId(\"0000000031\");\n registerTodoPage.setTodoCategory(\"CA2\");\n registerTodoPage.setTodoTitle(\"Todo 31\");\n\n // Register the todo\n SystemErrorPage sysErrorPage = registerTodoPage.registForRollback();\n\n // Assertion for record earlier registered in DB.\n assertThat(sysErrorPage.getErrorMessage(), is(\"Intentional RollBack\"));\n\n webDriverOperations.displayPage(getPackageRootUrl());\n\n dam3IndexPage = new DAM3IndexPage(driver);\n\n todoListPage = dam3IndexPage.dam30102002Click();\n\n boolean insertTodoDetailLink = todoListPage.isTodoDisplayed(\n \"0000000031\");\n\n // Due to RollBack during registration Process, No link will be\n // available for the tdo.\n assertThat(insertTodoDetailLink, is(false));\n }", "@Test\n public void createThingByTopButton() {\n int before = mainPage.countThings();\n // create a new thing\n mainPage.newThingByTop();\n // count things after creation\n int after = mainPage.countThings();\n\n Assert.assertTrue(mainPage.isNewThingCreated(before, after), \"Thing was not created!\");\n }", "@Test\r\n public void testGetUserHistory() {\r\n }", "@Test\n public void testDAM30903001() {\n testDAM30802001();\n }", "@Test\n public void test0() throws Throwable {\n Revision revision0 = new Revision();\n String string0 = revision0.toString();\n assertEquals(\"Unknown\", string0);\n }", "@Test\r\n\tpublic void testAddContributorTwice() {\r\n\t\tcm = Contributormanager.getInstance();\r\n\t\tassertTrue(cm.isEmpty());\r\n\t\tassertTrue(cm.addContributor(\"Chris\"));\r\n\t\tassertTrue(cm.addContributor(\"Anna\"));\r\n\t\tassertTrue(cm.addContributor(\"Max\"));\r\n\t\tassertFalse(cm.addContributor(\"Max\"));\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"Submitted Fourth project -branch 2 shelve\");\r\n\t}", "@Test\n public void testDAM30402001() {\n testDAM30101001();\n }", "@Test\r\n\tpublic void testAddContributor() {\r\n\t\tcm = Contributormanager.getInstance();\r\n\t\tassertTrue(cm.isEmpty());\r\n\t\tassertTrue(cm.addContributor(\"Chris\"));\r\n\t\tassertFalse(cm.isEmpty());\r\n\t\tassertFalse(cm.addContributor(\"Chris\"));\r\n\t}", "public PersonsRepositoryTest() {\n }", "private test5() {\r\n\t\r\n\t}", "@Test\n public void oncoTreeVersionTest() {\n // TODO: test oncoTreeVersion\n }", "@Test\r\n public void test() {\r\n Owner owner = new Owner();\r\n owner.setOauthToken(\"CAACEdEose0cBAMCKHcqSEOcS5O40e4co26HaL6YyEtM7PZAUlPSSDbIca80wF2w3G9B43ZCAx8vojAQKfeyk8ZAapSjv5ala0FPAawudbeNPpFMgyGCDmR0bEhNUuj9gbRjKHQqvVt28DUegx6uAVtMy5PYGhoFSYHstHBtt8Hby7wp2cIczDeZAiuoKe0L6qbGJnFRHqzO87pyZBEhPDpbAZBWjrtCyQZD\");\r\n owner.setFacebookID(\"1492826064306740\");\r\n\r\n MonitorRunner runner = new MonitorRunner(owner);\r\n //runner.run();\r\n }", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }", "@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }", "@Test(enabled = true)\n public String createIssue() throws Exception {\n JSONParser parser = new JSONParser();\n Object obj = parser.parse(new FileReader(JSON_FILE_2));\n JSONObject jsonObject = (JSONObject) obj;\n\n Response res =\n given().\n header(\"Cookie\",\"JSESSIONID=\"+createSession()).and().\n header(\"Content-Type\",\"application/json\").\n body(jsonObject.toJSONString()).\n when().\n post(\"/rest/api/2/issue\").\n then().\n statusCode(201).log().all().extract().response();\n\n //extracting values from the RestAssured Response\n JsonPath jp = res.jsonPath();\n String issueID = jp.get(\"id\");\n System.out.println(\"New Issue ID:\" +issueID);//10005\n return issueID;\n }" ]
[ "0.7706889", "0.60833806", "0.60202557", "0.59826475", "0.58978575", "0.58572614", "0.5782364", "0.5727749", "0.57275623", "0.57058126", "0.56743675", "0.5673115", "0.56724113", "0.5645737", "0.56357545", "0.55931795", "0.558891", "0.55675864", "0.55628103", "0.5558164", "0.5546696", "0.55360496", "0.552945", "0.55287784", "0.5519978", "0.55019903", "0.54935426", "0.5492735", "0.54830325", "0.5482072", "0.54797965", "0.5451224", "0.5448091", "0.5442139", "0.544114", "0.54409164", "0.5404052", "0.5392452", "0.5392321", "0.53917736", "0.5388649", "0.538507", "0.5376632", "0.5375532", "0.5375143", "0.5372802", "0.53714937", "0.53714395", "0.5365189", "0.53626883", "0.5359042", "0.53542", "0.53448737", "0.53448313", "0.5333339", "0.53329754", "0.53306645", "0.531864", "0.53068876", "0.52988315", "0.5297065", "0.5295194", "0.5292967", "0.5280348", "0.52790743", "0.5278942", "0.52773786", "0.5272559", "0.5272337", "0.5270513", "0.52702814", "0.5266123", "0.52659076", "0.5263936", "0.5261055", "0.5260364", "0.52595305", "0.5258265", "0.52570397", "0.5249955", "0.523097", "0.5227879", "0.52248687", "0.5222769", "0.5221752", "0.5221298", "0.52184814", "0.5217138", "0.5205582", "0.5203545", "0.520099", "0.519755", "0.51918566", "0.5190795", "0.51901144", "0.518885", "0.5185805", "0.51855457", "0.5180089", "0.517611", "0.5170609" ]
0.0
-1
below methods are to retrieve prices with all the time
@Transactional(readOnly = true) @Query(value = "SELECT s FROM StockPrice s where stockCd=:stockCd and curTime in (select lastDay from BFWeekDay bfw) order by s.curTime") public List<StockPrice> findWeekByStockCd(@Param("stockCd") String stockCd);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<SpotPrice> getAll();", "List<PriceInformation> getPriceForProduct(ProductModel product);", "Price[] getTradePrices();", "public static String[] getItemPrice(String type, String entity, String item, String uom, String curr) {\n\r\n String[] TypeAndPrice = new String[2]; \r\n String Type = \"none\";\r\n String price = \"0\";\r\n String pricecode = \"\";\r\n\r\n try{\r\n Connection con = null;\r\n if (ds != null) {\r\n con = ds.getConnection();\r\n } else {\r\n con = DriverManager.getConnection(url + db, user, pass); \r\n }\r\n Statement st = con.createStatement();\r\n ResultSet res = null;\r\n try{\r\n \r\n // customer based pricing\r\n if (type.equals(\"c\")) {\r\n res = st.executeQuery(\"select cm_price_code from cm_mstr where cm_code = \" + \"'\" + entity + \"'\" + \";\");\r\n while (res.next()) {\r\n pricecode = res.getString(\"cm_price_code\");\r\n } \r\n // if there is no pricecode....it defaults to billto\r\n if (! pricecode.isEmpty()) {\r\n entity = pricecode;\r\n }\r\n\r\n res = st.executeQuery(\"select cpr_price from cpr_mstr where cpr_cust = \" + \"'\" + entity + \"'\" + \r\n \" AND cpr_item = \" + \"'\" + item + \"'\" +\r\n \" AND cpr_uom = \" + \"'\" + uom + \"'\" +\r\n \" AND cpr_curr = \" + \"'\" + curr + \"'\" +\r\n \" AND cpr_type = 'LIST' \"+ \";\");\r\n while (res.next()) {\r\n price = res.getString(\"cpr_price\").replace('.', defaultDecimalSeparator);\r\n Type = \"cust\";\r\n\r\n }\r\n }\r\n\r\n // vendor based pricing\r\n if (type.equals(\"v\")) {\r\n res = st.executeQuery(\"select vd_price_code from vd_mstr where vd_addr = \" + \"'\" + entity + \"'\" + \";\");\r\n while (res.next()) {\r\n pricecode = res.getString(\"vd_price_code\");\r\n } \r\n // if there is no pricecode....it defaults to billto\r\n if (! pricecode.isEmpty()) {\r\n entity = pricecode;\r\n }\r\n\r\n res = st.executeQuery(\"select vpr_price from vpr_mstr where vpr_vend = \" + \"'\" + entity + \"'\" + \r\n \" AND vpr_item = \" + \"'\" + item + \"'\" +\r\n \" AND vpr_uom = \" + \"'\" + uom + \"'\" +\r\n \" AND vpr_curr = \" + \"'\" + curr + \"'\" + \r\n \" AND vpr_type = 'LIST' \"+ \";\");\r\n while (res.next()) {\r\n price = res.getString(\"vpr_price\").replace('.', defaultDecimalSeparator);\r\n Type = \"vend\";\r\n\r\n }\r\n }\r\n\r\n\r\n // if there is no customer specific price...then pull price from item master it_sell_price\r\n if ( price.equals(\"0\") ) {\r\n if (type.equals(\"c\")) { \r\n res = st.executeQuery(\"select it_sell_price as itemprice from item_mstr where it_item = \" + \"'\" + item + \"'\" + \";\");\r\n } else {\r\n res = st.executeQuery(\"select it_pur_price as itemprice from item_mstr where it_item = \" + \"'\" + item + \"'\" + \";\"); \r\n }\r\n while (res.next()) {\r\n price = res.getString(\"itemprice\").replace('.', defaultDecimalSeparator); \r\n Type = \"item\";\r\n }\r\n }\r\n\r\n TypeAndPrice[0] = Type;\r\n TypeAndPrice[1] = String.valueOf(price);\r\n\r\n }\r\n catch (SQLException s){\r\n MainFrame.bslog(s);\r\n } finally {\r\n if (res != null) {\r\n res.close();\r\n }\r\n if (st != null) {\r\n st.close();\r\n }\r\n con.close();\r\n }\r\n }\r\n catch (Exception e){\r\n MainFrame.bslog(e);\r\n }\r\n return TypeAndPrice;\r\n\r\n }", "public List prices() {\n List ls = new ArrayList();\n try {\n\n Connection connection = DBUtil.getConnection();\n //PreparedStatement pst = connection.prepareStatement(\"select PriceId,VegetableId,GovernmentPrice,FarmerPrice,WholeSellerPrice,\"\n // + \"RetailerPrice from PriceDetails\");\n /*PreparedStatement pst = connection.prepareStatement(\"SELECT PriceDetails.PriceId,VegetableDetails.VegetableName,PriceDetails.GovernmentPrice,\"\n + \"PriceDetails.FarmerPrice,PriceDetails.WholeSellerPrice,PriceDetails.RetailerPrice\"\n + \" from PriceDetails INNER JOIN VegetableDetails \"\n + \"ON PriceDetails.VegetableId = VegetableDetails.VegetableId\");\n */\n\n PreparedStatement pst = connection.prepareStatement(\"select PriceDetails.PriceId,VegetableDetails.VegetableName,\"\n + \"PriceDetails.GovernmentPrice,PriceDetails.FarmerPrice,PriceDetails.WholeSellerPrice,\"\n + \"PriceDetails.RetailerPrice from PriceDetails INNER JOIN VegetableDetails ON PriceDetails.VegetableId = \"\n + \"VegetableDetails.VegetableId\");\n\n ResultSet rs = pst.executeQuery();\n while (rs.next()) {\n ViewPricesBean vpb = new ViewPricesBean();\n\n vpb.setPriceId(rs.getInt(1));\n vpb.setVegetableName(rs.getString(2));\n // vpb.setRegionName(rs.getString(3));\n vpb.setGovernmentPrice(rs.getFloat(3));\n vpb.setFarmerPrice(rs.getFloat(4));\n vpb.setWholeSellerPrice(rs.getFloat(5));\n vpb.setRetailerPrice(rs.getFloat(6));\n\n\n ls.add(vpb);\n\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return ls;\n\n }", "List<PriceRow> getPriceInformationsForProduct(ProductModel model);", "public ArrayList<Double> GetPrices()\r\n\t{\r\n\t\treturn dayStockPrices;\r\n\t}", "List<Price> findAll();", "double getPrice();", "double getPrice();", "double getPrice();", "public float getPrices(Integer id);", "public static Map<String,String> getPrice() throws MalformedURLException, IOException {\n Map<String,String>priceMap = new HashMap();\n String price;\n URL url = new URL(\"https://api.independentreserve.com/Public/GetMarketSummary?primaryCurrencyCode=xbt&secondaryCurrencyCode=aud\");\n try (InputStream is = url.openStream();\n JsonParser parser = Json.createParser(is)) {\n while (parser.hasNext()) {\n JsonParser.Event e = parser.next();\n if (e == JsonParser.Event.KEY_NAME) {\n switch (parser.getString()) {\n case \"DayHighestPrice\":\n parser.next();\n price=parser.getString();\n priceMap.put(\"DayHighestPrice\",price);\n break;\n case \"DayLowestPrice\":\n parser.next();\n System.out.print(\"DayLowestPrice: \");\n price=parser.getString();\n System.out.println(price);\n System.out.println(\"---------\");\n priceMap.put(\"DayLowestPrice\", price);\n break;\n case \"CurrentLowestOfferPrice\":\n parser.next();\n System.out.print(\"CurrentLowestOfferPrice: \");\n price=parser.getString();\n System.out.println(price);\n System.out.println(\"---------\");\n priceMap.put(\"CurrentLowestOfferPrice\", price);\n break;\n case \"CurrentHighestBidPrice\":\n parser.next();\n price=parser.getString();\n System.out.print(\"CurrentHighestBidPrice: \");\n System.out.println(price);\n priceMap.put(\"CurrentHighestBidPrice\", price);\n break;\n case \"LastPrice\":\n parser.next();\n System.out.print(\"LastPrice: \");\n price=parser.getString();\n System.out.println(price);\n System.out.println(\"---------\");\n priceMap.put(\"LastPrice\", price);\n break;\n }\n }\n }\n }\n \n return priceMap; \n}", "public BigDecimal getPriceList();", "Price getPrice() throws Exception;", "@Override\r\n\tpublic List<ProductRaw_Price> getPrices(PageRequest pageable) {\n\t\treturn productRaw_PriceDao.getProductRawPrices(pageable);\r\n\t}", "String getPrice();", "List<SpotPrice> getAll(Integer pageNumber, Integer pageSize);", "long getPrice();", "Price getTradePrice();", "public Double getPrice();", "public double getPrice();", "abstract public double getPrice();", "@Override\r\n\tpublic List<Price> queryPriceBei(Date start,Date end) {\n\t\tList<Price> list = homePageDao.queryPriceBei(start,end);\r\n\t\treturn list;\r\n\t}", "@GET\n @Path(\"quotes/{ticker}\")\n @Produces(MediaType.APPLICATION_JSON)\n public Quotes getPrice(@PathParam(\"ticker\") String ticker) {\n \tString url = \"http://download.finance.yahoo.com/d/quotes.csv?s=\"+ticker+\"&f=l1&e=.csv\";\n \t\t\t//\"http://www.google.com/finance/option_chain?q=ebay&output=json\";\n \tStringBuilder str = new StringBuilder();\n \tQuotes quotes = new Quotes();\n\t\t\n \t try {\n \t\t \tHttpClient httpClient = HttpClientBuilder.create().build();\n \t\t\tHttpGet getRequest = new HttpGet(url);\n \t\t\tHttpResponse response = httpClient.execute(getRequest);\n \t\t\tif (response.getStatusLine().getStatusCode() != 200) {\n \t\t\t\tthrow new RuntimeException(\"Failed : HTTP error code : \"\n \t\t\t\t + response.getStatusLine().getStatusCode());\n \t\t\t}\n \t\t\tBufferedReader br = new BufferedReader(\n \t new InputStreamReader((response.getEntity().getContent())));\n \t\t\tString output = null;\n \t\t\twhile ((output = br.readLine()) != null) {\n \t\t\t\tstr.append(output);\n \t\t\t}\n \t\t\tquotes.setPrice(str.toString());\n\t\t } catch (ClientProtocolException e) {\n\t\t\te.printStackTrace();\n\t\t } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t }\n \t return quotes;\n }", "public static List getAllPrices() {\n List polovniautomobili = new ArrayList<>();\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT cena FROM polovni\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ResultSet result = ps.executeQuery();\n while (result.next()) {\n int naziv = result.getInt(\"cena\");\n polovniautomobili.add(naziv);\n\n }\n\n ps.close();\n CONNECTION.close();\n }\n CONNECTION.close();\n } catch (SQLException ex) {\n Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);\n }\n return polovniautomobili;\n }", "public static Vector<Company> getAllPrices(){\n\t\treturn all_prices;\n\t}", "void all_Data_retrieve_Price_Desc() {\n\t\t\tStatement stm=null;\n\t\t\tResultSet rs=null;\n\t\t\ttry{\n\t\t\t\t//Retrieve tuples by executing SQL command\n\t\t\t stm=con.createStatement();\n\t\t String sql=\"select * from \"+tableName+\" order by Price desc\";\n\t\t\t rs=stm.executeQuery(sql);\n\t\t\t DataGUI.model.setRowCount(0);\n\t\t\t //Add rows to table model\n\t\t\t while (rs.next()) {\n\t Vector<Object> newRow = new Vector<Object>();\n\t //Add cells to each row\n\t for (int i = 1; i <=colNum; i++) \n\t newRow.addElement(rs.getObject(i));\n\t DataGUI.model.addRow(newRow);\n\t }//end of while\n\t\t\t //Catch SQL exception\n\t }catch (SQLException e ) {\n\t \te.printStackTrace();\n\t\t } finally {\n\t\t \ttry{\n\t\t if (stm != null) stm.close(); \n\t\t }\n\t\t \tcatch (SQLException e ) {\n\t\t \t\te.printStackTrace();\n\t\t\t }\n\t\t }\n\t\t}", "public BigDecimal getPriceListOld();", "TickerPrice getPrice(String symbol);", "java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> \n getPriceList();", "public Date getPrice() {\n return price;\n }", "List<ItemPriceDTO> findAll();", "@Override\r\n\tpublic List<ProductRaw_Price> findprices(String text, PageRequest pageable) {\n\t\treturn productRaw_PriceDao.findProductRawPrices(text, pageable);\r\n\t}", "public ArrayList getDataforVol_EurGbp(String date1){\n \n //Date date;\n List stPrices = new ArrayList();\n String sqlQuery = \"SELECT close_price FROM eur_gbp\"\n + \"WHERE day_date <'\"+ date1 +\"' AND \"\n + \"day_date >= DATE_SUB('\" +date1 +\"',INTERVAL 30 DAY);\";\n try {\n rs = dbCon.getData(sqlQuery);\n \n while (rs.next()) {\n stPrices.add(rs.getString(\"close_price\"));\n } \n } catch(SQLException e){} \n return (ArrayList) stPrices; \n }", "private static void findPrice(){\n Document document;\n String newURL = getLink(broadWebsite)[0];\n\n try{\n document = Jsoup.connect(website +newURL).userAgent(USER_AGENT).get();\n }\n catch(IOException e){\n return;\n }\n System.out.println(\"hi\");\n //System.out.println(link);\n Elements elements = document.getElementsByClass(\"vehicle-info__price-display\");\n\n // for(Element e : elements){\n // System.out.println(e);\n // for(DataNode node : e.dataNodes()){\n // //If the key does not exist, then create a new one and add value to it\n // if(map.get(link) == null){\n // map.put(link, new ArrayList<String>());\n // map.get(link).add(\"Price: \"+ node.attr(\"price\")+\"\\n\");\n // }\n // //If it is there already, then just add\n // else{\n // map.get(link).add(\"Price: \"+ node.attr(\"price\")+\"\\n\");\n // }\n // }\n\n // }\n\n for(Element e : elements){\n System.out.println(e);\n System.out.println(\"---\");\n }\n }", "List<List<Order>> getAllOrdersByPrice() throws OrderBookOrderException;", "public double getPrice()\r\n {\r\n return price;\r\n }", "protected int queryPrice(int id, String key) {\n Trace.info(\"RM::queryCarsPrice(\" + id + \", \" + key + \") called\" );\n ReservableItem curObj = (ReservableItem) readData( id, key);\n int value = 0; \n if ( curObj != null ) {\n value = curObj.getPrice();\n } // else\n Trace.info(\"RM::queryCarsPrice(\" + id + \", \" + key + \") returns cost=$\" + value );\n return value; \n }", "public Double getPrice() {\r\n return price;\r\n }", "public double getPrice()\n {\n return price;\n }", "double calculatePrice();", "public double getPrice()\n {\n \treturn price;\n }", "public ReservedInstancePriceItem [] getPrices() {\n return this.Prices;\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "int getPrice();", "public double getPrice(){\r\n\t\treturn price;\r\n\t}", "public double getPrice() {\n return price;\n }", "public BigDecimal\tgetPrice();", "public Items[] findWherePriceEquals(double price) throws ItemsDaoException;", "public double getPrice(){return price;}", "public BigDecimal getPriceListEntered();", "public ArrayList getPrice() {\n return priceArray;\n }", "public Map<Number, Double> getTodayPrice(Number stockID, Number stDate, Number enDate) {\n Map<Number, Double> m = new HashMap<Number, Double>();\n //get VO instance\n TestStockPricesVOImpl tspVO = getTestStockPricesVO();\n\n //get VC instance\n ViewCriteria vc =\n tspVO.getViewCriteria(\"GetStockPricesInGivenDateRangeCriteria\");\n vc.resetCriteria();\n\n //set All the bind parameters\n tspVO.setBindStockID(stockID);\n tspVO.setBindStartDate(stDate);\n tspVO.setBindEndDate(enDate);\n \n //apply the view criteria\n tspVO.applyViewCriteria(vc);\n \n //execute the view Object programatically\n tspVO.executeQuery();\n System.out.print(\"Row count: \");\n System.out.println(tspVO.getRowCount());\n\n //Iterate through the results\n RowSetIterator it = tspVO.createRowSetIterator(null);\n while (it.hasNext()) {\n TestStockPricesVORowImpl newRow = (TestStockPricesVORowImpl)it.next();\n Number timetracked = newRow.getTimetracked();\n Number price = newRow.getPrice();\n \n m.put(timetracked, price.doubleValue());\n }\n it.closeRowSetIterator();\n return m;\n }", "public Double getPrice() {\n return price;\n }", "public Double getPrice() {\n return price;\n }", "void all_Data_retrieve_Price_Asc() {\n\t\t\tStatement stm=null;\n\t\t\tResultSet rs=null;\n\t\t\ttry{\n\t\t\t\t//Retrieve tuples by executing SQL command\n\t\t\t stm=con.createStatement();\n\t\t String sql=\"select * from \"+tableName+\" order by Price asc\";\n\t\t\t rs=stm.executeQuery(sql);\n\t\t\t DataGUI.model.setRowCount(0);\n\t\t\t //Add rows to table model\n\t\t\t while (rs.next()) {\n\t Vector<Object> newRow = new Vector<Object>();\n\t //Add cells to each row\n\t for (int i = 1; i <=colNum; i++) \n\t newRow.addElement(rs.getObject(i));\n\t DataGUI.model.addRow(newRow);\n\t }//end of while\n\t\t\t //Catch SQL exception\n\t }catch (SQLException e ) {\n\t \te.printStackTrace();\n\t\t } finally {\n\t\t \ttry{\n\t\t if (stm != null) stm.close(); \n\t\t }\n\t\t \tcatch (SQLException e ) {\n\t\t \t\te.printStackTrace();\n\t\t\t }\n\t\t }\n\t}", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice()\r\n {\r\n return this.price;\r\n }", "List<SpotPrice> getByCommodityAndFromDateAndToDateAndLocation(\n Commodity commodity,\n Date fromDate,\n Date toDate,\n Location location\n );", "@Override\n public double getPrice(){\n \n return currentPrice; \n }", "public double getPrice()\n {\n return this.price;\n }", "public double getPrice(){\n\t\treturn price;\n\t}", "public interface PricingService {\n\t\n\t/**\n\t * Get the Price information for the product\n\t *\n\t * @param product the ProductModel\n\t * l\n\t * @return list of PriceInformation for the corresponding product \n\t */\n\tList<PriceInformation> getPriceForProduct(ProductModel product);\n}", "public double price() {\n return price;\n }", "public List<Share> getPrices()\r\n\t{\r\n\t\treturn this.prices;\r\n\t}", "public int getPrice();", "BigDecimal getPrice();", "public float getPrice() \n {\n return price;\n }", "public static List<OptionPricing> getPriceHistory(Date startTradeDate, Date endTradeDate, Date expiration, double strike, String callPut) {\r\n\t\t\r\n\t\tEntityManagerFactory emf = Persistence.createEntityManagerFactory(\"JPAOptionsTrader\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\t\r\n\t\t// Note: table name refers to the Entity Class and is case sensitive\r\n\t\t// field names are property names in the Entity Class\r\n\t\tQuery query = em.createQuery(\"select opt from \" + TradeProperties.SYMBOL_FOR_QUERY + \" opt where \"\r\n\t\t\t\t+ \"opt.trade_date >= :startTradeDate \" \r\n\t\t\t\t+ \"and opt.trade_date <= :endTradeDate \" \r\n\t\t\t\t+ \"and opt.expiration=:expiration \"\t\r\n\t\t\t\t+ \"and opt.call_put = :call_put \"\r\n\t\t\t\t+ \"and opt.strike = :strike \"\r\n\t\t\t\t+ \" order by opt.trade_date\");\r\n\t\t\r\n\t\tquery.setParameter(\"startTradeDate\", startTradeDate);\r\n\t\tquery.setParameter(\"endTradeDate\", endTradeDate);\r\n\t\tquery.setParameter(\"expiration\", expiration);\r\n\t\tquery.setParameter(\"call_put\", callPut);\r\n\t\tquery.setParameter(\"strike\", strike);\r\n\t\t\r\n\t\tquery.setHint(\"odb.read-only\", \"true\");\r\n\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<OptionPricing> options = query.getResultList();\r\n\t\t\r\n\t\tem.close();\r\n\t\t\r\n\t\treturn options;\r\n\t}", "public void testGetServiceByPrice() {\n System.out.println(\"getServiceByPrice\");\n EntityManager em = emf.createEntityManager();\n ServiceDaoImpl sdao = new ServiceDaoImpl(em);\n Service s = getService(\"expensive-one\", new Long(8475),\n // 7 hours\n new Duration(7 * 60 * 60 * 1000));\n\n em.getTransaction().begin();\n em.persist(s);\n em.getTransaction().commit();\n\n assertNotNull(sdao.getServiceByPrice(new Long(8475)).get(0));\n assertEquals(s, sdao.getServiceByPrice(new Long(8475)).get(0));\n }", "public Money getPrice() {\n return price;\n }", "CleanPrice getCleanPrice();", "private String marketPrices() {\r\n\t\tdouble[] prices=market.getPrices();\r\n\t\tString out = \"Prices Are: \";\r\n\t\tfor(int i=0; i<prices.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+String.format(\"%.2f\", prices[i])+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "protected float getPrice() {\n\t\t\treturn price;\n\t\t}", "public double getPotatoesPrice();", "public double getPrice() {\n return this.price;\n }", "@Override\r\n public ArrayList<CurrencyTuple> getSymbols() throws MalformedURLException, IOException{\r\n String symbolsUrl = \"https://api.binance.com/api/v1/ticker/24hr\";\r\n String charset = \"UTF-8\";\r\n String symbol = this.pair;\r\n URLConnection connection = new URL(symbolsUrl).openConnection();\r\n connection.setRequestProperty(\"Accept-Charset\", charset);\r\n InputStream stream = connection.getInputStream();\r\n ByteArrayOutputStream responseBody = new ByteArrayOutputStream();\r\n byte buffer[] = new byte[1024];\r\n int bytesRead = 0;\r\n while ((bytesRead = stream.read(buffer)) > 0) {\r\n responseBody.write(buffer, 0, bytesRead);\r\n }\r\n String responseString = responseBody.toString();\r\n int position = 0;\r\n ArrayList<CurrencyTuple> toReturn = new ArrayList<>();\r\n for (int i = 0; i < 100; i++){\r\n position = responseString.indexOf(\"symbol\", position + 6);\r\n String symbols = responseString.substring(position + 9, position + 15);\r\n String symbolOwned = symbols.substring(0, 3);\r\n String symbolNotOwned = symbols.substring(3, 6);\r\n if (responseString.substring(position+9, position + 16).contains(\"\\\"\")\r\n || responseString.substring(position+9, position + 16).contains(\"USD\")){\r\n if (symbolOwned.contains(\"USD\")) {\r\n symbolOwned = symbolOwned.concat(\"T\");\r\n }\r\n if (symbolNotOwned.contains(\"USD\")) {\r\n symbolOwned = symbolNotOwned.concat(\"T\");\r\n }\r\n Currency CurrencyOwned = new Currency(symbolOwned, 0.0);\r\n Currency CurrencyNotOwned = new Currency(symbolNotOwned, 0.0);\r\n CurrencyTuple tuple = new CurrencyTuple(CurrencyOwned, CurrencyNotOwned);\r\n System.out.println(CurrencyOwned.getName() + \" - \" + CurrencyNotOwned.getName());\r\n toReturn.add(tuple);\r\n }\r\n }\r\n return toReturn;\r\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public Long getPrice() {\n return price;\n }", "public List<Map<String, Object>> getStockPriceLow() throws SQLException;", "@Override\r\n\tpublic double getPrice() {\n\t\treturn price;\r\n\t}", "void loadCurrentPrices() {\n for(SecurityRow row : allSecurities) {\n row.updateCurrentPrice();\n }\n fireTableRowsUpdated(0, allSecurities.size()-1);\n }", "public double getPrice(){\n\t\treturn this.price;\n\t}", "com.felania.msldb.MsgPriceOuterClass.MsgPrice getPrice();", "public double getPrice(){\n\t\t\treturn price;\n\t\t}", "public void scanNameAndgetPriceValue(WebDriver driver){\n\t\tList<String> price;\n\t\t\t\n\t\t\n\t\tdo{\t\t\t\n\t\t\tList<WebElement>rows = driver.findElements(By.xpath(\"//td[1]\"));\n\t\t\tprice = rows.stream().filter(s -> s.getText().contains(\"Rice\")).map(s ->getPriceVegi(s)).collect(Collectors.toList());\n\t\t\tprice.stream().forEach(s -> System.out.println(s));\t\t\t\n\t\t\tif(price.size()<1){\n\t\t\t\tdriver.findElement(By.cssSelector(\"[aria-label='Next']\")).click();\n\t\t\t}\t\t\t\n\t\t}while(price.size()<1);\t\t\n\t}" ]
[ "0.7277533", "0.7252443", "0.7156731", "0.7074688", "0.6984907", "0.69261485", "0.6870187", "0.68462884", "0.6833076", "0.6833076", "0.6833076", "0.6808313", "0.68068796", "0.67865336", "0.6728266", "0.66835845", "0.66751677", "0.66725755", "0.66483843", "0.66195214", "0.661621", "0.6582219", "0.6541509", "0.65394163", "0.65225416", "0.652252", "0.6514966", "0.64949983", "0.6486118", "0.64452505", "0.64397454", "0.64170784", "0.6414176", "0.64007866", "0.63823676", "0.6374263", "0.6374017", "0.63623065", "0.6350186", "0.63183796", "0.63022023", "0.6291183", "0.6272398", "0.62691504", "0.62583995", "0.62583995", "0.62583995", "0.62583995", "0.62543315", "0.6253627", "0.6253616", "0.625119", "0.62490255", "0.6228905", "0.6227832", "0.62268746", "0.62173355", "0.6214205", "0.6214205", "0.6207211", "0.6206041", "0.6206041", "0.6206041", "0.6206041", "0.6206041", "0.6206041", "0.6206041", "0.6206041", "0.6206041", "0.6206041", "0.6206041", "0.6199961", "0.61897856", "0.61885625", "0.6178697", "0.61685425", "0.6165833", "0.6151752", "0.6142826", "0.6142396", "0.6140307", "0.61390543", "0.6129443", "0.61257744", "0.6124762", "0.6122444", "0.6107995", "0.61030924", "0.60865897", "0.6081543", "0.6080099", "0.60776025", "0.60776025", "0.60740113", "0.60667735", "0.6064761", "0.606469", "0.60641515", "0.606346", "0.6060794", "0.60600716" ]
0.0
-1
below methods are to retrieve prices for a company in a special period
@Transactional(readOnly = true) @Query(value = "SELECT s FROM StockPrice s where stockCd=:stockCd and curTime in (select lastDay from BFWeekDay bfw where date(lastDay) between :fromDate and :toDate) order by s.curTime") public List<StockPrice> findWeekByStockCd(@Param("stockCd") String stockCd, @Param("fromDate") Date fromDate, @Param("toDate") Date toDate);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(path=\"/company/companyStockPrice\")\r\n\t\tpublic List<CompanyStockPrice> getCompanyStockPriceDetails(@RequestBody CompanyPeriodModel companyPeriod){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tList<CompanyStockPrice> companyStockPriceList = null;\r\n\t\t\tif(companyPeriod.getPeriodicity()>0) {\r\n\t\t\t\t LocalDate currentDate = LocalDate.now();\r\n\t\t\t\t companyPeriod.setPeriodToDate(Date.from(currentDate.atStartOfDay(ZoneId.systemDefault()).toInstant()));\r\n\t\t\t\t companyPeriod.setPeriodFromDate(Date.from(currentDate.minusDays(companyPeriod.getPeriodicity()).atStartOfDay(ZoneId.systemDefault()).toInstant()));\t\r\n\t\t\t}\r\n\t\t\tif(companyPeriod.getCompanyList()!=null && companyPeriod.getPeriodFromDate()!=null && companyPeriod.getPeriodToDate()!=null) {\r\n\t\t\t\t\r\n\t\t\t\tcompanyStockPriceList = companyStockPriceService.getCompanyDetails(companyPeriod);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\treturn companyStockPriceList;\r\n\t\t}", "public static Vector<Company> getAllPrices(){\n\t\treturn all_prices;\n\t}", "Price[] getTradePrices();", "List<SalesConciliation> getSalesConciliation(Company company, Date startDate, Date endDate) throws Exception;", "List<SpotPrice> getByCommodityAndFromDateAndToDateAndLocation(\n Commodity commodity,\n Date fromDate,\n Date toDate,\n Location location\n );", "public static String[] getItemPrice(String type, String entity, String item, String uom, String curr) {\n\r\n String[] TypeAndPrice = new String[2]; \r\n String Type = \"none\";\r\n String price = \"0\";\r\n String pricecode = \"\";\r\n\r\n try{\r\n Connection con = null;\r\n if (ds != null) {\r\n con = ds.getConnection();\r\n } else {\r\n con = DriverManager.getConnection(url + db, user, pass); \r\n }\r\n Statement st = con.createStatement();\r\n ResultSet res = null;\r\n try{\r\n \r\n // customer based pricing\r\n if (type.equals(\"c\")) {\r\n res = st.executeQuery(\"select cm_price_code from cm_mstr where cm_code = \" + \"'\" + entity + \"'\" + \";\");\r\n while (res.next()) {\r\n pricecode = res.getString(\"cm_price_code\");\r\n } \r\n // if there is no pricecode....it defaults to billto\r\n if (! pricecode.isEmpty()) {\r\n entity = pricecode;\r\n }\r\n\r\n res = st.executeQuery(\"select cpr_price from cpr_mstr where cpr_cust = \" + \"'\" + entity + \"'\" + \r\n \" AND cpr_item = \" + \"'\" + item + \"'\" +\r\n \" AND cpr_uom = \" + \"'\" + uom + \"'\" +\r\n \" AND cpr_curr = \" + \"'\" + curr + \"'\" +\r\n \" AND cpr_type = 'LIST' \"+ \";\");\r\n while (res.next()) {\r\n price = res.getString(\"cpr_price\").replace('.', defaultDecimalSeparator);\r\n Type = \"cust\";\r\n\r\n }\r\n }\r\n\r\n // vendor based pricing\r\n if (type.equals(\"v\")) {\r\n res = st.executeQuery(\"select vd_price_code from vd_mstr where vd_addr = \" + \"'\" + entity + \"'\" + \";\");\r\n while (res.next()) {\r\n pricecode = res.getString(\"vd_price_code\");\r\n } \r\n // if there is no pricecode....it defaults to billto\r\n if (! pricecode.isEmpty()) {\r\n entity = pricecode;\r\n }\r\n\r\n res = st.executeQuery(\"select vpr_price from vpr_mstr where vpr_vend = \" + \"'\" + entity + \"'\" + \r\n \" AND vpr_item = \" + \"'\" + item + \"'\" +\r\n \" AND vpr_uom = \" + \"'\" + uom + \"'\" +\r\n \" AND vpr_curr = \" + \"'\" + curr + \"'\" + \r\n \" AND vpr_type = 'LIST' \"+ \";\");\r\n while (res.next()) {\r\n price = res.getString(\"vpr_price\").replace('.', defaultDecimalSeparator);\r\n Type = \"vend\";\r\n\r\n }\r\n }\r\n\r\n\r\n // if there is no customer specific price...then pull price from item master it_sell_price\r\n if ( price.equals(\"0\") ) {\r\n if (type.equals(\"c\")) { \r\n res = st.executeQuery(\"select it_sell_price as itemprice from item_mstr where it_item = \" + \"'\" + item + \"'\" + \";\");\r\n } else {\r\n res = st.executeQuery(\"select it_pur_price as itemprice from item_mstr where it_item = \" + \"'\" + item + \"'\" + \";\"); \r\n }\r\n while (res.next()) {\r\n price = res.getString(\"itemprice\").replace('.', defaultDecimalSeparator); \r\n Type = \"item\";\r\n }\r\n }\r\n\r\n TypeAndPrice[0] = Type;\r\n TypeAndPrice[1] = String.valueOf(price);\r\n\r\n }\r\n catch (SQLException s){\r\n MainFrame.bslog(s);\r\n } finally {\r\n if (res != null) {\r\n res.close();\r\n }\r\n if (st != null) {\r\n st.close();\r\n }\r\n con.close();\r\n }\r\n }\r\n catch (Exception e){\r\n MainFrame.bslog(e);\r\n }\r\n return TypeAndPrice;\r\n\r\n }", "List<PriceInformation> getPriceForProduct(ProductModel product);", "Price getTradePrice();", "Price getPrice() throws Exception;", "List<Price> findAll();", "double getPricePerPerson();", "TickerPrice getPrice(String symbol);", "public void testGetServiceByPrice() {\n System.out.println(\"getServiceByPrice\");\n EntityManager em = emf.createEntityManager();\n ServiceDaoImpl sdao = new ServiceDaoImpl(em);\n Service s = getService(\"expensive-one\", new Long(8475),\n // 7 hours\n new Duration(7 * 60 * 60 * 1000));\n\n em.getTransaction().begin();\n em.persist(s);\n em.getTransaction().commit();\n\n assertNotNull(sdao.getServiceByPrice(new Long(8475)).get(0));\n assertEquals(s, sdao.getServiceByPrice(new Long(8475)).get(0));\n }", "List<SpotPrice> getAll();", "List<PriceRow> getPriceInformationsForProduct(ProductModel model);", "public BigDecimal getPriceList();", "@Override\r\n\tpublic List<SalesAnalysis> getSalesAnalysis(Date fromDate, Date toDate) {\r\n\t\t\r\n\t\tList<SalesAnalysis> salesAnalysisDetails=new ArrayList<>();\r\n\t\tSalesAnalysis salesAnalysis=new SalesAnalysis();\r\n\t\t\r\n\t\t//get orders placed in the given period\r\n\t\tList<Order> orderDetails=orderService.getOrdersBetween(fromDate, toDate);\r\n\t\t\r\n\t\tHashMap<String, Double> purchasePriceDetails=new HashMap<>();\r\n\t\tHashMap<String, Double> salesPriceDetails=new HashMap<>();\r\n\t\tint qty=0;\r\n\t\tdouble salesPrice=0;\r\n\t\tdouble purchasePrice=0;\r\n\t\t\r\n\t\t//get total revenue for period\r\n\t\tdouble totalRevenue=getTotalRevenueBetween(fromDate, toDate);\r\n\t\t\r\n\t\t//get best seller details for the products, category-wise(from PRODUCT table)\r\n\t\tList<Object[]> bestSellerDetails=productService.getBestSellerId();\r\n\t\tSystem.out.println(bestSellerDetails);\r\n\t\t\r\n\t\t\r\n\t\t//for each product category, check sales details\r\n\t\tfor(Object[] object:bestSellerDetails)\t{\r\n\t\t\tString productCategory=(String)object[0];\r\n\t\t\tsalesPrice=0;\r\n\t\t\tpurchasePrice=0;\r\n\t\t\tpurchasePriceDetails.put(productCategory, purchasePrice);\r\n\t\t\tsalesPriceDetails.put(productCategory, salesPrice);\r\n\t\t\t\r\n\t\t\t//for each order, check product category and add details to maps\r\n\t\t\tfor(Order order:orderDetails)\t{\r\n\t\t\t\t\r\n\t\t\t\t//get products in this order\r\n\t\t\t\tList<CartProduct> products=order.getCart().getCartProducts();\r\n\t\t\t\t\r\n\t\t\t\t//getting purchase price details for each product ordered\r\n\t\t\t\tfor(CartProduct product:products)\t{\r\n\t\t\t\t\tif(product.getProduct().getProductCategory().equals(productCategory))\t{\r\n\t\t\t\t\t\tpurchasePrice=purchasePriceDetails.get(productCategory)+\r\n\t\t\t\t\t\t\t\t(product.getProduct().getQuantity()*product.getProduct().getProductPrice());\r\n\t\t\t\t\t\tpurchasePriceDetails.put(productCategory, purchasePrice);\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//getting sales price details for each product ordered\r\n\t\t\t\tfor(CartProduct product:products)\t{\r\n\t\t\t\t\tif(product.getProduct().getProductCategory().equals(productCategory))\t{\r\n\t\t\t\t\t\tqty=product.getQuantity();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tsalesPrice=salesPriceDetails.get(productCategory)+\r\n\t\t\t\t\t\t\t\t(qty*(100-product.getProduct().getDiscount())*product.getProduct().getProductPrice())/100;\r\n\t\t\t\t\t\tsalesPriceDetails.put(productCategory, salesPrice);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//make SalesAnalysis object using obtained data\r\n\t\t\tsalesAnalysis.setProductCategory(productCategory);\r\n\t\t\tsalesAnalysis.setMerchant(merchantService.getMerchantName((Integer)object[1]));\r\n\t\t\tsalesAnalysis.setProductQuantity(purchasePriceDetails.get(productCategory));\r\n\t\t\tsalesAnalysis.setProductSales(salesPriceDetails.get(productCategory));\r\n\t\t\tsalesAnalysis.setSalesPercent((salesAnalysis.getProductSales()*100)/salesAnalysis.getProductQuantity());\r\n\t\t\tsalesAnalysis.setTotalRevenue(totalRevenue);\r\n\t\t\t\r\n\t\t\t//make a list of sales analysis performed\r\n\t\t\tsalesAnalysisDetails.add(salesAnalysis);\r\n\t\t}\r\n\t\t\r\n\t\treturn salesAnalysisDetails;\r\n\t}", "@Override\r\n\tpublic List<Price> queryPriceBei(Date start,Date end) {\n\t\tList<Price> list = homePageDao.queryPriceBei(start,end);\r\n\t\treturn list;\r\n\t}", "@Path(\"{id_company}/{year}\")\r\n @GET\r\n @Produces(MediaType.APPLICATION_JSON)\r\n public FinancialReport returnValues(@PathParam(\"id_company\") String id_company, @PathParam(\"year\") int year) throws SQLException {\r\n FinancialReport finreport;\r\n DBConnect db=new DBConnect();\r\n finreport=db.calculateValues(id_company, year);\r\n return finreport;\r\n \r\n \r\n }", "double getPrice();", "double getPrice();", "double getPrice();", "public double getMonthPriceForPeriodical (String email, String periodical){\r\n double result = DEFAULT_VALUE;\r\n try (Connection connection = jdbcUtils.getConnection();){\r\n preparedStatement = connection.prepareStatement(GET_SUBSCRIPED_PERIODICAL_SQL);\r\n preparedStatement.setString(EMAIL_GET_SUBSCRIPED_PERIODICAL_SQL_NUMBER, email);\r\n preparedStatement.setString(PERIODICAL_GET_SUBSCRIPED_PERIODICAL_SQL_NUMBER, periodical);\r\n resultSet = preparedStatement.executeQuery();\r\n while (resultSet.next()) {\r\n result = resultSet.getDouble(FOLLOWERS_MOUNTHPRICE_COLUMN_NAME);\r\n }\r\n } catch (SQLException ex) {\r\n configLog.init();\r\n logger.info(LOG_SQL_EXCEPTION_MESSAGE + AdminDao.class.getName());\r\n Logger.getLogger(AdminDao.class.getName()).log(Level.SEVERE, null, ex);\r\n throw new RuntimeException();\r\n }\r\n return result;\r\n }", "List<ItemPriceDTO> findAll();", "public interface PricingService {\n\t\n\t/**\n\t * Get the Price information for the product\n\t *\n\t * @param product the ProductModel\n\t * l\n\t * @return list of PriceInformation for the corresponding product \n\t */\n\tList<PriceInformation> getPriceForProduct(ProductModel product);\n}", "java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> \n getPriceList();", "abstract public double getPrice();", "@GET\n @Path(\"quotes/{ticker}\")\n @Produces(MediaType.APPLICATION_JSON)\n public Quotes getPrice(@PathParam(\"ticker\") String ticker) {\n \tString url = \"http://download.finance.yahoo.com/d/quotes.csv?s=\"+ticker+\"&f=l1&e=.csv\";\n \t\t\t//\"http://www.google.com/finance/option_chain?q=ebay&output=json\";\n \tStringBuilder str = new StringBuilder();\n \tQuotes quotes = new Quotes();\n\t\t\n \t try {\n \t\t \tHttpClient httpClient = HttpClientBuilder.create().build();\n \t\t\tHttpGet getRequest = new HttpGet(url);\n \t\t\tHttpResponse response = httpClient.execute(getRequest);\n \t\t\tif (response.getStatusLine().getStatusCode() != 200) {\n \t\t\t\tthrow new RuntimeException(\"Failed : HTTP error code : \"\n \t\t\t\t + response.getStatusLine().getStatusCode());\n \t\t\t}\n \t\t\tBufferedReader br = new BufferedReader(\n \t new InputStreamReader((response.getEntity().getContent())));\n \t\t\tString output = null;\n \t\t\twhile ((output = br.readLine()) != null) {\n \t\t\t\tstr.append(output);\n \t\t\t}\n \t\t\tquotes.setPrice(str.toString());\n\t\t } catch (ClientProtocolException e) {\n\t\t\te.printStackTrace();\n\t\t } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t }\n \t return quotes;\n }", "String getPrice();", "public ArrayList<Double> GetPrices()\r\n\t{\r\n\t\treturn dayStockPrices;\r\n\t}", "public static Map<String,String> getPrice() throws MalformedURLException, IOException {\n Map<String,String>priceMap = new HashMap();\n String price;\n URL url = new URL(\"https://api.independentreserve.com/Public/GetMarketSummary?primaryCurrencyCode=xbt&secondaryCurrencyCode=aud\");\n try (InputStream is = url.openStream();\n JsonParser parser = Json.createParser(is)) {\n while (parser.hasNext()) {\n JsonParser.Event e = parser.next();\n if (e == JsonParser.Event.KEY_NAME) {\n switch (parser.getString()) {\n case \"DayHighestPrice\":\n parser.next();\n price=parser.getString();\n priceMap.put(\"DayHighestPrice\",price);\n break;\n case \"DayLowestPrice\":\n parser.next();\n System.out.print(\"DayLowestPrice: \");\n price=parser.getString();\n System.out.println(price);\n System.out.println(\"---------\");\n priceMap.put(\"DayLowestPrice\", price);\n break;\n case \"CurrentLowestOfferPrice\":\n parser.next();\n System.out.print(\"CurrentLowestOfferPrice: \");\n price=parser.getString();\n System.out.println(price);\n System.out.println(\"---------\");\n priceMap.put(\"CurrentLowestOfferPrice\", price);\n break;\n case \"CurrentHighestBidPrice\":\n parser.next();\n price=parser.getString();\n System.out.print(\"CurrentHighestBidPrice: \");\n System.out.println(price);\n priceMap.put(\"CurrentHighestBidPrice\", price);\n break;\n case \"LastPrice\":\n parser.next();\n System.out.print(\"LastPrice: \");\n price=parser.getString();\n System.out.println(price);\n System.out.println(\"---------\");\n priceMap.put(\"LastPrice\", price);\n break;\n }\n }\n }\n }\n \n return priceMap; \n}", "public SoldValueByPaymentMethod getSoldValueByPaymentMethod(Company company, Date startDate, Date endDate) throws WebResponseException, Exception;", "public interface StockPriceDataSource {\n\n /**\n * daily prices\n * @param date required date, can be today\n * @return list of deals for the day\n */\n List<StockTrade> getDayPrices(LocalDate date) throws IOException;\n}", "CleanPrice getCleanPrice();", "public interface CompanyOperations {\n\t/**\n\t * Retrieve Company Details based on unique integer id\n\t * @param id\n\t * @return company\n\t */\n\tCompany getCompany(int id);\n\t\n\t/**\n\t * Retrieve Company Details based on unique name id\n\t * @param name\n\t * @return company\n\t */\n\tCompany getCompanyByUniversalName(String name);\n\t\n\t/**\n\t * Retrive List of Company Details based on email domain\n\t * \n\t * @param domain Email Domain\n\t * @return List of Companies\n\t */\n\tList<Company> getCompaniesByEmailDomain(String domain);\n\t\n\t/**\n\t * Search of Companies based on space separated list of keywords\n\t * \n\t * @param keywords\n\t * @return Search Result with count, start, total and list of companies\n\t */\n\tSearchResultCompany search(String keywords);\n\t\n\t/**\n\t * Retrieve list of Companies that user is following\n\t * @return List of Companies\n\t */\n\tList<Company> getFollowing();\n\t\n\t/**\n\t * Retrieve a list of Suggested Companies for user to follow\n\t * @return List of Companies\n\t */\n\tList<Company> getSuggestionsToFollow();\n\t\n\t/**\n\t * Start following company\n\t * @param id\n\t */\n\tvoid startFollowingCompany(int id);\n\t\n\t/**\n\t * Stop following company\n\t * @param id\n\t */\n\tvoid stopFollowingCompany(int id);\n\t\n\tProductResult getProducts(int companyId, int start, int count);\n}", "BigDecimal getOpenPrice();", "List<OfferPrice> findByCustomer(Customer customer);", "public static List<OptionPricing> getPriceHistory(Date startTradeDate, Date endTradeDate, Date expiration, double strike, String callPut) {\r\n\t\t\r\n\t\tEntityManagerFactory emf = Persistence.createEntityManagerFactory(\"JPAOptionsTrader\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\t\r\n\t\t// Note: table name refers to the Entity Class and is case sensitive\r\n\t\t// field names are property names in the Entity Class\r\n\t\tQuery query = em.createQuery(\"select opt from \" + TradeProperties.SYMBOL_FOR_QUERY + \" opt where \"\r\n\t\t\t\t+ \"opt.trade_date >= :startTradeDate \" \r\n\t\t\t\t+ \"and opt.trade_date <= :endTradeDate \" \r\n\t\t\t\t+ \"and opt.expiration=:expiration \"\t\r\n\t\t\t\t+ \"and opt.call_put = :call_put \"\r\n\t\t\t\t+ \"and opt.strike = :strike \"\r\n\t\t\t\t+ \" order by opt.trade_date\");\r\n\t\t\r\n\t\tquery.setParameter(\"startTradeDate\", startTradeDate);\r\n\t\tquery.setParameter(\"endTradeDate\", endTradeDate);\r\n\t\tquery.setParameter(\"expiration\", expiration);\r\n\t\tquery.setParameter(\"call_put\", callPut);\r\n\t\tquery.setParameter(\"strike\", strike);\r\n\t\t\r\n\t\tquery.setHint(\"odb.read-only\", \"true\");\r\n\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<OptionPricing> options = query.getResultList();\r\n\t\t\r\n\t\tem.close();\r\n\t\t\r\n\t\treturn options;\r\n\t}", "long getPrice();", "void getMarketOrders();", "public BigDecimal getBSCA_ProfitPriceList();", "List<List<Order>> getAllOrdersByPrice() throws OrderBookOrderException;", "public Double getPrice();", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData getCompanyBaseData();", "public BigDecimal getBSCA_ProfitPriceListEntered();", "@Override\n\t/**\n\t * Returns all Coupons with price less than value method received as an\n\t * array list sorted descended\n\t */\n\tpublic Collection<Coupon> getCouponsByPrice(int price, int compID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Create list object to fill it later with Coupons\n\t\tCollection<Coupon> colCoup = new ArrayList<>();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve Coupons via prepared statement\n\n\t\t\tString getCouponsByPriceSQL = \"select * from coupon where price < ? and id in(select couponid from compcoupon where companyid = ?) order by price desc\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getCouponsByPriceSQL);\n\t\t\t// Set price variable that method received into prepared statement\n\t\t\tpstmt.setInt(1, price);\n\t\t\tpstmt.setInt(2, compID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// While there is result line in resCoup do lines below\n\t\t\twhile (resCoup.next()) {\n\t\t\t\t// Creating Coupon object to fill it later with data from SQL\n\t\t\t\t// query result and for method to add it to the list and return\n\t\t\t\t// it afterwards\n\t\t\t\tCoupon coupon = new Coupon();\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setId(resCoup.getInt(\"id\"));\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// Add resulting Coupon to the list\n\t\t\t\tcolCoup.add(coupon);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon list retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return resulted list of Coupons\n\t\treturn colCoup;\n\t}", "public BigDecimal getPriceListEntered();", "public double getPrice();", "double GetTaskPrice(int Catalog_ID);", "double calculatePrice();", "@Override\n @Cacheable(value=AccountingPeriod.CACHE_NAME, key=\"'{getOpenAccountingPeriods}'\")\n public Collection<AccountingPeriod> getOpenAccountingPeriods() {\n HashMap<String,Object> map = new HashMap<String,Object>();\n map.put(OLEConstants.ACCOUNTING_PERIOD_ACTIVE_INDICATOR_FIELD, Boolean.TRUE);\n\n return businessObjectService.findMatchingOrderBy(AccountingPeriod.class, map, OLEPropertyConstants.ACCTING_PERIOD_UNIV_FISCAL_PERIOD_END_DATE, true);\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData getAuditingCompany();", "public Map<Number, Double> getTodayPrice(Number stockID, Number stDate, Number enDate) {\n Map<Number, Double> m = new HashMap<Number, Double>();\n //get VO instance\n TestStockPricesVOImpl tspVO = getTestStockPricesVO();\n\n //get VC instance\n ViewCriteria vc =\n tspVO.getViewCriteria(\"GetStockPricesInGivenDateRangeCriteria\");\n vc.resetCriteria();\n\n //set All the bind parameters\n tspVO.setBindStockID(stockID);\n tspVO.setBindStartDate(stDate);\n tspVO.setBindEndDate(enDate);\n \n //apply the view criteria\n tspVO.applyViewCriteria(vc);\n \n //execute the view Object programatically\n tspVO.executeQuery();\n System.out.print(\"Row count: \");\n System.out.println(tspVO.getRowCount());\n\n //Iterate through the results\n RowSetIterator it = tspVO.createRowSetIterator(null);\n while (it.hasNext()) {\n TestStockPricesVORowImpl newRow = (TestStockPricesVORowImpl)it.next();\n Number timetracked = newRow.getTimetracked();\n Number price = newRow.getPrice();\n \n m.put(timetracked, price.doubleValue());\n }\n it.closeRowSetIterator();\n return m;\n }", "public List prices() {\n List ls = new ArrayList();\n try {\n\n Connection connection = DBUtil.getConnection();\n //PreparedStatement pst = connection.prepareStatement(\"select PriceId,VegetableId,GovernmentPrice,FarmerPrice,WholeSellerPrice,\"\n // + \"RetailerPrice from PriceDetails\");\n /*PreparedStatement pst = connection.prepareStatement(\"SELECT PriceDetails.PriceId,VegetableDetails.VegetableName,PriceDetails.GovernmentPrice,\"\n + \"PriceDetails.FarmerPrice,PriceDetails.WholeSellerPrice,PriceDetails.RetailerPrice\"\n + \" from PriceDetails INNER JOIN VegetableDetails \"\n + \"ON PriceDetails.VegetableId = VegetableDetails.VegetableId\");\n */\n\n PreparedStatement pst = connection.prepareStatement(\"select PriceDetails.PriceId,VegetableDetails.VegetableName,\"\n + \"PriceDetails.GovernmentPrice,PriceDetails.FarmerPrice,PriceDetails.WholeSellerPrice,\"\n + \"PriceDetails.RetailerPrice from PriceDetails INNER JOIN VegetableDetails ON PriceDetails.VegetableId = \"\n + \"VegetableDetails.VegetableId\");\n\n ResultSet rs = pst.executeQuery();\n while (rs.next()) {\n ViewPricesBean vpb = new ViewPricesBean();\n\n vpb.setPriceId(rs.getInt(1));\n vpb.setVegetableName(rs.getString(2));\n // vpb.setRegionName(rs.getString(3));\n vpb.setGovernmentPrice(rs.getFloat(3));\n vpb.setFarmerPrice(rs.getFloat(4));\n vpb.setWholeSellerPrice(rs.getFloat(5));\n vpb.setRetailerPrice(rs.getFloat(6));\n\n\n ls.add(vpb);\n\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return ls;\n\n }", "public float getPrices(Integer id);", "BigDecimal getPrice();", "public BigDecimal getPriceListOld();", "public BigDecimal\tgetPrice();", "public Pricing getPricingForId(int productId);", "@Override\r\n\tpublic List<Profit> get(Map<String, String> condition) throws Exception {\n\t\t\r\n\t\treturn null;\r\n\t}", "public List<SalesOrderHeaderPrElement> fetchPricingElement()\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 SalesOrderHeaderPrElement.\", 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_PricingElement\");\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<SalesOrderHeaderPrElement> entityList = result.asList(SalesOrderHeaderPrElement.class);\r\n for (SalesOrderHeaderPrElement entity: entityList) {\r\n entity.setErpConfigContext(erpConfigContext);\r\n }\r\n return entityList;\r\n }", "List<SpotPrice> getAll(Integer pageNumber, Integer pageSize);", "public Date getPrice() {\n return price;\n }", "@Test\n public void getCompanyInfo() throws Exception {\n List<Stock> comps = quoteService.companiesByNameOrSymbol(TestConfiguration.QUOTE_SYMBOL);\n assertFalse(comps.isEmpty());\n boolean pass = false;\n for (Stock info : comps) {\n if (info.getSymbol().equals(TestConfiguration.QUOTE_SYMBOL)) {\n pass = true;\n }\n }\n assertTrue(pass);\n }", "public interface IOaOffPriceService {\n\n /**\n * 查询批量特价调整单明细List\n * @param map\n * @return\n * @throws Exception\n * @author limin\n * @date Mar 9, 2015\n */\n public PageData selectOaOffPriceDetailList(PageMap map) throws Exception;\n\n /**\n * 新增批量特价调整单\n * @param price\n * @param list\n * @return\n * @author limin\n * @date Mar 10, 2015\n */\n public int addOaOffPrice(OaOffPrice price, List<OaOffPriceDetail> list) throws Exception;\n\n /**\n * 修改批量特价调整单\n * @param price\n * @param list\n * @return\n * @author limin\n * @date Mar 10, 2015\n */\n public int editOaOffPrice(OaOffPrice price, List<OaOffPriceDetail> list) throws Exception;\n\n /**\n * 查询批量特价申请单\n * @param id\n * @return\n * @throws Exception\n * @author limin\n * @date Mar 10, 2015\n */\n public OaOffPrice selectOaOffPrice(String id) throws Exception;\n\n /**\n * 查询批量特价调整单明细List\n * @param billid\n * @return\n * @throws Exception\n * @author limin\n * @date Mar 10, 2015\n */\n public List<OaOffPriceDetail> selectOaOffPriceDetailListByBillid(String billid) throws Exception;\n\n /**\n * 查询商品\n *\n * @param pageMap\n * @return\n * @throws Exception\n * @author limin\n * @date Sep 30, 2015\n */\n public PageData getGoodsList(PageMap pageMap) throws Exception;\n}", "public Items[] findWherePriceEquals(double price) throws ItemsDaoException;", "public List<TblPurchaseOrder>getAllDataPurchaseOrder(Date startDate,Date endDate,TblPurchaseOrder po,TblSupplier supplier);", "@Override\r\n\tpublic List<Price> queryCheng(Date start,Date end) {\n\t\tList<Price> list = homePageDao.queryCheng(start,end);\r\n\t\treturn list;\r\n\t}", "private static void findPrice(){\n Document document;\n String newURL = getLink(broadWebsite)[0];\n\n try{\n document = Jsoup.connect(website +newURL).userAgent(USER_AGENT).get();\n }\n catch(IOException e){\n return;\n }\n System.out.println(\"hi\");\n //System.out.println(link);\n Elements elements = document.getElementsByClass(\"vehicle-info__price-display\");\n\n // for(Element e : elements){\n // System.out.println(e);\n // for(DataNode node : e.dataNodes()){\n // //If the key does not exist, then create a new one and add value to it\n // if(map.get(link) == null){\n // map.put(link, new ArrayList<String>());\n // map.get(link).add(\"Price: \"+ node.attr(\"price\")+\"\\n\");\n // }\n // //If it is there already, then just add\n // else{\n // map.get(link).add(\"Price: \"+ node.attr(\"price\")+\"\\n\");\n // }\n // }\n\n // }\n\n for(Element e : elements){\n System.out.println(e);\n System.out.println(\"---\");\n }\n }", "HashMap<String, Double> getPortfolioData(String date);", "public BigDecimal getPriceActual();", "List<AverageTicket> getAverageTicket(Company company, ENUM_AVERAGE_PERIOD period, Integer quantity) throws Exception;", "public ArrayList getDataforVol_EurGbp(String date1){\n \n //Date date;\n List stPrices = new ArrayList();\n String sqlQuery = \"SELECT close_price FROM eur_gbp\"\n + \"WHERE day_date <'\"+ date1 +\"' AND \"\n + \"day_date >= DATE_SUB('\" +date1 +\"',INTERVAL 30 DAY);\";\n try {\n rs = dbCon.getData(sqlQuery);\n \n while (rs.next()) {\n stPrices.add(rs.getString(\"close_price\"));\n } \n } catch(SQLException e){} \n return (ArrayList) stPrices; \n }", "List<OfferPrice> findByCustomerAndTypeOfService(Customer customer, ServicesType servicesType);", "public interface PriceComparisonService {\n\n List<Distributor> getDistributorsPriceForItem(String nomenclatureName, List<Distributor> distributors);\n}", "public BigDecimal getPriceListWTax();", "public double getPayedMoneyForPeriodical (String email, String periodical){\r\n double result = DEFAULT_VALUE;\r\n try (Connection connection = jdbcUtils.getConnection();){\r\n preparedStatement = connection.prepareStatement(GET_SUBSCRIPED_PERIODICAL_SQL);\r\n preparedStatement.setString(EMAIL_GET_SUBSCRIPED_PERIODICAL_SQL_NUMBER, email);\r\n preparedStatement.setString(PERIODICAL_GET_SUBSCRIPED_PERIODICAL_SQL_NUMBER, periodical);\r\n resultSet = preparedStatement.executeQuery();\r\n while (resultSet.next()) {\r\n result = resultSet.getDouble(FOLLOWERS_MONEY_COLUMN_NAME);\r\n }\r\n } catch (SQLException ex) {\r\n configLog.init();\r\n logger.info(LOG_SQL_EXCEPTION_MESSAGE + AdminDao.class.getName());\r\n Logger.getLogger(AdminDao.class.getName()).log(Level.SEVERE, null, ex);\r\n throw new RuntimeException();\r\n }\r\n return result;\r\n }", "public void testFindByPrice() {\n System.out.println(\"findByPrice\");\n Double[] prices = null;\n ItemDAO instance = null;\n List expResult = null;\n List result = instance.findByPrice(prices);\n assertEquals(expResult, result);\n fail(\"The test case is a prototype.\");\n }", "public BigDecimal getPriceEntered();", "public List<Company> findAllCompany(int offset, int range);", "public Map<Number, Double> getThePastPrices(Number stockID, Number stDate, Number enDate) {\n Map<Number, Double> m = new HashMap<Number, Double>();\n\n //get VO instance\n TestStockPricesVOImpl tspVO = getTestStockPricesVO();\n\n //get VC instance\n ViewCriteria vc =\n tspVO.getViewCriteria(\"GetStockPricesInGivenDateRangeCriteria\");\n vc.resetCriteria();\n\n //set All the bind parameters\n tspVO.setBindStockID(stockID);\n tspVO.setBindStartDate(stDate);\n tspVO.setBindEndDate(enDate);\n \n //apply the view criteria\n tspVO.applyViewCriteria(vc);\n \n //execute the view Object programatically\n tspVO.executeQuery();\n System.out.print(\"Row count: \");\n System.out.println(tspVO.getRowCount());\n\n //Iterate through the results\n RowSetIterator it = tspVO.createRowSetIterator(null);\n while (it.hasNext()) {\n TestStockPricesVORowImpl newRow = (TestStockPricesVORowImpl)it.next();\n Number datetracked = newRow.getDatetracked();\n Number timetracked = newRow.getTimetracked();\n Number price = newRow.getPrice();\n \n m.put(datetracked, price.doubleValue());\n }\n it.closeRowSetIterator();\n return m;\n }", "@Test\r\n public void getPriceValue() throws Exception {\r\n assertEquals(p1,point1.getPriceValue(),0.0);\r\n assertEquals(p2,point2.getPriceValue(),0.0);\r\n assertEquals(p3,point3.getPriceValue(),0.0);\r\n assertEquals(p4,point4.getPriceValue(),0.0);\r\n }", "public List<OptionPricing> getTradeDays(Date startingTradeDate, Date expiration, double strike, String callPut) {\r\n\t\t\r\n\t\tEntityManagerFactory emf = Persistence.createEntityManagerFactory(\"JPAOptionsTrader\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\t\r\n\t\t// Note: table name refers to the Entity Class and is case sensitive\r\n\t\t// field names are property names in the Entity Class\r\n\t\tQuery query = em.createQuery(\"select opt from \" + TradeProperties.SYMBOL_FOR_QUERY + \" opt where \"\r\n\t\t\t\t+ \"opt.trade_date >= :tradeDate \" \r\n\t\t\t\t+ \"and opt.expiration=:expiration \"\t\r\n\t\t\t\t+ \"and opt.call_put = :call_put \"\r\n\t\t\t\t+ \"and opt.strike = :strike \"\r\n\t\t\t\t+ \" order by opt.trade_date\");\r\n\t\t\r\n\t\tquery.setParameter(\"tradeDate\", startingTradeDate);\r\n\t\tquery.setParameter(\"expiration\", expiration);\r\n\t\tquery.setParameter(\"call_put\", callPut);\r\n\t\tquery.setParameter(\"strike\", strike);\r\n\t\t\r\n\t\tquery.setHint(\"odb.read-only\", \"true\");\r\n\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<OptionPricing> options = query.getResultList();\r\n\t\t\r\n\t\tem.close();\r\n\t\t\r\n\t\treturn options;\r\n\t}", "public static List<Company> createCompanies() {\r\n\t\tList<Company> companies = new ArrayList<Company>();\r\n\t\tcompanies.add(createCompany(1, \"Pepcus\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help1\"));\r\n\t\tcompanies.add(createCompany(2, \"Google\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help2\"));\r\n\t\tcompanies.add(createCompany(3, \"Facebook\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help3\"));\r\n\t\tcompanies.add(createCompany(4, \"Suzuki\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help4\"));\r\n\t\tcompanies.add(createCompany(5, \"General Motors\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help5\"));\r\n\t\tcompanies.add(createCompany(6, \"L & T\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help6\"));\r\n\t\tcompanies.add(createCompany(7, \"General Electric\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help7\"));\r\n\t\tcompanies.add(createCompany(8, \"Oracle\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help8\"));\r\n\t\tcompanies.add(createCompany(9, \"Microsoft\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help9\"));\r\n\t\tcompanies.add(createCompany(10, \"Thinkhr\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help10\"));\r\n\t\treturn companies;\r\n\r\n\t}", "@Override\n @Cacheable(value=AccountingPeriod.CACHE_NAME, key=\"#p0+'-'+#p1\")\n public AccountingPeriod getByPeriod(String periodCode, Integer fiscalYear) {\n // build up the hashmap to find the accounting period\n HashMap<String,Object> keys = new HashMap<String,Object>();\n keys.put( OLEPropertyConstants.UNIVERSITY_FISCAL_PERIOD_CODE, periodCode);\n keys.put( OLEPropertyConstants.UNIVERSITY_FISCAL_YEAR, fiscalYear);\n AccountingPeriod acctPeriod = businessObjectService.findByPrimaryKey(AccountingPeriod.class, keys);\n return acctPeriod;\n }", "@Override\n\tpublic List<Job> findpriceExp(Job job) throws Exception {\n\t\treturn jobDao.findpriceExp(job);\n\t}", "@Override\r\n\tpublic List<ProductRaw_Price> getPrices(PageRequest pageable) {\n\t\treturn productRaw_PriceDao.getProductRawPrices(pageable);\r\n\t}", "@Override\n\tpublic double getPrice() {\n\t\t\n\t\treturn 2000;\n\t}", "@Test\n\tpublic void findPricingPrice() throws Exception{\n\t\tmvc.perform(get(new URI(\"/services/price?vehicleId=2\"))\n\t\t\t\t.accept(MediaType.APPLICATION_JSON_UTF8))\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t.andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8))\n\t\t\t\t.andExpect(jsonPath(\"vehicleId\",is(2)));\n\t}", "org.adscale.format.opertb.AmountMessage.Amount getCampaignprice();", "cosmos.base.v1beta1.CoinOuterClass.Coin getPrice(int index);", "public ReservedInstancePriceItem [] getPrices() {\n return this.Prices;\n }", "public static void getFlightSearchData() {\n\t HttpClient httpclient =HttpClientBuilder.create().build();\r\n//\t String url = \"http://finance.yahoo.com/q/hp?s=005930.KS+Historical+Prices\";\r\n\t String url =\"https://www.rome2rio.com/api/json/GetFlightPricesAsyncProgress?id=http%3A%2F%2Fpartners.api.skyscanner.net%2Fapiservices%2Fpricing%2Fuk1%2Fv1.0%2Feca848208a19428887cb0f9acd45798f_ecilpojl_5390203AB08027B40F6AC23E253711B9%20ICN%20OKA%2CICN%2COKA%2CSkyScanner%2Chttp%3A%2F%2Fwww.skyscanner.com%2F&version=201605050453&\";\r\n//\t String url =\"https://www.rome2rio.com/api/json/GetFlightPricesAsyncStart?origins=ICN&destinations=OKA&outDate=5-12-2016&retDate=5-19-2016&adults=1&children=0&infants=0&cabin=e&currency=KRW&version=201605050453&\";\r\n\t try\r\n\t { \r\n\t \tHttpGet request = new HttpGet(url);\r\n\t\t\tHttpResponse res = httpclient.execute(request);\r\n/*\t \t// Specify values for path parameters (shown as {...}) \r\n\t URIBuilder builder = new URIBuilder(\"http://evaluate.rome2rio.com/api/1.2/json/Search/\");\r\n\t \r\n\t // Specify your developer key \r\n\t builder.setParameter(\"key\", \"Z2CA71LM\"); \r\n\t // Specify values for the following required parameters \r\n\t builder.setParameter(\"oName\", \"ICN\"); \r\n\t builder.setParameter(\"dName\", \"LAX\");\r\n//\t builder.setParameter(\"oPos\", \"New York Kennedy\");\r\n//\t builder.setParameter(\"dPos\", \"40.64441,-73.78275\");\r\n//\t builder.setParameter(\"flags\", \"0x000FFFF0\");\r\n//\t builder.setParameter(\"flags\", \"0x000FFFFE\");\r\n\t builder.setParameter(\"flags\", \"0x000FFFFC\");\r\n\t \r\n//\t URI uri = builder.build(); \r\n\t HttpGet request = new HttpGet(uri); \r\n\t HttpResponse response = httpclient.execute(request); \r\n*/\t \r\n\t\t\tHttpEntity entity = res.getEntity();\r\n\t if (entity != null) { \r\n\t System.out.println(\"EntityUtil:\" + EntityUtils.toString(entity)); \r\n\t }\r\n//\t return EntityUtils.toString(entity);\r\n\t\t\tlogger.info(\"aaa: {}\", entity.toString());\r\n\t }\r\n\t catch(Exception e) \r\n\t { \r\n\t System.out.println(e.getMessage()); \r\n//\t return null;\r\n\t } \r\n\t \r\n\t}", "@Override\n\tpublic double getPrice() {\n\t\treturn constantPO.getPrice();\n\t}", "public List<Hotel> findByPriceBetween(double low, double high);", "public List<SalesOrderHeaderPrElement> getPricingElementOrFetch()\r\n throws ODataException\r\n {\r\n if (toPricingElement == null) {\r\n toPricingElement = fetchPricingElement();\r\n }\r\n return toPricingElement;\r\n }", "int getPrice();", "public void financialCrisis() {}", "List<Product> findByPrice(BigDecimal price);", "public BigDecimal getPriceLimit();", "public abstract List<Company> getAll();" ]
[ "0.6823377", "0.6778051", "0.6595854", "0.65364695", "0.6386531", "0.63376945", "0.62029344", "0.61404735", "0.599722", "0.59686565", "0.5967236", "0.5931702", "0.5926746", "0.59229904", "0.58927476", "0.5892173", "0.5852277", "0.5829733", "0.5822353", "0.58110505", "0.58110505", "0.58110505", "0.5808429", "0.5763972", "0.5761178", "0.57224125", "0.5716105", "0.5713557", "0.5704542", "0.5701386", "0.56979537", "0.568736", "0.56868786", "0.56803817", "0.5671842", "0.56688935", "0.5667472", "0.56525856", "0.565248", "0.5643748", "0.5631254", "0.5621996", "0.5616928", "0.56140375", "0.5599106", "0.55956", "0.55914533", "0.5586792", "0.5581823", "0.5575109", "0.55655885", "0.55594", "0.5550387", "0.55462676", "0.55328053", "0.5518289", "0.5488388", "0.5487127", "0.54818887", "0.5481709", "0.54794633", "0.5469216", "0.5466119", "0.5462929", "0.5462634", "0.5458575", "0.54581493", "0.54542446", "0.5449255", "0.5444393", "0.5442261", "0.54330784", "0.5430174", "0.54268193", "0.5420675", "0.5415125", "0.54096", "0.5407076", "0.53921336", "0.53848654", "0.53821856", "0.5373608", "0.5357369", "0.53568685", "0.5355447", "0.5355145", "0.53531927", "0.53516823", "0.53508925", "0.534616", "0.5345588", "0.5339902", "0.53389645", "0.53348035", "0.53300536", "0.53279793", "0.5327099", "0.5311195", "0.5307857", "0.529973", "0.5295616" ]
0.0
-1
below methods are to retrieve data for sector select avg(price), cur_time from stock_price where cur_time in (select last_day from bfmonthday) group by cur_time;
@Transactional(readOnly = true) @Query(value = "select avg(price) as price, date_format(curTime,'%Y-%m-%d') as cur_date from StockPrice sp " + "where curTime in (select lastDay from BFWeekDay) and " + "stockCd in (select stockCd from Stock where sectorCd=:sectorCd) group by curTime order by curTime") public List<Object[]> findWeekBySectorCd(@Param("sectorCd") String sectorCd);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Transactional(readOnly = true)\n\t@Query(value = \"select avg(price) as price, date_format(curTime,'%Y-%m-%d') as cur_date from StockPrice sp \"\n\t\t\t+ \"where curTime in (select lastDay from BFWeekDay bfw where date(lastDay) between :fromDate and :toDate) and \"\n\t\t\t+ \"stockCd in (select stockCd from Stock s where sectorCd=:sectorCd) group by curTime order by curTime\")\n\tpublic List<Object[]> findWeekBySectorCd(@Param(\"sectorCd\") String sectorCd, @Param(\"fromDate\") Date fromDate,\n\t\t\t@Param(\"toDate\") Date toDate);", "public DerData getAverageLastMonthProductionByIdDer (int idDer, Calendar datetime)\r\n\t{\r\n\t\tDerData data = new DerData();\r\n\t\tString querysqlserver = \"SELECT Avg(CostKwh) as CostKwh, Avg(ProductionMin) as ProdMin,\"\r\n\t\t\t\t+ \" Avg(ProductionMax) as ProdMax, Avg(ProductionRequested) as ProdReq,\"\r\n\t\t\t\t+ \" Avg(DesiredChoice) as DesChoice\"\r\n\t\t\t\t+ \" FROM DerDataHistory\"\r\n\t\t\t\t+ \" WHERE IdDer = \"+idDer\r\n\t\t\t\t+ \" AND DATEPART(HOUR, Datetime) = \"+datetime.get(Calendar.HOUR_OF_DAY)\r\n\t\t\t\t+ \" AND DATEPART(MINUTE, Datetime) = \"+datetime.get(Calendar.MINUTE)\r\n\t\t\t\t+ \" AND DATEDIFF(day,DateTime,'\"+format.format(datetime.getTime())+\"') between 0 and 30\";\r\n\t\tString query = \"SELECT Avg(CostKwh) as CostKwh, Avg(ProductionMin) as ProdMin,\"\r\n\t\t\t\t+ \" Avg(ProductionMax) as ProdMax, Avg(ProductionRequested) as ProdReq,\"\r\n\t\t\t\t+ \" Avg(DesiredChoice) as DesChoice\"\r\n\t\t\t\t+ \" FROM DerDataHistory\"\r\n\t\t\t\t+ \" WHERE IdDer = \"+idDer\r\n\t\t\t\t+ \" AND HOUR(Datetime) = \"+datetime.get(Calendar.HOUR_OF_DAY)\r\n\t\t\t\t+ \" AND MINUTE(Datetime) = \"+datetime.get(Calendar.MINUTE)\r\n\t\t\t\t+ \" AND DATEDIFF('\"+format.format(datetime.getTime())+\"', DateTime) between 0 and 30\";\r\n\t\t//System.out.println(query);\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\trs = stmt.executeQuery(query);\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tdata = new DerData(idDer, datetime, rs.getDouble(\"CostKwh\"), rs.getDouble(\"ProdMin\"),\r\n\t\t\t\t\t\trs.getDouble(\"ProdMax\"), rs.getDouble(\"ProdReq\"), rs.getDouble(\"DesChoice\"));\r\n\t\t\t}\r\n\t\t\tconnClose();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tconnClose();\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "@Override\npublic JsonArray queryStatistics(String date, Employee em) throws Exception {\n\tint [] montharr= {31,28,31,30,31,30,31,31,30,31,30,31};\n\tSystem.out.println(date);\n\tint year;\n\tint month;\n\tif(date.length()==0){\n\t\tmonth = new Date().getMonth()+1;\n\t\tyear= new Date().getYear()+1900;\n\t}else{\n\t\tString[] s=date.split(\"-\");\n\t\tyear=Integer.parseInt(s[0]);\n\t\tmonth=Integer.parseInt(s[1]);\n\t}\n\t\n\t\n\tList<Map<String,Object>> lstMap = new LinkedList<Map<String,Object>>();\n\tfor (int i = 1; i <=montharr[month-1] ; i++) {\n\t\tStringBuffer buffer =new StringBuffer(\"select SUM(c.golds) from consumption c,machineinfo m where c.fmachineid=m.id and m.state!=-1 and c.type=-1 and m.empid=\")\n\t\t\t\t.append(em.getId()).append(\" and year(c.createtime) =\").append(year)\n\t\t\t\t.append(\" and month(c.createtime) =\").append(month).append(\" and day(c.createtime) =\").append(i);;\n\t\t\t\tSystem.out.println(buffer);\n\t\t\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\t\t\tList<Object> lst = databaseHelper.getResultListBySql(buffer.toString());\n\t\t\t\t\n\t\t\t\tmap.put(\"nums\", lst==null?\"0\":lst.size()==0?\"0\":lst.get(0)==null?\"0\":lst.get(0).toString());\n\t\t\t\tmap.put(\"time\", i+\"日\");\n\t\t\t\tmap.put(\"month\", month);\n\t\t\t\tlstMap.add(map);\n\t}\n\tString result = new Gson().toJson(lstMap);\n\tJsonArray jarr = (JsonArray) new JsonParser().parse(result);\n\treturn jarr;\n}", "public Double getRawGross(int month, int day, int year, int storeCode, int...hour ) {\r\n//\t\tString query = \"SELECT SUM(IF(o.RETURN=0,i.SELL_PRICE*i.QUANTITY,p.AMT)) FROM invoice_item i, invoice o, payment_item p WHERE MONTH (o.TRANS_DT) = '\"+month+\"' && YEAR(o.TRANS_DT) = '\"+year+\"' && DAY(o.TRANS_DT) = '\"+day+\"' AND i.OR_NO = o.OR_NO AND p.OR_NO = o.OR_NO AND p.STORE_CODE = o.STORE_CODE AND o.STORE_CODE = '\"+storeCode+\"'\";\r\n\t\tString query = \"SELECT SUM(i.SELL_PRICE*i.QUANTITY) FROM invoice_item i, invoice o WHERE MONTH (o.TRANS_DT) = '\"+month+\"' && YEAR(o.TRANS_DT) = '\"+year+\"' && DAY(o.TRANS_DT) = '\"+day+\"' AND i.OR_NO = o.OR_NO AND i.STORE_CODE = o.STORE_CODE AND o.STORE_CODE = '\"+storeCode+\"'\"\r\n\t\t + \" AND NOT EXISTS (SELECT 1 FROM INVOICE_SET s WHERE s.OR_NO = o.OR_NO) \";\r\n\t\t\r\n\t\tif (hour.length > 0) {\r\n\t\t\tquery += \" AND HOUR(o.TRANS_DT) = \" + hour[0];\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"RAW GROSS QUERY = \" + query);\r\n\t\t\r\n\t\tResultSet rs = Main.getDBManager().executeQuery(query);\r\n//\t\tResultSet rs = Main.getDBManager().executeQuery(\"SELECT sum(p.AMT) from payment_item p WHERE MONTH (p.TRANS_DT) = '\"+month+\"' && YEAR(p.TRANS_DT) = '\"+year+\"' && DAY(p.TRANS_DT) = '\"+day+\"' AND p.STORE_CODE = '\"+storeCode+\"'\");\r\n\t\tDouble dailySale = 0.0d;\r\n\t\ttry {\r\n\t\t\twhile(rs.next()){\r\n//\t\t\t\tdouble amount = rs.getDouble(1);\r\n//\t\t\t\tdailySale = amount/getVatRate();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tdailySale = rs.getDouble(1);\r\n\t\t\t\tlogger.debug(\"Raw Gross BEFORE SUBTRACTION: \"+dailySale);\r\n\t\t\t\t\r\n\t\t\t\tdailySale = dailySale - getDeductibles(month, day, year, storeCode) + getCompletedTransactions(month, day, year, storeCode);\r\n\t\t\t\tlogger.debug(\"Raw Gross AFTER SUBTRACTION: \"+dailySale);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tLoggerUtility.getInstance().logStackTrace(e);\r\n\t\t}\r\n//\t\tdailySale = dailySale - getDeductibles(month, day, year, storeCode) + getCompletedTransactions(month, day, year, storeCode);\r\n\t\tlogger.debug(\"Raw Gross: \"+dailySale);\r\n\t\treturn dailySale;\r\n\t}", "public ArrayList getDataforVol_EurGbp(String date1){\n \n //Date date;\n List stPrices = new ArrayList();\n String sqlQuery = \"SELECT close_price FROM eur_gbp\"\n + \"WHERE day_date <'\"+ date1 +\"' AND \"\n + \"day_date >= DATE_SUB('\" +date1 +\"',INTERVAL 30 DAY);\";\n try {\n rs = dbCon.getData(sqlQuery);\n \n while (rs.next()) {\n stPrices.add(rs.getString(\"close_price\"));\n } \n } catch(SQLException e){} \n return (ArrayList) stPrices; \n }", "@RequestMapping(value = \"/stockChartData\")\n\t\t@CrossOrigin\n\t\tpublic String stockChartData(@RequestParam(value = \"token\", defaultValue = \"World\") String token){\n\t\t\t\n\t\t\t\n//MongoClientURI uri = new MongoClientURI(\"mongodb+srv://lamvictor:[email protected]/RichPortal?retryWrites=true&w=majority\");\n//\n//MongoClient mongoClient = new MongoClient(uri);\n//MongoDatabase database = mongoClient.getDatabase(\"RichPortal\");\n\t\t\t\n\t\t\t\n\t\t //MongoClient mongoClient = MongoClients.create(\"mongodb+srv://lamvictor:[email protected]/RichPortal?retryWrites=true&w=majority\");\n\t\t \n\t\t\tMongoClient mongoClient = MongoDBHelper.getClient();\n\t\t\t\n\t\t // get handle to \"RichPortal\" database\n\t MongoDatabase database = mongoClient.getDatabase(\"RichPortal\");\n\t \n\t MongoCollection<Document> collection = database.getCollection(\"historyStockInfo\");\n\t\t \n\t \n\t String resp = \"\";\n\t \n\t \n\t MongoCursor<Document> cursor = collection.find().iterator();\n\t try {\n\t while (cursor.hasNext()) {\n\t \tresp += cursor.next().toJson();\n\t }\n\t } finally {\n\t cursor.close();\n\t }\n\t \n\t \n\t // release resources\n\t mongoClient.close();\n\t \n\t \n\t\t\t\n\t\t\t//step 0 : get lastSyncTimestamp from MongoDB \n\t\t\t\n\t\t\t//step 0.1 : db.StockInfo.remove({ stockCode not in stocklist param }) \n\t\t\t //db.StockInfo.insertOne({stockCode:'981', year5Chart: [], year1Chart: [], fiveMinChart:[]}) //insert new in stocklist\n\n\t\t\t\n\t\t\t\n\t\t\t//step 1 : sync real time stock price to MongoDB realtimePrice\n\t\t\t\n//\t\t\tunique index to stockCode\n//\t\t\t\n//\t\t\ttry select max timestamp records from year5chart \n\t\t\t\n\t\t\t// i) get http://quotese.etnet.com.hk/content/mq3/wl_hkStockCollapse.php?code=981,6060 and update to MongoDB\n\t\t\t\n\t\t\t\n//\t\t\t//step 2 : sync history stock price to MongoDB if neccessary\n\t\t\t\n\t\t\t//loop the stockcode in stocklist :\n\t\t\t\n\t\t\t//year5Chart_limit=0;\n\t\t\t//year1Chart_limit=0;\n\t\t\t//todayChart_limit=0;\n\t\t\t\n\t\t\t// if ( getyear5Chart(981) / getyear1Chart(981) is empty from MDB) ){\n\t\t\t\n\t\t\t\t//year5Chart_limit=60;\n\t\t\t\t//year1Chart_limit=60;\n\t\t\t\n\t \t//}\n\t\t\t\n//\t\t\telse if (lastSyncTimestamp 's date != currentTimeStamp 's date {\n\t\t\t\t//year5Chart_limit=10;\n\t\t\t\t//year1Chart_limit=10;\n//\t\t\t}\n//\t\t\t\t\n//\t\t\tif (currentTimeStamp - lastSyncTimestamp > 5min ) {\n\t\t\t //todayChart_limit=[calculate_value];\n\t\t\t\n//\t\t\t}\n\t\t\t\n//\t\t\t\tcall if year5Chart_limit>0;\n//\t\t\t\t month:\n//\t\t\t\t\thttp://chartse.etnet.com.hk/HttpServer/TransServer/servlet/SecServlet?minType=102&code=6060&uid=BMPuser&token=%C2%BDQC%C2%A6E%C2%A7JX%3E%C3%B1%C3%9A%C2%9D-j%C2%99l%C2%9E%06%C2%93%C2%8F%C2%A6%C3%B5%C3%85%C3%89&limit=400&dataType=hist_today\n//\n//\t\t\t\t\tweek:\n//\t\t\t\t\thttp://chartse.etnet.com.hk/HttpServer/TransServer/servlet/SecServlet?minType=101&code=6060&uid=BMPuser&token=%C2%BDQC%C2%A6E%C2%A7JX%3E%C3%B1%C3%9A%C2%9D-j%C2%99l%C2%9E%06%C2%93%C2%8F%C2%A6%C3%B5%C3%85%C3%89&limit=400&dataType=hist_today\n//\t\t\t\n\n\t\t\t//update each response value to MongoDB\n\t\t\t\n//\t\t\t\t\n//\t\t\t\tcall if todayChart_limit>0;{\n//\t\t\t\t5 min\n//\t\t\t\thttp://chartse.etnet.com.hk/HttpServer/TransServer/servlet/SecServlet?minType=5&code=6060&uid=BMPuser&token=%C2%BDQC%C2%A6E%C2%A7JX%3E%C3%B1%C3%9A%C2%9D-j%C2%99l%C2%9E%06%C2%93%C2%8F%C2%A6%C3%B5%C3%85%C3%89&limit=400&dataType=hist_today\n//\t\t\t\n//\t\t\t\tupdate \tlastSyncTimestamp = currentTimeStamp\t to MongoDB\n//\t\t}\n\n\t\n\t\t\t\n\t\t\t\n\t\t\t//step 3 : response to browser with minimize json content from MongoDB\n\t\t\t\n\t\t\t//loop the stockcode in stocklist :\n\t\t\t\n\t\t\t//if initizised_mode or ( stockCode is Fullupdated ), response all from MongoDB\n\t\t\t//else if ( stockCode is Partialupdated ) getmaxtimestamp \n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//backup:\n\t\t\t\t // boolean updatedweekMonthChart = true\n\t\t\t\t // boolean updated5minChart = true\n\t\t\t\n\t\t\treturn resp;\n\t\t}", "List<AverageTicket> getAverageTicket(Company company, ENUM_AVERAGE_PERIOD period, Integer quantity) throws Exception;", "public Map<Number, Double> getTodayPrice(Number stockID, Number stDate, Number enDate) {\n Map<Number, Double> m = new HashMap<Number, Double>();\n //get VO instance\n TestStockPricesVOImpl tspVO = getTestStockPricesVO();\n\n //get VC instance\n ViewCriteria vc =\n tspVO.getViewCriteria(\"GetStockPricesInGivenDateRangeCriteria\");\n vc.resetCriteria();\n\n //set All the bind parameters\n tspVO.setBindStockID(stockID);\n tspVO.setBindStartDate(stDate);\n tspVO.setBindEndDate(enDate);\n \n //apply the view criteria\n tspVO.applyViewCriteria(vc);\n \n //execute the view Object programatically\n tspVO.executeQuery();\n System.out.print(\"Row count: \");\n System.out.println(tspVO.getRowCount());\n\n //Iterate through the results\n RowSetIterator it = tspVO.createRowSetIterator(null);\n while (it.hasNext()) {\n TestStockPricesVORowImpl newRow = (TestStockPricesVORowImpl)it.next();\n Number timetracked = newRow.getTimetracked();\n Number price = newRow.getPrice();\n \n m.put(timetracked, price.doubleValue());\n }\n it.closeRowSetIterator();\n return m;\n }", "public double getStockFinal(long pv) {\n float entree = 0 ;\n float sortie = 0 ;\n\n ArrayList<Produit> produits = null ;\n if (pv==0) produits = produitDAO.getAll();\n else produits = produitDAO.getAllByPv(pv) ;\n\n ArrayList<Mouvement> mouvements = null;\n\n double valeur = 0 ;\n double total = 0 ;\n double quantite = 0 ;\n double cmpu = 0 ;\n double restant = 0 ;\n double qsortie = 0 ;\n double qentree = 0 ;\n // Vente par produit\n Mouvement mouvement = null ;\n Operation operation = null ;\n\n for (int i = 0; i < produits.size(); i++) {\n try {\n mouvements = mouvementDAO.getManyByProductInterval(produits.get(i).getId_externe(),DAOBase.formatter2.parse(datedebut),DAOBase.formatter2.parse(datefin)) ;\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n if (mouvements != null){\n valeur = 0 ;\n quantite = 0 ;\n restant = 0 ;\n qentree = 0 ;\n cmpu = 0 ;\n qsortie = 0 ;\n\n for (int j = 0; j < mouvements.size(); j++) {\n mouvement = mouvements.get(j) ;\n operation = operationDAO.getOne(mouvement.getOperation_id()) ;\n if (operation==null || (operation.getAnnuler()==1 && operation.getDateannulation().before(new Date())) || operation.getTypeOperation_id().startsWith(OperationDAO.CMD)) continue;\n\n //if (pv!=0 && caisseDAO.getOne(operation.getCaisse_id()).getPointVente_id()!=pv) continue;\n if (j==0)\n if (mouvement.getRestant()==mouvement.getQuantite() && mouvement.getEntree()==0){\n restant = 0 ;\n }\n else restant = mouvement.getRestant() ;\n\n if (mouvement.getEntree()==0) {\n valeur -= mouvement.getPrixA() * mouvement.getQuantite() ;\n qentree += mouvement.getQuantite() ;\n cmpu = mouvement.getPrixA() ;\n }\n else {\n valeur += mouvement.getCmup() * mouvement.getQuantite() ;\n qsortie += mouvement.getQuantite() ;\n }\n /*\n if (restant!=0) cmpu = valeur / restant ;\n else cmpu = mouvement.getCmup() ;\n */\n }\n\n quantite = restant + qentree - qsortie ;\n total+=Math.abs(valeur) ;\n }\n }\n\n return total;\n }", "private CPSdiff getDayCPShashmap(String pivotlevel, double curr_CLOSE, Daypivot daypv, String stocksymbol,\r\n\t\t\tPricedata cp, HashMap<String, StochasticFinalval> dayeodstoch ,double curr_low) {\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\"); \r\n\t\tClass noparams[] = {};\r\n\t\tdouble price = 0;\r\n\t\tCPSdiff filterdata = new CPSdiff();\r\n\t\tfilterdata.setStocksymbol(stocksymbol);\r\n\t\tfilterdata.setCurrclose(cp.getLastprice());\r\n\t\tfilterdata.setPrevclose(curr_CLOSE);\r\n\t\tfilterdata.setPricelevel(pivotlevel);\r\n\t\tfilterdata.setIspivot(true);\r\n\t\tfilterdata.setIssma(false);\r\n\t\tfilterdata.setTradedate(cp.getTradedate());\r\n\t\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\tClass cls = Class.forName(\"com.mr.data.Daypivot\");\r\n\t\t\tMethod method = cls.getDeclaredMethod(\"get\"+pivotlevel, noparams);\r\n\t\t\tprice = (double) method.invoke(daypv, null);\r\n\t\t} catch (ClassNotFoundException | NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tfilterdata.setPriceval(Double.valueOf(df.format(price)).toString());\r\n\t\t\r\n\t\tif (curr_low <= Double.valueOf(filterdata.getPriceval()) && curr_CLOSE >= Double.valueOf(filterdata.getPriceval()) )\r\n\t\t{\r\n\t\t\tfilterdata.setTestpivot(true);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfilterdata.setTestpivot(false);\r\n\t\t}\r\n\t\t\r\n\t\tfilterdata.setPricediff(Double.valueOf(df.format(((cp.getLastprice()-price)/price)*100)).toString());\r\n\t\tfilterdata.setStochk(Double.valueOf(df.format(dayeodstoch.get(stocksymbol).getPrecentk())));\r\n\t\tfilterdata.setStochd(Double.valueOf(df.format(dayeodstoch.get(stocksymbol).getPercentd())));\r\n\t\t\r\n\t\tdouble pricecheck = Double.valueOf(filterdata.getPricediff());\r\n\t\tif (pricecheck < 10.1 && pricecheck > -10.1)\r\n\t\treturn filterdata;\r\n\t\telse\r\n\t return null;\r\n\t}", "public List<KeyValue<Integer>> getAvg() {\n\t\tList<KeyValue<Integer>> result = new ArrayList<KeyValue<Integer>>();\n\t\tJavaRDD<Document> rdd = dal.getRDD();\n\t\tList<Tuple2<String, Iterable<Document>>> list = rdd.groupBy(new Function<Document, String>() {\n\t\t\t// 分组\n\t\t\t/**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\tpublic String call(Document v1) throws Exception {\n\t\t\t\tString province = v1.getString(\"province\");\n\t\t\t\tDouble price = v1.getDouble(\"unitPrice\");\n\t\t\t\tif (v1.getString(\"province\") != null && price > 0) {\n\t\t\t\t\treturn province;\n\t\t\t\t}\n\t\t\t\treturn \"other\";\n\t\t\t}\n\t\t}).collect();\n\t\tfor (Tuple2<String, Iterable<Document>> tuple2 : list) {\n\t\t\t// 循环遍历,统计平均数\n\t\t\tif (tuple2._1.equals(\"other\")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tIterator<Document> iterator = tuple2._2.iterator();\n\t\t\tList<Double> prices = new ArrayList<Double>();\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tprices.add(iterator.next().getDouble(\"unitPrice\"));\n\t\t\t}\n\t\t\tdouble sum = dal.getSparkContext().parallelize(prices).reduce(new Function2<Double, Double, Double>() {\n\n\t\t\t\t/**\n\t\t\t\t * \n\t\t\t\t */\n\t\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t\tpublic Double call(Double v1, Double v2) throws Exception {\n\t\t\t\t\treturn v1 + v2;\n\t\t\t\t}\n\t\t\t});\n\t\t\tresult.add(new KeyValue<Integer>(tuple2._1, (int) sum / prices.size()));\n\t\t}\n\t\t// dal.destroy();\n\t\treturn result;\n\t}", "public void fetchData(View view){\n if (lastSelectedCategoryId != categoryId){\n // If the user has chosen a new category, then save its value\n lastSelectedCategoryId = categoryId;\n } else {\n Log.d(\"ANALYZE \", \" ANTI SPAM :(\");\n // If it's the old category, then do not do anything\n return;\n }\n\n // clear all old data!\n monthsValuesMap.clear();\n // put all months with ZERO values for sum\n for (int i = 0; i < 12; i++ ){\n monthsValuesMap.put(i, 0F);\n }\n\n final Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n // get today and clear time of day - 0h : 00m : 00s\n calendar.set(Calendar.HOUR_OF_DAY, 0); // ! clear would not reset the hour of day !\n calendar.clear(Calendar.MINUTE);\n calendar.clear(Calendar.SECOND);\n calendar.set(Calendar.MILLISECOND, 250);\n // get start of the month\n calendar.set(Calendar.DAY_OF_MONTH, 1);\n // get start of the year\n calendar.set(Calendar.MONTH, 0);\n\n long startOfYearInMs = calendar.getTimeInMillis();\n\n // get last month in the year\n calendar.set(Calendar.MONTH, 11);\n\n long endOfYearInMs = calendar.getTimeInMillis();\n\n DatabaseReference reference = firebaseDatabase.getReference(Constants.FIREBASE_LOCATION_USER_TRANSACTIONS + \"/\"\n + PreferenceManager.getDefaultSharedPreferences(context).getString(Constants.KEY_PREF_EMAIL_PARSED, null) + \"/\"\n + \"0\" + \"/\"\n + Constants.EXPENSE_TRANSACTION_TYPE + \"/\"\n + categoryId + \"/\");\n\n fetchDataQuery = reference.orderByKey().startAt(Long.toString(startOfYearInMs)).endAt(Long.toString(endOfYearInMs));\n if (fetchDataQuery != null){\n fetchDataQuery.keepSynced(true);\n }\n\n\n fetchDataQuery.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n // for every month TIMESTAMP\n for (DataSnapshot timestamp : dataSnapshot.getChildren()){\n Float sumOfChildes = 0f;\n\n // for every TRANSACTION in this TIMESTAMP\n for (DataSnapshot transaction : timestamp.getChildren() ){\n // add the transactions VALUE to the sum\n sumOfChildes = sumOfChildes + (float) transaction.getValue(Transaction.class).getTrAmount();\n }\n\n Log.d(\"ANALYZE\", \"onDataChange -> timestamp.getKey : \" + timestamp.getKey() + \"\\t sumOfChildes : \" + sumOfChildes + \"\\t calendar.getTimeInMillis : \" + calendar.getTimeInMillis());\n\n // set calendars time to be == TIMESTAMPs key (e.g. beginning of the month)\n calendar.setTimeInMillis(Long.valueOf(timestamp.getKey()));\n // put the sum of transactions amounts in the HashMap with KEY = MONTH of the year\n monthsValuesMap.put( calendar.get(Calendar.MONTH), sumOfChildes);\n monthBeginMap.put(calendar.get(Calendar.MONTH), calendar.getTimeInMillis());\n\n Log.d(\"ANALYZE\", \"onDataChange -> monthsValuesMap.size \" + monthsValuesMap.size() + \"\\t monthBeginMap.size : \" + monthBeginMap.size());\n }\n\n // pass all months data to setupBarChart()\n setupBarChart(monthsValuesMap, false);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }", "public ArrayList<String[]> loadStocks() {\n Log.d(TAG, \"loadStocks: Start Loading\");\n ArrayList<String[]> stocks = new ArrayList<>();\n Cursor cursor = database.query(\n TABLE_NAME,\n new String[]{STOCK_SYMBOL, STOCK_NAME},\n null,\n null,\n null,\n null,\n STOCK_SYMBOL);\n if (cursor != null) {\n cursor.moveToFirst();\n for (int i = 0; i < cursor.getCount(); i++) {\n String symbol = cursor.getString(0);\n //Double price = cursor.getDouble(1);\n // Double change = cursor.getDouble(2);\n //Double changePer = cursor.getDouble(3);\n String name = cursor.getString(1);\n stocks.add(new String[]{symbol, name});\n cursor.moveToNext();\n }\n cursor.close();\n }\n return stocks;\n}", "public float getlatestrate(String selection,String item) throws SQLException\n {\n // int stock_rate[]= new int [2];\n PreparedStatement remaining_stock = conn.prepareStatement(\"Select latest_rate from purchases where Categroy=? and Item=? \");\n remaining_stock.setString(1, selection);\n remaining_stock.setString(2, item);\n ResultSet remaining_stock_rows = remaining_stock.executeQuery(); \n \n float rate=0;\n while(remaining_stock_rows.next()) \n {\n \n rate=Float.parseFloat(remaining_stock_rows.getString(1));\n \n }\n return rate;\n }", "private void searchex()\n {\n try\n {\n this.dtm.setRowCount(0);\n \n String a = \"date(now())\";\n if (this.jComboBox1.getSelectedIndex() == 1) {\n a = \"DATE_ADD( date(now()),INTERVAL 10 DAY)\";\n } else if (this.jComboBox1.getSelectedIndex() == 2) {\n a = \"DATE_ADD( date(now()),INTERVAL 31 DAY)\";\n } else if (this.jComboBox1.getSelectedIndex() == 3) {\n a = \"DATE_ADD( date(now()),INTERVAL 90 DAY)\";\n } else if (this.jComboBox1.getSelectedIndex() == 4) {\n a = \"DATE_ADD( date(now()),INTERVAL 180 DAY)\";\n }\n ResultSet rs = this.d.srh(\"select * from stock inner join product on stock.product_id = product.id where exdate <= \" + a + \" and avqty > 0 order by exdate\");\n while (rs.next())\n {\n Vector v = new Vector();\n v.add(rs.getString(\"product_id\"));\n v.add(rs.getString(\"name\"));\n v.add(rs.getString(\"stock.id\"));\n v.add(Double.valueOf(rs.getDouble(\"buyprice\")));\n v.add(Double.valueOf(rs.getDouble(\"avqty\")));\n v.add(rs.getString(\"exdate\"));\n this.dtm.addRow(v);\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private Object[][] getOverTimeAmt(String month, String year, String divId) {\r\n\t\tObject[][] overTimeData = null;\r\n\t\ttry {\r\n\t\t\tString query = \"\";\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn overTimeData;\r\n\t}", "HashMap<String, Double> getPortfolioData(String date);", "public JsonArray getHomeHeatingFuelOrdersByStationIdAndQuarter(String stationID, String quarter, String year) {\r\n\t\tJsonArray homeHeatingFuelOrders = new JsonArray();\r\n\t\tArrayList<String> date = new ArrayList<>();\r\n\t\tdate = createDate(quarter, year);\r\n\t\tString query = \"\";\r\n\t\tStatement stmt = null;\r\n\t\ttry {\r\n\t\t\tif (DBConnector.conn != null) {\r\n\t\t\t\tquery = \"SELECT sum(amountOfLitters) as totalAmountOfFuel,sum(totalPrice) as totalPriceOfFuel FROM home_heating_fuel_orders \"\r\n\t\t\t\t\t\t+ \"WHERE stationID='\" + stationID + \"' AND orderDate between '\" + date.get(0)\r\n\t\t\t\t\t\t+ \" 00:00:00' and '\" + date.get(1) + \" 23:59:59';\";\r\n\t\t\t\tstmt = DBConnector.conn.createStatement();\r\n\t\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tJsonObject order = new JsonObject();\r\n\t\t\t\t\torder.addProperty(\"fuelType\", \"Home heating fuel\");\r\n\t\t\t\t\torder.addProperty(\"totalAmountOfFuel\", rs.getString(\"totalAmountOfFuel\"));\r\n\t\t\t\t\torder.addProperty(\"totalPriceOfFuel\", rs.getString(\"totalPriceOfFuel\"));\r\n\t\t\t\t\thomeHeatingFuelOrders.add(order);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Conn is null\");\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn homeHeatingFuelOrders;\r\n\r\n\t}", "String getStockData(String symbol) throws Exception\n\t{\n\t\tfinal String urlHalf1 = \"https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=\";\n\t\tfinal String urlHalf2 = \"&apikey=\";\n\t\tfinal String apiKey = \"FKS0EU9E4K4UQDXI\";\n\n\t\tString url = urlHalf1 + symbol + urlHalf2 + apiKey;\n\n\t\tJsonParser parser = new JsonParser();\n\n\t\tString hitUrl = url;\n\t\tString jsonData = getJsonData(hitUrl);\n\n\t\tJsonElement jsonTree = parser.parse(jsonData);\n\n\t\tString returnData = \"\";\n\n\t\tif (jsonTree.isJsonObject())\n\t\t{\n\t\t\tJsonObject jsonObject = jsonTree.getAsJsonObject();\n\n\t\t\tJsonElement timeSeries = jsonObject.get(\"Time Series (Daily)\");\n\n\t\t\tif (timeSeries.isJsonObject())\n\t\t\t{\n\t\t\t\tJsonObject timeObject = timeSeries.getAsJsonObject();\n\n\t\t\t\tDate date = new Date();\n\n\t\t\t\tCalendar calendar = new GregorianCalendar();\n\t\t\t\tcalendar.setTime(date);\n\n\t\t\t\t// Loop until we reach most recent Friday (market closes on Friday)\n\t\t\t\twhile (calendar.get(Calendar.DAY_OF_WEEK) < Calendar.FRIDAY\n\t\t\t\t\t\t|| calendar.get(Calendar.DAY_OF_WEEK) > Calendar.FRIDAY)\n\t\t\t\t{\n\t\t\t\t\tcalendar.add(Calendar.DAY_OF_MONTH, -1);\n\t\t\t\t}\n\n\t\t\t\tint year = calendar.get(Calendar.YEAR);\n\t\t\t\tint month = calendar.get(Calendar.MONTH) + 1;\n\t\t\t\tint day = calendar.get(Calendar.DAY_OF_MONTH);\n\n\t\t\t\tString dayToString = Integer.toString(day);\n\n\t\t\t\tif (dayToString.length() == 1)\n\t\t\t\t\tdayToString = \"0\" + dayToString;\n\n\t\t\t\tJsonElement currentData = timeObject.get(year + \"-\" + month + \"-\" + dayToString);\n\n\t\t\t\tif (currentData.isJsonObject())\n\t\t\t\t{\n\t\t\t\t\tJsonObject dataObject = currentData.getAsJsonObject();\n\n\t\t\t\t\tJsonElement openPrice = dataObject.get(\"1. open\");\n\t\t\t\t\tJsonElement closePrice = dataObject.get(\"4. close\");\n\t\t\t\t\tJsonElement highPrice = dataObject.get(\"2. high\");\n\t\t\t\t\tJsonElement lowPrice = dataObject.get(\"3. low\");\n\n\t\t\t\t\treturnData = year + \"-\" + month + \"-\" + dayToString + \" - \" + symbol + \": Opening price: $\"\n\t\t\t\t\t\t\t+ openPrice.getAsString() + \" / Closing price: $\" + closePrice.getAsString()\n\t\t\t\t\t\t\t+ \" / High price: $\" + highPrice.getAsString() + \" / Low price: $\" + lowPrice.getAsString();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn returnData;\n\t}", "Stock retrieveStockChartData(String symbol);", "Map<Date, Float> getFullCPM(Step step) throws SQLException;", "private HashMap<String, Float> DoShice(Connection con,Calendar start,Calendar end,String stationName) {\n\t\tHashMap<String, Float> map = new HashMap<String, Float>();\n\n\t\tPreparedStatement pre = null;\n\t\tResultSet result = null;\n\t\t\n\t\tString sql2 = \"select to_char(CLSJ,'yyyy/MM/dd HH24:mi:ss'),CLSW from T_SZHD_SWDTSLXX t where SWZID=(select ID from T_SZHD_SWJBXX where SWZMC=?) \"\n\t\t\t\t+ \"and CLSJ>to_date(? ,'yyyy-MM-dd') \"\n\t\t\t\t+ \"and CLSJ<to_date(?,'yyyy-MM-dd') order by CLSJ\";\n\n\t\ttry {\n\t\t\tpre = con.prepareStatement(sql2);\n\t\t\tString sStart = (new SimpleDateFormat(\"yyyy/MM/dd\")).format(start\n\t\t\t\t\t.getTime());\n\t\t\tString sEnd = (new SimpleDateFormat(\"yyyy/MM/dd\")).format(end\n\t\t\t\t\t.getTime());\n\t\t\tpre.setString(1, stationName);\n\t\t\tpre.setString(2, sStart);\n\t\t\tpre.setString(3, sEnd);\n\t\t\tresult = pre.executeQuery();\n\n\t\t\twhile (result.next()) {\n\t\t\t\tSystem.out.println(result.getString(1)+\" \"+ result.getFloat(2));\n\t\t\t\tmap.put(result.getString(1), result.getFloat(2));\n\t\t\t}\n\t\t\tSystem.out.println(\"实测数据查询完成\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn map;\n\t}", "public ArrayList<BikeData> getAllRecentData (){\n ArrayList<BikeData> datalist = new ArrayList<>();\n \n try(\n Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(ALL_RECENT_DATA);\n ResultSet rs = ps.executeQuery()){\n \n while(rs.next()){\n int bikeId = rs.getInt(cBikeID);\n LocalDateTime dateTime = rs.getTimestamp(cDateTime).toLocalDateTime();\n double latitude = rs.getDouble(cLatitude);\n double longitude = rs.getDouble(cLongitude);\n double chargingLevel = rs.getDouble(cChargingLevel);\n\n BikeData bd = new BikeData(bikeId, dateTime, latitude, longitude, chargingLevel);\n datalist.add(bd);\n }\n \n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return datalist;\n }", "public List<TblStockOpnameDetailItemExpiredDate>getAllDataStockOpnameItemExp(TblItem item);", "Map<Date, Float> getFullCPC(Step step) throws SQLException;", "public Map<Number, Double> getThePastPrices(Number stockID, Number stDate, Number enDate) {\n Map<Number, Double> m = new HashMap<Number, Double>();\n\n //get VO instance\n TestStockPricesVOImpl tspVO = getTestStockPricesVO();\n\n //get VC instance\n ViewCriteria vc =\n tspVO.getViewCriteria(\"GetStockPricesInGivenDateRangeCriteria\");\n vc.resetCriteria();\n\n //set All the bind parameters\n tspVO.setBindStockID(stockID);\n tspVO.setBindStartDate(stDate);\n tspVO.setBindEndDate(enDate);\n \n //apply the view criteria\n tspVO.applyViewCriteria(vc);\n \n //execute the view Object programatically\n tspVO.executeQuery();\n System.out.print(\"Row count: \");\n System.out.println(tspVO.getRowCount());\n\n //Iterate through the results\n RowSetIterator it = tspVO.createRowSetIterator(null);\n while (it.hasNext()) {\n TestStockPricesVORowImpl newRow = (TestStockPricesVORowImpl)it.next();\n Number datetracked = newRow.getDatetracked();\n Number timetracked = newRow.getTimetracked();\n Number price = newRow.getPrice();\n \n m.put(datetracked, price.doubleValue());\n }\n it.closeRowSetIterator();\n return m;\n }", "static Stock getStock(String symbol) { \n\t\tString sym = symbol.toUpperCase();\n\t\tdouble price = 0.0;\n\t\tint volume = 0;\n\t\tdouble pe = 0.0;\n\t\tdouble eps = 0.0;\n\t\tdouble week52low = 0.0;\n\t\tdouble week52high = 0.0;\n\t\tdouble daylow = 0.0;\n\t\tdouble dayhigh = 0.0;\n\t\tdouble movingav50day = 0.0;\n\t\tdouble marketcap = 0.0;\n\t\n\t\ttry { \n\t\t\t\n\t\t\t// Retrieve CSV File\n\t\t\tURL yahoo = new URL(\"http://finance.yahoo.com/d/quotes.csv?s=\"+ symbol + \"&f=l1vr2ejkghm3j3\");\n\t\t\tURLConnection connection = yahoo.openConnection(); \n\t\t\tInputStreamReader is = new InputStreamReader(connection.getInputStream());\n\t\t\tBufferedReader br = new BufferedReader(is); \n\t\t\t\n\t\t\t// Parse CSV Into Array\n\t\t\tString line = br.readLine(); \n\t\t\tString[] stockinfo = line.split(\",\"); \n\t\t\t\n\t\t\t// Check Our Data\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[0])) { \n\t\t\t\tprice = 0.00; \n\t\t\t} else { \n\t\t\t\tprice = Double.parseDouble(stockinfo[0]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[1])) { \n\t\t\t\tvolume = 0; \n\t\t\t} else { \n\t\t\t\tvolume = Integer.parseInt(stockinfo[1]); \n\t\t\t} \n\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[2])) { \n\t\t\t\tpe = 0; \n\t\t\t} else { \n\t\t\t\tpe = Double.parseDouble(stockinfo[2]); \n\t\t\t}\n \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[3])) { \n\t\t\t\teps = 0; \n\t\t\t} else { \n\t\t\t\teps = Double.parseDouble(stockinfo[3]); \n\t\t\t}\n\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[4])) { \n\t\t\t\tweek52low = 0; \n\t\t\t} else { \n\t\t\t\tweek52low = Double.parseDouble(stockinfo[4]); \n\t\t\t}\n\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[5])) { \n\t\t\t\tweek52high = 0; \n\t\t\t} else { \n\t\t\t\tweek52high = Double.parseDouble(stockinfo[5]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[6])) { \n\t\t\t\tdaylow = 0; \n\t\t\t} else { \n\t\t\t\tdaylow = Double.parseDouble(stockinfo[6]); \n\t\t\t}\n\t\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[7])) { \n\t\t\t\tdayhigh = 0; \n\t\t\t} else { \n\t\t\t\tdayhigh = Double.parseDouble(stockinfo[7]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A - N/A\", stockinfo[8])) { \n\t\t\t\tmovingav50day = 0; \n\t\t\t} else { \n\t\t\t\tmovingav50day = Double.parseDouble(stockinfo[8]); \n\t\t\t}\n\t\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[9])) { \n\t\t\t\tmarketcap = 0; \n\t\t\t} else { \n\t\t\t\tmarketcap = Double.parseDouble(stockinfo[9]); \n\t\t\t} \n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tLogger log = Logger.getLogger(StockHelper.class.getName()); \n\t\t\tlog.log(Level.SEVERE, e.toString(), e);\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn new Stock(sym, price, volume, pe, eps, week52low, week52high, daylow, dayhigh, movingav50day, marketcap);\n\t\t\n\t}", "@Query(\"SELECT * from stock_table ORDER BY symbol ASC\")\n List<AppStock> getAllStocksSync();", "@Override\n public List<ExpenceSummary> getReportsForMonth(String owner,int year, int month) {\n\n AggregationResults<ExpenceSummary> results = operations.aggregate(newAggregation(Expence.class, //\n match(where(\"owner\").is(owner))\n // .andOperator(where(\"date\").lte(LocalDateTime.now())\n //.andOperator(where(\"year(date)\").is(year)\n // .andOperator(where(\"date\").regex(\"2016\")\n // .andOperator(where(\"owner\").is(\"admin\")))\n , //\n // unwind(\"items\"), //\n // project(\"id\", \"customerId\", \"items\") //\n // .andExpression(\"'$items.price' * '$items.quantity'\").as(\"lineTotal\"), //\n project()\n .andExpression(\"type\").as(\"type\")\n .andExpression(\"year(date)\").as(\"year\")\n .andExpression(\"month(date)\").as(\"month\")\n .andExpression(\"amount\").as(\"amount\")\n ,\n match(where(\"year\").is(year)\n .andOperator(where(\"month\").is(month))\n )\n // .andOperator(where(\"date\").lte(LocalDateTime.now())\n //.andOperator(where(\"year(date)\").is(year)\n ,\n group(\"type\",\"year\",\"month\")\n\n // .addToSet(\"type\").as(\"type\")//, //\n // .addToSet(\"year\").as(\"year\")//, //\n // .addToSet(\"month\").as(\"month\")//, //\n .sum(\"amount\").as(\"totalAmount\") //\n .count().as(\"count\")\n // project(\"id\", \"items\", \"netAmount\") //\n // .and(\"orderId\").previousOperation() //\n // .andExpression(\"netAmount * [0]\", 1).as(\"taxAmount\") //\n // .andExpression(\"netAmount * (1 + [0])\", 1).as(\"totalAmount\") //\n ), Expence.class,ExpenceSummary.class);\n logger.info(\"getReportsForMonth results.size=\"+results.getMappedResults().size());\n return results.getMappedResults();\n }", "Map<Date, Float> getFullCPA(Step step) throws SQLException;", "public List<Double> getAvgBalance(String account_type) {\n Session session = sessionFactory.getCurrentSession();\n List<Double> accountList = session.createQuery(\"select avg(balance) from Account where account_type='\"+account_type+\"'\", Double.class).list();\n return AccountDto.getAvgBalance(accountList);\n }", "public List<Reporte> select(Long fechaInicio, Long fechaFin , int tipoReporte) {\r\n long startTime = System.currentTimeMillis(); //todo: reeplazar System.currentTimeMillis() por SystemClock.uptimeMillis()\r\n\r\n SQLiteDatabase db = sqLiteService.getWritableDatabase();\r\n\r\n Cursor resourse = db.rawQuery(\"\",null); // FIXME\r\n\r\n switch(tipoReporte){\r\n\r\n case 1:\r\n Log.w(\"Reporte\",\"Los mas vendidos\");\r\n resourse = db.rawQuery(\"SELECT * , (Productos.Venta - (VA.precio_compra * Productos.Vendidos)) AS Ganancia \" +\r\n \" FROM ViewArticulo AS VA, \" +\r\n \" (Select id_articulo,sum(importe_total) AS Venta,sum(cantidad) AS Vendidos \" +\r\n \" from items_ticket \" +\r\n \" WHERE timestamp BETWEEN \"+ fechaInicio +\" AND \"+ fechaFin +\r\n \" group by id_articulo \" +\r\n \" order by Vendidos DESC LIMIT 0,10) AS Productos \" +\r\n \"WHERE VA.id_articulo = Productos.id_articulo\", null);\r\n break;\r\n\r\n case 2:\r\n Log.w(\"Reporte\",\"Los menos vendidos\");\r\n resourse = db.rawQuery(\"SELECT * , (Productos.Venta - (VA.precio_compra * Productos.Vendidos)) AS Ganancia \" +\r\n \" FROM ViewArticulo AS VA, \" +\r\n \" (Select id_articulo,sum(importe_total) AS Venta,sum(cantidad) AS Vendidos \" +\r\n \" from items_ticket \" +\r\n \" WHERE timestamp BETWEEN \"+ fechaInicio +\" AND \"+ fechaFin +\r\n \" group by id_articulo \" +\r\n \" order by Vendidos ASC LIMIT 0,10) AS Productos \" +\r\n \"WHERE VA.id_articulo = Productos.id_articulo\", null);\r\n break;\r\n\r\n case 3:\r\n\r\n Log.w(\"Reporte\",\"Ganancias\");\r\n\r\n resourse = db.rawQuery(\"SELECT * \" +\r\n \" FROM ViewArticulo AS VA, \" +\r\n \" (SELECT it.id_articulo, SUM(importe_total) AS Venta,SUM(cantidad) AS Vendidos ,SUM((it.importe_total - (it.cantidad * it.precio_compra))) AS Ganancia, it.precio_compra AS PrecioCompra \" +\r\n \" FROM Items_Ticket AS it INNER JOIN Tickets AS t ON it.id_ticket = t.id_ticket \" +\r\n \" WHERE t.id_tipo_ticket = 1 AND t.timestamp BETWEEN \"+ fechaInicio +\" AND \"+ fechaFin +\r\n \" GROUP BY it.id_articulo , it.precio_compra\" +\r\n \" ORDER BY Vendidos DESC ) AS Calculo \" +\r\n \" WHERE VA.id_articulo = Calculo.id_articulo\",null);\r\n /*/////////////////////////////Old reporte ganancias/////////////////////////////////\r\n resourse = db.rawQuery(\"SELECT * , (Productos.Venta - (VA.precio_compra * Productos.Vendidos)) AS Ganancia \" +\r\n \" FROM ViewArticulo AS VA, \" +\r\n \" (Select id_articulo,sum(importe_total) AS Venta,sum(cantidad) AS Vendidos \" +\r\n \" from items_ticket \" +\r\n \" WHERE timestamp BETWEEN \"+ fechaInicio +\" AND \"+ fechaFin +\r\n \" group by id_articulo \" +\r\n \" order by Vendidos DESC ) AS Productos \" +\r\n \"WHERE VA.id_articulo = Productos.id_articulo\", null);\r\n *////////////////////////////////////////////////////////////////////////////////////\r\n break;\r\n\r\n case 4:\r\n Log.w(\"Reporte\",\"Garnel top mas vendidos\");\r\n resourse = db.rawQuery(\"SELECT * , (Productos.Venta - (VA.precio_compra * Productos.Vendidos)) AS Ganancia \" +\r\n \" FROM ViewArticulo AS VA, \" +\r\n \" (Select id_articulo,sum(importe_total) AS Venta,sum(cantidad) AS Vendidos \" +\r\n \" from items_ticket \" +\r\n \" group by id_articulo \" +\r\n \" order by Vendidos ASC ) AS Productos \" +\r\n \" WHERE VA.id_articulo = Productos.id_articulo\" +\r\n \" AND granel = 1\", null);\r\n break;\r\n\r\n case 5:\r\n Log.w(\"Reporte\", \"Cash Closing\");\r\n final String sql = \"Select * From\\n\" +\r\n \"\\n\" +\r\n \" (Select strftime('%d-%m-%Y', datetime(a.timestamp, 'unixepoch', 'localtime')) As Fecha,\\n\" +\r\n \"\\n\" +\r\n \" a.id_usuario, b.nombre As Nombre_Usuario, 'Saldo Inicial' As Concepto, a.importe_real As Cantidad, strftime('%H:%M:%S', a.fecha_apertura) As Hora, 1 As Orden\\n\" +\r\n \"\\n\" +\r\n \" From Registro_apertura a\\n\" +\r\n \"\\n\" +\r\n \" Left Join Usuarios b On a.id_usuario = b.id_usuario\\n\" +\r\n \"\\n\" +\r\n \" LIMIT 1) a\\n\" +\r\n \"\\n\" +\r\n \"Union\\n\" +\r\n \"\\n\" +\r\n \"Select * From\\n\" +\r\n \"\\n\" +\r\n \" (Select strftime('%d-%m-%Y', datetime(a.timestamp, 'unixepoch', 'localtime')) As Fecha, a.id_usuario, b.nombre As Nombre_Usuario, 'Entradas de dinero' As Concepto,\\n\" +\r\n \"\\n\" +\r\n \" a.importe_neto As Cantidad, 'NA' As Hora, 2 As Orden\\n\" +\r\n \"\\n\" +\r\n \" From Tickets a\\n\" +\r\n \"\\n\" +\r\n \" Left Join Usuarios b On a.id_usuario = b.id_usuario\\n\" +\r\n \"\\n\" +\r\n \" LIMIT 1) b\\n\" +\r\n \"\\n\" +\r\n \"Union \\n\" +\r\n \"\\n\" +\r\n \"Select * From\\n\" +\r\n \"\\n\" +\r\n \" (Select strftime('%d-%m-%Y', datetime(a.timestamp, 'unixepoch', 'localtime')) As Fecha, a.id_usuario, b.nombre As Nombre_Usuario, 'Salidas de dinero' As Concepto,\\n\" +\r\n \"\\n\" +\r\n \" a.importe_neto As Cantidad, 'NA' As Hora, 3 As Orden\\n\" +\r\n \"\\n\" +\r\n \" From Tickets a\\n\" +\r\n \"\\n\" +\r\n \" Left Join Usuarios b On a.id_usuario = b.id_usuario\\n\" +\r\n \"\\n\" +\r\n \" LIMIT 1) c\\n\" +\r\n \"\\n\" +\r\n \"Union \\n\" +\r\n \"\\n\" +\r\n \"Select * From\\n\" +\r\n \"\\n\" +\r\n \" (Select strftime('%d-%m-%Y', datetime(a.timestamp, 'unixepoch', 'localtime')) As Fecha, a.id_usuario, b.nombre As Nombre_Usuario, 'Ventas en efectivo' As Concepto,\\n\" +\r\n \"\\n\" +\r\n \" a.importe_neto As Cantidad, 'NA' As Hora, 4 As Orden\\n\" +\r\n \"\\n\" +\r\n \" From Tickets a\\n\" +\r\n \"\\n\" +\r\n \" Left Join Usuarios b On a.id_usuario = b.id_usuario\\n\" +\r\n \"\\n\" +\r\n \" LIMIT 1) d \\n\" +\r\n \"\\n\" +\r\n \"Union\\n\" +\r\n \"\\n\" +\r\n \"Select * From\\n\" +\r\n \"\\n\" +\r\n \" (Select strftime('%d-%m-%Y', datetime(a.fecha_cierre, 'unixepoch', 'localtime')) As Fecha,\\n\" +\r\n \"\\n\" +\r\n \" a.id_usuario, b.nombre As Nombre_Usuario, 'Total en caja al cierre' As Concepto, 10.0 As Cantidad, '06:00 PM' As Hora, 5 As Orden\\n\" +\r\n \"\\n\" +\r\n \" From Registro_cierre a\\n\" +\r\n \"\\n\" +\r\n \" Left Join Usuarios b On a.id_usuario = b.id_usuario\\n\" +\r\n \"\\n\" +\r\n \" LIMIT 1) e\\n\" +\r\n \"\\n\" +\r\n \"Order By Orden asc\";\r\n resourse = db.rawQuery(sql, null);\r\n\r\n break;\r\n// case 6:String sql = Log.w(\"Reporte\", \"Specific row report\");\r\n// final String sql = \"\"\r\n\r\n }\r\n\r\n List<Reporte> reportes = new ArrayList<>();\r\n Reporte reporte ;\r\n\r\n if(tipoReporte == 5) {\r\n while(resourse.moveToNext()){\r\n reporte = new Reporte();\r\n reporte.setFecha(resourse.getString(0));\r\n reporte.setIdUsuario(resourse.getInt(1));\r\n reporte.setNombreUsuario(resourse.getString(2));\r\n reporte.setConcepto(resourse.getString(3));\r\n reporte.setCantidad(resourse.getString(4));\r\n reporte.setHora(resourse.getString(5));\r\n reporte.setOrden(resourse.getInt(6));\r\n Log.w(\"REPORTE\", Utils.pojoToString(reporte));\r\n reportes.add(reporte);\r\n }\r\n\r\n } else {\r\n while(resourse.moveToNext()){\r\n reporte = new Reporte();\r\n\r\n reporte.setIdArticulo(resourse.getInt(0));\r\n reporte.setIdCentral(resourse.getInt(1));\r\n reporte.setPrecioBase(resourse.getDouble(2));\r\n if(tipoReporte != 3) {\r\n reporte.setPrecioCompra(resourse.getDouble(3));\r\n }else{\r\n reporte.setPrecioCompra(resourse.getDouble(15));\r\n }\r\n reporte.setCodigoBarras(resourse.getString(4));\r\n reporte.setNombreArticulo(resourse.getString(5));\r\n reporte.setNombreMarca(resourse.getString(6));\r\n reporte.setPresentacion(resourse.getString(7));\r\n reporte.setContenido(resourse.getInt(8));\r\n reporte.setUnidad(resourse.getString(9));\r\n reporte.setGranel(resourse.getInt(10) != 0);\r\n reporte.setVenta(resourse.getDouble(12));\r\n reporte.setVendidos(resourse.getDouble(13));\r\n reporte.setGanancia(resourse.getDouble(14));\r\n Log.w(\"REPORTE\", Utils.pojoToString(reporte));\r\n reportes.add(reporte);\r\n }\r\n\r\n }\r\n\r\n resourse.close();\r\n db.close();\r\n\r\n executionTime = System.currentTimeMillis() - startTime;\r\n\r\n if (reportes.size() <= 0){\r\n return null;\r\n }\r\n\r\n return reportes;\r\n }", "@Transactional(readOnly = true)\n\t@Query(value = \"SELECT s FROM StockPrice s where stockCd=:stockCd and curTime in (select lastDay from BFWeekDay bfw) order by s.curTime\")\n\tpublic List<StockPrice> findWeekByStockCd(@Param(\"stockCd\") String stockCd);", "List<StockList> fetchAll();", "public StockDownloader(String symbol, GregorianCalendar start, GregorianCalendar end){\n\n dates = new ArrayList<GregorianCalendar>();\n //opens = new ArrayList<Double>();\n //highs = new ArrayList<Double>();\n //lows = new ArrayList<Double>();\n //closes = new ArrayList<Double>();\n //volumes = new ArrayList<Integer>();\n adjCloses = new ArrayList<Double>();\n\n name = symbol;\n\n //http://real-chart.finance.yahoo.com/table.csv?s=FB&a=03&b=14&c=2015&d=03&e=14&f=2016&g=d&ignore=.csv\n String url = \"http://real-chart.finance.yahoo.com/table.csv?s=\"+symbol+\n \"&a=\"+end.get(Calendar.MONTH)+\n \"&b=\"+end.get(Calendar.DAY_OF_MONTH)+\n \"&c=\"+end.get(Calendar.YEAR)+\n \"&d=\"+start.get(Calendar.MONTH)+\n \"&e=\"+start.get(Calendar.DAY_OF_MONTH)+\n \"&f=\"+start.get(Calendar.YEAR)+\n \"&g=d&ignore=.csv\";\n\n // Error URL\n //http://real-chart.finance.yahoo.com/table.csv?s=FB&a=3&b=13&c=2016&d=3&e=13&f=2015&g=d&ignore=.csv\n\n //Good URL\n //http://real-chart.finance.yahoo.com/table.csv?s=FB&a=03&b=14&c=2015&d=03&e=14&f=2016&g=d&ignore=.csv\n\n try{\n URL yhoofin = new URL(url);\n //URL yhoofin = new URL(\"http://real-chart.finance.yahoo.com/table.csv?s=FB&a=03&b=14&c=2015&d=03&e=14&f=2016&g=d&ignore=.csv\");\n URLConnection data = yhoofin.openConnection();\n Scanner input = new Scanner(data.getInputStream());\n if(input.hasNext()){\n input.nextLine();//skip line, it's just the header\n\n //Start reading data\n while(input.hasNextLine()){\n String line = input.nextLine();\n String[] stockinfo = line.split(\",(?=(?:[^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\n //StockHelper sh = new StockHelper();\n dategetter.add(stockinfo[0]);\n adjCloses.add(handleDouble(stockinfo[ADJCLOSE]));\n }\n }\n\n //System.out.println(adjCloses);\n }\n catch(Exception e){\n System.err.println(e);\n }\n\n\n }", "public String getDetailData(String metric_categ, String service_group_name, String country, String metric_name,\r\n\t\t\tString date1, String date2)throws SQLException {\n\t\tArrayList responseArray = new ArrayList();\r\n\t\tString jsonResult=\"\";\r\n\t\tConnection conn = null;\r\n\t\ttry {\r\n\t\tconn = DBConnection.getConnection();\r\n\t\tStatement stmt = null;\r\n\t\t\r\n\t\tstmt = conn.createStatement();\r\n\t\tGson gson = new GsonBuilder().create();\r\n\t\tString measure_type=\"measure_amt\";\r\n\t\tif(metric_categ.equals(\"DQKPI\")){\r\n\t\t\tmeasure_type=\"measure_amt\";\r\n\r\n\r\n\t\t}else{\r\n\r\n\t\t\tmeasure_type=\"measure_cnt\";\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tString queryString=\"SELECT DISTINCT f.country_shortname, f.fact_row_no,f.fact_col_no,f.\"+measure_type+\" as Average_amt,dim2.validation_rule_name,f.measure_fact_date, dim2.quality_metric_type_comment,dim2.quality_metric_categ_shortname,dim1.service_main_group_name,dim2.quality_metric_type_name FROM mesa.PL_MEASURE_FACT_PRT f \"\r\n\t\t\t\t+\"INNER JOIN mesa.PL_SERVICE_PRT dim1 ON (f.validation_service_shortname = dim1.Service_Component_ShortName) \"\r\n\t\t\t\t+\"INNER JOIN mesa.PL_VALIDATION_RULE_EXT dim2 ON (f.Validation_Rule_Id = dim2.Validation_Rule_Id) WHERE f.\"+measure_type+\"<=99 AND f.country_shortname='\"+country+\"'\"\r\n\t\t\t\t+\"AND dim2.quality_metric_categ_shortname='\"+metric_categ+\"' AND dim1.service_main_group_name='\"+service_group_name+\"' AND dim2.quality_metric_type_name='\"+metric_name+\"' AND f.measure_fact_date BETWEEN '\"+date1+\"' and'\"+date2+\"'\";\r\n\r\n\t\tString queryTestString=\"SELECT DISTINCT f.fact_row_no,f.fact_col_no,f.country_shortname,f.measure_amt as Average_amt,dim2.validation_rule_name,f.measure_fact_date, dim2.quality_metric_type_comment,dim2.quality_metric_categ_shortname,dim1.service_main_group_name,dim2.quality_metric_type_name FROM mesa.PL_MEASURE_FACT_PRT f INNER JOIN mesa.PL_SERVICE_PRT dim1 ON (f.validation_service_shortname = dim1.Service_Component_ShortName) INNER JOIN mesa.PL_VALIDATION_RULE_EXT dim2 ON (f.Validation_Rule_Id = dim2.Validation_Rule_Id) WHERE f.measure_amt<=99 AND dim2.quality_metric_type_name='FORMAT CONFORMANCY' AND f.country_shortname='EE'AND dim2.quality_metric_categ_shortname='DQKPI' AND dim1.service_main_group_name='BB Data Warehouse' AND f.measure_fact_date BETWEEN '2017-01-21' and'2017-04-21'\";\r\n\t\t\r\n\t\tSystem.out.println(\"IS HERE\");\r\n\t\tSystem.out.println(queryString);\r\n\t\tResultSet rs = stmt.executeQuery(queryString);\r\n\t\twhile(rs.next()) {\r\n\r\n\r\n\t\t\tQualityModel model=new QualityModel();\r\n\t\t\tmodel.setMeasureAmt(rs.getInt(\"average_amt\"));\r\n\t\t\tmodel.setServiceMainGroupName(rs.getString(\"service_main_group_name\"));\r\n\t\t\tmodel.setDate(rs.getString(\"measure_fact_date\"));\r\n\t\t\tmodel.setQualityMetricTypeComment(rs.getString(\"validation_rule_name\").replaceAll(\"(.{50})\", \"$1<br>\"));\r\n model.setFactCol(rs.getInt(\"fact_col_no\"));\r\n model.setFactRow(rs.getInt(\"fact_row_no\"));\r\n model.setCountry(rs.getString(\"country_shortname\"));\r\n\r\n\t\t\tresponseArray.add(model);\r\n\t\t}\r\n\t\tjsonResult = gson.toJson(responseArray);\r\n\t\tSystem.out.println(jsonResult);\r\n\t\trs.close();\r\n\t\tstmt.close();\r\n\t}catch (SQLException e) {\r\n\t\te.printStackTrace();\r\n\t\tthrow new RuntimeException(e);\r\n\t} finally {\r\n\t\tDBConnection.close(conn);\r\n\t}\r\n\t\treturn jsonResult;\r\n\t\t\r\n\t\t\r\n\t\r\n\t}", "public JsonArray getFastFuelOrdersByStationIdAndQuarter(String stationID, String quarter, String year) {\r\n\t\tJsonArray fastFuelOrders = new JsonArray();\r\n\t\tArrayList<String> date = new ArrayList<>();\r\n\t\tdate = createDate(quarter, year);\r\n\t\tString totalPriceOfFuel = \"\";\r\n\t\tString query = \"\";\r\n\t\tStatement stmt = null;\r\n\t\ttry {\r\n\t\t\tif (DBConnector.conn != null) {\r\n\t\t\t\tquery = \"SELECT fuelType, sum(amountOfLitters) as totalAmountOfFuel,sum(totalPrice) as totalPriceOfFuel FROM fast_fuel_orders \"\r\n\t\t\t\t\t\t+ \"WHERE stationID='\" + stationID + \"' AND orderDate between '\" + date.get(0)\r\n\t\t\t\t\t\t+ \" 00:00:00' and '\" + date.get(1) + \" 23:59:59' group by fuelType;\";\r\n\t\t\t\tstmt = DBConnector.conn.createStatement();\r\n\t\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tJsonObject order = new JsonObject();\r\n\t\t\t\t\torder.addProperty(\"fuelType\", rs.getString(\"fuelType\"));\r\n\t\t\t\t\torder.addProperty(\"totalAmountOfFuel\", rs.getString(\"totalAmountOfFuel\"));\r\n\t\t\t\t\ttotalPriceOfFuel = String.format(\"%.3f\", Double.parseDouble(rs.getString(\"totalPriceOfFuel\")));\r\n\t\t\t\t\torder.addProperty(\"totalPriceOfFuel\", totalPriceOfFuel);\r\n\t\t\t\t\tfastFuelOrders.add(order);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Conn is null\");\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn fastFuelOrders;\r\n\r\n\t}", "private void initializeAggTradesCache(String symbol) {\r\n\r\n\t\tBinanceApiClientFactory factory = BinanceApiClientFactory.newInstance();\r\n\t\tBinanceApiRestClient client = factory.newRestClient();\r\n\t\tList<AggTrade> aggTrades = client.getAggTrades(symbol.toUpperCase());\r\n\t\tthis.aggTradesCache = new HashMap<>();\r\n\r\n\t\t/*\r\n\t\t * List<Tick> ticks = null; Long tickIndex = 0L; List<AggTrade> listAggTrade =\r\n\t\t * new CopyOnWriteArrayList<AggTrade>(); this.aggTradeTicksCashe = new\r\n\t\t * HashMap<Long, List<AggTrade>>();\r\n\t\t * \r\n\t\t *\r\n\t\t * ZonedDateTime tickStartTime = ZonedDateTime.now(ZoneId.systemDefault());\r\n\t\t * ZonedDateTime tickEndTime = ZonedDateTime.now(ZoneId.systemDefault());\r\n\t\t */\r\n\r\n\t\t// Check server time\r\n\t\ttradeSessionStartTime = client.getServerTime();\r\n\r\n\t\tList<Integer> xData = new CopyOnWriteArrayList<Integer>();\r\n\t\tList<Double> yData = new CopyOnWriteArrayList<Double>();\r\n\t\tList<Double> errorBars = new CopyOnWriteArrayList<Double>();\r\n\r\n\t\tlong startTimestamp = tradeSessionStartTime;\r\n\t\tlong endTimestamp = tradeSessionStartTime;\r\n\t\tfor (AggTrade aggTrade : aggTrades) {\r\n\t\t\tLong currentTimestamp = aggTrade.getTradeTime();\r\n\t\t\tif (currentTimestamp < startTimestamp)\r\n\t\t\t\tstartTimestamp = currentTimestamp;\r\n\t\t\tif (currentTimestamp > endTimestamp)\r\n\t\t\t\tendTimestamp = currentTimestamp;\r\n\t\t}\r\n\r\n\t\tfor (AggTrade aggTrade : aggTrades) {\r\n\r\n\t\t\t/*\r\n\t\t\t * ZonedDateTime tradeTimestamp =\r\n\t\t\t * ZonedDateTime.ofInstant(Instant.ofEpochMilli(aggTrade.getTradeTime()),\r\n\t\t\t * ZoneId.systemDefault()); if ( tradeTimestamp.isBefore(tickStartTime))\r\n\t\t\t * tickStartTime = tradeTimestamp; if (!tradeTimestamp.isBefore(tickEndTime))\r\n\t\t\t * tickEndTime = tradeTimestamp;\r\n\t\t\t * \r\n\t\t\t * if (!tradeTimestamp.isBefore(tickEndTime)) { // new tick if ( (tickIndex >0)\r\n\t\t\t * && (listAggTrade.size() > 0)) aggTradeTicksCashe.put( tickIndex, listAggTrade\r\n\t\t\t * ); tickEndTime = tradeTimestamp.plus(tickDuration); listAggTrade = new\r\n\t\t\t * CopyOnWriteArrayList<AggTrade>(); tickIndex++; } listAggTrade.add(aggTrade);\r\n\t\t\t */\r\n\r\n\t\t\tLong currentTimestamp = aggTrade.getTradeTime();\r\n\t\t\tDouble price = new Double(aggTrade.getPrice());\r\n\t\t\tDouble quantity = new Double(aggTrade.getQuantity());\r\n\t\t\tDouble amount = price * quantity;\r\n\t\t\txData.add((int) (50 * (currentTimestamp - startTimestamp) / (endTimestamp - startTimestamp)));\r\n\t\t\tyData.add(amount);\r\n\t\t\terrorBars.add(0.0);\r\n\t\t\taggTradesCache.put(aggTrade.getAggregatedTradeId(), aggTrade);\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * realTimeChart = new MercuryRealTimeChart(xData,yData, errorBars, response ->\r\n\t\t * {\r\n\t\t * \r\n\t\t * } );\r\n\t\t */\r\n\t}", "public List<Service> getServiceFromDateNPlate(String date,String plate){\n \n List<Service> lista = new ArrayList<>(); \n \n try {\n stmt = conn.createStatement();\n rs = stmt.executeQuery(\"SELECT QNT,DESC,PRICE FROM \" + plate + \" WHERE DATA = '\" + date + \"';\" );\n \n while(rs.next()){\n lista.add(new Service( rs.getDouble(\"QNT\"), rs.getString(\"DESC\"), rs.getDouble(\"PRICE\") ) ); \n }\n \n stmt.close();\n rs.close();\n } catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n return lista;\n }", "public List<BigDecimal> getHourlyAverage() {\r\n\t\tif (hourlyAverage == null)\r\n\t\t\thourlyAverage = new ArrayList<BigDecimal>();\r\n\t\tint minuteInterval = loadForecast.getMinuteInterval();\r\n\r\n\t\tif (minuteInterval == 0 || intervals == null || intervals.size() == 0)\r\n\t\t\treturn hourlyAverage;\r\n\t\t/*\r\n\t\t * \r\n\t\t */\r\n\t\tBigDecimal total = new BigDecimal(\"0\");\r\n\t\tBigDecimal average = new BigDecimal(\"0\");\r\n\t\tInteger intervalsPerHour = 60 / minuteInterval;\r\n\t\tfor (int i = 0; i < intervals.size(); i++) {\r\n\t\t\tLoadForecastInterval interval = intervals.get(i);\r\n\t\t\ttotal = total.add(interval.getValue());\r\n\t\t\tif (i == 0 || i % intervalsPerHour == 0) {\r\n\t\t\t\taverage = total.divide(new BigDecimal(intervalsPerHour));\r\n\t\t\t\thourlyAverage.add(average);\r\n\t\t\t\ttotal = new BigDecimal(\"0\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn hourlyAverage;\r\n\t}", "private BigDecimal getStock(Producto producto, Bodega bodega, Date fechaDesde, Date fechaHasta)\r\n/* 48: */ {\r\n/* 49:74 */ BigDecimal stock = BigDecimal.ZERO;\r\n/* 50:75 */ for (InventarioProducto inventarioProducto : this.servicioInventarioProducto.obtenerMovimientos(producto.getIdOrganizacion(), producto, bodega, fechaDesde, fechaHasta)) {\r\n/* 51:77 */ if (inventarioProducto.getOperacion() == 1) {\r\n/* 52:78 */ stock = stock.add(inventarioProducto.getCantidad());\r\n/* 53:79 */ } else if (inventarioProducto.getOperacion() == -1) {\r\n/* 54:80 */ stock = stock.subtract(inventarioProducto.getCantidad());\r\n/* 55: */ }\r\n/* 56: */ }\r\n/* 57:83 */ return stock;\r\n/* 58: */ }", "ManageableHistoricalTimeSeriesInfo select(Collection<ManageableHistoricalTimeSeriesInfo> candidates, String selectionKey);", "public static void main(String[] args) throws HibernateException, SQLException, IOException {\n\t\tSystem.out.println(\"MainPeakPrice start\");\n\t\t\n\t\tfinal int companyId = Integer.valueOf(args[0]);\n\t\tfinal int scoringModelId = Integer.valueOf(args[1]);\n\t\tfinal int minDay = Integer.valueOf(args[2]); //minimum day after article publish date for window to search for extreme stock price\n\t\tfinal int maxDay = Integer.valueOf(args[3]); //maximum day after article publish date for window to search for extreme stock price\n\t\t\n\t\tSystem.out.println(\"companyId: \" + companyId);\n\t\tSystem.out.println(\"scoringModelId: \" + scoringModelId);\n\t\tSystem.out.println(\"minDay to maxDay: \" + minDay + \" - \" + maxDay);\n\t\t\n\t\tQuery query = SessionManager.createQuery(\"from StockData where company.id = :companyId order by dayIndex\");\n\t\tquery.setParameter(\"companyId\", companyId);\n\t\t\n\t\tList<StockData> stockDataList = Utilities.convertGenericList(query.list());\n\t\t\n\t\tSystem.out.println(\"found stock data. size: \" + stockDataList.size());\n\t\t\n\t\tList<Integer> dayIndexes = MainVolatility.getArticleDayIndexes(scoringModelId);\n\t\tSystem.out.println(\"found day indexes for scoring model. size: \" + dayIndexes.size());\n\t\t\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(outputFilePrefix + companyId + \"_\" + scoringModelId + \".csv\"));\n\t\twriter.write(\"article_day_index,stock_day_index,day_offset_high,log_change_high,day_offset_low,log_change_low\");\n\t\twriter.newLine();\n\t\t\n\t\tfor (Integer dayInd : dayIndexes) {\n\t\t\tListIterator<StockData> iter = ExtremaUtility.buildIteratorWithDayIndexEqualsOrGreater(dayInd, stockDataList);\n\t\t\tStockData startSd = iter.next();\n\t\t\t\n\t\t\tfinal int curMinDay = startSd.getDayIndex() + minDay;\n\t\t\tfinal int curMaxDay = startSd.getDayIndex() + maxDay;\n\t\t\tStockData[] minLowMaxHigh = ExtremaUtility.findMinLowAndMaxHigh(curMinDay, curMaxDay, iter);\n\t\t\tStockData minLow = minLowMaxHigh[0];\n\t\t\tStockData maxHigh = minLowMaxHigh[1];\n\t\t\t\n\t\t\tint maxHighOffset = maxHigh.getDayIndex() - startSd.getDayIndex();\n\t\t\tdouble adjustment = (maxHigh.getAdjustedClose() / maxHigh.getClose());\n\t\t\tdouble maxHighLogRatio = Math.log(adjustment * maxHigh.getHigh() / startSd.getAdjustedClose());\n\t\t\t\n\t\t\tint minLowOffset = minLow.getDayIndex() - startSd.getDayIndex();\n\t\t\tadjustment = (minLow.getAdjustedClose() / minLow.getClose());\n\t\t\tdouble minLowLogRatio = Math.log(adjustment * minLow.getLow() / startSd.getAdjustedClose());\n\t\t\t\n\t\t\twriter.write(dayInd + \",\" + startSd.getDayIndex() + \",\" + maxHighOffset + \",\" + maxHighLogRatio + \",\" \n\t\t\t\t\t+ minLowOffset + \",\" + minLowLogRatio);\n\t\t\twriter.newLine();\n\t\t}\n\t\t\n\t\twriter.close();\n\t\tSessionManager.closeAll();\n\t}", "Map<Date, Float> getFullCost(Step step) throws SQLException;", "public Vector<Event> getEventsInDay(Date par){\n Connection con = null;\n PreparedStatement st = null;\n ResultSet rs = null;\n Vector<Event> result = new Vector<Event>();\n try {\n //obtain the database connection by calling getConn()\n con = getConn();\n \n SimpleDateFormat format1 = new SimpleDateFormat(\"dd-MM-YY\");\n \n //build the sql statement\n String sql = \"select * from event where to_date('\" + format1.format(par) + \"','DD-MM-YY') \";\n sql+= \"between to_date(start_time,'DD-MM-YY') and to_date(end_time,'DD-MM-YY')\";\n \n \n //System.out.println(sql);\n //create the PreparedStatement from the Connection object by calling prepareCall\n //method, passing it the sql that is constructed using the supplied parameters\n st = con.prepareCall(sql);\n \n \n //Calls executeQuery and the resulting data is returned in the resultset\n rs = st.executeQuery();\n \n //loop through the result set and save the data in the datamodel objects\n while (rs.next()){\n \n Event e = new Event(rs.getLong(\"id\"),rs.getString(\"id\") + \",\" + rs.getString(\"name\"),rs.getDate(\"start_time\"),rs.getDate(\"end_time\"));\n ;\n result.add(e);\n \n }\n \n }\n catch (SQLException e){\n e.printStackTrace();\n }\n //close the resultset,preparedstatement and connection to relase resources \n if (rs != null){\n try{\n rs.close();\n rs = null;\n }\n catch (SQLException e){\n \n }\n }\n if (st != null){\n try{\n st.close();\n st = null;\n }\n catch (SQLException e){\n \n }\n }\n \n \n \n if (con != null){\n try{\n con.close();\n con = null;\n }\n catch (SQLException e){\n \n }\n }\n return result;\n \n \n }", "Map<Date, Float> getFullCTR(Step step) throws SQLException;", "@Override\r\n\tpublic List<Object[]> getTotalStocks(int storageLocId) {\n\t\ttry\r\n\t\t{\r\n\t\t\tlistOfObjcts=boardDao.getTotalStocks(storageLocId);\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn listOfObjcts;\r\n\t}", "@GetMapping(\"/signalforbullish/{ticker}\")\n public List<String> getBullishEngulfingforstock(@PathVariable String ticker) {\n List<CandleModel> result = candleService.getCandleData(ticker);\n List<String> dates=candleService.getBullishEngulfingCandleSignal(result);\n System.out.println(dates);\n return dates;\n }", "public Event getEventDetails(String par){\n String[] arr = par.split(\",\");\n SimpleDateFormat format1 = new SimpleDateFormat(\"dd-MM-YY\");\n //build sql\n String sql = \"select e.id,e.name,e.start_time,e.end_time,v.name as vname,v.line_1,v.postcode,v.description\"\n + \",v.id as vid from event e,seating_plan s,venue v where \"\n + \"to_date(start_time,'DD-MM-YY') = to_date('\" + arr[0];\n sql = sql + \"','DD-MM-YY') and to_date(end_time,'DD-MM-YY') = to_date('\" + arr[1] + \"','DD-MM-YY') \";\n sql += \"and e.seating_plan_id = s.id and s.venue_id = v.id\";\n \n \n Connection con = null;\n PreparedStatement st = null;\n ResultSet rs = null;\n \n PreparedStatement stbill = null;\n ResultSet rsbill = null;\n \n Event result = null;\n \n try{\n //obtain the database connection by calling getConn()\n con = getConn();\n \n //create the PreparedStatement from the Connection object by calling prepareCall\n //method, passing it the sql that is constructed using the supplied parameters\n st = con.prepareCall(sql);\n \n //Calls executeQuery and the resulting data is returned in the resultset\n rs = st.executeQuery();\n Calendar cal1 = Calendar.getInstance();\n Calendar cal2 = Calendar.getInstance();\n \n //loop through the result set and save the data in the datamodel objects\n while (rs.next()){\n \n result = new Event(rs.getLong(\"id\"),rs.getString(\"name\"),rs.getDate(\"start_time\"),rs.getDate(\"end_time\"));\n Venue v = new Venue(rs.getString(\"vname\"),0d,0d);\n v.setId(rs.getLong(\"vid\"));\n v.setAddr1(rs.getString(\"line_1\"));\n v.setDescription(\"description\");\n v.setPostcode(rs.getString(\"postcode\"));\n result.setVenue(v);\n \n sql = \"select b.lineup_order,a.name,t.name as tname from billing b,artist a,tour t where \"\n + \"b.event_id=\" + rs.getString(\"id\") + \" and b.tour_id = t.id\";\n sql += \" and b.artist_id = a.id\";\n stbill = con.prepareCall(sql);\n rsbill = stbill.executeQuery();\n ArrayList<Billing> billArr = new ArrayList<Billing>();\n \n while (rsbill.next()){\n Artist a = new Artist(0l,rsbill.getString(\"name\") + \",\" + rsbill.getString(\"tname\"),\n null,null,null,null);\n Billing b = new Billing(0l,a,null,rsbill.getInt(\"lineup_order\"));\n billArr.add(b);\n }\n \n result.setBillings(billArr);\n \n }\n \n \n \n }\n catch (SQLException ex){\n ex.printStackTrace();\n }\n //close the resultset,preparedstatement and connection to relase resources \n if (rs != null){\n try{\n rs.close();\n rs = null;\n }\n catch (SQLException e){\n \n }\n }\n if (st != null){\n try{\n st.close();\n st = null;\n }\n catch (SQLException e){\n \n }\n }\n \n if (rsbill != null){\n try{\n rsbill.close();\n rsbill = null;\n }\n catch (SQLException e){\n \n }\n }\n if (stbill != null){\n try{\n stbill.close();\n stbill = null;\n }\n catch (SQLException e){\n \n }\n }\n \n \n if (con != null){\n try{\n con.close();\n con = null;\n }\n catch (SQLException e){\n \n }\n }\n return result;\n \n \n }", "public List<Map<String, Object>> getStockPriceLow() throws SQLException;", "public void Last_Day_Inventory_cost(){\n \n \n \n String query = \"SELECT In_Date,Total_Cost FROM Inventory where In_Date='\"+date+\"' \";\n \n \n try {\n Connection con= DBconnect.connectdb();\n Statement stmt=con.createStatement();\n ResultSet rs;\n \n rs=stmt.executeQuery(query);\n \n if(rs.next()){\n \n \n \n Inventory_total_Cost=rs.getFloat(2);\n jLabel_last_day_inventory_cost.setText(\"\"+Inventory_total_Cost);\n \n }\n \n \n \n } catch (SQLException ex) {\n Logger.getLogger(Sales_Performance_Chart.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "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 List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n Date nowToday = new Date(System.currentTimeMillis());\n Date now2 = new Date();\n Log.d(\"TIME\", now2.toString()); // Fri Apr 14 11:45:53 GMT-04:00 2017\n String show = DateFormat.getTimeInstance().format(nowToday); // 오후 4:22:40\n String show2 = DateFormat.getDateInstance().format(nowToday); // 2017. 4. 7.\n String show3 = DateFormat.getDateTimeInstance().format(nowToday); // 2017. 4. 7. 오후 4:22:40\n // String show4 = DateFormat.getDateInstance().format(now); 이건 안됌 에러\n\n\n java.text.SimpleDateFormat toDateTime = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssZ\");\n //Date todayDate = new Date();\n // String todayName = dayName.format(todayDate);\n\n java.util.Calendar calendar = java.util.Calendar.getInstance();\n\n calendar.setTime(nowToday);\n calendar.add(Calendar.HOUR, 2);\n Date twoFromNow = calendar.getTime();\n\n\n\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setTimeMax(new DateTime(twoFromNow, TimeZone.getDefault()))\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n\n\n List<Event> items = events.getItems();\n // List<Map<String, String>> pairList = new ArrayList<Map<String, String>>();\n // String nowDay = now.toString().substring(0, now.toString().indexOf(\"T\"));\n\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n\n // Only get events with exact start time set, exclude all day\n if (start != null) {\n eventStrings.add(\n String.format(\"%s //// %s)\", event.getSummary(), start));\n }\n\n\n }\n\n return eventStrings;\n }", "void printAverageMeasurement(Station station, Sensor sensor, LocalDateTime since, LocalDateTime until, double average);", "@Override\r\n\tpublic List<Price> queryCheng(Date start,Date end) {\n\t\tList<Price> list = homePageDao.queryCheng(start,end);\r\n\t\treturn list;\r\n\t}", "@Override\r\n\tpublic List<Price> queryPriceBei(Date start,Date end) {\n\t\tList<Price> list = homePageDao.queryPriceBei(start,end);\r\n\t\treturn list;\r\n\t}", "Map<Date, Integer> getFullImpressions(Step step) throws SQLException;", "List<MarketPerformanceData> retrieveMarketData(String[] symbol);", "public ArrayList<BikeData> getAllBikeData (Bike bike){\n ArrayList<BikeData> datalist = new ArrayList<>();\n \n try(\n Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(BIKE_DATA_1 + bike.getBikeId() + BIKE_DATA_2);\n ResultSet rs = ps.executeQuery()){\n \n while(rs.next()){\n int bikeId = rs.getInt(cBikeID);\n LocalDateTime dateTime = rs.getTimestamp(cDateTime).toLocalDateTime();\n double latitude = rs.getDouble(cLatitude);\n double longitude = rs.getDouble(cLongitude);\n double chargingLevel = rs.getDouble(cChargingLevel);\n \n BikeData bd = new BikeData(bikeId, dateTime, latitude, longitude, chargingLevel);\n datalist.add(bd);\n }\n \n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return datalist;\n }", "public String actividadCal(String id){ \n try\n {\n //abrir conexión\n Connection con= conexion.abrirConexion(); \n //generar consultas\n Statement s = con.createStatement(); \n //consulta\n ResultSet rs = s.executeQuery(\"SELECT avg(calificacion) FROM `comentarios` where comentarios.actividad_idActividad = \" + id + \";\");\n \n //declaración del array\n String a;\n rs.next();\n //copiar del resultset al array\n a = rs.getString(1);\n\n //cerrar conexión\n conexion.cerrarConexion(con); \n return a; \n }\n catch(SQLException e)\n {\n return null; \n }\n }", "List<Stock> retrieveAllStocks(String symbol);", "VarRatio selectByPrimaryKey(String stockCode);", "public static List<MeterReadImgAuditDetails> getKnoAuditDetailRecord(\n\t\t\tString kno) {\n\t\tAppLog.begin();\n\t\tConnection conn = null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tint i = 0;\n\t\tMeterReadImgAuditDetails aMeterReadImgAuditDetailsObj = null;\n\t\tList<MeterReadImgAuditDetails> meterReadImgAuditDetailsList = new ArrayList<MeterReadImgAuditDetails>();\n\t\ttry {\n\t\t\tString query = QueryContants\n\t\t\t\t\t.getKnoAuditDetailListForConsumptionAudit();\n\t\t\tAppLog.info(\"getKnoAuditDetailListForConsumptionAuditQuery::\"\n\t\t\t\t\t+ query);\n\t\t\tconn = DBConnector.getConnection();\n\t\t\tps = conn.prepareStatement(query);\n\t\t\tif (null != kno && !\"\".equalsIgnoreCase(kno)) {\n\t\t\t\tAppLog.info(\"Setting Kno in Query : \" + kno);\n\t\t\t\tps.setString(++i, kno);\n\t\t\t}\n\t\t\trs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\taMeterReadImgAuditDetailsObj = new MeterReadImgAuditDetails();\n\t\t\t\taMeterReadImgAuditDetailsObj.setBillRound((null != rs\n\t\t\t\t\t\t.getString(\"BILL_ROUND\") ? rs.getString(\"BILL_ROUND\")\n\t\t\t\t\t\t: \"NA\"));\n\t\t\t\taMeterReadImgAuditDetailsObj.setBillingPeriod(null != rs\n\t\t\t\t\t\t.getString(\"BILLNG_PERIOD\") ? rs\n\t\t\t\t\t\t.getString(\"BILLNG_PERIOD\") : \"NA\");\n\t\t\t\taMeterReadImgAuditDetailsObj.setBillGeneratedBy(null != rs\n\t\t\t\t\t\t.getString(\"BILL_GENRATD_BY\") ? rs\n\t\t\t\t\t\t.getString(\"BILL_GENRATD_BY\") : \"NA\");\n\t\t\t\taMeterReadImgAuditDetailsObj.setBillDt(null != rs\n\t\t\t\t\t\t.getString(\"BILL_DT\") ? rs.getString(\"BILL_DT\") : \"NA\");\n\t\t\t\taMeterReadImgAuditDetailsObj.setMeterReadRemark(null != rs\n\t\t\t\t\t\t.getString(\"MTR_READ_REMRK\") ? rs\n\t\t\t\t\t\t.getString(\"MTR_READ_REMRK\") : \"NA\");\n\t\t\t\taMeterReadImgAuditDetailsObj.setConsumption(null != rs\n\t\t\t\t\t\t.getString(\"CONSUMPTION\") ? rs.getString(\"CONSUMPTION\")\n\t\t\t\t\t\t: \"NA\");\n\t\t\t\taMeterReadImgAuditDetailsObj\n\t\t\t\t\t\t.setVariationPrevusReadng(null != rs\n\t\t\t\t\t\t\t\t.getString(\"VARIATION_PREVUS_READNG\") ? rs\n\t\t\t\t\t\t\t\t.getString(\"VARIATION_PREVUS_READNG\") : \"NA\");\n\t\t\t\taMeterReadImgAuditDetailsObj\n\t\t\t\t\t\t.setPerVariationAvgCnsumptn(null != rs\n\t\t\t\t\t\t\t\t.getString(\"ANUAL_VARIATION_AVG_CNSUMPTN\") ? rs\n\t\t\t\t\t\t\t\t.getString(\"ANUAL_VARIATION_AVG_CNSUMPTN\")\n\t\t\t\t\t\t\t\t: \"NA\");\n\t\t\t\taMeterReadImgAuditDetailsObj.setBillAmt(null != rs\n\t\t\t\t\t\t.getString(\"BILL_AMOUNT\") ? rs.getString(\"BILL_AMOUNT\")\n\t\t\t\t\t\t: \"NA\");\n\t\t\t\taMeterReadImgAuditDetailsObj.setPaymentAmount(null != rs\n\t\t\t\t\t\t.getString(\"PAYMENT_AMOUNT\") ? rs\n\t\t\t\t\t\t.getString(\"PAYMENT_AMOUNT\") : \"NA\");\n\n\t\t\t\tmeterReadImgAuditDetailsList.add(aMeterReadImgAuditDetailsObj);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tAppLog.error(e);\n\t\t} catch (IOException e) {\n\t\t\tAppLog.error(e);\n\t\t} catch (Exception e) {\n\t\t\tAppLog.error(e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (null != ps) {\n\t\t\t\t\tps.close();\n\t\t\t\t}\n\t\t\t\tif (null != rs) {\n\t\t\t\t\trs.close();\n\t\t\t\t}\n\t\t\t\tif (null != conn) {\n\t\t\t\t\tconn.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tAppLog.error(e);\n\t\t\t}\n\t\t}\n\t\tAppLog.end();\n\t\treturn (ArrayList<MeterReadImgAuditDetails>) meterReadImgAuditDetailsList;\n\t}", "int getStudentKcalConsumption(long studentId, Date start, Date end);", "public HashMap<String, Risk> calculateSectorAnalysis(Double portfolioStartValue, HashMap<Integer, ArrayList<Trade>> tradeMapCopy, ArrayList<ArrayList<Object>> spyData){\n\t\tHashMap<String, Risk> sectorAnalysisMap = new HashMap<String, Risk>();\n\t\t//create sector maps\n\t\tHashMap<Integer, ArrayList<Trade>> energyMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\tHashMap<Integer, ArrayList<Trade>> materialsMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\tHashMap<Integer, ArrayList<Trade>> industrialsMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\tHashMap<Integer, ArrayList<Trade>> consumerDiscretionaryMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\tHashMap<Integer, ArrayList<Trade>> consumerStaplesMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\tHashMap<Integer, ArrayList<Trade>> healthcareMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\tHashMap<Integer, ArrayList<Trade>> financialsMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\tHashMap<Integer, ArrayList<Trade>> informationTechnologyMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\tHashMap<Integer, ArrayList<Trade>> telecommunicationsMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\tHashMap<Integer, ArrayList<Trade>> utilitiesMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\t\n\t\t//get keys of the tradeMap\n\t\tArrayList<Integer> mapKeys = new ArrayList<Integer>(tradeMapCopy.keySet());\n\t\t//sorts in ascending order but need descending order\n\t\tCollections.sort(mapKeys);\n\t\t//reverse\n\t\tCollections.reverse(mapKeys);\n\t\t\n\t\t//iterates through the map in chronological order from oldest date to newest\n\t\tfor(Integer i : mapKeys){\n\t\t\tArrayList<Trade> daysTrades = tradeMapCopy.get(i);\n\t\t\t\n\t\t\tif(daysTrades == null){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<Trade> energyTradeList = new ArrayList<Trade>();\n\t\t\tArrayList<Trade> materialsTradeList = new ArrayList<Trade>();\n\t\t\tArrayList<Trade> industrialsTradeList = new ArrayList<Trade>();\n\t\t\tArrayList<Trade> consumerDiscretionaryTradeList = new ArrayList<Trade>();\n\t\t\tArrayList<Trade> consumerStaplesTradeList = new ArrayList<Trade>();\n\t\t\tArrayList<Trade> healthcareTradeList = new ArrayList<Trade>();\n\t\t\tArrayList<Trade> financialsTradeList = new ArrayList<Trade>();\n\t\t\tArrayList<Trade> informationTechnologyTradeList = new ArrayList<Trade>();\n\t\t\tArrayList<Trade> telecommunicationsTradeList = new ArrayList<Trade>();\n\t\t\tArrayList<Trade> utilitiesTradeList = new ArrayList<Trade>();\n\t\t\n\t\t\t//loop through the days trades\n\t\t\tfor(Trade trade : daysTrades){\n\t\t\t\ttry{\n\t\t\t\t\tString sectorETF = trade.getSymbolData().getSectorETF();\n\t\t\t\t\t\n\t\t\t\t\tswitch(sectorETF){\n\t\t\t\t\t\tcase \"XLE\":\n\t\t\t\t\t\t\tenergyTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"XLB\":\n\t\t\t\t\t\t\tmaterialsTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"XLI\":\n\t\t\t\t\t\t\tindustrialsTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"XLY\":\n\t\t\t\t\t\t\tconsumerDiscretionaryTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"XLP\":\n\t\t\t\t\t\t\tconsumerStaplesTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"XLV\":\n\t\t\t\t\t\t\thealthcareTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"XLF\":\n\t\t\t\t\t\t\tfinancialsTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"XLK\":\n\t\t\t\t\t\t\tinformationTechnologyTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"IYZ\":\n\t\t\t\t\t\t\ttelecommunicationsTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"XLU\":\n\t\t\t\t\t\t\tutilitiesTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IOException(\"Invalid sector ETF \" + sectorETF);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch(Exception e){ //happens when there is no sector ETF\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tenergyMap.put(i, energyTradeList);\n\t\t\tmaterialsMap.put(i, materialsTradeList);\n\t\t\tindustrialsMap.put(i, industrialsTradeList);\n\t\t\tconsumerDiscretionaryMap.put(i, consumerDiscretionaryTradeList);\n\t\t\tconsumerStaplesMap.put(i, consumerStaplesTradeList);\n\t\t\thealthcareMap.put(i, healthcareTradeList);\n\t\t\tfinancialsMap.put(i, financialsTradeList);\n\t\t\tinformationTechnologyMap.put(i, informationTechnologyTradeList);\n\t\t\ttelecommunicationsMap.put(i, telecommunicationsTradeList);\n\t\t\tutilitiesMap.put(i, utilitiesTradeList);\n\t\t}\n\t\t\n\t\tsectorAnalysisMap.put(\"XLE\", new Risk(portfolioStartValue, energyMap, spyData));\n\t\tsectorAnalysisMap.put(\"XLB\", new Risk(portfolioStartValue, materialsMap, spyData));\n\t\tsectorAnalysisMap.put(\"XLI\", new Risk(portfolioStartValue, industrialsMap, spyData));\n\t\tsectorAnalysisMap.put(\"XLY\", new Risk(portfolioStartValue, consumerDiscretionaryMap, spyData));\n\t\tsectorAnalysisMap.put(\"XLP\", new Risk(portfolioStartValue, consumerStaplesMap, spyData));\n\t\tsectorAnalysisMap.put(\"XLV\", new Risk(portfolioStartValue, healthcareMap, spyData));\n\t\tsectorAnalysisMap.put(\"XLF\", new Risk(portfolioStartValue, financialsMap, spyData));\n\t\tsectorAnalysisMap.put(\"XLK\", new Risk(portfolioStartValue, informationTechnologyMap, spyData));\n\t\tsectorAnalysisMap.put(\"IYZ\", new Risk(portfolioStartValue, telecommunicationsMap, spyData));\n\t\tsectorAnalysisMap.put(\"XLU\", new Risk(portfolioStartValue, utilitiesMap, spyData));\n\t\t\n\t\treturn sectorAnalysisMap;\n\t}", "TickerStatistics get24HrPriceStatistics(String symbol);", "List<ItemStockDO> selectAll();", "public StockDetails viewStock() {\n\t\tint availableStock = 0;\n\t\tStockDetails stockDetails = new StockDetails(); \n\t\t \n\t\ttry {\n\t\t\tcon = ConnectionUtil.getConnection();\n\t\t\tString sql = \"select * from stock_details\";\n\t\t\tPreparedStatement pst = con.prepareStatement(sql);\n\t\t\tResultSet rs = pst.executeQuery();\n\n\t\t\twhile (rs.next()) {\n\n\t\t\t\t stockDetails.setStockAvailability(rs.getInt(\"stock_availability\"));\n\t\t\t\t Date date = rs.getDate(\"inserted_date\");\n\t\t\t\t stockDetails.setStockAddedDate(date.toLocalDate());\n\t \n\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\n\t\t} finally {\n\t\t\tConnectionUtil.close(con, pst);\n\t\t}\n\t\treturn stockDetails;\n\t}", "public Map<String, Stock> getStocks();", "public ArrayList<Double> search_current(String user_id, String date) {\n\t\tArrayList<Double> current_info = new ArrayList<Double>(); // store the query result from current table\n\t\ttry {\n\t\t\t//connect\n\t\t\tConnection connection = this.getConnection();\n\t\t\tPreparedStatement stmt = connection.prepareStatement(\"SELECT protein, energy, fiber, price FROM diet_conclusion where id = ? AND date = ?\");\n\t\t\tstmt.setString(1, user_id);\n\t\t\tstmt.setString(2, date);\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tcurrent_info.add(rs.getDouble(3));//fiber\n\t\t\t\tcurrent_info.add(rs.getDouble(2));//energy\n\t\t\t\tcurrent_info.add(rs.getDouble(1));//protein\n\t\t\t\tcurrent_info.add(rs.getDouble(4));//price\n\t\t\t}\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t\tconnection.close();\n\t\t} catch (Exception e) {\n\t\t\tlog.info(\"query error for search_current: {}\", e.toString());\n\t\t}\n\n\t\treturn current_info;//can be null\n\n\t}", "@GetMapping(\"/{symbol}/{date}\")\n public ModelAndView daily(@PathVariable(\"symbol\") String symbol, @PathVariable(\"date\") String date) throws ParseException {\n\n Date sdf = new SimpleDateFormat(\"yyyy-MM-dd\").parse(date);\n\n String beginOfTheMonth = date.substring(0, 7) + \"-00\";\n String endOfTheMonth = date.substring(0,7) + \"-31\";\n Map<String, Object> model = new HashMap<>();\n\n try{\n String[] resp = quoteRepository.daily(symbol, sdf).split(\",\");\n Double closingResp = quoteRepository.closingDay(symbol, sdf);\n String[] monthResp = quoteRepository.monthly(symbol, beginOfTheMonth, endOfTheMonth).split(\",\");\n Double closingMonth = quoteRepository.closingMonth(symbol, beginOfTheMonth, endOfTheMonth);\n\n DayRecord dr = new DayRecord(Double.parseDouble(resp[0]), Double.parseDouble(resp[1]), Integer.parseInt(resp[2]), date, symbol);\n DayRecord mr = new DayRecord(Double.parseDouble(monthResp[0]), Double.parseDouble(monthResp[1]), Integer.parseInt(monthResp[2]), beginOfTheMonth, symbol);\n\n model.put(\"daily\", dr);\n model.put(\"closing\", closingResp);\n model.put(\"monthly\", mr);\n model.put(\"closingMonthly\", closingMonth);\n\n\n return new ModelAndView(\"main\", model);\n\n } catch (Exception e) {\n return new ModelAndView(\"error\", model);\n }\n }", "public List<Stock> getAllStocks() {\n\n this.open();\n\n Cursor cursor = database.query(SQLiteHelper.TABLE_STOCK, allColumns, null, null, null, null, null);\n List<Stock> allStocks = new ArrayList<>();\n\n cursor.moveToLast();\n while (!cursor.isBeforeFirst()){\n allStocks.add(cursorToStock(cursor));\n cursor.moveToPrevious();\n }\n\n cursor.close();\n this.close();\n return allStocks;\n }", "@Override\r\n\tpublic Vector<Log> get(Timestamp begin, Timestamp end) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tVector<Log> ret = new Vector<Log>();\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetAll);\r\n\t\t\tps.setTimestamp(1, begin);\r\n\t\t\tps.setTimestamp(2, end);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tret.add(generate(rs));\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "@Override\n\tpublic List<FilterStock> today() {\n\t\treturn filterStockRepo.findToday();\n\t}", "private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n Date nowToday = new Date(System.currentTimeMillis());\n Date now2 = new Date();\n Log.d(\"TIME\", now2.toString()); // Fri Apr 14 11:45:53 GMT-04:00 2017\n String show = DateFormat.getTimeInstance().format(nowToday); // 오후 4:22:40\n String show2 = DateFormat.getDateInstance().format(nowToday); // 2017. 4. 7.\n String show3 = DateFormat.getDateTimeInstance().format(nowToday); // 2017. 4. 7. 오후 4:22:40\n // String show4 = DateFormat.getDateInstance().format(now); 이건 안됌 에러\n Log.d(\"@@@@@LOOK HERE TIME@@\", show);\n Log.d(\"@@@@@LOOK HERE DATE@@\", show2);\n Log.d(\"@@@@@LOOK HERE DATETIME\", show3);\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n\n\n List<Event> items = events.getItems();\n // List<Map<String, String>> pairList = new ArrayList<Map<String, String>>();\n String nowDay = now.toString().substring(0, now.toString().indexOf(\"T\"));\n\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n // All-day events don't have start times, so just use\n // the start date.\n start = event.getStart().getDate();\n }\n\n eventStrings.add(\n String.format(\"%s (%s)\", event.getSummary(), start));\n }\n List<String> realStrings = new ArrayList<String>();\n for (String a:eventStrings\n ) {\n // Log.d(\"@@@@\", a);\n String day;\n String korTimeSpeech = null;\n String newSpeech = null;\n day = a.substring(a.indexOf(\"(\"), a.indexOf(\")\"));\n day = day.substring(1);\n\n if(day.length() > 16) {\n int hour = Integer.parseInt(day.substring(11, 13));\n if(hour < 12) {\n korTimeSpeech = \"오전 \";\n } else{\n korTimeSpeech = \"오후 \";\n hour = hour - 12;\n }\n korTimeSpeech = korTimeSpeech + hour + \"시 \" + day.substring(14, 16) + \"분에 \";\n newSpeech = a.substring(0, a.indexOf(\"(\"));\n newSpeech = korTimeSpeech + newSpeech;\n //Make it in day format\n day = day.substring(0, day.indexOf(\"T\"));\n }else {\n // korTimeSpeech = day.substring(11, 13) + \"시 \" + day.substring(14, 16) + \"분에 \";\n newSpeech = a.substring(0, a.indexOf(\"(\"));\n newSpeech = newSpeech;\n }\n\n if (day.equals(nowDay)) {\n realStrings.add(newSpeech);\n }\n }\n\n return realStrings;\n }", "public BikeData getRecentData(Bike bike){ //Returns a BikeData object with the most recent data for the specified bike\n\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(RECENT_BIKE_DATA + bike.getBikeId());\n ResultSet rs = ps.executeQuery()){\n \n if(rs.next()){\n BikeData bd = getBikeDataFromRS(rs);\n return bd;\n }\n \n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return null;\n }", "private List<Object[]> executeDayQuery(\n List<Object> segments, List<Object> workplaces,\n String Eq1startTime, String Eq1endTime,\n String Eq2startTime, String Eq2endTime,\n String Eq3startTime, String Eq3endTime) {\n try {\n //Clear all tables\n //################# Declared Harness Data #################### \n Helper.startSession();\n\n String query_str_1 = \"(SELECT 'Matin' as shift,'%s' As start_time, '%s' as end_time, \"\n + \"bh.segment AS segment, \"\n + \"bh.workplace AS workplace, \"\n + \"bh.harness_part AS harness_part, \"\n + \"bh.std_time AS std_time, \"\n + \"COUNT(bh.harness_part) AS produced_qty, \"\n + \"SUM(bh.std_time) AS produced_hours \"\n + \"FROM base_harness bh, base_container bc \"\n + \"WHERE bc.id = bh.container_id \"\n + \"AND bh.create_time BETWEEN '%s' AND '%s' \"\n + \"AND bh.segment IN (:segments) \"\n + \"AND bh.workplace IN (:workplaces) \"\n + \"GROUP BY bh.segment, bh.workplace, bh.harness_part, bh.std_time)\";\n\n query_str_1 = String.format(query_str_1, Eq1startTime, Eq1endTime, Eq1startTime, Eq1endTime);\n\n String query_str_2 = \"(SELECT 'Soir' as shift,'%s' As start_time, '%s' as end_time, \"\n + \"bh.segment AS segment, \"\n + \"bh.workplace AS workplace, \"\n + \"bh.harness_part AS harness_part, \"\n + \"bh.std_time AS std_time, \"\n + \"COUNT(bh.harness_part) AS produced_qty, \"\n + \"SUM(bh.std_time) AS produced_hours \"\n + \"FROM base_harness bh, base_container bc \"\n + \"WHERE bc.id = bh.container_id \"\n + \"AND bh.create_time BETWEEN '%s' AND '%s' \"\n + \"AND bh.segment IN (:segments) \"\n + \"AND bh.workplace IN (:workplaces) \"\n + \"GROUP BY bh.segment, bh.workplace, bh.harness_part, bh.std_time)\";\n\n query_str_2 = String.format(query_str_2, Eq2startTime, Eq2endTime, Eq2startTime, Eq2endTime);\n\n String query_str_3 = \"(SELECT 'Nuit' as shift,'%s' As start_time, '%s' as end_time, \"\n + \"bh.segment AS segment, \"\n + \"bh.workplace AS workplace, \"\n + \"bh.harness_part AS harness_part, \"\n + \"bh.std_time AS std_time, \"\n + \"COUNT(bh.harness_part) AS produced_qty, \"\n + \"SUM(bh.std_time) AS produced_hours \"\n + \"FROM base_harness bh, base_container bc \"\n + \"WHERE bc.id = bh.container_id \"\n + \"AND bh.create_time BETWEEN '%s' AND '%s' \"\n + \"AND bh.segment IN (:segments) \"\n + \"AND bh.workplace IN (:workplaces)\"\n + \"GROUP BY bh.segment, bh.workplace, bh.harness_part, bh.std_time) \";\n\n query_str_3 = String.format(query_str_3, Eq3startTime, Eq3endTime, Eq3startTime, Eq3endTime);\n\n String query_str = \"SELECT * FROM (\"\n + query_str_1 + \" UNION \"\n + query_str_2 + \" UNION \"\n + query_str_3\n + \") results ORDER BY start_time ASC, segment ASC, workplace ASC, harness_part ASC\";\n\n SQLQuery query = Helper.sess.createSQLQuery(query_str);\n\n query.addScalar(\"shift\", StandardBasicTypes.STRING)\n .addScalar(\"start_time\", StandardBasicTypes.STRING)\n .addScalar(\"end_time\", StandardBasicTypes.STRING)\n .addScalar(\"segment\", StandardBasicTypes.STRING)\n .addScalar(\"workplace\", StandardBasicTypes.STRING)\n .addScalar(\"harness_part\", StandardBasicTypes.STRING)\n .addScalar(\"std_time\", StandardBasicTypes.DOUBLE)\n .addScalar(\"produced_qty\", StandardBasicTypes.INTEGER)\n .addScalar(\"produced_hours\", StandardBasicTypes.DOUBLE)\n .setParameterList(\"segments\", segments)\n .setParameterList(\"workplaces\", workplaces);\n\n this.dataResultList = query.list();\n\n Helper.sess.getTransaction().commit();\n\n return this.dataResultList;\n\n } catch (HibernateException e) {\n if (Helper.sess.getTransaction() != null) {\n Helper.sess.getTransaction().rollback();\n }\n }\n\n return this.dataResultList;\n }", "public void consultaTest() throws Exception{\n\t\t\n\t ResultSet rs = statement.executeQuery(\"select * from statistics\");\n\t \n\t \n\t while(rs.next())\n\t {\n\t\t \n\t\t DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss.SSS\");\n\t\t Date date = df.parse(rs.getString(\"timeActual\"));\n\t\t Calendar cal = Calendar.getInstance();\n\t\t cal.setTime(date);\n\t\t \n\t\t String completoDay = cal.get(Calendar.YEAR)+\"-\"+(cal.get(Calendar.MONTH) + 1)+\"-\"+ cal.get(Calendar.DAY_OF_MONTH);\n\t\t \n\t System.out.println(\"id= \" + rs.getInt(\"id\") + \" memory= \" + rs.getInt(\"memory\") + \" cpu= \" \n\t \t+ rs.getInt(\"cpu\") + \" timeActual= \" + completoDay);\n\t }\n\t \n\t if(rs != null)\n\t\t rs.close();\n\t \n\t if(connection != null)\n\t connection.close();\n\t \n\t}", "void calculate() {\n\t\tint i;\n\t\tdouble avgVolume = 0.0;\n\t\t\n\t\tfor( i = 0; i < end; i++ ) {\n\t\t\t\n\t\t\tavgVolume += s[i].showVolume();\n\t\t\tSystem.out.println(s[i].toString());\n\t\t}\n\t\tif( end == 0 )\n\t\t\tSystem.out.println(\"Queue is empty\");\n\t\telse\n\t\t\tSystem.out.println(\"Average Volume is :- \" + avgVolume/end);\n\t}", "@Query(value = \"select concat(ROUND((avg(attendance)*100),2),' %') from studentcourse join modules on studentcourse.moduleid = modules.moduleid where studentcourse.moduleid=:mid\", nativeQuery = true)\r\n\tString findAttendanceByModuleId(@Param(\"mid\") String mid);", "@Query(\"SELECT * from stock_table ORDER BY symbol ASC\")\n LiveData<List<AppStock>> getAllStocks();", "public static boundedValue findAverage(ArrayList<Firm> list, String state)\n\t{\t\t\n\t\tArrayList<Float> beforeTQAvg = new ArrayList<Float>();\n\t\tArrayList<Float> afterTQAvg = new ArrayList<Float>();\n\t\t\n\t\tArrayList<Float> beforeTQSICAvg = new ArrayList<Float>();\n\t\tArrayList<Float> afterTQSICAvg = new ArrayList<Float>();\n\t\t\n\t\tArrayList<Float> beforeProfSICAvg = new ArrayList<Float>();\n\t\tArrayList<Float> afterProfSICAvg = new ArrayList<Float>();\n\t\t\n\t\tArrayList<Float> beforeProfAvg = new ArrayList<Float>();\n\t\tArrayList<Float> afterProfAvg = new ArrayList<Float>();\n\t\t\n\t\tint[] interval = new int[3];\n\t\tif(state == \"before\"){\n\t\t interval = makeBeforeInterval(list);\t\n\t\t} else if(state == \"after\") {\n\t\t\tinterval = makeAfterInterval(list);\n\t\t} else if(state == \"during\") {\n\t\t\tinterval = makeDuringInterval(list);\n\t\t} else {\n\t\t\tSystem.out.println(\"hmmm we shouldn't be here!\");\n\t\t}\n\t\t\n\t\tboundedValue value = new boundedValue();\n\t\t\n\t\tvalue.start = interval[0];\n\t\tvalue.mid = interval[1];\n\t\tvalue.end = interval[2];\n\t\tvalue.quarterSpan = value.end - value.start;\t\t\n\n\t\tArrayList<Firm> tmp = new ArrayList<Firm>();\n\t\t\n\t\tfor(int i = 0; i < list.size();i++){\n\t\t\tvalue.cusip = list.get(i).cusip;\n\t\t\tvalue.sic = list.get(i).sic;\n\n\t\t\tif( (utils.qM2.get(list.get(i).dateIndex) >= value.start) &&\n\t\t\t\t(utils.qM2.get(list.get(i).dateIndex) < value.mid))\n\t\t\t{\t\t\t\t\n\t\t\t\tbeforeTQAvg.add(Float.parseFloat(list.get(i).Tobins_Q));\n\t\t\t\ttmp = getFirmsInQuarterRangeWithSIC(value.start, value.mid, value.sic, state);\t\t\t\t\n\t\t\t\tfor(int k = 0; k < tmp.size(); k++){\n\t\t\t\t\tbeforeTQSICAvg.add(Float.parseFloat(tmp.get(k).Tobins_Q));\t\t\t\t\t\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\telse if( (utils.qM2.get(list.get(i).dateIndex) > (value.mid +1)) &&\n\t\t\t\t\t (utils.qM2.get(list.get(i).dateIndex) <= value.end))\n\t\t\t{\t\t\t\t\n\t\t\t\tafterTQAvg.add(Float.parseFloat(list.get(i).Tobins_Q));\n\t\t\t\ttmp = getFirmsInQuarterRangeWithSIC((value.mid +1), value.end, value.sic, state);\t\t\t\t\n\t\t\t\tfor(int k = 0; k < tmp.size(); k++){\n\t\t\t\t\tafterTQSICAvg.add(Float.parseFloat(tmp.get(k).Tobins_Q));\n\t\t\t\t}\t\t\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tfloat[] resultTQ = new float[3];\n\t\tresultTQ[0] = utils.averageN(beforeTQAvg);\n\t\tresultTQ[1] = utils.averageN(afterTQAvg);\n\t\t// \t\t\t beforeAverage - afterAverage (interval)\n\t\tresultTQ[2] = (resultTQ[1] - resultTQ[0]) / value.quarterSpan;\t\t\n\t\tvalue.beforeAverageTQFirm = resultTQ[0];\t\t\n\t\tvalue.afterAverageTQFirm = resultTQ[1];\t\t\n\t\tvalue.quarterlyIntervalTQDifference = resultTQ[2];\t\t\n\t\t\n\t\tfloat[] resultSIC2 = new float[3];\n\t\tresultSIC2[0] = utils.averageN(beforeTQSICAvg);\n\t\tresultSIC2[1] = utils.averageN(afterTQSICAvg);\n\t\t//\t\t beforeAverage - afterAverage (interval)\n\t\tresultSIC2[2] = (resultSIC2[1] - resultSIC2[0]) / value.quarterSpan;\t\t\n\t\tvalue.beforeAverageTQSIC = resultSIC2[0];\n\t\tvalue.afterAverageTQSIC = resultSIC2[1];\n\t\tvalue.quarterlyIntervalTQDifferenceSIC = resultSIC2[2];\n\n\t\treturn value;\n\t}", "List<SpotPrice> getByCommodityAndFromDateAndToDateAndLocation(\n Commodity commodity,\n Date fromDate,\n Date toDate,\n Location location\n );", "public List<AllTimeSeasonBean> getAllTimeRecord(){\n String q = \"select new com.main.pcblroyals.bean.AllTimeSeasonBean( \" +\n \"sum(case when g.teamScore > g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore = g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore < g.opponentScore then 1 else 0 end) \" +\n \") \" +\n \"from seasons s \" +\n \"join games g on s.id = g.season.id \";\n Query query = entityManager.createQuery(q);\n return (List<AllTimeSeasonBean>) query.getResultList();\n }", "@Override\n public Collection<resumenSemestre> resumenSemestre(int idCurso, int mesApertura, int mesCierre) throws Exception {\n Collection<resumenSemestre> retValue = new ArrayList();\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"select ma.nombremateria, p.idcuestionario as test, \"\n + \"round(avg(p.puntaje),2) as promedio, cue.fechainicio, MONTH(cue.fechacierre) as mes \"\n + \"from puntuaciones p, cuestionario cue, curso cu, materia ma \"\n + \"where cu.idcurso = ma.idcurso and ma.idmateria = cue.idmateria \"\n + \"and cue.idcuestionario = p.idcuestionario and cu.idcurso = ? \"\n + \"and MONTH(cue.fechacierre) >= ? AND MONTH(cue.fechacierre) <= ? and YEAR(cue.fechacierre) = YEAR(NOW())\"\n + \"GROUP by ma.nombremateria, MONTH(cue.fechacierre) ORDER BY ma.nombremateria\");\n pstmt.setInt(1, idCurso );\n pstmt.setInt(2, mesApertura);\n pstmt.setInt(3, mesCierre);\n rs = pstmt.executeQuery();\n while (rs.next()) { \n retValue.add(new resumenSemestre(rs.getString(\"nombremateria\"), rs.getInt(\"test\"), rs.getInt(\"promedio\"), rs.getInt(\"mes\")));\n }\n return retValue;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return retValue;\n\n\n }", "@Override\r\n\tpublic List<SalesAnalysis> getSalesAnalysis(Date fromDate, Date toDate) {\r\n\t\t\r\n\t\tList<SalesAnalysis> salesAnalysisDetails=new ArrayList<>();\r\n\t\tSalesAnalysis salesAnalysis=new SalesAnalysis();\r\n\t\t\r\n\t\t//get orders placed in the given period\r\n\t\tList<Order> orderDetails=orderService.getOrdersBetween(fromDate, toDate);\r\n\t\t\r\n\t\tHashMap<String, Double> purchasePriceDetails=new HashMap<>();\r\n\t\tHashMap<String, Double> salesPriceDetails=new HashMap<>();\r\n\t\tint qty=0;\r\n\t\tdouble salesPrice=0;\r\n\t\tdouble purchasePrice=0;\r\n\t\t\r\n\t\t//get total revenue for period\r\n\t\tdouble totalRevenue=getTotalRevenueBetween(fromDate, toDate);\r\n\t\t\r\n\t\t//get best seller details for the products, category-wise(from PRODUCT table)\r\n\t\tList<Object[]> bestSellerDetails=productService.getBestSellerId();\r\n\t\tSystem.out.println(bestSellerDetails);\r\n\t\t\r\n\t\t\r\n\t\t//for each product category, check sales details\r\n\t\tfor(Object[] object:bestSellerDetails)\t{\r\n\t\t\tString productCategory=(String)object[0];\r\n\t\t\tsalesPrice=0;\r\n\t\t\tpurchasePrice=0;\r\n\t\t\tpurchasePriceDetails.put(productCategory, purchasePrice);\r\n\t\t\tsalesPriceDetails.put(productCategory, salesPrice);\r\n\t\t\t\r\n\t\t\t//for each order, check product category and add details to maps\r\n\t\t\tfor(Order order:orderDetails)\t{\r\n\t\t\t\t\r\n\t\t\t\t//get products in this order\r\n\t\t\t\tList<CartProduct> products=order.getCart().getCartProducts();\r\n\t\t\t\t\r\n\t\t\t\t//getting purchase price details for each product ordered\r\n\t\t\t\tfor(CartProduct product:products)\t{\r\n\t\t\t\t\tif(product.getProduct().getProductCategory().equals(productCategory))\t{\r\n\t\t\t\t\t\tpurchasePrice=purchasePriceDetails.get(productCategory)+\r\n\t\t\t\t\t\t\t\t(product.getProduct().getQuantity()*product.getProduct().getProductPrice());\r\n\t\t\t\t\t\tpurchasePriceDetails.put(productCategory, purchasePrice);\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//getting sales price details for each product ordered\r\n\t\t\t\tfor(CartProduct product:products)\t{\r\n\t\t\t\t\tif(product.getProduct().getProductCategory().equals(productCategory))\t{\r\n\t\t\t\t\t\tqty=product.getQuantity();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tsalesPrice=salesPriceDetails.get(productCategory)+\r\n\t\t\t\t\t\t\t\t(qty*(100-product.getProduct().getDiscount())*product.getProduct().getProductPrice())/100;\r\n\t\t\t\t\t\tsalesPriceDetails.put(productCategory, salesPrice);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//make SalesAnalysis object using obtained data\r\n\t\t\tsalesAnalysis.setProductCategory(productCategory);\r\n\t\t\tsalesAnalysis.setMerchant(merchantService.getMerchantName((Integer)object[1]));\r\n\t\t\tsalesAnalysis.setProductQuantity(purchasePriceDetails.get(productCategory));\r\n\t\t\tsalesAnalysis.setProductSales(salesPriceDetails.get(productCategory));\r\n\t\t\tsalesAnalysis.setSalesPercent((salesAnalysis.getProductSales()*100)/salesAnalysis.getProductQuantity());\r\n\t\t\tsalesAnalysis.setTotalRevenue(totalRevenue);\r\n\t\t\t\r\n\t\t\t//make a list of sales analysis performed\r\n\t\t\tsalesAnalysisDetails.add(salesAnalysis);\r\n\t\t}\r\n\t\t\r\n\t\treturn salesAnalysisDetails;\r\n\t}", "private static CategoryDataset createDataset() throws SQLException, InterruptedException \n\t{ \n\t\t// creating dataset \n\t\tDefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\t\t\n\t\t//setting up the connexion\n\t\tConnection con = null;\n\t\tString conUrl = \"jdbc:sqlserver://\"+Login.Host+\"; databaseName=\"+Login.databaseName+\"; user=\"+Login.user+\"; password=\"+Login.password+\";\";\n\t\ttry \n\t\t{\n\t\t\tcon = DriverManager.getConnection(conUrl);\n\t\t} \n\t\tcatch (SQLException e1) \n\t\t{\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\t//this counter will allow me to run my while loop only once\n\t\tint cnt=0;\n\t\twhile(cnt<1)\n\t\t{ \n\t\t\t//check the query number at each call to the function in order to know which procedure must me executed\n\t\t\tif (queryNumber==0){\n\t\t\t\tcnt++;\n\t\t\t\tcstmt = con.prepareCall(\"{call avgMonthly(?,?,?,?)}\");\n\t\t\t\t\n\t\t\t\t//setting the procedures parameters with the one chosen by the user\n\t\t\t\tcstmt.setInt(1, Integer.parseInt(year));\n\t\t\t\tcstmt.setInt(2, Integer.parseInt(month));\n\t\t\t\tcstmt.setString(3, featureStringH);\t\n\t\t\t\tcstmt.setString(4, actionStringH);\t\n\t\t\t\tResultSet aveTempAvg = cstmt.executeQuery();\n\t\t\t\t\n\t\t\t\t// extracting the data of my query in order to plot it\n\t\t\t\tResultSetMetaData rsmd = aveTempAvg.getMetaData();\n\t\t\t\tif(rsmd!=null) \n\t\t\t\t{\n\t\t\t\t\twhile (aveTempAvg.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tString columnValue = aveTempAvg.getString(1);//latency\n\t\t\t\t\t\tint dayAxisNum=aveTempAvg.getInt(2);//average\n\t\t\t\t\t\tif(columnValue!=null) {\n\t\t\t\t\t\t\t//Adding the result of the query to the data set and setting y value to the average latency and x to the corresponding day\n\t\t\t\t\t\t\tdataset.setValue(Double.parseDouble(columnValue),\"series\",Integer.toString(dayAxisNum));\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\tdataset.setValue(0, (\"series\" +\"\"+0), \"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\telse if (queryNumber==1){\n\t\t\t\tcnt++;\n\t\t\t\tcstmt = con.prepareCall(\"{call avgDaily(?,?,?)}\");\t\n\t\t\t\t/*for the second query , the user will enter seperate year month and day \n\t\t\t\t so we wil have to concatenate the date into a string before setting the date value*/\n\t\t\t\tString newDate= year+\"-\"+month+\"-\"+day;\n\t\t\t\tcstmt.setString(1, newDate);\n\t\t\t\tcstmt.setString(2, featureStringH);\n\t\t\t\tcstmt.setString(3, actionStringH);\t\n\t\t\t\tResultSet aveTempAvg = cstmt.executeQuery();\n\t\t\t\t\n\t\t\t\t//extracting the data of the query\n\t\t\t\tResultSetMetaData rsmd = aveTempAvg.getMetaData();\n\t\t\t\tif(rsmd!=null) \n\t\t\t\t{\n\t\t\t\t\tint hour = 0;\n\t\t\t\t\twhile (aveTempAvg.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tString columnValue = aveTempAvg.getString(1);\n\t\t\t\t\t\tint hour2=aveTempAvg.getInt(2);\n\t\t\t\t\t\tif(columnValue!=null) {\n\t\t\t\t\t\t\t//setting y value to the average and the x is the corresponding hour\n\t\t\t\t\t\t\tdataset.setValue(Double.parseDouble(columnValue),\"series\",Integer.toString(hour2));\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\t//I will add 0 if I don't have the corresponding value of the specified Hour\n\t\t\t\t\t\t\tdataset.setValue(0, (\"series\" +\"\"+hour), \"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (queryNumber==2){\n\t\t\t\tcnt++;\n\t\t\t\t//Thread.sleep(100);\n\t\t\t\tcstmt = con.prepareCall(\"{call avgHour(?,?,?,?)}\");\t\n\t\t\t\tString newDate2= year+\"-\"+month+\"-\"+day;\n\t\t\t\t//same as for the daily query we have to set the parameters , we add to that the hour as last parameter\n\t\t\t\tcstmt.setString(1, newDate2);\n\t\t\t\tcstmt.setString(2, featureStringH);\n\t\t\t\tcstmt.setString(3, actionStringH);\n\t\t\t\tcstmt.setInt(4,Integer.parseInt(hourString));\n\t\t\t\tResultSet aveTempAvg = cstmt.executeQuery();\n\t\t\t\t\n\t\t\t\t//extract the data from the query\n\t\t\t\tResultSetMetaData rsmd = aveTempAvg.getMetaData();\n\t\t\t\tif(rsmd!=null) \n\t\t\t\t{\n\t\t\t\t\twhile (aveTempAvg.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tString columnValue = aveTempAvg.getString(1);\n\t\t\t\t\t\tint min=aveTempAvg.getInt(2);\n\t\t\t\t\t\tif(columnValue!=null) {\n\t\t\t\t\t\t\t//setting y value to the average and the x is the corresponding minute\n\n\t\t\t\t\t\t\tdataset.setValue(Double.parseDouble(columnValue),\"series\",Integer.toString(min));\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\t//adding 0 if I don't have the corresponding minute\n\t\t\t\t\t\t\tdataset.setValue(0, (\"series\"+min),\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn dataset; \n\t}", "HrHBscCpuQos selectByPrimaryKey(String bscid, Date day, Integer hour);", "@GetMapping(\"/getLatestPrice/{ticker}\")\n public String getLastestPrice(@PathVariable String ticker){\n String url = \"https://finnhub.io/api/v1/stock/profile2?symbol=\"+ticker+\"&token=c44j0b2ad3i82cb9pe4g\";\n RestTemplate restTemplate =new RestTemplate();\n ResponseEntity<String> rawCompanyProfile = restTemplate.getForEntity(url,String.class);\n JSONObject companyProfile = JSON.parseObject(rawCompanyProfile.getBody());\n String companyName = companyProfile.getString(\"name\");\n\n List<CandleModel> result = candleService.getCandleData(ticker);\n\n if (result == null||result.size()==0){\n return JSON.toJSONString(\"no candle data of this ticker found\");\n }\n\n Map<String,Object> latestPrice = new HashMap();\n latestPrice.put(\"description\",companyName);\n latestPrice.put(\"close\",result.get(result.size()-1).getClose());\n\n return JSON.toJSONString(latestPrice);\n }", "BigDecimal getAverageSellPrice();", "public static void getAllValidTickersWithExchangesAndSectors()\n {\n PrintWriter writer = null;\n HashMap<String,Integer> sec = new HashMap<>();\n HashMap<String,Integer> ex = new HashMap<>();\n int counter = 0;\n try {\n writer = new PrintWriter(\"data/validTickers.txt\", \"UTF-8\");\n BufferedReader br = new BufferedReader(new FileReader(\"data/tickers.csv\"));\n String sCurrentLine = null;\n while ((sCurrentLine = br.readLine()) != null) {\n counter++;\n String[] arr = sCurrentLine.split(\",\");\n String ticker = arr[0].substring(1, arr[0].length() - 1);\n int secIndex = arr.length - 1;\n int exIndex = arr.length - 3;\n if(arr[exIndex].equals(\"\") || arr[secIndex].equals(\"0\") || arr[secIndex].equals(\"\"))\n {\n continue;\n }\n System.out.println(counter+\" : \"+arr[exIndex]+\" : \"+ arr[secIndex]);\n String exchange = arr[exIndex].substring(1,arr[exIndex].length() -1);\n String sector = arr[secIndex];\n if(sec.containsKey(sector))\n {\n sector = sec.get(sector).toString();\n }\n else\n {\n sec.put(sector,sec.size()+1);\n sector = sec.get(sector).toString();\n }\n if(ex.containsKey(exchange))\n {\n exchange = ex.get(exchange).toString();\n }\n else\n {\n ex.put(exchange,ex.size()+1);\n exchange = ex.get(exchange).toString();\n }\n try {\n\n File f = new File(\"data/stockData/\" + ticker);\n if(f.exists() && !f.isDirectory()) {\n writer.println(ticker+\",\"+sector+\",\"+exchange);\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n\n }\n writer.close();\n\n System.out.println(\"Loading ExMap : \"+ ex.size()+\" & SectorMap : \"+sec.size());\n writer = new PrintWriter(\"data/exchangeMap.txt\", \"UTF-8\");\n for( String s : ex.keySet())\n {\n writer.println(s+\",\"+ex.get(s));\n }\n writer.close();\n writer = new PrintWriter(\"data/sectorMap.txt\", \"UTF-8\");\n for( String s : sec.keySet())\n {\n writer.println(s+\",\"+sec.get(s));\n }\n writer.close();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n if(writer != null)\n {\n writer.close();\n }\n }\n\n\n\n\n }", "@Override\r\n\tpublic List<ProductOptionVO> productOptionStockAlarm() {\n\t\treturn getSqlSession().selectList(namespace+\".productOptionStockAlarm\");\r\n\t}", "void all_Data_retrieve_Days_Desc() {\n\t\t\tStatement stm=null;\n\t\t\tResultSet rs=null;\n\t\t\ttry{\n\t\t\t\t//Retrieve tuples by executing SQL command\n\t\t\t stm=con.createStatement();\n\t\t String sql=\"select * from \"+tableName+\" order by Days_on_Market desc\";\n\t\t\t rs=stm.executeQuery(sql);\n\t\t\t DataGUI.model.setRowCount(0);\n\t\t\t //Add rows to table model\n\t\t\t while (rs.next()) {\n\t Vector<Object> newRow = new Vector<Object>();\n\t //Add cells to each row\n\t for (int i = 1; i <=colNum; i++) \n\t newRow.addElement(rs.getObject(i));\n\t DataGUI.model.addRow(newRow);\n\t }//end of while\n\t\t\t //Catch SQL exception\n\t }catch (SQLException e ) {\n\t \te.printStackTrace();\n\t\t } finally {\n\t\t \ttry{\n\t\t if (stm != null) stm.close(); \n\t\t }\n\t\t \tcatch (SQLException e ) {\n\t\t \t\te.printStackTrace();\n\t\t\t }\n\t\t }\n\t\t}", "public abstract LocalDateDoubleTimeSeries getTimeSeries(ObservableKey key);", "@Override\n protected void reduce(Text key, Iterable<Text> values, Context context) throws IOException, InterruptedException {\n long maxStockVolume = Long.MIN_VALUE;\n String maxDate = null;\n long minStockVolume = Long.MAX_VALUE;\n String minDate = null;\n double maxStockPriceClose = Double.MIN_VALUE;\n \n for(Text v: values){\n String [] stocks = v.toString().split(\",\");\n\n\n long maxStockVolumeLoc = Long.parseLong(stocks[1]);\n String maxDateLoc = stocks[2];\n\n long minStockVolumeLoc = Long.parseLong(stocks[3]);\n String minDateLoc = stocks[4];\n\n\n double priceClose = Double.parseDouble(stocks[0]);\n \n \n if(maxStockVolumeLoc>maxStockVolume){\n maxStockVolume= maxStockVolumeLoc;\n maxDate = maxDateLoc;\n }\n\n if(minStockVolumeLoc<minStockVolume){\n minStockVolume= minStockVolumeLoc;\n minDate = minDateLoc;\n }\n \n if(priceClose>maxStockPriceClose){\n maxStockPriceClose = priceClose;\n }\n }\n\n\n\n \n \n String value= \"dateMaxStockVolume:'\" + maxDate + '\\'' +\n \", dateMinStockVolume:'\" + minDate + '\\'' +\n \", maxStockPriceClose:\" + maxStockPriceClose + '\\'' ;\n \n \n context.write(key,new Text(value));\n \n }", "public void graph() throws ParseException, InterruptedException {\n\n\t\t//setting up the connextion URL\n\t\tConnection con = null;\n\t\tString conUrl = \"jdbc:sqlserver://\"+Login.Host+\"; databaseName=\"+Login.databaseName+\"; user=\"+Login.user+\"; password=\"+Login.password+\";\";\n\t\ttry {\n\t\t\tcon = DriverManager.getConnection(conUrl);\n\t\t} catch (SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tStatement stmt;\n\t\ttry {\n\n\t\t\tstmt = con.createStatement( );\n\n\t\t\t//in this loop I will draw the dynamic charts (separeted and combined)\n\t\t\twhile(infinite){\n\t\t\t\ttry {\n\t\t\t\t\t//this thread is necessary otherwise I will be adding 2 values at the same moment which will not be accepted \n\t\t\t\t\t//by the datatset \n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\n\t\t\t\t\t//preparing the call of the procedure\n\t\t\t\t\tpstmt = con.prepareCall(\"{call avgPr(?,?)}\");\t\t \n\t\t\t\t\tpstmt.setString(1, featureString);\n\t\t\t\t\tpstmt.setString(2, actionString);\t\t\t\t \t\t\n\t\t\t\t\tResultSet aveTempAvg = pstmt.executeQuery();\n\t\t\t\t\t\n\t\t\t\t\t//extracting the data from the query\n\t\t\t\t\tResultSetMetaData rsmd = aveTempAvg.getMetaData();\n\t\t\t\t\tif(rsmd!=null) {\n\t\t\t\t\t\tint columnsNumber = rsmd.getColumnCount();\n\t\t\t\t\t\twhile (aveTempAvg.next()) {\n\t\t\t\t\t\t\tfor (int i = 1; i <= columnsNumber; i++) {\n\t\t\t\t\t\t\t\tif (i > 1) System.out.print(\", \");\n\t\t\t\t\t\t\t\tString columnValue = aveTempAvg.getString(i);\n\t\t\t\t\t\t\t\tif(columnValue!=null) {\n\t\t\t\t\t\t\t\t\tthis.seriesAvg.add( new Millisecond(),Double.parseDouble(columnValue));\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t//I will add 0 if there is no value\n\t\t\t\t\t\t\t\t\tthis.seriesAvg.add( new Millisecond(),0);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthis.seriesAvg.add( new Millisecond(),0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//preparing for the call of 99 percentile procedure\n\t\t\t\t\tpstmt = con.prepareCall(\"{call ninetyNinePr(?,?)}\");\n\t\t\t\t\tpstmt.setString(1, featureString);\n\t\t\t\t\tpstmt.setString(2, actionString);\n\t\t\t\t\tResultSet ave99 = pstmt.executeQuery();\n\t\t\t\t\t\n\t\t\t\t\t//extracting data from the query\n\t\t\t\t\tResultSetMetaData rsmd2 = aveTempAvg.getMetaData();\n\t\t\t\t\tif(rsmd2!=null) {\n\n\t\t\t\t\t\tint columnsNumber2 = rsmd2.getColumnCount();\n\t\t\t\t\t\twhile (ave99.next()) {\n\t\t\t\t\t\t\tfor (int i = 1; i <= columnsNumber2; i++) {\n\t\t\t\t\t\t\t\tif (i > 1) System.out.print(\", \");\n\t\t\t\t\t\t\t\tString columnValue2 = ave99.getString(i);\n\n\t\t\t\t\t\t\t\tif(columnValue2!=null ) {\n\n\t\t\t\t\t\t\t\t\tthis.series99.add(new Millisecond(),Double.parseDouble(columnValue2));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t// if I don't have a value I will add 0 \n\t\t\t\t\t\t\t\t\tthis.series99.add(new Millisecond(),0);\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthis.series99.add( new Millisecond(),0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//preparing for the call of the 95 procedure\n\t\t\t\t\tpstmt = con.prepareCall(\"{call ninetyFivePr(?,?)}\");\n\t\t\t\t\tpstmt.setString(1, featureString);\n\t\t\t\t\tpstmt.setString(2, actionString); \n\t\t\t\t\tResultSet ave95 = pstmt.executeQuery();\n\t\t\t\t\t\n\t\t\t\t\t//extracting the data from my query\n\t\t\t\t\tResultSetMetaData rsmd3 = aveTempAvg.getMetaData();\n\t\t\t\t\tif(rsmd3!=null) {\n\t\t\t\t\t\tint columnsNumber3 = rsmd3.getColumnCount();\n\t\t\t\t\t\twhile (ave95.next()) {\n\t\t\t\t\t\t\tfor (int i = 1; i <= columnsNumber3; i++) {\n\t\t\t\t\t\t\t\tString columnValue3 = ave95.getString(i);\n\t\t\t\t\t\t\t\tif(columnValue3!=null ) {\n\n\t\t\t\t\t\t\t\t\tthis.series95.add( new Millisecond(\t),Double.parseDouble(columnValue3));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tthis.series95.add( new Millisecond(),0);\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\n\t\t\t\t\t\tthis.series95.add( new Millisecond(),0);\n\n\t\t\t\t\t}\n\t\t\t\t} catch(SQLException ex) {\n\t\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\t} \n\t\t\t}\n\n\t\t} catch (SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "public static List<YahooStock> retrieveYahooStocks(String symbol) {\n\t\tURL yahooFinanceUrl2 = null;\n\t\tURLConnection urlConnection;\n\t\tList<YahooStock> yahooStockList = null;\n\t\ttry {\n\t\t\t//yahooFinanceUrl1 = new URL(\"http://download.finance.yahoo.com/d/quotes.csv?s=\" + symbol + \"&f=sl1d1t1c1ohgv&e=.csv\");\n\t\t\tyahooFinanceUrl2 = new URL(\"http://finance.yahoo.com/d/quotes.csv?s=\" + symbol + \"&f=sl1d1t1c1ohgv&e=.csv\");\n\t\t} catch (MalformedURLException mue) {\n\t\t\tmue.printStackTrace();\n\t\t} \n\t\ttry {\n\t\t\turlConnection = yahooFinanceUrl2.openConnection();\n\t\t\tBufferedReader dataIn = new BufferedReader(new InputStreamReader(urlConnection.getInputStream())); \n\t\t\tString inputLine; \n\t\t\tyahooStockList = new ArrayList<YahooStock>();\n\t\t\twhile ((inputLine = dataIn.readLine()) != null) {\n\t\t\t\tString[] yahooStockInfo = inputLine.split(\",\");\n\t\t\t\tYahooStock yahooStock = new YahooStock();\n\t\t\t\tyahooStock.setSymbol(yahooStockInfo[0].replaceAll(\"\\\"\", \"\"));\n\t\t\t\tyahooStock.setLastTrade(Double.valueOf(yahooStockInfo[1]));\n\t\t\t\tyahooStock.setTradeDate(yahooStockInfo[2]);\n\t\t\t\tyahooStock.setTradeTime(yahooStockInfo[3]);\n\t\t\t\tyahooStock.setChange(Double.valueOf(yahooStockInfo[4]));\n\t\t\t\tyahooStock.setOpen(Double.valueOf(yahooStockInfo[5]));\n\t\t\t\tyahooStock.setHigh(Double.valueOf(yahooStockInfo[6]));\n\t\t\t\tyahooStock.setLow(Double.valueOf(yahooStockInfo[7]));\n\t\t\t\tyahooStock.setVolume(Double.valueOf(yahooStockInfo[8]));\n\t\t\t\tyahooStock.setSmallChartUrl(\"http://ichart.finance.yahoo.com/t?s=\" + yahooStock.getSymbol());\n\t\t\t\tyahooStock.setLargeChartUrl(\"http://chart.finance.yahoo.com/w?s=\" + yahooStock.getSymbol());\n\t\t\t\tyahooStockList.add(yahooStock);\n\t\t\t} \n\t\t\tdataIn.close(); \n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t} \n\t\treturn yahooStockList; \t\n\t}", "public List<InputData> getClimateData(String climate) {\n String SQL = \"SELECT * FROM world_bank WHERE climate = ? GROUP BY climate ORDER BY climate\";\n List<InputData> records = jdbcTemplate.query(SQL, new DataMapper());\n return records;\n }", "public void populateSeriesFromDB() throws SQLException\r\n {\r\n Connection conn = null;\r\n PreparedStatement statement = null;\r\n ResultSet resultSet = null;\r\n \r\n try{\r\n //1.connect to the DB\r\n conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/user?autoReconnect=true&useSSL=false\", \"root\", \"longlegs94\");\r\n \r\n //2. create the string for the sql statement\r\n String sql = \"SELECT MONTHNAME(dateWorked), SUM(hoursWorked) \" +\r\n \"FROM hoursworked \" +\r\n \"WHERE userID=? AND YEAR(dateWorked)=? \" +\r\n \"GROUP BY MONTH(dateWorked);\";\r\n //3. create the statement\r\n statement = conn.prepareCall(sql);\r\n \r\n //4. bind the parameters\r\n statement.setInt(1, user.getUserID());\r\n statement.setInt(2, LocalDate.now().getYear());\r\n \r\n //5.execute the query\r\n resultSet = statement.executeQuery();\r\n \r\n //6.loop over result set and build series\r\n while(resultSet.next())\r\n {\r\n hoursLoggedSeries.getData().add(new XYChart.Data(resultSet.getString(1),resultSet.getInt(2)));\r\n }\r\n\r\n }\r\n catch(SQLException e)\r\n {\r\n System.err.println(e.getMessage());\r\n }\r\n finally\r\n {\r\n if(conn!= null)\r\n conn.close();\r\n if(statement != null)\r\n statement.close();\r\n if(resultSet != null)\r\n resultSet.close();\r\n }\r\n }", "public Map<String, double[]> pollDatabases(ServiceToken token){\r\n Map <String, double[]> results = new HashMap<String, double[]>();\r\n\r\n /*\r\n results.put(\"openCellId\", openCellId.getLocation(mcc, mnc, lac, cellid));\r\n results.put(\"openBMap\", openBMap.getLocation(mcc, mnc, lac, cellid));\r\n */ \r\n return results;\r\n }" ]
[ "0.6156036", "0.5832248", "0.56697875", "0.55162036", "0.5489111", "0.5427569", "0.5313548", "0.52817774", "0.525511", "0.52354383", "0.51499057", "0.51352996", "0.5129239", "0.5111864", "0.5090212", "0.50505185", "0.5046558", "0.5037822", "0.5027819", "0.50029945", "0.4997808", "0.49864674", "0.49833247", "0.49754095", "0.49736682", "0.49711034", "0.49653193", "0.49335384", "0.49202636", "0.49185762", "0.48993927", "0.48947206", "0.488782", "0.488285", "0.4882376", "0.48780483", "0.4876759", "0.48724577", "0.4868528", "0.48639187", "0.48556542", "0.48518518", "0.48379517", "0.4832081", "0.48312196", "0.4830064", "0.48298806", "0.4824002", "0.48193097", "0.48132482", "0.4808641", "0.48065504", "0.48049656", "0.48023704", "0.47963735", "0.47913083", "0.4781642", "0.47739077", "0.47701675", "0.47672576", "0.47587264", "0.47411907", "0.47405067", "0.47287586", "0.47196233", "0.47147465", "0.47138336", "0.47114083", "0.47087377", "0.47056073", "0.4695955", "0.4694097", "0.46844706", "0.46808612", "0.46752563", "0.46708575", "0.46614957", "0.46553814", "0.46452108", "0.4644419", "0.46442008", "0.46352476", "0.46306306", "0.46301132", "0.46268022", "0.46242952", "0.46226108", "0.46225625", "0.46109396", "0.46096352", "0.46046934", "0.46006504", "0.45978096", "0.45948195", "0.45942438", "0.45928553", "0.45925856", "0.45892036", "0.45879805", "0.4584847" ]
0.636197
0
below methods are to retrieve data for sector for a special period
@Transactional(readOnly = true) @Query(value = "select avg(price) as price, date_format(curTime,'%Y-%m-%d') as cur_date from StockPrice sp " + "where curTime in (select lastDay from BFWeekDay bfw where date(lastDay) between :fromDate and :toDate) and " + "stockCd in (select stockCd from Stock s where sectorCd=:sectorCd) group by curTime order by curTime") public List<Object[]> findWeekBySectorCd(@Param("sectorCd") String sectorCd, @Param("fromDate") Date fromDate, @Param("toDate") Date toDate);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Map<String, Object> getSectorData() {\r\n Map<String, Object> data = new LinkedHashMap<String, Object>();\r\n for (String key : sectorData) {\r\n if (lineData.containsKey(key)) {\r\n if (channelMap.containsKey(key)) {\r\n channelMap.put(key, channelMap.get(key) + 1);\r\n }\r\n data.put(key, lineData.get(key));\r\n }\r\n }\r\n return data;\r\n }", "public List<SectorModel> getAllSectorsAndIUS();", "public java.lang.CharSequence getSector() {\n return sector;\n }", "public java.lang.CharSequence getSector() {\n return sector;\n }", "public String getData(String parameterKey, String stationKey, String periodName) {\n try{\n return readStringFromUrl(metObsAPI + \"/version/latest/parameter/\" + parameterKey + \"/station/\" + stationKey + \"/period/\" + periodName + \"/data.csv\");\n } catch(IOException e){\n System.out.println(e);\n } catch(Exception e){\n System.out.println(e);\n }\n\n return null;\n\n }", "public Sector getSectorFromDate(Date date) {\n\t\treturn m_flightplan.getSectorFromDate(date);\n\t}", "public void readSectorDiskOnly(TransID tid, int sectorNum, byte buffer[])\n throws IOException, IllegalArgumentException, \n IndexOutOfBoundsException{\t\t\t\t\t\t\t\t// Not quite done yet\n\t try{\n\t\t ADisk_lock.lock();\n\n\t readTid = tid.getTidfromTransID();\n\t readSector = sectorNum;\n d.startRequest(Disk.READ, tid.getTidfromTransID(), sectorNum, buffer);\n readWait();\n\t }\n\t finally{\n\t\t ADisk_lock.unlock();\n\t }\n}", "public void readSector(TransID tid, int sectorNum, byte buffer[])\n throws IOException, IllegalArgumentException, \n IndexOutOfBoundsException{\t\t\t\t\t\t\t\t// Not quite done yet\n\t try{\n\t\t ADisk_lock.lock();\n\n\t\t readTid = tid.getTidfromTransID();\n readSector = sectorNum;\n d.startRequest(Disk.READ, tid.getTidfromTransID(), sectorNum, buffer);\n readWait();\n \n wblist.checkRead(sectorNum, buffer);\n Transaction temp = atranslist.get(tid);\n if(temp != null)\n \t temp.checkRead(sectorNum, buffer);\n\t }\n\t finally{\n\t\t ADisk_lock.unlock();\n\t }\n }", "public int[] getSectors() {\n return sectors;\n }", "private int getSector(String key) // returns sector number\n\t\t\t\t\t\t\t\t\t\t// indicated by key\n\t{\n\t\tkey += \" \";// add spaces, enough to\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// cover the 27 minimum\n\t\tkey = key.substring(0, 27);// get rid of any extra\n\t\tchar[] k = key.toCharArray();// then convert to char array\n\t\t/*\n\t\t * if it's greater or equal to the first key and less than the next key,\n\t\t * move down a layer\n\t\t * \n\t\t * else move on to the next key and repeat.\n\t\t */\n\t\tint datasector = indexRoot;\n\t\tchar[] sector = new char[512];\n\t\tchar[][] keys = new char[15][27];\n\t\tchar[][] sectornrs = new char[15][6];\n\t\tsector = disk.readSector(datasector);\n\t\t// get the root index...\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tkeys[i] = getPartKey(sector, i);\n\t\t}\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tsectornrs[i] = getPartIndex(sector, i);\n\t\t}\n\n\t\tboolean brk = false;\n\n\t\tfor (int i = 0; i < 14 && !brk; i++) {\n\t\t\t// check the key agains the keys we have\n\t\t\tint p = compare(k, keys[i]);\n\t\t\tint q = compare(k, keys[i + 1]);\n\t\t\tif ((p >= 0 && q < 0) || (q >= 0 && keys[i + 1][0] == '\\000')) {\n\t\t\t\t// we've got a match.\n\t\t\t\t// get the sector nr\n\t\t\t\tint number = Integer.valueOf(new String(sectornrs[i]).trim());\n\t\t\t\tif (number > 1000 && number < indexStart) {\n\t\t\t\t\tdatasector = number;\n\t\t\t\t\tbrk = true;\n\t\t\t\t} else {\n\t\t\t\t\t/*\n\t\t\t\t\t * proceed to check which one of the next row we need.\n\t\t\t\t\t */\n\t\t\t\t\tfor (int w = 0; w < 14; w++) {\n\n\t\t\t\t\t\tsector = disk.readSector(number + w);\n\t\t\t\t\t\tchar[] t = getPartKey(sector, 0);\n\t\t\t\t\t\tif (w > 1 && compare(t, keys[w - 1]) >= 0) {\n\t\t\t\t\t\t\tkeys[w] = getPartKey(sector, w);\n\t\t\t\t\t\t\tsectornrs[w] = getPartIndex(sector, w);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfor (int r = 0; r < 27; r++) {\n\t\t\t\t\t\t\t\tkeys[w][r] = '\\000';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfor (int r = 0; r < 6; r++) {\n\t\t\t\t\t\t\t\tsectornrs[w][r] = '\\000';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// brk=true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t// after the code above we end up at the index of the next index where\n\t\t// there are 15 more possibilities inside the object. That's what we\n\t\t// check here\n\t\t// read the next 15 lines into an array of char[]\n\t\tchar[][] buffers = new char[15][512];\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tchar[] temp = disk.readSector(datasector + i);\n\t\t\tfor (int j = 0; j < 512; j++) {\n\t\t\t\tbuffers[i][j] = temp[j];\n\t\t\t}\n\t\t}\n\n\t\t// get the first key of each buffer\n\t\tkeys = new char[15][27];\n\t\tsectornrs = new char[15][6];\n\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tint j = 0;\n\t\t\tfor (; j < 27; j++) {\n\t\t\t\tkeys[i][j] = buffers[i][j];\n\t\t\t}\n\t\t\tint p = 0;\n\t\t\tfor (; j < 33; j++) {\n\t\t\t\tsectornrs[i][p] = buffers[i][j];\n\t\t\t\tp++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 14; i++) {\n\t\t\tint p = compare(k, keys[i]);\n\t\t\tint q = compare(k, keys[i + 1]);\n\t\t\t// the item is in this, or falls between the keys.\n\t\t\tif ((p >= 0 && q < 0) || (q >= 0 && keys[i + 1][0] == '\\000')) {\n\t\t\t\t// set all the keys equal to the line at datasector+i\n\t\t\t\tdatasector += i;\n\t\t\t\t// sector = disk.readSector(datasector);\n\t\t\t\ti = 15;\n\t\t\t}\n\t\t}\n\n\t\t// parse the records in this sector\n\t\tkeys = new char[15][27];\n\t\tsectornrs = new char[15][6];\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tint j = 0;\n\n\t\t\tchar[] strk = getPartKey(sector, i);\n\t\t\tchar[] stri = getPartIndex(sector, i);\n\t\t\tfor (; j < 27; j++) {\n\t\t\t\tkeys[i][j] = strk[j];\n\t\t\t}\n\t\t\tint p = 0;\n\t\t\tfor (; j < 33; j++) {\n\t\t\t\tsectornrs[i][p] = stri[p];\n\t\t\t\tp++;\n\t\t\t}\n\t\t}\n\n\t\t// go through each record in this index to find where it would belong\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tint p = compare(k, keys[i]);\n\t\t\tint q = compare(k, keys[i + 1]);\n\n\t\t\t// the item is in this, or falls between the keys.\n\t\t\tif ((p >= 0 && q < 0) || (q >= 0 && keys[i + 1][0] == '\\000')) {\n\t\t\t\t// set all the keys equal to the line at datasector+i\n\t\t\t\tint num = 0;\n\n\t\t\t\tdatasector += num;// set it equal to the number followed by the\n\t\t\t\t\t\t\t\t\t// key...\n\t\t\t\ti = 15;\n\t\t\t}\n\t\t}\n\t\t// inside this index record, find the sector to which the key would\n\t\t// belong\n\t\tsector = disk.readSector(datasector);\n\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tint j = 0;\n\n\t\t\tchar[] strk = getPartKey(sector, i);\n\t\t\tchar[] stri = getPartIndex(sector, i);\n\t\t\tfor (; j < 27; j++) {\n\t\t\t\tkeys[i][j] = strk[j];\n\t\t\t}\n\t\t\tint p = 0;\n\t\t\tfor (; j < 33; j++) {\n\t\t\t\tsectornrs[i][p] = stri[p];\n\t\t\t\tp++;\n\t\t\t}\n\t\t}\n\t\tif (datasector >= 1000 && datasector < indexStart) {\n\t\t\treturn datasector;\n\n\t\t}\n\t\tfor (int i = 0; i < 14; i++) {\n\t\t\tint p = compare(k, keys[i]);\n\t\t\tint q = compare(k, keys[i + 1]);\n\t\t\t// the item is in this, or falls between the keys.\n\t\t\tif ((p >= 0 && q < 0)) {\n\t\t\t\t// set all the keys equal to the line at datasector+i\n\t\t\t\tdatasector = Integer.parseInt(new String(\n\t\t\t\t\t\tgetPartIndex(sector, i)).trim());// set it equal to the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// number followed\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// by the key...\n\t\t\t\ti = 15;\n\t\t\t} else if ((q >= 0) && keys[i + 1][0] == '\\000') {\n\t\t\t\t// the next index doesn't exist...\n\t\t\t\tdatasector = Integer.parseInt(new String(getPartIndex(sector,\n\t\t\t\t\t\ti + 1)).trim());// set it equal to the number followed\n\t\t\t\t\t\t\t\t\t\t// by the key...\n\t\t\t\ti = 15;\n\t\t\t} else if (i == 13) {\n\t\t\t\tdatasector = Integer.parseInt(new String(getPartIndex(sector,\n\t\t\t\t\t\ti + 1)).trim());\n\t\t\t}\n\t\t}\n\t\treturn datasector;\n\t}", "public void\tread_sector_data_into_buffer(int drive, int side,int data_id,char[] buf, int length);", "String gini_GetSectorID(int ent_id) {\n String name;\n switch (ent_id) {\n case 0:\n name = \"Northern Hemisphere Composite\";\n break;\n case 1:\n name = \"East CONUS\";\n break;\n case 2:\n name = \"West CONUS\";\n break;\n case 3:\n name = \"Alaska Regional\";\n break;\n case 4:\n name = \"Alaska National\";\n break;\n case 5:\n name = \"Hawaii Regional\";\n break;\n case 6:\n name = \"Hawaii National\";\n break;\n case 7:\n name = \"Puerto Rico Regional\";\n break;\n case 8:\n name = \"Puerto Rico National\";\n break;\n case 9:\n name = \"Supernational\";\n break;\n case 10:\n name = \"NH Composite - Meteosat/GOES E/ GOES W/GMS\";\n break;\n case 11:\n name = \"Central CONUS\";\n break;\n case 12:\n name = \"East Floater\";\n break;\n case 13:\n name = \"West Floater\";\n break;\n case 14:\n name = \"Central Floater\";\n break;\n case 15:\n name = \"Polar Floater\";\n break;\n default:\n name = \"Unknown-ID\";\n }\n\n return name;\n }", "public Sector getSector(int x, int z){\n\t\tfor(int i = 0; i < this.sectors.length; i++){\n\t\t\tfor(int j = 0; j < this.sectors[0].length; j++){\n\t\t\t\tif(sectors[j][i] == null) continue;\n\t\t\t\tVector pos = sectors[j][i].getSectorPosition();\n\t\t\t\tif(pos.getIHat() == x && pos.getKHat() == z) return sectors[j][i];\n\t\t\t}\n\t\t}\n\t\treturn this.generateSector(x, z);\n\t}", "public void recibirDatos(Sector sector) {\n this.txtNombreSector.setText(sector.getNombresector());\n this.txtDescripcion.setText(sector.getDescripcionsector());\n \n }", "private Sector getSectorForBlockIndex( int blockIndex) {\n\n\t// The block index of the first sector of each track.\n\tint [] trackStart = { 0, 21, 42, 63, 84, 105, 126, 147\n\t\t\t , 168, 189, 210, 231, 252, 273, 294, 315\n\t\t\t , 336, 357, 376, 395, 414, 433, 452, 471\n\t\t\t , 490, 508, 526, 544, 562, 580, 598, 615\n\t\t\t , 632, 649, 666, 683, 700, 717, 734, 751\n\t\t\t , 768 };\n\tint currentTrackIndex = 0;\n\tfor( int currentTrackStart : trackStart) {\n\t \n\t if( blockIndex < currentTrackStart) {\n\t\tbreak;\n\t }\n\n\t ++currentTrackIndex; // Check the next track\n\t}\n\n\t// Check, if the track is within a reasonable range.\n\tif( ( currentTrackIndex < 1) || ( currentTrackIndex > 40)) {\n\t \n\t return null; // Ignore tracks > 40 for now.\n\t}\n\n\t// Calculate the sector offset.\n\tint sectorIndex = blockIndex - trackStart[ currentTrackIndex - 1];\n\t\n\t// Try to find the sector with the given track and sector index in this image.\n\treturn getSector( currentTrackIndex, sectorIndex);\n }", "private Object[][] getOverTimeAmt(String month, String year, String divId) {\r\n\t\tObject[][] overTimeData = null;\r\n\t\ttry {\r\n\t\t\tString query = \"\";\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn overTimeData;\r\n\t}", "@Override\n\tpublic List<String> listSector() {\n\t\treturn repository.distinctSector();\n\t}", "public void setSector(java.lang.CharSequence value) {\n this.sector = value;\n }", "public Vector getSectorPosition(){\n\t\treturn this.sectorPos;\n\t}", "public void drawSectorCircle(float x, float y, float r1, float r2, float thOffset, int slices, Colour colourIn, Colour colourOut) {\n\t\tdrawSectorArc(x, y, r1, r2, thOffset, (float)(2*Math.PI) + thOffset, slices, colourIn, colourOut);\n\t}", "public List<PieChartSector> getPieChart(int year, Month month) throws SQLException {\n\t\tLocalDate from = LocalDate.of(year, month, 1);\n\t\tLocalDate to = LocalDate.of(year, month, month.length(from.isLeapYear()));\n\t\ttry (PreparedStatement statement = conn.prepareStatement(\n\t\t\t\t\"SELECT Category, sum(Amount) / data.total from transaction\\n\" + \n\t\t\t\t\"CROSS JOIN (\\n\" + \n\t\t\t\t\" SELECT sum(Amount) as total from transaction \\n\" + \n\t\t\t\t\" WHERE DATE between ? and ?\\n\" + \n\t\t\t\t\" and type = 'Expense'\\n\" + \n\t\t\t\t\") data\\n\" + \n\t\t\t\t\"WHERE DATE between ? and ?\\n\" + \n\t\t\t\t\"and type = 'Expense'\\n\" + \n\t\t\t\t\"GROUP BY Category, data.total;\")) {\n\t\t\tstatement.setDate(1, Date.valueOf(from));\n\t\t\tstatement.setDate(2, Date.valueOf(to));\n\t\t\tstatement.setDate(3, Date.valueOf(from));\n\t\t\tstatement.setDate(4, Date.valueOf(to));\n\t\t\ttry (ResultSet resultSet = statement.executeQuery()) {\n\t\t\t\tArrayList<PieChartSector> list = new ArrayList<>();\n\t\t\t\twhile (resultSet.next()) {\t\t\t\n\t\t\t\t\tlist.add(new PieChartSector(resultSet.getString(1), resultSet.getDouble(2)));\t\n\t\t\t\t}\n\t\t\t\treturn list;\n\t\t\t}\n\t\t}\n\t}", "public void updateSectors(Vector center){\n\t\tSector[][] newSectors = new Sector[loadDiameter][loadDiameter];\n\t\tint lowestX = (int) (center.getIHat() / Sector.SECTOR_WIDTH - (loadDiameter/2));\n\t\tint lowestZ = (int) (center.getKHat() / Sector.SECTOR_WIDTH - (loadDiameter/2));\n\t\tfor(int i = 0; i < loadDiameter; i++){\n\t\t\tfor(int j = 0; j < loadDiameter; j++){\n\t\t\t\tnewSectors[j][i] = getSector(i + lowestX, j + lowestZ);\n\t\t\t}\n\t\t}\n\t\tthis.sectors = newSectors;\n\t}", "public Integer getIdSector() {\r\n\t\treturn idSector;\r\n\t}", "public void drawSectorArc(float x, float y, float r1, float r2, float th1, float th2, int slices, Colour colour) {\n\t\tdrawSectorArc(x, y, r1, r2, th1, th2, slices, colour, colour);\n\t}", "byte[] getSegmentData(Locator locator) throws PhysicalResourceException;", "public c getCompData(c blk, int i) {\n/* 399 */ if (i >= 3 || this.h == 0) {\n/* 400 */ return this.e.getCompData(blk, i);\n/* */ }\n/* */ \n/* 403 */ return getInternCompData(blk, i);\n/* */ }", "public Object getfacilityData(int facilityTypeId, int sectionId,\n\t\t\tint timePeriodId, int districtId);", "public void drawSectorArc(float x, float y, float r1, float r2, float th1, float th2, int slices, Colour colourIn, Colour colourOut) {\t\t\n\t\tfloat maxAngle = th2 - th1;\n\t\tfloat anglePerSlice = maxAngle/slices;\n\n\t\tfor(int i = 0; i < slices; th1 += anglePerSlice, i++){\n\t\t\tdrawSector(x, y, r1, r2, th1, th1 + anglePerSlice, colourIn, colourOut);\n\t\t}\n\t}", "public SCDataSpec get(String key) throws IOException;", "public static void getAllValidTickersWithExchangesAndSectors()\n {\n PrintWriter writer = null;\n HashMap<String,Integer> sec = new HashMap<>();\n HashMap<String,Integer> ex = new HashMap<>();\n int counter = 0;\n try {\n writer = new PrintWriter(\"data/validTickers.txt\", \"UTF-8\");\n BufferedReader br = new BufferedReader(new FileReader(\"data/tickers.csv\"));\n String sCurrentLine = null;\n while ((sCurrentLine = br.readLine()) != null) {\n counter++;\n String[] arr = sCurrentLine.split(\",\");\n String ticker = arr[0].substring(1, arr[0].length() - 1);\n int secIndex = arr.length - 1;\n int exIndex = arr.length - 3;\n if(arr[exIndex].equals(\"\") || arr[secIndex].equals(\"0\") || arr[secIndex].equals(\"\"))\n {\n continue;\n }\n System.out.println(counter+\" : \"+arr[exIndex]+\" : \"+ arr[secIndex]);\n String exchange = arr[exIndex].substring(1,arr[exIndex].length() -1);\n String sector = arr[secIndex];\n if(sec.containsKey(sector))\n {\n sector = sec.get(sector).toString();\n }\n else\n {\n sec.put(sector,sec.size()+1);\n sector = sec.get(sector).toString();\n }\n if(ex.containsKey(exchange))\n {\n exchange = ex.get(exchange).toString();\n }\n else\n {\n ex.put(exchange,ex.size()+1);\n exchange = ex.get(exchange).toString();\n }\n try {\n\n File f = new File(\"data/stockData/\" + ticker);\n if(f.exists() && !f.isDirectory()) {\n writer.println(ticker+\",\"+sector+\",\"+exchange);\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n\n }\n writer.close();\n\n System.out.println(\"Loading ExMap : \"+ ex.size()+\" & SectorMap : \"+sec.size());\n writer = new PrintWriter(\"data/exchangeMap.txt\", \"UTF-8\");\n for( String s : ex.keySet())\n {\n writer.println(s+\",\"+ex.get(s));\n }\n writer.close();\n writer = new PrintWriter(\"data/sectorMap.txt\", \"UTF-8\");\n for( String s : sec.keySet())\n {\n writer.println(s+\",\"+sec.get(s));\n }\n writer.close();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n if(writer != null)\n {\n writer.close();\n }\n }\n\n\n\n\n }", "public export.serializers.avro.DeviceInfo.Builder setSector(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.sector = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "public void drawSectorCircle(float x, float y, float r1, float r2, float thOffset, int slices, Colour colour) {\n\t\tdrawSectorCircle(x, y, r1, r2, thOffset, slices, colour, colour);\n\t}", "void fetchHolidayRentalHousesData();", "Map<Date, Float> getFullCTR(Step step) throws SQLException;", "public List<Map<String,String>> getCCIData(int iusid, int timeperiodid,\n\t\t\tint areaId);", "private void setCurrSector ()\r\n\t{\r\n\t\tdouble rotTime = config.getRotTime();\r\n\t\tdouble rotPct = (double)(this.simTime % (long)rotTime) / rotTime;\r\n\t\tthis.sector = (int)Math.round(rotPct * config.getSectors());\r\n\t}", "private Set<Sector> createSectors() {\n\n // This will contain all the loaded sectors\n Set<Sector> sectors = new HashSet<>();\n\n int[][] colorGrid;\n\n try {\n\n String filePath = ZoneLoader.class.getResource(\n \"/maps/\" + zoneName.getFileName()).getFile();\n\n /* We try to load a Zone from file. It could throw an IOException\n . */\n colorGrid = MapIO.loadMap(filePath);\n\n } catch (IOException e) {\n\n /*\n * IO exception while loading the zone, it should not happen because\n * the user cannot directly insert a fileName but he can only choose\n * them from an enumeration. If there is an IOException then that\n * ZoneName is invalid and the user must select another one.\n */\n LOG.log(Level.SEVERE, \"Error loading Zone: \" + e.toString(), e);\n throw new InvalidZoneException(\n \"IO Exception while loading the Zone from file.\");\n\n }\n\n /* The size of the colorGrid */\n int gridWidth = colorGrid.length;\n int gridHeight = colorGrid[0].length;\n\n for (int col = 0; col < gridWidth; col++) {\n for (int row = 0; row < gridHeight; row++) {\n\n // Create a new CubicCoordinate\n // // !IMPORTANT! we start form (0, 0) // //\n CubicCoordinate coord = CubicCoordinate\n .createFromOddQ(col, row);\n\n // And use it to create a new Sector\n addSectorFromColor(sectors, colorGrid[col][row], coord);\n\n }\n }\n\n return sectors;\n\n }", "public export.serializers.avro.DeviceInfo.Builder clearSector() {\n sector = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "private void getChaRecordNew(TaxChallan taxChallan,Object[][] tdsParameter, Object[][] data) {\r\n\t\tdouble surcharge=0.00,totaltds=0.00;\r\n\t\tdouble educationCess=0.00;\r\n\t\tdouble totTds=0.00,totalTax=0.00;\r\n\t\t\r\n\t\t/**\r\n\t\t * this values are set...because they are used in java script for calculation\r\n\t\t * if in case total tax is changed.\r\n\t\t */\r\n\t\ttaxChallan.setEduCessPercen(String.valueOf(tdsParameter[0][1]));\r\n\t\ttaxChallan.setRebateLimit(String.valueOf(tdsParameter[0][2]));\r\n\t\ttaxChallan.setSurchargePercen(String.valueOf(tdsParameter[0][3]));\r\n\t\t\r\n\t\tint fromYear=0;\r\n\t\tint toYear=0;\r\n\t\tif(Integer.parseInt(taxChallan.getMonth())>=4 && Integer.parseInt(taxChallan.getMonth())<=12) {\r\n\t\t\tfromYear =Integer.parseInt(taxChallan.getYear());\r\n\t\t\ttoYear=fromYear+1;\r\n\t\t } //end of if\r\n\t\telse if(Integer.parseInt(taxChallan.getMonth())>=1 && Integer.parseInt(taxChallan.getMonth())<=3) {\r\n\t\t fromYear =Integer.parseInt(taxChallan.getYear())-1;\r\n\t\t toYear=Integer.parseInt(taxChallan.getYear());\r\n\t\t} //end of else if\t\r\n\t\t\r\n\t\tArrayList<Object> challanList = new ArrayList<Object>();\r\n\t\t\r\n\t\t/*\r\n\t\t * Following loop is used to set the employee id,name,challan tds,challan surcharge,education cess to every employee\r\n\t\t * those who belong to the selected division\r\n\t\t */\r\n\t\tObject empTaxIncome[][] = null;\r\n\t\ttry {\r\n\t\t\tString empIncomeQuery = \"SELECT TO_CHAR(NVL(TDS_TAXABLE_INCOME,0),9999999990.99),TDS_EMP_ID FROM HRMS_TDS \"\r\n\t\t\t\t\t\t\t\t\t+\" WHERE TDS_FROM_YEAR=\"+fromYear+\" AND TDS_TO_YEAR=\"+toYear+\" ORDER BY TDS_EMP_ID\";\r\n\t\t\tempTaxIncome = getSqlModel().getSingleResult(empIncomeQuery);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in empIncomeQuery\",e);\r\n\t\t} //end of catch\r\n\t\t\r\n\t\tString challanCodeQuery =\"SELECT NVL(MAX(CHALLAN_CODE),0)+1 FROM HRMS_TAX_CHALLAN\";\r\n\t\tObject chalCodeObj[][] = getSqlModel().getSingleResult(challanCodeQuery);\r\n\t\t\r\n\t\tString challanCode = String.valueOf(chalCodeObj[0][0]);\r\n\t\t\r\n\t\ttry{\t\r\n\t\t\tfor(int i=0;i<data.length;i++){\r\n\t\t\t\tTaxChallan bean=new TaxChallan(); \r\n\t\t\t\tdouble amount=0.00;\r\n\t\t\t\tObject[][] challanTax = null;\r\n\t\t\t\tdouble chkAmount=0.00;\r\n\r\n\t\t\t\tif(empTaxIncome!=null && empTaxIncome.length!=0){\r\n\t\t\t\t\tfor (int j = 0; j < empTaxIncome.length; j++) {\r\n\t\t\t\t\t\t if(String.valueOf(empTaxIncome[j][1]).equals(String.valueOf(data[i][0]))){\r\n\t\t\t\t\t\t\t amount=Double.parseDouble(String.valueOf(empTaxIncome[j][0]));\r\n\t\t\t\t\t\t } //end of if\r\n\t\t\t\t\t} //end of loop\r\n\t\t\t\t} //end of if\r\n\t\t\t\telse{\r\n\t\t\t\t\tamount=0.00;\r\n\t\t\t\t} //end of else\r\n\t\t\t\t\r\n\t\t\t\tlogger.info(\"amount is\"+amount);\r\n\t\t\t\t try {\r\n\t\t\t\t\tchallanTax = getTaxDtls(Double.parseDouble(String.valueOf(data[i][3])), Double\r\n\t\t\t\t\t\t\t.parseDouble(String.valueOf(tdsParameter[0][2])),amount, tdsParameter);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tlogger.error(\"exception in challanTax\",e);\r\n\t\t\t\t} //end of catch\r\n\t\t\t\tlogger.info(\"data[i][2] emp name--->\"+data[i][2]); \r\n\t\t\t\tdouble tottds = Double.parseDouble(String.valueOf(challanTax[0][0]));\r\n\t\t\t//\ttotaltds += tottds;\r\n\t\t\t\tlogger.info(\"totaltds-------->\"+totaltds);\r\n\t\t\t\tdouble sur=Double.parseDouble(String.valueOf(challanTax[0][2]));\r\n\t\t\t\t//surcharge+=sur;\r\n\t\t\t\t//logger.info(\"surcharge----------in loop 2---\"+surcharge);\r\n\t\t\t\tdouble cess=Double.parseDouble(String.valueOf(challanTax[0][1]));\r\n\t\t\t\t//educationCess+=cess;\r\n\t\t\t\t//logger.info(\"educationCess----------in loop 3---\"+educationCess);\r\n\t\t\t\t\r\n\t\t\t totTds+=Double.parseDouble(String.valueOf(data[i][3]));\r\n\t\t\t \r\n\t\t\t // logger.info(\"totTds----------down 4---\"+totTds);\r\n\t\t\t Object[][] data1=new Object[1][6];\r\n\t\t\t \r\n\t\t\t data1[0][0]=chalCodeObj[0][0];\r\n\t\t\t data1[0][1]=data[i][0];\r\n\t\t\t \r\n\t\t\t\tbean.setEmpId(String.valueOf(data[i][0]));\r\n\t\t\t\tbean.setEmpToken(String.valueOf(data[i][1]));\r\n\t\t\t\tbean.setEmpName(String.valueOf(data[i][2]));\r\n\t\t\t\tbean.setEmpTaxIncome(String.valueOf(amount));//this is used in java script\r\n\r\n\t\t\t\tchkAmount = Math.round(tottds) + Math.round(sur) + Math.round(cess);\r\n\t\t\t\t\r\n\t\t\t\tlogger.info(\"value of chkAmount==11====>\"+chkAmount);\r\n\t\t\t\t\r\n\t\t\t\tchkAmount = Double.parseDouble(String.valueOf(data[i][3])) - chkAmount;\r\n\t\t\t\t\r\n\t\t\t\tlogger.info(\"value of data[i][3]======>\"+data[i][3]);\r\n\t\t\t\t\r\n\t\t\t\tlogger.info(\"value of chkAmount==22====>\"+chkAmount);\r\n\t\t\t\t\r\n\t\t\t\tbean.setChallanTax(Utility.twoDecimals(Math.round(tottds) + chkAmount));\r\n\t\t\t\t\r\n\t\t\t\tdata1[0][2]=bean.getChallanTax();\r\n\t\t\t\t\r\n\t\t\t\tlogger.info(\"TDS-----------\"+bean.getChallanTax());\r\n\t\t\t\ttotaltds+= Double.parseDouble(String.valueOf(bean.getChallanTax()));\r\n\t\t\t\tbean.setChallanSurcharge(Utility.twoDecimals(Math.round(sur)));\r\n\t\t\t\tlogger.info(\"ChallanSurcharge-----------\"+bean.getChallanSurcharge());\r\n\t\t\t\t \r\n\t\t\t\tdata1[0][3]=bean.getChallanSurcharge();\r\n\t\t\t\t\r\n\t\t\t\tsurcharge+= Double.parseDouble(String.valueOf(bean.getChallanSurcharge()));\r\n\t\t\t\t\r\n\t\t\t\tbean.setChallanEduCess(Utility.twoDecimals(Math.round(cess)));\r\n\t\t\t\tlogger.info(\"ChallanEduCess-----------\"+bean.getChallanEduCess());\r\n\t\t\t\teducationCess+= Double.parseDouble(String.valueOf(bean.getChallanEduCess()));\r\n\t\t\t\t\r\n\t\t\t\tdata1[0][4]=bean.getChallanEduCess();\r\n\t\t\t\t\r\n\t\t\t\tbean.setChallanTotTax(Utility.twoDecimals(Math.round(Double.parseDouble(String.valueOf(data[i][3])))));\r\n\t\t\t\ttotalTax+= Double.parseDouble(String.valueOf(bean.getChallanTotTax()));\r\n\t\t\t\tlogger.info(\"ChallanTotTax-----------\"+bean.getChallanTotTax());\r\n\t\t\t\t\r\n\t\t\t\tdata1[0][5]=bean.getChallanTotTax();\r\n\t\t\t\t\r\n\t\t\t\tchallanList.add(data1);\r\n\t\t\t} //end of loop\r\n\t\t\t//taxChallan.setChallanList(challanList);\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * Following code sets the total sum of the surcharge,education cess and total tax amount.\r\n\t\t\t */\r\n\t\t\ttaxChallan.setTax(Utility.twoDecimals(totaltds));\r\n\t\t\ttaxChallan.setSurcharge(Utility.twoDecimals(surcharge));\r\n\t\t\ttaxChallan.setEduCess(Utility.twoDecimals(educationCess));\r\n\t\t\ttaxChallan.setTotalTax(Utility.twoDecimals(totalTax));\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tsaveAndNext(taxChallan, challanList, challanCode);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlogger.error(\"exception in saveAndNext method\",e);\r\n\t\t\t} //end of catch\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\tlogger.error(\"exception in HRMS_SAL_DEBITS object loop\",e);\r\n\t\t} //end of catch\r\n\t}", "@Override\n\tpublic List<String> distinctStatusByFechaFinAndSector(String dateStart, String dateFinish, String sector) {\n\t\tlogger.info(\"Method:distinctStatusByFechaFinAndSector\");\n\t\treturn emisionService.distinctStatusByFechfinAndaSector(dateStart, dateFinish, sector);\n\t}", "public int get_sectors_per_track(int drive, int physical_side);", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n getSectorsDataFromMap((Map<String,Object>) dataSnapshot.getValue());\n sectorsAdapter.notifyDataSetChanged();\n }", "Stock retrieveStockChartData(String symbol);", "public boolean hasSector() {\n return fieldSetFlags()[2];\n }", "Map<Date, Float> getFullCPC(Step step) throws SQLException;", "@Override\n public JSONObject getGSTComputationReportSectionCombo(JSONObject requestParams) throws JSONException {\n JSONArray dataJArr = new JSONArray();\n JSONObject sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_1);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_1_1);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_1_2);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_1_3);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_2);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_2_2);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_3);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_3_1);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_4);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_4_1);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_4_2);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_7);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_1);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_2);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_3);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_4);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_5);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_8);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_9);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_9_1);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_9_2);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_10);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_10_1);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_SALES_10_2);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_1);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_1_1);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_2);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_3);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_3_1);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_3_2);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_4);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_5);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_6);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_7);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_7_1);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_7_2);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_11);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_11_10);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_12);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_13_1);\n dataJArr.put(sectionNameObject);\n return new JSONObject().put(\"data\", dataJArr);\n }", "public CHORE_INFO_PERIOD getPriod();", "private Sector generateSector(int x, int y){\n\t\tTerrainMap terrain = this.worldGen.generateTerrainMap(x, y);\n\t\treturn new Sector(terrain, this.renderQueue, matLib);\n\t}", "public List<Sector> getFreeSectors( int num) {\n\n\t// Get the data of the BAM.\n\tbyte [] bamData = getSector( 18, 0).getDataBytes();\n\n\tList<Sector> result = new ArrayList<Sector>(); // Buffer for the result.\n\n\t// If the user requested 0 sectors, just return the empty list.\n\tif( num == 0) {\n\n\t return result;\n\n\t}\n\n\t// Just count the set bits from 0x04 to 0x8f.\n\tint currentBlockIndex = 0;\n\tfor( int currentByteIndex = 0x04; currentByteIndex <= 0x8f; ++currentByteIndex) {\n\t \n\t // Get the current byte from the BAM.\n\t byte currentBamByte = bamData[ currentByteIndex];\n\n\t // Count the set bits in the current byte.\n\t for( int currentBit = 1; currentBit <= 0x80; currentBit <<= 1) {\n\n\t\tif( ( currentBamByte & currentBit) != 0) { // Is this block available?\n\n\t\t // Yes => add this free sector to the result;\n\t\t Sector nextFreeSector = getSectorForBlockIndex( currentBlockIndex++);\n\n\t\t // If this sector exists, add it to the result.\n\t\t if( nextFreeSector != null) {\n\n\t\t\tresult.add( nextFreeSector);\n\t\t }\n\n\t\t // If the number of free sectors is sufficient, return the result.\n\t\t if( result.size() == num) {\n\n\t\t\treturn result;\n\t\t }\n\t\t}\n\t }\n\t}\t\n\n\treturn null; // Not enough free sectors found.\n }", "public Map<String, Object> getMapData(int iusid, int timeperiodid);", "@Override\r\n\tpublic List<SectionInfo> loadsecInfo(int pfmIdx) {\n\t\treturn ticketDao.selectSecInfo(pfmIdx);\r\n\t}", "public ArrayList<EHVSS> getByCircle(String circle,String startIndex,String pageSize){\n\t\tArrayList<EHVSS> ehvssNames=null;\n\t\ttry {\n\t\t\tConnection connection = DatabaseConnection.getConnection(\"mms_new\");\n\t\t\tPreparedStatement ps = connection.prepareStatement(\"SELECT * FROM ehvss where circle=? limit \"+startIndex+\",\"+pageSize);\n\t\t\tps.setString(1,circle);\n\t\t\tResultSet rs=ps.executeQuery();\n\t\t\tehvssNames=new ArrayList<EHVSS>();\n\t\t\twhile(rs.next()){\n\t\t\t\tEHVSS ehvss=new EHVSS();\n\t\t\t\tehvss.setId(String.valueOf(rs.getInt(1)));\n\t\t\t\tehvss.setName(rs.getString(3).trim());\n\t\t\t\tehvss.setCode(rs.getString(2).trim());\n\t\t\t\tehvss.setLocation(rs.getString(4).trim());\n\t\t\t\tehvss.setRegion(rs.getString(5).trim());\n\t\t\t\tehvss.setCircle(rs.getString(6).trim());\n\t\t\t\tehvss.setDivision(rs.getString(7).trim());\n\t\t\t\tehvssNames.add(ehvss);\n\t\t\t}\n\t\t\trs.close();\n\t\t\tps.close();\n\t\t\t//System.out.println(\"Number of Ehvss Locations for region :\"+region+\" is :\"+ehvssNames.size());\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Exception in class : EhvssDAO : method : [getByCircle(String,String,String)]\"+e);\n\t\t}catch (Exception exp) {\n\t\t\tSystem.out.println(\"Exception in class : EhvssDAO : method : [getByCircle(String,String,String)]\"+exp);\n\t\t}\n\t\treturn ehvssNames;\n\t}", "public HashMap<String, Risk> calculateSectorAnalysis(Double portfolioStartValue, HashMap<Integer, ArrayList<Trade>> tradeMapCopy, ArrayList<ArrayList<Object>> spyData){\n\t\tHashMap<String, Risk> sectorAnalysisMap = new HashMap<String, Risk>();\n\t\t//create sector maps\n\t\tHashMap<Integer, ArrayList<Trade>> energyMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\tHashMap<Integer, ArrayList<Trade>> materialsMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\tHashMap<Integer, ArrayList<Trade>> industrialsMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\tHashMap<Integer, ArrayList<Trade>> consumerDiscretionaryMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\tHashMap<Integer, ArrayList<Trade>> consumerStaplesMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\tHashMap<Integer, ArrayList<Trade>> healthcareMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\tHashMap<Integer, ArrayList<Trade>> financialsMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\tHashMap<Integer, ArrayList<Trade>> informationTechnologyMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\tHashMap<Integer, ArrayList<Trade>> telecommunicationsMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\tHashMap<Integer, ArrayList<Trade>> utilitiesMap = new HashMap<Integer, ArrayList<Trade>>();\n\t\t\n\t\t//get keys of the tradeMap\n\t\tArrayList<Integer> mapKeys = new ArrayList<Integer>(tradeMapCopy.keySet());\n\t\t//sorts in ascending order but need descending order\n\t\tCollections.sort(mapKeys);\n\t\t//reverse\n\t\tCollections.reverse(mapKeys);\n\t\t\n\t\t//iterates through the map in chronological order from oldest date to newest\n\t\tfor(Integer i : mapKeys){\n\t\t\tArrayList<Trade> daysTrades = tradeMapCopy.get(i);\n\t\t\t\n\t\t\tif(daysTrades == null){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<Trade> energyTradeList = new ArrayList<Trade>();\n\t\t\tArrayList<Trade> materialsTradeList = new ArrayList<Trade>();\n\t\t\tArrayList<Trade> industrialsTradeList = new ArrayList<Trade>();\n\t\t\tArrayList<Trade> consumerDiscretionaryTradeList = new ArrayList<Trade>();\n\t\t\tArrayList<Trade> consumerStaplesTradeList = new ArrayList<Trade>();\n\t\t\tArrayList<Trade> healthcareTradeList = new ArrayList<Trade>();\n\t\t\tArrayList<Trade> financialsTradeList = new ArrayList<Trade>();\n\t\t\tArrayList<Trade> informationTechnologyTradeList = new ArrayList<Trade>();\n\t\t\tArrayList<Trade> telecommunicationsTradeList = new ArrayList<Trade>();\n\t\t\tArrayList<Trade> utilitiesTradeList = new ArrayList<Trade>();\n\t\t\n\t\t\t//loop through the days trades\n\t\t\tfor(Trade trade : daysTrades){\n\t\t\t\ttry{\n\t\t\t\t\tString sectorETF = trade.getSymbolData().getSectorETF();\n\t\t\t\t\t\n\t\t\t\t\tswitch(sectorETF){\n\t\t\t\t\t\tcase \"XLE\":\n\t\t\t\t\t\t\tenergyTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"XLB\":\n\t\t\t\t\t\t\tmaterialsTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"XLI\":\n\t\t\t\t\t\t\tindustrialsTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"XLY\":\n\t\t\t\t\t\t\tconsumerDiscretionaryTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"XLP\":\n\t\t\t\t\t\t\tconsumerStaplesTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"XLV\":\n\t\t\t\t\t\t\thealthcareTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"XLF\":\n\t\t\t\t\t\t\tfinancialsTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"XLK\":\n\t\t\t\t\t\t\tinformationTechnologyTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"IYZ\":\n\t\t\t\t\t\t\ttelecommunicationsTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"XLU\":\n\t\t\t\t\t\t\tutilitiesTradeList.add(trade);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IOException(\"Invalid sector ETF \" + sectorETF);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch(Exception e){ //happens when there is no sector ETF\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tenergyMap.put(i, energyTradeList);\n\t\t\tmaterialsMap.put(i, materialsTradeList);\n\t\t\tindustrialsMap.put(i, industrialsTradeList);\n\t\t\tconsumerDiscretionaryMap.put(i, consumerDiscretionaryTradeList);\n\t\t\tconsumerStaplesMap.put(i, consumerStaplesTradeList);\n\t\t\thealthcareMap.put(i, healthcareTradeList);\n\t\t\tfinancialsMap.put(i, financialsTradeList);\n\t\t\tinformationTechnologyMap.put(i, informationTechnologyTradeList);\n\t\t\ttelecommunicationsMap.put(i, telecommunicationsTradeList);\n\t\t\tutilitiesMap.put(i, utilitiesTradeList);\n\t\t}\n\t\t\n\t\tsectorAnalysisMap.put(\"XLE\", new Risk(portfolioStartValue, energyMap, spyData));\n\t\tsectorAnalysisMap.put(\"XLB\", new Risk(portfolioStartValue, materialsMap, spyData));\n\t\tsectorAnalysisMap.put(\"XLI\", new Risk(portfolioStartValue, industrialsMap, spyData));\n\t\tsectorAnalysisMap.put(\"XLY\", new Risk(portfolioStartValue, consumerDiscretionaryMap, spyData));\n\t\tsectorAnalysisMap.put(\"XLP\", new Risk(portfolioStartValue, consumerStaplesMap, spyData));\n\t\tsectorAnalysisMap.put(\"XLV\", new Risk(portfolioStartValue, healthcareMap, spyData));\n\t\tsectorAnalysisMap.put(\"XLF\", new Risk(portfolioStartValue, financialsMap, spyData));\n\t\tsectorAnalysisMap.put(\"XLK\", new Risk(portfolioStartValue, informationTechnologyMap, spyData));\n\t\tsectorAnalysisMap.put(\"IYZ\", new Risk(portfolioStartValue, telecommunicationsMap, spyData));\n\t\tsectorAnalysisMap.put(\"XLU\", new Risk(portfolioStartValue, utilitiesMap, spyData));\n\t\t\n\t\treturn sectorAnalysisMap;\n\t}", "public void getSectorsDataFromFirebase () {\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"Home\").child(\"specialties\");\n ref.addListenerForSingleValueEvent(\n new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n //Get map of sectors in datasnapshot\n getSectorsDataFromMap((Map<String,Object>) dataSnapshot.getValue());\n sectorsAdapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n //handle databaseError\n }\n });\n ref.keepSynced(true);\n\n\n }", "private java.util.List<pkg.Courses> getData(java.lang.String arg0) {\n pkg.CalWebService port = service.getCalWebServicePort();\r\n return port.getData(arg0);\r\n }", "List<ChartBean> returnXYResearchPaperByDepartmentInstituteCenter();", "public synchronized Vector<SensorData> getRawData(Date begin, Date end) {\n Date firstLocallyHoldDate;\n Vector<SensorData> data = new Vector<SensorData>();\n if (rawData.size() == 0) {\n firstLocallyHoldDate = new Date();\n } else {\n firstLocallyHoldDate = rawData.get(0).getDate();\n }\n if (begin.after(firstLocallyHoldDate) || begin.equals(firstLocallyHoldDate)) {\n getRawData(begin, end, data);\n } else {\n SensorDataDeSerializer deSerializer =\n new SensorDataDeSerializer(sensorID, data,\n Utils.dateToLongUnix(begin), Utils.dateToLongUnix(end), 0);\n deSerializer.work();\n if (!end.before(firstLocallyHoldDate)) {\n getRawData(begin, end, data);\n }\n }\n return data;\n }", "@Override\n public String toString() {\n String returnable = \"\";\n int count = 0;\n int[] localSectors = sectors;\n \n for (int i = 0; i < sectors.length; i++) {\n \n if(count % 20 == 0 && count != 0) {\n returnable += \"\\n\";\n }\n returnable += localSectors[i];\n count++;\n }\n return returnable;\n }", "private static String readEnergyJSON(Date start, Date end, String resolution, String point) throws IOException {\n DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd+HH:mm:ss\");\n df.setTimeZone(SimpleTimeZone.getTimeZone(\"US/Central\"));\n String url_string = \"https://rest.buildingos.com/reports/timeseries/?start=\" + df.format(start) + \"&resolution=\" + resolution + \"&end=\" + df.format(end) + \"&name=\" + point;\n URL consumption_url = new URL(url_string);\n Log.i(\"url\", consumption_url.toString());\n InputStream in = consumption_url.openStream();\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n String result, line = reader.readLine();\n result = line;\n while((line=reader.readLine())!=null) {\n result += line;\n }\n String json_string = result;\n JSONObject all_electricity_page = null;\n String return_string = \"\";\n\n try {\n all_electricity_page = (JSONObject) new JSONTokener(json_string).nextValue();\n JSONArray results = (JSONArray)all_electricity_page.get(\"results\");\n for (int i = 0; i < results.length(); i++) {\n Double value = -2.0;\n try {\n if (results.get(i) != JSONObject.NULL\n && ((JSONObject)results.get(i)).get(point) != JSONObject.NULL) {\n value = ((JSONObject) ((JSONObject) results.get(i)).get(point)).getDouble(\"value\");\n //Log.i(\"not null\", \"getting here? value = \" + value);\n\n }\n else {\n value = 0.0;\n String timestamp_string = ((JSONObject) results.get(i)).getString(\"startTimestamp\");\n Log.i(\"null\", \"adding -1.0? point=\" + point + \" time=\" + timestamp_string);\n }\n\n String timestamp_string = ((JSONObject) results.get(i)).getString(\"startTimestamp\");\n return_string += timestamp_string + \";\" + value + \"\\n\";\n }\n catch (Exception e) {\n //System.out.println(results.get(i));\n e.printStackTrace();\n //Log.i(\"null error?\", \"error: value = \" + value);\n //Log.i(\"null error?\", e.toString());\n }\n }\n\n } catch (JSONException e) {\n //didn't find any results - url must have been wrong, or bad connection\n e.printStackTrace();\n Log.i(\"readEnergyJSON\", \"bad url? \" + e.toString());\n }\n return return_string;\n }", "@Override\n\tpublic String queryHtcDeptChargeFassetRela(Map<String, Object> entityMap)\n\t\t\tthrows DataAccessException {\n\t SysPage sysPage = new SysPage();\n\t\t\n\t\tsysPage = (SysPage) entityMap.get(\"sysPage\");\n\t\t\n\t\tif(sysPage.getTotal() == -1){\n\t\t\t\n\t\t\tList<HtcDeptChargeFassetRela> list = htcDeptChargeFassetRelaMapper.queryHtcDeptChargeFassetRela(entityMap);\n\t\t\t\n\t\t\treturn ChdJson.toJson(list);\n\t\t\t\n\t\t}else{\n\t\t\tRowBounds rowBounds = new RowBounds(sysPage.getPage(), sysPage.getPagesize());\n\t\t\t\n\t\t\tList<HtcDeptChargeFassetRela> list = htcDeptChargeFassetRelaMapper.queryHtcDeptChargeFassetRela(entityMap, rowBounds);\n\t\t\n\t\t\tPageInfo page = new PageInfo(list);\n\t\t\t\n\t\t\treturn ChdJson.toJson(list, page.getTotal());\n\t\t}\n\t}", "public static void getdatacou() {\n\t\ttry {\n\t\t\tps = conn.prepareStatement(\"select * from course \");\n\t\t\trs = ps.executeQuery();\n\t\t\tcounter = 0;\n\t\t\twhile(rs.next()){\n\t\t\t\tc_no[counter] = rs.getString(\"Cno\");\n\t\t\t\tc_name[counter] = rs.getString(\"Cname\");\n\t\t\t\tcredit[counter] = rs.getDouble(\"Ccredit\");\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\t\n\t\t}catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "List<ChartBean> returnResearchFundingByDepartmentInstituteCenter();", "int getStudentKcalConsumption(long studentId, Date start, Date end);", "public DTOSalida obtenerAccesosPlantilla(DTOOID dto) throws MareException\n { \n UtilidadesLog.info(\"DAOGestionComisiones.obtenerAccesosPlantilla(DTOOID dto): Entrada\"); \n StringBuffer query = new StringBuffer();\n RecordSet rs = new RecordSet(); \n DTOSalida dtos = new DTOSalida();\n BelcorpService bs = UtilidadesEJB.getBelcorpService(); \n query.append(\" SELECT DISTINCT A.ACCE_OID_ACCE OID, B.VAL_I18N DESCRIPCION \");\n query.append(\" FROM COM_PLANT_COMIS_ACCES A, V_GEN_I18N_SICC B, COM_PLANT_COMIS C \"); \n query.append(\" WHERE \");\n if(dto.getOid() != null) {\n query.append(\" A.PLCO_OID_PLAN_COMI = \" + dto.getOid() + \" AND \");\n }\n query.append(\" A.PLCO_OID_PLAN_COMI = C.OID_PLAN_COMI AND \"); \n query.append(\" C.CEST_OID_ESTA = \" + ConstantesCOM.ESTADO_ACTIVO + \" AND \"); \n \n query.append(\" B.ATTR_ENTI = 'SEG_ACCES' AND \"); \n query.append(\" B.ATTR_NUM_ATRI = 1 AND \");\n query.append(\" B.IDIO_OID_IDIO = \" + dto.getOidIdioma() + \" AND \");\n query.append(\" B.VAL_OID = A.ACCE_OID_ACCE \");\n query.append(\" ORDER BY DESCRIPCION \"); \n UtilidadesLog.debug(query.toString()); \n try {\n rs = bs.dbService.executeStaticQuery(query.toString());\n if(rs != null)\n dtos.setResultado(rs);\n }catch (Exception e) {\n UtilidadesLog.error(e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n } \n UtilidadesLog.info(\"DAOGestionComisiones.obtenerAccesosPlantilla(DTOOID dto): Salida\"); \n return dtos;\n }", "abstract public int getIncomeSegment( int hhIncomeInDollars );", "@Override\r\n\tpublic List<Company> getCompanyListbySector(String sectorName) {\n\t\tSector sector = sectorRepository.findBySectorName(sectorName);\r\n\t\treturn companyRepository.findBySector(sector.getSectorId());\r\n\t}", "public String getholiday(String solYear, String solMonth ) throws IOException {\n\t\t\tStringBuilder urlBuilder = new StringBuilder(\"http://apis.data.go.kr/B090041/openapi/service/SpcdeInfoService/getRestDeInfo\"); /*URL*/\n\t urlBuilder.append(\"?\" + URLEncoder.encode(\"ServiceKey\",\"UTF-8\") + \"=iWB48Nxayf9lPew7m7gVYGnupTOUCduBkFNV9i3WfJHiytUm191V54nM9Ah5HH525HZJXMQVIhCxyFfl%2Bt6liw%3D%3D\"); /*Service Key*/\n\t urlBuilder.append(\"&\" + URLEncoder.encode(\"solYear\",\"UTF-8\") + \"=\" + URLEncoder.encode(solYear, \"UTF-8\")); /*연*/\n\t urlBuilder.append(\"&\" + URLEncoder.encode(\"solMonth\",\"UTF-8\") + \"=\" + URLEncoder.encode(solMonth, \"UTF-8\")); /*월*/\n\t urlBuilder.append(\"&\" + URLEncoder.encode(\"_type\",\"UTF-8\") + \"=\" + URLEncoder.encode(\"json\", \"UTF-8\")); \n\t URL url = new URL(urlBuilder.toString());\n\t HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t // conn.setRequestMethod(\"GET\");\n\t //conn.setRequestProperty(\"Content-type\", \"application/json\");\n\t System.out.println(\"Response code: \" + conn.getResponseCode());\n\t BufferedReader rd;\n\t if(conn.getResponseCode() >= 200 && conn.getResponseCode() <= 300) {\n\t rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n\t } else {\n\t rd = new BufferedReader(new InputStreamReader(conn.getErrorStream()));\n\t }\n\t StringBuilder sb = new StringBuilder();\n\t \n\t \n\t \n\t String line;\n\t while ((line = rd.readLine()) != null) {\n\t sb.append(line);\n\t }\n\t rd.close();\n\t conn.disconnect();\n\t \n\t System.out.println(sb.toString());\t\n\t\t\treturn sb.toString();\n\t\t \n\t }", "@Override\n\tpublic List<PageData> getcengci(PageData pd) throws Exception {\n\t\treturn (List<PageData>) dao.findForList(\"SummaryStatMapper.getcengci\",\n\t\t\t\tpd);\n\t}", "public void\twrite_sector_data_from_buffer(int drive, int side,int data_id, char[] buf, int length, int ddam);", "protected Vector<Vector<Object>> getdataMPSLine(int SM_MPS_ID,int C_Period_ID,Timestamp DateStart, Timestamp DateEnd) {\n//\t\tTimestamp now = new Timestamp(System.currentTimeMillis()); \n\t\tVector<Vector<Object>> dataMPSLine = new Vector<Vector<Object>>();\n\n\t\t\n\t\tStringBuilder SQLGetData = new StringBuilder();\n\t\tSQLGetData.append(\"SELECT ml.week,ml.mpsdate, ml.frs,ml.cor,ml.pab,ml.atp,ml.mps,ml.isdtf,ml.sm_mpsline_id,m.M_Product_ID \");\n\t\tSQLGetData.append(\" FROM SM_MPSLine ml\");\n\t\tSQLGetData.append(\" LEFT JOIN SM_MPS m ON m.SM_MPS_ID = ml.SM_MPS_ID \");\n\t\tSQLGetData.append(\" WHERE ml.SM_MPS_ID = \"+SM_MPS_ID);\n\t\tSQLGetData.append(\" AND ml.C_Period_ID = \"+C_Period_ID);\n\n\t\t\n\n\t\tif (DateStart != null && DateEnd == null){\n\t\t\tSQLGetData.append(\" AND (ml.mpsdate > '\"+DateStart+\"') \");\n\t\t}else if (DateStart == null && DateEnd != null){\n\t\t\tSQLGetData.append(\" AND (ml.mpsdate < '\"+DateEnd+\"') \");\n\t\t}else if (DateStart != null && DateEnd != null){\n\t\t\tSQLGetData.append(\" AND (ml.mpsdate BETWEEN '\"+DateStart+\"' AND '\"+DateEnd+\"') \");\n\t\t}\n\t\t\n\t\tPreparedStatement pstmt = null;\n \tResultSet rs = null;\n\t\t\ttry {\n\t\t\t\tpstmt = DB.prepareStatement(SQLGetData.toString(), null);\n\t\t\t\trs = pstmt.executeQuery();\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\n\t\t\t\t\tint SM_MPSLine_ID = rs.getInt(9); \n\t\t\t\t\tint M_Product_ID = rs.getInt(10); \n\t\t\t\t\tMProduct product = new MProduct(ctx, M_Product_ID, null);\n\t\t\t\t\t\n\t\t\t\t\tKeyNamePair kp = new KeyNamePair(SM_MPSLine_ID, rs.getString(8));\n\t\t\t\t\tKeyNamePair kProd = new KeyNamePair(M_Product_ID, product.getName());\n\n\n\t\t\t\t\tVector<Object> line = new Vector<Object>(4);\n\n\t\t\t\t\tline.add(new Boolean(false));\t\t\t//check\n\t\t\t\t\tline.add(kProd);\t\t\t//week\n\t\t\t\t\tline.add(rs.getBigDecimal(1));\t\t\t//week\n\t\t\t\t\tline.add(rs.getTimestamp(2));\t\t\t//day\n\t\t\t\t\tline.add(rs.getBigDecimal(3));\t\t\t//forecast\n\t\t\t\t\tline.add(rs.getBigDecimal(4));\t\t\t//customer order\n\t\t\t\t\tline.add(rs.getBigDecimal(5));\t\t\t//pab\n\t\t\t\t\tline.add(rs.getBigDecimal(6));\t\t\t//atp\n\t\t\t\t\tline.add(rs.getBigDecimal(7));\t\t\t//mps\n\t\t\t\t\tline.add(kp);\t\t\t\t//dtf\n\n\t\t\t\t\tdataMPSLine.add(line);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t} catch (SQLException err) {\n\t\t\t\tlog.log(Level.SEVERE, SQLGetData.toString(), err);\n\t\t\t} finally {\n\t\t\t\tDB.close(rs, pstmt);\n\t\t\t\trs = null;\n\t\t\t\tpstmt = null;\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\treturn dataMPSLine;\n\t\t\n\t}", "public void getSelectRecord(TaxChallan taxChallan){\r\n\t\tObject taxData[][] = null;\r\n\t\ttry{\r\n\t\ttry {\r\n\t\t\tString query = \"SELECT TO_CHAR(NVL(CHALLAN_TAX,0),9999999990.99), TO_CHAR(NVL(CHALLAN_SURCHARGE,0),9999999990.99), TO_CHAR(NVL(CHALLAN_EDUCESS,0),9999999990.99), TO_CHAR(NVL(CHALLAN_TOTALTAX,0),9999999990.99), NVL(CHALLAN_CHQNO,' '), NVL(TO_CHAR(CHALLAN_CHQDATE,'DD-MM-YYYY'),' '),\"\r\n\t\t\t\t\t+ \" CHALLAN_NO,TO_CHAR(CHALLAN_DATE,'DD-MM-YYYY'),BANK_NAME,BANK_BSR_CODE,CHALLAN_ACK_NO,BANK_MICR_CODE,CHALLAN_VCHR_NO,NVL(CHALLAN_INT_AMT,0.00),NVL(CHALLAN_OTHR_AMT,0.00),\"\r\n\t\t\t\t\t+ \" CHALLAN_BOOK_ENTRY,DECODE(CHALLAN_TAX_ONHOLD,'A','ALL','N','No','Y','Yes'),TO_CHAR(CHALLAN_DATE_PAYMENT,'DD-MM-YYYY'),DECODE(CHALLAN_SALARY_FLAG,'Y','true','N','false'), \" \r\n\t\t\t\t\t+ \" DECODE(CHALLAN_SETTLE_FLAG,'Y','true','N','false','false'),DECODE(CHALLAN_ALLOW_FLAG,'Y','true','N','false','false'),DECODE(CHALLAN_ARREARS_FLAG,'Y','true','N','false','false'), \" \r\n\t\t\t\t\t+ \" DECODE(CHALLAN_BONUS_FLAG,'Y','true','N','false','false'), DECODE(CHALLAN_LEAVE_FLAG,'Y','true','N','false','false'), DECODE(CHALLAN_OT_FLAG,'Y','true','N','false','false')\"\r\n\t\t\t\t\t+ \" FROM HRMS_TAX_CHALLAN \"\r\n\t\t\t\t\t+ \" LEFT JOIN HRMS_BANK ON HRMS_BANK.BANK_BSR_CODE = hrms_tax_challan.CHALLAN_BANK WHERE CHALLAN_CODE=\"\r\n\t\t\t\t\t+ taxChallan.getChallanID();\r\n\t\t\ttaxData = getSqlModel().getSingleResult(query);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"eception in taxData query\",e);\r\n\t\t} //end of catch\r\n\t\tif(!(taxData.length >0)){\r\n\t\t\ttaxChallan.setTax(\"\");\r\n\t\t\ttaxChallan.setSurcharge(\"\");\r\n\t\t\ttaxChallan.setEduCess(\"\");\r\n\t\t\ttaxChallan.setTotalTax(\"\");\r\n\t\t\ttaxChallan.setChequeNo(\"\");\r\n\t\t\ttaxChallan.setChequeDate(\"\");\r\n\t\t\ttaxChallan.setChallanNo(\"\");\r\n\t\t\ttaxChallan.setChallanDate(\"\");\r\n\t\t\ttaxChallan.setBank(\"\");\r\n\t\t\ttaxChallan.setBsrCode(\"\");\r\n\t\t\ttaxChallan.setAckNo(\"\");\r\n\t\t\ttaxChallan.setVchrNo(\"\");\r\n\t\t\ttaxChallan.setIntAmt(\"\");\r\n\t\t\ttaxChallan.setOthrAmt(\"\");\r\n\t\t\t//taxChallan.setBookEntry(\"\");\r\n\t\t}else{\r\n\t\t\ttaxChallan.setTax(Utility.twoDecimals(String.valueOf(taxData[0][0])));\r\n\t\t\ttaxChallan.setSurcharge(Utility.twoDecimals(String.valueOf(taxData[0][1])));\r\n\t\t\ttaxChallan.setEduCess(Utility.twoDecimals(String.valueOf(taxData[0][2])));\r\n\t\t\ttaxChallan.setTotalTax(Utility.twoDecimals(String.valueOf(taxData[0][3])));\r\n\t\t\ttaxChallan.setChequeNo(String.valueOf(taxData[0][4]));\r\n\t\t\ttaxChallan.setChequeDate(checkNull(String.valueOf(taxData[0][5])).trim());\r\n\t\t\ttaxChallan.setChallanNo(checkNull(String.valueOf(taxData[0][6])).trim());\r\n\t\t\ttaxChallan.setChallanDate(checkNull(String.valueOf(taxData[0][7])).trim());\r\n\t\t\ttaxChallan.setBank(checkNull(String.valueOf(taxData[0][8])));\r\n\t\t\ttaxChallan.setBsrCode(checkNull(String.valueOf(taxData[0][9])));\r\n\t\t\ttaxChallan.setAckNo(checkNull(String.valueOf(taxData[0][10])));\r\n\t\t\ttaxChallan.setMicr(checkNull(String.valueOf(taxData[0][11])));\r\n\t\t\ttaxChallan.setVchrNo(checkNull(String.valueOf(taxData[0][12])));\r\n\t\t\ttaxChallan.setIntAmt(Utility.twoDecimals(String.valueOf(taxData[0][13])));\r\n\t\t\ttaxChallan.setOthrAmt(Utility.twoDecimals(String.valueOf(taxData[0][14])));\r\n\t\t\ttaxChallan.setBookEntry(String.valueOf(taxData[0][15]));\r\n\t\t\ttaxChallan.setOnHold(String.valueOf(taxData[0][16]));\r\n\t\t\ttaxChallan.setPaymentDate(checkNull(String.valueOf(taxData[0][17])));\r\n\t\t\ttaxChallan.setIncludeSalary(String.valueOf(taxData[0][18]));\r\n\t\t\ttaxChallan.setIncludeSettlement(String.valueOf(taxData[0][19]));\r\n\t\t\ttaxChallan.setIncludeAllowance(String.valueOf(taxData[0][20]));\r\n\t\t\ttaxChallan.setIncludeArrears(String.valueOf(taxData[0][21]));\r\n\t\t\ttaxChallan.setIncludeBonus(String.valueOf(taxData[0][22]));\r\n\t\t\ttaxChallan.setIncludeLeaveEncashment(String.valueOf(taxData[0][23]));\r\n\t\t\ttaxChallan.setIncludeOverTime(String.valueOf(taxData[0][24]));\r\n\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\tlogger.error(\"exception in getSelectRecord method\",e);\r\n\t\t} \r\n\t\tObject[][]tdsParameter = null;\r\n\t\ttry {\r\n\t\t\tString tdsParaQuery = \"SELECT TDS_DEBIT_CODE,TDS_EDU_CESS,TDS_REBATEMAX_AMOUNT,TDS_SURCHARGE \"\r\n\t\t\t\t\t+ \" FROM HRMS_TAX_PARAMETER \"\r\n\t\t\t\t\t+ \" WHERE TDS_CODE= (SELECT MAX(TDS_CODE) FROM HRMS_TAX_PARAMETER)\";\r\n\t\t\ttdsParameter = getSqlModel().getSingleResult(tdsParaQuery);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in tdsParameter query\",e);\r\n\t\t}\r\n\t\t/**\r\n\t\t * this values are set...because they are used in java script for calculation\r\n\t\t * if in case total tax is changed.\r\n\t\t */\r\n\t\tif(tdsParameter !=null && tdsParameter.length >0){\r\n\t\t\ttaxChallan.setEduCessPercen(String.valueOf(tdsParameter[0][1]));\r\n\t\t\ttaxChallan.setRebateLimit(String.valueOf(tdsParameter[0][2]));\r\n\t\t\ttaxChallan.setSurchargePercen(String.valueOf(tdsParameter[0][3]));\r\n\t\t}\r\n\t}", "public void getChaRec(TaxChallan taxChallan, Object[][] tdsParameter){\r\n\t\ttry{\r\n\t\t\tdouble surcharge=0.00,totaltds=0.00;\r\n\t\t\tdouble educationCess=0.00;\r\n\t\t\tdouble totTds=0.00;\r\n\t\t\tdouble totalTax=0.00;\r\n\t\t\tObject data[][] = null;\r\n\t\t\tString ledgerCode = \"\";\r\n\t\t\t\r\n\t\t\t/**\r\n\t\t\t * this values are set...because they are used in java script for calculation\r\n\t\t\t * if in case total tax is changed.\r\n\t\t\t */\r\n\t\t\ttaxChallan.setEduCessPercen(String.valueOf(tdsParameter[0][1]));\r\n\t\t\ttaxChallan.setRebateLimit(String.valueOf(tdsParameter[0][2]));\r\n\t\t\ttaxChallan.setSurchargePercen(String.valueOf(tdsParameter[0][3]));\r\n\t\t\ttry {\r\n\t\t\t\tledgerCode = getLedgerCode(taxChallan.getMonth(), taxChallan.getYear());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlogger.error(\"exception in ledgerCode in getChaRec method\",e);\r\n\t\t\t} //end of catch\r\n\t\t\t\r\n\t\t\tArrayList<Object> chList = new ArrayList<Object>();\r\n\t\t\t\r\n\t\t\tif(ledgerCode!=null && ledgerCode.length() >0){\r\n\t\t\t\tint fromYear=0;\r\n\t\t\t\tint toYear=0;\r\n\t\t\t\t\tif(Integer.parseInt(taxChallan.getMonth())>=4 && Integer.parseInt(taxChallan.getMonth())<=12) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tfromYear =Integer.parseInt(taxChallan.getYear());\r\n\t\t\t\t\t\ttoYear=fromYear+1;\r\n\t\t\t\t\t } //end of if\r\n\t\t\t\t\telse if(Integer.parseInt(taxChallan.getMonth())>=1 && Integer.parseInt(taxChallan.getMonth())<=3) {\r\n\t\t\t\t\t fromYear =Integer.parseInt(taxChallan.getYear())-1;\r\n\t\t\t\t\t toYear=Integer.parseInt(taxChallan.getYear());\r\n\t\t\t\t\t} //end of else if\t\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tString salaryQuery=\"SELECT DISTINCT HRMS_SAL_DEBITS_\"+taxChallan.getYear()+\".EMP_ID,EMP_TOKEN,EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME, TO_CHAR(SUM(NVL(SAL_AMOUNT,0)),9999999990.99),\"\r\n\t\t\t\t+\" SAL_DEBIT_CODE FROM HRMS_SAL_DEBITS_\"+taxChallan.getYear()\r\n\t\t\t\t+\" INNER JOIN HRMS_EMP_OFFC ON HRMS_SAL_DEBITS_\"+taxChallan.getYear()+\".EMP_ID = HRMS_EMP_OFFC.EMP_ID \"\r\n\t\t\t\t+\" INNER JOIN HRMS_SALARY_\"+taxChallan.getYear()+\" ON (HRMS_SALARY_\"+taxChallan.getYear()+\".EMP_ID = HRMS_SAL_DEBITS_\"+taxChallan.getYear()+\".EMP_ID and HRMS_SALARY_\"+taxChallan.getYear()+\".SAL_LEDGER_CODE = HRMS_SAL_DEBITS_\"+taxChallan.getYear()+\".SAL_LEDGER_CODE)\"\r\n\t\t\t\t+\" WHERE HRMS_EMP_OFFC.EMP_DIV=\"+taxChallan.getDivId()+\" AND SAL_DEBIT_CODE=\"+String.valueOf(tdsParameter[0][0])+\" AND SAL_LEDGER_CODE IN(\"+ledgerCode+\") \";\r\n\t\t\t\t\r\n\t\t\t\tif(taxChallan.getOnHold().equals(\"Y\")){\r\n\t\t\t\t\tsalaryQuery += \" AND SAL_ONHOLD='Y' ORDER BY HRMS_SAL_DEBITS_\"+taxChallan.getYear()+\".EMP_ID\";\r\n\t\t\t\t} else if(taxChallan.getOnHold().equals(\"N\")){\r\n\t\t\t\t\tsalaryQuery += \" AND SAL_ONHOLD='N' ORDER BY HRMS_SAL_DEBITS_\"+taxChallan.getYear()+\".EMP_ID\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsalaryQuery += \" ORDER BY UPPER(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME)\";\r\n\t\t\t\t}\r\n\t\t\t\tif(taxChallan.getIncludeSalary().equals(\"true\")){\r\n\t\t\t\t\tdata = getSqlModel().getSingleResult(salaryQuery);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tlogger.error(\"exception in HRMS_SAL_DEBITS_ query \",e);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(taxChallan.getIncludeArrears().equals(\"true\")){\r\n\t\t\t\tObject[][]arrearDebitData = getDebitArrearsAmt(taxChallan.getMonth(),taxChallan.getYear(),taxChallan.getDivId(), String.valueOf(tdsParameter[0][0]));\r\n\t\t\t\t\r\n\t\t\t\tif(arrearDebitData != null && arrearDebitData.length > 0){\r\n\t\t\t\t\tdata = Utility.consolidateArrearsObject(data, arrearDebitData, 0, new int[] {3}, 5);\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\tif(taxChallan.getIncludeSettlement().equals(\"true\")){\r\n\t\t\t\tObject[][]settlementData = getSettlementAmt(taxChallan.getMonth(),taxChallan.getYear(),taxChallan.getDivId(),String.valueOf(tdsParameter[0][0]));\r\n\t\t\t\t\r\n\t\t\t\tif(settlementData != null && settlementData.length > 0){\r\n\t\t\t\t\tdata = Utility.consolidateArrearsObject(data, settlementData, 0, new int[] {3}, 5);\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\tif(taxChallan.getIncludeBonus().equals(\"true\")){\r\n\t\t\t\tObject[][] bonusData = getBonusAmt(taxChallan.getMonth(),taxChallan.getYear(),taxChallan.getDivId());\r\n\t\t\t\t\r\n\t\t\t\tif(bonusData != null && bonusData.length > 0){\r\n\t\t\t\t\tdata = Utility.consolidateArrearsObject(data, bonusData, 0, new int[] {3}, 5);\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\tif(taxChallan.getIncludeOverTime().equals(\"true\")){\r\n\t\t\t\tObject[][] overTimeData = getOverTimeAmt(taxChallan.getMonth(),taxChallan.getYear(),taxChallan.getDivId());\r\n\t\t\t\tif(overTimeData != null && overTimeData.length > 0){\r\n\t\t\t\t\tdata = Utility.consolidateArrearsObject(data, overTimeData, 0, new int[] {3}, 5);\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\tif(taxChallan.getIncludeLeaveEncashment().equals(\"true\")){\r\n\t\t\t\tObject[][] leaveEncashmentData = getLeaveEncashmentAmt(taxChallan.getMonth(),taxChallan.getYear(),taxChallan.getDivId());\r\n\t\t\t\tif(leaveEncashmentData != null && leaveEncashmentData.length > 0){\r\n\t\t\t\t\tdata = Utility.consolidateArrearsObject(data, leaveEncashmentData, 0, new int[] {3}, 5);\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\tif(data.length >0 && data!=null){\r\n\t\t\t\t/*\r\n\t\t\t\t * Following loop is used to set the employee id,name,challan tds,challan surcharge,education cess to every employee\r\n\t\t\t\t * those who belong to the selected division\r\n\t\t\t\t */\r\n\t\t\t\t\r\n\t\t\t\tString empIncomeQuery = \"SELECT TO_CHAR(NVL(TDS_TAXABLE_INCOME,0),9999999990.99),TDS_EMP_ID FROM HRMS_TDS \"\r\n\t\t\t\t\t\t\t\t\t\t+\" WHERE TDS_FROM_YEAR=\"+fromYear+\" AND TDS_TO_YEAR=\"+toYear+\" ORDER BY TDS_EMP_ID\";\r\n\t\t\t\tObject empTaxIncome[][] = getSqlModel().getSingleResult(empIncomeQuery);\r\n\t\t\t\t\r\n\t\t\t\ttry{\t\r\n\t\t\t\t\tfor(int i=0;i<data.length;i++){\r\n\t\t\t\t\t\tTaxChallan bean=new TaxChallan(); \r\n\t\t\t\t\t\tdouble amount=0.00;\r\n\t\t\t\t\t\tObject[][] challanTax = null;\r\n\t\t\t\t\t\tdouble chkAmount=0.00;\r\n\t\t\t\t\t\t//String sqlQuery=\"SELECT NVL(TDS_TAXABLE_INCOME,0.00) FROM HRMS_TDS WHERE TDS_EMP_ID=\"+data[i][0]+\" AND TDS_FROM_YEAR=\"+fromYear+\" AND TDS_TO_YEAR=\"+toYear;\r\n\t\t\t\t\t\t//Object amt[][] = getSqlModel().getSingleResult(sqlQuery);\r\n\t\t\t\t\t\tif(empTaxIncome!=null && empTaxIncome.length!=0){\r\n\t\t\t\t\t\t\tfor (int j = 0; j < empTaxIncome.length; j++) {\r\n\t\t\t\t\t\t\t\t if(String.valueOf(empTaxIncome[j][1]).equals(String.valueOf(data[i][0]))){\r\n\t\t\t\t\t\t\t\t\t amount=Double.parseDouble(String.valueOf(empTaxIncome[j][0]));\r\n\t\t\t\t\t\t\t\t } //end of if\r\n\t\t\t\t\t\t\t} //end of loop\r\n\t\t\t\t\t\t} //end of if\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tamount=0.00;\r\n\t\t\t\t\t\t} //end of else\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tlogger.info(\"amount is\"+amount);\r\n\t\t\t\t\t\t try {\r\n\t\t\t\t\t\t\tchallanTax = getTaxDtls(Double.parseDouble(String.valueOf(data[i][3])), Double\r\n\t\t\t\t\t\t\t\t\t.parseDouble(String.valueOf(tdsParameter[0][2])),amount, tdsParameter);\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\tlogger.error(\"exception in challanTax\",e);\r\n\t\t\t\t\t\t} //end of catch\r\n\t\t\t\t\t\tlogger.info(\"data[i][2] emp name--->\"+data[i][2]); \r\n\t\t\t\t\t\tdouble tottds = Double.parseDouble(String.valueOf(challanTax[0][0]));\r\n\t\t\t\t\t//\ttotaltds += tottds;\r\n\t\t\t\t\t\tlogger.info(\"totaltds-------->\"+totaltds);\r\n\t\t\t\t\t\tdouble sur=Double.parseDouble(String.valueOf(challanTax[0][2]));\r\n\t\t\t\t\t\t//surcharge+=sur;\r\n\t\t\t\t\t\t//logger.info(\"surcharge----------in loop 2---\"+surcharge);\r\n\t\t\t\t\t\tdouble cess=Double.parseDouble(String.valueOf(challanTax[0][1]));\r\n\t\t\t\t\t\t//educationCess+=cess;\r\n\t\t\t\t\t\t//logger.info(\"educationCess----------in loop 3---\"+educationCess);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t totTds+=Double.parseDouble(String.valueOf(data[i][3]));\r\n\t\t\t\t\t \r\n\t\t\t\t\t // logger.info(\"totTds----------down 4---\"+totTds);\r\n\t\t\t\t\t\tbean.setEmpId(String.valueOf(data[i][0]));\r\n\t\t\t\t\t\tbean.setEmpToken(String.valueOf(data[i][1]));\r\n\t\t\t\t\t\tbean.setEmpName(String.valueOf(data[i][2]));\r\n\t\t\t\t\t\tbean.setEmpTaxIncome(String.valueOf(amount));//this is used in java script\r\n\t\r\n\t\t\t\t\t\tchkAmount = Double.parseDouble(formatter.format((tottds))) + Double.parseDouble(formatter.format((sur))) + Double.parseDouble(formatter.format((cess)));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//logger.info(\"value of chkAmount==11====>\"+chkAmount);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tchkAmount = Double.parseDouble(String.valueOf(data[i][3])) - chkAmount;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//logger.info(\"value of data[i][3]======>\"+data[i][3]);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//logger.info(\"value of chkAmount==22====>\"+chkAmount);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tbean.setChallanTax(formatter.format(tottds + chkAmount));\r\n\t\t\t\t\t\t//logger.info(\"TDS-----------\"+bean.getChallanTax());\r\n\t\t\t\t\t\ttotaltds+= Double.parseDouble(String.valueOf(bean.getChallanTax()));\r\n\t\t\t\t\t\tbean.setChallanSurcharge(Utility.twoDecimals(Math.round(sur)));\r\n\t\t\t\t\t\t//logger.info(\"ChallanSurcharge-----------\"+bean.getChallanSurcharge());\r\n\t\t\t\t\t\tsurcharge+= Double.parseDouble(String.valueOf(bean.getChallanSurcharge()));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tbean.setChallanEduCess(Utility.twoDecimals(Math.round(cess)));\r\n\t\t\t\t\t\tlogger.info(\"ChallanEduCess-----------\"+bean.getChallanEduCess());\r\n\t\t\t\t\t\teducationCess+= Double.parseDouble(String.valueOf(bean.getChallanEduCess()));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tbean.setChallanTotTax(Utility.twoDecimals(Math.round(Double.parseDouble(String.valueOf(data[i][3])))));\r\n\t\t\t\t\t\ttotalTax+= Double.parseDouble(String.valueOf(bean.getChallanTotTax()));\r\n\t\t\t\t\t\tlogger.info(\"ChallanTotTax-----------\"+bean.getChallanTotTax());\r\n\t\t\t\t\t\tchList.add(bean);\r\n\t\t\t\t\t} //end of loop\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tlogger.error(\"exception in HRMS_SAL_DEBITS object loop\",e);\r\n\t\t\t\t} //end of catch\r\n\t\t\t\r\n\t\t\t} //end of data if\r\n\t\t\telse{\r\n\t\t\t\ttaxChallan.setCountFlag(\"true\");\r\n\t\t\t\ttaxChallan.setNoData(\"true\");\r\n\t\t\t} //end of else\r\n\t\t\ttaxChallan.setChallanList(chList);\r\n\t\t\t} //end of if\r\n\t\t\telse{\r\n\t\t\t\ttaxChallan.setNoData(\"true\");\r\n\t\t\t\t//taxChallan.setSaveFlag(\"true\");\r\n\t\t\t\ttaxChallan.setCountFlag(\"true\");\r\n\t\t\t} //end of else\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * Following code sets the total sum of the surcharge,education cess and total tax amount.\r\n\t\t\t */\r\n\t\t\ttaxChallan.setTax(Utility.twoDecimals(totaltds));\r\n\t\t\ttaxChallan.setSurcharge(Utility.twoDecimals(surcharge));\r\n\t\t\ttaxChallan.setEduCess(Utility.twoDecimals(educationCess));\r\n\t\t\ttaxChallan.setTotalTax(Utility.twoDecimals(totalTax));\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\tlogger.error(\"exception in getChaRec\",e);\r\n\t\t} //end of catch\r\n\t}", "public abstract Float getGeonorCapacity(int stationId) throws DataAccessException;", "public ReturnData queryEncounterForinfo(){\n ReturnData returnData = new ReturnData();\n String [] jsids = {\"03034a63-e8d6-49a4-8e71-58a544b8fca3\",\n \"1ae3709f-d8c2-4db8-9f38-1a60fb0d2e61\",\n \"7340479a-28fc-44b6-bf18-374f037d5f03\",\n \"e1e5f378-b16f-441e-b673-0f0d2544d108\"};\n try {\n returnData.setData(jueseMapper.selectByPrimaryKey(jsids[MyUuid.getRandomInt(jsids.length)-1]));\n }catch (Exception e){\n returnData.setCode(-1);\n returnData.setData(e.getMessage());\n }finally {\n return returnData;\n }\n }", "public JSONObject getGSTR2Summary(JSONObject params) throws ServiceException, JSONException {\n JSONObject object = new JSONObject();\n JSONObject jMeta = new JSONObject();\n JSONArray jarrColumns = new JSONArray();\n JSONArray jarrRecords = new JSONArray();\n JSONArray dataJArr = new JSONArray();\n JSONArray array = new JSONArray();\n JSONArray array1 = new JSONArray();\n String start = params.optString(\"start\");\n String limit = params.optString(\"limit\");\n String companyId = params.optString(\"companyid\");\n Company company = null;\n KwlReturnObject companyResult = null;\n if (params.optBoolean(\"isforstore\", false)) {\n /**\n * If request for Section combo box\n */\n return object = getGSTR2ReportSectionCombo();\n }\n companyResult = accountingHandlerDAOobj.getObject(Company.class.getName(), companyId);\n company = (Company) companyResult.getEntityList().get(0);\n params.put(\"isPurchase\", true);\n JSONObject reqParams = params;\n /* * before starting sectional data need to get column no for Product Tax\n * Class (HSN)\n */\n int colnum = 0;\n HashMap fieldparams = new HashMap<>();\n fieldparams.put(Constants.filter_names, Arrays.asList(Constants.companyid, Constants.moduleid, \"fieldname\"));\n fieldparams.put(Constants.filter_values, Arrays.asList(companyId, Constants.Acc_Product_Master_ModuleId, \"Custom_\" + Constants.HSN_SACCODE));\n KwlReturnObject kwlReturnObjectGstCust = fieldManagerDAOobj.getFieldParams(fieldparams);\n List<FieldParams> fieldParamses = kwlReturnObjectGstCust.getEntityList();\n for (FieldParams fieldParams : fieldParamses) {\n colnum = fieldParams.getColnum();\n }\n reqParams.put(\"hsncolnum\", colnum);\n fieldparams.put(Constants.filter_names, Arrays.asList(Constants.companyid, Constants.moduleid, \"fieldname\"));\n fieldparams.put(Constants.filter_values, Arrays.asList(companyId, Constants.Acc_Product_Master_ModuleId, \"Custom_\" + Constants.GSTProdCategory));\n kwlReturnObjectGstCust = fieldManagerDAOobj.getFieldParams(fieldparams);\n fieldParamses = kwlReturnObjectGstCust.getEntityList();\n for (FieldParams fieldParams : fieldParamses) {\n colnum = fieldParams.getColnum();\n }\n params.put(\"taxclasscolnum\", colnum);\n /**\n * get State column no for Invoice module\n */\n int colnumforstate = fieldManagerDAOobj.getColumnFromFieldParams(Constants.STATE, companyId, Constants.Acc_Vendor_Invoice_ModuleId, 0);\n params.put(\"statecolnum\", colnumforstate);\n /**\n * Get Local state Value\n */\n String entityId = params.optString(\"entityid\");\n params.put(\"companyid\", companyId);\n params.put(\"entityid\", entityId);\n String localState = fieldManagerDAOobj.getStateForEntity(params);\n params.put(\"localState\", localState);\n params.put(\"entityState\", localState);\n /**\n * Get Entity Value and its column no for invoice\n */\n fieldparams.put(Constants.filter_names, Arrays.asList(Constants.companyid, Constants.moduleid, \"fieldname\"));\n fieldparams.put(Constants.filter_values, Arrays.asList(companyId, Constants.Acc_Vendor_Invoice_ModuleId, \"Custom_\" + Constants.ENTITY));\n String fieldid = \"\";\n kwlReturnObjectGstCust = fieldManagerDAOobj.getFieldParams(fieldparams);\n fieldParamses = kwlReturnObjectGstCust.getEntityList();\n for (FieldParams fieldParams : fieldParamses) {\n colnum = fieldParams.getColnum();\n fieldid = fieldParams.getId();\n }\n String entityValue = params.optString(\"entity\");\n String ids = fieldManagerDAOobj.getIdsUsingParamsValueWithoutInsert(fieldid, entityValue);\n reqParams.put(\"invoiceentitycolnum\", colnum);\n reqParams.put(\"invoiceentityValue\", ids);\n fieldparams.put(Constants.filter_names, Arrays.asList(Constants.companyid, Constants.moduleid, \"fieldname\"));\n fieldparams.put(Constants.filter_values, Arrays.asList(companyId, Constants.Acc_Make_Payment_ModuleId, \"Custom_\" + Constants.ENTITY));\n kwlReturnObjectGstCust = fieldManagerDAOobj.getFieldParams(fieldparams);\n fieldParamses = kwlReturnObjectGstCust.getEntityList();\n for (FieldParams fieldParams : fieldParamses) {\n colnum = fieldParams.getColnum();\n fieldid = fieldParams.getId();\n }\n ids = fieldManagerDAOobj.getIdsUsingParamsValueWithoutInsert(fieldid, entityValue);\n reqParams.put(\"paymententitycolnum\", colnum);\n reqParams.put(\"paymententityValue\", ids);\n fieldparams.put(Constants.filter_names, Arrays.asList(Constants.companyid, Constants.moduleid, \"fieldname\"));\n fieldparams.put(Constants.filter_values, Arrays.asList(companyId, Constants.Acc_Debit_Note_ModuleId, \"Custom_\" + Constants.ENTITY));\n kwlReturnObjectGstCust = fieldManagerDAOobj.getFieldParams(fieldparams);\n fieldParamses = kwlReturnObjectGstCust.getEntityList();\n for (FieldParams fieldParams : fieldParamses) {\n colnum = fieldParams.getColnum();\n fieldid = fieldParams.getId();\n }\n ids = fieldManagerDAOobj.getIdsUsingParamsValueWithoutInsert(fieldid, entityValue);\n reqParams.put(\"cnentitycolnum\", colnum);\n reqParams.put(\"cnentityValue\", ids);\n\n fieldparams.put(Constants.filter_names, Arrays.asList(Constants.companyid, Constants.moduleid, \"fieldname\"));\n fieldparams.put(Constants.filter_values, Arrays.asList(companyId, Constants.Acc_GENERAL_LEDGER_ModuleId, \"Custom_\" + Constants.ENTITY));\n kwlReturnObjectGstCust = fieldManagerDAOobj.getFieldParams(fieldparams);\n fieldParamses = kwlReturnObjectGstCust.getEntityList();\n for (FieldParams fieldParams : fieldParamses) {\n colnum = fieldParams.getColnum();\n fieldid = fieldParams.getId();\n }\n ids = fieldManagerDAOobj.getIdsUsingParamsValueWithoutInsert(fieldid, entityValue);\n reqParams.put(\"jeentitycolnum\", colnum);\n reqParams.put(\"jeentityValue\", ids);\n \n fieldparams.put(Constants.filter_names, Arrays.asList(Constants.companyid, Constants.moduleid, \"fieldname\"));\n fieldparams.put(Constants.filter_values, Arrays.asList(companyId, Constants.Acc_Credit_Note_ModuleId, \"Custom_\" + Constants.ENTITY));\n kwlReturnObjectGstCust = fieldManagerDAOobj.getFieldParams(fieldparams);\n fieldParamses = kwlReturnObjectGstCust.getEntityList();\n for (FieldParams fieldParams : fieldParamses) {\n colnum = fieldParams.getColnum();\n fieldid = fieldParams.getId();\n }\n ids = fieldManagerDAOobj.getIdsUsingParamsValue(fieldid, entityValue);\n reqParams.put(\"cnentitycolnum\", colnum);\n reqParams.put(\"cnentityValue\", ids);\n reqParams.put(\"Report_type\",\"gstr2\");\n reqParams.put(\"isGSTR1\",false);\n try {\n /**\n * Put Asset Disposal/ Acquire Invoice Dimension column number\n * details\n */\n putAssetInvoiceDimensionColumnDetails(params, reqParams);\n /**\n * Put Lease Sales Invoice Dimension column number details\n */\n putLeaseInvoiceDimensionColumnDetails(params, reqParams);\n getColumnModelForGSTSummary(jarrRecords, jarrColumns, params);\n \n JSONObject header= new JSONObject();\n header.put(\"typeofinvoice\", \"<b>\" + GSTRConstants.GSTR2_ToBeReconciledWithTheGSTPortal + \"</b>\");\n params.put(\"isViewRenderer\", false);\n dataJArr.put(header);\n \n reqParams.put(\"entitycolnum\", reqParams.optString(\"invoiceentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"invoiceentityValue\"));\n /**\n * Add Additional parameter to reqParams\n */\n params = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n params.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Regular_ECommerce);\n params.put(\"CustomerType\", Constants.CUSTVENTYPE_NA + \",\" + Constants.CUSTVENTYPE_DEEMED_EXPORT + \",\" + Constants.CUSTVENTYPE_SEZ+ \",\" + Constants.CUSTVENTYPE_SEZWOPAY);\n params.put(\"taxClassType\", FieldComboData.TaxClass_Percenatge);\n// params.put(\"zerorated\", false);\n params.put(\"typeofjoinisleft\", true);\n params.put(\"typeofinvoice\", GSTRConstants.GSTR2_B2B);\n JSONObject b2bobj = getB2BInvoiceDetails(params, null);\n JSONObject B2B = new JSONObject();\n B2B = b2bobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(B2B);\n \n /**\n * CDN Invoices\n */\n params = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n params.put(\"entitycolnum\", reqParams.optString(\"cnentitycolnum\"));\n params.put(\"registrationType\",Constants.GSTRegType_Regular+\",\"+Constants.GSTRegType_Regular_ECommerce);\n params.put(\"entityValue\", reqParams.optString(\"cnentityValue\"));\n params.put(\"typeofinvoice\", GSTRConstants.GSTR2_CDN);\n JSONObject cdnrobj = getCDNRInvoiceDetails(params, null);\n JSONObject CDNR = new JSONObject();\n CDNR = cdnrobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(CDNR);\n\n \n JSONObject header1= new JSONObject();\n header1.put(\"typeofinvoice\", \"<b>\" + GSTRConstants.GSTR2_ToBeUploadedOnTheGSTPortal + \"</b>\");\n dataJArr.put(header1); \n /**\n * B2B Unregistered Invoice\n */\n params = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n params.put(\"registrationType\",Constants.GSTRegType_Unregistered);\n params.put(\"CustomerType\", Constants.CUSTVENTYPE_NA + \",\" + Constants.CUSTVENTYPE_DEEMED_EXPORT + \",\" + Constants.CUSTVENTYPE_SEZ+ \",\" + Constants.CUSTVENTYPE_SEZWOPAY);\n params.put(\"taxClassType\", FieldComboData.TaxClass_Percenatge);\n// params.put(\"zerorated\", false);\n params.put(\"typeofjoinisleft\", true);\n params.put(\"typeofinvoice\", GSTRConstants.GSTR2_B2B_unregister);\n b2bobj = getB2BInvoiceDetails(params, null);\n B2B = new JSONObject();\n B2B = b2bobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(B2B);\n /**\n * Import of Services\n */\n params = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n params.put(\"CustomerType\", Constants.CUSTVENTYPE_Import);\n// params.put(\"taxClassType\", FieldComboData.TaxClass_Percenatge);\n params.put(\"isServiceProduct\", true);\n params.put(\"typeofinvoice\", GSTRConstants.GSTR2_ImpServices);\n params.put(GSTRConstants.ADD_LANDEDCOST_JOIN_FOR_IMPORT_INVOICES, true);\n params.put(\"excludetaxClassType\", true);\n params.put(\"typeofjoinisleft\", true);\n JSONObject exportobj = getB2BInvoiceDetails(params, null);\n JSONObject EXPORT = new JSONObject();\n EXPORT = exportobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(EXPORT);\n /**\n * Import of Goods\n */\n params = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n params.put(\"CustomerType\", Constants.CUSTVENTYPE_Import);\n// params.put(\"taxClassType\", FieldComboData.TaxClass_Percenatge);\n params.put(\"isServiceProduct\", false);\n params.put(\"typeofinvoice\", GSTRConstants.GSTR2_ImpGoods);\n params.put(GSTRConstants.ADD_LANDEDCOST_JOIN_FOR_IMPORT_INVOICES, true);\n params.put(\"typeofjoinisleft\", true);\n params.put(\"excludetaxClassType\", true);\n exportobj = getB2BInvoiceDetails(params, null);\n EXPORT = new JSONObject();\n EXPORT = exportobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(EXPORT);\n \n\n /**\n * CDN Unregistered\n */\n JSONObject CDNUR = new JSONObject();\n params = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n params.put(\"entitycolnum\", reqParams.optString(\"cnentitycolnum\"));\n params.put(\"registrationType\", Constants.GSTRegType_Unregistered);\n params.put(\"entityValue\", reqParams.optString(\"cnentityValue\"));\n params.put(\"typeofinvoice\", GSTRConstants.GSTR2_CDN_unregister);\n JSONObject cdnurobj = getCDNRInvoiceDetails(params, null);\n CDNUR = new JSONObject();\n CDNUR = cdnurobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(CDNUR);\n\n /**\n * NIL Rated\n */\n \n params = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n params.put(\"goodsreceiptentitycolnum\", reqParams.optString(\"invoiceentitycolnum\"));\n params.put(\"goodsreceiptentityValue\", reqParams.optString(\"invoiceentityValue\"));\n params.put(\"entitycolnum\", reqParams.optString(\"invoiceentitycolnum\"));\n params.put(\"entityValue\", reqParams.optString(\"invoiceentityValue\"));\n params.put(\"typeofinvoice\", GSTRConstants.GSTR2_nilRated);\n params.put(\"registrationType\", Constants.GSTRegType_Composition);\n params.put(\"typeofjoinisleft\", true);\n JSONObject exemptComposition = getExemptPurchaseInvoiceDetails(params);\n JSONObject exempComp = exemptComposition.getJSONArray(\"summaryArr\").getJSONObject(0);\n double sumTaxableAmt= 0.0,sumTotalAmt=0.0;\n int noOfInvoices=0;\n sumTaxableAmt = exempComp.optDouble(\"sumTaxableAmt\");\n sumTotalAmt = exempComp.optDouble(\"sumTotalAmt\");\n noOfInvoices=exempComp.optInt(\"numberofinvoices\");\n params.remove(\"registrationType\");\n params.put(\"taxClassType\", FieldComboData.TaxClass_Exempted + \",\" + FieldComboData.TaxClass_Non_GST_Product);\n params.put(\"typeofjoinisleft\", true);\n exportobj = getExemptPurchaseInvoiceDetails(params);\n JSONObject EXEMPT = new JSONObject();\n EXEMPT = exportobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n sumTaxableAmt += EXEMPT.optDouble(\"sumTaxableAmt\");\n sumTotalAmt += EXEMPT.optDouble(\"sumTotalAmt\");\n noOfInvoices += EXEMPT.optInt(\"numberofinvoices\");\n /**\n * For Product Tax Class 0%\n */\n params.put(\"taxClassType\", FieldComboData.TaxClass_ZeroPercenatge);\n params.put(\"typeofjoinisleft\", true);\n params.put(GSTRConstants.IS_PRODUCT_TAX_ZERO, true);\n exportobj = getExemptPurchaseInvoiceDetails(params);\n params.remove(GSTRConstants.IS_PRODUCT_TAX_ZERO);\n EXEMPT = new JSONObject();\n EXEMPT = exportobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n sumTaxableAmt += EXEMPT.optDouble(\"sumTaxableAmt\");\n sumTotalAmt += EXEMPT.optDouble(\"sumTotalAmt\");\n noOfInvoices += EXEMPT.optInt(\"numberofinvoices\");\n \n EXEMPT.put(\"sumTaxableAmt\", sumTaxableAmt);\n EXEMPT.put(\"sumTotalAmt\",sumTotalAmt);\n EXEMPT.put(\"numberofinvoices\", noOfInvoices);\n dataJArr.put(EXEMPT);\n\n// JSONObject summaryObj = new JSONObject();\n// summaryObj.put(\"numberofinvoices\", 0);\n// summaryObj.put(\"typeofinvoice\", \"ISD Credit\");\n// summaryObj.put(\"sumTaxableAmt\", 0);\n// summaryObj.put(\"sumTaxAmt\", 0);\n// summaryObj.put(\"sumTotalAmt\", 0);\n// dataJArr.put(summaryObj);\n\n params = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n params.put(\"entitycolnum\", reqParams.optString(\"paymententitycolnum\"));\n params.put(\"entityValue\", reqParams.optString(\"paymententityValue\"));\n params.put(\"typeofinvoice\", GSTRConstants.GSTR2_AdvancePaid);\n JSONObject atobj = getTaxLiabilityOnAdvance(params);\n JSONObject AT = new JSONObject();\n AT = atobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(AT);\n params.put(\"typeofinvoice\", GSTRConstants.GSTR2_AdvanceAdjust);\n JSONObject atadjobj = getAdjustedAdvance(params);\n JSONObject ATADJ = new JSONObject();\n ATADJ = atadjobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n dataJArr.put(ATADJ);\n//\n// summaryObj = new JSONObject();\n// summaryObj.put(\"numberofinvoices\", 0);\n// summaryObj.put(\"typeofinvoice\", \"ITC Reversal\");\n// summaryObj.put(\"sumTaxableAmt\", 0);\n// summaryObj.put(\"sumTaxAmt\", 0);\n// summaryObj.put(\"sumTotalAmt\", 0);\n// dataJArr.put(summaryObj);\n// /**\n// * HSN summary of Inward supplies\n// */\n// params = new JSONObject(reqParams, JSONObject.getNames(reqParams));\n// params.put(\"entitycolnum\", reqParams.optString(\"invoiceentitycolnum\"));\n// params.put(\"entityValue\", reqParams.optString(\"invoiceentityValue\"));\n// params.put(\"typeofinvoice\", \"HSN summary of Inward supplies\");\n// exportobj = getHSNSummarydetails(params);\n// EXPORT = new JSONObject();\n// EXPORT = exportobj.getJSONArray(\"summaryArr\").getJSONObject(0);\n// dataJArr.put(EXPORT);\n\n JSONArray pagedJson = new JSONArray();\n pagedJson = dataJArr;\n if (!StringUtil.isNullOrEmpty(start) && !StringUtil.isNullOrEmpty(limit)) {\n pagedJson = StringUtil.getPagedJSON(pagedJson, Integer.parseInt(start), Integer.parseInt(limit));\n }\n object.put(\"totalCount\", dataJArr.length());\n object.put(\"columns\", jarrColumns);\n object.put(\"coldata\", pagedJson);\n jMeta.put(\"totalProperty\", \"totalCount\");\n jMeta.put(\"root\", \"coldata\");\n jMeta.put(\"fields\", jarrRecords);\n object.put(\"metaData\", jMeta);\n if (params.optBoolean(\"isExport\")) {\n object.put(\"data\", dataJArr);\n object.put(\"columns\", jarrColumns);\n }\n } catch (JSONException ex) {\n throw ServiceException.FAILURE(ex.getMessage(), ex);\n }\n return object;\n }", "private RadiusSector() {}", "Map<Date, Float> getFullCPA(Step step) throws SQLException;", "protected DiskData getDiskData(String sessionIdentifier, boolean create)\n\t{\n\t\tif (!create)\n\t\t{\n\t\t\treturn diskDatas.get(sessionIdentifier);\n\t\t}\n\n\t\tDiskData data = new DiskData(this, sessionIdentifier);\n\t\tDiskData existing = diskDatas.putIfAbsent(sessionIdentifier, data);\n\t\treturn existing != null ? existing : data;\n\t}", "private JSONObject getGSTR3B_Section_3_1_C_Data(JSONObject params, String companyId, JSONArray dataJArr) throws JSONException, ServiceException {\n\n JSONObject jSONObject = new JSONObject();\n JSONObject reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_ZeroPercenatge);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n jSONObject = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_INVOICE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n jSONObject = getInvoiceForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = jSONObject.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n }\n /**\n * Invoice- REGTYPE:Regular,Composition,Unregistered.CUSTTYPE:NA,Export,ExportWOPAY,SEZ,SEZWOPAY.\n * Product Tax Class: Exempted.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", true);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Exempted);\n reqParams.put(\"typeofjoinisleft\", true);\n JSONObject temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_INVOICE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n temp = getInvoiceForGSTR3BNillRated(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"count\", (jSONObject.optInt(\"count\", 0) + temp.optInt(\"count\", 0)));\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n }\n \n \n /**\n * Debit Note- REGTYPE:Regular,Composition,Unregistered.CUSTTYPE:NA,Export,ExportWOPAY,SEZ,SEZWOPAY.\n * Product Tax Class: 0%,Exempted.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_ZeroPercenatge + \",\" + FieldComboData.TaxClass_Exempted);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n temp = getDNAgainstSalesForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n }\n /**\n * Credit Note- REGTYPE:Regular,Composition,Unregistered.CUSTTYPE:NA,Export,ExportWOPAY,SEZ,SEZWOPAY.\n * Product Tax Class: 0%,Exempted.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_ZeroPercenatge + \",\" + FieldComboData.TaxClass_Exempted);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA );\n temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n temp = getCNForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n }\n \n /**\n * Advance Liability- REGTYPE:Regular,Composition,Unregistered.CUSTTYPE:NA,Export,ExportWOPAY,SEZ,SEZWOPAY.\n * Product Tax Class: 0%,Exempted.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_ZeroPercenatge + \",\" + FieldComboData.TaxClass_Exempted);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n JSONObject tempObj = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_PAYMENT_RECEIPT || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n tempObj = getTaxLiabilityOnAdvance(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = tempObj.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n temp = tempObj.optJSONObject(\"gstr3Obj\");\n double totaltaxamt = temp.optDouble(\"csgst3b\", 0.0) + temp.optDouble(\"cgst3b\", 0.0) + temp.optDouble(\"sgst3b\", 0.0) + temp.optDouble(\"igst3b\", 0.0);\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt3b\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst3b\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst3b\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst3b\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst3b\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + totaltaxamt), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"taxableamt3b\", 0.0) + totaltaxamt), companyId));\n }\n /**\n * Adjusted Advance- REGTYPE:Regular,Composition,Unregistered.CUSTTYPE:NA,Export,ExportWOPAY,SEZ,SEZWOPAY.\n * Product Tax Class: 0%,Exempted.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_ZeroPercenatge + \",\" + FieldComboData.TaxClass_Exempted);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n tempObj = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_PAYMENT_RECEIPT || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n tempObj = getAdjustedAdvance(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = tempObj.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n temp = tempObj.optJSONObject(\"gstr3Obj\");\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n\n \n jSONObject.put(\"tableno\", \"\");\n jSONObject.put(\"particulars\", GSTRConstants.GSTR3B_SECTION_3_1_C);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"enableViewDetail\", true);\n dataJArr.put(jSONObject);\n }\n return jSONObject;\n }", "public List<ColunasMesesBody> getClientexIndustria(String periodo, String perfil, String cdVenda) {\n\t\tList<ClienteDetalhado> getCarteira = new ArrayList<>();\n\t\tgetCarteira = new PlanoDeCoberturaConsolidado().getClientesPlanCobConsolidado(perfil, cdVenda);\n\t\tSystem.err.println(getCarteira.size());\n\t\t\n\t\tList<ColunasMesesBody> planCobCliFat = new ArrayList<>();\n\t\t\n\t\tfor (ClienteDetalhado c : getCarteira) {\n\t\t\tColunasMesesBody registro = new ColunasMesesBody();\n\t\t\tregistro.setCd_cliente(c.getCd_cliente());\n\t\t\tregistro.setDesc_cliente(c.getDesc_cliente());\n\t\t\tregistro.setFantasia(c.getFantasia());\n\t\t\tregistro.setTp_Cli(c.getTp_Cli());\n\t\t\tregistro.setCgc_cpf(c.getCgc_cpf());\n\t\t\tregistro.setTelefone(c.getTelefone());\n\t\t\tregistro.setGrupoCli(c.getGrupoCli());\n\t\t\tregistro.setSegmento(c.getSegmento());\n\t\t\tregistro.setArea(c.getArea());\n\t\t\tregistro.setCep(c.getCep());\n\t\t\tregistro.setLogradouro(c.getLogradouro());\n\t\t\tregistro.setNumero(c.getNumero());\n\t\t\tregistro.setBairro(c.getBairro());\n\t\t\tregistro.setMunicipio(c.getMunicipio());\n\t\t\tregistro.setDistrito(c.getDistrito());\n\t\t\tregistro.setCdVendedor(c.getCdVendedor());\n\t\t\tregistro.setVendedor(c.getVendedor());\n\t\t\tregistro.setNomeGuerraVend(c.getNomeGuerraVend());\n\t\t\tregistro.setDescGerencia(c.getDescGerencia());\n\t\t\tregistro.setCdEquipe(c.getCdEquipe());\n\t\t\tregistro.setDescEquipe(c.getDescEquipe());\n\t\t\t\n\t\t\t\t\n\t\t\tregistro.setColuna01(\"R$ 0,00\");\n\t\t\tregistro.setColuna02(\"R$ 0,00\");\n\t\t\tregistro.setColuna03(\"R$ 0,00\");\n\t\t\tregistro.setColuna04(\"R$ 0,00\");\n\t\t\tregistro.setColuna05(\"R$ 0,00\");\n\t\t\tregistro.setColuna06(\"R$ 0,00\");\n\t\t\tregistro.setColuna07(\"R$ 0,00\");\n\t\t\tregistro.setColuna08(\"R$ 0,00\");\n\t\t\tregistro.setColuna09(\"R$ 0,00\");\n\t\t\tregistro.setColuna10(\"R$ 0,00\");\n\t\t\tregistro.setColuna11(\"R$ 0,00\");\n\t\t\tregistro.setColuna12(\"R$ 0,00\");\n\t\t\tregistro.setColuna13(\"R$ 0,00\");\n\t\t\tregistro.setColuna14(\"R$ 0,00\");\n\t\t\tregistro.setColuna15(\"R$ 0,00\");\n\n\t\t\t\n\t\t\tplanCobCliFat.add(registro);\n\t\t}\n\t\t/* CARREGANDO A LISTA DE CLIENTES*/\n\t\t\n\t\t/* TRANTANDO OS CLINTES PARA PASSAR PARA O SELECT */\n\t\t\tString inClintes = \"\";\n\t\t\tint tamanhoLista = getCarteira.size();\n\t\t\tint i = 1;\n\t\n\t\t\tfor (Cliente c : getCarteira) {\n\t\t\t\tif (i < tamanhoLista) {\n\t\t\t\t\tinClintes += c.getCd_cliente() + \", \";\n\t\t\t\t} else {\n\t\t\t\t\tinClintes += c.getCd_cliente();\n\t\t\t\t}\n\t\n\t\t\t\ti++;\n\t\t\t}\n\t\t\n\t\t/* TRANTANDO OS CLINTES PARA PASSAR PARA O SELECT */\n\t\t\n\t\tString sql = \"select * from(\\r\\n\" + \n\t\t\t\t\"SELECT\\r\\n\" + \n\t\t\t\t\" --DATEPART(mm, no.dt_emis) as MES_Emissao,\\r\\n\" + \n\t\t\t\t\" f.descricao as FABRICANTE,\\r\\n\" + \n\t\t\t\t\"\t\tno.cd_clien AS Cod_Cliente, \\r\\n\" + \n\t\t\t\t\"\t cast(SUM((itn.qtde* itn.preco_unit) ) as NUMERIC(12,2)) as Valor\\r\\n\" + \n\t\t\t\t\"\tFROM\\r\\n\" + \n\t\t\t\t\"\t\tdbo.it_nota AS itn\\r\\n\" + \n\t\t\t\t\"\t\t\tINNER JOIN dbo.nota AS no\\r\\n\" + \n\t\t\t\t\"\t\t\t\tINNER JOIN dbo.nota_tpped AS ntped\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tINNER JOIN dbo.tp_ped AS tp\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tON ntped.tp_ped = tp.tp_ped\\r\\n\" + \n\t\t\t\t\"\t\t\t\tON no.nu_nf = ntped.nu_nf\\r\\n\" + \n\t\t\t\t\"\t\t\t \\r\\n\" + \n\t\t\t\t\"\t\t\tINNER JOIN dbo.cliente AS cl \\r\\n\" + \n\t\t\t\t\"\t\t\t\tINNER JOIN dbo.ram_ativ AS rm\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tON cl.ram_ativ = rm.ram_ativ \t\t\t\t \\r\\n\" + \n\t\t\t\t\"\t\t\t\tINNER JOIN dbo.end_cli AS edc\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tON cl.cd_clien = edc.cd_clien\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tAND edc.tp_end = 'FA'\t\t\t\t\t\t\t \\r\\n\" + \n\t\t\t\t\"\t\t\t\tLEFT OUTER JOIN dbo.area AS ar \\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tON cl.cd_area = ar.cd_area\\r\\n\" + \n\t\t\t\t\"\t\t\t\tLEFT OUTER JOIN grupocli\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tON cl.cd_grupocli = grupocli.cd_grupocli\\r\\n\" + \n\t\t\t\t\"\t\t\t\tON no.cd_clien = cl.cd_clien\\r\\n\" + \n\t\t\t\t\"\t\t\t\\r\\n\" + \n\t\t\t\t\"\t\t\tINNER JOIN dbo.vendedor AS vd\\r\\n\" + \n\t\t\t\t\"\t\t\t\tINNER JOIN dbo.equipe AS eq \\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tINNER JOIN dbo.gerencia AS ge \\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tON eq.cd_gerencia = ge.cd_gerencia\\r\\n\" + \n\t\t\t\t\"\t\t\t\t\tAND eq.cd_emp = ge.cd_emp\\r\\n\" + \n\t\t\t\t\"\t\t\t\tON vd.cd_emp = eq.cd_emp \\r\\n\" + \n\t\t\t\t\"\t\t\t\tAND vd.cd_equipe = eq.cd_equipe \\r\\n\" + \n\t\t\t\t\"\\r\\n\" + \n\t\t\t\t\"\t\t\t\tINNER JOIN grp_faix gr\\r\\n\" + \n\t\t\t\t\"\t\t\t\tON vd.cd_grupo = gr.cd_grupo\\r\\n\" + \n\t\t\t\t\"\t\t\tON no.cd_vend = vd.cd_vend\t\t\t\\r\\n\" + \n\t\t\t\t\"\\r\\n\" + \n\t\t\t\t\"\t\tON itn.nu_nf = no.nu_nf \\r\\n\" + \n\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\"\t\tJOIN produto p\\r\\n\" + \n\t\t\t\t\"\t\tON p.cd_prod=itn.cd_prod\\r\\n\" + \n\t\t\t\t\"\t\t\\r\\n\" + \n\t\t\t\t\"\t\tJOIN fabric f\\r\\n\" + \n\t\t\t\t\"\t\tON p.cd_fabric = f.cd_fabric\\r\\n\" + \n\t\t\t\t\"\\r\\n\" + \n\t\t\t\t\"\\r\\n\" + \n\t\t\t\t\"\\r\\n\" + \n\t\t\t\t\"WHERE \\r\\n\" + \n\t\t\t\t\"\tno.situacao IN ('AB', 'DP')\\r\\n\" + \n\t\t\t\t\"\tAND\tno.tipo_nf = 'S' \\r\\n\" + \n\t\t\t\t\"\tAND\tno.cd_emp IN (13, 20)\\r\\n\" + \n\t\t\t\t\"\tAND\tntped.tp_ped IN ('BE', 'BF', 'BS', 'TR', 'VC', 'VE', 'VP', 'VS', 'BP', 'BI', 'VB', 'SR','AS','IP','SL')\\r\\n\" + \n\t\t\t\t\"\tAND no.dt_emis BETWEEN \"+periodo+\"\t\\r\\n\" + \n\t\t\t\t\"\tand no.cd_clien IN (\"+inClintes+\")\\r\\n\" + \n\t\t\t\t\"\tAND f.descricao IN ('ONTEX GLOBAL', 'BIC','CARTA FABRIL','KIMBERLY','BARUEL','PHISALIA','SKALA', 'ALFAPARF', 'EMBELLEZE', 'BEAUTY COLOR', 'HYPERA S/A', 'STEVITA', 'PAMPAM', 'YPE', 'APOLO')\\r\\n\" + \n\t\t\t\t\"\\r\\n\" + \n\t\t\t\t\"\tGROUP BY\\r\\n\" + \n\t\t\t\t\"\t--DATEPART(dd,no.dt_emis),no.dt_emis,\\r\\n\" + \n\t\t\t\t\"\tf.descricao,\\r\\n\" + \n\t\t\t\t\"\t\\r\\n\" + \n\t\t\t\t\"\t no.cd_clien,\\r\\n\" + \n\t\t\t\t\"\tno.cd_emp,\\r\\n\" + \n\t\t\t\t\"\t no.nu_ped, \\r\\n\" + \n\t\t\t\t\"\t no.nome,\\r\\n\" + \n\t\t\t\t\"\t vd.nome_gue,\\r\\n\" + \n\t\t\t\t\"\t vd.cd_vend,\\r\\n\" + \n\t\t\t\t\"\t vd.nome,\\r\\n\" + \n\t\t\t\t\"\t vd.cd_equipe\\r\\n\" + \n\t\t\t\t\"\t \\r\\n\" + \n\t\t\t\t\") em_linha\\r\\n\" + \n\t\t\t\t\"pivot (sum(Valor) for FABRICANTE IN ([ONTEX GLOBAL], [BIC],[CARTA FABRIL],[KIMBERLY],[BARUEL],[PHISALIA],[SKALA],[ALFAPARF],[EMBELLEZE],[BEAUTY COLOR],[HYPERA S/A],[STEVITA],[PAMPAM],[YPE],[APOLO])) em_colunas\\r\\n\" + \n\t\t\t\t\"order by 1\";\t\t\n\t\t\n\t\tSystem.out.println(\"Processando Script Clientes: \" + sql);\n\t\t\n\t\ttry {\n\t\t\tPreparedStatement stmt = connectionSqlServer.prepareStatement(sql);\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\n\n\t\t\twhile (rs.next()) {\n\t\t\tString coluna;\n\n\n\t\t\t\tfor (ColunasMesesBody p:planCobCliFat ) {\n\t\t\t\t\tif(rs.getInt(\"Cod_Cliente\") == p.getCd_cliente()) {\n\t\t\t\t\t\tp.setColuna01(\"teve vendas\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tp.setColuna01(Formata.moeda(rs.getDouble(2)));\n\t\t\t\t\t\tp.setColuna02(Formata.moeda(rs.getDouble(3)));\n\t\t\t\t\t\tp.setColuna03(Formata.moeda(rs.getDouble(4)));\n\t\t\t\t\t\tp.setColuna04(Formata.moeda(rs.getDouble(5)));\n\t\t\t\t\t\tp.setColuna05(Formata.moeda(rs.getDouble(6)));\n\t\t\t\t\t\tp.setColuna06(Formata.moeda(rs.getDouble(7)));\n\t\t\t\t\t\tp.setColuna07(Formata.moeda(rs.getDouble(8)));\n\t\t\t\t\t\tp.setColuna08(Formata.moeda(rs.getDouble(9)));\n\t\t\t\t\t\tp.setColuna09(Formata.moeda(rs.getDouble(10)));\n\t\t\t\t\t\tp.setColuna10(Formata.moeda(rs.getDouble(11)));\n\t\t\t\t\t\tp.setColuna11(Formata.moeda(rs.getDouble(12)));\n\t\t\t\t\t\tp.setColuna12(Formata.moeda(rs.getDouble(13)));\n\t\t\t\t\t\tp.setColuna13(Formata.moeda(rs.getDouble(14)));\n\t\t\t\t\t\tp.setColuna14(Formata.moeda(rs.getDouble(15)));\n\t\t\t\t\t\tp.setColuna15(Formata.moeda(rs.getDouble(16)));\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\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\t\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\n\t\t} catch (SQLException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\t\n\t\t\n\t\t\t\t\n\t\treturn planCobCliFat;\n\n\t\t\n\t\t\n\t}", "private Object[][] getLeaveEncashmentAmt(String month, String year, String divId) {\r\n\t\tObject[][] leaveEncashmentData = null;\r\n\t\ttry {\r\n\t\t\tString query = \" SELECT HRMS_ENCASHMENT_PROCESS_DTL.EMP_ID, NVL(EMP_TOKEN,' '), NVL(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,' '), \"\r\n\t\t\t\t+ \" TO_CHAR(SUM(NVL(ENCASHMENT_TDS_AMOUNT,0)),9999999990.99), 0\"\r\n\t\t\t\t+ \" FROM HRMS_ENCASHMENT_PROCESS_DTL \"\r\n\t\t\t\t+ \" INNER JOIN HRMS_EMP_OFFC ON (HRMS_EMP_OFFC.EMP_ID = HRMS_ENCASHMENT_PROCESS_DTL.EMP_ID) \"\r\n\t\t\t\t+ \" INNER JOIN HRMS_ENCASHMENT_PROCESS_HDR ON (HRMS_ENCASHMENT_PROCESS_HDR.ENCASHMENT_PROCESS_CODE = HRMS_ENCASHMENT_PROCESS_DTL.ENCASHMENT_PROCESS_CODE)\"\r\n\t\t\t\t+ \" WHERE HRMS_ENCASHMENT_PROCESS_HDR.ENCASHMENT_PROCESS_DIVISION =\"+divId+\" AND HRMS_ENCASHMENT_PROCESS_HDR.ENCASHMENT_INCLUDE_SAL_MONTH = \"+month\r\n\t\t\t\t+ \" AND HRMS_ENCASHMENT_PROCESS_HDR.ENCASHMENT_INCLUDE_SAL_YEAR= \"+year+\" AND HRMS_ENCASHMENT_PROCESS_HDR.ENCASHMENT_INCLUDE_SAL_FLAG = 'N'\"\r\n\t\t\t\t+ \" GROUP BY HRMS_ENCASHMENT_PROCESS_DTL.EMP_ID, NVL(EMP_TOKEN,' '), NVL(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,' ')\";\r\n\t\t\tleaveEncashmentData = getSqlModel().getSingleResult(query);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn leaveEncashmentData;\r\n\t}", "@Override\n\tpublic String queryHtcDeptChargeFassetRelaFasset(\n\t\t\tMap<String, Object> entityMap) throws DataAccessException {\n\t\t SysPage sysPage = new SysPage();\n\t\t\t\n\t\tsysPage = (SysPage) entityMap.get(\"sysPage\");\n\t\t\n\t\tif(sysPage.getTotal() == -1){\n\t\t\t\n\t\t\tList<HtcDeptChargeFassetRela> list = htcDeptChargeFassetRelaMapper.queryHtcDeptChargeFassetRelaFasset(entityMap);\n\t\t\t\n\t\t\treturn ChdJson.toJson(list);\n\t\t\t\n\t\t}else{\n\t\t\tRowBounds rowBounds = new RowBounds(sysPage.getPage(), sysPage.getPagesize());\n\t\t\t\n\t\t\tList<HtcDeptChargeFassetRela> list = htcDeptChargeFassetRelaMapper.queryHtcDeptChargeFassetRelaFasset(entityMap, rowBounds);\n\t\t\n\t\t\tPageInfo page = new PageInfo(list);\n\t\t\t\n\t\t\treturn ChdJson.toJson(list, page.getTotal());\n\t\t}\n\t}", "private void getCardData(APDU apdu, byte[] buffer) \r\n \t //@ requires [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t// check P1 and P2\r\n\t\tif (buffer[ISO7816.OFFSET_P1] != (byte) 0x00 || buffer[ISO7816.OFFSET_P2] != (byte) 0x00)\r\n\t\t\tISOException.throwIt(ISO7816.SW_INCORRECT_P1P2);\r\n\t\t// inform the JCRE that the applet has data to return\r\n\t\tapdu.setOutgoing();\r\n\t\t\r\n\t\t////@ open [1/2]valid();\r\n\t\t\t\t\t\t\t\t\r\n\t\tbyte[] data = identityFile.getData(); \r\n\t\t// Only the chip number is of importance: get this at tag position 2\r\n\t\tshort pos = 1;\r\n\t\t//@ open [1/2]identityFile.ElementaryFile(_, _, ?identityFileData, _, _, ?info); // todo (integrate with array_element search)\r\n\t\tshort dataLen = (short) data[pos];\r\n\t\tpos = (short) (pos + 1 + dataLen + 1);\r\n\t\t////@ close [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info); // auto\r\n\t\tif (dataLen <= 0 || dataLen + pos + 2 >= identityFile.getCurrentSize())\r\n\t\t\tISOException.throwIt(ISO7816.SW_DATA_INVALID);\r\n\t\t//@ open [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info);\r\n\t\tdataLen = (short) data[pos];\r\n\t\tpos = (short) (pos + 1);\r\n\t\t////@ close [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info); // auto\r\n\t\tif (dataLen < 0 || pos + dataLen >= identityFile.getCurrentSize())\r\n\t\t\tISOException.throwIt(ISO7816.SW_DATA_INVALID);\r\n\t\t//@ open [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info);\r\n\t\t// check Le\r\n\t\t// if (le != dataLen)\r\n\t\t// ISOException.throwIt((short)(ISO7816.SW_WRONG_LENGTH));\r\n\t\t/*VF*byte version[] = { (byte) 0xA5, (byte) 0x03, (byte) 0x01, (byte) 0x01, (byte) 0x01, (byte) 0x11, (byte) 0x00, (byte) 0x02, (byte) 0x00, (byte) 0x01, (byte) 0x01, (byte) 0x0F };*/\r\n\t\tbyte version[] = new byte[] { (byte) 0xA5, (byte) 0x03, (byte) 0x01, (byte) 0x01, (byte) 0x01, (byte) 0x11, (byte) 0x00, (byte) 0x02, (byte) 0x00, (byte) 0x01, (byte) 0x01, (byte) 0x0F };\r\n\t\tbyte chipNumber[] = new byte[(short) (dataLen + 12)];\r\n\t\tUtil.arrayCopy(data, pos, chipNumber, (short) 0, dataLen);\r\n\t\tUtil.arrayCopy(version, (short) 0, chipNumber, dataLen, (short) 12);\r\n\t\t// //Set serial number\r\n\t\t// Util.arrayCopy(tokenInfo.getData(), (short) 7, tempBuffer, (short) 0,\r\n\t\t// (short) 16);\r\n\t\t//\t\t\r\n\t\t// //Set component code: TODO\r\n\t\t//\t\t\r\n\t\t//\t\t\r\n\t\t// //Set OS number: TODO\r\n\t\t//\t\t\r\n\t\t//\t\t\r\n\t\t// //Set OS version: TODO\r\n\t\t// JCSystem.getVersion();\r\n\t\t//\t\t\r\n\t\t// //Set softmask number: TODO\r\n\t\t//\t\t\r\n\t\t// //Set softmask version: TODO\r\n\t\t//\t\t\r\n\t\t// //Set applet version: TODO : 4 bytes in file system\r\n\t\t//\t\t\r\n\t\t//\t\t\r\n\t\t// //Set Interface version: TODO\r\n\t\t//\t\t\r\n\t\t// //Set PKCS#15 version: TODO\r\n\t\t//\t\t\r\n\t\t// //Set applet life cycle\r\n\t\t// tempBuffer[(short)(le-1)] = GPSystem.getCardState();\r\n\t\t// set the actual number of outgoing data bytes\r\n\t\tapdu.setOutgoingLength((short) chipNumber.length);\r\n\t\t// send content of buffer in apdu\r\n\t\tapdu.sendBytesLong(chipNumber, (short) 0, (short) chipNumber.length);\r\n\t\t\t\t\t\t\t\t\r\n\t\t////@ close [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info); // auto\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t}", "@Transactional(readOnly = true)\n\t@Query(value = \"select avg(price) as price, date_format(curTime,'%Y-%m-%d') as cur_date from StockPrice sp \"\n\t\t\t+ \"where curTime in (select lastDay from BFWeekDay) and \"\n\t\t\t+ \"stockCd in (select stockCd from Stock where sectorCd=:sectorCd) group by curTime order by curTime\")\n\tpublic List<Object[]> findWeekBySectorCd(@Param(\"sectorCd\") String sectorCd);", "private Cliente obtenerDatosGeneralesCliente(Long oidCliente, Periodo peri)\n throws MareException {\n UtilidadesLog.info(\" DAOSolicitudes.obtenerDatosGeneralesCliente(Long oidCliente, Periodo peri):Entrada\");\n \n StringBuffer nombreCli = new StringBuffer();\n\n // crear cliente\n Cliente cliente = new Cliente();\n cliente.setOidCliente(oidCliente);\n\n // completar oidEstatus\n BigDecimal oidEstatus = null;\n\n {\n BelcorpService bs1;\n RecordSet respuesta1;\n String codigoError1;\n StringBuffer query1 = new StringBuffer();\n\n try {\n bs1 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError1 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError1));\n }\n\n try {\n query1.append(\" SELECT CLIE_OID_CLIE, \");\n query1.append(\" ESTA_OID_ESTA_CLIE \");\n query1.append(\" FROM MAE_CLIEN_DATOS_ADICI \");\n query1.append(\" WHERE CLIE_OID_CLIE = \" + oidCliente);\n respuesta1 = bs1.dbService.executeStaticQuery(query1.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuesta1 \" + respuesta1);\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError1 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError1));\n }\n\n if (respuesta1.esVacio()) {\n cliente.setOidEstatus(null);\n } else {\n oidEstatus = (BigDecimal) respuesta1\n .getValueAt(0, \"ESTA_OID_ESTA_CLIE\");\n cliente.setOidEstatus((oidEstatus != null) ? new Long(\n oidEstatus.longValue()) : null);\n }\n }\n // completar oidEstatusFuturo\n {\n BelcorpService bs2;\n RecordSet respuesta2;\n String codigoError2;\n StringBuffer query2 = new StringBuffer();\n\n try {\n bs2 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError2 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError2));\n }\n\n try {\n query2.append(\" SELECT OID_ESTA_CLIE, \");\n query2.append(\" ESTA_OID_ESTA_CLIE \");\n query2.append(\" FROM MAE_ESTAT_CLIEN \");\n query2.append(\" WHERE OID_ESTA_CLIE = \" + oidEstatus);\n respuesta2 = bs2.dbService.executeStaticQuery(query2.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuesta2 \" + respuesta2); \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError2 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError2));\n }\n\n if (respuesta2.esVacio()) {\n cliente.setOidEstatusFuturo(null);\n } else {\n {\n BigDecimal oidEstatusFuturo = (BigDecimal) respuesta2\n .getValueAt(0, \"ESTA_OID_ESTA_CLIE\");\n cliente.setOidEstatusFuturo((oidEstatusFuturo != null) \n ? new Long(oidEstatusFuturo.longValue()) : null);\n }\n }\n }\n // completar periodoPrimerContacto \n {\n BelcorpService bs3;\n RecordSet respuesta3;\n String codigoError3;\n StringBuffer query3 = new StringBuffer();\n\n try {\n bs3 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError3 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError3));\n }\n\n try {\n query3.append(\" SELECT A.CLIE_OID_CLIE, \");\n query3.append(\" A.PERD_OID_PERI, \");\n query3.append(\" B.PAIS_OID_PAIS, \");\n query3.append(\" B.CANA_OID_CANA, \");\n query3.append(\" B.MARC_OID_MARC, \");\n query3.append(\" B.FEC_INIC, \");\n query3.append(\" B.FEC_FINA, \");\n query3.append(\" C.COD_PERI \");\n query3.append(\" FROM MAE_CLIEN_PRIME_CONTA A, \");\n query3.append(\" CRA_PERIO B, \");\n query3.append(\" SEG_PERIO_CORPO C \");\n query3.append(\" WHERE A.CLIE_OID_CLIE = \" + oidCliente);\n query3.append(\" AND A.PERD_OID_PERI = B.OID_PERI \");\n query3.append(\" AND B.PERI_OID_PERI = C.OID_PERI \");\n respuesta3 = bs3.dbService.executeStaticQuery(query3.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuesta3 \" + respuesta3); \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError3 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError3));\n }\n\n if (respuesta3.esVacio()) {\n cliente.setPeriodoPrimerContacto(null);\n } else {\n Periodo periodo = new Periodo();\n\n {\n BigDecimal oidPeriodo = (BigDecimal) respuesta3\n .getValueAt(0, \"PERD_OID_PERI\");\n periodo.setOidPeriodo((oidPeriodo != null) \n ? new Long(oidPeriodo.longValue()) : null);\n }\n\n periodo.setCodperiodo((String) respuesta3\n .getValueAt(0, \"COD_PERI\"));\n periodo.setFechaDesde((Date) respuesta3\n .getValueAt(0, \"FEC_INIC\"));\n periodo.setFechaHasta((Date) respuesta3\n .getValueAt(0, \"FEC_FINA\"));\n periodo.setOidPais(new Long(((BigDecimal) respuesta3\n .getValueAt(0, \"PAIS_OID_PAIS\")).longValue()));\n periodo.setOidCanal(new Long(((BigDecimal) respuesta3\n .getValueAt(0, \"CANA_OID_CANA\")).longValue()));\n periodo.setOidMarca(new Long(((BigDecimal) respuesta3\n .getValueAt(0, \"MARC_OID_MARC\")).longValue()));\n cliente.setPeriodoPrimerContacto(periodo);\n }\n }\n // completar AmbitoGeografico\n {\n BelcorpService bs4;\n RecordSet respuesta4;\n String codigoError4;\n StringBuffer query4 = new StringBuffer();\n\n try {\n bs4 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError4 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError4));\n }\n\n try {\n //jrivas 29/6/2005\n //Modificado INC. 19479\n SimpleDateFormat sdfFormato = new SimpleDateFormat(\"dd/MM/yyyy\");\n String fechaDesde = sdfFormato.format(peri.getFechaDesde());\n String fechaHasta = sdfFormato.format(peri.getFechaHasta());\n\n query4.append(\" SELECT sub.oid_subg_vent, reg.oid_regi, \");\n query4.append(\" zon.oid_zona, sec.oid_secc, \");\n query4.append(\" terr.terr_oid_terr, \");\n query4.append(\" sec.clie_oid_clie oid_lider, \");\n query4.append(\" zon.clie_oid_clie oid_gerente_zona, \");\n query4.append(\" reg.clie_oid_clie oid_gerente_region, \");\n query4.append(\" sub.clie_oid_clie oid_subgerente \");\n query4.append(\" FROM mae_clien_unida_admin una, \");\n query4.append(\" zon_terri_admin terr, \");\n query4.append(\" zon_secci sec, \");\n query4.append(\" zon_zona zon, \");\n query4.append(\" zon_regio reg, \");\n query4.append(\" zon_sub_geren_venta sub \");\n //jrivas 27/04/2006 INC DBLG50000361\n //query4.append(\" , cra_perio per1, \");\n //query4.append(\" cra_perio per2 \");\n query4.append(\" WHERE una.clie_oid_clie = \" + oidCliente);\n query4.append(\" AND una.ztad_oid_terr_admi = \");\n query4.append(\" terr.oid_terr_admi \");\n query4.append(\" AND terr.zscc_oid_secc = sec.oid_secc \");\n query4.append(\" AND sec.zzon_oid_zona = zon.oid_zona \");\n query4.append(\" AND zon.zorg_oid_regi = reg.oid_regi \");\n query4.append(\" AND reg.zsgv_oid_subg_vent = \");\n query4.append(\" sub.oid_subg_vent \");\n //jrivas 27/04/2006 INC DBLG50000361\n query4.append(\" AND una.perd_oid_peri_fin IS NULL \");\n \n // sapaza -- PER-SiCC-2013-0960 -- 03/09/2013\n //query4.append(\" AND una.ind_acti = 1 \");\n \n /*query4.append(\" AND una.perd_oid_peri_fin = \");\n query4.append(\" AND una.perd_oid_peri_ini = per1.oid_peri \");\n query4.append(\" per2.oid_peri(+) \");\n query4.append(\" AND per1.fec_inic <= TO_DATE ('\" + \n fechaDesde + \"', 'dd/MM/yyyy') \");\n query4.append(\" AND ( per2.fec_fina IS NULL OR \");\n query4.append(\" per2.fec_fina >= TO_DATE ('\" + fechaHasta \n + \"', 'dd/MM/yyyy') ) \");*/\n\n respuesta4 = bs4.dbService.executeStaticQuery(query4.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"respuesta4: \" + respuesta4);\n \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError4 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError4));\n }\n\n Gerente lider = new Gerente();\n Gerente gerenteZona = new Gerente();\n Gerente gerenteRegion = new Gerente();\n Gerente subGerente = new Gerente();\n\n if (respuesta4.esVacio()) {\n cliente.setAmbitoGeografico(null);\n } else {\n AmbitoGeografico ambito = new AmbitoGeografico();\n ambito.setOidSubgerencia(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_SUBG_VENT\")).longValue()));\n ambito.setOidRegion(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_REGI\")).longValue()));\n ambito.setOidZona(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_ZONA\")).longValue()));\n ambito.setOidSeccion(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_SECC\")).longValue()));\n\n //jrivas 29/6/2005\n //Modificado INC. 19479\n ambito.setOidTerritorio(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"TERR_OID_TERR\")).longValue()));\n\n if (respuesta4.getValueAt(0, \"OID_LIDER\") != null) {\n lider.setOidCliente(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_LIDER\")).longValue()));\n }\n\n if (respuesta4.getValueAt(0, \"OID_GERENTE_ZONA\") != null) {\n gerenteZona.setOidCliente(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_GERENTE_ZONA\")).longValue()));\n ;\n }\n\n if (respuesta4.getValueAt(0, \"OID_GERENTE_REGION\") != null) {\n gerenteRegion.setOidCliente(new Long(((BigDecimal) \n respuesta4.getValueAt(0, \"OID_GERENTE_REGION\"))\n .longValue()));\n }\n\n if (respuesta4.getValueAt(0, \"OID_SUBGERENTE\") != null) {\n subGerente.setOidCliente(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_SUBGERENTE\")).longValue()));\n }\n\n ambito.setLider(lider);\n ambito.setGerenteZona(gerenteZona);\n ambito.setGerenteRegion(gerenteRegion);\n ambito.setSubgerente(subGerente);\n\n cliente.setAmbitoGeografico(ambito);\n }\n }\n // completar nombre\n {\n BelcorpService bs5;\n RecordSet respuesta5;\n String codigoError5;\n StringBuffer query5 = new StringBuffer();\n\n try {\n bs5 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError5 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError5));\n }\n\n try {\n query5.append(\" SELECT OID_CLIE, \");\n query5.append(\" VAL_APE1, \");\n query5.append(\" VAL_APE2, \");\n query5.append(\" VAL_NOM1, \");\n query5.append(\" VAL_NOM2 \");\n query5.append(\" FROM MAE_CLIEN \");\n query5.append(\" WHERE OID_CLIE = \" + oidCliente.longValue());\n respuesta5 = bs5.dbService.executeStaticQuery(query5.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuesta5 \" + respuesta5);\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError5 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError5));\n }\n\n if (respuesta5.esVacio()) {\n cliente.setNombre(null);\n } else {\n \n if(respuesta5.getValueAt(0, \"VAL_NOM1\")!=null) {\n nombreCli.append((String) respuesta5.getValueAt(0, \"VAL_NOM1\"));\n }\n \n if(respuesta5.getValueAt(0, \"VAL_NOM2\")!=null) {\n if(nombreCli.length()!=0) {\n nombreCli.append(\" \");\n }\n nombreCli.append((String) respuesta5.getValueAt(0, \"VAL_NOM2\"));\n }\n \n if(respuesta5.getValueAt(0, \"VAL_APE1\")!=null) {\n if(nombreCli.length()!=0) {\n nombreCli.append(\" \");\n }\n nombreCli.append((String) respuesta5.getValueAt(0, \"VAL_APE1\"));\n }\n \n if(respuesta5.getValueAt(0, \"VAL_APE2\")!=null) {\n if(nombreCli.length()!=0) {\n nombreCli.append(\" \");\n }\n nombreCli.append((String) respuesta5.getValueAt(0, \"VAL_APE2\"));\n }\n \n cliente.setNombre(nombreCli.toString());\n }\n }\n\n UtilidadesLog.info(\" DAOSolicitudes.obtenerDatosGeneralesCliente(Long oidCliente, Periodo peri):Salida\");\n return cliente;\n }", "String getStockData(String symbol) throws Exception\n\t{\n\t\tfinal String urlHalf1 = \"https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=\";\n\t\tfinal String urlHalf2 = \"&apikey=\";\n\t\tfinal String apiKey = \"FKS0EU9E4K4UQDXI\";\n\n\t\tString url = urlHalf1 + symbol + urlHalf2 + apiKey;\n\n\t\tJsonParser parser = new JsonParser();\n\n\t\tString hitUrl = url;\n\t\tString jsonData = getJsonData(hitUrl);\n\n\t\tJsonElement jsonTree = parser.parse(jsonData);\n\n\t\tString returnData = \"\";\n\n\t\tif (jsonTree.isJsonObject())\n\t\t{\n\t\t\tJsonObject jsonObject = jsonTree.getAsJsonObject();\n\n\t\t\tJsonElement timeSeries = jsonObject.get(\"Time Series (Daily)\");\n\n\t\t\tif (timeSeries.isJsonObject())\n\t\t\t{\n\t\t\t\tJsonObject timeObject = timeSeries.getAsJsonObject();\n\n\t\t\t\tDate date = new Date();\n\n\t\t\t\tCalendar calendar = new GregorianCalendar();\n\t\t\t\tcalendar.setTime(date);\n\n\t\t\t\t// Loop until we reach most recent Friday (market closes on Friday)\n\t\t\t\twhile (calendar.get(Calendar.DAY_OF_WEEK) < Calendar.FRIDAY\n\t\t\t\t\t\t|| calendar.get(Calendar.DAY_OF_WEEK) > Calendar.FRIDAY)\n\t\t\t\t{\n\t\t\t\t\tcalendar.add(Calendar.DAY_OF_MONTH, -1);\n\t\t\t\t}\n\n\t\t\t\tint year = calendar.get(Calendar.YEAR);\n\t\t\t\tint month = calendar.get(Calendar.MONTH) + 1;\n\t\t\t\tint day = calendar.get(Calendar.DAY_OF_MONTH);\n\n\t\t\t\tString dayToString = Integer.toString(day);\n\n\t\t\t\tif (dayToString.length() == 1)\n\t\t\t\t\tdayToString = \"0\" + dayToString;\n\n\t\t\t\tJsonElement currentData = timeObject.get(year + \"-\" + month + \"-\" + dayToString);\n\n\t\t\t\tif (currentData.isJsonObject())\n\t\t\t\t{\n\t\t\t\t\tJsonObject dataObject = currentData.getAsJsonObject();\n\n\t\t\t\t\tJsonElement openPrice = dataObject.get(\"1. open\");\n\t\t\t\t\tJsonElement closePrice = dataObject.get(\"4. close\");\n\t\t\t\t\tJsonElement highPrice = dataObject.get(\"2. high\");\n\t\t\t\t\tJsonElement lowPrice = dataObject.get(\"3. low\");\n\n\t\t\t\t\treturnData = year + \"-\" + month + \"-\" + dayToString + \" - \" + symbol + \": Opening price: $\"\n\t\t\t\t\t\t\t+ openPrice.getAsString() + \" / Closing price: $\" + closePrice.getAsString()\n\t\t\t\t\t\t\t+ \" / High price: $\" + highPrice.getAsString() + \" / Low price: $\" + lowPrice.getAsString();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn returnData;\n\t}", "public JSONObject getGSTComputationDetailReport(JSONObject params) throws ServiceException, JSONException {\n JSONObject object = new JSONObject();\n JSONObject jMeta = new JSONObject();\n JSONArray jarrColumns = new JSONArray();\n JSONArray jarrRecords = new JSONArray();\n JSONArray dataJArr = new JSONArray();\n String start = params.optString(\"start\");\n String limit = params.optString(\"limit\");\n String companyId = params.optString(\"companyid\");\n params.put(\"companyid\", companyId);\n /**\n * Put all required parameter for GST report\n */\n getEntityDataForRequestedModule(params);\n getColNumForRequestedModules(params);\n getLocalStateOfEntity(params);\n \n params.put(GSTR3BConstants.DETAILED_VIEW_REPORT, true);\n String section = params.optString(\"section\");\n accGSTReportService.getColumnModelForGSTR3BDetails(jarrRecords, jarrColumns, params);\n JSONObject dataObj = new JSONObject();\n params.put(GSTR3BConstants.DETAILED_VIEW_REPORT, true);\n switch (section) {\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_1:\n dataObj = getGSTComputation_Sales_Section_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_1_1:\n dataObj = getGSTComputation_Sales_Section_1_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_1_2:\n dataObj = getGSTComputation_Sales_Section_1_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_1_3:\n dataObj = getGSTComputation_Sales_Section_1_3(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_2:\n dataObj = getGSTComputation_Sales_Section_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_2_2:\n dataObj = getGSTComputation_Sales_Section_2_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_3:\n dataObj = getGSTComputation_Sales_Section_3(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_3_1:\n dataObj = getGSTComputation_Sales_Section_3_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_4:\n dataObj = getGSTComputation_Sales_Section_4(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_4_1:\n dataObj = getGSTComputation_Sales_Section_4_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_4_2:\n dataObj = getGSTComputation_Sales_Section_4_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_7:\n dataObj = getGSTComputation_Sales_Section_7(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_1:\n dataObj = getGSTComputation_Sales_Section_7_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_2:\n dataObj = getGSTComputation_Sales_Section_7_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_3:\n dataObj = getGSTComputation_Sales_Section_7_3(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_4:\n dataObj = getGSTComputation_Sales_Section_7_4(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_7_5:\n dataObj = getGSTComputation_Sales_Section_7_5(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_8:\n dataObj = getGSTComputation_Sales_Section_8(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_9:\n dataObj = getGSTComputation_Sales_Section_9(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_9_1:\n dataObj = getGSTComputation_Sales_Section_9_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_9_2:\n dataObj = getGSTComputation_Sales_Section_9_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_10:\n dataObj = getGSTComputation_Sales_Section_10(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_10_1:\n dataObj = getGSTComputation_Sales_Section_10_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_SALES_10_2:\n dataObj = getGSTComputation_Sales_Section_10_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_1:\n dataObj = getGSTComputation_Purchase_Section_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_1_1:\n dataObj = getGSTComputation_Purchase_Section_1_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_2:\n dataObj = getGSTComputation_Purchase_Section_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_3:\n dataObj = getGSTComputation_Purchase_Section_3(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_3_1:\n dataObj = getGSTComputation_Purchase_Section_3_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_3_2:\n dataObj = getGSTComputation_Purchase_Section_3_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_4:\n dataObj = getGSTComputation_Purchase_Section_4(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_5:\n dataObj = getGSTComputation_Purchase_Section_5(params);\n break;\n\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_6:\n dataObj = getGSTComputation_Purchase_Section_6(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_7:\n dataObj = getGSTComputation_Purchase_Section_7(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_7_1:\n dataObj = getGSTComputation_Purchase_Section_7_1(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_7_2:\n dataObj = getGSTComputation_Purchase_Section_7_2(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_11:\n dataObj = getGSTComputation_Purchase_Section_11(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_12:\n dataObj = getGSTComputation_Purchase_Section_12(params);\n break;\n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_11_10:\n dataObj = getGSTComputation_Purchase_Section_11_10(params);\n break; \n case GSTRConstants.GST_COMPUTATION_SECTION_PURCHASES_13_1:\n dataObj = getGSTComputation_Purchase_Section_13_1(params);\n break; \n }\n\n dataJArr = dataObj.has(\"data\") ? dataObj.optJSONArray(\"data\") : new JSONArray();\n JSONArray pagedJson = new JSONArray();\n pagedJson = dataJArr;\n if (!StringUtil.isNullOrEmpty(start) && !StringUtil.isNullOrEmpty(limit)) {\n pagedJson = StringUtil.getPagedJSON(pagedJson, Integer.parseInt(start), Integer.parseInt(limit));\n }\n object.put(\"totalCount\", dataJArr.length());\n object.put(\"columns\", jarrColumns);\n object.put(\"coldata\", pagedJson);\n jMeta.put(\"totalProperty\", \"totalCount\");\n jMeta.put(\"root\", \"coldata\");\n jMeta.put(\"fields\", jarrRecords);\n object.put(\"metaData\", jMeta);\n return object;\n }", "public java.util.Enumeration findCarsByDivision(com.hps.july.persistence.DivisionKey arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n com.hps.july.persistence.CarHome localHome = ejbHome();\n java.util.Enumeration ejbs = localHome.findCarsByDivision(arg0);\n return (java.util.Enumeration) createAccessBeans(ejbs);\n }", "public abstract Station getStation(int stationId) throws DataAccessException;", "HashMap<String, Double> getPortfolioData(String date);", "@Override\n public JSONObject getGSTR3BReportSectionCombo(JSONObject requestParams) throws JSONException {\n JSONArray dataJArr = new JSONArray();\n JSONObject sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_3_1_A);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_3_1_B);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_3_1_C);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_3_1_D);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_3_1_E);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_3_2_A);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_3_2_B);\n dataJArr.put(sectionNameObject);\n /**\n * Currently, we have not implemented UIN.\n */\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_3_2_C);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_4_A_1);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_4_A_2);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_4_A_3);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_4_A_4);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_4_A_5);\n dataJArr.put(sectionNameObject);\n /**\n * Currently, we don't show any values in this section.\n */\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_4_B_1);\n dataJArr.put(sectionNameObject);\n /**\n * Currently, we don't show any values in this section.\n */\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_4_B_2);\n dataJArr.put(sectionNameObject);\n /**\n * Currently, we don't show any values in this section.\n */\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_4_D_1);\n dataJArr.put(sectionNameObject);\n /**\n * Currently, we don't show any values in this section.\n */\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_4_D_2);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_5_1);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_5_2);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_5_3);\n dataJArr.put(sectionNameObject);\n sectionNameObject = new JSONObject();\n sectionNameObject.put(\"typeofinvoice\", GSTRConstants.GSTR3B_SECTION_5_4);\n dataJArr.put(sectionNameObject);\n return new JSONObject().put(\"data\", dataJArr);\n }", "public NetcdfFile getNetcdfFile(HttpServletRequest request, \r\n HttpServletResponse response) throws IOException {\r\n\r\n try {\r\n //parse the request\r\n String path = request.getPathInfo();\r\n path = path.substring(\"/thredds/obis/\".length());\r\nString junk=\"\";\r\n String url = junk;\r\n String resource = junk;\r\n String query = junk;\r\nString2.log(\" url=\" + url);\r\nString2.log(\" resource=\" + resource);\r\nString2.log(\" query=\" + query);\r\n\r\n //get the data\r\n Table table = new Table();\r\n DigirHelper.searchObisOpendapStyle(new String[]{resource}, url, \r\n query, table);\r\n\r\n //save the data in a file\r\n File tFile = File.createTempFile(\"Obis\", \".nc\");\r\n tFile.deleteOnExit();\r\n String fullName = tFile.getCanonicalPath() + tFile.getName();\r\nString2.log(\" fullName=\" + fullName);\r\n table.saveAsFlatNc(fullName, \"row\");\r\n\r\n //return the file \r\n return NetcdfFile.open(fullName);\r\n } catch (Exception e) {\r\n response.sendError(HttpServletResponse.SC_NOT_FOUND);\r\n return null;\r\n }\r\n\r\n }", "public String getInsuranceDetails(String dataSet,String centreAcc){\n\t\tDbFunctions dbfunc = new DbFunctions();\n\t\treturn (dbfunc.getInsuranceDetails(dataSet, centreAcc));\n\t\t/*String month= dbfunc.monthYear();\n\t\t\n\t\ttry{\n\t\t\tClass.forName(\"sun.jdbc.odbc.JdbcOdbcDriver\"); \n\t\t\ttestConnection = DriverManager.getConnection(\"jdbc:odbc:Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};\"\n\t\t\t\t\t+ \"DBQ=\"+ EnvironmentSetup.strDataSheetPath + \";readOnly=false\");\n\t\t\tQueryStatement = EnvironmentSetup.dBConnection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n\t\t\tstrQuery = \"SELECT PrimaryInsuranceCo,PrimarySponsorName,InsurancePlanType,InsurancePlanName from TestData where DataSet = '\" + dataSet + \"'\";\n\t\t\t\n\t\t\ttestResultSet = QueryStatement.executeQuery(strQuery);\n\t\t\ttestResultSet.beforeFirst();\n\t\t\tString PrimaryInsuranceCo =\"\";\n String PrimarySponsorName=\"\";\n String InsurancePlanType=\"\";\n String InsurancePlanName=\"\";\n \n\t\t\twhile (testResultSet.next()){\n\t\t\t\t\n PrimaryInsuranceCo =testResultSet.getString(\"PrimaryInsuranceCo\");\n PrimarySponsorName =testResultSet.getString(\"PrimarySponsorName\");\n InsurancePlanType= testResultSet.getString(\"InsurancePlanType\");\n InsurancePlanName=testResultSet.getString(\"InsurancePlanName\");\n // getInsuranceDetails.put(PrimaryInsuranceCo,PrimarySponsorName,InsurancePlanType,InsurancePlanName);\n //downloadedFile = PrimaryInsuranceCo+ \"-\" +PrimarySponsorName+\"-All-\"+month+\"-\"+InsurancePlanType+\"-\"+InsurancePlanName+\"- Account Group -\"+centreAcc;\n downloadedFile = PrimaryInsuranceCo+ \"-\" +PrimarySponsorName+\"-All-\"+month+\"-\"+InsurancePlanType+\"-\"+InsurancePlanName+centreAcc;\n \t\t\n break;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t\tEnvironmentSetup.logger.info(\"Executing Query on Objects: \" + ex.toString());\n\t\t} finally{\n\t\t\ttry {\n\t\t\t\ttestResultSet.close();\t\t\n\t\t\t\ttestResultSet = null;\n\t\t\t} catch (SQLException e) {\n\t\t\t\t//TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\t\t\t\t\t\t\n\t\t}\n\t\t//DAMAN-National Health Insurance Company-National Health Insurance Company (DAMAN)-ALL-March2017-DAMAN - NW1-DAMAN - NW1 - GLO. (C0,D0,Dn100,Ch0)- Account Group -Pharmacy\n\t\tSystem.out.println(downloadedFile);\n\t\treturn downloadedFile;*/\n\t\t\n\t\t}", "public List<CMCourse> getCMCourses(String startsWith) {\r\n\tlong start = System.currentTimeMillis();\r\n\tlog.debug(\"getCMCourses that starts with \" + startsWith);\r\n\tList<CMCourse> cmCourses = new ArrayList<CMCourse>();\r\n\tSet<CourseSet> courseSets = courseManagementService.getCourseSets();\r\n\tSet<CourseOffering> courseOffs = null;\r\n\tSet<Section> sections = null;\r\n\tCourseSet courseSet = null;\r\n\tCourseOffering courseOff = null;\r\n\tString courseOffEid = null;\r\n\tSection courseS = null;\r\n\tif (courseSets == null)\r\n\t return null;\r\n\tList<AcademicSession> acadSessions =\r\n\t\tcourseManagementService.getCurrentAcademicSessions();\r\n\tDate endDate = null;\r\n\tDate startDate = null;\r\n\r\n\tfor (AcademicSession acadSession : acadSessions) {\r\n\r\n\t for (Iterator<CourseSet> cSets = courseSets.iterator(); cSets\r\n\t\t .hasNext();) {\r\n\t\tcourseSet = cSets.next();\r\n\t\tcourseOffs =\r\n\t\t\tcourseManagementService.findCourseOfferings(\r\n\t\t\t\tcourseSet.getEid(), acadSession.getEid());\r\n\t\tfor (Iterator<CourseOffering> cOffs = courseOffs.iterator(); cOffs\r\n\t\t\t.hasNext();) {\r\n\t\t courseOff = cOffs.next();\r\n\t\t courseOffEid = courseOff.getEid();\r\n\t\t sections =\r\n\t\t\t courseManagementService.getSections(courseOffEid);\r\n\t\t if (courseOffEid.startsWith(startsWith)) {\r\n\t\t\tfor (Iterator<Section> cSs = sections.iterator(); cSs\r\n\t\t\t\t.hasNext();) {\r\n\t\t\t courseS = cSs.next();\r\n\t\t\t String courseTitle =\r\n\t\t\t\t courseManagementService.getCanonicalCourse(\r\n\t\t\t\t\t courseOff.getCanonicalCourseEid())\r\n\t\t\t\t\t .getTitle();\r\n\t\t\t String courseSId = courseS.getEid();\r\n\t\t\t String session =\r\n\t\t\t\t courseOff.getAcademicSession().getTitle();\r\n\t\t\t String sigle = courseOff.getCanonicalCourseEid();\r\n\t\t\t String section =\r\n\t\t\t\t (SHARABLE_SECTION.equals(courseSId\r\n\t\t\t\t\t .substring(courseSId.length() - 2,\r\n\t\t\t\t\t\t courseSId.length()))) ? SHARABLE_SECTION\r\n\t\t\t\t\t : courseSId.substring(\r\n\t\t\t\t\t\t courseSId.length() - 3,\r\n\t\t\t\t\t\t courseSId.length());\r\n\r\n\t\t\t String instructorsString = \"\";\r\n\t\t\t int studentNumber = -1;\r\n\t\t\t EnrollmentSet enrollmentSet =\r\n\t\t\t\t courseS.getEnrollmentSet();\r\n\t\t\t if (enrollmentSet != null) {\r\n\t\t\t\t// Retrieve official instructors\r\n\t\t\t\tSet<String> instructors =\r\n\t\t\t\t\tenrollmentSet.getOfficialInstructors();\r\n\t\t\t\tUser user = null;\r\n\t\t\t\tString name = null;\r\n\t\t\t\tfor (String instructor : instructors) {\r\n\t\t\t\t try {\r\n\t\t\t\t\tuser =\r\n\t\t\t\t\t\tuserDirectoryService\r\n\t\t\t\t\t\t\t.getUserByEid(instructor);\r\n\t\t\t\t\tname = user.getDisplayName();\r\n\t\t\t\t\tinstructorsString += name + \" & \";\r\n\t\t\t\t } catch (UserNotDefinedException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\t// retrieve student number\r\n\t\t\t\tSet<Enrollment> enrollments =\r\n\t\t\t\t\tcourseManagementService\r\n\t\t\t\t\t\t.getEnrollments(enrollmentSet\r\n\t\t\t\t\t\t\t.getEid());\r\n\t\t\t\tif (enrollments != null)\r\n\t\t\t\t studentNumber = enrollments.size();\r\n\t\t\t }\r\n\t\t\t if (!instructorsString.equals(\"\"))\r\n\t\t\t\tinstructorsString =\r\n\t\t\t\t\tinstructorsString.substring(0,\r\n\t\t\t\t\t\tinstructorsString.length() - 3);\r\n\r\n\t\t\t CMCourse cmCourse = new CMCourse();\r\n\t\t\t cmCourse.setId(courseS.getEid());\r\n\t\t\t cmCourse.setSession(session);\r\n\t\t\t cmCourse.setName(courseTitle);\r\n\t\t\t cmCourse.setSigle(sigle);\r\n\t\t\t cmCourse.setSection(section);\r\n\t\t\t cmCourse.setInstructor(instructorsString);\r\n\t\t\t cmCourse.setStudentNumber(studentNumber);\r\n\t\t\t cmCourses.add(cmCourse);\r\n\t\t\t}\r\n\t\t }\r\n\t\t}\r\n\t }\r\n\t}\r\n\tlog.debug(\"getCMCourses \" + elapsed(start) + \" for \" + cmCourses.size()\r\n\t\t+ \" courses\");\r\n\treturn cmCourses;\r\n }", "public void requestEntityObject(PeriodeStokOpname periodeStokOpname) {\n boolean cekDate=true;\n try{\n\t\tthis.requestParam();\n periodeStokOpname.setNamePeriod(getString(FRM_NAME_PERIOD));\n periodeStokOpname.setPeriod(getString(FRM_PERIOD));\n periodeStokOpname.setStartDate(getDate(FRM_START_DATE));\n periodeStokOpname.setEndDate(getDate(FRM_END_DATE));\n \n \n if(cekDate){\n Date startDate=periodeStokOpname.getStartDate();\n Date endDate =periodeStokOpname.getEndDate();\n if(startDate.getTime()>endDate.getTime()){\n periodeStokOpname.setStartDate(getDate(FRM_END_DATE));\n periodeStokOpname.setEndDate(getDate(FRM_START_DATE));\n \n \n }\n \n }\n \n \n \n //set Nama_Employee\n \n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"Error on requestEntityObject : \"+e.toString());\n\t\t}\n\t}", "private JSONObject getGSTR3B_Section_3_1_E_Data(JSONObject params, String companyId, JSONArray dataJArr) throws JSONException, ServiceException {\n JSONObject jSONObject = new JSONObject();\n JSONObject reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA );\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Non_GST_Product);\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_INVOICE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n jSONObject = getInvoiceForGSTR3BNillRated(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = jSONObject.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n }\n /**\n * Debit Note-\n * REGTYPE:Regular,Composition,Unregistered.CUSTTYPE:NA,Export,ExportWOPAY,SEZ,SEZWOPAY.\n * Product Tax Class: NON-GST.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Non_GST_Product);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA );\n JSONObject temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n temp = getDNAgainstSalesForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n\n }\n /**\n * Credit Note-\n * REGTYPE:Regular,Composition,Unregistered.CUSTTYPE:NA,Export,ExportWOPAY,SEZ,SEZWOPAY.\n * Product Tax Class: NON-GST.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"typeofjoinisleft\", true);\n reqParams.put(\"GST3B\", !params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false));\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Non_GST_Product);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n temp = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_NOTE || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n temp = getCNForGSTR3BTaxable(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && params.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = temp.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n }\n\n /**\n * Advance Liability-\n * REGTYPE:Regular,Composition,Unregistered.CUSTTYPE:NA,Export,ExportWOPAY,SEZ,SEZWOPAY.\n * Product Tax Class: NON-GST.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Non_GST_Product);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA);\n JSONObject tempObj = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_PAYMENT_RECEIPT || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n tempObj = getTaxLiabilityOnAdvance(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = tempObj.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n temp = tempObj.optJSONObject(\"gstr3Obj\");\n double totaltaxamt = temp.optDouble(\"csgst3b\", 0.0) + temp.optDouble(\"cgst3b\", 0.0) + temp.optDouble(\"sgst3b\", 0.0) + temp.optDouble(\"igst3b\", 0.0);\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt3b\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst3b\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst3b\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst3b\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst3b\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + totaltaxamt), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"taxableamt3b\", 0.0) + totaltaxamt), companyId));\n }\n /**\n * Adjusted Advance-\n * REGTYPE:Regular,Composition,Unregistered.CUSTTYPE:NA,Export,ExportWOPAY,SEZ,SEZWOPAY.\n * Product Tax Class: NON-GST.\n */\n reqParams = new JSONObject(params, JSONObject.getNames(params));\n reqParams.put(\"entitycolnum\", reqParams.optString(\"receiptentitycolnum\"));\n reqParams.put(\"entityValue\", reqParams.optString(\"receiptentityValue\"));\n reqParams.put(\"taxClassType\", FieldComboData.TaxClass_Non_GST_Product);\n reqParams.put(\"registrationType\", Constants.GSTRegType_Regular + \",\" + Constants.GSTRegType_Composition + \",\" + Constants.GSTRegType_Unregistered);\n reqParams.put(\"CustomerType\", Constants.CUSTVENTYPE_NA );\n tempObj = new JSONObject();\n if ((reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) || (!StringUtil.isNullOrEmpty(params.optString(\"transactionType\", null)) && (params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_PAYMENT_RECEIPT || params.optInt(\"transactionType\", 0) == GSTRConstants.GSTR3B_TRANSACTION_TYPE_ALL))) {\n tempObj = getAdjustedAdvance(reqParams);\n }\n if (!(reqParams.has(\"reportid\") && reqParams.optInt(\"reportid\", 0) == Constants.GSTR3B_Summary_Report) && reqParams.optBoolean(GSTR3BConstants.DETAILED_VIEW_REPORT, false)) {\n JSONArray tempArr = tempObj.optJSONArray(\"data\");\n if (tempArr != null && tempArr.length() > 0) {\n dataJArr = StringUtil.concatJSONArray(dataJArr, tempArr);\n }\n } else {\n temp = tempObj.optJSONObject(\"gstr3Obj\");\n jSONObject.put(\"taxableamt\", authHandler.formattedAmount((jSONObject.optDouble(\"taxableamt\", 0.0) + temp.optDouble(\"taxableamt\", 0.0)), companyId));\n jSONObject.put(\"igst\", authHandler.formattedAmount((jSONObject.optDouble(\"igst\", 0.0) + temp.optDouble(\"igst\", 0.0)), companyId));\n jSONObject.put(\"cgst\", authHandler.formattedAmount((jSONObject.optDouble(\"cgst\", 0.0) + temp.optDouble(\"cgst\", 0.0)), companyId));\n jSONObject.put(\"sgst\", authHandler.formattedAmount((jSONObject.optDouble(\"sgst\", 0.0) + temp.optDouble(\"sgst\", 0.0)), companyId));\n jSONObject.put(\"csgst\", authHandler.formattedAmount((jSONObject.optDouble(\"csgst\", 0.0) + temp.optDouble(\"csgst\", 0.0)), companyId));\n jSONObject.put(\"totaltax\", authHandler.formattedAmount((jSONObject.optDouble(\"totaltax\", 0.0) + temp.optDouble(\"totaltax\", 0.0)), companyId));\n jSONObject.put(\"totalamount\", authHandler.formattedAmount((jSONObject.optDouble(\"totalamount\", 0.0) + temp.optDouble(\"totalamount\", 0.0)), companyId));\n\n jSONObject.put(\"tableno\", \"\");\n jSONObject.put(\"particulars\", GSTRConstants.GSTR3B_SECTION_3_1_E);\n jSONObject.put(\"fmt\", \"B\");\n jSONObject.put(\"enableViewDetail\", true);\n dataJArr.put(jSONObject);\n }\n return jSONObject;\n }", "private Sector getNext(){\n\t\tif(sectors.size() == 0){\n\t\t\treturn null;\n\t\t} \n\t\tSector sector = sectors.get(0);\n\t\tsectors.remove(0);\n\t\treturn sector;\t\n\t}", "public void obtenerPosicionesSolicitud(Solicitud solicitud)\n throws MareException {\n UtilidadesLog.info(\" DAOSolicitudes.obtenerPosicionesSolicitud(Solici\"\n +\"tud solicitud):Entrada\");\n\n BelcorpService bs;\n RecordSet respuesta;\n String codigoError;\n StringBuffer query = new StringBuffer();\n\n try {\n bs = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n try {\n //jrivas 20/7/2006 (indDevolucion) DBLG5000974 / DBLG5000981 / DBLG5001011\n //jrivas 1/8/2006 (indAnulacion) DBLG50001003\n if (!solicitud.getIndDevolucion() && !solicitud.getIndAnulacion()) {\n query.append(\" SELECT OID_SOLI_POSI, \");\n query.append(\" ESPO_OID_ESTA_POSI, \");\n //jrivas 27/04/2006 INC DBLG50000354\n //query.append(\" VAL_PREC_CATA_TOTA_LOCA_UNID, \");\n query.append(\" NUM_UNID_POR_ATEN, \");\n query.append(\" NUM_UNID_COMPR, \");\n query.append(\" VAL_PREC_CATA_UNIT_LOCA, \");\n //jrivas 27/04/2006 INC DBLG50000354\n //query.append(\" VAL_PREC_CONT_UNIT_LOCA, \");\n query.append(\" IND_CTRL_STOC, \");\n query.append(\" IND_CTRL_LIQU, \");\n query.append(\" IND_LIMI_VENT, \");\n query.append(\" NUM_UNID_DEMA_REAL, \");\n query.append(\" MAPR_OID_MARC_PROD, \");\n query.append(\" UNEG_OID_UNID_NEGO, \");\n query.append(\" NEGO_OID_NEGO, \");\n query.append(\" GENE_OID_GENE, \");\n query.append(\" SGEN_OID_SUPE_GENE, \");\n query.append(\" TOFE_OID_TIPO_OFER, \");\n query.append(\" CIVI_OID_CICLO_VIDA, \");\n query.append(\" SP.NUM_UNID_DEMA, \");\n query.append(\" PR.OID_PROD, \");\n query.append(\" VAL_PREC_FACT_UNIT_LOCA, \");\n query.append(\" VAL_PREC_NETO_UNIT_LOCA \");\n \n // sapaza -- COL-SiCC-2013-0030 -- 28/11/2013 \n query.append(\" ,OFDE_OID_DETA_OFER \");\n \n query.append(\" FROM PED_SOLIC_POSIC SP, \");\n query.append(\" MAE_PRODU PR, \");\n query.append(\" PRE_OFERT_DETAL OD \");\n query.append(\" WHERE SP.PROD_OID_PROD = PR.OID_PROD \");\n query.append(\" AND SP.OFDE_OID_DETA_OFER = OD.OID_DETA_OFER(+) \");\n query.append(\" AND SP.SOCA_OID_SOLI_CABE = \").append(solicitud.getOidSolicitud());\n } else {\n query.append(\" SELECT OID_SOLI_POSI, ESPO_OID_ESTA_POSI, NUM_UNID_POR_ATEN, NUM_UNID_COMPR, \");\n query.append(\" VAL_PREC_CATA_UNIT_LOCA, IND_CTRL_STOC, IND_CTRL_LIQU, IND_LIMI_VENT, \");\n query.append(\" NUM_UNID_DEMA_REAL, MAPR_OID_MARC_PROD, UNEG_OID_UNID_NEGO, \");\n query.append(\" NEGO_OID_NEGO, GENE_OID_GENE, SGEN_OID_SUPE_GENE, \");\n query.append(\" A.CIVI_OID_CICLO_VIDA, A.TOFE_OID_TIPO_OFER, SP.NUM_UNID_DEMA, \");\n query.append(\" PR.OID_PROD, VAL_PREC_FACT_UNIT_LOCA, VAL_PREC_NETO_UNIT_LOCA \");\n \n // sapaza -- COL-SiCC-2013-0030 -- 28/11/2013 \n query.append(\" ,OFDE_OID_DETA_OFER \");\n \n // sapaza -- PER-SiCC-2011-0279 -- 07/06/2011\n if(solicitud.isValidaReemplazo()) {\n query.append(\" ,(SELECT COUNT(1) FROM pre_matri_factu mf, PRE_MATRI_REEMP mr \");\n query.append(\" WHERE mf.OID_MATR_FACT = mr.MAFA_OID_COD_REEM \"); \n query.append(\" AND mf.ofde_oid_deta_ofer = SP.OFDE_OID_DETA_OFER) COD_REEM \");\n }\n \n query.append(\" FROM PED_SOLIC_POSIC SP, \");\n query.append(\" MAE_PRODU PR, \");\n query.append(\" (SELECT DISTINCT OD.CIVI_OID_CICLO_VIDA, OD.TOFE_OID_TIPO_OFER, \");\n query.append(\" OD.PROD_OID_PROD \");\n query.append(\" FROM PRE_OFERT_DETAL OD, \");\n query.append(\" PRE_OFERT O, \");\n query.append(\" PRE_MATRI_FACTU_CABEC MFC \");\n query.append(\" WHERE OD.OFER_OID_OFER = O.OID_OFER \");\n query.append(\" AND O.MFCA_OID_CABE = MFC.OID_CABE \");\n query.append(\" AND MFC.PERD_OID_PERI = \");\n query.append(\" (SELECT DISTINCT SC3.PERD_OID_PERI \");\n query.append(\" FROM PED_SOLIC_POSIC SP, \");\n query.append(\" PED_SOLIC_CABEC SC, \");\n query.append(\" PED_SOLIC_CABEC SC2, \");\n query.append(\" PED_SOLIC_CABEC SC3 \");\n query.append(\" WHERE SC.OID_SOLI_CABE = \").append(solicitud.getOidSolicitud());\n query.append(\" AND SP.SOCA_OID_SOLI_CABE = SC.OID_SOLI_CABE \");\n query.append(\" AND SC.SOCA_OID_DOCU_REFE = SC2.OID_SOLI_CABE \");\n query.append(\" AND SC3.SOCA_OID_SOLI_CABE = SC2.OID_SOLI_CABE \");\n query.append(\" AND OD.VAL_CODI_VENT = SP.VAL_CODI_VENT \");\n query.append(\" AND OD.PROD_OID_PROD = SP.PROD_OID_PROD)) A \");\n query.append(\" WHERE SP.PROD_OID_PROD = PR.OID_PROD \");\n query.append(\" AND SP.SOCA_OID_SOLI_CABE = \").append(solicitud.getOidSolicitud());\n query.append(\" AND A.PROD_OID_PROD = SP.PROD_OID_PROD \");\n }\n\n respuesta = bs.dbService.executeStaticQuery(query.toString());\n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* Posiciones \" + respuesta); \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n if (respuesta.esVacio()) {\n solicitud.setPosiciones(new Posicion[0]);\n } else {\n Posicion[] posiciones = new Posicion[respuesta.getRowCount()];\n\n for (int i = 0; i < respuesta.getRowCount(); i++) {\n posiciones[i] = new Posicion();\n posiciones[i].setSolicitud(solicitud);\n posiciones[i].setOidPosicion(new Long(((BigDecimal) \n respuesta.getValueAt(i, \"OID_SOLI_POSI\")).longValue()));\n\n {\n BigDecimal oidPosicion = (BigDecimal) respuesta\n .getValueAt(i, \"ESPO_OID_ESTA_POSI\");\n posiciones[i].setEstado((oidPosicion != null) ? new Long(\n oidPosicion.longValue()) : null);\n }\n\n //jrivas 27/04/2006 INC DBLG50000354\n /*{\n BigDecimal precio1 = (BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_CATA_TOTA_LOCA_UNID\");\n posiciones[i].setPrecioCatalogTotalUniDemandaReal(\n (precio1 != null) ? precio1 : new BigDecimal(0));\n }*/\n\n {\n BigDecimal unidadesPorAtender = (BigDecimal) respuesta\n .getValueAt(i, \"NUM_UNID_POR_ATEN\");\n posiciones[i].setUnidadesPorAtender(\n (unidadesPorAtender != null) ? new Long(\n unidadesPorAtender.longValue()) : new Long(0));\n }\n\n {\n BigDecimal unidadesComprometidas = (BigDecimal) respuesta\n .getValueAt(i, \"NUM_UNID_COMPR\");\n posiciones[i].setUnidadesComprometidas(\n (unidadesComprometidas != null) ? new Long(\n unidadesComprometidas.longValue()) : new Long(0));\n }\n\n {\n BigDecimal precio2 = (BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_CATA_UNIT_LOCA\");\n posiciones[i].setPrecioCatalogoUnitarioLocal(\n (precio2 != null) ? precio2 : new BigDecimal(0));\n }\n\n //jrivas 27/04/2006 INC DBLG50000354\n /* BigDecimal precio3 = (BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_CONT_UNIT_LOCA\");\n posiciones[i].setPrecioContableUnitarioLocal(\n (precio3 != null) ? precio3 : new BigDecimal(0));*/\n\n\n {\n BigDecimal controlStock = (BigDecimal) respuesta\n .getValueAt(i, \"IND_CTRL_STOC\");\n\n if (controlStock == null) {\n posiciones[i].setControlStock(false);\n } else {\n if (controlStock.intValue() == 1) {\n posiciones[i].setControlStock(true);\n } else {\n posiciones[i].setControlStock(false);\n }\n }\n }\n\n {\n BigDecimal controlLiquidacion = (BigDecimal) respuesta\n .getValueAt(i, \"IND_CTRL_LIQU\");\n\n if (controlLiquidacion == null) {\n posiciones[i].setControlLiquidacion(false);\n } else {\n if (controlLiquidacion.intValue() == 1) {\n posiciones[i].setControlLiquidacion(true);\n } else {\n posiciones[i].setControlLiquidacion(false);\n }\n }\n }\n\n {\n BigDecimal limiteVenta = (BigDecimal) respuesta\n .getValueAt(i, \"IND_LIMI_VENT\");\n\n if (limiteVenta == null) {\n posiciones[i].setLimiteVenta(false);\n } else {\n if (limiteVenta.intValue() == 1) {\n posiciones[i].setLimiteVenta(true);\n } else {\n posiciones[i].setLimiteVenta(false);\n }\n }\n }\n\n {\n BigDecimal unidades = (BigDecimal) respuesta\n .getValueAt(i, \"NUM_UNID_DEMA_REAL\");\n posiciones[i].setUnidadesDemandaReal((unidades != null) \n ? new Long(unidades.longValue()) : new Long(0));\n }\n\n {\n BigDecimal oidMarcaProducto = (BigDecimal) respuesta\n .getValueAt(i, \"MAPR_OID_MARC_PROD\");\n posiciones[i].setOidMarcaProducto(\n (oidMarcaProducto != null) ? new Long(oidMarcaProducto\n .longValue()) : null);\n }\n\n {\n BigDecimal oidUnidadNegocio = (BigDecimal) respuesta\n .getValueAt(i, \"UNEG_OID_UNID_NEGO\");\n posiciones[i].setOidUnidadNegocio(\n (oidUnidadNegocio != null) ? new Long(oidUnidadNegocio\n .longValue()) : null);\n }\n\n {\n BigDecimal oidNegocio = (BigDecimal) respuesta\n .getValueAt(i, \"NEGO_OID_NEGO\");\n posiciones[i].setOidNegocio((oidNegocio != null) \n ? new Long(oidNegocio.longValue()) : null);\n }\n\n {\n BigDecimal oidGenerico = (BigDecimal) respuesta\n .getValueAt(i, \"GENE_OID_GENE\");\n posiciones[i].setOidGenerico((oidGenerico != null) \n ? new Long(oidGenerico.longValue()) : null);\n }\n\n {\n BigDecimal oidSuperGenerico = (BigDecimal) respuesta \n .getValueAt(i, \"SGEN_OID_SUPE_GENE\");\n posiciones[i].setOidSuperGenerico(\n (oidSuperGenerico != null) ? new Long(oidSuperGenerico\n .longValue()) : null);\n }\n\n BigDecimal uniDemandadas = (BigDecimal) respuesta\n .getValueAt(i, \"NUM_UNID_DEMA\");\n posiciones[i].setUnidadesDemandadas((uniDemandadas != null) \n ? new Long(uniDemandadas.longValue()) : new Long(0));\n\n posiciones[i].setOidProducto(new Long(((BigDecimal) respuesta\n .getValueAt(i, \"OID_PROD\")).longValue()));\n \n BigDecimal oidTipoOferta = (BigDecimal) respuesta \n .getValueAt(i, \"TOFE_OID_TIPO_OFER\"); \n posiciones[i].setOidTipoOferta(\n (oidTipoOferta != null) ? new Long(oidTipoOferta\n .longValue()) : null);\n \n BigDecimal oidCicloVida = (BigDecimal) respuesta \n .getValueAt(i, \"CIVI_OID_CICLO_VIDA\"); \n posiciones[i].setOidCicloVida(\n (oidCicloVida != null) ? new Long(oidCicloVida\n .longValue()) : null);\n \n posiciones[i].setPrecioFacturaUnitarioLocal((BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_FACT_UNIT_LOCA\"));\n \n posiciones[i].setPrecioNetoUnitarioLocal((BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_NETO_UNIT_LOCA\"));\n \n // sapaza -- PER-SiCC-2011-0279 -- 07/06/2011\n if (solicitud.getIndDevolucion() && solicitud.isValidaReemplazo()) { \n BigDecimal codigoReemplazo = (BigDecimal) respuesta.getValueAt(i, \"COD_REEM\");\n \n if (codigoReemplazo == null) {\n posiciones[i].setProductoReemplazo(false);\n } else {\n if (codigoReemplazo.intValue() > 0) {\n posiciones[i].setProductoReemplazo(true);\n } else {\n posiciones[i].setProductoReemplazo(false);\n }\n }\n } else \n posiciones[i].setProductoReemplazo(false);\n \n // sapaza -- COL-SiCC-2013-0030 -- 28/11/2013 \n BigDecimal oidDetalleOferta = (BigDecimal) respuesta \n .getValueAt(i, \"OFDE_OID_DETA_OFER\"); \n posiciones[i].setOidDetalleOferta(\n (oidDetalleOferta != null) ? new Long(oidDetalleOferta.longValue()) : null); \n \n } // posiciones\n\n solicitud.setPosiciones(posiciones);\n }\n UtilidadesLog.info(\" DAOSolicitudes.obtenerPosicionesSolicitud(Solici\"\n +\"tud solicitud):Salida\");\n }", "Map<Date, Float> getFullCPM(Step step) throws SQLException;", "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 }", "List<String> getMesActivo(Integer idSector);" ]
[ "0.6552528", "0.60807955", "0.60036105", "0.5930222", "0.580587", "0.5684824", "0.5542817", "0.55096555", "0.5488399", "0.5457125", "0.5418116", "0.5413812", "0.53971165", "0.5382499", "0.5352277", "0.53422904", "0.53017116", "0.52519786", "0.51855314", "0.51603204", "0.5128966", "0.5119973", "0.5104172", "0.5102927", "0.5071275", "0.5057815", "0.5055726", "0.5055068", "0.5050304", "0.50496423", "0.5046347", "0.50434136", "0.5033174", "0.50265706", "0.5013983", "0.49910268", "0.4976304", "0.49742046", "0.49727866", "0.4971224", "0.49651465", "0.4952055", "0.49442792", "0.4936624", "0.49197", "0.49188733", "0.49180079", "0.49173957", "0.49148136", "0.49124894", "0.4894154", "0.48837346", "0.48835498", "0.4880621", "0.48760808", "0.48466957", "0.48384443", "0.483052", "0.48281136", "0.4821016", "0.4819439", "0.4794679", "0.47943807", "0.4794283", "0.47876102", "0.47853833", "0.4784129", "0.47785535", "0.47777745", "0.47703466", "0.47656047", "0.4764192", "0.4763233", "0.47604176", "0.47602552", "0.47346017", "0.4733135", "0.47323492", "0.47293934", "0.47270104", "0.47174567", "0.47171235", "0.4705853", "0.4700584", "0.46976224", "0.46851024", "0.46794152", "0.46771377", "0.46771255", "0.4675661", "0.46668446", "0.46510956", "0.46477512", "0.46425253", "0.46330523", "0.46312794", "0.46214733", "0.46171704", "0.46168315", "0.46138543", "0.4612656" ]
0.0
-1
select from user's table and find the balance. insert into the log to the user's table.
public int balance(String accountNumber, String userId) { Connection conn; PreparedStatement ps, pp; String url = "jdbc:mysql://localhost:3306/mars"; String username = "root"; String password = "1113"; try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException e1) { e1.printStackTrace(); } try{ //connect to database conn=DriverManager.getConnection(url, username, password); String sql = "select balance from "+this.name+" where accountNumber=?"; ps= (PreparedStatement) conn.prepareStatement(sql); ps.setString(1, accountNumber.toString()); ResultSet rs = ps.executeQuery(); int nowBalance = 0; while(rs.next()) { nowBalance=rs.getInt("balance"); } String logs = "Checked balance: "+String.valueOf(nowBalance); String sql1 = "insert into "+userId+" (log) values (?)"; pp = (PreparedStatement) conn.prepareStatement(sql1); pp.setString(1, logs); pp.executeUpdate(); return nowBalance; } catch (SQLException e) { throw new IllegalStateException("Cannot connect the database!", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void withdraw(String accountNumber, int amount) {\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll;\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\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\t\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tpp = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tpp.setInt(1, lastBalance);\n\t\tpp.setString(2, accountNumber.toString());\n\t\tpp.executeUpdate();\n\t\t\n\t\tString logs = \"withdraw : \"+ amount+\" / balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tll = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tll.setString(1, logs);\n\t\tll.executeUpdate();\n\t\tSystem.out.println(\"Ypu got $\"+String.valueOf(amount));\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\t\n\t}", "public ResultSet retBalance(Long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"Select balance from account where accno=\"+userid+\"\");\r\n\treturn rs;\r\n}", "public void deposit(String accountNumber, int amount) {\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll;\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\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\tlastBalance = nowBalance + amount;\n\t\t//System.out.println(lastBalance);\n\t\t\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tpp = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tpp.setInt(1, lastBalance);\n\t\tpp.setString(2, accountNumber.toString());\n\t\tpp.executeUpdate();\n\t\t\n\t\tString logs = \"deposit : \"+ amount+\" / balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tll = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tll.setString(1, logs);\n\t\tll.executeUpdate();\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}", "public void checkBalance()\n\t{\n\t\tList<Account> accounts = Main.aDao.getAllAccounts(this.loggedIn.getUserId());\n\t\tdouble accountsTotal = 0;\n\t\t\n\t\tfor(Account a : accounts)\n\t\t{\n\t\t\taccountsTotal += a.getBalance();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Total funds available across all accounts:\\n\" + accountsTotal);\n\t}", "private void updateDatabaseAccountBalance() {\n\t\tString sql = \"UPDATE account SET balance = \" + this.balance + \" \";\n\t\tsql += \"WHERE accountID = '\" + this.accountID + \"';\";\n\n\t\tDbUtilities db = new MySqlUtilities();\n\t\tdb.executeQuery(sql);\n\t}", "private int getBalance() throws SQLException {\n\t\tgetBalanceStatement.clearParameters();\n\t\tgetBalanceStatement.setString(1, this.username);\n\t\tResultSet result = getBalanceStatement.executeQuery();\n\t\tresult.next();\n\t\tint out = result.getInt(1);\n\t\tresult.close();\n\t\treturn out;\n\t}", "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}", "public double selectCurrentBalance(int choice, String getUser);", "public void printBalance() {\n logger.info(\"Wallet balance : \" + total_bal);\n }", "public String getBalanceInfo(String request,String user);", "public void deposit(double amount) {\n balance += amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo='\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n }", "public int balup(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "double getBalance();", "double getBalance();", "public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "@Override\n public void logDeposit(UUID userUUID, double amount) {\n }", "@Override\r\n\tpublic double showbalanceDao() {\n\t\t\r\n\t\treturn temp.getCustBal();\r\n\t}", "@Override\r\n\tpublic void updateBalance( Integer userid, double amount) {\n\t\tif ( getBalance( userid) < amount) {\r\n\t\t\tthrow new RuntimeException( \"用户余额不足!\");\r\n\t\t}\r\n\t\tString sql = \"UPDATE buyers SET balance = balance - ? WHERE id = ?;\";\r\n\t\tjdbcTemplate.update( sql, amount, userid);\r\n\t}", "@Override\n\tpublic double getAccountBalance(final int bankAccountId, final String vcDate, final Connection connection)\n\t{\n\t\tdouble opeAvailable = 0, totalAvailable = 0;\n\t\ttry {\n\n\t\t\tfinal StringBuilder str = new StringBuilder(\"SELECT case when sum(openingDebitBalance) = null then 0\")\n\t\t\t\t\t.append(\" ELSE sum(openingDebitBalance) end - case when sum(openingCreditBalance) = null then 0\")\n\t\t\t\t\t.append(\" else sum(openingCreditBalance) end AS \\\"openingBalance\\\" \")\n\t\t\t\t\t.append(\"FROM transactionSummary WHERE financialYearId=( SELECT id FROM financialYear WHERE startingDate <= ?\")\n\t\t\t\t\t.append(\"AND endingDate >= ?) AND glCodeId =(select glcodeid from bankaccount where id= ?)\");\n\t\t\tif (LOGGER.isInfoEnabled())\n\t\t\t\tLOGGER.info(str);\n\t\t\tQuery pst = persistenceService.getSession().createSQLQuery(str.toString());\n\t\t\tpst.setString(0, vcDate);\n\t\t\tpst.setString(1, vcDate);\n\t\t\tpst.setInteger(2, bankAccountId);\n\t\t\tList<Object[]> rset = pst.list();\n\t\t\tfor (final Object[] element : rset)\n\t\t\t\topeAvailable = Double.parseDouble(element[0].toString());\n\t\t\tif (LOGGER.isInfoEnabled())\n\t\t\t\tLOGGER.info(\"opening balance \" + opeAvailable);\n\n\t\t\tfinal StringBuilder str1 = new StringBuilder(\"SELECT (case when sum(gl.debitAmount) = null then 0\")\n\t\t\t\t\t.append(\" else sum(gl.debitAmount) end - case when sum(gl.creditAmount) = null then 0\")\n\t\t\t\t\t.append(\" else sum(gl.creditAmount) end) + \").append(opeAvailable).append(\"\")\n\t\t\t\t\t.append(\" as \\\"totalAmount\\\" FROM generalLedger gl, voucherHeader vh WHERE vh.id = gl.voucherHeaderId\")\n\t\t\t\t\t.append(\" AND gl.glCodeid = (select glcodeid from bankaccount where id= ?) AND \")\n\t\t\t\t\t.append(\" vh.voucherDate >=( SELECT TO_CHAR(startingDate, 'dd-Mon-yyyy')\")\n\t\t\t\t\t.append(\" FROM financialYear WHERE startingDate <= ? AND endingDate >= ?) AND vh.voucherDate <= ?\");\n\t\t\tif (LOGGER.isInfoEnabled())\n\t\t\t\tLOGGER.info(str1);\n\t\t\tpst = persistenceService.getSession().createSQLQuery(str1.toString());\n\t\t\tpst.setInteger(0, bankAccountId);\n\t\t\tpst.setString(1, vcDate);\n\t\t\tpst.setString(2, vcDate);\n\t\t\tpst.setString(3, vcDate);\n\t\t\trset = pst.list();\n\t\t\tfor (final Object[] element : rset) {\n\t\t\t\ttotalAvailable = Double.parseDouble(element[0].toString());\n\t\t\t\tif (LOGGER.isInfoEnabled())\n\t\t\t\t\tLOGGER.info(\"total balance \" + totalAvailable);\n\t\t\t}\n\n\t\t} catch (final HibernateException e) {\n\t\t\tLOGGER.error(\" could not get Bankbalance \" + e.toString(), e);\n\t\t\tthrow new HibernateException(e.toString());\n\t\t}\n\t\treturn totalAvailable;\n\t}", "private void deposit() {\n userInput = 0;\n while (userInput <= 0) {\n System.out.printf(\"Din nuværende balance er: %.2f DKK\\n\" +\n \"Indtast ønsket beløb at indsætte: \", balanceConverted);\n\n textMenuKey(false, \"\");\n\n if (userInput <= 0) {\n System.out.println(\"Indtast et gyldigt beløb\");\n }\n }\n\n moneyController(userInput);\n mysql.transactionUpdate(customerNumber, customerName, balance, userInput, \"Deposited\");\n }", "public void initializeBalance() {\n try {\n Connection connection = connect();\n\n PreparedStatement createBalanceTable = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS balance (\"\n + \"id INTEGER PRIMARY KEY,\"\n + \"user_username varchar(100),\"\n + \"amount float, \"\n + \"time varchar,\"\n + \"FOREIGN KEY (user_username) REFERENCES User(username));\"\n );\n createBalanceTable.execute();\n createBalanceTable.close();\n connection.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "private void insertUser(String name, String password, int balance) throws SQLException {\n\t\tinsertUserStatement.clearParameters();\n\t\tinsertUserStatement.setString(1, name);\n\t\tinsertUserStatement.setString(2, password);\n\t\tinsertUserStatement.setInt(3, balance);\n\t\tinsertUserStatement.executeUpdate();\n\t}", "public void balance(){\n\t\tnamesTree.balance();\n\t\taccountNumbersTree.balance();\n\t}", "double getBalance(UUID name);", "@Override\n public void logWithdrawal(UUID userUUID, double amount) {\n }", "public float getBalance()\r\n\t{\n\t\ttry\r\n\t\t{\r\n\t\t\tDBConnection ToDB = new DBConnection(); //Have a connection to the DB\r\n\t\t\tConnection DBConn = ToDB.openConn();\r\n\t\t\tStatement Stmt = DBConn.createStatement();\r\n\t\t\tString SQL_Command = \"SELECT Balance FROM SavingsAccount WHERE SavingsAccountNumber ='\"+SavingsAccountNumber+\"'\"; //SQL query command for Balance\r\n\t\t\tResultSet Rslt = Stmt.executeQuery(SQL_Command);\r\n\t\t\twhile (Rslt.next())\r\n\t\t\t{\r\n\t\t\t\tBalance = Rslt.getFloat(1);\r\n\t\t\t}\r\n\t\t\tStmt.close();\r\n\t\t\tToDB.closeConn();\r\n\t\t}\r\n\t\tcatch(SQLException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"SQLException: \" + e);\r\n\t\t\twhile (e != null)\r\n\t\t\t{ System.out.println(\"SQLState: \" + e.getSQLState());\r\n\t\t\t\tSystem.out.println(\"Message: \" + e.getMessage());\r\n\t\t\t\tSystem.out.println(\"Vendor: \" + e.getErrorCode());\r\n\t\t\t\te = e.getNextException();\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exception: \" + e);\r\n\t\t\te.printStackTrace ();\r\n\t\t}\r\n\t\treturn Balance;\r\n\t}", "int deposit(int id, int amount, int accountType) {\n int idCompare; // will contain the ID needed\n double accountBalance = 0;\n String account; // 0 = chequing, 1 = savings\n\n // If the accountType is 0, then it's a Chequing account the user wants to deposit to, if it's 1 then\n // it's savings\n account = accountType == 0 ? \"UserBalanceC\" : \"UserBalanceS\";\n\n // Look into the account number and user balance for the deposit\n String sql = \"SELECT AccountNum, \" + account + \" FROM CashiiDB2\";\n\n try {\n rs = st.executeQuery(sql);\n while (rs.next()) {\n idCompare = rs.getInt(\"AccountNum\"); // grab the id to compare with after\n\n // If the ID turns about to be the one that's needed, get the balance and add the amount needed\n if (idCompare == id) {\n accountBalance = rs.getDouble(account);\n accountBalance += amount;\n break;\n } else\n return -1;\n }\n // Run the operation to update the balance only for the user's account\n updateAccount(id, accountBalance, account);\n } catch (java.sql.SQLException e) {\n e.printStackTrace();\n }\n System.out.println(\"AMOUNT: \" + accountBalance);\n return 1;\n }", "private void listBalances() {\n\t\t\r\n\t}", "protected void initUserAccount(String userServer, long userId, String userName, String balanceId) {\r\n\t\tDataCollection.remove(userServer, \"finance\", \"bill_\" + userId, new BasicDBObject());\r\n\t\tBasicDBObject oField = null;\r\n\t\tif (StringUtil.isEmpty(balanceId)) {\r\n\t\t\toField = new BasicDBObject().append(\"balance\", 0).append(\"income\", 0).append(\"withdraw\", 0).append(\"timestamp\", System.currentTimeMillis())\r\n\t\t\t\t\t.append(\"userId\", userId).append(\"userName\", userName);\r\n\t\t} else {\r\n\t\t\toField = new BasicDBObject().append(\"_id\", new ObjectId(balanceId)).append(\"balance\", 0).append(\"income\", 0).append(\"withdraw\", 0)\r\n\t\t\t\t\t.append(\"timestamp\", System.currentTimeMillis()).append(\"userId\", userId).append(\"userName\", userName);\r\n\t\t}\r\n\t\tbalanceId = DataCollection.insert(userServer, \"finance\", \"bill_\" + userId, oField).toString();\r\n\t\tDataCollection.createIndex(userServer, \"finance\", \"bill_\" + userId, \"keyIdx\", new BasicDBObject().append(\"shortId\", 1), false);\r\n\t\tString sql = \"update user set balance=0,income=0,withdraw=0,income_total=0,withdraw_total=0,sms_count=0,balance_id=? where user_id=?\";\r\n\t\tDataSet.update(Const.defaultMysqlServer, Const.defaultMysqlDB, sql, new String[] { balanceId, String.valueOf(userId) });\r\n\t}", "@Override\n\tpublic double queryBalance(int accNo) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic Account getBalance(String username) {\n\t\treturn account.findByUsername(username);\n\t}", "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 }", "protected void insertDime(double balance)\r\n {\r\n totalBalance = balance;\r\n totalBalance = totalBalance + 0.1;\r\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tConnection con=null;\r\n\t\tPreparedStatement updateSt=null;\r\n\t\tPreparedStatement selectSt=null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tDriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());\r\n\t\t\tString url=\"jdbc:oracle:thin:@localhost:1521:xe\";\r\n\t\t\tString user=\"hr\";\r\n\t\t\tString pass=\"hr\";\r\n\t\t con=DriverManager.getConnection(url,user,pass);\r\n\t\t\tSystem.out.println(\"Connected\");\r\n\t\t\tcon.setAutoCommit(false);\r\n\t\t\tsc = new Scanner(System.in);\r\n\t\t\tSystem.out.println(\"Enter Account ID\");\r\n\t\t\tint id=sc.nextInt();\r\n\t\t\tselectSt=con.prepareStatement(\"select * from account where aid=?\");\r\n\t\t\tselectSt.setInt(1, id);\r\n\t\t\tResultSet rs1=selectSt.executeQuery();\r\n double bal1=0.0;\r\n if(rs1!=null) {\r\n \tif(rs1.next()) {\r\n \t\tSystem.out.println(rs1.getString(3));\r\n \t\tbal1=rs1.getDouble(\"balance\");\r\n \t\tSystem.out.println(\"Your balance is \"+bal1);\r\n \t}\r\n }\r\n \r\n /*\r\n \tPreparedStatement st=con.prepareStatement(sqlQuery);\r\n \tst.setInt(1,id);\r\n \tst.setLong(2,mb);\r\n \tst.setString(3,ah);\r\n \tst.setDouble(4,bal);\r\n \t\r\n int insertedRec=st.executeUpdate();\r\n \r\n\t\tSystem.out.println(+insertedRec);\r\n \t\r\n con.commit();\r\n con.close()\t;\r\n }*/}\r\n \tcatch(SQLException e)\r\n \t{\r\n System.out.println(e.getMessage()+\"\"+e.getErrorCode()+\"\"+e.getSQLState());\r\n e.printStackTrace();\r\n }\r\n\t\t\r\n\t}", "public int TransBuy(Long userid,Long compid,Long newbalance,Double amount)throws SQLException {\n\tjava.util.Date d=new java.util.Date();\r\n\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\tString sdate=sd.format(d);\r\n\tResultSet rs1=DbConnect.getStatement().executeQuery(\"select * from transaction where type='purchase' and bywhom='self' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\"\");\r\n\tif(rs1.next()==true)\r\n\t{\r\n\t\tint l=DbConnect.getStatement().executeUpdate(\"update transaction set amount=amount+\"+amount+\",SHAREAMOUNT=SHAREAMOUNT+\"+newbalance+\" where type='purchase' and bywhom='self' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\" \");\r\n\t}\r\n\telse\r\n\t{\r\n\t\tint i=DbConnect.getStatement().executeUpdate(\"Insert into transaction values(trans_seq.nextval,\"+userid+\",'\"+sdate+\"',\"+amount+\",'purchase','self',\"+compid+\",\"+newbalance+\")\");\r\n\r\n\t}\r\n\t\tResultSet rss=DbConnect.getStatement().executeQuery(\"select * from FINALALLOCATION where user_id=\"+userid+\" and comp_id=\"+compid+\" \");\r\n\tif(rss.next()==true)\r\n\t{\r\n\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}\r\n\telse\r\n\t{\r\n\t\tint k=DbConnect.getStatement().executeUpdate(\"insert into FINALALLOCATION values(\"+userid+\",\"+compid+\",\"+newbalance+\")\");\r\n\t}\r\n\treturn 1;\r\n}", "public void showAccountBalance(){\n balance();\n\n }", "@Override\r\n\tpublic void saveCurrentBalance(Double btcprice, Double balance, Long userId) {\r\n\t\taccountDataDao.saveCurrentBalance(btcprice, balance, userId);\t\t\r\n\t}", "public void displayUserBalance(View view) {\n final AdminBalanceFragment balanceFragment = new AdminBalanceFragment();\n balanceFragment.setContext(this);\n\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n DatabaseHelper db = new DatabaseHelper(this);\n atm.setCurrentUser(db.getUserDetails(atm.getCurrentUser().getId()));\n transaction.replace(R.id.atm_fragment_container, balanceFragment);\n transaction.addToBackStack(null);\n\n transaction.commit();\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 withdraw(double amount) throws InsufficientFundsException {\n if (amount <= balance) {\n balance -= amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo= '\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n } //end if\n else {\n throw new InsufficientFundsException(amount);\n } //end else\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 Money getTotalBalance();", "public int TransSale(Long userid,Long compid,Long newbalance,Double amount)throws SQLException {\n\tjava.util.Date d=new java.util.Date();\r\n\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\tString sdate=sd.format(d);\r\n\tResultSet rs1=DbConnect.getStatement().executeQuery(\"select * from transaction where type='sale' and bywhom='self' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\"\");\r\n\tif(rs1.next()==true)\r\n\t{\r\n\t\tint l=DbConnect.getStatement().executeUpdate(\"update transaction set amount=amount+\"+amount+\",SHAREAMOUNT=SHAREAMOUNT+\"+newbalance+\" where type='sale' and bywhom='self' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\" \");\r\n\t}\r\n\telse\r\n\t{\r\n\t\tint i=DbConnect.getStatement().executeUpdate(\"Insert into transaction values(trans_seq.nextval,\"+userid+\",'\"+sdate+\"',\"+amount+\",'sale','self',\"+compid+\",\"+newbalance+\")\");\r\n\r\n\t}\r\n\t\tResultSet rss=DbConnect.getStatement().executeQuery(\"select * from FINALALLOCATION where user_id=\"+userid+\" and comp_id=\"+compid+\" \");\r\n\tif(rss.next()==true)\r\n\t{\r\n\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}\r\n\t\r\n\treturn 1;\r\n}", "@Override\r\n\tpublic Double getBalance( Integer id) {\n\t\tString sql = \"SELECT balance FROM buyers WHERE id = ?;\";\r\n\t\treturn jdbcTemplate.queryForObject( sql, Double.class, id);\r\n\t}", "private void withdraw() {\n userInput = 0;\n while (userInput <= 0) {\n System.out.printf(\"Din nuværende balance er: %.2f DKK\\n\" +\n \"Indtast ønsket beløb at hæve: \", balanceConverted);\n\n textMenuKey(false, \"\");\n\n if (userInput <= 0) {\n System.out.println(\"Indtast et gyldigt beløb\");\n }\n }\n\n if ((userInput * 100) <= balance) {\n moneyController(-userInput);\n mysql.transactionUpdate(customerNumber, customerName, balance, userInput, \"Withdraw\");\n } else {\n System.out.println(\"Utilstrækkelig balance på kontien\");\n }\n }", "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 float showBalance() {\n\t\treturn dao.showBalance();\r\n\t}", "public static void withdraw(double amount, Date date, Bank bank, String username, User user) {\n\t\tdouble preamount = (bank.userMap.get(username).getAmount());\n\t\tif (amount > preamount) {\n\t\t\tSystem.out.println(\"Insufficient balance.\");\n\n\t\t} else {\n\t\t\tpreamount = preamount - amount;\n\t\t\tbank.userMap.get(username).setAmount(preamount);\n\n\t\t\t// -----------------------------------------------------------------\n\t\t\tObjectOutputStream oos = null;\n\t\t\tString outputFile = \"resource/Bank.txt\";\n\n\t\t\ttry {\n\t\t\t\toos = new ObjectOutputStream(new FileOutputStream(outputFile));\n\n//\t\tSystem.out.println(\"user ye : \"+user);\n\t\t\t\tbank.userMap.replace(username, new User(user.getName(), user.getAddress(), user.getPhone(), username,\n\t\t\t\t\t\tuser.getPassword(), preamount, user.getDate()));\n//\t System.out.println(\"user u \"+user);\n\n\t\t\t\tfor (Entry<String, User> entry : bank.userMap.entrySet())\n\t\t\t\t\toos.writeObject(bank.userMap);\n\t\t\t\toos.close();\n\t\t\t} catch (OptionalDataException e) {\n\t\t\t\tSystem.out.println();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tif (oos != null)\n\t\t\t\t\ttry {\n\t\t\t\t\t\toos.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tdepositAmount(String.format(username + \", amount \" + amount + \" debited from your account. Balance - \"\n\t\t\t\t\t+ preamount + \" as on \" + \"%1$tD\" + \" at with \" + \"%1$tT.\", date), bank, username);\n\t\t}\n\n\t\t// -------------------------------------------------------------------\n\n\t}", "private void updateBalance(int balance) throws SQLException {\n\t\tupdateBalanceStatement.clearParameters();\n\t\tupdateBalanceStatement.setInt(1, balance);\n\t\tupdateBalanceStatement.setString(2, this.username);\n\t\tupdateBalanceStatement.executeUpdate();\n\t}", "public void transferMoney(int customerAccountId, int accountId) throws SQLException {\n // check if the customer has this account\n boolean customerOwnsAccount = false;\n for (int i = 0; i < this.currentCustomer.getAccounts().size(); i++) {\n if (customerAccountId == this.currentCustomer.getAccounts().get(i).getId()) {\n customerOwnsAccount = true;\n break;\n }\n }\n // it is safe to proceed since the customer accounts have been authenticated\n if (customerOwnsAccount) {\n Account customerAccount = DatabaseSelectHelper.getAccountDetails(customerAccountId);\n // try and catch for valid input (int) expected\n try {\n System.out.println(\"Enter amount you wish to transfer:\");\n // take user input as a big decimal\n BigDecimal bigAmount = new BigDecimal(br.readLine());\n if (bigAmount.compareTo(customerAccount.getBalance()) <= 0) {\n // try to update accounts\n try {\n // update the account which received money in database\n DatabaseUpdateHelper.updateAccountBalance(\n bigAmount.add(DatabaseSelectHelper.getBalance(accountId)), accountId);\n // update account which transfered money in database\n DatabaseUpdateHelper.updateAccountBalance(\n customerAccount.getBalance().subtract(bigAmount), customerAccountId);\n // update the customer object for printing reasons for other options\n this.currentCustomer.updateAccounts();\n // Explicitly tell user money is transfered\n System.out.println(\"you have successfully transfered money to account \" + accountId);\n \n } catch (Exception e) {\n System.out.println(\"The account ID you wish to transfer money to does not exist\");\n }\n // error printing\n } else {\n System.out.println(\"This account does not have enough money to send this amount\");\n }\n \n } catch (Exception e) {\n System.out.println(\"Invalid amount\");\n }\n // error printing\n } else {\n System.out.println(\"You do not have access to this account\");\n }\n \n }", "public static void getAcountsBalance(int value) {\n\t\t\t\n\t\t\taccounts.clear();\n\n\t\t\tString query = \"select account.accID, accType, balance, dateCreated, fName, lName \" + \n\t\t \"from ser322.account,ser322.customer \" + \n\t\t \"WHERE customer.accID = account.accID AND balance =\" + value;\n\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tStatement stmt = con.getConnection().createStatement();\n\t\t\t ResultSet rs = stmt.executeQuery(query);\n\t\t while (rs.next()) {\n\t\t \taccounts.addElement(new Account(rs.getInt(\"accID\"),rs.getString(\"accType\"),\n\t\t \t\t\t rs.getFloat(\"balance\"),rs.getDate(\"dateCreated\"), rs.getString(\"fName\"), rs.getString(\"lName\")));\n\t\t \n\t\t }\n\t\t \n\t\t } catch (SQLException e ) {\n\t\t \tSystem.out.println(\"QUERY WRONG - getAcountsBalance\");\n\t\t }\n\t\n\t\t}", "public float balance() throws IOException {\n\tfloat balance = (float)0.0;\n\tDocument doc = parseFile();\n\tElements transactions = doc.select(\"table[id=transactions]\");\n\tfor (Element sub: transactions.select(\"td\")) {\n\t float amount = Float.parseFloat(sub.text().trim());\n\t balance += amount;\n\t}\n\treturn balance;\n }", "public static BigDecimal getBalance(int accountId) throws SQLException {\n boolean cdt1 = Checker.checkValidUserAccountAccountId(accountId);\n // if it is a valid account id, establish a connection\n if (cdt1) {\n Connection connection = DatabaseDriverHelper.connectOrCreateDataBase();\n BigDecimal balance = DatabaseSelector.getBalance(accountId, connection);\n connection.close();\n return balance;\n }\n return null;\n }", "void checkBalance() {\n\t\tSystem.out.println(\"Account balance: \" + balance);\n\t}", "void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }", "public void viewBalance() {\n\t\tSystem.out.println(\"This is your current Balance $\" + tuitionBalance);\n\t}", "public static void extract_money(){\n TOTALCMONEY = TOTALCMONEY - BALANCERETRIEVE; //the total cashier money equals the total cashier money minus the retrieve request\r\n BALANCE = BALANCE - BALANCERETRIEVE; //the user balance equals the account minus the retrieve request\r\n }", "public void displayTotalBalance(View view) {\n AdminAllBalanceFragment balanceFragment = new AdminAllBalanceFragment();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n DatabaseHelper db = new DatabaseHelper(this);\n atm.setCurrentUser(db.getUserDetails(atm.getCurrentUser().getId()));\n transaction.replace(R.id.atm_fragment_container, balanceFragment);\n transaction.addToBackStack(null);\n\n transaction.commit();\n }", "public double getTotalFundBalance(final String user[]) throws DBException, ClassNotFoundException, SQLException\r\n\t{\r\n\tdouble totalBalance=0;\r\n\tfinal FundDAO fdObject = new FundDAO();\r\n\tint iterator;\r\n\t\r\n\tfor(iterator=0;iterator<user.length;iterator++)\r\n\t{\r\n\ttotalBalance+=fdObject.getBalanceUser(user[iterator]);\r\n\t}\r\n\t\r\n\treturn totalBalance;\t\r\n\t}", "public Double getBalance(){\n Double sum = 0.0;\n // Mencari balance dompet dari transaksi dengan cara menghitung total transaksi\n for (Transaction transaction : transactions) {\n sum += transaction.getAmount().doubleValue();\n }\n return sum;\n }", "private static double checkUserBalance(User user, Document doc, Printer printer) {\n\t\t\n\t\tdouble balance = user.getBalance().doubleValue();\n\t\tint pagesToPrint = printer.numPagesToPrint(doc).intValue();\n\t\t\n\t\tchar format = doc.getPageFormat();\n\t\tchar toner = doc.getPageToner();\n\n\t\tdouble pricing = 0.0;\n\n\t\t// Get printer pricing\n\t\tif(format == '4' && toner == 'B') {\n\t\t\tpricing = printer.getPrinterPricing().getPriceA4Black().doubleValue();\n\t\t} else if(format == '4' && toner == 'C') {\n\t\t\tpricing = printer.getPrinterPricing().getPriceA4Color().doubleValue();\n\t\t} else if(format == '3' && toner == 'B') {\n\t\t\tpricing = printer.getPrinterPricing().getPriceA3Black().doubleValue();\n\t\t} else if(format == '3' && toner == 'C') {\n\t\t\tpricing = printer.getPrinterPricing().getPriceA3Color().doubleValue();\n\t\t}\n\t\t\n\t\t// Calc total cost\n\t\tdouble totalCost = pricing * pagesToPrint;\n\t\t\n\t\tif(balance >= totalCost) return 0;\n\t\telse return totalCost;\n\t}", "public void InitializeBalance(BigDecimal valor){\n \r\n ChekingAccount chekAc=pRepository.GetChekingAccount();\r\n chekAc.setSaldoInicial(valor);\r\n pRepository.SaveChekingAccount(chekAc);\r\n \r\n }", "public void balanceMenu(){\n\t\tstate = ATM_State.BALANCE;\n\t\tdouble balance = Bank.getBalance(accountID); \n\t\tgui.setDisplay(\"Current balance: \\n$\" + balance);\t\n\t}", "public void getBalance() {\n\t\tSystem.out.println(\"Balance in Savings account is\" + balance);\n\t\t//return balance;\n\t}", "public void gameUI(String username, BigDecimal balance){\n\n System.out.println(ANSI_RESET + username + \", balance: \" + ANSI_YELLOW + balance + \"\\n\" +\n ANSI_PURPLE + \"Command:\");\n }", "@Override\r\n\tpublic double withdrawlDao(double money) throws EwalletException {\n\t\tif(money<temp.getCustBal()) {\r\n\t\t\ttemp.setCustBal(temp.getCustBal()-money);\r\n\t\t\ttry {\r\n\t\t\t\ttemp.settDetails(\"Date :\"+tDate+\" Amount Withdrawn :\"+money+\" Total Balance :\"+temp.getCustBal());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tdao.updatedetails(temp.getAccNum(),temp);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\" Low Balance :( \");\r\n\t\t\treturn temp.getCustBal();\r\n\t}", "public void addBalance()\n\t\t{\n\t\t\tthis.setBalance_acc2(this.getBalance_acc2() + this.getTemp_d_acc2());\n\t\t}", "@Override\r\n\tpublic double depositDao(double money) throws EwalletException {\n\t\ttemp.setCustBal(temp.getCustBal()+money);\r\n\t\ttry {\r\n\t\t\ttemp.settDetails(\"Date :\"+tDate+\" Depsoited Amount :\"+money+\" Total Balance :\"+temp.getCustBal());\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tdao.updatedetails(temp.getAccNum(),temp);\r\n\t\treturn temp.getCustBal();\r\n\t\t\r\n\t}", "public void logNewAccount(int op_id, int account_id, int current_balance){\n try {\n PreparedStatement stmt = rawDataSource.getConnection().prepareStatement(\n \"insert into OPERATIONS (OP_ID, OP_TYPE, FROM_ACCOUNT_ID, FROM_CURRENT_BALANCE, TIMESTAMP) \" +\n \"values (?,?,?,?,?)\");\n stmt.setInt(1, op_id);\n stmt.setInt(2, OP_TYPES.valueOf(\"CREATE\").ordinal()+1);\n stmt.setInt(3, account_id);\n stmt.setInt(4, current_balance);\n stmt.setTimestamp(5, new Timestamp(System.currentTimeMillis()));\n stmt.execute();\n stmt.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public double getBalance()\n \n {\n \n return balance;\n \n }", "private double getBalance() { return balance; }", "public double getCurrentBalance(){\n if(!checkAccountOpen()){\n System.out.println(\"This transaction could not be processed. Please check your account status.\");\n }\n System.out.println(\"Your current balance is: $\"+currentBalance);\n return currentBalance;\n }", "public double getBal() {\n\t\t return balance;\r\n\t }", "protected double getTotalBalance()\r\n {\r\n return totalBalance;\r\n }", "@Override\n\tpublic void transferBalnace() {\n\t\tSystem.out.println(\"balance is transferd\");\n\t}", "private void updateMoney() {\n balance = mysql.getMoney(customerNumber);\n balanceConverted = (float) balance / 100.00;\n }", "@Override\n\tpublic int accountUpdate(String id, String balance) {\n\t\tSession session=sessionFactory.openSession();\n\t\tTransaction tr = session.beginTransaction();\n\t\tint executeUpdate = 0;\n\t\tString sqlString=\"update user set balance = '\"+balance+\"' where id ='\"+id+\"'\";\n\t\ttry {\n\t\t\tQuery query=session.createSQLQuery(sqlString);\n\t\t\texecuteUpdate = query.executeUpdate();\n\t\t\tSystem.out.println(\"executeUpdate:\"+executeUpdate);\n\t\t} catch (HibernateException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttr.commit();\n\t\t session.close();\n\t\t}\n\t\treturn executeUpdate;\t\n\t}", "void addBalance(double amount) {\n\t\tbalance += amount;\n\t}", "public double checkBalanceSavings(long socialSecurityNumber, String userName, String password) throws AuthenticationException,UnauthorizedActionException{\r\n if(security(socialSecurityNumber, userName, password)){\r\n throw new AuthenticationException();\r\n }\r\n if(getPatron(socialSecurityNumber).getSavingsAccount() == null){\r\n throw new UnauthorizedActionException();\r\n }\r\n return getPatron(socialSecurityNumber).getSavingsAccount().getAvailableBalance();\r\n }", "private void doCheckBalance() {\n while (true){\n try{\n Account userAccount = ui.readAccount(currentUser.getAccounts());\n ui.displayMessage(\"Balance: \" + userAccount.getBalance());\n break;\n } catch (Exception e){\n ui.displayError(\"Please enter a valid number.\");\n }\n }\n\n }", "private int getOrInit(String userId, HashMap<String, Integer> balance) {\n if (balance.containsKey(userId)) {\n return balance.get(userId);\n } else {\n return 1000;\n }\n }", "abstract int checkBalance(String accountno) throws RemoteException;", "protected void insertNickel(double balance)\r\n {\r\n totalBalance = balance;\r\n totalBalance = totalBalance + 0.05;\r\n }", "public ResultSet addbroker(String firstname, String lastname, String username,\r\n\t\tString password, String address, String gender, String eMail,\r\n\t\tNumber phone, String experience, String security, String answer, Long demat, Long bankacc, Double amt) throws SQLException {\n\tLong logid=null;\r\n\tint i=DbConnect.getStatement().executeUpdate(\"insert into login values(login_seq.nextval,'\"+username+\"'||username_seq.nextval,'\"+password+\"','not approved','broker','\"+security+\"','\"+answer+\"') \");\r\n\tint j=DbConnect.getStatement().executeUpdate(\"insert into broker values(broker_seq.nextval,'\"+firstname+\"','\"+lastname+\"','\"+address+\"','\"+gender+\"','\"+eMail+\"',\"+phone+\",'\"+experience+\"',login_seq.nextval-1,\"+demat+\",\"+bankacc+\")\");\r\n int k=DbConnect.getStatement().executeUpdate(\"insert into account values(\"+bankacc+\",\"+amt+\")\");\r\n\tResultSet rss=DbConnect.getStatement().executeQuery(\"select login_seq.nextval-2 from dual\");\r\n\tif(rss.next())\r\n\t{\r\n\t\tlogid=rss.getLong(1);\r\n\t}\r\n\trs=DbConnect.getStatement().executeQuery(\"select username from login where login_id=\"+logid+\"\");\r\n\treturn rs;\r\n\t\r\n}", "public void getBalance( Integer account_id ){\r\n\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"account_id\", String.valueOf(account_id));\r\n String url = API_DOMAIN + ACCOUNT_EXT + GET_BALANCE;\r\n this.makeVolleyRequest( url, params );\r\n }", "public double getBalance(){\n return this.balance;\r\n }", "public long getBalance() {\n\t\n\treturn balance;\n}", "public double getBalance(){\r\n\t\treturn balance;\r\n\t}", "public void execute() {\n\t\t// get references to bank database and screen\n\t\tatmg.BankDatabase bankDatabase = getBankDatabase();\n\n\t\t// get the available balance for the account involved\n\t\tdouble availableBalance = bankDatabase.getAvailableBalance(getAccountNumber());\n\n\t\t// get the total balance for the account involved\n\t\tdouble totalBalance = bankDatabase.getTotalBalance(getAccountNumber());\n\n\t\t// display the balance information on the screen\n\t\tint input = JOptionPane.showOptionDialog(null,\n\t\t\t\t\"\\nBalance Information:\" + \"\\n\" + \" - Available balance: \" + availableBalance + \"\\n - Total balance:\"\n\t\t\t\t\t\t+ totalBalance + \"\\n\\n\",\n\t\t\t\tnull, JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null,\n\t\t\t\tnew String[] { \"OK\"}, \"default\");\n\t\tif (input == JOptionPane.OK_OPTION) {\n\t\t\t\n\n\t\t} else {\n\t\t\t//windowT.disable();\n\t\t}\n\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}", "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 String transaction_pay(int reservationId) {\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\t\t\t\r\n\t\t\t//query for the user balance \r\n\t\t\tcheckBalanceStatement.clearParameters();\r\n\t\t\tcheckBalanceStatement.setString(1, username);\r\n\t\t\tResultSet b = checkBalanceStatement.executeQuery();\r\n\t\t\tb.next();\r\n\t\t\tint user_balance = b.getInt(\"balance\");\r\n\t\t\t\r\n\t\t\t//get the price of the first flight\r\n\t\t\tunpaidReservationStatement.clearParameters();\r\n\t\t\tunpaidReservationStatement.setString(1, username);\r\n\t\t\tunpaidReservationStatement.setInt(2, reservationId);\r\n\t\t\tResultSet unpaid = unpaidReservationStatement.executeQuery();\r\n\t\t\t\r\n\t\t\tint total_price = 0;\r\n\t\t\tif (!unpaid.next()){\r\n\t\t\t\trollbackTransaction();\r\n\t\t\t\treturn \"Cannot find unpaid reservation \"+reservationId+\" under user: \"+username+\"\\n\";\r\n\t\t\t} else {\r\n\t\t\t\t//unpaid.next() ?? maybe not sure\r\n\r\n\t\t\t\tint fid1 = unpaid.getInt(\"fid1\");\r\n\t\t\t\tint fid2 = unpaid.getInt(\"fid2\");\r\n\t\t\t\tcheckPriceStatement.clearParameters();\r\n\t\t\t\tcheckPriceStatement.setInt(1, fid1);\r\n\t\t\t\tResultSet p1 = checkPriceStatement.executeQuery();\r\n\t\t\t\tp1.next();\r\n\t\t\t\ttotal_price += p1.getInt(\"price\");\r\n\t\t\t\tp1.close();\r\n\t\t\t\t\r\n\t\t\t\t//unpaidReservationStatement2.clearParameters();\r\n\t\t\t\t//unpaidReservationStatement2.setString(1, username);\r\n\t\t\t\t//unpaidReservationStatement2.setInt(2, reservationId);\r\n\t\t\t\t//ResultSet second = unpaidReservationStatement2.executeQuery();\r\n\t\t\t\tif (fid2 != 0){\r\n\t\t\t\t\t//second fid is not null\r\n\t\t\t\t\tcheckPriceStatement.clearParameters();\r\n\t\t\t\t\tcheckPriceStatement.setInt(1, fid2);\r\n\t\t\t\t\tResultSet p2 = checkPriceStatement.executeQuery();\r\n\t\t\t\t\tp2.next();\r\n\t\t\t\t\ttotal_price += p2.getInt(\"price\");\r\n\t\t\t\t\tp2.close();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (total_price > user_balance){\r\n\t\t\t\t\trollbackTransaction();\r\n\t\t\t\t\treturn \"User has only \"+user_balance+\" in account but itinerary costs \"+total_price+\"\\n\";\r\n\t\t\t\t} else {\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tupdatePaidStatement.clearParameters();\r\n\t\t\t\t\tupdatePaidStatement.setString(1, \"true\");\r\n\t\t\t\t\tupdatePaidStatement.setInt(2, reservationId);\r\n\t\t\t\t\tupdatePaidStatement.executeUpdate();\r\n\t\t\t\t\t\r\n\t\t\t\t\tupdateBalanceStatement.clearParameters();\r\n\t\t\t\t\tupdateBalanceStatement.setInt(1, (user_balance-total_price));\r\n\t\t\t\t\tupdateBalanceStatement.setString(2, username);\r\n\t\t\t\t\tupdateBalanceStatement.executeUpdate();\r\n\t\t\t\t\t\r\n\t\t\t\t\tcommitTransaction();\r\n\t\t\t\t\treturn \"Paid reservation: \"+reservationId+\" remaining balance: \"+(user_balance-total_price)+\"\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (SQLException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\t//rollbackTransaction();\r\n\t\t\treturn \"Failed to pay for reservation \" + reservationId + \"\\n\";\r\n\t\t}\r\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 deposit(double value){\r\n balance += value;\r\n}", "public int updateAndGetBalance(int fid, int tid, int money) {\n\t\tint q=0;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tthis.pst = this.con.prepareStatement(\"update customer set balance=balance-'\"+money+\"' where acc_number=?\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.pst.setInt(1,fid);\r\n\t\t\t\r\n\t\t\t this.pst.executeUpdate();\r\n\t\t this.pst = this.con.prepareStatement(\"update customer set balance=balance+'\"+money+\"' where acc_number=?\");\r\n\t\t\t\t\tthis.pst.setInt(1,tid);\r\n\t\t\t\t this.pst.executeUpdate();\r\n\t\t\t\r\n\t\t\t\t this.pst=this.con.prepareStatement(\"select * from customer where acc_number=?\");\r\n\t\t this.pst.setInt(1,fid);\r\n\t\t this.rs=this.pst.executeQuery();\r\n\t\t while (rs.next()) {\r\n\t\t\t\t\tq=rs.getInt(\"balance\");\r\n\t\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\r\n\t\treturn q;\r\n\r\n\t}", "int withdraw(int id, int amount, int accountType) {\n int idCompare; // will contain the ID needed\n double accountBalance = 0;\n String account; // 0 = chequing, 1 = savings\n\n // If the accountType is 0, then it's a Chequing account the user wants to deposit to, if it's 1 then\n // it's savings\n account = accountType == 0 ? \"UserBalanceC\" : \"UserBalanceS\";\n\n // Look into the account number and user balance for the deposit\n String sql = \"SELECT AccountNum, \" + account + \" FROM CashiiDB2\";\n\n try {\n rs = st.executeQuery(sql);\n while (rs.next()) {\n idCompare = rs.getInt(\"AccountNum\"); // grab the id to compare with after\n\n // If the ID turns about to be the one that's needed, get the balance and add the amount needed\n if (idCompare == id) {\n accountBalance = rs.getDouble(account);\n if (accountBalance <= amount)\n return -1;\n else {\n accountBalance -= amount;\n }\n }\n }\n updateAccount(id, accountBalance, account); // update command\n } catch (java.sql.SQLException e) {\n e.printStackTrace();\n }\n\n return 1;\n }", "public double getBalance(){\n return balance;\r\n }", "public double getBalance(){\n return balance;\n }", "public void login() throws SQLException {\n\t\tBank b = new Bank();\n\t\tSystem.out.println(\"Enter your username.\");\n\t\tString user = scan.nextLine();\n\t\tSystem.out.println(\"Enter your password.\");\n\t\tString pw = scan.nextLine();\n\t\t\n String sql = \"SELECT first_name, last_name, user_name, password FROM bank.login WHERE user_name = \\\"\" + user.toLowerCase() + \"\\\"AND password = \\\"\" + \n pw.toLowerCase() + \"\\\"\";\n\n try{\n \t\n \tconnect.databaseUtil();\n Statement statement = connect.connection.createStatement();\n ResultSet resultSet = statement.executeQuery(sql);\n b.setKey(b.getKey());\n while (resultSet.next()) {\n /*\tbank.customers.add(new Pair <Integer, Customer> (b.getKey(), new Customer(\n \t\t\tresultSet.getString(\"first_name\"),\n resultSet.getString(\"last_name\"),\n resultSet.getString(\"user_name\"),\n resultSet.getString(\"password\"))));\n */\n bank.customers.add(new Customer(\n resultSet.getString(\"first_name\"),\n resultSet.getString(\"last_name\"),\n resultSet.getString(\"user_name\"),\n resultSet.getString(\"password\")));\n connect.databaseClose();\n bank.pickCustomer();\n }\n }\n\n catch(SQLException e){\n System.out.println(\"That username or password does not exist. Please try again.\");\n Menus.custMenu();\n\n }\n\n \n\n \n }", "void deposit(double amount) {\n try {Thread.sleep(10l);} catch (InterruptedException e) {}\r\n balance += amount;\r\n System.out.println(\"Inside deposit\"+ balance);\r\n }" ]
[ "0.6878144", "0.68564785", "0.6561314", "0.6490642", "0.63346833", "0.62879467", "0.6254589", "0.62490374", "0.61820877", "0.61494297", "0.6129089", "0.61149263", "0.607624", "0.607624", "0.60700846", "0.5971153", "0.5925294", "0.59250385", "0.59243953", "0.59196013", "0.5861828", "0.58583206", "0.5844801", "0.58403355", "0.58283377", "0.5822946", "0.58206964", "0.58184135", "0.5788079", "0.57787627", "0.5752453", "0.57474124", "0.5745982", "0.57440066", "0.57286835", "0.572571", "0.57217467", "0.5719047", "0.5714624", "0.5713609", "0.569313", "0.5680291", "0.5680277", "0.56748855", "0.5673678", "0.56716746", "0.5664486", "0.56631756", "0.5661201", "0.56550056", "0.5647432", "0.5642336", "0.562915", "0.56268215", "0.5623682", "0.56195515", "0.5613734", "0.5594058", "0.55930525", "0.5586474", "0.5570956", "0.5567322", "0.5557506", "0.5543712", "0.5536857", "0.5533927", "0.55335873", "0.5515654", "0.551554", "0.55078006", "0.55053777", "0.5495238", "0.54809564", "0.5470321", "0.54379517", "0.5434269", "0.5422049", "0.54163915", "0.54125583", "0.5411139", "0.5410313", "0.5408163", "0.5405361", "0.54047704", "0.54003096", "0.540001", "0.5397449", "0.5394577", "0.53934914", "0.5392656", "0.53917587", "0.5371616", "0.5371563", "0.5370663", "0.5368826", "0.5360511", "0.53591055", "0.5355568", "0.5354008", "0.5347601" ]
0.6583115
2
add the amount to the accountHolder's balance. insert into the log to the user.
public void deposit(String accountNumber, int amount) { Connection conn; PreparedStatement ps, pp, ll; String url = "jdbc:mysql://localhost:3306/mars"; String username = "root"; String password = "1113"; int lastBalance; try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException e1) { e1.printStackTrace(); } try{ conn=DriverManager.getConnection(url, username, password); String sql = "select balance,userId from "+this.name+" where accountNumber=?"; ps= (PreparedStatement) conn.prepareStatement(sql); ps.setString(1, accountNumber.toString()); ResultSet rs = ps.executeQuery(); int nowBalance = 0; String id = ""; while(rs.next()) { nowBalance=rs.getInt("balance"); id = rs.getString("userId"); } lastBalance = nowBalance + amount; //System.out.println(lastBalance); String sql1 = "UPDATE "+this.name+" SET balance=? where accountNumber=?"; pp = (PreparedStatement) conn.prepareStatement(sql1); pp.setInt(1, lastBalance); pp.setString(2, accountNumber.toString()); pp.executeUpdate(); String logs = "deposit : "+ amount+" / balance: "+String.valueOf(lastBalance); String sql11 = "insert into "+id+" (log) values (?)"; ll = (PreparedStatement) conn.prepareStatement(sql11); ll.setString(1, logs); ll.executeUpdate(); }catch (SQLException e) { throw new IllegalStateException("Cannot connect the database!", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addBalance(double amount) {\n\t\tbalance += amount;\n\t}", "void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }", "public void addBalance(long balance) {\r\n this.balance += balance;\r\n }", "public void addToBalance(double depositBalanceAmount) \n\t{\n\t\taccountBalance += depositBalanceAmount;\n\t}", "public void addMoney(int amount) {\n\t\tcurrentBalance += amount;\n\t}", "public void credit(double amount) {\n this.balance += amount;\n }", "public void addCash(double amount) {\r\n cash += amount;\r\n }", "public void addBalance()\n\t\t{\n\t\t\tthis.setBalance_acc2(this.getBalance_acc2() + this.getTemp_d_acc2());\n\t\t}", "public void addBalance(float deposit) {\r\n\t\tthis.balance += deposit;\r\n\t}", "void addToAmount(double amount) {\n this.currentAmount += amount;\n }", "public void deposit(double amount) {\n this.balance += amount;\n }", "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}", "@Override\n public void logDeposit(UUID userUUID, double amount) {\n }", "public void deposit(double value){\r\n balance += value;\r\n}", "protected void deposit(double amount)\n\t{\n\t\tacc_balance+=amount;\n\t}", "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 }", "public void addMoney(int amount) {\n\t\tmoney += amount;\n\t}", "public void withdraw(String accountNumber, int amount) {\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll;\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\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\t\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tpp = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tpp.setInt(1, lastBalance);\n\t\tpp.setString(2, accountNumber.toString());\n\t\tpp.executeUpdate();\n\t\t\n\t\tString logs = \"withdraw : \"+ amount+\" / balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tll = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tll.setString(1, logs);\n\t\tll.executeUpdate();\n\t\tSystem.out.println(\"Ypu got $\"+String.valueOf(amount));\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\t\n\t}", "public void deposit(double amount)\n {\n balance = balance + amount;\n }", "public void transferTo(double dollarAmount) {\r\n\t\tthis.accountBalance = this.accountBalance + dollarAmount;\r\n\t}", "public void deposit(double amount) {\n balance = balance + amount + 10;\n }", "public void updateBalance(int account_id, int final_amount){\n dbUpdate(\"update ACCOUNTS set BALANCE = \"+ final_amount + \" where ACCOUNT_ID = \" + account_id);\n cache.add(new Account(account_id, final_amount));\n }", "public void changeBalance (int amount){\n balance += amount;\n }", "public double depositInto(double amount)\r\n {\r\n _balance += amount;\r\n\r\n return _balance;\r\n }", "void updateBalance(int amount){ \n\t\tbalance = amount;\n\t}", "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 }", "public void deposit(double amount){\n\t\tbalance += amount;\n\t}", "void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}", "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 addToBalance(double aBalance) {\n balance += aBalance;\n String out = String.format(\"<html><b>Balance</b><br>$%.2f</html>\", balance);\n balanceLabel.setText(out);\n }", "public double addToBalance(double addAmount){\r\n\t\tbalance +=addAmount;\r\n\t\treturn balance;\r\n\t}", "@Override\n\tvoid deposit(double amount) {\n\t\tsuper.balance += amount - 20;\n\t}", "@Override\n\tpublic void addAccount(Bank bank, Account account) {\n\t\t\n\t\tbank.addAccount(account);\n\t}", "public void deposit(double amount) {\n balance += amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo='\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n }", "public long deposit(long amount) {\n balance += amount;\n return balance;\n }", "public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }", "public void add_interest ()\r\n {\r\n\r\n balance += balance * (rate + BONUS_RATE);\r\n System.out.println (\"Interest added to account: \" + account);\r\n System.out.println (\"Current Balance: \" + balance);\r\n System.out.println();\r\n\r\n }", "public void add_interest () \r\n {\r\n balance += balance * rate;\r\n System.out.println (\"Interest added to account: \" + account);\r\n System.out.println (\"Current Balance: \" + balance);\r\n System.out.println();\r\n\r\n }", "public void deposit(double amount)\n {\n startingBalance += amount;\n }", "public void updateBalance(UUID accountId, double amount) {\n Account account = repository.getAccount(accountId);\n account.updateBalance(amount);\n repository.save(account);\n }", "public void deposit(double amount) \n\t{\n\t\tbalance += amount;\n\t}", "@Override\n public void deposit(double amount) {\n double balance = getBalance();\n setBalance(balance+amount);\n }", "protected void insertDime(double balance)\r\n {\r\n totalBalance = balance;\r\n totalBalance = totalBalance + 0.1;\r\n }", "public void deposit(int amount)\n {\n setBalance(getBalance()+amount);\n }", "protected String commandRequestBalanceAdd(Integer connectionId, String amount) {\n Long amountAslong = Long.decode(amount);\n UserMovieRental user = (UserMovieRental)mapOfLoggedInUsersByConnectedIds.get(connectionId);\n long newBalance = user.addBalance(amountAslong);\n user.setBalance(newBalance);\n updateUserJson();\n updateServiceJson();\n return \"ACK balance \" + newBalance + \" added \" + amount;\n }", "public void addMoney(int amount) {\n\t\tcurrentMoney.addMoney(amount);\n\t}", "@Override\n public void logWithdrawal(UUID userUUID, double amount) {\n }", "public void addBet(int betAmount) {\n if (playerCash >= betAmount) {\n playerCash -= betAmount;\n playerBet += betAmount;\n }\n }", "public void deposit(double amount) {\n\t\tbalance += amount;\n\t}", "public void deposit(double amount) {\n\t\tbalance += amount;\n\t}", "public void addSavingsBalance(BigDecimal toAdd) {\r\n setSavingsBalance(savingsBalance.add(toAdd));\r\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 depositMoney(double amount) {\n\t\tbalance = balance + amount;\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}", "@Override\n public void makeDeposit(BigInteger account, BigDecimal amount) {\n Account accountDeposit = accountDao.getAccountByIban(account);\n accountDeposit.setBalance(accountDeposit.getBalance().add(amount));\n accountDao.updateAccount(accountDeposit);\n\n transactionDao.storeTransaction(new Transaction(null, account, amount, TransactionType.DEPOSIT));\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 addAccount(Account account)\n\t {\n\t\t if(accountExists(account)) return;\n\t\t \n\t\t ContentValues values = new ContentValues();\n\t\t values.put(DatabaseContract.AccountContract.COLUMN_NAME_USERNAME, account.getUsername());\n\t\t values.put(DatabaseContract.AccountContract.COLUMN_NAME_BALANCE, account.getBalance());\n\t\t values.put(DatabaseContract.AccountContract.COLUMN_NAME_AUTH_TOKEN, account.getAuthenticationToken());\n\t\t \n\t\t db.insert(DatabaseContract.AccountContract.TABLE_NAME,\n\t\t\t\t null,\n\t\t\t\t values);\n\t\t \n\t }", "public void addJackpot(int amount){\n this.amount += amount;\n }", "public void deposit(BigDecimal amount) {\n this.setBalance(this.getBalance().add(amount));\n }", "public void addBalance() {\r\n List<String> choices = new ArrayList<>();\r\n choices.add(\"10\");\r\n choices.add(\"20\");\r\n choices.add(\"50\");\r\n ChoiceDialog<String> addBalanceDialog = new ChoiceDialog<>(\"10\", choices);\r\n addBalanceDialog.setTitle(\"Add Balance\");\r\n addBalanceDialog.setContentText(\"Please enter the balance you want to add\");\r\n Optional<String> result = addBalanceDialog.showAndWait();\r\n result.ifPresent(\r\n s -> cardSelected.addMoney(Double.parseDouble(addBalanceDialog.getSelectedItem())));\r\n }", "void addBankAccount(Klant klant) throws SessionExpiredException, IllegalArgumentException, RemoteException;", "@Override\n public void updateBalanceInfo(Long accountId, BigDecimal amountToAdd) {\n repositoryService.updateBalanceInfo(accountId, amountToAdd);\n AccountInfo accountInfo = repositoryService.fetchAccountInfo(accountId).orElseThrow();\n update(\"accounts\", Long.class, AccountInfo.class, accountId, accountInfo);\n }", "public void addCash(double added_cash) {\n cash += added_cash;\n }", "String addBalance(Integer clientAccountId, Integer balance) throws ServiceException;", "void deposit(float amount) {\n\n float newBalance;\n if (this.transactionHistory.isEmpty()) {\n newBalance = amount;\n } else {\n newBalance = this.transactionHistory.getLastTransaction().getBalanceAfter() + amount;\n }\n Transaction transaction = new Transaction(amount, true, newBalance);\n transactionHistory.addTransaction(transaction);\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 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}", "@Override\r\n\tpublic void operateAmount(String AccountID, BigDecimal amount) {\n\r\n\t}", "public boolean addAmount(String accountNumber, int amount) {\n\t\t\t\t\treturn transactiondao.addAmount(accountNumber, amount);\r\n\t\t\t\t}", "public void transferMoney(int customerAccountId, int accountId) throws SQLException {\n // check if the customer has this account\n boolean customerOwnsAccount = false;\n for (int i = 0; i < this.currentCustomer.getAccounts().size(); i++) {\n if (customerAccountId == this.currentCustomer.getAccounts().get(i).getId()) {\n customerOwnsAccount = true;\n break;\n }\n }\n // it is safe to proceed since the customer accounts have been authenticated\n if (customerOwnsAccount) {\n Account customerAccount = DatabaseSelectHelper.getAccountDetails(customerAccountId);\n // try and catch for valid input (int) expected\n try {\n System.out.println(\"Enter amount you wish to transfer:\");\n // take user input as a big decimal\n BigDecimal bigAmount = new BigDecimal(br.readLine());\n if (bigAmount.compareTo(customerAccount.getBalance()) <= 0) {\n // try to update accounts\n try {\n // update the account which received money in database\n DatabaseUpdateHelper.updateAccountBalance(\n bigAmount.add(DatabaseSelectHelper.getBalance(accountId)), accountId);\n // update account which transfered money in database\n DatabaseUpdateHelper.updateAccountBalance(\n customerAccount.getBalance().subtract(bigAmount), customerAccountId);\n // update the customer object for printing reasons for other options\n this.currentCustomer.updateAccounts();\n // Explicitly tell user money is transfered\n System.out.println(\"you have successfully transfered money to account \" + accountId);\n \n } catch (Exception e) {\n System.out.println(\"The account ID you wish to transfer money to does not exist\");\n }\n // error printing\n } else {\n System.out.println(\"This account does not have enough money to send this amount\");\n }\n \n } catch (Exception e) {\n System.out.println(\"Invalid amount\");\n }\n // error printing\n } else {\n System.out.println(\"You do not have access to this account\");\n }\n \n }", "public void printBalance() {\n logger.info(\"Wallet balance : \" + total_bal);\n }", "public void deposit(BigDecimal deposit){\n balance = balance.add(deposit);\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 AddMoneySaved(double moneySaved){\n MoneySaved += moneySaved;\n }", "private void updateDatabaseAccountBalance() {\n\t\tString sql = \"UPDATE account SET balance = \" + this.balance + \" \";\n\t\tsql += \"WHERE accountID = '\" + this.accountID + \"';\";\n\n\t\tDbUtilities db = new MySqlUtilities();\n\t\tdb.executeQuery(sql);\n\t}", "@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}", "public void deposit(double amount)\t{\n\t\tbalance = balance + amount;\n\t\tbalance = Math.round(balance * 100.0) / 100.0;\n\t}", "public void withdrawMoney(double amount) {\n\t\tbalance = balance - amount;\n\t}", "public void updateBalance(float amount) throws BalanceException{\r\n\t\tif (balance + amount < 0){\r\n\t\t\tthrow new BalanceException();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tbalance += amount;\r\n\t\t}\r\n\t}", "public void showAccountBalance(){\n balance();\n\n }", "@Transactional\n\t@Override\n\tpublic Customer addAmount(Long customerId, double amount) {\n\t\t\n\t\tvalidateCustomerId(customerId);\n\t\tCustomer customer = findById(customerId);\n\t\tAccount account=customer.getAccount();\n\t\taccount.setBalance(account.getBalance() + amount);\n\t\taccountRepository.save(account);\n\t\tcustomer.getAccount().setBalance(amount);\n\t\tcustomer =custRepository.save(customer);\n\t\treturn customer;\n\t}", "public void increaseBalance(final double balance) {\n this.balance += balance;\n }", "private void updateMoney() {\n balance = mysql.getMoney(customerNumber);\n balanceConverted = (float) balance / 100.00;\n }", "@WebMethod public void addBetMade(Account user, Bet bet, float money);", "protected void insertNickel(double balance)\r\n {\r\n totalBalance = balance;\r\n totalBalance = totalBalance + 0.05;\r\n }", "public Account(Holder holder, int balance) {\n this.holder = holder;\n this.balance = balance;\n }", "public boolean updateBalance(int account_id, int final_amount, Connection con){\n try {\n tryDbUpdate(\"update ACCOUNTS set BALANCE = \"+ final_amount + \" where ACCOUNT_ID = \" + account_id, con);\n cache.add(new Account(account_id, final_amount));\n } catch (SQLException e) {\n try {\n con.rollback();\n return false;\n } catch (SQLException e1) {\n e1.printStackTrace();\n return false;\n }\n }\n return true;\n }", "void withdraw(double amount){\r\n\t\t//subtract to the current balance the amount\r\n\t\tsetBalance(getBalance() - amount);\r\n\t\t\r\n\t\t//alert the user that his bank account is in the red if the balance lower than 0\r\n\t\tif(getBalance()<0){\r\n\t\t\tSystem.out.println(\"Your bank account is in the red.\");\r\n\t\t}\r\n\t}", "public static String addBill(String account, String amount, String duedate){\n return \"insert into current_bills(cb_account,cb_bill,cb_duedate,cb_paid,cb_late) values('\"+account+\"'\"+\",'\"+amount+\"'\"+\",'\"+duedate+\"',0,0)\";\n }", "public void addInterest() {\n\t\tdouble interest = getBalance() * interestRate / 100;\n\t\tdeposit(interest);\n\t}", "public void loadMoney(double amount) {\n if (amount > 0) {\n this.balance += amount;\n }\n }", "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}", "void deposit(double amount) {\n try {Thread.sleep(10l);} catch (InterruptedException e) {}\r\n balance += amount;\r\n System.out.println(\"Inside deposit\"+ balance);\r\n }", "public void credit(int userAccountNumber, double amount) {\r\n getAccount(userAccountNumber).credit(amount);\r\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 add(int amount) {\n this.amount += amount;\n if (this.amount == 0) {\n this.timestamp -= LIFESPAN;\n } else {\n this.timestamp = System.currentTimeMillis();\n }\n }", "public void withdraw(double amount){\n accTransactions.add(new Transaction('W', amount, balance, \"withdraw\"));\n balance -= amount;\n }", "public void checkBalance()\n\t{\n\t\tList<Account> accounts = Main.aDao.getAllAccounts(this.loggedIn.getUserId());\n\t\tdouble accountsTotal = 0;\n\t\t\n\t\tfor(Account a : accounts)\n\t\t{\n\t\t\taccountsTotal += a.getBalance();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Total funds available across all accounts:\\n\" + accountsTotal);\n\t}", "@Override\r\n\tpublic void saveCurrentBalance(Double btcprice, Double balance, Long userId) {\r\n\t\taccountDataDao.saveCurrentBalance(btcprice, balance, userId);\t\t\r\n\t}", "public boolean addTransaction(double amount) {\n if ((this.balance+amount)>=0) {\r\n this.transactions.add(amount);\r\n balance+=amount;\r\n return true;\r\n }else{\r\n System.out.println(\"Balance Insufficient\");\r\n return false;\r\n }\r\n }" ]
[ "0.75239956", "0.72612834", "0.7259704", "0.7207534", "0.71564245", "0.7141517", "0.68621534", "0.68443114", "0.6793707", "0.67718893", "0.6743939", "0.67382574", "0.6707096", "0.66908216", "0.6678069", "0.6653389", "0.6649198", "0.6644424", "0.6630556", "0.660483", "0.65954185", "0.6590607", "0.65772253", "0.65473676", "0.6538085", "0.65307915", "0.6529733", "0.65077233", "0.65004593", "0.6492642", "0.6488589", "0.6462972", "0.6450586", "0.64434886", "0.6442665", "0.64382905", "0.6428477", "0.6425856", "0.64216524", "0.64195734", "0.64143205", "0.64115304", "0.6405345", "0.640022", "0.63985664", "0.63808715", "0.6377044", "0.6359425", "0.6358384", "0.6358384", "0.6352305", "0.6335299", "0.63327694", "0.6326297", "0.63226783", "0.6321486", "0.62906754", "0.6282823", "0.6277065", "0.6272716", "0.6266714", "0.6259897", "0.6257824", "0.62561214", "0.6253246", "0.62327343", "0.62326187", "0.62292457", "0.62084496", "0.6201763", "0.61919206", "0.6177006", "0.6163703", "0.616038", "0.61508304", "0.6144632", "0.6139692", "0.613362", "0.61219466", "0.6094452", "0.6082225", "0.60728276", "0.6070203", "0.6068846", "0.6065878", "0.60649747", "0.60570437", "0.6052823", "0.60472894", "0.60436046", "0.6040928", "0.6034654", "0.60336083", "0.60319316", "0.6027411", "0.6026894", "0.60182905", "0.6010013", "0.600595", "0.5994104" ]
0.66074
19
check the possibility to get withdraw from user's balance. remove the amount from user's balance. insert into the log to the user.
public void withdraw(String accountNumber, int amount) { Connection conn; PreparedStatement ps, pp, ll; String url = "jdbc:mysql://localhost:3306/mars"; String username = "root"; String password = "1113"; int lastBalance; try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException e1) { e1.printStackTrace(); } try{ conn=DriverManager.getConnection(url, username, password); String sql = "select balance,userId from "+this.name+" where accountNumber=?"; ps= (PreparedStatement) conn.prepareStatement(sql); ps.setString(1, accountNumber.toString()); ResultSet rs = ps.executeQuery(); int nowBalance = 0; String id = ""; while(rs.next()) { nowBalance=rs.getInt("balance"); id = rs.getString("userId"); } if (nowBalance<amount) { System.out.println("No Balance"); return; } lastBalance = nowBalance - amount; //System.out.println(lastBalance); String sql1 = "UPDATE "+this.name+" SET balance=? where accountNumber=?"; pp = (PreparedStatement) conn.prepareStatement(sql1); pp.setInt(1, lastBalance); pp.setString(2, accountNumber.toString()); pp.executeUpdate(); String logs = "withdraw : "+ amount+" / balance: "+String.valueOf(lastBalance); String sql11 = "insert into "+id+" (log) values (?)"; ll = (PreparedStatement) conn.prepareStatement(sql11); ll.setString(1, logs); ll.executeUpdate(); System.out.println("Ypu got $"+String.valueOf(amount)); }catch (SQLException e) { throw new IllegalStateException("Cannot connect the database!", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void withdraw() {\n userInput = 0;\n while (userInput <= 0) {\n System.out.printf(\"Din nuværende balance er: %.2f DKK\\n\" +\n \"Indtast ønsket beløb at hæve: \", balanceConverted);\n\n textMenuKey(false, \"\");\n\n if (userInput <= 0) {\n System.out.println(\"Indtast et gyldigt beløb\");\n }\n }\n\n if ((userInput * 100) <= balance) {\n moneyController(-userInput);\n mysql.transactionUpdate(customerNumber, customerName, balance, userInput, \"Withdraw\");\n } else {\n System.out.println(\"Utilstrækkelig balance på kontien\");\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}", "void withdraw(double amount){\r\n\t\t//subtract to the current balance the amount\r\n\t\tsetBalance(getBalance() - amount);\r\n\t\t\r\n\t\t//alert the user that his bank account is in the red if the balance lower than 0\r\n\t\tif(getBalance()<0){\r\n\t\t\tSystem.out.println(\"Your bank account is in the red.\");\r\n\t\t}\r\n\t}", "@Override\n public void logWithdrawal(UUID userUUID, double 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 }", "void preWithdraw(double amount) {\n\t\tSystem.out.println(\"Your account is not saver account.\");\n\t}", "@Override\r\n\tpublic boolean withdraw(double amount) {\n\t\ttry {\r\n\t\t\tif (accountStatus.equals(AccountStatus.ACTIVE)) {\r\n\t\t\t\tif (balance > amount) {\r\n\t\t\t\t\tbalance = (float) (balance - amount);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthrow new InsufficientBalanceException(\"You'er Balance is insufficient to make this transation !\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\telse {\r\n\t\t\t\tthrow new AccountInactiveException(\"You'er Account is not Active !\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private void deposit() {\n userInput = 0;\n while (userInput <= 0) {\n System.out.printf(\"Din nuværende balance er: %.2f DKK\\n\" +\n \"Indtast ønsket beløb at indsætte: \", balanceConverted);\n\n textMenuKey(false, \"\");\n\n if (userInput <= 0) {\n System.out.println(\"Indtast et gyldigt beløb\");\n }\n }\n\n moneyController(userInput);\n mysql.transactionUpdate(customerNumber, customerName, balance, userInput, \"Deposited\");\n }", "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 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 }", "private void doWithdrawal() {\n while(true){\n try{\n Account userAccount = ui.readAccount(currentUser.getAccounts());\n int amountWithdrawn = ui.readWithdrawalAmount();\n\n if(userAccount.debit(amountWithdrawn)){\n ui.displayNewBalance(userAccount);\n break;\n\n } else {\n ui.displayError(\"You do not have enough money in this account to withdraw \" + amountWithdrawn);\n }\n }catch(Exception e){\n ui.displayError(\"Please enter a valid number.\");\n }\n }\n\n }", "private static void withdraw(double amount) {\n double resultWithdraw = balance - amount;\r\n if (resultWithdraw < 0 || amount > 2000) {\r\n System.out.println(\"Withdrawal cannot exceed $2000. Balance cannot be reduced below $0.\");\r\n } else {\r\n System.out.println(amount + \" has been withdrawn from your bank account.\\nCurrent balance \" + resultWithdraw + \".\");\r\n }\r\n }", "protected void deposit(double amount)\n\t{\n\t\tacc_balance+=amount;\n\t}", "protected boolean withdraw(double amount)\n\t{\n\t\tif(amount>acc_balance)\n\t\t\treturn false;\n\t\t\n\t\t//else the deduction is done from balance and success message is passed\n\t\tacc_balance-=amount;\n\t\treturn true;\n\t}", "public void withdraw(double amount) {\n\t\tif (amount < balance) {\n\t\t\tSystem.out.println(\"Successful withdraw: $\" + amount);\n\t\t\tbalance -= amount;\n\t\t} else {\n\t\t\tSystem.out.println(\"Withdraw Failed: Insufficient balance. The amount of $\" + amount + \" is more than your balance ($\" + balance +\").\");\n\t\t}\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}", "public void withdraw (int amount) {\n if (amount >= 0) {\n balance = balance - amount;\n valueWithdrawals = valueWithdrawals + amount;\n if (balance < minimumBalance){\n minimumBalance = balance;\n }\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}", "public void withdraw(double amount) throws InsufficientFundsException {\n if (amount <= balance) {\n balance -= amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo= '\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n } //end if\n else {\n throw new InsufficientFundsException(amount);\n } //end else\n }", "public static void withdraw(double amount, Date date, Bank bank, String username, User user) {\n\t\tdouble preamount = (bank.userMap.get(username).getAmount());\n\t\tif (amount > preamount) {\n\t\t\tSystem.out.println(\"Insufficient balance.\");\n\n\t\t} else {\n\t\t\tpreamount = preamount - amount;\n\t\t\tbank.userMap.get(username).setAmount(preamount);\n\n\t\t\t// -----------------------------------------------------------------\n\t\t\tObjectOutputStream oos = null;\n\t\t\tString outputFile = \"resource/Bank.txt\";\n\n\t\t\ttry {\n\t\t\t\toos = new ObjectOutputStream(new FileOutputStream(outputFile));\n\n//\t\tSystem.out.println(\"user ye : \"+user);\n\t\t\t\tbank.userMap.replace(username, new User(user.getName(), user.getAddress(), user.getPhone(), username,\n\t\t\t\t\t\tuser.getPassword(), preamount, user.getDate()));\n//\t System.out.println(\"user u \"+user);\n\n\t\t\t\tfor (Entry<String, User> entry : bank.userMap.entrySet())\n\t\t\t\t\toos.writeObject(bank.userMap);\n\t\t\t\toos.close();\n\t\t\t} catch (OptionalDataException e) {\n\t\t\t\tSystem.out.println();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tif (oos != null)\n\t\t\t\t\ttry {\n\t\t\t\t\t\toos.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tdepositAmount(String.format(username + \", amount \" + amount + \" debited from your account. Balance - \"\n\t\t\t\t\t+ preamount + \" as on \" + \"%1$tD\" + \" at with \" + \"%1$tT.\", date), bank, username);\n\t\t}\n\n\t\t// -------------------------------------------------------------------\n\n\t}", "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}", "public void withdraw(double amount){\n accTransactions.add(new Transaction('W', amount, balance, \"withdraw\"));\n balance -= amount;\n }", "@Override\n\tpublic int withdraw(double amount) throws RaiseException {\n\t\tValidator.validateWithdraw(this.getBalance(), amount);\n\t\tif(amount <= this.getBalance()) {\n\t\t\tthis.setBalance(this.getBalance() - amount);\n\t\t\t\n\t\t\t//create a transaction and adding it to the list of transactions of this account \n\t\t\tTransaction tmpTransaction = new Transaction(amount, EnumTypeTransaction.withdraw);\n\t\t\tthis.addTransaction(tmpTransaction);\n\t\t\t\n\t\t\treturn 1;\n\t\t}\n\t\treturn 0;\n\t}", "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}", "public void checkBalance()\n\t{\n\t\tList<Account> accounts = Main.aDao.getAllAccounts(this.loggedIn.getUserId());\n\t\tdouble accountsTotal = 0;\n\t\t\n\t\tfor(Account a : accounts)\n\t\t{\n\t\t\taccountsTotal += a.getBalance();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Total funds available across all accounts:\\n\" + accountsTotal);\n\t}", "void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }", "public void withdraw(double amount){\n\t\tbalance -= amount;\n\t}", "public void withdraw( double amount ) throws Exception\n\t{\n\t\tif(amount >= 0.0 && amount <= balance)\n\t\t\tbalance -= amount;\n\t\t\n\t\telse\n\t\t\tthrow new Exception(\"Insufficient Balance\");\n\t}", "@Override\n\tpublic void withdraw(double amount) {\n\t\tif (super.getBalance() - amount > overdraftLimit) {\n\t\t\tsuper.setBalance(getBalance() - amount);\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Amount exceeds overdraft limit.\");\n\t}", "@Override\r\n\tpublic boolean deopsit(double amount) {\n\t\ttry {\r\n\t\t\tif (accountStatus.equals(AccountStatus.ACTIVE)) {\r\n\t\t\t\tbalance = (float) (balance + amount);\r\n\t\t\t} else {\r\n\t\t\t\tthrow new AccountInactiveException(\"You'er Account is not Active !\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t}\r\n\t\treturn false;\r\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\t{\n\t\tbalance -= amount;\n\t}", "@Override\r\n\tpublic double withdrawlDao(double money) throws EwalletException {\n\t\tif(money<temp.getCustBal()) {\r\n\t\t\ttemp.setCustBal(temp.getCustBal()-money);\r\n\t\t\ttry {\r\n\t\t\t\ttemp.settDetails(\"Date :\"+tDate+\" Amount Withdrawn :\"+money+\" Total Balance :\"+temp.getCustBal());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tdao.updatedetails(temp.getAccNum(),temp);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\" Low Balance :( \");\r\n\t\t\treturn temp.getCustBal();\r\n\t}", "public void withdraw(double amount)\n {\n startingBalance -= amount;\n }", "public void withdraw (double amount) 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 withdrawn\");\n }\n if (dailyMaxWithdraw != null){\n todayWithdraw += amount;\n if(todayWithdraw > dailyMaxWithdraw){\n throw new IllegalArgumentException(\"Amount entered would exceed your daily withdraw limit\");\n }\n }\n else if (amount <= balance){\n balance -= amount;\n savingTransactions[arrayLocation] = \"Withdraw from savings account of the amount: \" + String.valueOf(amount);\n arrayLocation++;\n }\n else {\n throw new InsufficientFundsException(\"Not enough money\");\n }\n }", "@Override\n\tvoid withdraw(double amount) {\n\t\tsuper.balance -= amount - 20;\n\t}", "public boolean withdraw(long id, String password, String currency, double amount);", "public int withdraw(int amount) {\n\n this.balance -= amount;\n if (balance < 0) {\n\n this.balance = 0;\n System.out.println(\"--------------------------------------------\\n\" +\n \"* Your new balance is \" + this.balance + \" *\\n\" +\n \"--------------------------------------------\\n\");\n return this.balance;\n\n } else {\n System.out.println(\"--------------------------------------------\\n\" +\n \"* Your new balance is \" + this.balance + \" *\\n\" +\n \"--------------------------------------------\\n\");\n return balance;\n }\n }", "public void withdraw(double amount) {\n this.balance -= amount;\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}", "private static void deposite (double amount) {\n double resultDeposit = balance + amount;\r\n System.out.println(\"Deposit successful.\\nCurrent balance: \" + \"$\" + resultDeposit+ \".\");\r\n }", "@Override\n public boolean withdrawAmount(TransactionDTO transaction) {\n CustomerDetails customerDetails=this.viewAccount(transaction.getUserName()); \n if(customerDetails.getAccountBalance()>=transaction.getAmount()){\n customerDetails.setAccountBalance(customerDetails.getAccountBalance()-transaction.getAmount());\n customerRepository.save(customerDetails);\n return true;\n }\n else{\n return false;\n }\n }", "public void withdraw(int amount)\n {\n setBalance(getBalance()-amount);\n }", "public void withdrawOrDeposit(double amount, boolean isWithdraw){\n if(amount > 0.0) {\n if (isWithdraw) {\n balance -= amount;\n } else {\n balance += amount;\n }\n }\n }", "@Override\n public void logDeposit(UUID userUUID, double amount) {\n }", "public void deposit (int amount) {\n if (amount >= 0) {\n balance = balance + amount;\n valueDeposits = valueDeposits + amount;\n if (balance > maximumBalance) {\n maximumBalance = balance;\n }\n }\n }", "public void withdraw(double amount) {\n\t\tbalance -= amount;\n\t}", "public void deposit(double amount)\n {\n balance = balance + amount;\n }", "public void withdrawFromChecking(double amount) {\r\n\t\tif(amount > this.getSavingsBalance()) {\r\n\t\t\tSystem.out.println(\"Unsufficient funds\");\r\n\t\t} else {\r\n\t\t\tthis.checkingBalance -= amount;\r\n\t\t\ttotalAmount -= amount;\r\n\t\t}\r\n\t}", "public void deposit(double amount){\n\t\tbalance += amount;\n\t}", "void withdraw() {\n System.out.println(\"Enter the amount to withdraw : \");\n int withdraw = scan.nextInt();\n balance -= withdraw;\n }", "public boolean withdrawal (double amount) \r\n {\r\n\r\n boolean result = false;\r\n\r\n if ( ! super.withdrawal (amount) ) \r\n {\r\n System.out.println (\"Using overdraft...\");\r\n if ( ! overdraft.withdrawal (amount-balance) )\r\n System.out.println (\"Overdraft source insufficient.\");\r\n else {\r\n balance = 0;\r\n System.out.println (\"Current Balance on account \" + account + \": \" + balance);\r\n result = true;\r\n }\r\n }\r\n System.out.println ();\r\n\r\n return result;\r\n\r\n }", "@Override\n\tvoid deposit(double amount) {\n\t\tsuper.balance += amount - 20;\n\t}", "public Integer withdraw(Integer amount) {\r\n\t if (balance < amount) {\r\n\t throw new NotEnoughFundsException(amount, balance);\r\n\t }\r\n\t balance -= amount;\r\n\t return balance;\r\n\t }", "public double withdraw(double withdrawalAmount) {\n\t\tdouble savingsBalance = getBalance();\n\t\tif ((savingsBalance - withdrawalAmount) >= overdraft) { // Check if balance is less than overdraft limit.\n\t\t\tsuper.withdraw(withdrawalAmount);\n\t\t}\n\t\tif ((savingsBalance - withdrawalAmount) < overdraft) {\n\t\t\tSystem.out.print(\"Cannot execute withdraw action: greater than savings withdraw limit.\\n\");\n\t\t}\n\t\treturn getBalance();\n\t}", "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 }", "boolean withdraw (int value )\n {\n if (value>balance)\n {\n return false;\n }\n else {\n balance-=value;\n return true;\n }\n }", "public void withdrawMoney(double amount) {\n\t\tbalance = balance - amount;\n\t}", "public void update() {\n\t\n\tif(getBalance() > 0) {\n\t\tcanWithdraw = true;\n\t}else {canWithdraw = false;}//end else statement\n}", "public boolean withdraw(double amount)\t{\n\t\tbalance = balance - amount;\n\t\tnumWithdraws++;\n\t\treturn true;\n\t}", "public void withdrawFromBalance(double withdrawBalanceAmount) \n\t{\n\t\taccountBalance -= withdrawBalanceAmount;\n\t}", "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 void failedWithdraw(){\n\t\tstate = ATM_State.WITHDRAWALNOTIFICATION;\n\t\tgui.setDisplay(\"Invalid withdrawal amount.\");\n\t}", "public void deposit(int amount)\n {\n setBalance(getBalance()+amount);\n }", "void checkBalance() {\n\t\tSystem.out.println(\"Account balance: \" + balance);\n\t}", "public void deposit(double amount) \n\t{\n\t\tbalance += amount;\n\t}", "@Override\n public boolean deposit(Account account, BigDecimal amount) {\n return false;\n }", "public void withdrawMoney(double amount) {\n\t\tif (amount>=0){\n\t\t\tsetBalance(this.balance - amount);\n\t\t}else{\n\t\t\tSystem.out.println(\"You can not withdraw a negative value!\");\n\t\t}\n\t\t\t\t\n\t}", "void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\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}", "void deposit (double depositAmount, String userName) {\n\t\tBankAccountRepositoryJdbc bar = new BankAccountRepositoryJdbc();\n\t\tbalance = bar.getBalance(userName);\n\t\t\n\t\ttry {\n\t\t\tif(depositAmount != 0) {\n\t\t\t\tif(depositAmount > 0) {\n\t\t\t\t\tbalance = balance+depositAmount;\n\t\t\t\t\taccount.setBalance(balance);\n\t\t\t\t\taccount.setUsername(userName);\n\t\t\t\t\tbar.updateAccount(account);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new NegativeAmountDepositException (\"You attempted to deposit a negative amount.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (NegativeAmountDepositException e) {\n\t\t\tLOGGER.info(e);\n\t\t}\n\t}", "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 }", "public void deposit(double amount) {\n this.balance += amount;\n }", "@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 withdrawMoney(int amount) {\n wallet.withdraw(amount);\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 }", "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 void deposit(double amount)\n {\n startingBalance += amount;\n }", "@Override\n public void withdraw(double amount) {\n try {\n if (amount > 1000) {\n throw new InvalidFundingAmountException(amount);\n }\n if (this.getBalance() < 5000) {\n throw new InsufficientFundsException(amount);\n }\n doWithdrawing(amount);\n } catch (BankException e) {\n System.out.println(e.getMessage());\n }\n }", "public void withdraw(double withdrawalAmount) {\n if (withdrawalAmount < 0) throw new IllegalArgumentException(\"Withdrawal amount cannot be negative\");\n if (balance - withdrawalAmount < 0) throw new IllegalArgumentException(\"Cannot withdraw more than account balance\");\n balance -= withdrawalAmount;\n numWithdrawals++;\n }", "public void deposit(int amountToDeposit) {\n if (amountToDeposit > 0) {\n balance = balance + amountToDeposit;\n }\n }", "public void deposit(double amount) {\n balance = balance + amount + 10;\n }", "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 }", "public void withdraw (double amount)\n {\n super.withdraw (amount);\n imposeTransactionFee ();\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}", "@Override\n\tpublic boolean withdraw(int accNo, double money) {\n\t\treturn false;\n\t}", "@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 }", "public long withdraw(long amount) {\n if (amount > balance) {\n long tmp = balance;\n balance = 0;\n return tmp;\n } else {\n balance -= amount;\n return amount;\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 getCurrentWithdrawlInput()\r\n\t{\r\n\t\tSystem.out.println(\"Current Account Balance : \" + Double.toString(currentBalance));\r\n\t\tSystem.out.println(\"Enter the Amount you wnat to Withdraw : \");\r\n\t\tdouble amount = input.nextDouble();\r\n\t\tif((currentBalance-amount)>=0)\r\n\t\t{\r\n\t\t\tcalcCurrentWithdraw(amount);\r\n\t\t\tSystem.out.println(\"Withdrawl Successful\" + \"Current Account Balance : \" + Double.toString(currentBalance));\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Insufficient Amount in your Accout to withdraw\");\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void updateBalance( Integer userid, double amount) {\n\t\tif ( getBalance( userid) < amount) {\r\n\t\t\tthrow new RuntimeException( \"用户余额不足!\");\r\n\t\t}\r\n\t\tString sql = \"UPDATE buyers SET balance = balance - ? WHERE id = ?;\";\r\n\t\tjdbcTemplate.update( sql, amount, userid);\r\n\t}", "public static double withdraw(double[] amount, double balance) {\n\t\tif(amount > balance) {\n\t\t\tSystem.out.println(\"The amount is greater than the current balance, and we cannot withdraw.\");\n\t\t\treturn balance;\n\t\t} else {\n\t\t\tbalance -= amount;\n\t\t\tSystem.out.println(\"Your new balance is $\" + balance);\n\t\t\treturn balance - amount;\n\t\t}\n\t}", "public void deposit(double amount) {\n\t\tbalance += amount;\n\t}", "public void deposit(double amount) {\n\t\tbalance += amount;\n\t}", "public void deposit(double amount)\t{\n\t\tbalance = balance + amount;\n\t\tbalance = Math.round(balance * 100.0) / 100.0;\n\t}", "public boolean withdraw(double amount) throws BankAccountException {\n if (amount>this.balance) {\n throw new BankAccountException(BankAccountException.LOW_AMOUNT_OF_MONEY);\n }\n if(amount + calculateTax(amount)<=balance) {\n this.balance = balance- (amount+calculateTax(amount));\n return true;\n }\n return false;\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 }", "@Override\r\n\tpublic boolean withdraw(WithdrawBean wb, double amount) throws WalletException {\n\t\tboolean isValid = true;\r\n\t\tfor (CustomerBean cb : customerList) {\r\n\t\t\tif(cb.getPhoneNum()==wb.getPhoneNum()) {\r\n\t\t\t\tif(wb.getBalance()>amount) {\r\n\t\t\t\twb.setBalance(wb.getBalance()-amount);\r\n\t\t\t\twb.setDate(LocalDateTime.now());\r\n\t\t\t\tisValid = true;\r\n\t\t\t\tWalletTransactions transac = new WalletTransactions();\r\n\t\t\t\ttransac.setAmount(amount);\r\n\t\t\t\ttransac.setBalance(wb.getBalance());\r\n\t\t\t\ttransac.setDate(wb.getDate());\r\n\t\t\t\ttransac.setPhoneNum(wb.getPhoneNum());\r\n\t\t\t\ttransac.setType(\"withdraw\");\r\n\t\t\t\ttransacList.add(transac);\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthrow new WalletException();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn isValid;\r\n\t}", "int withdraw(int id, int amount, int accountType) {\n int idCompare; // will contain the ID needed\n double accountBalance = 0;\n String account; // 0 = chequing, 1 = savings\n\n // If the accountType is 0, then it's a Chequing account the user wants to deposit to, if it's 1 then\n // it's savings\n account = accountType == 0 ? \"UserBalanceC\" : \"UserBalanceS\";\n\n // Look into the account number and user balance for the deposit\n String sql = \"SELECT AccountNum, \" + account + \" FROM CashiiDB2\";\n\n try {\n rs = st.executeQuery(sql);\n while (rs.next()) {\n idCompare = rs.getInt(\"AccountNum\"); // grab the id to compare with after\n\n // If the ID turns about to be the one that's needed, get the balance and add the amount needed\n if (idCompare == id) {\n accountBalance = rs.getDouble(account);\n if (accountBalance <= amount)\n return -1;\n else {\n accountBalance -= amount;\n }\n }\n }\n updateAccount(id, accountBalance, account); // update command\n } catch (java.sql.SQLException e) {\n e.printStackTrace();\n }\n\n return 1;\n }", "public void deposit(double amount) {\n balance += amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo='\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n }" ]
[ "0.75840133", "0.75668716", "0.73089445", "0.7296453", "0.72819346", "0.7265774", "0.7173449", "0.7118101", "0.7101004", "0.7068247", "0.70644", "0.700727", "0.70030993", "0.6975043", "0.6955422", "0.6939497", "0.6924733", "0.69240355", "0.6912266", "0.69058824", "0.69007516", "0.68914324", "0.6867281", "0.68502307", "0.6848276", "0.68353236", "0.67754954", "0.67723054", "0.6757516", "0.6744152", "0.6726676", "0.6718946", "0.67164576", "0.67150235", "0.67126036", "0.6710303", "0.6698451", "0.66850746", "0.6673366", "0.66583806", "0.6648728", "0.66440177", "0.66283643", "0.66238403", "0.661851", "0.66180706", "0.66156864", "0.6611039", "0.66060036", "0.66028935", "0.659854", "0.65914077", "0.6587187", "0.6580685", "0.65781933", "0.65756154", "0.65714484", "0.65667135", "0.65642256", "0.65536964", "0.6530521", "0.65289277", "0.65285987", "0.65261716", "0.6522792", "0.65163434", "0.6513021", "0.65129167", "0.6507001", "0.6499357", "0.6496868", "0.64946216", "0.6491284", "0.6487251", "0.6481468", "0.6480403", "0.6478199", "0.6475119", "0.6472753", "0.6471974", "0.64692193", "0.64648455", "0.6464474", "0.6459825", "0.64493954", "0.6448231", "0.64386755", "0.64357734", "0.643239", "0.64289457", "0.6427534", "0.6427204", "0.6413038", "0.6413038", "0.6411345", "0.63947654", "0.6386655", "0.63844645", "0.63841224", "0.6380406" ]
0.6956385
14
balance check. to find toAccountNumber's table. remove the amount from sender's balance. add the amount from recevier's balance. insert into the log to each users.
public void wire(String accountNumber,int bankNumber, String toAccountNumber, int amount) { Connection conn; PreparedStatement ps, pp, ll, lp, ls, mm, nn; String url = "jdbc:mysql://localhost:3306/mars"; String username = "root"; String password = "1113"; int lastBalance; int tolastBalance; try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException e1) { e1.printStackTrace(); } try{ conn=DriverManager.getConnection(url, username, password); String sql = "select balance,userId from "+this.name+" where accountNumber=?"; ps= (PreparedStatement) conn.prepareStatement(sql); ps.setString(1, accountNumber.toString()); ResultSet rs = ps.executeQuery(); int nowBalance = 0; String id = ""; while(rs.next()) { nowBalance=rs.getInt("balance"); id = rs.getString("userId"); } if (nowBalance<amount) { System.out.println("No Balance"); return; } lastBalance = nowBalance - amount; //System.out.println(lastBalance); String sql1 = "UPDATE "+this.name+" SET balance=? where accountNumber=?"; ls = (PreparedStatement) conn.prepareStatement(sql1); ls.setInt(1, lastBalance); ls.setString(2, accountNumber.toString()); ls.executeUpdate(); //to account conn=DriverManager.getConnection(url, username, password); String sql3 = "select bankName from bank where bankNumber=?"; ll= (PreparedStatement) conn.prepareStatement(sql3); ll.setString(1, String.valueOf(bankNumber).toString()); ResultSet rs3 = ll.executeQuery(); String toname = ""; while(rs3.next()) { toname=rs3.getString("bankName"); } String sql4 = "select balance,userId from "+toname+" where accountNumber=?"; pp= (PreparedStatement) conn.prepareStatement(sql4); pp.setString(1, accountNumber.toString()); ResultSet rs4 = pp.executeQuery(); int tonowBalance = 0; String toid = ""; while(rs4.next()) { tonowBalance=rs4.getInt("balance"); toid = rs4.getString("userId"); } tolastBalance = tonowBalance + amount; //System.out.println(lastBalance); String sql5 = "UPDATE "+toname+" SET balance=? where accountNumber=?"; lp = (PreparedStatement) conn.prepareStatement(sql5); lp.setInt(1, tolastBalance); lp.setString(2, toAccountNumber.toString()); lp.executeUpdate(); //log String logs = "wired : "+ amount+" to "+toAccountNumber+"/ balance: "+String.valueOf(lastBalance); String sql11 = "insert into "+id+" (log) values (?)"; mm = (PreparedStatement) conn.prepareStatement(sql11); mm.setString(1, logs); mm.executeUpdate(); System.out.println("You wired $"+String.valueOf(amount)); String logs1 = "get : "+ amount+" from " +accountNumber+ "/ balance: "+String.valueOf(tolastBalance); String sql12 = "insert into "+toid+" (log) values (?)"; nn = (PreparedStatement) conn.prepareStatement(sql12); nn.setString(1, logs1); nn.executeUpdate(); System.out.println("You got $"+String.valueOf(amount)); }catch (SQLException e) { throw new IllegalStateException("Cannot connect the database!", e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void withdraw(String accountNumber, int amount) {\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll;\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\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\t\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tpp = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tpp.setInt(1, lastBalance);\n\t\tpp.setString(2, accountNumber.toString());\n\t\tpp.executeUpdate();\n\t\t\n\t\tString logs = \"withdraw : \"+ amount+\" / balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tll = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tll.setString(1, logs);\n\t\tll.executeUpdate();\n\t\tSystem.out.println(\"Ypu got $\"+String.valueOf(amount));\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\t\n\t}", "public void checkBalance()\n\t{\n\t\tList<Account> accounts = Main.aDao.getAllAccounts(this.loggedIn.getUserId());\n\t\tdouble accountsTotal = 0;\n\t\t\n\t\tfor(Account a : accounts)\n\t\t{\n\t\t\taccountsTotal += a.getBalance();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Total funds available across all accounts:\\n\" + accountsTotal);\n\t}", "public void deposit(String accountNumber, int amount) {\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll;\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\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\tlastBalance = nowBalance + amount;\n\t\t//System.out.println(lastBalance);\n\t\t\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tpp = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tpp.setInt(1, lastBalance);\n\t\tpp.setString(2, accountNumber.toString());\n\t\tpp.executeUpdate();\n\t\t\n\t\tString logs = \"deposit : \"+ amount+\" / balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tll = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tll.setString(1, logs);\n\t\tll.executeUpdate();\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}", "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 void balance(){\n\t\tnamesTree.balance();\n\t\taccountNumbersTree.balance();\n\t}", "@Override\r\n\tpublic boolean transferAmnt(int toAccNo, double money)\r\n\t\t\tthrows EwalletException {\n\t\tAccount ftTemp =new Account();\r\n\t\tif(temp.getCustBal()>=money) {\r\n\t\tftTemp = dao.loginuser(toAccNo);\r\n\t\tif(ftTemp!=null)\r\n\t\t{\r\n\t\t\tftTemp.setCustBal(ftTemp.getCustBal()+money);\r\n\t\t\ttemp.setCustBal(temp.getCustBal()-money);\r\n\t\t\ttemp.settDetails(\"Date :\"+tDate+\" Amount Transfered :\"+money+\" To Acc No: \"+ftTemp.getAccNum()+\" Total Balance :\"+temp.getCustBal());\r\n\t\t\tftTemp.settDetails(\"Date :\"+tDate+\" Depsoited Amount :\"+money+\" From Acc No: \"+temp.getAccNum()+\" Total Balance :\"+ftTemp.getCustBal());\r\n\t\t\tdao.updatedetails(temp.getAccNum(), temp);\r\n\t\t\tdao.updatedetails(ftTemp.getAccNum(), ftTemp);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}\r\n\t\telse if(temp.getCustBal()<money)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Low Balance to transfer\");\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t\tSystem.out.println(\"No such user account\");\r\n\t\treturn false;\r\n\t}", "public boolean makeTransfer(String fromAccountNumber,\r\n\t\t\tString toAccountNumber, double amount, String memo) {\r\n\t\tif (DaoUtility.isAccountNumberValid(fromAccountNumber)\r\n\t\t\t\t&& DaoUtility.isAccountNumberValid(toAccountNumber)) {\r\n\t\t} else\r\n\t\t\treturn false;\r\n\r\n\t\t// do transaction\r\n\t\tConnection conn = dbConnector.getConnection();\r\n\t\tif (conn==null)\r\n\t\t\treturn false;\r\n\t\t\r\n\t\tPreparedStatement st;\r\n\t\tString sql;\r\n\t\tResultSet rs;\r\n\r\n\t\ttry {\r\n\t\t\tconn.setAutoCommit(false);\r\n\t\t\tSavepoint savepnt = conn.setSavepoint();\r\n\r\n\t\t\ttry {\r\n\t\t\t\tint fromAccountId=0;\r\n\t\t\t\tint toAccountId=0;\r\n\t\t\t\tString fromName=\"SECRET USER\";\r\n\t\t\t\tString toName=\"SECRET USER\";\r\n\t\t\t\tString fname,mname,lname;\r\n\t\t\t\t\r\n\t\t\t\tst = conn.prepareStatement(\"select tbAccount.aid,balance,isactive,\"\r\n\t\t\t\t\t\t+ \"fname,mname,lname from tbAccount, tbClient \"\r\n\t\t\t\t\t\t+ \" where acnumber= ? and tbAccount.cid=tbClient.cid\");\r\n\t\t\t\tst.setString(1, fromAccountNumber);\r\n\t\t\t\trs = st.executeQuery();\r\n\t\t\t\tif (rs.next()){\r\n\t\t\t\t\tfromAccountId = rs.getInt(\"aid\");\r\n\t\t\t\t\tdouble balance = rs.getDouble(\"balance\");\r\n\t\t\t\t\tboolean isactive = rs.getBoolean(\"isactive\");\r\n\t\t\t\t\tfname = rs.getString(\"fname\");\r\n\t\t\t\t\tmname = rs.getString(\"mname\");\r\n\t\t\t\t\tlname = rs.getString(\"lname\");\r\n\t\t\t\t\tfromName = fname + \" \" + (mname==null?\"\":mname) + \" \" +lname;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (balance<amount || !isactive) { //not enough money or frozen\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\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\tst = conn.prepareStatement(\"select aid,isactive,\"\r\n\t\t\t\t\t\t+ \" fname,mname,lname from tbAccount,tbClient \"\r\n\t\t\t\t\t\t+ \" where acnumber= ? and tbAccount.cid=tbClient.cid\");\r\n\t\t\t\tst.setString(1, toAccountNumber);\r\n\t\t\t\trs = st.executeQuery();\r\n\t\t\t\tif (rs.next()){\r\n\t\t\t\t\ttoAccountId = rs.getInt(\"aid\");\r\n\t\t\t\t\tboolean isactive = rs.getBoolean(\"isactive\");\r\n\t\t\t\t\tfname = rs.getString(\"fname\");\r\n\t\t\t\t\tmname = rs.getString(\"mname\");\r\n\t\t\t\t\tlname = rs.getString(\"lname\");\r\n\t\t\t\t\ttoName = fname + \" \" + (mname==null?\"\":mname) + \" \" +lname;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (!isactive) { //frozen\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// substract balance of fromAccount\r\n\t\t\t\tst = conn.prepareStatement(\r\n\t\t\t\t\t\t\"update tbAccount set balance = balance - ? \"\r\n\t\t\t\t\t\t\t\t+ \" where balance >= ? \"\r\n\t\t\t\t\t\t\t\t+ \" and acnumber = ? \"\r\n\t\t\t\t\t\t\t\t+ \" and isactive=TRUE \");\r\n\t\t\t\tst.setDouble(1, amount);\r\n\t\t\t\tst.setDouble(2, amount);\r\n\t\t\t\tst.setString(3, fromAccountNumber);\r\n\t\t\t\tint nRs = st.executeUpdate();\r\n\t\t\t\tif (nRs <= 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tconn.rollback(savepnt);\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\t// add balance of toAccount\r\n\t\t\t\tst = conn.prepareStatement(\r\n\t\t\t\t\t\t\"update tbAccount set balance = balance + ? \"\r\n\t\t\t\t\t\t\t\t+ \" where acnumber = ? \"\r\n\t\t\t\t\t\t\t\t+ \" and isactive=TRUE \");\r\n\t\t\t\tst.setDouble(1, amount);\r\n\t\t\t\tst.setString(2, toAccountNumber);\r\n\t\t\t\tnRs = st.executeUpdate();\r\n\t\t\t\tif (nRs <= 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tconn.rollback(savepnt);\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\t// insert 2 transaction record\r\n\t\t\t\t// insert into tbTransaction(aid, trtype, amount, description)\r\n\t\t\t\t// values( select aid from tbAccount where acnumber='acnumber',\r\n\t\t\t\t// DEPOSIT_TRANSACTION_TYPE_ID,\r\n\t\t\t\t// amount, 'transfer 123.4 dollars to 3333343 on 2014-09-19')\r\n\t\t\t\t//\r\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t\t\tjava.util.Date date = new java.util.Date();\r\n\t\t\t\tString currentDate = dateFormat.format(date); // 2014-08-06\r\n\r\n\t\t\t\tsql = String.format(\r\n\t\t\t\t\t\t\"insert into tbTransaction(aid,trtype,amount,description) \"\r\n\t\t\t\t\t\t\t\t+ \" values( %d, \" + \"\t\t\t%d, \"\r\n\t\t\t\t\t\t\t\t+ \"\t\t\t%f, 'Transfer out %.2f dollars to %s(%s) on %s. MEMO: %s' ) \", \r\n\t\t\t\t\t\t\t\tfromAccountId,\r\n\t\t\t\t\tTRANSFER_OUT_TRANSACTION_TYPE_ID, amount, amount,\r\n\t\t\t\t\ttoAccountNumber, toName, currentDate,memo);\r\n\t\t\t\tnRs = st.executeUpdate(sql);\r\n\t\t\t\tif (nRs<=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tconn.rollback(savepnt);\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\tsql = String.format(\r\n\t\t\t\t\t\t\"insert into tbTransaction(aid,trtype,amount,description) \"\r\n\t\t\t\t\t\t\t\t+ \" values( %d, \" + \" %d, \"\r\n\t\t\t\t\t\t\t\t+ \"\t%f, 'Transfer in %.2f dollars from %s(%s) on %s. MEMO: %s' ) \", \r\n\t\t\t\t\t\t\t\ttoAccountId,\r\n\t\t\t\t\tTRANSFER_IN_TRANSACTION_TYPE_ID, amount, amount,\r\n\t\t\t\t\tfromAccountNumber, fromName, currentDate,memo);\r\n\t\t\t\tnRs = st.executeUpdate(sql);\r\n\t\t\t\tif (nRs<=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tconn.rollback(savepnt);\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\treturn true;\r\n\t\t\t\t\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t\tconn.rollback(savepnt);\r\n\t\t\t} finally {\r\n\t\t\t\tconn.setAutoCommit(true);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (conn != null)\r\n\t\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "public void transferMoney(int customerAccountId, int accountId) throws SQLException {\n // check if the customer has this account\n boolean customerOwnsAccount = false;\n for (int i = 0; i < this.currentCustomer.getAccounts().size(); i++) {\n if (customerAccountId == this.currentCustomer.getAccounts().get(i).getId()) {\n customerOwnsAccount = true;\n break;\n }\n }\n // it is safe to proceed since the customer accounts have been authenticated\n if (customerOwnsAccount) {\n Account customerAccount = DatabaseSelectHelper.getAccountDetails(customerAccountId);\n // try and catch for valid input (int) expected\n try {\n System.out.println(\"Enter amount you wish to transfer:\");\n // take user input as a big decimal\n BigDecimal bigAmount = new BigDecimal(br.readLine());\n if (bigAmount.compareTo(customerAccount.getBalance()) <= 0) {\n // try to update accounts\n try {\n // update the account which received money in database\n DatabaseUpdateHelper.updateAccountBalance(\n bigAmount.add(DatabaseSelectHelper.getBalance(accountId)), accountId);\n // update account which transfered money in database\n DatabaseUpdateHelper.updateAccountBalance(\n customerAccount.getBalance().subtract(bigAmount), customerAccountId);\n // update the customer object for printing reasons for other options\n this.currentCustomer.updateAccounts();\n // Explicitly tell user money is transfered\n System.out.println(\"you have successfully transfered money to account \" + accountId);\n \n } catch (Exception e) {\n System.out.println(\"The account ID you wish to transfer money to does not exist\");\n }\n // error printing\n } else {\n System.out.println(\"This account does not have enough money to send this amount\");\n }\n \n } catch (Exception e) {\n System.out.println(\"Invalid amount\");\n }\n // error printing\n } else {\n System.out.println(\"You do not have access to this account\");\n }\n \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}", "private void transferToBankAccount() {\n ArrayList<Coin> selectedCoins;\n String collection;\n mGoldAmount = 0.0;\n mBankTransferTotal = 0;\n\n if (mRecyclerViewCol.getVisibility() == View.VISIBLE) {\n selectedCoins = getSelectedCoins(Data.COLLECTED);\n collection = Data.COLLECTED;\n // Impose 25 coin limit\n if (selectedCoins.size() > (25 - Data.getCollectedTransferred())) {\n displayToast(getString(R.string.msg_25_coin_limit));\n return;\n }\n } else {\n selectedCoins = getSelectedCoins(Data.RECEIVED);\n collection = Data.RECEIVED;\n }\n\n if (selectedCoins.size() == 0) {\n displayToast(getString(R.string.msg_please_select_coins));\n return;\n }\n\n // Transfer selected coins to bank account\n mBankTransferInProgress = true;\n mProgressBar.setVisibility(View.VISIBLE);\n Log.d(TAG, \"[transferToBankAccount] transfer in progress...\");\n\n for (Coin c : selectedCoins) {\n double value = c.getValue();\n String currency = c.getCurrency();\n double exchange = value * mExchangeRates.get(currency);\n mGoldAmount += exchange;\n Data.removeCoinFromCollection(c, collection, new OnEventListener<String>() {\n\n @Override\n public void onSuccess(String string) {\n mBankTransferTotal++;\n Log.d(TAG, \"[transferToBankAccount] number processed: \" + mBankTransferTotal);\n // If all coins have been processed\n if (mBankTransferTotal == selectedCoins.size()) {\n\n // Get current date\n LocalDateTime now = LocalDateTime.now();\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\n \"yyyy/MM/dd\", Locale.ENGLISH);\n String date = format.format(now);\n\n // Add transaction to firebase\n Transaction transaction = new Transaction(mGoldAmount, date);\n Data.addTransaction(transaction, mBankTransferTotal, collection);\n\n // Clear transfer flag\n mBankTransferInProgress = false;\n\n // Update the view\n if (mRecyclerViewCol.getVisibility() == View.VISIBLE) {\n updateCollectedView();\n } else {\n updateReceivedView();\n }\n mProgressBar.setVisibility(View.INVISIBLE);\n Log.d(TAG, \"[transferToBankAccount] transfer complete\");\n displayToast(getString(R.string.msg_transfer_complete));\n }\n }\n\n @Override\n public void onFailure(Exception e) {\n mBankTransferTotal++;\n // If all coins have been processed\n if (mBankTransferTotal == selectedCoins.size()) {\n\n // Clear transfer flag\n mBankTransferInProgress = false;\n mProgressBar.setVisibility(View.INVISIBLE);\n Log.d(TAG, \"[transferToBankAccount] transfer failed\");\n\n // Update the view\n if (mRecyclerViewCol.getVisibility() == View.VISIBLE) {\n updateCollectedView();\n } else {\n updateReceivedView();\n }\n\n } else {\n displayToast(getString(R.string.msg_failed_to_transfer) + c.getCurrency()\n + \" worth \" + c.getValue());\n }\n Log.d(TAG, \"[sendCoins] failed to transfer coin: \" + c.getId());\n }\n });\n }\n }", "public int balance(String accountNumber, String userId) {\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp;\n\t\tString url = \"jdbc:mysql://localhost:3306/mars\";\n\t\tString username = \"root\";\n\t\tString password = \"1113\";\n\t\t\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\t\n\t\ttry{\n\t\t\t//connect to database\n\t\t\tconn=DriverManager.getConnection(url, username, password);\n\t\t\tString sql = \"select balance from \"+this.name+\" where accountNumber=?\";\n\t\t\tps= (PreparedStatement) conn.prepareStatement(sql);\n\t\t\tps.setString(1, accountNumber.toString());\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tint nowBalance = 0;\n\t\t\twhile(rs.next()) { \n\t\t\t\tnowBalance=rs.getInt(\"balance\");\n\t\t\t}\n\t\t\t\n\t\t\tString logs = \"Checked balance: \"+String.valueOf(nowBalance);\n\t\t\tString sql1 = \"insert into \"+userId+\" (log) values (?)\";\n\t\t\tpp = (PreparedStatement) conn.prepareStatement(sql1);\n\t\t\tpp.setString(1, logs);\n\t\t\tpp.executeUpdate();\n\t\t\t\n\t\t\treturn nowBalance;\n\t\t} catch (SQLException e) {\n\t\t throw new IllegalStateException(\"Cannot connect the database!\", e);\n\t\t}\n\t\t\n\t}", "@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 }", "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 }", "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 }", "abstract int checkBalance(String accountno) throws RemoteException;", "@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 }", "public boolean sendMoney(BigDecimal amount, BankAccount toAccount){\n //check if balance can cover that transfer\n if(!mIsActive || balance.compareTo(amount)<0){\n //account not active or insufficient funds\n return false;\n }\n //take out of balance\n balance = balance.subtract(amount);\n //check that the receiver received the amount\n toAccount.deposit(amount);\n //success! return true\n return true;\n }", "@Transactional\n\tpublic String addTransaction(int toAccNo, int fromAccNo, Transaction tran) {\n\t\t\tEntityManager entityManager = getEntityManager();\n\t\t\tAccountdetail acc = (Accountdetail) entityManager.createQuery(\"select a from Accountdetail a where a.accountnumber =: toaccNo\").setParameter(\"toaccNo\", toAccNo ).getSingleResult();\n\t\t\tAccountdetail acc1 = (Accountdetail) entityManager.createQuery(\"select ac from Accountdetail ac where ac.accountnumber =: fromAccNo\").setParameter(\"fromAccNo\", fromAccNo ).getSingleResult();\n\t\t\t\n\t\t\t//Validation -----> The Balance amount should be greater than the Amount Transfered \n\t\t\tif(acc1.getCurrentbalance()>=tran.getAmounttransferred()) {\n\t\t\t\t\ttran.setAccountto(acc);\n\t\t\t\t\ttran.setAccountfrom(acc1);\n\t\t\t\t\tentityManager.merge(tran);\n\t\t\t\t\t\n\t\t\t\t\t//Taking the amount transfered\n\t\t\t\t\tint amt = tran.getAmounttransferred();\n\t\t\t\t\tSystem.out.println(toAccNo);\n\t\t\t\t\t\n\t\t\t\t\t//Also crediting and debiting the amount from the accounts \n\t\t\t\t\tacc.setCurrentbalance(acc.getCurrentbalance()+amt);\n\t\t\t\t\tacc1.setCurrentbalance(acc1.getCurrentbalance()-amt);\n\t\t\t\t\t\n\t\t\t\t\t//Mailing the details of the transaction to the Respective Account Numbers\n\t\t\t\t\tString info_deb = \"Amount debited from your account.\\nAmount -->\"+amt+\"\\nTo Account -->\"+acc.getAccountnumber();\n String info_rec = \"Amount credited to your account.\\nAmount -->\"+amt+\"\\nFrom Account -->\"+acc1.getAccountnumber();\n mailService.sendMail(info_deb, acc1.getCustomerdetail().getEmail());\n mailService.sendMail(info_rec, acc.getCustomerdetail().getEmail());\n \n\t\t\t\t\treturn \"Transaction Inserted\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//If Balance is less than the Amount Transfered \n\t\t\t\telse if(acc1.getCurrentbalance()<tran.getAmounttransferred()) {\n\t\t\t\t\treturn \"insufficient funds\";\n\t\t\t\t}\n\t\t\t\n\t\t\t\t//If the Details is wrong\n\t\t\t\telse {\n\t\t\t\t\treturn \"Wrong details. Please try again\";\n\t\t\t\t}\n\t }", "private void doCheckBalance() {\n while (true){\n try{\n Account userAccount = ui.readAccount(currentUser.getAccounts());\n ui.displayMessage(\"Balance: \" + userAccount.getBalance());\n break;\n } catch (Exception e){\n ui.displayError(\"Please enter a valid number.\");\n }\n }\n\n }", "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}", "@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 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 int balup(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "private void updateDatabaseAccountBalance() {\n\t\tString sql = \"UPDATE account SET balance = \" + this.balance + \" \";\n\t\tsql += \"WHERE accountID = '\" + this.accountID + \"';\";\n\n\t\tDbUtilities db = new MySqlUtilities();\n\t\tdb.executeQuery(sql);\n\t}", "void checkBalance() {\n\t\tSystem.out.println(\"Account balance: \" + balance);\n\t}", "@Override\n public void logWithdrawal(UUID userUUID, double amount) {\n }", "public void updateAccount() {\r\n\t\t\r\n\t\t//update all totals\r\n\t\ttotalYouOwe = 0.0;\r\n\t\ttotalOwedToYou = 0.0;\r\n\t\tbalance = 0.0;\r\n\t\tnetBalance = 0.0;\r\n\t\t\r\n\t\t//totalYouOwe and totalOwedToYou\r\n\t\tfor (Event e : events) {\r\n\t\t\tif (e.isParticipantByGID(GID)) {\r\n\t\t\t\tif (e.getParticipantByGID(GID).getBalance() > 0) {\r\n\t\t\t\t\ttotalOwedToYou = totalOwedToYou + e.getParticipantByGID(GID).getBalance(); \r\n\t\t\t\t} else {\r\n\t\t\t\t\ttotalYouOwe = totalYouOwe + (-e.getParticipantByGID(GID).getBalance());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//netBalance/balance - the same in current implementation\r\n\t\tnetBalance = totalOwedToYou - totalYouOwe;\r\n\t\tbalance = totalOwedToYou - totalYouOwe;\r\n\t\t\r\n\t\tupdatePastRelations();\r\n\t}", "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 }", "protected void insertNickel(double balance)\r\n {\r\n totalBalance = balance;\r\n totalBalance = totalBalance + 0.05;\r\n }", "private void sendBucks() {\n\t\tconsole.printUsers(userService.getAll(currentUser.getToken()));\n\t\tSystem.out.println(\"\");\n\n\t\tBoolean validResponse = false;\n\t\tint selectedUserId = -1;\n\t\tBigDecimal transferAmount = new BigDecimal(0);\n\t\tBigDecimal zero = new BigDecimal(0);\n\t\tBigDecimal currentBalance = (accountService.getAccountBalance(currentUser.getToken()));\n\t\tTransfer transfer = new Transfer();\n\n\t\twhile (true) {\n\t\t\t// ask which user you want to send money to or exit\n\t\t\tselectedUserId = console.getUserInputInteger(\"Enter ID of user you are sending to (0 to cancel)\");\n\t\t\tif (selectedUserId == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (selectedUserId > 0 && selectedUserId <= userService.getAll(currentUser.getToken()).length) {\n\t\t\t\t// prompt for amount to send\n\t\t\t\ttransferAmount = console.getUserInputBigDecimal(\"Enter amount\");\n\t\t\t\t// transfer money\n\n\t\t\t\tif (transferAmount.compareTo(zero) == 1 && transferAmount.compareTo(currentBalance) <= 0) {\n\n\t\t\t\t\ttransfer.setFromUserId(currentUser.getUser().getId());\n\t\t\t\t\ttransfer.setToUserId(selectedUserId);\n\t\t\t\t\ttransfer.setTransferAmount(transferAmount);\n\t\t\t\t\ttransfer.setStatusOfTransferId(2);\n\t\t\t\t\ttransfer.setTypeOfTransferId(2);\n\n\t\t\t\t\t\n\t\t\t\t\ttransferService.createTransfer(currentUser.getToken(), transfer);\n\t\t\t\t\tSystem.out.println(\"\\nTransfer Complete!\");\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\\nInsufficient Funds! Please try again.\\n\");\n\n\t\t\t}\n\t\t}\n\n\t}", "public void withdraw(double amount) throws InsufficientFundsException {\n if (amount <= balance) {\n balance -= amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo= '\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n } //end if\n else {\n throw new InsufficientFundsException(amount);\n } //end else\n }", "@Test\n public void testImpossible2TransferMoney() {\n Bank bank = new Bank();\n User user = new User(\"Petr\", \"0000 000000\");\n AccountOfUser acc = new AccountOfUser(0, \"0000 0000 0000 0001\");\n bank.addUser(user);\n bank.addAccountToUser(user.getPassport(), acc);\n assertThat(bank.transferMoney(user.getPassport(), \"0000 0000 0000 0000\", user.getPassport(), acc.getRequisites(), 100), is(false));\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}", "@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 boolean deposit(String accountNumber, double amount) {\r\n\t\tif (!DaoUtility.isAccountNumberValid(accountNumber))\r\n\t\t\treturn false;\r\n\r\n\t\tConnection conn = null;\r\n\r\n\t\ttry {\r\n\t\t\tStatement st;\r\n\t\t\tResultSet rs;\r\n\t\t\tString sql;\r\n\r\n\t\t\tconn = dbConnector.getConnection();\r\n\t\t\tif (conn == null)\r\n\t\t\t\treturn false;\r\n\r\n\t\t\t// atomic operation\r\n\t\t\tst = conn.createStatement();\r\n\r\n\t\t\t// get the aid and old balance\r\n\t\t\tint aid = 0;\r\n\t\t\tdouble oldbalance = 0;\r\n\t\t\tsql = String.format(\r\n\t\t\t\t\t\"select * from tbAccount where acnumber='%s' \",\r\n\t\t\t\t\taccountNumber);\r\n\r\n\t\t\trs = st.executeQuery(sql);\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\taid = rs.getInt(\"aid\");\r\n\t\t\t\toldbalance = rs.getDouble(\"balance\");\r\n\t\t\t\tboolean isactive = rs.getBoolean(\"isactive\");\r\n\r\n\t\t\t\t// If the account is Frozen(isactive=false), then cannot\r\n\t\t\t\t// deposit.\r\n\t\t\t\tif (!isactive) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t// ac.balance += amount.\r\n\t\t\t// update tbAccount set balance='new balance' where\r\n\t\t\t// acnumber='acnumber'\r\n\t\t\tdouble newBalance = oldbalance + amount;\r\n\t\t\tsql = String.format(\r\n\t\t\t\t\t\"update tbAccount set balance=%f where acnumber='%s' \",\r\n\t\t\t\t\tnewBalance, accountNumber);\r\n\t\t\tst.addBatch(sql);\r\n\r\n\t\t\t// insert a transaction record\r\n\t\t\t// insert into tbTransaction(aid,trtype,amount,description)\r\n\t\t\t// values( select aid from tbAccount where acnumber='acnumber',\r\n\t\t\t// DEPOSIT_TRANSACTION_TYPE_ID,\r\n\t\t\t// amount, 'deposit 123.4 dollars on 2014-09-19')\r\n\t\t\t//\r\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t\tjava.util.Date date = new java.util.Date();\r\n\t\t\tString currentDate = dateFormat.format(date); // 2014-08-06\r\n\r\n\t\t\tsql = String.format(\r\n\t\t\t\t\t\"insert into tbTransaction(aid,trtype,amount,description) \"\r\n\t\t\t\t\t\t\t+ \" values( %d, \" + \"\t\t\t%d, \"\r\n\t\t\t\t\t\t\t+ \"\t\t\t%f, 'deposit %.2f dollars on %s' ) \", aid,\r\n\t\t\t\t\tDEPOSIT_TRANSACTION_TYPE_ID, amount, amount, currentDate);\r\n\r\n\t\t\tst.addBatch(sql);\r\n\r\n\t\t\t// Execute transaction\r\n\t\t\tint[] nRes = st.executeBatch();\r\n\t\t\tif (nRes[1] > 0)\r\n\t\t\t\treturn true;\r\n\t\t\telse\r\n\t\t\t\treturn false;\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (conn != null)\r\n\t\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "@Override\n public boolean transfer(Account from, Account to, BigDecimal amount) {\n return false;\n }", "private void doWithdrawal() {\n while(true){\n try{\n Account userAccount = ui.readAccount(currentUser.getAccounts());\n int amountWithdrawn = ui.readWithdrawalAmount();\n\n if(userAccount.debit(amountWithdrawn)){\n ui.displayNewBalance(userAccount);\n break;\n\n } else {\n ui.displayError(\"You do not have enough money in this account to withdraw \" + amountWithdrawn);\n }\n }catch(Exception e){\n ui.displayError(\"Please enter a valid number.\");\n }\n }\n\n }", "@Override\r\n\tpublic void updateBalance( Integer userid, double amount) {\n\t\tif ( getBalance( userid) < amount) {\r\n\t\t\tthrow new RuntimeException( \"用户余额不足!\");\r\n\t\t}\r\n\t\tString sql = \"UPDATE buyers SET balance = balance - ? WHERE id = ?;\";\r\n\t\tjdbcTemplate.update( sql, amount, userid);\r\n\t}", "@Override\n public void logDeposit(UUID userUUID, double amount) {\n }", "public void sendBankBalance(int amount) {\n sendMessage(Prefix.BANKBALANCE, amount + \"\");\n }", "Boolean checkAccountHasSufficientBalance(PrintWriter out, Account from, Double amount);", "public boolean transferAmount(BankAccountBindingModel bankAccountBindingModel) {\n BankAccount fromAccount = this.bankAccountRepository\n .findById(bankAccountBindingModel.getId()).orElse(null);\n\n //Get bank account that receives amount\n BankAccount toAccount = this.bankAccountRepository\n .findById(bankAccountBindingModel.getReceiverId()).orElse(null);\n\n //If one of the accounts does not exist, returns false\n if (fromAccount == null || toAccount == null) {\n return false;\n }\n //if the amount from the binding model's account is equal or less than 0, return false\n else if (bankAccountBindingModel.getAmount().compareTo(BigDecimal.ZERO) <= 0) {\n return false;\n }\n\n //Calculate the new balance for the bank account that sends amount and then set the new value\n BigDecimal newBalanceFromAccount = fromAccount.getBalance().subtract(bankAccountBindingModel.getAmount());\n fromAccount.setBalance(newBalanceFromAccount);\n\n //Returns false if the new balance in fromAccount is equal or less than 0\n if (fromAccount.getBalance().compareTo(BigDecimal.ZERO) <= 0) {\n return false;\n }\n\n //Calculate the new balanse for the bank account that receives amount and then set the new value\n BigDecimal newBalanceToAccount = toAccount.getBalance().add(bankAccountBindingModel.getAmount());\n toAccount.setBalance(newBalanceToAccount);\n\n //Create a new transaction and set its data\n Transaction transaction = new Transaction();\n transaction.setType(\"TRANSFER\");\n transaction.setFromAccount(fromAccount);\n transaction.setToAccount(toAccount);\n transaction.setAmount(bankAccountBindingModel.getAmount());\n\n //Save changes and return true\n this.bankAccountRepository.save(fromAccount);\n this.bankAccountRepository.save(toAccount);\n this.transactionRepository.save(transaction);\n return true;\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}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tint fromAccountId = Integer.parseInt(fromAccount.getSelectedItem().toString());\n\t\t\tint toAccountId = Integer.parseInt(toAccount.getSelectedItem().toString());\n\t\t\tfloat amountTransfer = Float.parseFloat(transferAmount.getText());\n\t\t\tFloat balance = ATMOptionUtility.getBalanceFromAccountId(fromAccountId);\n\n\t\t\tif (fromAccountId == toAccountId) {\n\t\t\t\tJOptionPane.showMessageDialog(frame, \"Illegal transfer. Cannot pick two same accounts.\");\n\t\t\t} else if (amountTransfer > 2000){\n\t\t\t\tJOptionPane.showMessageDialog(frame, \"Illegal transfer. Cannot transfer more than $2000.\");\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\tif (ATMOptionUtility.checkEnoughBalance(fromAccountId, amountTransfer)) {\n\t\t\t\t\t\tATMOptionUtility.subtractMoneyToAccountId(fromAccountId, amountTransfer);\n\t\t\t\t\t\tATMOptionUtility.addMoneyToAccountId(toAccountId, amountTransfer);\n\t\t\t\t\t\tATMOptionUtility.addToTransactionsTable(\"Transfer\", ssn, fromAccountId, toAccountId, amountTransfer);\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Transfer succeeded.\");\n\t\t\t\t\t\tif(balance - amountTransfer <= 0.01) {\n\t\t\t\t\t\t\tString closeAccount = \"UPDATE CR_ACCOUNTS SET ISCLOSED = 1 WHERE ACCOUNTID = \" + fromAccountId;\n\t\t\t\t\t\t\tint numRowsUpdated = Application.stmt.executeUpdate(closeAccount);\n\t\t\t\t\t\t\tassert(numRowsUpdated == 1);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tBankTellerUtility.showPopUpMessage(\"Since your account: \" + fromAccountId + \" balance was less than or \"\n\t\t\t\t\t\t\t\t\t+ \"equal to $0.01, your account was closed.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"You don't have enough to make this transaction.\");\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void deposit(double amount) {\n balance += amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo='\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n }", "void tras()\r\n{\r\nScanner sc1 = new Scanner(System.in);\r\nSystem.out.println(\"Please enter the mobile phone number of the User you have to transfer money:\");\r\nString phone1 = sc1.next();\r\nSystem.out.println(\"Please enter the Amount to be transfered:\");\r\nint c = sc1.nextInt();\r\nfor(int i = 0;i<=phone.length;i++)\r\n{\r\nif(phone1.equals(phone[i]))\r\n{\r\nif(i!= x)\r\n{\r\nif(c <= money[x])\r\n{\r\nSystem.out.println(\"Please confirm the account Name of the user:\"+users[i]);\r\nSystem.out.println(\"Are you sure to continue: yes / no?\");\r\nString yesNo = sc1.next();\r\nif(yesNo.equals(yes))\r\n{\r\nmoney[i] = money[i]+c;\r\nSystem.out.println(\"Amount Transfer is successful!\");\r\nmoney[x]= money[x]-c;\r\nSystem.out.println(\"Your current balance is:\"+money[x]);\r\nbreak;\r\n}\r\nelse \r\n{\r\nSystem.out.println(\"!!! Amount Transfer failed !!!\");\r\nSystem.out.println(\"Your current balance is:\"+money[x]);\r\nbreak;\r\n}\r\n}\r\nelse \r\n{\r\nSystem.out.println(\"Transfer has failed due to insufficient balance!!\");\r\nbreak;\r\n}\r\n}\r\nelse\r\n{\r\nSystem.out.println(\"You Cannot transfer money to yourself! Please enter the phone number of the user whom you have to transfer money.\");\r\nbreak;\r\n}\r\n}\r\nelse if(i == 2)\r\n{\r\nSystem.out.println(\"The phone number you entered is incorrect or not in the bank directory!Please try with another number.\");\r\nbreak;\r\n}\r\n}\r\n}", "@Test\n\tpublic void testRecalculateAccountBalance() {\n\t\tSmsAccount smsAccount = new SmsAccount();\n\t\tsmsAccount.setSakaiUserId(\"1\");\n\t\tsmsAccount.setSakaiSiteId(\"1\");\n\t\tsmsAccount.setMessageTypeCode(\"1\");\n\t\tsmsAccount.setOverdraftLimit(1000L);\n\t\tsmsAccount.setCredits(10L);\n\t\tsmsAccount.setAccountName(\"accountname\");\n\t\tsmsAccount.setAccountEnabled(true);\n\t\thibernateLogicLocator.getSmsAccountLogic()\n\t\t\t\t.persistSmsAccount(smsAccount);\n\t\tinsertTestTransactionsForAccount(smsAccount);\n\n\t\tAssert.assertTrue(smsAccount.exists());\n\n\t\tList<SmsTransaction> transactions = hibernateLogicLocator\n\t\t\t\t.getSmsTransactionLogic().getSmsTransactionsForAccountId(\n\t\t\t\t\t\tsmsAccount.getId());\n\n\t\tAssert.assertNotNull(transactions);\n\t\tAssert.assertTrue(transactions.size() > 0);\n\n\t\tsmsBillingImpl.recalculateAccountBalance(smsAccount.getId());\n\n\t\tSmsAccount recalculatedAccount = hibernateLogicLocator\n\t\t\t\t.getSmsAccountLogic().getSmsAccount(smsAccount.getId());\n\t\tAssert.assertNotNull(recalculatedAccount);\n\t\tAssert.assertTrue(recalculatedAccount.getCredits() == 6660);\n\t}", "void addBalance(double amount) {\n\t\tbalance += amount;\n\t}", "@Override\n\tpublic void transferBalnace() {\n\t\tSystem.out.println(\"balance is transferd\");\n\t}", "void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }", "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 }", "private void validateBalance(Double fromBalance, Double transferAmount) throws PaymentsException {\n\t\tif ((fromBalance - transferAmount) <= 0) {\n\t\t\tlogger.error(\"Not enough balance.\");\n\t\t\tthrow new PaymentsException(\" Not enough funds. \");\n\t\t\t\n\t\t}\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 }", "@Test\n public void testImpossible1TransferMoney() {\n Bank bank = new Bank();\n User user = new User(\"Petr\", \"0000 000000\");\n AccountOfUser acc = new AccountOfUser(0, \"0000 0000 0000 0000\");\n AccountOfUser acc2 = new AccountOfUser(0, \"0000 0000 0000 0001\");\n bank.addUser(user);\n bank.addAccountToUser(user.getPassport(), acc);\n bank.addAccountToUser(user.getPassport(), acc2);\n assertThat(bank.transferMoney(user.getPassport(), acc.getRequisites(), user.getPassport(), acc2.getRequisites(), 100), is(false));\n }", "public boolean recoverAccount(int account_id, int balance, Connection con){\n try {\n executeNewAccount(account_id, balance, con);\n } catch (SQLException e) {\n try {\n con.rollback();\n return false;\n } catch (SQLException e1) {\n e1.printStackTrace();\n return false;\n }\n }\n\n cache.add(new Account(account_id, balance));\n return true;\n }", "protected void initUserAccount(String userServer, long userId, String userName, String balanceId) {\r\n\t\tDataCollection.remove(userServer, \"finance\", \"bill_\" + userId, new BasicDBObject());\r\n\t\tBasicDBObject oField = null;\r\n\t\tif (StringUtil.isEmpty(balanceId)) {\r\n\t\t\toField = new BasicDBObject().append(\"balance\", 0).append(\"income\", 0).append(\"withdraw\", 0).append(\"timestamp\", System.currentTimeMillis())\r\n\t\t\t\t\t.append(\"userId\", userId).append(\"userName\", userName);\r\n\t\t} else {\r\n\t\t\toField = new BasicDBObject().append(\"_id\", new ObjectId(balanceId)).append(\"balance\", 0).append(\"income\", 0).append(\"withdraw\", 0)\r\n\t\t\t\t\t.append(\"timestamp\", System.currentTimeMillis()).append(\"userId\", userId).append(\"userName\", userName);\r\n\t\t}\r\n\t\tbalanceId = DataCollection.insert(userServer, \"finance\", \"bill_\" + userId, oField).toString();\r\n\t\tDataCollection.createIndex(userServer, \"finance\", \"bill_\" + userId, \"keyIdx\", new BasicDBObject().append(\"shortId\", 1), false);\r\n\t\tString sql = \"update user set balance=0,income=0,withdraw=0,income_total=0,withdraw_total=0,sms_count=0,balance_id=? where user_id=?\";\r\n\t\tDataSet.update(Const.defaultMysqlServer, Const.defaultMysqlDB, sql, new String[] { balanceId, String.valueOf(userId) });\r\n\t}", "public void transferToChecking(double amount){\n withdrawSavings(amount);\r\n depositChecking(amount);\r\n }", "Account(int balance) {\n if(balance <0) this.balance=0;\n this.balance = balance;\n }", "protected void insertDime(double balance)\r\n {\r\n totalBalance = balance;\r\n totalBalance = totalBalance + 0.1;\r\n }", "private void deposit() {\n userInput = 0;\n while (userInput <= 0) {\n System.out.printf(\"Din nuværende balance er: %.2f DKK\\n\" +\n \"Indtast ønsket beløb at indsætte: \", balanceConverted);\n\n textMenuKey(false, \"\");\n\n if (userInput <= 0) {\n System.out.println(\"Indtast et gyldigt beløb\");\n }\n }\n\n moneyController(userInput);\n mysql.transactionUpdate(customerNumber, customerName, balance, userInput, \"Deposited\");\n }", "@Override\r\n\tpublic boolean withdraw(WithdrawBean wb, double amount) throws WalletException {\n\t\tboolean isValid = true;\r\n\t\tfor (CustomerBean cb : customerList) {\r\n\t\t\tif(cb.getPhoneNum()==wb.getPhoneNum()) {\r\n\t\t\t\tif(wb.getBalance()>amount) {\r\n\t\t\t\twb.setBalance(wb.getBalance()-amount);\r\n\t\t\t\twb.setDate(LocalDateTime.now());\r\n\t\t\t\tisValid = true;\r\n\t\t\t\tWalletTransactions transac = new WalletTransactions();\r\n\t\t\t\ttransac.setAmount(amount);\r\n\t\t\t\ttransac.setBalance(wb.getBalance());\r\n\t\t\t\ttransac.setDate(wb.getDate());\r\n\t\t\t\ttransac.setPhoneNum(wb.getPhoneNum());\r\n\t\t\t\ttransac.setType(\"withdraw\");\r\n\t\t\t\ttransacList.add(transac);\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthrow new WalletException();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn isValid;\r\n\t}", "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 }", "@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}", "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 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(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 addBalance(long balance) {\r\n this.balance += balance;\r\n }", "public static void transfer() {\n\t\ttry {\n\t\t\tif (!LoginMgr.isLoggedIn()) {\n\t\t\t\tthrow new NotLoggedInException();\n\t\t\t}\n\n\t\t\t// Scanner s = new Scanner(System.in);\n\t\t\tSystem.out.println(\"Enter account number to transfer to: \");\n\t\t\tString accNum = \"\";\n\t\t\tif (Quinterac.s.hasNextLine())\n\t\t\t\taccNum = Quinterac.s.nextLine();\n\n\t\t\tif (!ValidAccListMgr.checkAccNumExist(accNum)) {\n\t\t\t\tSystem.out.println(\"Please enter a valid account number\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Enter account number to transfer from: \");\n\t\t\tString accNumB = \"\";\n\t\t\tif (Quinterac.s.hasNextLine())\n\t\t\t\taccNumB = Quinterac.s.nextLine();\n\n\t\t\tif (!ValidAccListMgr.checkAccNumExist(accNumB)) {\n\t\t\t\tSystem.out.println(\"Please enter a valid account number\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Enter the amount of money to transfer in cents: \");\n\t\t\tint amount = 0;\n\t\t\tif (Quinterac.s.hasNextInt())\n\t\t\t\tamount = Integer.parseInt(Quinterac.s.nextLine());\n\n\t\t\tString modeName = LoginMgr.checkMode();\n\t\t\tif (modeName.equals(\"machine\")) {\n\t\t\t\tatmCheckTransferValid(accNum, amount, accNumB);\n\t\t\t} else if (modeName.equals(\"agent\")) {\n\t\t\t\tagentCheckTransferValid(accNum, amount, accNumB);\n\t\t\t}\n\n\t\t} catch (NotLoggedInException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}", "private void updateBalance(int balance) throws SQLException {\n\t\tupdateBalanceStatement.clearParameters();\n\t\tupdateBalanceStatement.setInt(1, balance);\n\t\tupdateBalanceStatement.setString(2, this.username);\n\t\tupdateBalanceStatement.executeUpdate();\n\t}", "private void doDeposit() {\n while (true){\n try{\n Account userAccount = ui.readAccount(currentUser.getAccounts());\n int amountDeposited = ui.takeDepositEnvelope();\n userAccount.credit(amountDeposited);\n ui.deliverMoney(amountDeposited);\n ui.displayNewBalance(userAccount);\n break;\n\n } catch (Exception e){\n ui.displayError(\"Please enter a valid number.\");\n }\n }\n\n\n }", "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 printBalance() {\n logger.info(\"Wallet balance : \" + total_bal);\n }", "private void withdraw() {\n userInput = 0;\n while (userInput <= 0) {\n System.out.printf(\"Din nuværende balance er: %.2f DKK\\n\" +\n \"Indtast ønsket beløb at hæve: \", balanceConverted);\n\n textMenuKey(false, \"\");\n\n if (userInput <= 0) {\n System.out.println(\"Indtast et gyldigt beløb\");\n }\n }\n\n if ((userInput * 100) <= balance) {\n moneyController(-userInput);\n mysql.transactionUpdate(customerNumber, customerName, balance, userInput, \"Withdraw\");\n } else {\n System.out.println(\"Utilstrækkelig balance på kontien\");\n }\n }", "public static void withdraw(double amount, Date date, Bank bank, String username, User user) {\n\t\tdouble preamount = (bank.userMap.get(username).getAmount());\n\t\tif (amount > preamount) {\n\t\t\tSystem.out.println(\"Insufficient balance.\");\n\n\t\t} else {\n\t\t\tpreamount = preamount - amount;\n\t\t\tbank.userMap.get(username).setAmount(preamount);\n\n\t\t\t// -----------------------------------------------------------------\n\t\t\tObjectOutputStream oos = null;\n\t\t\tString outputFile = \"resource/Bank.txt\";\n\n\t\t\ttry {\n\t\t\t\toos = new ObjectOutputStream(new FileOutputStream(outputFile));\n\n//\t\tSystem.out.println(\"user ye : \"+user);\n\t\t\t\tbank.userMap.replace(username, new User(user.getName(), user.getAddress(), user.getPhone(), username,\n\t\t\t\t\t\tuser.getPassword(), preamount, user.getDate()));\n//\t System.out.println(\"user u \"+user);\n\n\t\t\t\tfor (Entry<String, User> entry : bank.userMap.entrySet())\n\t\t\t\t\toos.writeObject(bank.userMap);\n\t\t\t\toos.close();\n\t\t\t} catch (OptionalDataException e) {\n\t\t\t\tSystem.out.println();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tif (oos != null)\n\t\t\t\t\ttry {\n\t\t\t\t\t\toos.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tdepositAmount(String.format(username + \", amount \" + amount + \" debited from your account. Balance - \"\n\t\t\t\t\t+ preamount + \" as on \" + \"%1$tD\" + \" at with \" + \"%1$tT.\", date), bank, username);\n\t\t}\n\n\t\t// -------------------------------------------------------------------\n\n\t}", "protected String commandRequestBalanceAdd(Integer connectionId, String amount) {\n Long amountAslong = Long.decode(amount);\n UserMovieRental user = (UserMovieRental)mapOfLoggedInUsersByConnectedIds.get(connectionId);\n long newBalance = user.addBalance(amountAslong);\n user.setBalance(newBalance);\n updateUserJson();\n updateServiceJson();\n return \"ACK balance \" + newBalance + \" added \" + amount;\n }", "public void withdrawCashFromBrokerage(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).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 } catch (InsufficientAssetsException e){\r\n throw new InsufficientAssetsException();\r\n }\r\n }", "@Override\n public boolean withdrawAmount(TransactionDTO transaction) {\n CustomerDetails customerDetails=this.viewAccount(transaction.getUserName()); \n if(customerDetails.getAccountBalance()>=transaction.getAmount()){\n customerDetails.setAccountBalance(customerDetails.getAccountBalance()-transaction.getAmount());\n customerRepository.save(customerDetails);\n return true;\n }\n else{\n return false;\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 void transferTo(double dollarAmount) {\r\n\t\tthis.accountBalance = this.accountBalance + dollarAmount;\r\n\t}", "void updateBalance(int amount){ \n\t\tbalance = amount;\n\t}", "protected void deposit(double amount)\n\t{\n\t\tacc_balance+=amount;\n\t}", "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 abstract void updateBalance(Balance balance, LedgerEntry.Subtype subtype, long amount) throws TransactionException;", "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 }", "int deposit(int id, int amount, int accountType) {\n int idCompare; // will contain the ID needed\n double accountBalance = 0;\n String account; // 0 = chequing, 1 = savings\n\n // If the accountType is 0, then it's a Chequing account the user wants to deposit to, if it's 1 then\n // it's savings\n account = accountType == 0 ? \"UserBalanceC\" : \"UserBalanceS\";\n\n // Look into the account number and user balance for the deposit\n String sql = \"SELECT AccountNum, \" + account + \" FROM CashiiDB2\";\n\n try {\n rs = st.executeQuery(sql);\n while (rs.next()) {\n idCompare = rs.getInt(\"AccountNum\"); // grab the id to compare with after\n\n // If the ID turns about to be the one that's needed, get the balance and add the amount needed\n if (idCompare == id) {\n accountBalance = rs.getDouble(account);\n accountBalance += amount;\n break;\n } else\n return -1;\n }\n // Run the operation to update the balance only for the user's account\n updateAccount(id, accountBalance, account);\n } catch (java.sql.SQLException e) {\n e.printStackTrace();\n }\n System.out.println(\"AMOUNT: \" + accountBalance);\n return 1;\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 addAccount(String accountNumber, String owner, BigDecimal startBalance) throws SQLException {\r\n\r\n\t\ttry (Connection connection = dbAdministration.getConnection();\r\n\t\t\t\tPreparedStatement preparedStatement = connection\r\n\t\t\t\t\t\t.prepareStatement(\"INSERT INTO account VALUES (?,?,?)\")) {\r\n\t\t\tint id = dbAdministration.getEntryCount(\"account\") + 1;\r\n\t\t\tpreparedStatement.setInt(1, id);\r\n\t\t\tpreparedStatement.setString(2, owner);\r\n\t\t\tpreparedStatement.setString(3, accountNumber);\r\n\t\t\t// Datensatz in die Datenbanktabelle schreiben\r\n\t\t\tpreparedStatement.execute();\r\n\t\t\tlogger.info(\"SQL-Statement ausgeführt: \" + \"INSERT INTO account VALUES (\" + id + \", \" + owner + \", \"\r\n\t\t\t\t\t+ accountNumber + \")\");\r\n\t\t\tlogger.info(\"Neues Konto angelegt. Besitzer: \" + owner + \", Kontonr.: \" + accountNumber + \", Startkapital: \"\r\n\t\t\t\t\t+ startBalance);\r\n\t\t\tif (startBalance.compareTo(BigDecimal.ZERO) == 1) {\r\n\t\t\t\t// Wenn das angeforderte Startguthaben > 0 ist, wird es dem\r\n\t\t\t\t// Konto überwiesen\r\n\t\t\t\tdaTransaction.addTransaction(\"0000\", accountNumber, startBalance, \"STARTGUTHABEN\");\r\n\t\t\t}\r\n\t\t\t// Die reservierte Nummer gehört jetzt zu einem Konto, daher\r\n\t\t\t// kann die Reservierung aufgehoben werden\r\n\t\t\treservedNumbers.remove(accountNumber);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(e);\r\n\t\t}\r\n\t}", "@Override\n\tpublic int withdraw(double amount) throws RaiseException {\n\t\tValidator.validateWithdraw(this.getBalance(), amount);\n\t\tif(amount <= this.getBalance()) {\n\t\t\tthis.setBalance(this.getBalance() - amount);\n\t\t\t\n\t\t\t//create a transaction and adding it to the list of transactions of this account \n\t\t\tTransaction tmpTransaction = new Transaction(amount, EnumTypeTransaction.withdraw);\n\t\t\tthis.addTransaction(tmpTransaction);\n\t\t\t\n\t\t\treturn 1;\n\t\t}\n\t\treturn 0;\n\t}", "private void updateMoney() {\n balance = mysql.getMoney(customerNumber);\n balanceConverted = (float) balance / 100.00;\n }", "public void addBalance()\n\t\t{\n\t\t\tthis.setBalance_acc2(this.getBalance_acc2() + this.getTemp_d_acc2());\n\t\t}", "protected static Boolean withdrawCanBeMade(\n Account fromAccount,\n Integer toAccountId,\n Integer userId,\n Integer amount,\n Transaction.TransactionType type\n ) {\n return doWithdrawCheck(fromAccount, toAccountId, userId, amount, type);\n }", "@Override\n public boolean depositAmount(TransactionDTO transaction) {\n if(transaction.getAmount()>0){\n CustomerDetails customerDetails=this.viewAccount(transaction.getUserName()); \n customerDetails.setAccountBalance(customerDetails.getAccountBalance()+transaction.getAmount());\n customerRepository.save(customerDetails);\n return true;\n }else{\n return false;\n }\n }", "public boolean updateBalance(int account_id, int final_amount, Connection con){\n try {\n tryDbUpdate(\"update ACCOUNTS set BALANCE = \"+ final_amount + \" where ACCOUNT_ID = \" + account_id, con);\n cache.add(new Account(account_id, final_amount));\n } catch (SQLException e) {\n try {\n con.rollback();\n return false;\n } catch (SQLException e1) {\n e1.printStackTrace();\n return false;\n }\n }\n return true;\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 }", "@SuppressWarnings(\"unused\")\r\n\t@Override\r\n\tpublic void sendMinimumBalanceemailToStudent(int userId) throws MessagingException {\r\n\t\t//Send email to parent for student appraval by sign up\r\n\t\t\r\n\t\tStudentProfileDetail studentProfileDetail = daoStudentProfileDetail.getStudentProfileByStudentId(userId);\r\n\t\t\r\n\t\tString studentName=studentProfileDetail.getFirst_Name()+\" \"+studentProfileDetail.getLast_Name();\r\n\t\tString signUpUrl=appUrl+\"/signup\";\r\n\t\tString studentEmail = studentProfileDetail.getUser().getUsername();\r\n\t\tEmailTemplate emailTemplate=daoEmailTemplate.get(EmailTemplateConstant.studentlowbalance.getIndex());\r\n\t\tif(emailTemplate!=null){\r\n\t\t\t\r\n\t\t\t\r\n\t\tString emailString=emailTemplate.getTemplate_Text();\r\n\t\t\r\n\t\temailString = emailString.replaceAll(\"##StudentName##\", studentName);\r\n\r\n\t\ttry {\r\n\t\t\temailManager.sendMessageEmail(\"Minutos en AlóProfe\",studentEmail,emailString);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tList<ParentStudentRelationship> parentStudentRelationships = daoParentStudentRelationship.getRelationshipDetailsByStudentProfileId(studentProfileDetail.getStudent_Profile_Id());\r\n\t\tfor (ParentStudentRelationship parentStudentRelationship : parentStudentRelationships) {\r\n\t\t\t studentName=studentProfileDetail.getFirst_Name()+\" \"+studentProfileDetail.getLast_Name();\r\n\t\t\t signUpUrl=appUrl+\"/signup\";\r\n\t\t\t studentEmail = studentProfileDetail.getUser().getUsername();\r\n\t\t\t \r\n\t\t\t emailTemplate=daoEmailTemplate.get(EmailTemplateConstant.studentlowbalance.getIndex());\r\n\t\t\t\tif(emailTemplate!=null){\r\n\t\t\t\t\t\r\n\t\t\t\tString emailString=emailTemplate.getTemplate_Text();\r\n\t\t\t\t\r\n\t\t\t\temailString = emailString.replaceAll(\"##StudentName##\", studentName);\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\temailManager.sendMessageEmail(\"Minutos en AlóProfe\",parentStudentRelationship.getParentEmail(),emailString);\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\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "private void listBalances() {\n\t\t\r\n\t}", "public boolean transferMoney(Account fromAcct, Account toAcct, DollarAmount amount,\n long timeout, TimeUnit unit)\n throws DollarAmount.InsufficientFundsException, InterruptedException {\n long stopTime = System.nanoTime() + unit.toNanos(timeout);\n\n for (; ; ) {\n if (fromAcct.lock.tryLock()) {\n try {\n if (toAcct.lock.tryLock()) {\n try {\n if (fromAcct.getBalance().compareTo(amount) < 0) {\n throw new DollarAmount.InsufficientFundsException();\n } else {\n fromAcct.debit(amount);\n toAcct.credit(amount);\n return true;\n }\n } finally {\n toAcct.lock.unlock();\n }\n }\n } finally {\n fromAcct.lock.unlock();\n }\n }\n\n if (System.nanoTime() > stopTime)\n return false;\n\n// TimeUnit.NANOSECONDS.sleep(fixedDelay + rnd.nextLong() % randMod);\n }\n }", "public int TransBuy(Long userid,Long compid,Long newbalance,Double amount)throws SQLException {\n\tjava.util.Date d=new java.util.Date();\r\n\tSimpleDateFormat sd=new SimpleDateFormat(\"dd-MMM-yy\");\r\n\tString sdate=sd.format(d);\r\n\tResultSet rs1=DbConnect.getStatement().executeQuery(\"select * from transaction where type='purchase' and bywhom='self' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\"\");\r\n\tif(rs1.next()==true)\r\n\t{\r\n\t\tint l=DbConnect.getStatement().executeUpdate(\"update transaction set amount=amount+\"+amount+\",SHAREAMOUNT=SHAREAMOUNT+\"+newbalance+\" where type='purchase' and bywhom='self' and comp_id=\"+compid+\" and DATEOFTRANS='\"+sdate+\"' and user_id=\"+userid+\" \");\r\n\t}\r\n\telse\r\n\t{\r\n\t\tint i=DbConnect.getStatement().executeUpdate(\"Insert into transaction values(trans_seq.nextval,\"+userid+\",'\"+sdate+\"',\"+amount+\",'purchase','self',\"+compid+\",\"+newbalance+\")\");\r\n\r\n\t}\r\n\t\tResultSet rss=DbConnect.getStatement().executeQuery(\"select * from FINALALLOCATION where user_id=\"+userid+\" and comp_id=\"+compid+\" \");\r\n\tif(rss.next()==true)\r\n\t{\r\n\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}\r\n\telse\r\n\t{\r\n\t\tint k=DbConnect.getStatement().executeUpdate(\"insert into FINALALLOCATION values(\"+userid+\",\"+compid+\",\"+newbalance+\")\");\r\n\t}\r\n\treturn 1;\r\n}", "@Override\r\n\tpublic boolean withdraw(double amount) {\n\t\ttry {\r\n\t\t\tif (accountStatus.equals(AccountStatus.ACTIVE)) {\r\n\t\t\t\tif (balance > amount) {\r\n\t\t\t\t\tbalance = (float) (balance - amount);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthrow new InsufficientBalanceException(\"You'er Balance is insufficient to make this transation !\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\telse {\r\n\t\t\t\tthrow new AccountInactiveException(\"You'er Account is not Active !\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t}\r\n\t\treturn false;\r\n\t}" ]
[ "0.6761513", "0.6567016", "0.6426179", "0.6406179", "0.6311181", "0.6277706", "0.6251824", "0.6239178", "0.6154758", "0.61531943", "0.6104967", "0.60805225", "0.60364366", "0.59996", "0.5969901", "0.5968958", "0.5960818", "0.5938173", "0.59323275", "0.5920108", "0.59151924", "0.5911019", "0.59016377", "0.59007156", "0.5872311", "0.58619785", "0.5857367", "0.5845526", "0.5828501", "0.5810362", "0.57944655", "0.5784069", "0.578001", "0.5778338", "0.5767684", "0.5765098", "0.5760088", "0.5757844", "0.57536054", "0.5751424", "0.5744832", "0.57398653", "0.5734158", "0.57270616", "0.5722819", "0.5708963", "0.5704564", "0.56974566", "0.5696929", "0.56849134", "0.5683415", "0.56762004", "0.5672183", "0.5665326", "0.5650414", "0.5623067", "0.5618084", "0.5610097", "0.56038874", "0.56016624", "0.55961543", "0.5595793", "0.55900985", "0.5588306", "0.5581894", "0.55806524", "0.5572677", "0.5566674", "0.555813", "0.55498135", "0.5546621", "0.5541527", "0.55332947", "0.5521841", "0.55039227", "0.55018735", "0.5500093", "0.54920936", "0.5489555", "0.54887366", "0.5486926", "0.5479751", "0.5469753", "0.54679465", "0.5465898", "0.54555345", "0.545539", "0.54482114", "0.54443884", "0.54434824", "0.54427725", "0.5439983", "0.54393035", "0.543889", "0.54188967", "0.5416745", "0.54073787", "0.54069823", "0.5403362", "0.5392235" ]
0.6784812
0
TODO Autogenerated method stub
public static void main(String[] args) { for(int i=3; i>=1; i--) { for(int j=i; j>=1; j--) { System.out.print(i); } System.out.println(); } }
{ "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
An interface for a tree data structure where nodes can have an arbitrary number of children.
public interface Tree<E> extends Iterable<E> { //accessor methods /** * Returns the Position of the root of the tree. * @return the Position of the root of the tree */ Position<E> root(); /** * Returns the Position of the parent of given Position. * @param p Position to check * @return the Position of the parent of given Position (or null if p is the root). * @throws IllegalArgumentException if Position isn't valid */ Position<E> parent(Position<E> p) throws IllegalArgumentException; /** * Returns the number of children of given Position. * @param p Position to check * @return the number of children of given Position * @throws IllegalArgumentException if Position isn't valid */ int numChildren(Position<E> p) throws IllegalArgumentException; /** * Returns the number of positions (and therefore elements) that are contained in tree. * @return the number of positions (and therefore elements) that are contained in tree */ int size(); //query methods /** * Tests whether given Position has at least one child. * @param p Position to check * @return true if given Position has at least one child, false otherwise * @throws IllegalArgumentException if Position isn't valid */ boolean isInternal(Position<E> p) throws IllegalArgumentException; /** * Tests whether given Position has any children. * @param p Position to check * @return true if given Position does not have children, false otherwise * @throws IllegalArgumentException if Position isn't valid */ boolean isExternal(Position<E> p) throws IllegalArgumentException; /** * Tests whether given Position is the root of the tree. * @param p Position to check * @return true if given Position is the root, false otherwise * @throws IllegalArgumentException if Position isn't valid */ boolean isRoot(Position<E> p) throws IllegalArgumentException; /** * Tests whether tree contains any Positions (and therefore elements). * @return true if tree doesn't contain any Positions, false otherwise */ boolean isEmpty(); //additional methods /** * Returns an iterable Collection containing the children of given Position. * @param p Position to check * @return an iterable Collection containing the children of given Position * @throws IllegalArgumentException if Position isn't valid */ Iterable<Position<E>> children(Position<E> p) throws IllegalArgumentException; /** * Returns an iterable Collection of all Positions of the tree. * @return an iterable Collection of all Positions of the tree. */ Iterable<Position<E>> positions(); /** * Returns an iterator for all elements in the tree. * Ensures tree itself is iterable. * @return an iterator for all elements in the tree */ @Override Iterator<E> iterator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TreeNode {\n Collection<TreeNode> getChildren();\n boolean isDirectory();\n}", "List<Node<T>> children();", "public interface Tree<T extends Comparable<T>> {\n public boolean isEmpty();\n\n public int size();\n\n public T min();\n\n public T max();\n\n public boolean contains(T element);\n\n public boolean add(T element);\n\n public boolean remove(T element);\n\n public Iterator<T> traverse(TreeTraversalOrder order);\n}", "public interface Node {\n\n\tLong getClsId();\n\n\tNode getParent();\n\n\tvoid setParent(Node p);\n\n\tNode[] getChildrenArray();\n\n\tList<Node> getChildrenList();\n\n\tvoid resetChildren(Node[] children);\n\n\tObject getValue(int attr);\n\n\tObject setValue(int attr, Object value);\n\n\tlong getLongValue(int attr);\n\n\tInteger getId();\n}", "public abstract List<Node> getChildNodes();", "@Override\n public List<TreeNode<N>> children() {\n return Collections.unmodifiableList(children);\n }", "public interface ITreeObject {\r\n\r\n\tpublic static final Object[] EMPTY_OBJECT_ARRAY = new Object[0]; \r\n\t/**\r\n\t * Returns immediate parent of this item\r\n\t * @return immediate parent item or null if this item has no parent or parent is unknown \r\n\t */\r\n\tObject getParent();\r\n\r\n\t/**\r\n\t * Tells if item has children \r\n\t * @return true if this item has children \r\n\t */\r\n\tboolean hasChildren();\r\n\t\r\n\t/**\r\n\t * Returns number of children \r\n\t * @return child count \r\n\t */\r\n\tint getChildCount();\r\n\t\r\n\t/**\r\n\t * Returns array of child items as generic Objects\r\n\t * @return array of child items or empty array if item has no children \r\n\t */\r\n\tObject[] getChildArray();\r\n}", "public static interface Node {\n int getValue();\n List<Node> getChildren();\n }", "public interface TreeNode{\r\n\t\r\n\t// enumerated node types\r\n\tpublic enum NodeType {\r\n\t\tMIN {\r\n\t\t\t@Override\r\n\t\t\tpublic NodeType opposite() {\r\n\t\t\t\treturn MAX;\r\n\t\t\t}\r\n\t\t}, MAX {\r\n\t\t\t@Override\r\n\t\t\tpublic NodeType opposite() {\r\n\t\t\t\treturn MIN;\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\tpublic abstract NodeType opposite();\r\n\t};\r\n\t\r\n\t// the type of node represented\r\n\tpublic NodeType getNodeType();\r\n\t\r\n\t// a possibly empty list of children\r\n\tpublic List<TreeNode> getChildrenNodes();\r\n\t\r\n\t// request a new child node after executing a move\r\n\tpublic TreeNode getChildNode(GameMove move) throws IllegalArgumentException;\r\n\t\r\n\t// the parent node of the current node\r\n\t// current Node == getParentNode for ROOT\r\n\tpublic TreeNode getParentNode();\r\n \r\n\t// whether the current node is the root node\r\n\tpublic Boolean isRootNode();\r\n \r\n\t// returns an object modeling some external state \r\n\tpublic GameState getGameState();\r\n \r\n\t// depth of node in tree\r\n\tpublic int getDepth();\r\n \r\n\t// evaluates/scores the leaf node\r\n\tpublic int scoreLeafNode();\r\n}", "public List<TreeNode> getChildrenNodes();", "public interface INode {\n INode[] children();\n INode getParent();\n void setParent(INode parent);\n INode copySubTree();\n INode copyWholeTree();\n String getNodeChar();\n void setChildren(INode[] newKids);\n void setNodeChar(String c);\n INode getRoot();\n boolean isRoot();\n Bit getBit();\n void setBit(Bit bit);\n void tellChildAboutParent();\n INode addBrackets();\n INode removeBrackets();\n String toPlainText();\n}", "Collection<DendrogramNode<T>> getChildren();", "Node[] getChildren(Node node);", "public TreeNodeImpl(@NonNull List<NodeData> children) {\n mChildren = new ArrayList<>(children.size());\n for (NodeData child : children) {\n TreeNodeImpl childNode = new TreeNodeImpl(child);\n childNode.mParent = this;\n mChildren.add(childNode);\n }\n }", "public Node[] getChildren(){return children;}", "public abstract int getNumChildren();", "public interface GNode{\n\n\tpublic String getName();\n\tpublic GNode[] getChildren();\n\tpublic ArrayList<GNode> walkGraph(GNode parent);\n\tpublic ArrayList<ArrayList<GNode>> paths(GNode parent);\n\n}", "public int getChildCount() {return children.size();}", "public interface Tree {\n\n //查找节点\n Node find(int val);\n\n //插入新节点\n boolean insert(int val);\n\n //中序遍历\n void infixOrder(Node current);\n\n //前序遍历\n void preOrder(Node current);\n\n //后序遍历\n void postOrder(Node current);\n\n //找到最大值\n Node findMax();\n\n //找到最小值\n Node findMin();\n\n //删除节点\n boolean delete(int val);\n\n}", "public interface Children {\n\t\n\tpublic void setChild(String children);\n\t\n\tpublic ArrayList<String> getChild();\n\n\tpublic void addChild(Profile children) throws NotToBeChildException;\n\t\n\tpublic void deleteChild(Profile children);\n}", "protected abstract List<T> getChildren();", "@Override\n\tpublic TreeNode[] getChildren() {\n\t\treturn this.children ;\n\t}", "public interface TreeProcessor<N extends TreeNode<N>> {\n\n /**\n * Will start the processing at the originating node\n * @param origin the node from which the processing will originate\n * @param processor the processor to run on each node\n */\n void process(N origin, TreeNodeProcessor<N> processor);\n\n}", "public interface Node {\n @Override\n String toString();\n\n void setValue(String value);\n\n void addAttribiute(String key1, String value);\n\n void addChild(Node child1);\n}", "@Override\n public int getNumChildren() {\n\t return this._children.size();\n }", "public interface TreeNodeValueModel<T>\r\n\textends WritablePropertyValueModel<T>\r\n{\r\n\r\n\t/**\r\n\t * Return the node's parent node; null if the node\r\n\t * is the root.\r\n\t */\r\n\tTreeNodeValueModel<T> parent();\r\n\r\n\t/**\r\n\t * Return the path to the node.\r\n\t */\r\n\tTreeNodeValueModel<T>[] path();\r\n\r\n\t/**\r\n\t * Return a list value model of the node's child nodes.\r\n\t */\r\n\tListValueModel<TreeNodeValueModel<T>> childrenModel();\r\n\r\n\t/**\r\n\t * Return the node's child at the specified index.\r\n\t */\r\n\tTreeNodeValueModel<T> child(int index);\r\n\r\n\t/**\r\n\t * Return the size of the node's list of children.\r\n\t */\r\n\tint childrenSize();\r\n\r\n\t/**\r\n\t * Return the index in the node's list of children of the specified child.\r\n\t */\r\n\tint indexOfChild(TreeNodeValueModel<T> child);\r\n\r\n\t/**\r\n\t * Return whether the node is a leaf (i.e. it has no children)\r\n\t */\r\n\tboolean isLeaf();\r\n\r\n}", "@Nonnull\n Iterable<? extends T> getChildren();", "public interface TreeInterface extends SymmetricDigraphInterface {\r\n /** Return parent of a tree node.\r\n * @precondition nonNull(node)\r\n */\r\n public IRNode getParent(IRNode node);\r\n\r\n /** The location is a value used by an IRSequence\r\n * to locate an element. For IRArray, it is an integer.\r\n * @precondition nonNull(node)\r\n */\r\n public IRLocation getLocation(IRNode node);\r\n\r\n /** Return the root of a subtree.\r\n */\r\n public IRNode getRoot(IRNode subtree);\r\n\r\n /** Return an enumeration of nodes in the subtree\r\n * starting with leaves and working toward the node given.\r\n * A postorder traversal.\r\n */\r\n public Iteratable<IRNode> bottomUp(IRNode subtree);\r\n\r\n /** Return an enumeration of nodes in the subtree\r\n * starting with this node and working toward the leaves.\r\n * A preorder traversal.\r\n */\r\n public Iteratable<IRNode> topDown(IRNode subtree);\r\n}", "public int getChildCount();", "public abstract int getMaxChildren();", "public interface BinNode<T> {\n\n /**\n * Returns the element in the node\n * @return the element in the node\n */\n public T getElement();\n \n /**\n * Changes the element of the node to the element provided\n * @param newvalue\n */\n public void setElement(T newvalue);\n \n /**\n * Returns the left child of the node\n * @return the left child\n */\n public BinNode<T> getLeft();\n \n /**\n * Returns the right child of the node\n * @return the right child\n */\n public BinNode<T> getRight();\n \n /**\n * Returns whether or not the node has any non-null children\n * @return whether the node is a leaf\n */\n public boolean isLeaf();\n \n}", "public int getChildCount()\n/* */ {\n/* 500 */ return this.children.size();\n/* */ }", "public interface TreeIterable<T> extends Iterable<T>{\n TreeIterator<T> iterator();\n}", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n public int getChildrenCount()\n {\n return children.getSubNodes().size();\n }", "public interface Node extends Serializable {\n\n\tvoid setOwner(Object owner);\n Object getOwner();\n\n String getName();\n Node getChild(int i);\n List<Node> childList();\n\n Node attach(int id, Node n) throws VetoTypeInduction;\n void induceOutputType(Class type) throws VetoTypeInduction;\n int getInputCount();\n\tClass getInputType(int id);\n List<Class> getInputTypes();\n Class getOutputType();\n Tuple.Two<Class,List<Class>> getType();\n\n Object evaluate();\n\n boolean isTerminal();\n\n <T extends Node> T copy();\n String debugString(Set<Node> set);\n}", "public ResultMap<BaseNode> listChildren();", "public interface TreeElementI extends Serializable\n{\n public void addChild(TreeElementI child);\n public String getId();\n public void setId(String id);\n public String getOutlineTitle();\n public void setOutlineTitle(String outlineTitle);\n public boolean isHasParent();\n public void setHasParent(boolean hasParent);\n public boolean isHasChild();\n public void setHasChild(boolean hasChild);\n public int getLevel();\n public void setLevel(int level);\n public boolean isExpanded();\n public void setExpanded(boolean expanded);\n public ArrayList<TreeElementI> getChildList();\n public TreeElementI getParent();\n public void setParent(TreeElementI parent);\n\n}", "public int numberOfChildren() {\n\t\tif(children == null) return 0;\n\t\telse return children.size();\n\t}", "public interface RMITreeNode extends Remote {\n\n\t/**\n\t * Set the father of the RMITreeNodeImpl. If it's set to null, the RMITreeNodeImpl becomes a root.\n\t * @param father The father of the RMITreeNodeImpl. If it's null, the RMITreeNodeImpl is a root.\n\t */\n\tpublic void setFather(RMITreeNode father) throws RemoteException;\n\t\n\tpublic void addChild(RMITreeNode child) throws RemoteException;\n\t\n\tpublic void removeChild(int index) throws RemoteException;\n\t\n\tpublic void removeChild(RMITreeNode child) throws RemoteException;\n\t\n\t/**\n\t * Remove every child of the RMITreeNode so it becomes a leaf.\n\t */\n\tpublic void clearChildren() throws RemoteException;\n\t\n\tpublic RMITreeNode getFather() throws RemoteException;\n\t\n\tpublic List<RMITreeNode> getChildren() throws RemoteException;\n\t\n\tpublic RMITreeNode getChild(int index) throws RemoteException;\n\t\n\tpublic String getName() throws RemoteException;\n\t\n\t/**\n\t * Return a String containing the trace of the propogation since its beginning.\n\t * @return The trace of the propogation.\n\t * @throws RemoteException\n\t */\n\tpublic String getTrace() throws RemoteException;\n\t\n\t/**\n\t * Give data as an array of byte to the RMITreeNode in order to propagate to the leaves of the tree.\n\t * @param data The data to propagate to the leaves of the tree.\n\t * @return The trace of the entire propagation.\n\t * @throws RemoteException\n\t */\n\tpublic String propagate(byte[] data) throws RemoteException;\n\t\n\t/**\n\t * Send data as an array of byte to every children of the RMITreeNode.\n\t * If the node is a leaf, put the message in the trace.\n\t * @param data An array of byte containing the data to send to the children.\n\t * @return The trace of the children receiving the data.\n\t * @throws RemoteException\n\t */\n\tpublic String sendDataToChildren(byte[] data) throws RemoteException;\n\n}", "protected int numChildren() {\r\n return 3;\r\n }", "List<HNode> getChildren(Long id);", "@Override\r\n\tpublic List<TreeNode> getChildren() {\n\t\tif(this.children==null){\r\n\t\t\treturn new ArrayList<TreeNode>();\r\n\t\t}\r\n\t\treturn this.children;\r\n\t}", "public Collection<ChildType> getChildren();", "public interface TreeNode {\r\n\r\n /**\r\n * Function to return Code of this node.\r\n *\r\n * @return Character that is the code that the node represents.\r\n */\r\n Character getCode();\r\n\r\n /**\r\n * Method to add a child to a Tree node. The method returns reference to the node that was just\r\n * added or the node with the entered code if it was already present.\r\n *\r\n * @param node a treenode with the code to be added to the intermediate node\r\n * @return an already existing tree node with given code or create a new tree node and return it.\r\n */\r\n TreeNode addChild(TreeNode node);\r\n\r\n /**\r\n * Given a node with a character code, return the node in the tree with the same code.\r\n *\r\n * @param node the node with character to be checked for in the tree.\r\n * @return the node with code equal to the code of the parameter passed.\r\n */\r\n TreeNode returnNode(TreeNode node);\r\n\r\n /**\r\n * Given a size, check if all nodes in the tree have number of children equal to the size passed.\r\n *\r\n * @param size the value to be checked against.\r\n * @return true or false according to if the check passes or fails.\r\n */\r\n boolean isCodeComplete(int size);\r\n}", "public abstract Graph getChildren(String parentHash);", "@Override\n\tpublic int getChildrenNum() {\n\t\treturn children.size();\n\t}", "public Node(int numberChildren){\n board = new Board();\n children = new Node[numberChildren];\n }", "@NotNull\n public abstract JBIterable<T> children(@NotNull T root);", "@FunctionalInterface\npublic interface TreeGenerator {\n /**\n * Constructs a new tree data structure.\n *\n * @param type\n * the required return type of the tree\n * @param depth\n * the maximum depth of any nodes of the tree\n * @return the newly created tree data structure\n */\n Node generate(Type type, int depth);\n}", "int childrenSize();", "@DISPID(4)\n\t// = 0x4. The runtime will prefer the VTID if present\n\t@VTID(10)\n\tcom.gc.IList children();", "Collection<Tree<V, E>> getTrees();", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "public Enumeration<Node> children() { return null; }", "@Override\n\tpublic List<Node> chilren() {\n\t\treturn children;\n\t}", "public interface MaximumDepthOfBinaryTree {\n int maxDepth(TreeNode root);\n}", "public ArrayList<Node> getChildren() { return this.children; }", "private static interface Node {\n\t\t/**\n\t\t * Set value to child node identified by given ID.\n\t\t * \n\t\t * @param childID child ID is a field name or array/list index.\n\t\t * @param value node value.\n\t\t * @throws ConverterException if value is primitive and fail to convert to field type.\n\t\t * @throws IllegalAccessException this exception is required by reflective field signature but never thrown.\n\t\t */\n\t\tvoid setValue(String childID, Object value) throws ConverterException, IllegalAccessException;\n\n\t\t/**\n\t\t * Returns child node identified by its ID or null if not found. A child ID is the field name or array/list index.\n\t\t * \n\t\t * @param childID child ID is a field name or array/list index.\n\t\t * @return child node or null.\n\t\t * @throws IllegalAccessException this exception is required by reflective field signature but never thrown.\n\t\t */\n\t\tNode getChild(String childID) throws IllegalAccessException;\n\t}", "ListValueModel<TreeNodeValueModel<T>> childrenModel();", "public interface BinaryTreeADT<T> extends Iterable<T>\n{\n//Returns the element stored in the root of the tree.\npublic T getRootElement();\n\n//Returns the left subtree of the root.\npublic BinaryTreeADT<T> getLeft();\n\n//Returns the right subtree of the root.\npublic BinaryTreeADT<T> getRight();\n\n//Returns true if the binary tree contains an element that\n//matches the specified element and false otherwise.\npublic boolean contains (T target);\n\n//Returns a reference to the element in the tree matching\n//the specified target.\npublic T find (T target);\n\n//Returns true if the binary tree contains no elements, and\n//false otherwise.\npublic boolean isEmpty();\n\n//Returns the number of elements in this binary tree.\npublic int size();\n\n//Returns the string representation of the binary tree.\npublic String toString();\n\n\n}", "public interface IChild<T extends IChild<T,ID>,ID extends Serializable> extends IIdable<ID> {\n List<T> getParents();\n\n default boolean isCanHaveParents() {\n return true;\n }\n default List<T> getAllParentsAndThis() {\n return Hierarchicals.getAllParents(true, (T) this);\n }\n\n default List<T> getAllParents() {\n return Hierarchicals.getAllParents((T) this);\n }\n\n default boolean isChildOf(Iterable<T> parents) {\n return Hierarchicals.isChildOf((T) this, parents);\n }\n\n default boolean isChildOf(T... parents) {\n return Hierarchicals.isChildOf((T) this, parents);\n }\n\n default boolean isChildOfId(Iterable<ID> parentIds) {\n return Hierarchicals.isChildOfId((IChild)this, parentIds);\n }\n\n default boolean isChildOfId(ID... parentIds) {\n return Hierarchicals.isChildOfId((IChild)this, parentIds);\n }\n default T getFirstParent() {\n return Iterables.getFirst(getParents(), (T) this);\n }\n default void setParents(List<T> childs) {\n throw new UnsupportedOperationException(getClass().getName() + \" method setParents not supported\");\n }\n\n}", "@Test\n\tpublic void testBuildTree() {\n\t\tTree<Integer> tree = new Tree<Integer> ();\n\t\t//add first level children, 1\n\t\tNode<Integer> root = tree.getRoot();\n\t\troot.addChild(new Node<Integer>());\n\t\tNode<Integer> c1 = root.getFirstChild();\n\t\tassertTrue(c1.getData() == null);\n\t\t//add second level children, 3\n\t\tc1.addChild(new Node<Integer> ());\n\t\tc1.addChild(new Node<Integer> ());\n\t\tc1.addChild(new Node<Integer> ());\n\t\tassertTrue(c1.countChildren() == 3);\n\t\t//add third level children, 3 * 3\n\t\tint[][] leafData = {\n\t\t\t\t{8,7,2},\n\t\t\t\t{9,1,6},\n\t\t\t\t{2,4,1}\n\t\t};\n\t\tNode<Integer> c2 = c1.getFirstChild();\n\t\tint i = 0;\n\t\twhile (c2 != null) {\n\t\t\tc2.addChild(new Node<Integer> (leafData[i][0]));\n\t\t\tc2.addChild(new Node<Integer> (leafData[i][1]));\n\t\t\tc2.addChild(new Node<Integer> (leafData[i][2]));\n\t\t\tc2 = c2.next();\n\t\t\ti++;\n\t\t}\n\t\tassertTrue(tree.countDepth() == 3);\n\t\tNode<Integer> leaf = root;\n\t\twhile (leaf.countChildren() > 0) {\n\t\t\tleaf = leaf.getFirstChild();\n\t\t}\n\t\tassertTrue(leaf.getData() == 8);\t\t\t\n\t}", "public XMLElement[] getChildren()\n/* */ {\n/* 532 */ int childCount = getChildCount();\n/* 533 */ XMLElement[] kids = new XMLElement[childCount];\n/* 534 */ this.children.copyInto(kids);\n/* 535 */ return kids;\n/* */ }", "ArrayList<Expression> getChildren();", "Iterable<Position<E>> children(Position<E> p) throws IllegalArgumentException;", "int numChildren(Position<E> p) throws IllegalArgumentException;", "int getNumberOfChildren(int nodeID){\n check(nodeID);\n return nodes_[nodeID].size_;\n }", "public int childrenSize()\r\n\t{\r\n\t\treturn this.children.size();\r\n\t}", "public interface TreeBuilder {\r\n\r\n\t/**\r\n\t * Creates the relationship for the give persons in the provided family with given relationshiptype.\r\n\t * @param rt\r\n\t * @param parentId\r\n\t * @param childId\r\n\t * @param familyId\r\n\t * @return - Relationship created with the given type in the given family for the given persons\r\n\t * @throws Exception\r\n\t */\r\n\tpublic Relationship createRelationship(RelationshipType rt, String parentId, String childId, String familyId) throws Exception;\r\n\t/**\r\n\t * Creates a family with given name.\r\n\t * @param name\r\n\t * @return - Family ID of the created family\r\n\t */\r\n\tpublic String createFamily(String name);\r\n\t/**\r\n\t * Provides any one person from the given family.\r\n\t * @param familyId\r\n\t * @return - Person ID from the given family\r\n\t */\r\n\tpublic String getFamilyPerson(String familyId);\r\n\t/**\r\n\t * Provides the Person Id of the root member of this family.\r\n\t * @param familyId\r\n\t * @return - Person ID of the root member in the family.\r\n\t */\r\n\tpublic String getFamilyRoot(String familyId);\r\n\t/**\r\n\t * Checks if the family exists with given ID.\r\n\t * @param familyId\r\n\t * @return boolean\r\n\t */\r\n\tpublic boolean isFamily(String familyId);\r\n}", "public LinkedList<Node> getChildren() { \r\n LinkedList<Node> nodes = new LinkedList<>();\r\n for(int i=0;i<=size;i++)\r\n nodes.add(children[i]);\r\n return nodes;\r\n }", "abstract public Collection<? extends IZipNode> getChildren();", "int getChildCount();", "@Override\r\n\tpublic List<Node> getChildren() {\r\n\t\treturn null;\r\n\t}", "public List<RealObject> getChildren();", "public ETreeNode(T userObject, Collection<ETreeNode<T>> children) {\n super(userObject);\n this.children = new Vector<>(children); // initialized (eager)\n }", "public List<TreeNode> getChildren ()\r\n {\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"getChildren of \" + this);\r\n }\r\n\r\n return children;\r\n }", "@Override\n\tpublic Set<HtmlTag> getChildren()\n\t{\n\t\tImmutableSet.Builder<HtmlTag> childrenBuilder = ImmutableSet.builder();\n\t\tfor(TreeNode<? extends HtmlTag> child : node.getChildren())\n\t\t{\n\t\t\tchildrenBuilder.add(child.getValue());\n\t\t}\n\t\treturn childrenBuilder.build();\n\t}", "public boolean getAllowsChildren() { return !isLeaf(); }", "public int getChildCount() { return data.length; }", "public static Node createLargeTree() {\n final int dcCount = 2;\n final int rackCount = 6;\n final int snCount = 6;\n final int hdCount = 12;\n\n int id = 0;\n // root\n Node root = new Node();\n root.setName(\"root\");\n root.setId(id++);\n root.setType(Types.ROOT);\n root.setSelection(Selection.STRAW);\n // DC\n List<Node> dcs = new ArrayList<Node>();\n for (int i = 1; i <= dcCount; i++) {\n Node dc = new Node();\n dcs.add(dc);\n dc.setName(\"dc\" + i);\n dc.setId(id++);\n dc.setType(Types.DATA_CENTER);\n dc.setSelection(Selection.STRAW);\n dc.setParent(root);\n // racks\n List<Node> racks = new ArrayList<Node>();\n for (int j = 1; j <= rackCount; j++) {\n Node rack = new Node();\n racks.add(rack);\n rack.setName(dc.getName() + \"rack\" + j);\n rack.setId(id++);\n rack.setType(StorageSystemTypes.RACK);\n rack.setSelection(Selection.STRAW);\n rack.setParent(dc);\n // storage nodes\n List<Node> sns = new ArrayList<Node>();\n for (int k = 1; k <= snCount; k++) {\n Node sn = new Node();\n sns.add(sn);\n sn.setName(rack.getName() + \"sn\" + k);\n sn.setId(id++);\n sn.setType(StorageSystemTypes.STORAGE_NODE);\n sn.setSelection(Selection.STRAW);\n sn.setParent(rack);\n // hds\n List<Node> hds = new ArrayList<Node>();\n for (int l = 1; l <= hdCount; l++) {\n Node hd = new Node();\n hds.add(hd);\n hd.setName(sn.getName() + \"hd\" + l);\n hd.setId(id++);\n hd.setType(StorageSystemTypes.DISK);\n hd.setWeight(100);\n hd.setParent(sn);\n }\n sn.setChildren(hds);\n }\n rack.setChildren(sns);\n }\n dc.setChildren(racks);\n }\n root.setChildren(dcs);\n return root;\n }", "private static TreeNode parseTreeNode(Scanner in)\n {\n int numberOfChildren = in.nextInt();\n int numberOfMetadata = in.nextInt();\n TreeNode newNode = new TreeNode(numberOfChildren, numberOfMetadata);\n\n // Recursively resolve children\n for (int i = 0; i < numberOfChildren; i++)\n {\n newNode.mChildren[i] = parseTreeNode(in);\n }\n\n // Now resolve the metadata by consuming tokens\n for (int i = 0; i < numberOfMetadata; i++)\n {\n newNode.mMetadata[i] = in.nextInt();\n }\n\n return newNode;\n }", "TreeStorage getTreeStorage();", "@Override public void setChildren(BTreeNode[] children) {\n this.children = children;\n }", "public void init$Children() {\n children = new ASTNode[3];\n setChild(new List(), 1);\n setChild(new Opt(), 2);\n }", "public void setChildren(List<State> aChildren);", "public int getChildCount() { return 0; }", "TreeNode addChild(TreeNode node);", "@FameProperty(name = \"numberOfChildren\", derived = true)\n public Number getNumberOfChildren() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "public JodeList children() {\n return new JodeList(node.getChildNodes());\n }", "public interface TreeNodeService {\n\n /**\n * Gets tree.\n * 根据parent_id 生成tree\n *\n * @param pid the pid\n * @param list the list\n * @return tree tree\n */\n List<TreeNode> getTree(long pid, List<TreeNode> list);\n\n}", "public abstract Map<String, ? extends FilesystemEntry> getChildren();", "public abstract void addChild(Node node);", "@Override\n public int getChildrenCount(String name)\n {\n return children.getSubNodes(name).size();\n }", "@Override\n\tpublic void setChildren(TreeNode[] children) {\n\t\tthis.children = (CourseTreeNode[])children;\n\t}", "public static void computeChildren() {\n\t\tArrayList<BNNode> children = new ArrayList<BNNode>();\n\t\t// For each node, build an array of children by checking which nodes have it as a parent.\n\t\tfor (BNNode node : nodes) {\n\t\t\tchildren.clear();\n\t\t\tfor (BNNode node2 : nodes) {\n\t\t\t\tif (node == node2)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor (BNNode node3 : node2.parents)\n\t\t\t\t\tif (node3 == node)\n\t\t\t\t\t\tchildren.add(node2);\n\t\t\t}\n\t\t\tnode.children = new BNNode[children.size()];\n\t\t\tnode.children = (BNNode[]) children.toArray(node.children);\n\t\t}\n\t}", "public Tree(T value, Tree<T> parent)\n {\n this.value = value;\n this.parent = parent;\n // initialize the empty arraylist of children\n children = new ArrayList<Tree<T>>();\n }", "public void setChildren(String children) {\n this.children = children;\n }" ]
[ "0.7310871", "0.7023373", "0.6913325", "0.6864791", "0.6827212", "0.6805656", "0.673913", "0.668663", "0.6686099", "0.66259325", "0.66056156", "0.6594922", "0.6582207", "0.65821236", "0.657973", "0.6483286", "0.63617414", "0.6349703", "0.63451475", "0.6343801", "0.633805", "0.6283877", "0.62530035", "0.62312156", "0.62211835", "0.6179779", "0.61599547", "0.61185753", "0.60583425", "0.60516655", "0.60423005", "0.603672", "0.6033757", "0.6031365", "0.6031365", "0.6031365", "0.60215414", "0.6017884", "0.60150206", "0.60148", "0.60093707", "0.59983325", "0.5985554", "0.5962679", "0.5957336", "0.59572726", "0.59549934", "0.5942053", "0.59403914", "0.59286827", "0.5924357", "0.5924084", "0.58713347", "0.5857588", "0.5849764", "0.5843461", "0.58430284", "0.5840868", "0.58364457", "0.5835942", "0.5810626", "0.5810206", "0.5794137", "0.57644254", "0.5761552", "0.57564294", "0.5752202", "0.5751387", "0.57460415", "0.5745665", "0.57320225", "0.5718008", "0.57162404", "0.571163", "0.5701838", "0.5696216", "0.56882447", "0.5685054", "0.56835264", "0.5670888", "0.5659438", "0.56580013", "0.5651449", "0.563777", "0.56348306", "0.5632566", "0.56314355", "0.5625859", "0.56181246", "0.5617454", "0.5615413", "0.56117964", "0.56039274", "0.55744386", "0.5572744", "0.55689", "0.55679053", "0.5556609", "0.5551189", "0.5548108" ]
0.6601628
11
accessor methods Returns the Position of the root of the tree.
Position<E> root();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getRoot() {\n return _root;\n }", "public int getRoot(){\n\t\t\treturn root;\n\t\t}", "public int getTreeIndex() {\n\t\treturn tree;\n\t}", "public int getRootX() {\n return this.mX + this.mOffsetX;\n }", "public abstract Position<E> getLeftRoot();", "public int getRootValue() {\n if (root == null) {\n return 0;\n } else {\n return root.getValue();\n }\n }", "private SourcePosition getTreeStartLocation() {\n return peekToken().location.start;\n }", "public TreeNode root() {\n\t\treturn root;\n\t}", "public Node getRoot(){\r\n return this.root;\r\n }", "public int getPos()\n {\n return pos;\n }", "public long position() {\n return _pos;\n }", "public Pos getPos()\r\n\t{\r\n\t\treturn position;\r\n\t}", "public int getPos()\n {\n return pos;\n }", "public int jumlahNode() {\n return jumlahNode(root);\n }", "private Position<E> firstLeaf(){\n\t\tPosition<E> aux=null;\n\t\tif(tree.isEmpty())\n\t\t\treturn aux;\n\t\telse\n\t\t\taux=tree.root();\n\t\twhile(this.tree.hasLeft(aux)){\n\t\t\taux=tree.left(aux);\n\t\t}\n\t\treturn aux;\n\t}", "@Override\n\tpublic Position getPosition() {\n\t\treturn this.posn;\n\t}", "public long getPos()\n\t{\n\t\treturn -1;\n\t}", "public TreeNode<E> getRoot() {\n return root;\n }", "public Node getRoot() {\n return root;\n }", "@Override\n\tpublic D3int getPos() {\n\t\treturn myPos;\n\t}", "public T rootValue() {\n if (root == null) throw new IllegalStateException(\"Empty tree has no root value\");\n return root.value;\n }", "public Node getRoot() {\n return root;\n }", "public Node getRoot() {\n return root;\n }", "public Node getRoot() {\n return root;\n }", "protected BSTNode root() {\n\t\treturn root;\n\t}", "public Integer getPosition() {\n return this.position;\n }", "public TreeNode<E> getRoot() {\r\n\t\treturn root;\r\n\t}", "public TreeNode getLeft() {\n\t\treturn left;\n\t}", "public Node getRoot() {\r\n\r\n\t\treturn root;\r\n\t}", "public int getPosX() {\n return posX;\n }", "public java.lang.Integer getPosition() {\n return position;\n }", "public AVLNode getRoot() {\n return root;\n }", "public ObjectTreeNode getRoot() {\n return root;\n }", "public IAVLNode getRoot() {\n\t\treturn this.root;\n\t}", "public WAVLNode getRoot()\r\n\t {\r\n\t\t return this.root;\r\n\t }", "public java.lang.Integer getPosition() {\n return position;\n }", "public IntegerTulep getPosition() {\n return position;\n }", "public Position getPosition()\n\t{\n\t\treturn position;\n\t}", "public Integer getPosition() {\n return position;\n }", "public int getPosX() {\r\n\t\treturn posX;\r\n\t}", "@Override\n\tpublic int getPos() {\n\t\treturn 0;\n\t}", "public Integer getPosition()\n {\n return position;\n }", "public int getPosition()\n\t{\n\t\treturn position;\n\t}", "public int getPosX() {\n\t\treturn posX;\n\t}", "public int position() {\n return pos;\n }", "@Override\n public Optional<Position> getPosition() {\n return this.pos;\n }", "public int parentInode() { return ROOT_INODE; }", "public Position getPosition() {\n\t\treturn position;\n\t}", "public int getPosition() {\r\n\t\treturn position;\r\n\t}", "public int getPosition()\r\n {\r\n return position;\r\n }", "protected IsamIndexNode getRoot() {\n\t\treturn root;\n\t}", "public Object getRoot(){\r\n\t\treturn _root;\r\n\t}", "public short getRootEntCnt() {\r\n\t\treturn rootEntCnt;\r\n\t}", "public int getXPosition() {\n return this.xPosition;\n }", "protected TreeNode<E> getRoot() {\n\t\treturn root;\n\t}", "public int getAbsoluteX() {\r\n return getAbsoluteLeft() - getParent().getAbsoluteLeft();\r\n }", "public double getXPos() {\n\t\treturn this.position[0];\n\t}", "public int getLeft(int position) {\r\n\t\treturn this.treeLeft[position];\r\n\t}", "@Override\n public double getPosX() {\n return this.pos[0];\n }", "public int getPosition() {\r\n return position;\r\n }", "public Position getPosition(){\n return this.position;\n }", "public int getX() {\n return posX;\n }", "public Node<T> getRoot() {\n return root;\n }", "public int getLeft() {\n\t\treturn left;\n\t}", "public AVLNode<T> getRoot() {\n return root;\n }", "public Position getPosition() {\n return this.position;\n }", "public int getPosX(){\n\t\treturn this.posX; \n\t}", "public Node<T> getRoot() {\n\t\treturn root;\n\t}", "public int getX() {\n return positionX;\n }", "private double getPosX() {\n\t\treturn this.posX.get();\n\t}", "public final int getPosition() {\n return position;\n }", "public RBNode<T, E> getRoot() {\r\n\t\treturn root;\r\n\t}", "public int getXPosition()\n {\n return xPosition;\n }", "public int getXPosition()\n {\n return xPosition;\n }", "public int getPosition() {\n return position;\n }", "public int getPosition() {\n return position;\n }", "public int getPosition() {\n return position;\n }", "public P getInitialPosition() {\n return mInitialPosition;\n }", "public P getInitialPosition() {\n return mInitialPosition;\n }", "public P getInitialPosition() {\n return mInitialPosition;\n }", "public int getX() { return position.x; }", "public int getXPosition() {\n return xPosition;\n }", "public int getPosition() {\n return position;\n }", "public int xPos() {\r\n\t\treturn this.xPos;\r\n\t}", "public int xPos() {\r\n\t\treturn this.xPos;\r\n\t}", "public MoveTrieNode getRoot() {\n return root;\n }", "public int getLeft() {\n\t\treturn this.left;\n\t}", "public TreeNode getLeft(){ return leftChild;}", "public Position getPosition() {\n return position;\n }", "public Position getPosition() {\n return position;\n }", "public Position getPosition() {\n return position;\n }", "public Position getPosition() {\n return position;\n }", "public Position getPosition() {\n return position;\n }", "public Position getPosition() {\n return position;\n }", "@Override\n\tpublic int getPosX() {\n\t\treturn posX;\n\t}", "public Integer getRoot(){\n\t\tif(root != null) {\n\t\t\treturn root.element;\n\t\t}\n\t\treturn null;\n\t}", "public int getXPosition(){\n\t\treturn xPosition;\n\t}", "public Integer getPositionnum() {\n\t\treturn positionnum;\n\t}", "public pt.ist.fenixframework.adt.bplustree.AbstractNodeArray getRoot() {\n return this.root.get();\n }", "public WAVLNode getRoot() // return the root of the tree\r\n {\r\n return root;\r\n }" ]
[ "0.7333948", "0.72187614", "0.71009237", "0.70257115", "0.70037097", "0.68907386", "0.6855207", "0.6825128", "0.6650911", "0.6613078", "0.6608307", "0.6584728", "0.6547098", "0.65444684", "0.65285736", "0.65037864", "0.6493481", "0.6465519", "0.64422894", "0.64208525", "0.64138776", "0.6412471", "0.6412471", "0.6412471", "0.64063245", "0.639783", "0.6395027", "0.63879335", "0.63763", "0.6362937", "0.6361565", "0.635617", "0.6354578", "0.63455516", "0.63385075", "0.6334343", "0.6334222", "0.63160735", "0.63016236", "0.6297421", "0.62961245", "0.6295238", "0.62908196", "0.62831604", "0.62786293", "0.62773585", "0.627548", "0.62657505", "0.62573874", "0.62519497", "0.6247118", "0.6243148", "0.62381154", "0.6238077", "0.6235717", "0.62316906", "0.6227288", "0.62250006", "0.6223527", "0.62154937", "0.62153494", "0.620847", "0.62061906", "0.6205318", "0.6203473", "0.61998284", "0.6192287", "0.6190578", "0.6186951", "0.61843324", "0.6183861", "0.61702436", "0.61701083", "0.61701083", "0.6169556", "0.6169556", "0.6169556", "0.61693466", "0.61693466", "0.61693466", "0.61674505", "0.6165599", "0.61613417", "0.6158153", "0.6158153", "0.6157236", "0.6153355", "0.61507326", "0.6149841", "0.6149841", "0.6149841", "0.6149841", "0.6149841", "0.6149841", "0.6148842", "0.6148055", "0.6138735", "0.6133792", "0.6129062", "0.6128252" ]
0.7146111
2
Returns the Position of the parent of given Position.
Position<E> parent(Position<E> p) throws IllegalArgumentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int Parent(int position) {\r\n\t\treturn position/2;\r\n\t}", "public abstract Position<E> getLeftParent(Position<E> p);", "private int parent ( int pos )\n\t{\n\t\treturn -1; // replace this with working code\n\t}", "private int parent(int pos)\n {\t\n return (int)Math.ceil((double)Math.max(0, pos-2)/2);\n }", "public int getParentId() {\r\n\t\treturn parentId;\r\n\t}", "public abstract Position<E> getRightParent(Position<E> p);", "private int getParentIdx(int pos) {\n return (pos - 1) / 2;\n }", "public java.lang.Long getParentId() {\n return parentId;\n }", "public ParseTreeNode getParent() {\r\n return _parent;\r\n }", "public int getParent();", "public Long getParentId() {\n return parentId;\n }", "public Long getParentId() {\n return parentId;\n }", "public Long getParentId() {\n return parentId;\n }", "public Long getParentId() {\n return parentId;\n }", "public Integer getParentId() {\n return parentId;\n }", "public Integer getParentId() {\n return parentId;\n }", "public Integer getParentId() {\n return parentId;\n }", "public VRL getParentLocation()\n {\n \tif (this.getVRL()==null)\n \t\treturn null; \n \t\n \treturn this._nodeVRL.getParent();\n }", "public long getParentId()\n {\n return parentId;\n }", "public abstract Position<E> getLeftChild(Position<E> p);", "public Long getParentId() {\n return this.parentId;\n }", "public int getParentID() {\n\t\treturn _parentID;\n\t}", "public int getParentNode(){\n\t\treturn parentNode;\n\t}", "private int parent(int index) {\n // Formula to calculate the index of the parent node\n return Math.floorDiv(index - 1, d);\n }", "public int getParentID() {\n\t\treturn parentID;\n\t}", "public final Integer indexInParent() {\n Container p = getParent();\n return p==null ? null : p.indexOf(this);\n }", "public Position getPosition()\n\t{\n\t\treturn position;\n\t}", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public Optional<NamespaceId> getParentId() {\n return parentId;\n }", "public Position getPosition() {\r\n\t\treturn new Position(this.position.getX(), this.position.getY());\r\n\t}", "public Integer getParentid() {\n\t\treturn parentid;\n\t}", "Position getPosition();", "Position getPosition();", "public int get_parentId() {\n return (int)getUIntBEElement(offsetBits_parentId(), 16);\n }", "public Position getPosition() {\n\t\treturn position;\n\t}", "public Point getLocationInParentWindow() {\n return this.mLocationInParentWindow;\n }", "public VNode getParent() throws VlException\n {\n VRL pvrl=getParentLocation(); \n \n if (pvrl==null)\n \treturn null; \n \n return vrsContext.openLocation(getParentLocation());\n }", "public String getParentId() {\n return getParent() != null ? getParent().getId() : null;\n }", "public java.lang.Integer getParentId();", "public String getParent() {\n return _theParent;\n }", "public int Parent() { return this.Parent; }", "public CompositeObject getParent(\n )\n {return (parentLevel == null ? null : (CompositeObject)parentLevel.getCurrent());}", "public Pos getPos()\r\n\t{\r\n\t\treturn position;\r\n\t}", "public Position getPosition() {\n return position;\n }", "public Position getPosition() {\n return position;\n }", "public Position getPosition() {\n return position;\n }", "public Position getPosition() {\n return position;\n }", "public Position getPosition() {\n return position;\n }", "public Position getPosition() {\n return position;\n }", "public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }", "@Override\n\tpublic Position getPosition() {\n\t\treturn this.posn;\n\t}", "public CompoundExpression getParent()\r\n\t\t{\r\n\t\t\treturn _parent;\r\n\t\t}", "public Position getPosition() {\n return this.position;\n }", "public Integer getParentLocationId() {\n return parentLocationId;\n }", "public Coordinate getPosition() {\n return cPosition;\n }", "public interface Parent {\n \n /**\n * Get start offset of the child with the given index.\n * <br>\n * The child can be either flyweight or regular view.\n *\n * @param childViewIndex &gt;=0 index of the child.\n * @return start offset of the requested child.\n */\n public int getStartOffset(int childViewIndex);\n \n /**\n * Get end offset of the child with the given index.\n * <br>\n * The child can be either flyweight or regular view.\n *\n * @param childViewIndex &gt;=0 index of the child.\n * @return start offset of the requested child.\n */\n public int getEndOffset(int childViewIndex);\n \n }", "private int parentIdx(int idx) {\r\n // TODO\r\n return -1;\r\n }", "public String getParent() {\n return _parent;\n }", "public final Optional<Position> getPosition() {\n return position;\n }", "@DISPID(53)\r\n\t// = 0x35. The runtime will prefer the VTID if present\r\n\t@VTID(58)\r\n\tint parentID();", "CoreParentNode coreGetParent();", "@Override\n public Position getPosition() {\n return position;\n }", "public Position getPosition(){\n return this.position;\n }", "public java.lang.Integer getPosition() {\n return position;\n }", "public int getParent_id() {\n return this.parent_id;\n }", "public final int getPosition() {\n return position;\n }", "public TreeNode getParent()\n {\n return mParent;\n }", "public Integer getMenuParentId() {\n\t\tif (getParentMenu() != null) {\n\t\t\treturn getParentMenu().getMenuId();\n\t\t}\n\t\treturn null;\n\t}", "public Integer getParentTid() {\r\n return parentTid;\r\n }", "public Optional<Cause> getParent() {\n return this.parent;\n }", "public Position getPosition();", "public Position getPosition();", "public Position getPosition();", "public int getAbsoluteX() {\r\n return getAbsoluteLeft() - getParent().getAbsoluteLeft();\r\n }", "public Entity getParent() {\n return parent;\n }", "public EventNode getParent() {\n\t\treturn parent;\n\t}", "public String getParent() {\n return parent;\n }", "public String getParent() {\r\n return this.parent;\r\n }", "public static int parentIdx(int nodeIdx) {\n\t\treturn ((nodeIdx - 1) / 2);\n\t}", "private int getParent(int parentIndex) {\n\t\tStatisticsLog statisticsLog = messageFlowLogs.get(parentIndex);\n\t\twhile (!statisticsLog.isOpenLog()) {\n\t\t\tstatisticsLog = messageFlowLogs.get(statisticsLog.getParentIndex());\n\t\t}\n\t\treturn statisticsLog.getCurrentIndex();\n\t}", "public java.lang.Integer getPosition() {\n return position;\n }", "public String getParent() {\r\n return parent;\r\n }", "public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}", "public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}", "@DISPID(84)\r\n\t// = 0x54. The runtime will prefer the VTID if present\r\n\t@VTID(82)\r\n\tint parentID();", "public Object getParent()\n {\n return traversalStack.get(traversalStack.size() - 2);\n }", "public TreeNode getParent()\r\n\t{\r\n\t\treturn m_parent;\r\n\t}", "public int getPosition() {\r\n\t\treturn position;\r\n\t}", "public Point getPosition()\n\t{\n\t\treturn pos;\n\t}", "public long getParentCode() {\n return parentCode;\n }", "public CompoundExpression getParent (){\n return _parent;\n }", "public Integer getPosition() {\n return position;\n }" ]
[ "0.76465875", "0.702264", "0.70076305", "0.68443805", "0.642391", "0.641039", "0.6396616", "0.6349345", "0.63427705", "0.6330353", "0.6324198", "0.6324198", "0.6324198", "0.6324198", "0.62999535", "0.62999535", "0.62999535", "0.6288638", "0.6275332", "0.6218232", "0.6199318", "0.61975366", "0.61754954", "0.6157461", "0.6151931", "0.6128217", "0.61159426", "0.61157316", "0.61157316", "0.61157316", "0.61157316", "0.61157316", "0.61157316", "0.61157316", "0.61157316", "0.61157316", "0.61102563", "0.61102426", "0.610184", "0.6100172", "0.6100172", "0.609822", "0.60748905", "0.60552996", "0.60526645", "0.6041997", "0.60326946", "0.60172737", "0.60097617", "0.60067266", "0.59931535", "0.5990332", "0.5990332", "0.5990332", "0.5990332", "0.5990332", "0.5990332", "0.59882617", "0.5981872", "0.598066", "0.59758943", "0.5970457", "0.5964111", "0.5957341", "0.5955093", "0.59530365", "0.59488946", "0.59355474", "0.5932577", "0.5927611", "0.59267104", "0.5924897", "0.59238994", "0.592337", "0.5920117", "0.59194", "0.5916009", "0.591517", "0.5907084", "0.5907084", "0.5907084", "0.59069586", "0.58901817", "0.5889556", "0.5889325", "0.5887418", "0.58859426", "0.5883501", "0.5880959", "0.58796036", "0.58791214", "0.58791214", "0.5878375", "0.5862169", "0.58600134", "0.5847697", "0.58430046", "0.584174", "0.584108", "0.5840394" ]
0.70302945
1
Returns the number of children of given Position.
int numChildren(Position<E> p) throws IllegalArgumentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getChildrenCount(int groupPosition) {\n return getGroup(groupPosition).getChildrenCount();\n }", "@Override\n\tpublic int getChildrenCount(int groupPosition) {\n\t\treturn listChildren.get(listTitles.get(groupPosition)).size();\n\t}", "@Override\n public int getChildrenCount(int groupPosition) {\n return children[groupPosition].length;\n }", "public int getChildCount() {\r\n if (_children == null) {\r\n return 0;\r\n }\r\n return _children.size();\r\n }", "public int countChildren() {\n return this.children.size();\n }", "public int countChildren() {\n return this.children.size();\n }", "public int getChildCount() {\n return this.children.size();\n }", "public int numberOfChildren() {\n\t\tif(children == null) return 0;\n\t\telse return children.size();\n\t}", "public int getChildCount() {return children.size();}", "@Override\n public int getChildrenCount(int groupPosition)\n {\n return children.get(headers.get(groupPosition)).size();\n }", "public int getChildCount();", "int getChildCount();", "public int getChildCount()\n {\n return mChildren.length; // The indexes and constraints\n }", "int childCount(){\n return this.children.size();\n }", "public int childrenSize()\r\n\t{\r\n\t\treturn this.children.size();\r\n\t}", "@Override\n public int getNumChildren() {\n\t return this._children.size();\n }", "@Override\n\tpublic int getChildrenNum() {\n\t\treturn children.size();\n\t}", "@DISPID(11)\n\t// = 0xb. The runtime will prefer the VTID if present\n\t@VTID(20)\n\tint childrenCount();", "public abstract int getNumChildren();", "@Override\n\tpublic int getChildrenCount(int sectionPosition) {\n\t\treturn sections.get(sectionPosition).getArrayChildren().size();\n\t}", "@Override\n public int getChildrenCount()\n {\n return children.getSubNodes().size();\n }", "int childrenSize();", "int getChildrenCount(int groupPosition);", "public int getChildCount () {\n return childCount;\n }", "public int getChildCount()\n/* */ {\n/* 500 */ return this.children.size();\n/* */ }", "public int getLengthOfChildren() {\n int length = 0;\n IBiNode childTmp;\n\n if (this.child != null) {\n // length of first child\n length += this.child.getLength();\n\n childTmp = this.child.getSibling();\n while (childTmp != null) {\n // length of 2nd - nth children\n length += childTmp.getLength();\n childTmp = childTmp.getSibling();\n }\n\n }\n\n return length;\n }", "@Override\n public final int size() {\n return children.size();\n }", "@Override\r\n public int getChildrenCount(int groupPosition) {\n return mDataList.get(\"\" + groupPosition).size();\r\n }", "public int getChildCount(int groupPosition) {\n if (groupPosition < mGroupDataList.size()) {\n return mChildDataList.get(groupPosition) == null ? 0 : mChildDataList.get(groupPosition).size();\n }\n return 0;\n }", "@Override\n public int getChildrenCount(String name)\n {\n return children.getSubNodes(name).size();\n }", "@Override\r\n\tpublic int getChildrenCount(int groupPosition) {\n\t\treturn musicMap.get(arrSongHeader.get(groupPosition)).size();\r\n\t}", "public int getTotalChildren() {\n\t\treturn _nTotalChildren;\n\t}", "public int shapeCount()\n {\n // return the number of children in the list\n return children.size();\n }", "@Override\n\tpublic int size() {\n\t\tmodCount = root.numChildren();\n\t\treturn modCount;\n\t}", "@Override\r\n\tpublic int getChildrenCount(int groupPosition) {\n\t\treturn 0;\r\n\t}", "public int size() {\r\n\t\tint i = 0;\r\n\t\tif (this.value != 0) {\r\n\t\t\ti++;\r\n\t\t\tif(this.leftChild != null) {\r\n\t\t\t\ti = i + this.leftChild.size();\r\n\t\t\t}\r\n\t\t\tif(rightChild != null){\r\n\t\t\t\ti = i + this.rightChild.size();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn i; \r\n\t}", "@Override\n\t\tpublic int getChildrenCount(int groupPosition) {\n\t\t\treturn 1;\n\t\t}", "public int order()\n\t{\n\t\treturn null == _children ? 0 : _children.size();\n\t}", "public int size() {\n int count = terminal ? 1 : 0;\n for (Set<String> child : children)\n if (child != null) count += child.size();\n return count;\n }", "protected int numChildren() {\r\n return 3;\r\n }", "private int numChildren(int index){\n\t\t\n\t\tint children = 0;\n\t\t\n\t\tif((index*2) + 1 <= this.currentSize){\n\t\t\tif(array[(index * 2) + 1] != null){\n\t\t\t\tchildren++;\n\t\t\t}\n\t\t}\n\t\tif((index*2) + 1 <= this.currentSize){\n\t\t\tif(array[(index * 2) + 2] != null){\n\t\t\t\tchildren++;\n\t\t\t}\n\t\t}\n\t\treturn children;\n\t}", "public StringWithCustomFacts getNumChildren() {\n return numChildren;\n }", "int getNumberOfChildren(int nodeID){\n check(nodeID);\n return nodes_[nodeID].size_;\n }", "@Override\n\tpublic int getChildrenCount(int groupPosition) {\n\t\treturn 1;\n\t}", "public Integer GetNumOfChild() {\n\t\treturn this.ChildSMILES.size();\n\t}", "public int getAccessibleChildrenCount() {\n try {\n return unoAccessibleContext.getAccessibleChildCount();\n } catch (com.sun.star.uno.RuntimeException e) {\n return 0;\n }\n }", "public int getChildCount() { return data.length; }", "public int getChildCount() { return 0; }", "@Override\n\tpublic int size() {\n\t\tint s = valCount; // saves value of current node\n\t\tfor (int i = 0; i < childCount; ++i) { // then checks all children\n\t\t\ts += children[i].size();\n\t\t}\n\t\treturn s;\n\t}", "public int size() {\n return tree.count();\n }", "@Override\n\t\tpublic int getChildrenCount(int groupPosition) {\n\t\t\treturn data.get(groupPosition).getKeys().size();\n\t\t}", "abstract long calculateChildCount() throws TskCoreException;", "@FameProperty(name = \"numberOfChildren\", derived = true)\n public Number getNumberOfChildren() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "private int getNumberOfChildren(String elemId) {\n return selenium.getXpathCount(\"//*[@id='\" + elemId + \"']/*\").intValue();\n }", "public int childListCount() // 페이징, 검색 뺐음, A반 기준 -> 나중에 반 생성 시 변경하기. ★학부모 정보 제외함 (회원가입안할 시 에러)\r\n\t\t\tthrows Exception {\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tint result = 0;\r\n\r\n\t\ttry {\r\n\t\t\tconn = getConnection();\r\n\r\n\t\t\tpstmt = conn.prepareStatement(\"select count(child_num) from child where child_class = 'A'\");\r\n\t\t\trs = pstmt.executeQuery();\r\n\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tresult = rs.getInt(1);\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (rs != null)\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t}\r\n\t\t\tif (pstmt != null)\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpstmt.close();\r\n\t\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t}\r\n\t\t\tif (conn != null)\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public static int size(Node root){\r\n int count = 0;\r\n for(int i=0; i<root.children.size(); i++){\r\n Node child = root.children.get(i);\r\n count += size(child);\r\n }\r\n return count + 1;\r\n }", "public int size() {\n\t\treturn root.count();\n\t}", "public final int size() {\r\n return sequentialSize(root);\r\n }", "public @Override int getViewCount() {\n return getChildren().getChildCount();\n }", "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 int getChildCount(V vertex);", "public int size() {\n return size(root);\n }", "public int size() {\n return size(root);\n }", "public int size() {\n\t\treturn size(root);\n\t}", "public int size() {\n\t\treturn size(root);\n\t}", "public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }", "Iterable<Position<E>> children(Position<E> p) throws IllegalArgumentException;", "public int size() {\n\t\t// TODO\n\t\treturn size(root);\n\t}", "@Override\r\n\tpublic int getNumberOfNodes() {\r\n\t\tint contador = 0;// Contador para el recursivo\r\n\t\treturn getNumberOfNodesRec(contador, raiz);\r\n\t}", "public int size() \r\n\t{\r\n\t\treturn size(root);\r\n\t}", "private static int getNumChildren() {\n Scanner input = new Scanner(System.in);\n\n System.out.print(\"Enter number of children: \");\n int numChildren = input.nextInt();\n return numChildren;\n }", "public int getAncestorCount() { return _parent!=null? getParent().getAncestorCount() + 1 : 0; }", "public int size(){\n return size(root);\n }", "@Override\n public int getNumberOfNodes() {\n int numNodes = 0;\n\n if (!isEmpty()) {\n numNodes = root.getNumberOfNodes();\n }\n\n return numNodes;\n }", "@Override\n public int getChildrenCount(int groupPosition) {\n return 1;\n }", "@Override\n public int getChildrenCount(int groupPosition) {\n return 1;\n }", "public int size() \n {\n return size(root);\n }", "public int getRowCount()\n {\n // Get level of the node to be displayed\n int rowCount = displayNode.getLevel();\n \n // Add number of children\n rowCount = rowCount + displayNode.getChildCount();\n \n // Increment by 1 if the root node is being displayed\n if (rootVisible) \n { \n rowCount++; \n }\n \n // Return number of rows\n return rowCount;\n }", "public int size() {\r\n int count = 0;\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] != null) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n }", "public abstract int getMaxChildren();", "public int size() {\n return root.getNumberOfTerminalsInSubTree();\n }", "@Override\r\n\tpublic int getNumberOfDescendants(Node<T> node) {\r\n\t\tif (node.getChildren() != null) {// Si tiene hijos\r\n\t\t\treturn (node.getChildren()).size();// El tamaņo de la lista de hijos\r\n\t\t}\r\n\t\treturn 0; // Si no tiene entonces 0\r\n\t}", "public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(root);\r\n }", "public int size()\n {\n return _root.size();\n }", "public int size(){\n if(root!=null){ // มี node ใน tree\n return size(root);\n }\n else{\n return 0; // tree เปล่า size 0\n }\n }", "public int getAllChildrenNumber(String path) throws KeeperException.NoNodeException {\n return dataTree.getAllChildrenNumber(path);\n }", "public int nodeCount(){\r\n\t\treturn size;\r\n\t}", "public int numberOfNodes() {\n return numberOfNodes(root);\n }", "@Override\n public int getChildrenCount() {\n return 1 + mRecentTabsManager.getRecentlyClosedEntries().size();\n }", "protected int count(Position<Item<E>> p) {\n return p.getElement().getCount();\n }", "public int getPosSize() {\n\t\treturn this.pos.size();\n\t}", "public int nodesCount() {\n return nodes.size();\n }", "public int nodeCount() {\n return this.root.nodeCount();\n }", "@Override\n public int getChildrenCount(int groupPosition) {\n return 1;\n }", "int size()\r\n\t{\r\n\t\treturn size(root);\r\n\t}", "public int countNodes(){\r\n \treturn count(root);\r\n }", "public int size()\r\n\t {\r\n\t\t if(root == null)\r\n\t\t {\r\n\t\t\t return 0;\r\n\t\t }\r\n\t\t return root.getSubTreeSize();\r\n\t }", "public int getBoundContainerElementCount() {\n return nestedElements.size();\n }", "@Override\n\tpublic int size() {\n\t\treturn size(root);\n\t}", "@Override\n public int size() {\n return size(root); }" ]
[ "0.75601965", "0.754064", "0.7535502", "0.75138605", "0.749001", "0.7483975", "0.74751234", "0.7457917", "0.73712796", "0.7330825", "0.7322761", "0.7282955", "0.7276247", "0.72332424", "0.7219335", "0.72018665", "0.7201855", "0.7201291", "0.72000617", "0.71338403", "0.7128475", "0.7108896", "0.70940065", "0.7000183", "0.6982898", "0.69759536", "0.69659287", "0.69264627", "0.68568873", "0.68446654", "0.67864734", "0.6722185", "0.66916585", "0.6612827", "0.6589879", "0.6582355", "0.655687", "0.6537108", "0.6527387", "0.6453573", "0.64424783", "0.6425306", "0.640301", "0.6379962", "0.6342108", "0.6336584", "0.6294923", "0.6278968", "0.627216", "0.62376046", "0.62343067", "0.6217285", "0.61546844", "0.6091988", "0.6084091", "0.60679287", "0.60634214", "0.6062064", "0.60375255", "0.59682834", "0.5947517", "0.59359646", "0.59359646", "0.5935375", "0.5935375", "0.5927285", "0.59156847", "0.59053695", "0.58942467", "0.5880362", "0.5879333", "0.58509064", "0.5837337", "0.5821573", "0.5815421", "0.5815421", "0.58055735", "0.57811016", "0.5774418", "0.57659847", "0.5760291", "0.575671", "0.57460535", "0.5739448", "0.5720437", "0.5718369", "0.5717831", "0.5706132", "0.57032514", "0.5688675", "0.5687301", "0.56866205", "0.5677458", "0.5674866", "0.56746304", "0.56741256", "0.5671145", "0.5667507", "0.5662909", "0.56587046" ]
0.7560726
0
Returns the number of positions (and therefore elements) that are contained in tree.
int size();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size() {\r\n int count = 0;\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] != null) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n }", "public int nodesInTree() \n { \n return nodesInTree(header.rightChild); \n }", "public int size() {\n return tree.count();\n }", "public int size() {\n return this.treeSize - this.unusedTreeIndices.size();\n }", "public int size() \r\n\t{\r\n\t\treturn size(root);\r\n\t}", "int size()\r\n\t{\r\n\t\treturn size(root);\r\n\t}", "public int size()\n {\n return _root.size();\n }", "public int size(){\n return size(root);\n }", "private int getVariablesNumberInTree() {\n\t\tList<Node> l = getFirstLevelSubnodes();\n\n\t\treturn l != null ? l.size() : 0;\n\t}", "public int size() {\r\n\t\tint i = 0;\r\n\t\tif (this.value != 0) {\r\n\t\t\ti++;\r\n\t\t\tif(this.leftChild != null) {\r\n\t\t\t\ti = i + this.leftChild.size();\r\n\t\t\t}\r\n\t\t\tif(rightChild != null){\r\n\t\t\t\ti = i + this.rightChild.size();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn i; \r\n\t}", "public int size() {\n\t\treturn size(root);\n\t}", "public int size() {\n\t\treturn size(root);\n\t}", "public int size() \n {\n return size(root);\n }", "public int size() {\n\t\t// TODO\n\t\treturn size(root);\n\t}", "public int size() {\n if(root == null){\n return 0;\n }\n else{\n return 1 + size(root.lc) + size(root.rc);\n }\n }", "int count() {\n\t\tArrayList<Integer> checked = new ArrayList<Integer>();\r\n\t\tint count = 0;\r\n\t\tfor (int x = 0; x < idNode.length; x++) {// Order of N2\r\n\t\t\tint rootX = getRoot(x);\r\n\t\t\tif (!checked.contains(rootX)) {// Order of N Access of Array\r\n\r\n\t\t\t\tSystem.out.println(\"root x is \" + rootX);\r\n\t\t\t\tcount++;\r\n\t\t\t\tchecked.add(rootX);// N Access of Array\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public int size()\r\n\t {\r\n\t\t if(root == null)\r\n\t\t {\r\n\t\t\t return 0;\r\n\t\t }\r\n\t\t return root.getSubTreeSize();\r\n\t }", "public int size() {\n return size(root);\n }", "public int size() {\n return size(root);\n }", "@Override\n\tpublic int size() {\n\t\tmodCount = root.numChildren();\n\t\treturn modCount;\n\t}", "int size() \n { \n return size(root); \n }", "public int size() \n\t {\n\t\t return size(root);\n\t }", "@Override\r\n\tpublic int size() {\r\n\t\treturn size(root);\r\n\t}", "public int size() {\n if (root == null) return 0;\n if (root.left == null && root.right == null) return 1;\n else {\n int treeSize = 0;\n treeSize = size(root, treeSize);\n return treeSize;\n }\n }", "@Override\n\tpublic int size() {\n\t\treturn size(root);\n\t}", "@Override\n public int size() {\n return size(root); }", "public int size(){\n if(root!=null){ // มี node ใน tree\n return size(root);\n }\n else{\n return 0; // tree เปล่า size 0\n }\n }", "@Override\r\n\tpublic int getNumberOfNodes() {\n\t\tint leftNumber=0;\r\n\t\tint rightNumber=0;\r\n\t\tif(left!=null){\r\n\t\t\tleftNumber=left.getNumberOfNodes();\r\n\t\t}\r\n\t\tif(right!=null)\r\n\t\t\trightNumber=right.getNumberOfNodes();\r\n\t\treturn leftNumber+rightNumber+1;\r\n\t}", "public int countNodes(){\r\n \treturn count(root);\r\n }", "public int size() {\n\t\treturn root.count();\n\t}", "public int size() {\n\t\tif (this.root == null) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn this.root.getSize(); \n\t}", "@Override\n public int size() {\n return size(root);\n }", "public int size() {\r\n\t\treturn size(rootNode);\r\n\t}", "public int size() {\n\t\tTree<K, V> t = this;\n\t\tint size = 1;\n\t\treturn size(t, size);\n\t}", "@Override\n\tpublic int size() {\n\t\tint s = valCount; // saves value of current node\n\t\tfor (int i = 0; i < childCount; ++i) { // then checks all children\n\t\t\ts += children[i].size();\n\t\t}\n\t\treturn s;\n\t}", "int getChildCount();", "public int getChildCount();", "public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(root);\r\n }", "public int size() {\n return root.getNumberOfTerminalsInSubTree();\n }", "public int my_leaf_count();", "public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }", "public int getNodeCount() {\n resetAllTouched();\n return recurseNodeCount();\n }", "public int countLeaves(){\n return countLeaves(root);\n }", "public int countNodes()\r\n {\r\n return countNodes(root);\r\n }", "int numChildren(Position<E> p) throws IllegalArgumentException;", "public int getNodeCount() {\n return dataTree.getNodeCount();\n }", "public int countNodes()\n {\n return countNodes(root);\n }", "public int countNodes()\n {\n return countNodes(root);\n }", "@Override\n public int getNumberOfNodes() {\n int numNodes = 0;\n\n if (!isEmpty()) {\n numNodes = root.getNumberOfNodes();\n }\n\n return numNodes;\n }", "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 }", "public abstract int getNumChildren();", "public int order()\n\t{\n\t\treturn null == _children ? 0 : _children.size();\n\t}", "int getNodeCount();", "int getNodeCount();", "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 int getNumOfNodes() {\n\t\treturn getNumOfNodes(this);\n\t}", "public Integer countBST() {\n\n if (root == null) return 0;\n try {\n Integer x = (Integer)root.element;\n } catch (NumberFormatException e) {\n System.out.println(\"count BST works only with comparable values, AKA Integers.\" + e);\n return 0;\n }\n return countBSTRecur(root);\n }", "public int nodeCount() {\n return this.root.nodeCount();\n }", "@Override\r\n\tpublic int getNumberOfNodes() {\r\n\t\tint contador = 0;// Contador para el recursivo\r\n\t\treturn getNumberOfNodesRec(contador, raiz);\r\n\t}", "int sizeOf(int node){\n\t\tint counter =1;\r\n\t\tfor (int i=0;i<idNode.length;i++){ //Count all node with the same parent\r\n\t\t\tif (idNode[i]==node){\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn counter;\r\n\t}", "public int totalWordsTree() {\r\n\t\treturn count;\r\n\t}", "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 int num_sets() {\n int count = 0;\n for (int i = 0; i < _parent.length; ++i) {\n if (_parent[i] == i)\n count++;\n }\n return count;\n }", "public final int size() {\r\n return sequentialSize(root);\r\n }", "public int size() // return the number of nodes in the tree\r\n {\r\n return root.sizen;\r\n }", "public int numberOfNodes() {\n return numberOfNodes(root);\n }", "public static int size(Node root){\r\n int count = 0;\r\n for(int i=0; i<root.children.size(); i++){\r\n Node child = root.children.get(i);\r\n count += size(child);\r\n }\r\n return count + 1;\r\n }", "public int count( ) {\n if(empty()) {\n return 0;\n } else{\n return countNodes(root);\n }\n }", "public int getAncestorCount() { return _parent!=null? getParent().getAncestorCount() + 1 : 0; }", "public int numberOfNodes() {\r\n\t\tBinaryNode<AnyType> t = root;\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t} // if\r\n\t\treturn numberOfNodes(root.left) + numberOfNodes(root.right) + 1;\r\n\t}", "public int countNodes() {\n int leftCount = left == null ? 0 : left.countNodes();\n int rightCount = right == null ? 0 : right.countNodes();\n return 1 + leftCount + rightCount;\n }", "public int numLeaves() {\n return numLeaves(root);//invokes helper method\n }", "public int countChildren() {\n return this.children.size();\n }", "public int getNodeCount() {\n return node_.size();\n }", "public int[] numPosRulesAndNumPosConditions() {\n\n return numPosRulesAndNumPosConditions(root);\n }", "public static int getNum(TreeNode root) {\n if (root == null) {\n return 0;\n }\n int count = 0;\n Queue<TreeNode> queue = new LinkedList<>();\n queue.offer(root);\n while (!queue.isEmpty()) {\n TreeNode node = queue.poll();\n if (node.left != null) queue.offer(node.left);\n if (node.right != null) queue.offer(node.right);\n count++;\n }\n return count;\n }", "public Integer count() {\n return this.bst.count();\n }", "public int countChildren() {\n return this.children.size();\n }", "int nodeCount();", "public int numNodes() {\r\n\t\treturn numNodes(root);\r\n\t}", "public int getNumberofNonLeaves() {\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE NUMBER OF NON_LEAF NODES IN THE TREE AND RETURN\n */\n return nonleaves;\n }", "public int size(){\n return nodes.size();\n }", "public int size()\n {\n return nodes.size();\n }", "public int size() {\n\t\treturn nodes.size();\n\t}", "public int numNodes()\r\n {\r\n\tint s = 0;\r\n\tfor (final NodeTypeHolder nt : ntMap.values())\r\n\t s += nt.numNodes();\r\n\treturn s;\r\n }", "public int getChildCount()\n {\n return mChildren.length; // The indexes and constraints\n }", "public int rectangleCount() {\n return this.root.rectangleCount();\n }", "public int getNodeCount() {\n if (nodeBuilder_ == null) {\n return node_.size();\n } else {\n return nodeBuilder_.getCount();\n }\n }", "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 int size() {\n return nodes.size();\n }", "public int numberOfLeaves() {\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t} // if\r\n\t\treturn numberOfLeaves(root.left) + numberOfLeaves(root.right);\r\n\t}", "public int getSize() {\n\t\treturn this.getSizeRecursive(root);\n\t}", "public int getChildCount()\n/* */ {\n/* 500 */ return this.children.size();\n/* */ }", "int childCount(){\n return this.children.size();\n }", "public int getDepth() {\r\n\t\tint depth = 0;\r\n\t\tSearchNode<S, A> ancestor = this;\r\n\t\twhile(ancestor.parent != null) {\r\n\t\t\tdepth++;\r\n\t\t\tancestor = ancestor.parent;\r\n\t\t}\r\n\t\treturn depth;\r\n\t}", "public int getChildCount() {\r\n if (_children == null) {\r\n return 0;\r\n }\r\n return _children.size();\r\n }", "private int Nodes(BTNode n){\r\n if (n == null)\r\n return 0;\r\n else {\r\n return ( (n.left == null? 0 : Nodes(n.left)) + (n.right == null? 0 : Nodes(n.right)) + 1 );\r\n }\r\n }", "public int size() {\n int count = terminal ? 1 : 0;\n for (Set<String> child : children)\n if (child != null) count += child.size();\n return count;\n }", "public int numTrees () { throw new RuntimeException(); }", "public int nodesCount() {\n return nodes.size();\n }", "@Override\n\tpublic int size() {\n\t\tif(top == null) {\n\t\t\treturn 0;\n\t\t}\n\t\tNode<T> tempNode = top;\n\t\tint counter = 1;\n\t\twhile(tempNode.getLink() != null) {\n\t\t\tcounter++;\n\t\t\ttempNode = tempNode.getLink();\n\t\t}\n\t\treturn counter;\n\t}" ]
[ "0.75499517", "0.7384061", "0.73581654", "0.72858506", "0.7223957", "0.71861595", "0.7178298", "0.7172881", "0.7160984", "0.7139664", "0.7122762", "0.7122762", "0.7094848", "0.70782876", "0.7073288", "0.70519346", "0.7051082", "0.70423377", "0.70423377", "0.70389783", "0.7032713", "0.7019457", "0.7013738", "0.6987356", "0.69753075", "0.6946158", "0.69436055", "0.69251", "0.69170535", "0.68923074", "0.68507445", "0.68485504", "0.68290704", "0.6828879", "0.6799482", "0.6785707", "0.6785644", "0.6766468", "0.67563015", "0.6742234", "0.6731737", "0.6699348", "0.66985613", "0.6690506", "0.66784525", "0.66635543", "0.66567636", "0.66567636", "0.6629343", "0.6609006", "0.65935045", "0.65840703", "0.65772784", "0.65772784", "0.65430945", "0.65172017", "0.6516316", "0.64776284", "0.6477563", "0.64748967", "0.6473047", "0.6457756", "0.645447", "0.6448801", "0.644748", "0.64470243", "0.64443636", "0.6442736", "0.6431774", "0.64229304", "0.6422451", "0.64016855", "0.6388369", "0.63772005", "0.63692945", "0.63664156", "0.6356272", "0.6347848", "0.6341163", "0.6340574", "0.63266325", "0.6325467", "0.63160044", "0.63101745", "0.63045496", "0.6302952", "0.62820894", "0.62792397", "0.6277764", "0.6266238", "0.62631327", "0.62617147", "0.6257681", "0.62548906", "0.6251789", "0.62516946", "0.62479174", "0.6243696", "0.6241957", "0.6235002", "0.62337977" ]
0.0
-1
query methods Tests whether given Position has at least one child.
boolean isInternal(Position<E> p) throws IllegalArgumentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasChildren();", "public boolean containsChild() {\n return !(getChildList().isEmpty());\n }", "public abstract boolean hasLeftChild(Position<E> p);", "private boolean _hasChild() {\r\n boolean ret = false;\r\n if (_childs != null && _childs.size() > 0) {\r\n ret = true;\r\n }\r\n\r\n return ret;\r\n }", "@Override\r\n \tpublic boolean hasChildren() {\n \t\treturn getChildren().length > 0;\r\n \t}", "public boolean hasChildren()\n/* */ {\n/* 487 */ return !this.children.isEmpty();\n/* */ }", "public boolean hasChilds() {\n return childs != null && !childs.isEmpty();\n }", "public boolean hasChild(int groupPos) {\n return mChildDataList.get(groupPos) == null ? false : mChildDataList.get(groupPos).size() != 0;\n }", "boolean hasChildNodes();", "@Override\r\n\tpublic boolean hasChildren() {\n\t\tSystem.out.println(\"this children is=\"+this.children);\r\n\t\tif(this.children==null||this.children.isEmpty()){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn !this.children.isEmpty();\r\n\t}", "@Override\n\tpublic boolean hasChildren() {\n\t\treturn this.children!=null && this.children.length>0 ;\n\t}", "@Override\n\tpublic boolean hasChildren() {\n\t\treturn this.children!=null && this.children.length>0 ;\n\t}", "public final boolean hasChild ()\r\n {\r\n return _value.hasChild();\r\n }", "public boolean hasChildren()\n\t{\n\t\treturn !getChildren().isEmpty();\n\t}", "boolean hasParent();", "boolean hasParent();", "public boolean isChild();", "default boolean hasChildren() {\n return iterator().hasNext();\n }", "public abstract boolean hasRightChild(Position<E> p);", "@objid (\"808c086e-1dec-11e2-8cad-001ec947c8cc\")\n public final boolean hasChildren() {\n return !this.children.isEmpty();\n }", "public abstract boolean isRoot(Position<E> p);", "public boolean HasChildren() {\n\t\treturn left_ptr != null && right_ptr != null;\n\t}", "public boolean isChild(int position) {\n if (mSelectedGroupPos != -1) {\n return position > mSelectedGroupPos && position < mSelectedGroupPos +\n getChildCount(mSelectedGroupPos) + 1;\n }\n return false;\n }", "public boolean hasPosition() {\n return positionBuilder_ != null || position_ != null;\n }", "public boolean hasPosition() {\n return positionBuilder_ != null || position_ != null;\n }", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "private boolean hasLeftChild(int index) {\n return leftChild(index) <= size;\n }", "public boolean \n childExists\n (\n Comparable key\n ) \n {\n return pChildren.containsKey(key);\n }", "public boolean contains(Shape shape)\n {\n // checks if the child is in the children list\n return children.contains(shape);\n }", "public boolean isChild(){\r\n return(leftleaf == null) && (rightleaf == null)); \r\n }", "boolean isRoot(Position<E> p) throws IllegalArgumentException;", "public boolean hasSingleChild(String childName) {\n return children(childName).size() == 1;\n }", "public boolean isSetChildIndex() {\n return EncodingUtils.testBit(__isset_bitfield, __CHILDINDEX_ISSET_ID);\n }", "@java.lang.Override\n public boolean hasPosition() {\n return position_ != null;\n }", "@java.lang.Override\n public boolean hasPosition() {\n return position_ != null;\n }", "public boolean hasChild(String name) {\n return peekObject().getFieldNames().contains(name);\n }", "@Override\r\n\t\tpublic boolean hasChildNodes()\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}", "public abstract boolean canAdvanceOver(QueryTree child);", "private boolean hasLeftChild(int i) {\n return leftIndex(i) <= size;\n }", "boolean hasParentalStatus();", "public boolean hasContainingParentId() {\n return fieldSetFlags()[1];\n }", "public boolean hasChildren(Object element) {\n\t\treturn false;\r\n\t}", "public boolean hasPositionCall() {\n if (_left.hasPositionCall()) return true;\n if (_right.hasPositionCall()) return true;\n return false;\n }", "public boolean hasSubQuery() {\r\n\t\tList list = allElements();\r\n\t\tint len = list.size();\r\n\t\tfor (int n = 0; n < len; ++n) {\r\n\t\t\tObject ob = list.get(n);\r\n\t\t\tif (ob instanceof TObject) {\r\n\t\t\t\tTObject tob = (TObject) ob;\r\n\t\t\t\tif (tob.getTType() instanceof TQueryPlanType) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "Iterable<Position<E>> children(Position<E> p) throws IllegalArgumentException;", "private boolean hasParent(int index) {\n return index > 1;\n }", "public native boolean searchAsChild() /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\treturn jso.searchAsChild;\n }-*/;", "public boolean hasMultipleChildren(String childName) {\n return children(childName).size() > 1;\n }", "public boolean isEmpty()\n{\n // If any attributes are not default return false\n if(getMaxTime()!=5 || getFrameRate()!=25 || !SnapUtils.equals(getEndAction(),\"Loop\"))\n return false;\n \n // Iterate over owner children and if any are not empty, return false\n for(int i=0, iMax=getOwner().getChildCount(); i<iMax; i++)\n if(!isEmpty(getOwner().getChild(i)))\n return false;\n \n // Return true since every child was empty\n return true;\n}", "@Override\r\n\tpublic boolean hasLeftChild() {\n\t\treturn left!=null;\r\n\t}", "boolean hasPositionX();", "boolean hasPositionX();", "boolean hasPositionX();", "@Override\n\tpublic boolean isEmpty() {\n\t\tmodCount = root.numChildren();\n\t\treturn (modCount == 0);\n\t}", "int numChildren(Position<E> p) throws IllegalArgumentException;", "private boolean containsPosition(Collection<Item> c, Position p) {\n return getItem(c, p) != null;\n }", "boolean isChildSelectable(int groupPosition, int childPosition);", "public boolean exists() {\n Entity e = root;\n if (e == null) {\n if (parent != null) {\n e = parent.get(ContentType.EntityType, null);\n }\n }\n if (e == null) {\n return false;\n }\n \n if (isIndexSelector()) {\n return e instanceof EntityList;\n }\n \n if (e.getEntity().getEntityType().isDynamic()) {\n return true;\n }\n Property prop = property;\n if (prop == null) {\n prop = e.getEntity().getEntityType().findProperty(tags);\n }\n return prop != null;\n }", "public boolean hasParent() {\r\n if (parent == null) \r\n return false;\r\n \r\n return true;\r\n }", "protected boolean Exists()\n\t{\n\t\tif (identity<1) return false;\n\t\tNodeReference nodeReference = getNodeReference();\n\t\treturn (nodeReference.exists() || nodeReference.hasSubnodes());\n\t}", "public boolean hasChild(String id) {\n\t\treturn childMap.containsKey(id);\n\t}", "public boolean isNotEmpty(){\n return root != null;\n }", "public boolean existsEntry(String ViewTitle, String... path ) throws Exception\n {\n // ensure the parent exists\n String[] parentPath = new String[path.length - 1];\n System.arraycopy( path, 0, parentPath, 0, parentPath.length );\n getEntry(ViewTitle, parentPath );\n\n // check if the child exists\n try\n {\n getEntry(ViewTitle, path );\n return true;\n }\n catch ( WidgetNotFoundException e )\n {\n return false;\n }\n }", "@Override\n\t\tpublic boolean isLeaf() {\n\t\t\treturn getChildCount() == 0;\n\t\t}", "public boolean isChild(){\n return child;\n }", "public boolean isChild(){\n return child;\n }", "@Override\n public boolean isEmpty() {\n return root == null;\n }", "@Override\n public boolean isDefined()\n {\n return getValue() != null || getChildrenCount() > 0\n || getAttributeCount() > 0;\n }", "public boolean hasLeftChild() {\n\t\treturn leftChild != null;\n\t}", "boolean hasQuery();", "public boolean hasParent(ParentEntity arg0, boolean arg1)\n throws EntityPersistenceException {\n return false;\n }", "public interface Tree<E> extends Iterable<E>\r\n{\r\n //accessor methods\r\n /**\r\n * Returns the Position of the root of the tree.\r\n * @return the Position of the root of the tree\r\n */\r\n Position<E> root();\r\n \r\n /**\r\n * Returns the Position of the parent of given Position.\r\n * @param p Position to check\r\n * @return the Position of the parent of given Position (or null if p is the root). \r\n * @throws IllegalArgumentException if Position isn't valid\r\n */\r\n Position<E> parent(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Returns the number of children of given Position.\r\n * @param p Position to check\r\n * @return the number of children of given Position\r\n * @throws IllegalArgumentException if Position isn't valid\r\n */\r\n int numChildren(Position<E> p) throws IllegalArgumentException;\r\n\r\n /**\r\n * Returns the number of positions (and therefore elements) that are contained in tree.\r\n * @return the number of positions (and therefore elements) that are contained in tree\r\n */\r\n int size();\r\n \r\n \r\n //query methods\r\n /**\r\n * Tests whether given Position has at least one child.\r\n * @param p Position to check\r\n * @return true if given Position has at least one child, false otherwise\r\n * @throws IllegalArgumentException if Position isn't valid \r\n */\r\n boolean isInternal(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Tests whether given Position has any children.\r\n * @param p Position to check\r\n * @return true if given Position does not have children, false otherwise\r\n * @throws IllegalArgumentException if Position isn't valid \r\n */\r\n boolean isExternal(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Tests whether given Position is the root of the tree.\r\n * @param p Position to check\r\n * @return true if given Position is the root, false otherwise\r\n * @throws IllegalArgumentException if Position isn't valid \r\n */\r\n boolean isRoot(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Tests whether tree contains any Positions (and therefore elements).\r\n * @return true if tree doesn't contain any Positions, false otherwise\r\n */\r\n boolean isEmpty();\r\n \r\n \r\n \r\n //additional methods\r\n /**\r\n * Returns an iterable Collection containing the children of given Position.\r\n * @param p Position to check\r\n * @return an iterable Collection containing the children of given Position\r\n * @throws IllegalArgumentException if Position isn't valid\r\n */\r\n Iterable<Position<E>> children(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Returns an iterable Collection of all Positions of the tree.\r\n * @return an iterable Collection of all Positions of the tree.\r\n */\r\n Iterable<Position<E>> positions(); \r\n \r\n /**\r\n * Returns an iterator for all elements in the tree.\r\n * Ensures tree itself is iterable.\r\n * @return an iterator for all elements in the tree\r\n */\r\n @Override\r\n Iterator<E> iterator(); \r\n}", "public Boolean isParentable();", "private boolean checkPosition(int position) {\r\n\t\treturn position>size||position < 0;\r\n\t}", "public static boolean visibleInParents(Node node) {\n // TODO: Add overflow check (if overflow support will be added).\n List<Node> parentList = new ArrayList<>();\n for (Node parent = node.parent(); parent != null; parent = parent.parent()) {\n parentList.add(parent);\n }\n\n if (!parentList.isEmpty()) {\n var pos = new Vector2f(0, 0);\n var rect = new Vector2f(0, 0);\n var absolutePosition = node.box().borderBoxPosition();\n\n Vector2fc currentSize = node.box().contentSize();\n Vector2fc currentPos = node.box().contentPosition();\n\n float lx = absolutePosition.x;\n float rx = absolutePosition.x + currentSize.x();\n float ty = absolutePosition.y;\n float by = absolutePosition.y + currentSize.y();\n\n // check top parent\n\n Vector2f parentPaddingBoxSize = node.parent().box().paddingBoxSize();\n if (currentPos.x() > parentPaddingBoxSize.x\n || currentPos.x() + currentSize.x() < 0\n || currentPos.y() > parentPaddingBoxSize.y\n || currentPos.y() + currentSize.y() < 0) {\n return false;\n }\n if (parentList.size() != 1) {\n // check from bottom parent to top parent\n for (int i = parentList.size() - 1; i >= 1; i--) {\n Node parent = parentList.get(i);\n pos.add(parent.box().contentPosition());\n rect.set(pos).add(parent.box().contentSize());\n\n if (lx > rect.x || rx < pos.x || ty > rect.y || by < pos.y) {\n return false;\n }\n }\n }\n }\n return true;\n }", "@Override\r\n\tpublic SquareDungeon getDungeonContainingPosition(Point position) {\r\n\t\tif (!position.isEqualOrBiggerThanPoint(getMaximumDimensions()) && position.isEqualOrBiggerThanValue(0))\r\n\t\t\treturn this;\r\n\t\treturn null;\r\n\t}", "boolean coreHasParent();", "private boolean isEmpty()\r\n\t{\r\n\t\treturn getRoot() == null;\r\n\t}", "@Override\r\n\tpublic boolean hasChildren() {\n\t\tif (taskNodeList != null)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "public boolean isSelectedChild(int position) {\n return (mActualSelectedGroupPos + mActualSelectedChildPos + 1) == position;\n }", "default boolean isChild(@NotNull Type type, @NotNull Meta element, @NotNull List<Object> parents) {\r\n return false;\r\n }", "public boolean isEmpty()\r\n {\r\n return root == null;\r\n }", "public boolean hasNext(){\n if (position == null){\n return (first!=null);\n \n }\n else \n return position.next != null; \n }", "protected final boolean isLeaf() {\n return (getChildIds().isEmpty());\n }", "public boolean isChild(){\n return false;\n }", "public boolean isSetPos() {\n return this.pos != null;\n }", "public boolean isSetPos() {\n return this.pos != null;\n }", "boolean isEmpty() {\n return (bottom < top.getReference());\n }", "public abstract boolean getRendersChildren();", "public boolean isLeaf() {\n return children.size() == 0;\n }", "public boolean isLeaf() {\n return children.size() == 0;\n }", "boolean haveAnySpawn();", "public boolean hasAChild(Character ch){\n return children.containsKey(ch);\n }", "private static boolean contains(Component parent,Component child) {\n\t\tComponent c = child;\n\t\twhile(c!=null) {\n\t\t\tc = c.getParent();\n\t\t\t\n\t\t\tif(parent==c) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public int getEmptyChild() {\r\n\t\t\tfor (int i = 0; i < children.size(); i++) {\r\n\t\t\t\t//System.out.println(\"Checking child #\" + i + \"\\t\\tChild: \" + getChild(i).debug());\r\n\t\t\t\tif (getChild(i).getData().size() == 0)\r\n\t\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn -1;\r\n\t\t}", "public boolean isSetParentIndex() {\n return EncodingUtils.testBit(__isset_bitfield, __PARENTINDEX_ISSET_ID);\n }", "public boolean isEmpty(int position) {\n return ! Positions.contains(this.x | this.o, position);\n }", "public boolean hasParent() {\n return getParent() != null;\n }" ]
[ "0.7088544", "0.7057974", "0.6981565", "0.6929411", "0.67060465", "0.66240954", "0.66161084", "0.6591643", "0.6540021", "0.65123355", "0.64940894", "0.64940894", "0.6449241", "0.64283144", "0.638901", "0.638901", "0.6353791", "0.630398", "0.6256632", "0.620381", "0.61800396", "0.61798984", "0.61373675", "0.61136353", "0.61136353", "0.61109114", "0.61109114", "0.61109114", "0.61109114", "0.5976397", "0.59584403", "0.5927993", "0.5900139", "0.5867486", "0.58532125", "0.5829564", "0.5773831", "0.5773831", "0.5771175", "0.576579", "0.57636017", "0.5735741", "0.5734912", "0.570597", "0.5684844", "0.56816566", "0.5662488", "0.5658306", "0.56579936", "0.5655766", "0.563657", "0.56350017", "0.56028", "0.5593322", "0.5593322", "0.5593322", "0.55741715", "0.557029", "0.5561076", "0.5558895", "0.5546435", "0.55148673", "0.5509265", "0.5507643", "0.5498863", "0.5496712", "0.5494215", "0.54739577", "0.54739577", "0.5463631", "0.54625845", "0.54548323", "0.54401743", "0.54311", "0.54278713", "0.54198116", "0.5417565", "0.5411788", "0.5402848", "0.53972083", "0.5395542", "0.5386784", "0.5379765", "0.53743917", "0.5366533", "0.53594035", "0.53555053", "0.53540814", "0.5350696", "0.5350696", "0.5342732", "0.5334602", "0.5328816", "0.5328816", "0.5318384", "0.5317727", "0.5308392", "0.53014714", "0.52953047", "0.5294262", "0.52891445" ]
0.0
-1
Tests whether given Position has any children.
boolean isExternal(Position<E> p) throws IllegalArgumentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasChildren();", "public boolean hasChildren()\n\t{\n\t\treturn !getChildren().isEmpty();\n\t}", "@Override\r\n \tpublic boolean hasChildren() {\n \t\treturn getChildren().length > 0;\r\n \t}", "public boolean hasChildren()\n/* */ {\n/* 487 */ return !this.children.isEmpty();\n/* */ }", "@Override\n\tpublic boolean hasChildren() {\n\t\treturn this.children!=null && this.children.length>0 ;\n\t}", "@Override\n\tpublic boolean hasChildren() {\n\t\treturn this.children!=null && this.children.length>0 ;\n\t}", "public boolean containsChild() {\n return !(getChildList().isEmpty());\n }", "@objid (\"808c086e-1dec-11e2-8cad-001ec947c8cc\")\n public final boolean hasChildren() {\n return !this.children.isEmpty();\n }", "@Override\r\n\tpublic boolean hasChildren() {\n\t\tSystem.out.println(\"this children is=\"+this.children);\r\n\t\tif(this.children==null||this.children.isEmpty()){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn !this.children.isEmpty();\r\n\t}", "public boolean hasChilds() {\n return childs != null && !childs.isEmpty();\n }", "boolean hasChildNodes();", "private boolean _hasChild() {\r\n boolean ret = false;\r\n if (_childs != null && _childs.size() > 0) {\r\n ret = true;\r\n }\r\n\r\n return ret;\r\n }", "public boolean hasChild(int groupPos) {\n return mChildDataList.get(groupPos) == null ? false : mChildDataList.get(groupPos).size() != 0;\n }", "public boolean HasChildren() {\n\t\treturn left_ptr != null && right_ptr != null;\n\t}", "default boolean hasChildren() {\n return iterator().hasNext();\n }", "public boolean isChild(int position) {\n if (mSelectedGroupPos != -1) {\n return position > mSelectedGroupPos && position < mSelectedGroupPos +\n getChildCount(mSelectedGroupPos) + 1;\n }\n return false;\n }", "@Override\r\n\t\tpublic boolean hasChildNodes()\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}", "public abstract boolean hasLeftChild(Position<E> p);", "public final boolean hasChild ()\r\n {\r\n return _value.hasChild();\r\n }", "public boolean contains(Shape shape)\n {\n // checks if the child is in the children list\n return children.contains(shape);\n }", "public boolean hasChildren(Object element) {\n\t\treturn false;\r\n\t}", "public boolean isChild();", "public final boolean isChildrenLayoutNecessary() {\n return isStatusBitsNonZero(CHILDREN_LAYOUT_NECESSARY_BIT);\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\tmodCount = root.numChildren();\n\t\treturn (modCount == 0);\n\t}", "@Override\n public boolean currentHasChildren() {\n return ! ((FxContainerNode) currentNode()).isEmpty();\n }", "@Override\n public boolean currentHasChildren() {\n return ! ((FxContainerNode) currentNode()).isEmpty();\n }", "public boolean hasPosition() {\n return positionBuilder_ != null || position_ != null;\n }", "public boolean hasPosition() {\n return positionBuilder_ != null || position_ != null;\n }", "public boolean hasMultipleChildren(String childName) {\n return children(childName).size() > 1;\n }", "boolean hasParent();", "boolean hasParent();", "@Override\r\n\tpublic boolean hasChildren() {\n\t\tif (taskNodeList != null)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "private boolean hasLeftChild(int index) {\n return leftChild(index) <= size;\n }", "public static boolean shouldRenderChildren(UIComponent component) {\n for (int i = 0; i < component.getChildCount(); i++) {\n if (component.getChildren().get(i).isRendered()) {\n return true;\n }\n }\n\n return false;\n }", "public abstract boolean hasRightChild(Position<E> p);", "public boolean isLeaf() {\n return children.size() == 0;\n }", "public boolean isLeaf() {\n return children.size() == 0;\n }", "public boolean isLeaf() {\n\t\treturn children.isEmpty();\n\t}", "public boolean isEmpty()\n{\n // If any attributes are not default return false\n if(getMaxTime()!=5 || getFrameRate()!=25 || !SnapUtils.equals(getEndAction(),\"Loop\"))\n return false;\n \n // Iterate over owner children and if any are not empty, return false\n for(int i=0, iMax=getOwner().getChildCount(); i<iMax; i++)\n if(!isEmpty(getOwner().getChild(i)))\n return false;\n \n // Return true since every child was empty\n return true;\n}", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "@Override\n\t\tpublic boolean isLeaf() {\n\t\t\treturn getChildCount() == 0;\n\t\t}", "public boolean isChild(){\r\n return(leftleaf == null) && (rightleaf == null)); \r\n }", "public boolean isLeaf() {\r\n return (_children == null) || (_children.size() == 0);\r\n }", "private boolean hasLeftChild(int i) {\n return leftIndex(i) <= size;\n }", "protected final boolean isLeaf() {\n return (getChildIds().isEmpty());\n }", "private boolean isEmpty(RMShape aShape)\n{\n // If shape timeline is non-null and not-empty, return false\n if(aShape.getTimeline()!=null && !aShape.getTimeline().isEmpty())\n return false;\n \n // Iterate over children and return false if any are not empty\n for(int i=0, iMax=aShape.getChildCount(); i<iMax; i++)\n if(!isEmpty(aShape.getChild(i)))\n return false;\n \n // Return true since shape anim and children are all empty\n return true;\n}", "public boolean hasChild(String name) {\n return peekObject().getFieldNames().contains(name);\n }", "@java.lang.Override\n public boolean hasPosition() {\n return position_ != null;\n }", "@java.lang.Override\n public boolean hasPosition() {\n return position_ != null;\n }", "public boolean isSupportsChildren() {\n return supportsChildren;\n }", "public boolean isHaveChildren(List source, Tree tree) {\n\t\tboolean result = false;\r\n\t\tif (tree.getChildrenTrees() != null\r\n\t\t\t\t&& !tree.getChildrenTrees().isEmpty()) {\r\n\t\t\tresult = true;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public boolean getAllowsChildren() { return !isLeaf(); }", "@Override\r\n\tpublic boolean hasLeftChild() {\n\t\treturn left!=null;\r\n\t}", "public abstract boolean isRoot(Position<E> p);", "public boolean hasLeftChild() {\n\t\treturn leftChild != null;\n\t}", "public boolean isEmpty(int position) {\n return ! Positions.contains(this.x | this.o, position);\n }", "public abstract boolean getRendersChildren();", "public static boolean hasElements() {\n return content.size() > 0;\n }", "public static boolean visibleInParents(Node node) {\n // TODO: Add overflow check (if overflow support will be added).\n List<Node> parentList = new ArrayList<>();\n for (Node parent = node.parent(); parent != null; parent = parent.parent()) {\n parentList.add(parent);\n }\n\n if (!parentList.isEmpty()) {\n var pos = new Vector2f(0, 0);\n var rect = new Vector2f(0, 0);\n var absolutePosition = node.box().borderBoxPosition();\n\n Vector2fc currentSize = node.box().contentSize();\n Vector2fc currentPos = node.box().contentPosition();\n\n float lx = absolutePosition.x;\n float rx = absolutePosition.x + currentSize.x();\n float ty = absolutePosition.y;\n float by = absolutePosition.y + currentSize.y();\n\n // check top parent\n\n Vector2f parentPaddingBoxSize = node.parent().box().paddingBoxSize();\n if (currentPos.x() > parentPaddingBoxSize.x\n || currentPos.x() + currentSize.x() < 0\n || currentPos.y() > parentPaddingBoxSize.y\n || currentPos.y() + currentSize.y() < 0) {\n return false;\n }\n if (parentList.size() != 1) {\n // check from bottom parent to top parent\n for (int i = parentList.size() - 1; i >= 1; i--) {\n Node parent = parentList.get(i);\n pos.add(parent.box().contentPosition());\n rect.set(pos).add(parent.box().contentSize());\n\n if (lx > rect.x || rx < pos.x || ty > rect.y || by < pos.y) {\n return false;\n }\n }\n }\n }\n return true;\n }", "int numChildren(Position<E> p) throws IllegalArgumentException;", "Iterable<Position<E>> children(Position<E> p) throws IllegalArgumentException;", "public boolean hasPositionCall() {\n if (_left.hasPositionCall()) return true;\n if (_right.hasPositionCall()) return true;\n return false;\n }", "public boolean isChild() {\n\t\treturn false;\n\t}", "public boolean \n childExists\n (\n Comparable key\n ) \n {\n return pChildren.containsKey(key);\n }", "@Override\n public int getChildrenCount(int groupPosition) {\n return children[groupPosition].length;\n }", "public void setHasChildren(boolean hasChildren) {\n this.hasChildren = hasChildren;\n }", "boolean hasPositionX();", "boolean hasPositionX();", "boolean hasPositionX();", "public boolean isSetChildIndex() {\n return EncodingUtils.testBit(__isset_bitfield, __CHILDINDEX_ISSET_ID);\n }", "private boolean isLeaf() {\n return this.children == null;\n }", "default boolean isChild(@NotNull Type type, @NotNull Meta element, @NotNull List<Object> parents) {\r\n return false;\r\n }", "private boolean checkPosition(int position) {\r\n\t\treturn position>size||position < 0;\r\n\t}", "private boolean childrenAreInitialized() {\r\n\t\treturn (securityActor != null);\r\n\t}", "public boolean isLeaf(){\n\t\treturn (childList == null || childList.size() == 0);\n\t}", "@Override\n public final int size() {\n return children.size();\n }", "public boolean isNotEmpty(){\n return root != null;\n }", "boolean isRoot(Position<E> p) throws IllegalArgumentException;", "boolean isEmpty() {\n return (bottom < top.getReference());\n }", "@Override\n public boolean isDefined()\n {\n return getValue() != null || getChildrenCount() > 0\n || getAttributeCount() > 0;\n }", "public boolean hasChildComponent(Widget component) {\n return locationToWidget.containsValue(component);\n }", "public boolean isChild(){\n return false;\n }", "@Override\n public boolean isEmpty() {\n return root == null;\n }", "public boolean isLeaf() {\r\n\t\t\treturn (children.size() == 0);\r\n\t\t}", "private boolean isAllChildCompleted() {\n for (IBlock iBlock : getChildren()) {\n if (iBlock.getType() != BlockType.DISCUSSION && !iBlock.isCompleted()) {\n return false;\n }\n }\n for (IBlock iBlock : getChildren()) {\n if (iBlock.getType() == BlockType.DISCUSSION) {\n iBlock.setCompleted(1);\n }\n }\n return getChildren().size() > 0;\n }", "public boolean isOverflow() {\n\t\treturn (children.size() >= degree + 1) || (data.size() >= degree);\n\t}", "public boolean isSelectedChild(int position) {\n return (mActualSelectedGroupPos + mActualSelectedChildPos + 1) == position;\n }", "public boolean isEmpty()\r\n {\r\n return root == null;\r\n }", "@Override\r\n public boolean checkCollisions(Point p1, Point p2) {\r\n for(IShape child : children) {\r\n if(child.checkCollisions(p1,p2)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn (!stack.isEmpty() || localRoot!=null);\n\t\t}", "public boolean getAllowsChildren()\n {\n return true;\n }", "public boolean isEmpty()\r\n {\n return this.top == null;\r\n }", "public int getChildCount() {return children.size();}", "public boolean hasContainingParentId() {\n return fieldSetFlags()[1];\n }", "public boolean isEmpty() {\n return this.top == null;\n }", "private boolean hasRightChild(int index) {\n return rightChild(index) <= size;\n }", "private boolean isLeaf()\r\n\t\t{\r\n\t\t\treturn getLeftChild() == null && getRightChild() == null;\r\n\t\t}", "@Override\n public int getChildrenCount()\n {\n return children.getSubNodes().size();\n }" ]
[ "0.78347987", "0.7655872", "0.7650951", "0.7617872", "0.75482464", "0.75482464", "0.7527676", "0.74995124", "0.74962354", "0.7490506", "0.7416786", "0.73232377", "0.7300659", "0.722584", "0.69654596", "0.69206136", "0.69066846", "0.6869255", "0.67636466", "0.65802956", "0.655964", "0.6504594", "0.64905334", "0.6430573", "0.6401683", "0.6401683", "0.63910127", "0.63910127", "0.6388627", "0.6361642", "0.6361642", "0.63474584", "0.62341905", "0.62141716", "0.6210069", "0.6193046", "0.6193046", "0.61800176", "0.61705583", "0.6163999", "0.6163999", "0.6163999", "0.6163999", "0.6155611", "0.61211634", "0.6121001", "0.60508114", "0.6049033", "0.6021676", "0.6021666", "0.60144967", "0.60144967", "0.60000855", "0.59977055", "0.59924656", "0.5971818", "0.5953356", "0.5946244", "0.5930518", "0.5917374", "0.589742", "0.5894729", "0.5877309", "0.5877251", "0.5870272", "0.5869245", "0.5850439", "0.5843731", "0.5840235", "0.58373153", "0.58373153", "0.58373153", "0.58231235", "0.58154774", "0.5788261", "0.5759539", "0.5753224", "0.574872", "0.57365793", "0.5733089", "0.5715573", "0.57142127", "0.5710885", "0.57078046", "0.5692573", "0.56913704", "0.5688126", "0.5683331", "0.56792384", "0.56674683", "0.5665864", "0.5651294", "0.56484675", "0.5645062", "0.5643647", "0.56351906", "0.5634049", "0.563179", "0.5621657", "0.56191975", "0.5617535" ]
0.0
-1
Tests whether given Position is the root of the tree.
boolean isRoot(Position<E> p) throws IllegalArgumentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean isRoot(Position<E> p);", "public boolean isRoot()\r\n\t{\r\n\t\treturn (m_parent == null);\r\n\t}", "public boolean isRoot() {\r\n return (_parent == null);\r\n }", "public boolean isRoot() {\n return !hasParent();\n }", "default boolean isRoot() {\n if (isEmpty()){\n return false;\n }\n\n TreeNode treeNode = getTreeNode();\n return treeNode.getLeftValue() == 1;\n }", "public boolean isRoot(){\n\t\treturn bound.isRoot();\n\t}", "boolean isRoot()\n {\n return this.parent == null;\n }", "public boolean isRoot() {\n return isIndex() && parts.length == 0;\n }", "public boolean isRoot() {\n return term.isRoot();\n }", "public boolean isRootLevel(\n )\n {return parentLevel == null;}", "public boolean isRoot(int numTokens) {\n return cat.equals(Rule.rootCat) && ((start == 0 && end == numTokens) || (start == -1));\n }", "protected final boolean isRoot() {\n return _metaData.isRoot(this);\n }", "public boolean checkRoot() {\n\t\t\treturn (this.getParent().getHeight() == -1);\n\t\t}", "@Override\n\tpublic boolean isRoot() {\n\t\treturn false;\n\t}", "boolean hasAstRoot();", "protected boolean isRoot(BTNode <E> v){\n\t\treturn (v.parent() == null); \n }", "public Boolean isRootNode();", "public boolean isRoot() {\n\t\treturn pathFragments.isEmpty();\n\t}", "protected boolean isRoot(BSTNode n) {\n\t\tassert (n != null);\n\n\t\treturn (n.parent == null);\n\t}", "public boolean isRoot() {\n return getName().getPath().equals(SEPARATOR);\n }", "public boolean isEmpty() {\n // if the root has nothing then there can be no tree. so True\n if (root == null) {\n return true;\n } else {\n return false;\n }\n }", "boolean parentIsRoot()\n {\n return this.parent != null && this.parent.isRoot();\n }", "public boolean isRootContextNode();", "public boolean isEmpty(){\n return this.root == null;\n }", "public boolean isRootVisible()\n {\n return treeTable.getTree().isRootVisible();\n }", "public boolean isEmpty()\r\n {\r\n return root == null;\r\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn (this.root == null);\r\n\t}", "public boolean isBranchRoot() {\n return term.isBranchRoot();\n }", "protected final boolean isRootNode() {\n return isRootNode;\n }", "public boolean empty() {\r\n\t\t return(this.root == null);\r\n\t }", "public boolean hasAstRoot() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "public boolean isEmpty(){\n return (root == null);\n }", "public boolean isEmpty() \n\t{\n\t\treturn root == null;//if root is null, tree is empty\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\tif (root == null) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean hasAstRoot() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "@Override\n public boolean isEmpty() {\n return root == null;\n }", "private boolean isEmpty()\r\n\t{\r\n\t\treturn getRoot() == null;\r\n\t}", "public boolean isEmpty()\r\n {\r\n return root == null;\r\n }", "public boolean isLeaf(){\n\t\tif(this.leftTree().isEmpty() && this.rightTree().isEmpty())\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean isRoot() { return getAncestorCount()<2; }", "boolean isEmpty(){\r\n\t\t\r\n\t\treturn root == null;\r\n\t}", "public abstract boolean hasLeftChild(Position<E> p);", "public boolean isLeaf() {\n return this.leftChild == null && this.rightChild == null;\n }", "public boolean isLeaf() {\n return children.size() == 0;\n }", "public boolean isLeaf() {\n return children.size() == 0;\n }", "public boolean isEmpty() {\n\t\treturn mSentinel == mRoot;// if the root is equal to the sentinel(empty\n\t\t\t\t\t\t\t\t\t// node) then the tree is empty otherwise it\n\t\t\t\t\t\t\t\t\t// is not\n\t}", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty()\n {\n return root == null;\n }", "public boolean isEmpty()\n {\n return root == null;\n }", "@Override\r\n public boolean isEmpty(){\r\n // Set boolean condition to false\r\n boolean isEmpty = false;\r\n // If the root is null, the tree is empty\r\n if(root == null){\r\n //Set condition to true\r\n isEmpty = true;\r\n }\r\n // Return the condition\r\n return isEmpty;\r\n }", "public static boolean isRootEntityId(String entityId){\r\n\t\treturn KeyFactory.equals(ROOT_ENTITY_ID, entityId);\r\n\t}", "public boolean isLeaf(){\n\t\treturn (leftChild == null) && (rightChild == null);\n\t}", "public static boolean isFakeRoot(CGNode node) {\n return (node.getMethod().getName().equals(FakeRootMethod.rootMethod.getName()));\n }", "public boolean isLeaf() {\r\n return (_children == null) || (_children.size() == 0);\r\n }", "public boolean isEmpty() {\r\n\t\treturn root == null;\r\n\t}", "public boolean isEmpty() {\r\n\t\treturn root == null;\r\n\t}", "public boolean isLeaf() {\n\t\treturn children.isEmpty();\n\t}", "public boolean isLeaf() {\n\t\treturn (leftChild == null) && (rightChild == null);\n\t}", "@Override\n\t\tpublic boolean isLeaf() {\n\t\t\treturn getChildCount() == 0;\n\t\t}", "public boolean isEmpty() {\n\t\treturn root == null;\n\t}", "public boolean empty( ) {\n return (root == null);\n }", "boolean isEmpty(){\n return root == null;\n }", "public boolean isLeaf() {\r\n\t\t\treturn (children.size() == 0);\r\n\t\t}", "public boolean isEmpty()\n {\n return root == nil;\n }", "public boolean isEmpty()\n {\n return root == nil;\n }", "public boolean isEmpty( )\r\n\t{\r\n\t\treturn root == null;\r\n\t}", "public boolean isEmpty() {\r\n \r\n // return a boolean, true if empty\r\n return root == null;\r\n }", "public boolean empty() {\n\t\treturn (this.root == null); // to be replaced by student code\n\t}", "public boolean isNotEmpty(){\n return root != null;\n }", "protected final boolean isLeaf() {\n return (getChildIds().isEmpty());\n }", "public boolean isValidateRoot()\r\n\t{\r\n\t\treturn(true);\r\n\t}", "private boolean isBST() {\n return isBST(root, null, null);\n }", "private boolean isUnderRoot(Node node) {\n while (node != null) {\n if (node.equals(rootContext)) {\n return true;\n }\n\n node = node.getParentNode();\n }\n\n return false;\n }", "private boolean isBST() {\r\n return isBST(root, null, null);\r\n }", "public boolean isValidateRoot() {\n/* 463 */ return true;\n/* */ }", "public boolean empty() {\n if(root==EXT_NODE) {\r\n \treturn true;\r\n }\r\n return false;\r\n }", "@Override\r\n\tpublic boolean isLeaf() {\n\t\treturn (left==null)&&(right==null);\r\n\t}", "public boolean isValidateRoot() {\n\tComponent parent = getParent();\n\tif (parent instanceof JViewport) {\n\t return false;\n\t}\n return true;\n }", "public boolean isLeafNode () {\n \tif(left == null)\n \t\treturn true;\n \treturn false;\n }", "private boolean isRoot(final String _abstractlink) {\n boolean ret = false;\n SearchQuery query = new SearchQuery();\n try {\n query.setQueryTypes(\"TeamWork_Abstract2Abstract\");\n query.addWhereExprEqValue(\"AbstractLink\", _abstractlink);\n query.addWhereExprEqValue(\"AncestorLink\", _abstractlink);\n query.addWhereExprEqValue(\"Rank\", \"1\");\n query.executeWithoutAccessCheck();\n if (query.next()) {\n ret = true;\n }\n query.close();\n } catch (EFapsException e) {\n LOG.error(\"Can't check if TeamWork_Abstract: \" + _abstractlink\n + \" is a Root\", e);\n }\n\n return ret;\n }", "private boolean isLeaf()\r\n\t\t{\r\n\t\t\treturn getLeftChild() == null && getRightChild() == null;\r\n\t\t}", "public boolean isOnRootFragment() {\n return mState.fragmentTagStack.size() == mConfig.minStackSize;\n }", "public boolean isLeaf() {\n return ((getRight() - getLeft()) == 1);\n }", "public boolean isLeaf()\n/* */ {\n/* 477 */ return this.children.isEmpty();\n/* */ }", "public boolean isBST(TreeNode root){\r\n return isBST(root, Integer.MIN_VALUE, Integer.MAX_VALUE);\r\n }", "public boolean isValidateRoot() {\n/* 246 */ return true;\n/* */ }", "public Boolean isLeaf(){\r\n\t\tif(getLeft()==null&&getRight()==null) {\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean isRootVisible()\n {\n return rootVisible;\n }", "public boolean isRootVisible()\n {\n return rootVisible;\n }", "public void setIsRoot(boolean value)\n\t{\n\t\tisRoot = value;\n\t}", "boolean isTopLevel();", "@Override\n\tpublic boolean isEmpty() {\n\t\tmodCount = root.numChildren();\n\t\treturn (modCount == 0);\n\t}", "public boolean isBST() {\n\t\treturn isBST(root, Integer.MIN_VALUE, Integer.MAX_VALUE);\n\t}", "public boolean isLeaf(){\n\t\t// return right == null && left == null && middle == null\n\t\treturn right==null && left == null && middle == null;\n\t}", "public boolean hasTopLevelNode(IAstTopLevelNode node);" ]
[ "0.7960154", "0.7250995", "0.717927", "0.7146708", "0.7072625", "0.701228", "0.6956644", "0.6920884", "0.68997085", "0.6821212", "0.6803034", "0.6736485", "0.67071986", "0.6690583", "0.66703486", "0.666091", "0.66507375", "0.65838504", "0.65545446", "0.6483741", "0.64370906", "0.6394173", "0.6372074", "0.6348792", "0.6314287", "0.630195", "0.62934756", "0.6292524", "0.62667984", "0.6261117", "0.62598085", "0.6257049", "0.6234519", "0.6224935", "0.6197761", "0.6192652", "0.6183329", "0.6177052", "0.61750233", "0.6169065", "0.61552405", "0.61492777", "0.61443794", "0.6140241", "0.6140241", "0.61294407", "0.6127916", "0.6127916", "0.6127916", "0.6127916", "0.6127916", "0.6127916", "0.6127816", "0.6127816", "0.61225986", "0.6117934", "0.61173", "0.61148703", "0.6108106", "0.6102054", "0.6102054", "0.6080489", "0.60788226", "0.60699236", "0.60698235", "0.6058903", "0.60582685", "0.60382396", "0.6033336", "0.6033336", "0.60310346", "0.60086334", "0.5991044", "0.5969075", "0.59628344", "0.5962528", "0.59607714", "0.59588", "0.59567916", "0.5930312", "0.5902883", "0.5902619", "0.58901745", "0.5887377", "0.5884769", "0.5874219", "0.5865389", "0.58432424", "0.5817589", "0.5807442", "0.5806524", "0.58037126", "0.5797841", "0.5797841", "0.57951283", "0.57941777", "0.57889646", "0.57830036", "0.5777357", "0.5776505" ]
0.76554066
1
Tests whether tree contains any Positions (and therefore elements).
boolean isEmpty();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasChildNodes();", "boolean hasChildren();", "public abstract boolean isRoot(Position<E> p);", "public interface Tree<E> extends Iterable<E>\r\n{\r\n //accessor methods\r\n /**\r\n * Returns the Position of the root of the tree.\r\n * @return the Position of the root of the tree\r\n */\r\n Position<E> root();\r\n \r\n /**\r\n * Returns the Position of the parent of given Position.\r\n * @param p Position to check\r\n * @return the Position of the parent of given Position (or null if p is the root). \r\n * @throws IllegalArgumentException if Position isn't valid\r\n */\r\n Position<E> parent(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Returns the number of children of given Position.\r\n * @param p Position to check\r\n * @return the number of children of given Position\r\n * @throws IllegalArgumentException if Position isn't valid\r\n */\r\n int numChildren(Position<E> p) throws IllegalArgumentException;\r\n\r\n /**\r\n * Returns the number of positions (and therefore elements) that are contained in tree.\r\n * @return the number of positions (and therefore elements) that are contained in tree\r\n */\r\n int size();\r\n \r\n \r\n //query methods\r\n /**\r\n * Tests whether given Position has at least one child.\r\n * @param p Position to check\r\n * @return true if given Position has at least one child, false otherwise\r\n * @throws IllegalArgumentException if Position isn't valid \r\n */\r\n boolean isInternal(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Tests whether given Position has any children.\r\n * @param p Position to check\r\n * @return true if given Position does not have children, false otherwise\r\n * @throws IllegalArgumentException if Position isn't valid \r\n */\r\n boolean isExternal(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Tests whether given Position is the root of the tree.\r\n * @param p Position to check\r\n * @return true if given Position is the root, false otherwise\r\n * @throws IllegalArgumentException if Position isn't valid \r\n */\r\n boolean isRoot(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Tests whether tree contains any Positions (and therefore elements).\r\n * @return true if tree doesn't contain any Positions, false otherwise\r\n */\r\n boolean isEmpty();\r\n \r\n \r\n \r\n //additional methods\r\n /**\r\n * Returns an iterable Collection containing the children of given Position.\r\n * @param p Position to check\r\n * @return an iterable Collection containing the children of given Position\r\n * @throws IllegalArgumentException if Position isn't valid\r\n */\r\n Iterable<Position<E>> children(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Returns an iterable Collection of all Positions of the tree.\r\n * @return an iterable Collection of all Positions of the tree.\r\n */\r\n Iterable<Position<E>> positions(); \r\n \r\n /**\r\n * Returns an iterator for all elements in the tree.\r\n * Ensures tree itself is iterable.\r\n * @return an iterator for all elements in the tree\r\n */\r\n @Override\r\n Iterator<E> iterator(); \r\n}", "public boolean hasChildren()\n/* */ {\n/* 487 */ return !this.children.isEmpty();\n/* */ }", "@Override\r\n \tpublic boolean hasChildren() {\n \t\treturn getChildren().length > 0;\r\n \t}", "public boolean hasChildren()\n\t{\n\t\treturn !getChildren().isEmpty();\n\t}", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "public boolean hasPosition() {\n return positionBuilder_ != null || position_ != null;\n }", "public boolean hasPosition() {\n return positionBuilder_ != null || position_ != null;\n }", "public abstract boolean hasLeftChild(Position<E> p);", "@Override\n\tpublic boolean isEmpty() {\n\t\tmodCount = root.numChildren();\n\t\treturn (modCount == 0);\n\t}", "public boolean containsChild() {\n return !(getChildList().isEmpty());\n }", "@Override\r\n\t\tpublic boolean hasChildNodes()\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}", "boolean isRoot(Position<E> p) throws IllegalArgumentException;", "@Override\n public boolean isEmpty() {\n return root == null;\n }", "@Override\n\tpublic boolean hasChildren() {\n\t\treturn this.children!=null && this.children.length>0 ;\n\t}", "@Override\n\tpublic boolean hasChildren() {\n\t\treturn this.children!=null && this.children.length>0 ;\n\t}", "private boolean isEmpty()\r\n\t{\r\n\t\treturn getRoot() == null;\r\n\t}", "default boolean hasChildren() {\n return iterator().hasNext();\n }", "public boolean isEmpty()\r\n {\r\n return root == null;\r\n }", "@Override\n public boolean checkForBinarySearchTree() {\n if (this.rootNode == null)\n return true;\n \n ArrayList<K> inorderTraverse = inOrdorTraverseBST();\n for (int i=1; i<inorderTraverse.size(); i++) {\n if(inorderTraverse.get(i-1).compareTo(inorderTraverse.get(i)) == 1)\n return false;\n }\n \n return true;\n }", "@java.lang.Override\n public boolean hasPosition() {\n return position_ != null;\n }", "@java.lang.Override\n public boolean hasPosition() {\n return position_ != null;\n }", "boolean hasNested();", "public boolean isEmpty(){\n return this.root == null;\n }", "@Override\r\n\tpublic boolean hasChildren() {\n\t\tSystem.out.println(\"this children is=\"+this.children);\r\n\t\tif(this.children==null||this.children.isEmpty()){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn !this.children.isEmpty();\r\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn (this.root == null);\r\n\t}", "@Override\n\t\tpublic boolean isLeaf() {\n\t\t\treturn getChildCount() == 0;\n\t\t}", "@Override\n public boolean isEmpty() {\n return (that.rootNode == null);\n }", "public boolean isEmpty()\r\n {\r\n return root == null;\r\n }", "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn (!stack.isEmpty() || localRoot!=null);\n\t\t}", "boolean hasPositionX();", "boolean hasPositionX();", "boolean hasPositionX();", "public boolean empty() {\r\n\t\t return(this.root == null);\r\n\t }", "public boolean isNotEmpty(){\n return root != null;\n }", "public boolean isEmpty() \n\t{\n\t\treturn root == null;//if root is null, tree is empty\n\t}", "public boolean isEmpty() {\n // if the root has nothing then there can be no tree. so True\n if (root == null) {\n return true;\n } else {\n return false;\n }\n }", "public boolean isEmpty()\n {\n return root == null;\n }", "public boolean isEmpty()\n {\n return root == null;\n }", "boolean isEmpty(){\r\n\t\t\r\n\t\treturn root == null;\r\n\t}", "@objid (\"808c086e-1dec-11e2-8cad-001ec947c8cc\")\n public final boolean hasChildren() {\n return !this.children.isEmpty();\n }", "boolean hasDepth();", "boolean hasDepth();", "public boolean isEmpty() {\r\n\t\treturn root == null;\r\n\t}", "public boolean isEmpty() {\r\n\t\treturn root == null;\r\n\t}", "protected final boolean isLeaf() {\n return (getChildIds().isEmpty());\n }", "public boolean hasPositionCall() {\n if (_left.hasPositionCall()) return true;\n if (_right.hasPositionCall()) return true;\n return false;\n }", "public boolean empty() {\n\t\treturn (this.root == null); // to be replaced by student code\n\t}", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\tif (root == null) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isEmpty() {\n\t\treturn root == null;\n\t}", "public boolean HasChildren() {\n\t\treturn left_ptr != null && right_ptr != null;\n\t}", "boolean hasAstRoot();", "public boolean hasChildren(Object element) {\n\t\treturn false;\r\n\t}", "private boolean _hasChild() {\r\n boolean ret = false;\r\n if (_childs != null && _childs.size() > 0) {\r\n ret = true;\r\n }\r\n\r\n return ret;\r\n }", "public static boolean hasElements() {\n return content.size() > 0;\n }", "public Boolean isRootNode();", "boolean isEmpty(){\n return root == null;\n }", "public boolean empty() {\n if(root==EXT_NODE) {\r\n \treturn true;\r\n }\r\n return false;\r\n }", "private boolean isLeaf()\r\n\t\t{\r\n\t\t\treturn getLeftChild() == null && getRightChild() == null;\r\n\t\t}", "public boolean isEmpty() {\n\t\treturn treeMap.isEmpty();\n\t}", "public boolean isEmpty()\r\n {\n return this.top == null;\r\n }", "public boolean isEmpty() {\n return this.top == null;\n }", "public boolean isSetPos() {\n return this.pos != null;\n }", "public boolean isSetPos() {\n return this.pos != null;\n }", "private boolean isTreeFull() {\n // The number of leaf nodes required to store the whole vector\n // (each leaf node stores 32 elements).\n int requiredLeafNodes = (totalSize >>> 5);\n\n // The maximum number of leaf nodes we can have in a tree of this\n // depth (each interior node stores 32 children).\n int maxLeafNodes = (1 << treeDepth);\n\n return (requiredLeafNodes > maxLeafNodes);\n }", "public boolean isEmpty(){\n return (root == null);\n }", "public boolean isEmpty( )\r\n\t{\r\n\t\treturn root == null;\r\n\t}", "public boolean isEmpty()\n {\n return root == nil;\n }", "public boolean isEmpty()\n {\n return root == nil;\n }", "public boolean isEmpty() {\r\n \r\n // return a boolean, true if empty\r\n return root == null;\r\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn top==null;\r\n\t}", "public boolean isLeaf() {\n\t\treturn children.isEmpty();\n\t}", "public boolean isRoot() { return getAncestorCount()<2; }", "public boolean isLeaf()\n/* */ {\n/* 477 */ return this.children.isEmpty();\n/* */ }", "public boolean isEmpty() {\r\n return (top == null);\r\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 isLeaf() {\n return children.size() == 0;\n }", "public boolean isLeaf() {\n return children.size() == 0;\n }", "@Override\n public boolean currentHasChildren() {\n return ! ((FxContainerNode) currentNode()).isEmpty();\n }", "@Override\n public boolean currentHasChildren() {\n return ! ((FxContainerNode) currentNode()).isEmpty();\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn top < 0;\n\t}", "private boolean hasLeftChild(int index) {\n return leftChild(index) <= size;\n }", "boolean hasIsNodeOf();", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn topIndex < 0;\r\n\t}", "public boolean hasChilds() {\n return childs != null && !childs.isEmpty();\n }", "public boolean testTraversal() {\n if (parent == null){\n return false;\n }\n return testTraversalComponent(parent);\n }", "public boolean empty( ) {\n return (root == null);\n }", "public boolean checkRoot() {\n\t\t\treturn (this.getParent().getHeight() == -1);\n\t\t}", "public boolean hasTopLevelNode(IAstTopLevelNode node);", "public boolean getAllowsChildren() { return !isLeaf(); }" ]
[ "0.69039893", "0.68967533", "0.67058593", "0.66558504", "0.6618011", "0.65028477", "0.6481072", "0.6468154", "0.6468154", "0.6468154", "0.6468154", "0.6462141", "0.6462141", "0.6433891", "0.6433605", "0.64101106", "0.6385131", "0.6327524", "0.6327234", "0.6266547", "0.6266547", "0.6264481", "0.6241181", "0.6224495", "0.6218359", "0.61947", "0.61947", "0.6191728", "0.61812407", "0.6161807", "0.6131551", "0.612082", "0.61089426", "0.61084646", "0.6108032", "0.6105032", "0.6105032", "0.6105032", "0.60935014", "0.6080871", "0.6079822", "0.60729223", "0.60662484", "0.60662484", "0.6057064", "0.6056225", "0.6046684", "0.6046684", "0.6046485", "0.6046485", "0.60429573", "0.603094", "0.60305744", "0.60299397", "0.60299397", "0.60299397", "0.60299397", "0.60299397", "0.60299397", "0.6015097", "0.6011913", "0.6011601", "0.6005268", "0.59944236", "0.5991326", "0.59885114", "0.59869367", "0.5964534", "0.59549963", "0.5953968", "0.5952158", "0.5949508", "0.5943172", "0.59341675", "0.59341675", "0.59333456", "0.59179604", "0.59126514", "0.59037954", "0.59037954", "0.5898998", "0.5889665", "0.588869", "0.58817506", "0.586525", "0.5865142", "0.58573157", "0.5849112", "0.5849112", "0.5837858", "0.5837858", "0.5831004", "0.5827892", "0.5827882", "0.5825645", "0.58168745", "0.5813246", "0.581171", "0.58112127", "0.5801326", "0.57971793" ]
0.0
-1
additional methods Returns an iterable Collection containing the children of given Position.
Iterable<Position<E>> children(Position<E> p) throws IllegalArgumentException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<ChildType> getChildren();", "@Nonnull\n Iterable<? extends T> getChildren();", "protected final synchronized Iterator<T> children() {\n if( children == null ) {\n children = Collections.emptyList();\n }\n \n return children.iterator();\n }", "abstract public Collection<? extends IZipNode> getChildren();", "@TimeComplexity(\"o(1)\") @TimeComplexityAmortized(\"o(1)\") @TimeComplexityExpected(\"o(1)\")\n public Iterable<Position<E>> children(Position<E> v)\n throws InvalidPositionException {\n PNode<E> p = validate(v);\n LinkedSequence<E> ans = new LinkedSequence<>();\n ans.addLast(p.left.element());\n ans.addLast(p.right.element());\n\n return ans.positions(); // O(n) @@@ OPTIMIZE ME!\n }", "public Vector getChildren()\r\n\t{\r\n\t\treturn m_children;\r\n\t}", "protected abstract List<T> getChildren();", "public Collection<BaseGenerator> \n getChildren() \n {\n return Collections.unmodifiableCollection(pChildren.values());\n }", "public Vector getChildren() {\n return this.children;\n }", "public ArrayList getChildren()\n {\n return children;\n }", "public List<RealObject> getChildren();", "public List<PafDimMember> getChildren() {\r\n\t\t\r\n\t\tList<PafDimMember> childList = null;\r\n\t\t\r\n\t\t// If no children are found, return empty array list\r\n\t\tif (children == null) {\r\n\t\t\tchildList = new ArrayList<PafDimMember>();\r\n\t\t} else {\r\n\t\t\t// Else, return pointer to children\r\n\t\t\tchildList = children;\r\n\t\t}\r\n\t\treturn childList;\r\n\t}", "ArrayList<Expression> getChildren();", "public List<Node> getChildren() {\r\n\t\t\tchildren.reset();\r\n\t\t\treturn children;\r\n\t\t}", "public <T> Collection<T> getChildrenCollection(Class<T> clz);", "public Iterator<ParseTreeNode> children() {\r\n if ((_children == null) || (_children.size() == 0)) {\r\n return NULL_ITERATOR;\r\n }\r\n return _children.iterator();\r\n }", "public List<ChronologElement> getChildren() {\r\n return children;\r\n }", "public Vector<GraphicalLatticeElement> getChildren() {\n\t\tVector<GraphicalLatticeElement> children = new Vector<GraphicalLatticeElement>();\n\t\tif (childrenEdges != null)\n\t\t\tfor (int i = 0; i < childrenEdges.size(); i++) {\n\t\t\t\tEdge edge = childrenEdges.elementAt(i);\n\t\t\t\tchildren.add(edge);\n\t\t\t\tchildren.add(edge.getDestination());\n\t\t\t}\n\t\t\n\t\treturn children;\n\t}", "public ParseTree[] getChildren() {\n\t\treturn children;\n\t}", "public Collection<VisualLexiconNode> getChildren() {\n \t\treturn children;\n \t}", "public ResultMap<BaseNode> listChildren();", "public ArrayList<Node> getChildren() { return this.children; }", "public LinkedList<Node> getChildren() { \r\n LinkedList<Node> nodes = new LinkedList<>();\r\n for(int i=0;i<=size;i++)\r\n nodes.add(children[i]);\r\n return nodes;\r\n }", "public ArrayList<Node> getChildren() {\n return children;\n }", "public List<GuiElementBase> getChildren()\n\t\t{ return Collections.unmodifiableList(children); }", "public List<MagicPattern> getChildren() {\n\t\treturn children;\n\t}", "Collection<DendrogramNode<T>> getChildren();", "public ArrayList<Node> getChildren(){\n return children;\n }", "public List<HtmlMap<T>> getChildren()\n\t{\n\t\treturn m_children;\n\t}", "@Override\n public Iterator<Position> iterator() {\n \t\n \t//create the child-position on calling the iterator\n \tcreateChildren();\n \t\n return new Iterator<Position> () {\n private final Iterator<Position> iter = children.iterator();\n\n @Override\n public boolean hasNext() {\n return iter.hasNext();\n }\n\n @Override\n public Position next() {\n return iter.next();\n }\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException(\"no changes allowed\");\n }\n };\n }", "public Item2Vector<Concept> getChildren() { return children; }", "public SeleniumQueryObject children() {\n\t\treturn ChildrenFunction.children(this, elements);\n\t}", "public @NonNull List<@NonNull Node<@Nullable T>> getChildren() {\n return Collections.unmodifiableList(this.children);\n }", "public ObjectList<DynamicModelPart> getChildren() {\n return this.children;\n }", "public ArrayList<Node> getChildren() {\n if (children != null) return children;\n children = new ArrayList<>();\n for (Move m : state.getLegalMoves()) {\n Node child = new Node(this, m);\n children.add(child);\n }\n return children;\n }", "public ArrayList<ExpandableListItems_Child> getChildren()\n {\n return children;\n }", "List<Node<T>> children();", "public List<TreeNode> getChildren ()\r\n {\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"getChildren of \" + this);\r\n }\r\n\r\n return children;\r\n }", "public List<? extends Resource> getChildren() {\n\t\tLOGGER.debug(\"Get Children \");\n\t\tfinal Iterator<Content> children = content.listChildren().iterator();\n\t\treturn ImmutableList.copyOf(new PreemptiveIterator<SparseMiltonContentResource>() {\n\n\t\t\t\t\tprivate SparseMiltonContentResource resource;\n\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected boolean internalHasNext() {\n\t\t\t\t\t\twhile (children.hasNext()) {\n\t\t\t\t\t\t\tContent n = children.next();\n\t\t\t\t\t\t\tif (n != null) {\n\t\t\t\t\t\t\t\tresource = new SparseMiltonContentResource(n\n\t\t\t\t\t\t\t\t\t\t.getPath(), session, n);\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tresource = null;\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected SparseMiltonContentResource internalNext() {\n\t\t\t\t\t\treturn resource;\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t}", "public ArrayList<PiptDataElement> getChildren()\n {\n\treturn children;\n }", "@NotNull\n @Override\n public TreeElement[] getChildren() {\n return callChildren(this, navigationItem);\n }", "@NotNull\n public abstract JBIterable<T> children(@NotNull T root);", "public Human[] getChildren() {\n return children;\n }", "public List<CourseComponent> getChildContainers() {\n List<CourseComponent> childContainers = new ArrayList<>();\n if (children != null) {\n for (CourseComponent c : children) {\n if (c.isContainer())\n childContainers.add(c);\n }\n }\n return childContainers;\n }", "public ArrayList<LexiNode> getChilds(){\n\t\treturn childs;\n\t}", "public Collection<V> getChildren(V vertex);", "public List<String> children() {\n return this.children;\n }", "@Override\n public LinkedList<ApfsElement> getChildren() {\n return this.children;\n }", "@Override\n public List<TreeNode<N>> children() {\n return Collections.unmodifiableList(children);\n }", "@Override\n\t\tpublic List<? extends IObject> getChildren() {\n\t\t\tif (!this.hasChildren()) {\n\t\t\t\treturn new ArrayList<>();\n\t\t\t}\n\t\t\tIterator<IFolder> subfolders = this.folder.subfolder();\n\t\t\treturn Lists.transform(ImmutableList.copyOf(subfolders), new Function<IFolder, FolderTreeObject>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic FolderTreeObject apply(IFolder input) {\n\t\t\t\t\treturn new FolderTreeObject(input, FolderTreeObject.this.rootFolder);\n\t\t\t\t}\n\t\t\t});\n\t\t}", "public List<IContentNode> getChilds(int start, int limit);", "public List<EntityHierarchyItem> children() {\n return this.innerProperties() == null ? null : this.innerProperties().children();\n }", "public Node[] getChildren() {\n\t\treturn children.toArray(new Node[0]);\n\t}", "public JodeList children() {\n return new JodeList(node.getChildNodes());\n }", "public List getChildren(){\n List result = new ArrayList();\n Iterator it = getSpecialisation().iterator();\n while(it.hasNext()){\n Generalization g = (Generalization)it.next(); \n result.add(g.getChild());\n //System.out.println(\" \"+getName()+\" Parent:\" +g.getParent().getName());\n }\n return result;\n }", "public List<TreeNode> getChildren() {\n\t\treturn children;\n\t}", "public Vector getChildren() {\n return null;\n }", "public Node[] getChildren(){\n return children.values().toArray(new Node[0]);\n }", "public IStatus[] getChildren() {\n\t\treturn adaptee.getChildren();\n\t}", "public Node[] getChildren(){return children;}", "public List<FileNode> getChildren() {\r\n return this.children;\r\n }", "public List<String> getChildren() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Node> chilren() {\n\t\treturn children;\n\t}", "public ArrayList<BoardTree> getChildren() {\n final ArrayList<BoardTree> children = new ArrayList<>();\n\n int[][] possibleMoves = getPossibleMoves(this.board, this.isPlayersMove);\n \n // For each possible move, add a child node\n for (int[] possMove : possibleMoves) {\n if (numNodes >= MAX_NUM_NODES) return children;\n\n final int[][] updatedBoard = applyMove(this.board, possMove);\n \n final BoardTree newChild = new BoardTree(possMove, updatedBoard, this.isPlayersMove);\n\n children.add(newChild);\n }\n\n // If the node we are creating children for does not have any possible moves for it's \n //player, but the opponent does, make this node belong to the other player, and get \n //it's children.\n // This handles the case where a player has \"boxed off\" an area.\n if (possibleMoves.length < 1 && Utils.hasMove(board)) {\n this.isPlayersMove = !this.isPlayersMove;\n return this.getChildren();\n }\n return children;\n }", "public String getChildren() {\n return children;\n }", "public java.util.List<BinomialTree<KEY, ITEM>> children()\n\t{\n\t\treturn _children;\n\t}", "public Enumeration enumerateChildren() {\n return this.children.elements();\n }", "Iterable<Position<E>> positions();", "@Override\r\n\tpublic List<TreeNode> getChildren() {\n\t\tif(this.children==null){\r\n\t\t\treturn new ArrayList<TreeNode>();\r\n\t\t}\r\n\t\treturn this.children;\r\n\t}", "abstract public List<Command> getChildren();", "public Vector<Node> getChildren(){\n\t\t Vector<Node> children = new Vector<>(0);\n\t\t Iterator<Link> l= myLinks.iterator();\n\t\t\twhile(l.hasNext()){\n\t\t\t\tLink temp=l.next();\n\t\t\t\tif(temp.getM().equals(currNode))\n\t\t\t\t children.add(temp.getN());\n\t\t\t\tif(temp.getN().equals(currNode))\n\t\t\t\t children.add(temp.getM());\n\t\t\t}\n\t\treturn children;\n\t}", "public ArrayList<BTreeNode<E>> getChildren() {\n\t\treturn children;\n\t}", "@DISPID(4)\n\t// = 0x4. The runtime will prefer the VTID if present\n\t@VTID(10)\n\tcom.gc.IList children();", "public final FxNodeCursor iterateChildren() {\n FxNode n = currentNode();\n if (n == null) throw new IllegalStateException(\"No current node\");\n if (n.isArray()) { // false since we have already returned START_ARRAY\n return new FxArrayCursor((FxArrayNode) n, this);\n }\n if (n.isObject()) {\n return new FxObjectCursor((FxObjNode) n, this);\n }\n throw new IllegalStateException(\"Current node of type \"+n.getClass().getName());\n }", "public List<TWidget> getChildren() {\n return children;\n }", "public List<TreeNode> getChildrenNodes();", "public List<CacheOverlay> getChildren() {\n return new ArrayList<>();\n }", "List<Tag<? extends Type>> getChildren();", "public List<GameStateChild> getChildren() {\n return null;\n }", "public XMLElement[] getChildren()\n/* */ {\n/* 532 */ int childCount = getChildCount();\n/* 533 */ XMLElement[] kids = new XMLElement[childCount];\n/* 534 */ this.children.copyInto(kids);\n/* 535 */ return kids;\n/* */ }", "public AST[] getChildren()\r\n {\n \tif (children == null) {\r\n \t\tList<AST> temp = new java.util.ArrayList<AST>();\r\n \t\ttemp.addAll(fields);\r\n \t\ttemp.addAll(predicates);\r\n \t\ttemp.addAll(constructors);\r\n \t\ttemp.addAll(methods);\r\n \t\tchildren = (AST[]) temp.toArray(new AST[0]);\r\n \t}\r\n \treturn children;\r\n }", "public List<XML2JSONObject> getChildren() {\r\n return _childs;\r\n }", "public List getChildren(iNamedObject no)\n\t{\n\t\tif (no instanceof iNamedGroup)\n\t\t{\n\t\t\treturn ((iNamedGroup) no).getChildrenList();\n\t\t}\n\t\treturn emptyVec;\n\t}", "public abstract List<Node> getChildNodes();", "public List<Element> getChildElements() {\n return getChildNodes().stream().filter(n -> n instanceof Element)\n .map(n -> (Element) n).collect(Collectors.toUnmodifiableList());\n }", "public String[] getChildList() {\n if (this.children == null) {\n return this.pointsByChild.keySet().toArray(new String[this.pointsByChild.size()]);\n } else {\n return this.children.clone();\n }\n }", "List<UIComponent> getChildren();", "public String getChildren() {\n\t\treturn children;\n\t}", "public ArrayList getChildren() {\n return m_values;\n }", "public IMemberSet getChildren(IMember type) {\n\t\tString key = type.getHandleIdentifier();\n\t\treturn _map.get(key);\n\t}", "public HashMap<Integer, List<Integer>> getChildren() {\n\t\treturn children;\n\t}", "public Enumeration children()\n {\n return new Enumeration(){\n int i = 0;\n public boolean hasMoreElements()\n {\n return i < mChildren.length;\n }\n\n public Object nextElement()\n {\n return mChildren[i++];\n }\n };\n }", "@Override\n\tpublic TreeNode[] getChildren() {\n\t\treturn this.children ;\n\t}", "public List<CourseComponent> getChildLeafs() {\n List<CourseComponent> childLeafs = new ArrayList<>();\n if (children != null) {\n for (CourseComponent c : children) {\n if (!c.isContainer())\n childLeafs.add(c);\n }\n }\n return childLeafs;\n }", "public Set<VfsFile> getChildren()\n {\n return children;\n }", "@objid (\"808c084f-1dec-11e2-8cad-001ec947c8cc\")\n public final List<GmNodeModel> getChildren() {\n return new ArrayList<>(this.children);\n }", "public Collection<ConfigurationTreeNode> getChildren() {\r\n\t\treturn children.values();\r\n\t}", "@Override\n\tpublic Set<HtmlTag> getChildren()\n\t{\n\t\tImmutableSet.Builder<HtmlTag> childrenBuilder = ImmutableSet.builder();\n\t\tfor(TreeNode<? extends HtmlTag> child : node.getChildren())\n\t\t{\n\t\t\tchildrenBuilder.add(child.getValue());\n\t\t}\n\t\treturn childrenBuilder.build();\n\t}", "@DISPID(-2147417075)\n @PropGet\n com4j.Com4jObject children();", "public List<PlanNode> getChildren() {\n return childrenView;\n }" ]
[ "0.77312875", "0.7320211", "0.7116451", "0.7089127", "0.70829", "0.7079006", "0.7055877", "0.7037648", "0.7034002", "0.695605", "0.6944902", "0.6921801", "0.6894887", "0.6872574", "0.6856538", "0.68552285", "0.6821626", "0.68140835", "0.6811373", "0.68017393", "0.6771212", "0.676602", "0.6744381", "0.6718931", "0.6705587", "0.6690709", "0.66869146", "0.6686527", "0.6621741", "0.65992993", "0.65913177", "0.6585429", "0.6559308", "0.6556241", "0.6543606", "0.654091", "0.65351194", "0.65317476", "0.6522368", "0.6517711", "0.6497183", "0.64812505", "0.6448551", "0.6444151", "0.64422756", "0.6441593", "0.6440501", "0.64274555", "0.6425512", "0.6425173", "0.64058715", "0.6401436", "0.6399872", "0.6386675", "0.6384472", "0.6380359", "0.637721", "0.63602597", "0.6355612", "0.635272", "0.63516784", "0.6348215", "0.6343685", "0.63407475", "0.6334831", "0.63060653", "0.63055176", "0.63007486", "0.6296847", "0.6294138", "0.62923914", "0.6289444", "0.62893295", "0.6282173", "0.6272625", "0.6272152", "0.6271534", "0.62682897", "0.6265802", "0.62609094", "0.6260733", "0.6248133", "0.62450117", "0.62433785", "0.6234335", "0.62323374", "0.6231414", "0.62311333", "0.6230639", "0.61984587", "0.6196031", "0.61912096", "0.6188897", "0.61841714", "0.6182585", "0.6169352", "0.6156362", "0.6153972", "0.61532223", "0.6105275" ]
0.77882576
0
Returns an iterable Collection of all Positions of the tree.
Iterable<Position<E>> positions();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterable<PortfolioPosition> getPositions() {\n return _positions;\n }", "public Position[] getPositions() {\n return _positions;\n }", "public List<Position> getPositions(){\r\n List<Position> listPosition = new ArrayList();\r\n int row=currentPosition.getRow(),column=currentPosition.getColumn();\r\n listPosition=getPositionFor(row, column, listPosition);\r\n return listPosition;\r\n }", "public List<Position> getPositions() {\n List<Position> listPositions = new ArrayList<>();\n for (int i = 0; i < this.size; i++) {\n switch (this.orientation) {\n case HORIZONTAL:\n listPositions.add(new Position(\n this.currentPosition.getRow(),\n this.currentPosition.getColumn() + i));\n break;\n case VERTICAL:\n listPositions.add(new Position(\n this.currentPosition.getRow() + i,\n this.currentPosition.getColumn()));\n }\n }\n\n return listPositions;\n }", "public long getPositions() {\n return positions;\n }", "List<Position> selectAll();", "public List<TermVectorPosition> getPositions() {\n return positions;\n }", "public interface Tree<E> extends Iterable<E>\r\n{\r\n //accessor methods\r\n /**\r\n * Returns the Position of the root of the tree.\r\n * @return the Position of the root of the tree\r\n */\r\n Position<E> root();\r\n \r\n /**\r\n * Returns the Position of the parent of given Position.\r\n * @param p Position to check\r\n * @return the Position of the parent of given Position (or null if p is the root). \r\n * @throws IllegalArgumentException if Position isn't valid\r\n */\r\n Position<E> parent(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Returns the number of children of given Position.\r\n * @param p Position to check\r\n * @return the number of children of given Position\r\n * @throws IllegalArgumentException if Position isn't valid\r\n */\r\n int numChildren(Position<E> p) throws IllegalArgumentException;\r\n\r\n /**\r\n * Returns the number of positions (and therefore elements) that are contained in tree.\r\n * @return the number of positions (and therefore elements) that are contained in tree\r\n */\r\n int size();\r\n \r\n \r\n //query methods\r\n /**\r\n * Tests whether given Position has at least one child.\r\n * @param p Position to check\r\n * @return true if given Position has at least one child, false otherwise\r\n * @throws IllegalArgumentException if Position isn't valid \r\n */\r\n boolean isInternal(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Tests whether given Position has any children.\r\n * @param p Position to check\r\n * @return true if given Position does not have children, false otherwise\r\n * @throws IllegalArgumentException if Position isn't valid \r\n */\r\n boolean isExternal(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Tests whether given Position is the root of the tree.\r\n * @param p Position to check\r\n * @return true if given Position is the root, false otherwise\r\n * @throws IllegalArgumentException if Position isn't valid \r\n */\r\n boolean isRoot(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Tests whether tree contains any Positions (and therefore elements).\r\n * @return true if tree doesn't contain any Positions, false otherwise\r\n */\r\n boolean isEmpty();\r\n \r\n \r\n \r\n //additional methods\r\n /**\r\n * Returns an iterable Collection containing the children of given Position.\r\n * @param p Position to check\r\n * @return an iterable Collection containing the children of given Position\r\n * @throws IllegalArgumentException if Position isn't valid\r\n */\r\n Iterable<Position<E>> children(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Returns an iterable Collection of all Positions of the tree.\r\n * @return an iterable Collection of all Positions of the tree.\r\n */\r\n Iterable<Position<E>> positions(); \r\n \r\n /**\r\n * Returns an iterator for all elements in the tree.\r\n * Ensures tree itself is iterable.\r\n * @return an iterator for all elements in the tree\r\n */\r\n @Override\r\n Iterator<E> iterator(); \r\n}", "public Iterable<Point2D> points() {\n\n\t\tQueue<Point2D> points = new Queue<Point2D>();\n\t\tQueue<Node> queue = new Queue<Node>();\n\t\tqueue.enqueue(root);\n\n\t\twhile (!queue.isEmpty()) {\n\t\t\tNode x = queue.dequeue();\n\t\t\tif (x == null)\n\t\t\t\tcontinue;\n\t\t\tpoints.enqueue(x.point);\n\t\t\tqueue.enqueue(x.left);\n\t\t\tqueue.enqueue(x.right);\n\t\t}\n\t\treturn points;\n\t}", "Collection<Point> getAllCoordinates();", "public Iterable<PosicaoMapa> pegaPosicoes()\n\t{\n\t\treturn posicoes;\n\t}", "public Iterable<Point2D> points() {\n if (root == null) return new Queue<Point2D>();\n\n Queue<Point2D> pts = new Queue<Point2D>();\n Queue<Node> ptStore = new Queue<>();\n ptStore.enqueue(root);\n do {\n Node current = ptStore.dequeue();\n pts.enqueue(current.p);\n if (current.left != null) ptStore.enqueue(current.left);\n if (current.right != null) ptStore.enqueue(current.right);\n } while (!ptStore.isEmpty());\n return pts;\n }", "public ArrayList<NPPos> getNPPosition(){\n Iterator it = nextPanels.iterator();\n ArrayList<NPPos> listPositions = new ArrayList<>();\n while(it.hasNext()){\n listPositions.add((NPPos) positions.get(it.next()));\n }\n return listPositions;\n }", "public ArrayList<Vector2D> getPositions() {\n ArrayList<Vector2D> positions = new ArrayList<>();\n for (Vector2D pos : this.template) {\n positions.add(pos.addVectorGetNewVector(this.center));\n }\n return positions;\n }", "public List<Integer> getBySetPos() {\n\t\treturn bySetPos;\n\t}", "@TimeComplexity(\"o(1)\") @TimeComplexityAmortized(\"o(1)\") @TimeComplexityExpected(\"o(1)\")\n public Iterable<Position<E>> children(Position<E> v)\n throws InvalidPositionException {\n PNode<E> p = validate(v);\n LinkedSequence<E> ans = new LinkedSequence<>();\n ans.addLast(p.left.element());\n ans.addLast(p.right.element());\n\n return ans.positions(); // O(n) @@@ OPTIMIZE ME!\n }", "Iterable<Position<E>> children(Position<E> p) throws IllegalArgumentException;", "public static List<Integer> posList() {\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tlist.add(1);\n\t\tlist.add(22);\n\t\tlist.add(93);\n\t\tlist.add(1002);\n\t\tlist.add(0);\n\t\treturn list;\n\t}", "public List<ObjectIdentifier> getPositionIds() {\n return _positionIds;\n }", "public IGPositionList getPositions() throws SessionException {\n\t\tRestAPIGet get = new RestAPIGet(\"/positions\");\n\t\tRestAPIResponse response = get.execute(this);\n\t\tString json = response.getResponseBodyAsJson();\n\t\treturn IGPositionList.fromJson(json);\n\t}", "@Override\n public Iterator<Position> iterator() {\n \t\n \t//create the child-position on calling the iterator\n \tcreateChildren();\n \t\n return new Iterator<Position> () {\n private final Iterator<Position> iter = children.iterator();\n\n @Override\n public boolean hasNext() {\n return iter.hasNext();\n }\n\n @Override\n public Position next() {\n return iter.next();\n }\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException(\"no changes allowed\");\n }\n };\n }", "public String getPositionList() {\r\n return PositionList;\r\n }", "public List<LatLng> getCoordinates() {\n return getGeometryObject();\n }", "public List<Position> getFoodPositions() {\n List<Position> positions = new ArrayList<>();\n\n for (int i = 0; i < amount; i++) {\n positions.add(foodPositions[i]);\n }\n return positions;\n }", "public Pos[] getAllPiecesPos() {\n\t\tArrayList<Pos> resPos = new ArrayList<Pos>();\n\t\tfor (int i = 0; i < Board.getRow(); i++) {\n\t\t\tfor (int j = 0; j < Board.getCol(); j++) {\n\t\t\t\tif (Board.getSlot(i, j).Piece() != null) {\n\t\t\t\t\tresPos.add(new Pos(i, j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (resPos.size() > 0) {\n\t\t\tPos[] res = new Pos[resPos.size()];\n\t\t\tfor (int i = 0; i < res.length; i++) {\n\t\t\t\tres[i] = resPos.get(i);\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\t\telse return null;\n\t}", "public Queue<Point> getPoints() {\n\tQueue<Point> iter = new Queue<Point>();\n\tfor (Shape s : this.shapes) {\n\t for (Point p : s.getPoints())\n\t\titer.enqueue(p);\n\t}\n\n\treturn iter;\n }", "public Position getPos() {\n\t\treturn coords;\n\t}", "public HashSet<BlockPos> getContainers() {\n\t\tthis.validateContainers();\n\t\treturn this.containers;\n\t}", "ImmutableList<SchemaOrgType> getPositionList();", "public List<RoutePosition> getRoutePositions() {\n\n return routePositions;\n }", "Collection<Tree<V, E>> getTrees();", "public List<Point> getPoints() {\n return pointRepository.findAll()//\n .stream() //\n .sorted((p1, p2) -> Integer.compare(p1.getPosition(), p2.getPosition()))//\n .collect(Collectors.toList());\n }", "public List<Double> getXPosList()\n\t{\n\t\treturn this.xPosList;\n\t}", "@Select(GET_ALL)\n @Override\n ArrayList<Position> getAll();", "public List<Position> getOpenPositions() throws AlpacaAPIException {\n Type listType = new TypeToken<List<Position>>() {\n }.getType();\n\n AlpacaRequestBuilder urlBuilder =\n new AlpacaRequestBuilder(apiVersion, baseAccountUrl, AlpacaConstants.POSITIONS_ENDPOINT);\n\n HttpResponse<JsonNode> response = alpacaRequest.invokeGet(urlBuilder);\n\n if (response.getStatus() != 200) {\n throw new AlpacaAPIException(response);\n }\n\n return alpacaRequest.getResponseObject(response, listType);\n }", "Position<E> root();", "public List<LatLng> getCoordinates() {\n return mCoordinates;\n }", "public ArrayList<Coordinate> getCoordinates() {\n return coordinates;\n }", "public Collection <Point> getAllPoints(){\n Collection <Point> points = new ArrayList<>();\n for(int i = 0; i < width; i++){\n for(int j = 0; j < height; j++){\n points.add(new Point(i, j));\n }\n }\n return points;\n }", "public List<Float[]> getCoordinates() {\n return coordinates;\n }", "public Iterable<Integer> levelOrder() {\n Queue<Integer> keys = new Queue<Integer>();\n Queue<TreeNode> queue = new Queue<TreeNode>();\n queue.enqueue(root);\n while (!queue.isEmpty()) {\n TreeNode x = queue.dequeue();\n if (x == null) {\n\t\t\t\t/* -1 stands for null node. */\n\t\t\t\tkeys.enqueue(-1);\n\t\t\t\tcontinue;\n\t\t\t}\n keys.enqueue(x.val);\n queue.enqueue(x.left);\n queue.enqueue(x.right);\n }\n return keys;\n }", "Iterable<Long> vertices() {\n return nodes.keySet();\n }", "public List<Integer> selectPosAllId() {\n\t\treturn postDao.selectPosAllId();\r\n\t}", "@Override\n\tpublic List<Coordonnees> getPosMines() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Location> getVertices() {\n\t\treturn locations;\n\t}", "@Override\n public Iterable<Id> depthIdIterable() {\n return idDag.depthIdIterable();\n }", "public Iterable<Place> places(){\n return places;\n }", "public Sq<DirectedPosition> directedPositions() {\r\n return directedPos;\r\n }", "public java.util.List getPosition()\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(POSITION$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getListValue();\n }\n }", "public Collection<LazyNode2> getVertices() {\n List<LazyNode2> l = new ArrayList();\n \n for(Path p : getActiveTraverser())\n //TODO: Add cache clearing\n l.add(new LazyNode2(p.endNode().getId()));\n \n return l;\n }", "public char[] getPositions() {\r\n\t\treturn rotors.getPositions();\r\n\t}", "public int[][] place(){\r\n\t\treturn coords(pos);\r\n\t}", "public Iterable<Integer> levelOrder() {\n\t\tLinkedList<Integer> keys = new LinkedList<Integer>();\n\t\tLinkedList<Node> queue = new LinkedList<Node>();\n\t\tqueue.add(root);\n\t\twhile (!queue.isEmpty()) {\n\t\t\tNode n = queue.remove();\n\t\t\tif (n == null) continue;\n\t\t\tkeys.add(n.key);\n\t\t\tqueue.add(n.left);\n\t\t\tqueue.add(n.right);\n\t\t}\n\t\treturn keys;\n\t}", "public Iterable<Vertex> getVertices() {\n return mVertices.values();\n }", "public List<Tree> getTrees() {\n return trees;\n }", "public ArrayList<Integer> getOrdering() {\n return T.getRoot().getOrder();\n }", "public Iterable<K> inOrder() {\n Queue<K> q = new Queue<>();\n inOrder(root, q);\n return q;\n }", "public GeoPoint position(){\n return position;\n }", "public List<Component> getAllTree() {\n\t\tList<Component> ret = new ArrayList<>();\n\t\tret.add(this);\n\t\tfor (Component c : getChilds()) {\n\t\t\tList<Component> childs = c.getAllTree();\n\t\t\t// retire les doublons\n\t\t\tfor (Component c1 : childs) {\n\t\t\t\tif (!ret.contains(c1)) {\n\t\t\t\t\tret.add(c1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public Array<Point> allOuterPoints() {\r\n \tArray<Point> innerPoints = innerPiece.getPoints();\r\n Array<Point> outerPoints = new Array<Point>();\r\n for (Point inner : innerPoints) {\r\n outerPoints.add(toOuterPoint(inner));\r\n }\r\n return outerPoints;\r\n }", "public ArrayList<Location> getLocations()\n {\n ArrayList<Location> locs = new ArrayList<>();\n for (int row = 0; row < squares.length; row++)\n {\n for (int col = 0; col < squares[0].length; col++)\n {\n locs.add(new Location(row,col));\n }\n }\n return locs;\n }", "Collection<L> getLocations ();", "ArrayList<Expression> getChildren();", "public ArrayList<Integer> helper(int root, int pos) {\n ArrayList<Integer> positions = new ArrayList<>();\n int base = 0;\n int tmp = (root * 2) + 1;\n if (pos == 8) base = 3;\n else if (pos == 4) base = 2;\n else if (pos == 2) base = 1;\n for (int i = 0; i < base; i++) tmp = (tmp * 2) + 1;\n for (int j = 0; j < pos * 2; j++) positions.add(tmp + j);\n return positions; // while ((tmp = ((location * 2) + 1)) <= 127) ;\n }", "public List<Double> getCoordinates() {\n return coordinates;\n }", "public ArrayList<Integer> inOrderTraversal() {\r\n\t\treturn inOrderTraversal(treeMinimum());\r\n\t}", "public IAstTopLevelNode[] getTopLevelNodes();", "public double[] getCoordinates() {\n\t\treturn coordinateTools.localToCoordinates(this);\n\t}", "public Pos getPos()\r\n\t{\r\n\t\treturn position;\r\n\t}", "public ImmutableList<X> getXs() {\n return _xs;\n }", "public ArrayList<float []> getObjectPos(){\n ArrayList<float []> o_pos = new ArrayList<>();\n float [] pos = new float [3];\n for (int i = 0; i < field.length; i++){\n pos[0] = field[i].x;\n pos[1] = field[i].y;\n pos[2] = field[i].z;\n o_pos.add(pos);\n }\n return o_pos;\n }", "public Iterator<ParseTreeNode> children() {\r\n if ((_children == null) || (_children.size() == 0)) {\r\n return NULL_ITERATOR;\r\n }\r\n return _children.iterator();\r\n }", "public java.util.List<org.landxml.schema.landXML11.GPSPositionDocument.GPSPosition> getGPSPositionList()\r\n {\r\n final class GPSPositionList extends java.util.AbstractList<org.landxml.schema.landXML11.GPSPositionDocument.GPSPosition>\r\n {\r\n public org.landxml.schema.landXML11.GPSPositionDocument.GPSPosition get(int i)\r\n { return GPSSetupImpl.this.getGPSPositionArray(i); }\r\n \r\n public org.landxml.schema.landXML11.GPSPositionDocument.GPSPosition set(int i, org.landxml.schema.landXML11.GPSPositionDocument.GPSPosition o)\r\n {\r\n org.landxml.schema.landXML11.GPSPositionDocument.GPSPosition old = GPSSetupImpl.this.getGPSPositionArray(i);\r\n GPSSetupImpl.this.setGPSPositionArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.GPSPositionDocument.GPSPosition o)\r\n { GPSSetupImpl.this.insertNewGPSPosition(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.GPSPositionDocument.GPSPosition remove(int i)\r\n {\r\n org.landxml.schema.landXML11.GPSPositionDocument.GPSPosition old = GPSSetupImpl.this.getGPSPositionArray(i);\r\n GPSSetupImpl.this.removeGPSPosition(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return GPSSetupImpl.this.sizeOfGPSPositionArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new GPSPositionList();\r\n }\r\n }", "public int[] getMapPosition(){\n\t\treturn position;\n\t}", "public final native CoOrdinates getPosition() /*-{\r\n\t\treturn this.position;\r\n\t}-*/;", "Iterable<? extends XomNode> elements();", "public List<Coordinate> getShipPositions() {\n\t\treturn shipPositions;\n\t}", "public List<Long> depthTraverse(){\n return depthTraverseGen(null);\n }", "public HashSet<Position> getNeighborPos() { return neighborPos; }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.OrganizationPositionList getOrganizationPositionList();", "public Iterable<K> levelOrder() {\n Queue<K> keys = new Queue<>();\n Queue<Node> queue = new Queue<>();\n queue.enqueue(root);\n while (!queue.isEmpty()) {\n Node x = queue.dequeue();\n if (x == null) continue;\n keys.enqueue(x.key);\n queue.enqueue(x.left);\n queue.enqueue(x.right);\n }\n return keys;\n }", "public ReadOnlyIterator<ContextNode> getAllLeafContextNodes();", "public Collection<node_info> getV()\n{\n\treturn this.getNodes().values();\n}", "public int[] getCoords() {\n return coords;\n }", "@Override\n\tpublic D3int getPos() {\n\t\treturn myPos;\n\t}", "@Override\r\n\tpublic DataResult<List<JobPosition>> getAll() {\n\t\treturn new SuccessDataResult<List<JobPosition>>(this.jobPositionDao.findAll(), \"Job positions listed.\");\r\n\t\t\t\t\r\n\t}", "public CopyOnWriteArrayList<Point> \tgetOccupiedPositions() \t\t\t \t\t\t{ return this.occupiedPositions; }", "public Set<Location> getPlayerLocations()\n\t{\n\t\tSet<Location> places = new HashSet<Location>();\n\t\tfor(Location place: playerLocations.values())\n\t\t{\n\t\t\tplaces.add(place);\n\t\t}\n\t\treturn places;\n\t}", "@Override\r\n\tpublic ArrayList<E> getVertices() {\r\n\t\tArrayList<E> verts = new ArrayList<>();\r\n\t\tvertices.forEach((E t, Vertex<E> u) -> {\r\n\t\t\tverts.add(t);\r\n\t\t});\r\n\t\treturn verts;\r\n\t}", "@Override\n public double[] getPos() {\n return this.pos;\n }", "public Collection<Node> getNodeList(){\r\n return nodesMap.values();\r\n }", "public Iterable<Point2D> points() {\n\n return bst.keys();\n }", "abstract public Collection<? extends IZipNode> getChildren();", "public List<Node> toList() {\n return tree.toList();\n }", "public ArrayList<Node> getList(){\n \treturn this.children;\n }", "public Integer getPositionOrder() {\n return positionOrder;\n }", "@Override\n public Iterator<E> getLevelOrderIterator() {\n return new LevelOrderIterator();\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException(\n \"Null pointer provided instead of a query rectangle\");\n ptsInside = new SET<Point2D>();\n searchForPoints(root, rect);\n return ptsInside;\n }", "Iterator<Vertex<V, E, M>> getVertices() {\n return this.vertices.values().iterator();\n }", "public ArrayList<Integer> inOrderPrint() {\n\t\tArrayList<Integer> inOrder = new ArrayList<Integer>();\n\t\tinOrderPrint(root, inOrder);\n\t\treturn inOrder;\n\t}" ]
[ "0.7091416", "0.6883806", "0.68649584", "0.6808123", "0.6672328", "0.6635945", "0.65641105", "0.65624285", "0.649637", "0.64754784", "0.6431632", "0.6429634", "0.6377362", "0.6374483", "0.63697743", "0.634624", "0.6317248", "0.6195203", "0.61783385", "0.6176028", "0.6173296", "0.6082717", "0.608157", "0.60524815", "0.60268503", "0.6014857", "0.60069746", "0.59855634", "0.593804", "0.59135056", "0.58963335", "0.5875013", "0.5771906", "0.5769574", "0.5745027", "0.57371724", "0.57228816", "0.5675433", "0.5646416", "0.56422067", "0.56419486", "0.55973434", "0.5594443", "0.5592741", "0.5589708", "0.55865645", "0.5559309", "0.55560297", "0.5554999", "0.5552454", "0.5522817", "0.5498076", "0.5496781", "0.5493403", "0.5487461", "0.5486907", "0.54774624", "0.5453443", "0.5450576", "0.54482526", "0.5441302", "0.5425959", "0.5422995", "0.5420671", "0.54191995", "0.5413384", "0.54080725", "0.5406536", "0.5403803", "0.54037875", "0.5397267", "0.53941905", "0.5385237", "0.5384961", "0.53625107", "0.53558654", "0.53535706", "0.5352152", "0.53518474", "0.53505576", "0.53466207", "0.53364784", "0.5335442", "0.53316766", "0.5331138", "0.5330858", "0.5323494", "0.53234875", "0.5320758", "0.53145826", "0.5303658", "0.53011185", "0.52970135", "0.52947277", "0.52937156", "0.52934265", "0.52916497", "0.52901363", "0.5282453", "0.52799493" ]
0.7997695
0
Returns an iterator for all elements in the tree. Ensures tree itself is iterable.
@Override Iterator<E> iterator();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract TreeIter<T> iterator();", "public Iterator<Object> iterator()\r\n {\r\n return new MyTreeSetIterator(root);\r\n }", "@Override\n public Iterator<T> iterator() {\n return new IteratorTree(this.root, this.modCount);\n }", "public interface TreeIterable<T> extends Iterable<T>{\n TreeIterator<T> iterator();\n}", "@Override\n\tpublic Iterator<E> iterator() {\n\n\t\tNode tempRoot = root;\n\t\tinOrder(tempRoot);\n\t\treturn null;\n\t}", "@Override\n public OctreeIterator iterator()\n {\n Stack<CelestialBody> stack = new Stack<>();\n stack = this.root.iterate(stack);\n\n OctreeIterator iterator = new OctreeIterator(stack);\n return iterator;\n }", "@Override\n public Iterator<E> iterator() {\n return new AVLTreeIterator();\n }", "Iterable<? extends XomNode> elements();", "public Iterable<Key> iterator() {\n Queue<Key> queue = new LinkedList<>();\n inorder(root, queue);\n return queue;\n }", "public Iterator<TreeNode> iterator() {\n\t\ttraverse();\n\t\treturn traverseVector.iterator();\n\t}", "public Iterator <T> iterator (){\n\t\t// create and return an instance of the inner class IteratorImpl\n\t\t\t\treturn new HashAVLTreeIterator();\n\t}", "@Override\r\n public Iterator<NamedTreeNode<T>> iterator()\r\n {\r\n return new Iterator<NamedTreeNode<T>>()\r\n {\r\n NamedTreeNode<T> n = (NamedTreeNode<T>)getLeftNode();\r\n @Override\r\n public boolean hasNext()\r\n {\r\n return n != null;\r\n }\r\n @Override\r\n public NamedTreeNode<T> next()\r\n {\r\n if( n == null ) {\r\n throw new NoSuchElementException();\r\n }\r\n NamedTreeNode<T> r = n;\r\n n = (NamedTreeNode<T>)n.getRightNode();\r\n return r;\r\n }\r\n @Override\r\n public void remove()\r\n {\r\n throw new UnsupportedOperationException();\r\n }\r\n };\r\n }", "Iterator<CtElement> descendantIterator();", "public Iterator<T> byGenerations() {\r\n ArrayIterator<T> iter = new ArrayIterator<T>();\r\n\r\n for (int i = 0; i < SIZE; i++) {\r\n iter.add(tree[i]);\r\n }\r\n\r\n return iter;\r\n }", "public Iterator<StringNode> iterator()\r\n\t{\r\n\t\treturn this.children.iterator();\r\n\t}", "@Override\n public Iterator<Node> iterator() {\n return this;\n }", "@Override\n public Iterator<Position> iterator() {\n \t\n \t//create the child-position on calling the iterator\n \tcreateChildren();\n \t\n return new Iterator<Position> () {\n private final Iterator<Position> iter = children.iterator();\n\n @Override\n public boolean hasNext() {\n return iter.hasNext();\n }\n\n @Override\n public Position next() {\n return iter.next();\n }\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException(\"no changes allowed\");\n }\n };\n }", "public Iterator<ParseTreeNode> children() {\r\n if ((_children == null) || (_children.size() == 0)) {\r\n return NULL_ITERATOR;\r\n }\r\n return _children.iterator();\r\n }", "protected final synchronized Iterator<T> children() {\n if( children == null ) {\n children = Collections.emptyList();\n }\n \n return children.iterator();\n }", "@Override\n\tpublic Iterator iterator() {\n\t\treturn new TrieIterator(this.root,\"\");\n\t}", "public Iterator<PartialTree> iterator() {\r\n \treturn new PartialTreeListIterator(this);\r\n }", "public Iterator<ElementType> iterator(){\n return new InnerIterator();\n }", "public Iterator<Node> getNodeIter() {\n\t\treturn nodes.iterator();\n\t}", "@Override\r\n\tpublic Iterator<T> iteratorLevelOrder() {\r\n\t\tLinkedList<T> list = new LinkedList<T>();\r\n\t\tQueue<BSTNode<T>> work = new ArrayDeque<BSTNode<T>>();\r\n\t\twork.add(this.root);//start at the root\r\n\r\n\t\twhile(!work.isEmpty()) {\r\n\t\t\tBSTNode<T> node = work.remove();//pop the first\r\n\t\t\tlist.add(node.data);\r\n\t\t\t\r\n\t\t\tif(node.left!= null) {\r\n\t\t\t\twork.add(node.left);\r\n\t\t\t}\r\n\t\t\tif(node.right!= null) {\r\n\t\t\t\twork.add(node.right);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn list.iterator();\r\n\t}", "public ASTNodeIterator iterator() {\n ASTNodeIterator I = new ASTNodeIterator(1);\n I.children[0] = name;\n return I;\n }", "public ASTNodeIterator iterator()\n {\n ASTNodeIterator I = new ASTNodeIterator(1);\n I.children[0] = expression;\n return I;\n }", "public Iterator<T> iterator() {\n if (this.nrOfElements == 0) {\n return Collections.<T>emptyList().iterator();\n }\n return new Iterator<T>() {\n private Node walker = null;\n\n @Override\n public boolean hasNext() {\n return walker != last;\n }\n\n @Override\n public T next() {\n if (this.walker == null) {\n this.walker = first;\n return this.walker.getData();\n }\n\n if (this.walker.getNext() == null) {\n throw new NoSuchElementException();\n }\n\n this.walker = this.walker.getNext();\n return this.walker.getData();\n }\n };\n }", "public final FxNodeCursor iterateChildren() {\n FxNode n = currentNode();\n if (n == null) throw new IllegalStateException(\"No current node\");\n if (n.isArray()) { // false since we have already returned START_ARRAY\n return new FxArrayCursor((FxArrayNode) n, this);\n }\n if (n.isObject()) {\n return new FxObjectCursor((FxObjNode) n, this);\n }\n throw new IllegalStateException(\"Current node of type \"+n.getClass().getName());\n }", "public InorderIterator() {\r\n\t\t\tinorder(); // Traverse binary tree and store elements in list\r\n\t\t}", "@Override\n public Iterator<Node<E>> iterator() {\n return new ArrayList<Node<E>>(graphNodes.values()).iterator();\n }", "@Override\n public Iterator<T> iterator() {\n return new UsedNodesIterator<>(this);\n }", "public Iterator<T> iterator()\n\t{\n\t\treturn new Iterator<T>()\n\t\t{\n\t\t\tNode<T> actual = head;\n\n\t\t\t@Override\n\t\t\tpublic boolean hasNext()\n\t\t\t{\n\t\t\t\treturn actual != null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic T next() \n\t\t\t{\n\t\t\t\tif(hasNext())\n\t\t\t\t{\n\t\t\t\t\tT data = actual.getElement();\n\t\t\t\t\tactual = actual.getNext();\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\t}", "public Iterable<K> inOrder() {\n Queue<K> q = new Queue<>();\n inOrder(root, q);\n return q;\n }", "Iterator<T> iterator();", "public ReadOnlyIterator<ContextNode> getAllLeafContextNodes();", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "public /*@ non_null @*/ JMLIterator<E> iterator() {\n return new JMLEnumerationToIterator<E>(elements());\n }", "@Override\n public Iterator<E> iterator() {\n return new ElementIterator();\n }", "Iterator<E> iterator();", "Iterator<E> iterator();", "public Iterable<M> iterateAll();", "public Iterator<T> inorderIterator() { return new InorderIterator(root); }", "public Iterator<E> iterator()\n {\n return stack.iterator();\n }", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "Iterable<CtElement> asIterable();", "public synchronized Iterator<E> iteratorLevel()\n {\n if (isEmpty())\n return new CNullIterator<E>();\n\n return new NodeIteratorLevel<E>(this, this.m_RootNode);\n }", "public InorderIterator() {\n inorder(); // Traverse binary tree and store elements in list\n }", "public ReadOnlyIterator<ContextNode> getContextNodes();", "public Iterator<E> iterator();", "public Iterator<E> iterator();", "public Iterator<E> iterator();", "public synchronized Iterator<E> iteratorDownAll()\n {\n if (isEmpty())\n return new CNullIterator<E>();\n\n return new NodeIteratorDown<E>(this, this.m_LastNode, this.m_FirstNode.m_Element);\n }", "public synchronized Iterator<E> iterator()\n {\n return iteratorUpAll();\n }", "public Enumeration enumerateChildren() {\n return this.children.elements();\n }", "public DTMIterator asNodeIterator() {\n/* 231 */ return new RTFIterator(this.m_dtmRoot, this.m_DTMXRTreeFrag.getXPathContext().getDTMManager());\n/* */ }", "public Iterator getIterator() {\n return myElements.iterator();\n }", "public T iterator();", "public Iterable<HTMLElement> elements() {\n return iterable;\n }", "@Override\n\tpublic Iterator<E> iterator()\n\t{\n\t\treturn new Iterator<E>() {\n\t\t\tprivate Node<E> current = first;\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean hasNext()\n\t\t\t{\n\t\t\t\treturn current.next != null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic E next()\n\t\t\t{\n\t\t\t\tif (hasNext())\n\t\t\t\t{\n\t\t\t\t\tcurrent = current.next;\n\t\t\t\t\treturn current.value;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthrow new NoSuchElementException();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}", "public Iterator<T> getIterator();", "@Override\r\n\tpublic Iterator<T> iteratorPostOrder() {\r\n\t\tLinkedList<T> list = new LinkedList<T>();\r\n\t\tthis.traversePostOrder(this.root, list);\r\n\t\treturn list.iterator();\r\n\t}", "@Override\r\n\tpublic Iterator<T> iterator() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn this.iteratorInOrder();\r\n\t}", "public Iterator<T> getPageElements();", "public static Iterable<Node> iterableOf(@Nonnull final NamedNodeMap namedNodeMap) {\n\t\treturn () -> new NamedNodeMapIterator(namedNodeMap);\n\t}", "public Iterator nodeIterator() { return nodes.keySet().iterator(); }", "public ReadOnlyIterator<ContextNode> getAllContextNodes();", "public Iterator<Type> iterator();", "@NotNull\n public abstract JBIterable<T> children(@NotNull T root);", "@Override\n public Iterator<E> iterator() {\n return new InsideIterator(first);\n }", "@Override\n public Iterator<T> iterator() {\n return forwardIterator();\n }", "@Override\n\tpublic Iterator<E> iterator() {\n\t\treturn Iterators.emptyIterator();\n\t}", "@Override\n\tpublic Iterator<WebElement> iterator() {\n\t\treturn this.elements.iterator();\n\t}", "@Override\n\tpublic Iterator<StackType> iterator();", "public QuadTreeIterator() {\n\t\t\telements = new TreeSet();\n\t\t\tanalyze(((RootNode)root).children[0]);\n\t\t\tanalyze(((RootNode)root).children[1]);\n\t\t\tanalyze(((RootNode)root).children[2]);\n\t\t\tanalyze(((RootNode)root).children[3]);\n\t\t}", "public Iterable<MapElement> elements() {\n return new MapIterator() {\n\n @Override\n public MapElement next() {\n return findNext(true);\n }\n \n };\n }", "public Iterator<LayoutNode> nodeIterator() {\n\treturn nodeList.iterator();\n }", "@Override\n\tpublic final Iterator<T> iterator() {\n\t\treturn new IteratorImpl<>(value.get());\n\t}", "public Iterator<E> iterator() {\n\t\treturn new Itr();\n\t}", "@Override\r\n\tpublic Iterator<E> iterator()\r\n\t{\n\t\treturn ( iterator.hasNext() ? new EntityListIterator() : iterator.reset() );\r\n\t}", "public synchronized Iterator<E> iteratorUpAll()\n {\n if (isEmpty())\n return new CNullIterator<E>();\n\n return new NodeIteratorUp<E>(this, this.m_FirstNode, this.m_LastNode.m_Element);\n }", "public TennisPlayerContainerIterator iterator() {\n\n\t\treturn new TennisPlayerContainerIterator(this.root);\n\t}", "@Override\n Iterator<T> iterator();", "@Override\n public Iterator<Entity> iterator() {\n return entities.iterator();\n }", "public Iterator<T> iterator() {\r\n return byGenerations();\r\n }", "public Iterator iterator()\r\n {\r\n return new IteratorImpl( this, home() );\r\n }", "@Override\n @Nonnull Iterator<T> iterator();", "public Iterator iterator() {\n\n return new EnumerationIterator(elements.keys());\n }", "@Test\n public void whenAddElementToTreeThenIteratorReturnsSorted() {\n final List<Integer> resultList = Arrays.asList(4, 3, 6);\n final List<Integer> testList = new LinkedList<>();\n this.tree.add(4);\n this.tree.add(6);\n this.tree.add(3);\n\n Iterator<Integer> iterator = this.tree.iterator();\n testList.add(iterator.next());\n testList.add(iterator.next());\n testList.add(iterator.next());\n\n assertThat(testList, is(resultList));\n }", "public Iterator<Resource> listChildren() {\n return Collections.<Resource>emptyList().iterator();\n }", "public Iterator iterator() {\n\t return new EntryIterator(set.iterator());\n\t}", "public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllEncodedBy_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), ENCODEDBY);\r\n\t}", "@Override\n\tpublic Iterator<Item> iterator() {\n\t\treturn new StackIterator();\n\t}", "public interface Tree<E> extends Iterable<E>\r\n{\r\n //accessor methods\r\n /**\r\n * Returns the Position of the root of the tree.\r\n * @return the Position of the root of the tree\r\n */\r\n Position<E> root();\r\n \r\n /**\r\n * Returns the Position of the parent of given Position.\r\n * @param p Position to check\r\n * @return the Position of the parent of given Position (or null if p is the root). \r\n * @throws IllegalArgumentException if Position isn't valid\r\n */\r\n Position<E> parent(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Returns the number of children of given Position.\r\n * @param p Position to check\r\n * @return the number of children of given Position\r\n * @throws IllegalArgumentException if Position isn't valid\r\n */\r\n int numChildren(Position<E> p) throws IllegalArgumentException;\r\n\r\n /**\r\n * Returns the number of positions (and therefore elements) that are contained in tree.\r\n * @return the number of positions (and therefore elements) that are contained in tree\r\n */\r\n int size();\r\n \r\n \r\n //query methods\r\n /**\r\n * Tests whether given Position has at least one child.\r\n * @param p Position to check\r\n * @return true if given Position has at least one child, false otherwise\r\n * @throws IllegalArgumentException if Position isn't valid \r\n */\r\n boolean isInternal(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Tests whether given Position has any children.\r\n * @param p Position to check\r\n * @return true if given Position does not have children, false otherwise\r\n * @throws IllegalArgumentException if Position isn't valid \r\n */\r\n boolean isExternal(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Tests whether given Position is the root of the tree.\r\n * @param p Position to check\r\n * @return true if given Position is the root, false otherwise\r\n * @throws IllegalArgumentException if Position isn't valid \r\n */\r\n boolean isRoot(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Tests whether tree contains any Positions (and therefore elements).\r\n * @return true if tree doesn't contain any Positions, false otherwise\r\n */\r\n boolean isEmpty();\r\n \r\n \r\n \r\n //additional methods\r\n /**\r\n * Returns an iterable Collection containing the children of given Position.\r\n * @param p Position to check\r\n * @return an iterable Collection containing the children of given Position\r\n * @throws IllegalArgumentException if Position isn't valid\r\n */\r\n Iterable<Position<E>> children(Position<E> p) throws IllegalArgumentException;\r\n \r\n /**\r\n * Returns an iterable Collection of all Positions of the tree.\r\n * @return an iterable Collection of all Positions of the tree.\r\n */\r\n Iterable<Position<E>> positions(); \r\n \r\n /**\r\n * Returns an iterator for all elements in the tree.\r\n * Ensures tree itself is iterable.\r\n * @return an iterator for all elements in the tree\r\n */\r\n @Override\r\n Iterator<E> iterator(); \r\n}", "public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllInterpretedBy_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), INTERPRETEDBY);\r\n\t}", "public Iterator<? extends E> iterator() {\n return (Iterator<? extends E>) Arrays.asList(queue).subList(startPos, queue.length).iterator();\n }" ]
[ "0.78662294", "0.7456184", "0.73565006", "0.7348381", "0.73353314", "0.73298913", "0.7176568", "0.7087759", "0.69816446", "0.6969877", "0.69050044", "0.68064326", "0.6799523", "0.6766345", "0.67618406", "0.67540777", "0.6680443", "0.6678775", "0.66557544", "0.65775114", "0.657489", "0.6544453", "0.6489729", "0.6480576", "0.6464353", "0.64308524", "0.6412907", "0.6394307", "0.639194", "0.63778645", "0.6355235", "0.6342844", "0.633438", "0.63135135", "0.63108826", "0.63087326", "0.63087326", "0.63087326", "0.6305865", "0.6297314", "0.6288595", "0.6288595", "0.62795514", "0.6272738", "0.6268868", "0.62580526", "0.62580526", "0.62580526", "0.62580526", "0.62505394", "0.6247724", "0.62364733", "0.62309414", "0.6210048", "0.6210048", "0.6210048", "0.6197977", "0.6174191", "0.61635154", "0.61591864", "0.61430824", "0.61415815", "0.61314505", "0.6122561", "0.61167526", "0.6116284", "0.61136866", "0.6107571", "0.610671", "0.608773", "0.6075819", "0.60595864", "0.60072523", "0.5992614", "0.59770215", "0.5976987", "0.59743", "0.59691674", "0.5950506", "0.5946144", "0.5944364", "0.5941917", "0.59355557", "0.59267324", "0.59225225", "0.59224135", "0.5916955", "0.590317", "0.58971465", "0.5892018", "0.58859897", "0.58836734", "0.5880384", "0.587637", "0.5859815", "0.5831081", "0.58107704", "0.58037126", "0.57988334", "0.5795727" ]
0.596924
77
Utility method for quick printing to console
void p(Object o) { utils.log(o); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@VisibleForTesting\n void print();", "public static void print() {\r\n System.out.println();\r\n }", "static void print (){\n \t\tSystem.out.println();\r\n \t}", "public void println() { System.out.println( toString() ); }", "void showInConsole();", "public void print() {\r\n\t\t System.out.println(toString());\r\n\t }", "public void print() {\n System.out.println(toString());\n }", "public void println();", "public void print(){\r\n System.out.println(toString());\r\n }", "public void print() {\n\t\tSystem.out.println(toString());\n\t}", "public void printToViewConsole(String arg);", "public void displayTextToConsole();", "public String print();", "public static void print() {\r\n\t\tSystem.out.println(\"1: Push\");\r\n\t\tSystem.out.println(\"2: Pop\");\r\n\t\tSystem.out.println(\"3: Peek\");\r\n\t\tSystem.out.println(\"4: Get size\");\r\n\t\tSystem.out.println(\"5: Check if empty\");\r\n\t\tSystem.out.println(\"6: Exit\");\r\n\t\tSystem.out.println(\"====================================================================\");\r\n\t}", "public void printMessage() {\n printMessage(System.out::print);\n }", "public void print();", "public void print();", "public void print();", "public void print();", "private void print(String s) {\n if (console) {\n con.cPrint(s);\n return;\n }\n System.out.print(s);\n\n }", "public void println()\n\t{\n\t\tSystem.out.println();\n\t}", "private void print(String s) {\n\t\tif (_verbose) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}", "public abstract void debug(PrintStream console);", "public void print() {\n\t\tif(log.isTraceEnabled()) {\n\t\t\tlog.info(\">> print()\");\n\t\t}\n\t\tSystem.out.println(p + \"/\" + q);\n\t\tif(log.isTraceEnabled()) {\n\t\t\tlog.info(\"<< print()\");\n\t\t}\n\t}", "public void print() {\n\t\tSystem.out.println(\"针式打印机打印了\");\n\t\t\n\t}", "void print();", "void print();", "void print();", "void print();", "void print();", "private static void println(String message, SimpleAttributeSet settings) {print(message + \"\\n\", settings);}", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "private void print(String text) {\n\t\tSystem.out.println(text);\n\t}", "public static void print(Object s) {\n\t\tStdOut.println(s);\n\t}", "@Override\n\t\tpublic void print() {\n\n\t\t}", "@Override\n\t\t\tpublic void print() {\n\t\t\t\t\n\t\t\t}", "public void print() {\n System.out.println(\"Command: \" + command);\n }", "public String print() {\n return print(new StringBuffer()).toString();\n }", "@Override\r\n\tpublic void print() {\n\t}", "@Override\n\tpublic void print() {\n\t\t\n\t}", "public void print() {\n System.out.println(this.toString());\n }", "private static void print(String message)\n {\n System.out.println(message);\n }", "public static void print(Object text) {\r\n\t\tSystem.out.println(text);\r\n\t\tSystem.out.flush();\r\n\t}", "private static void print(String p) {\n\t\tSystem.out.println(PREFIX + p);\n\t}", "private void println(String s) {\n if (console) {\n con.cPrintln(s);\n return;\n }\n System.out.println(s);\n\n }", "public void print(String msg, boolean reallyPrint) {\n if (reallyPrint) {\n // System.out.println(msg);\n }\n\n }", "private void print() {\n printInputMessage();\n printFrequencyTable();\n printCodeTable();\n printEncodedMessage();\n }", "public synchronized String print() {\r\n return super.print();\r\n }", "@Override\r\n\t\t\tpublic void print() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void print() {\n\n\t}", "public void print()\n {\n System.out.println();\n System.out.println(\"Ticket to \" + destination +\n \" Price : \" + price + \" pence \" + \n \" Issued \" + issueDateTime);\n System.out.println();\n }", "public static void println(String toPrint)\n {\n System.out.println(toPrint);\n }", "void printTextToConsole(String content){\n }", "public void println(String printbuffer) {\n\t\tSystem.out.println(printbuffer);\n\t}", "public static void Print() {\n\t\tSystem.out.println(\"Ticks: total \" + totalTicks + \", idle \" + idleTicks + \", system \" + systemTicks + \", user \"\n\t\t\t\t+ userTicks);\n\n\t\tSystem.out.println(\"Disk I/O: reads \" + numDiskReads + \", writes \" + numDiskWrites);\n\t\tSystem.out.println(\"Console I/O: reads \" + numConsoleCharsRead + \", writes \" + numConsoleCharsWritten);\n\t\tSystem.out.println(\"Paging: faults \" + numPageFaults);\n\n\t\tSystem.out.println(\"Network I/O: packets received \" + numPacketsRecvd + \", sent \" + numPacketsSent);\n\t}", "void PrintOnScreen(String toPrnt);", "public void printToConsole(Object data){\r\n\t\tSystem.out.println(data);\r\n\t}", "public void print () {\n }", "private void myPrint(String x) {\n if (printOn) {\n System.out.println(x);\n }\n }", "private void sysout() {\nSystem.out.println(\"pandiya\");\n}", "public static void stdout(){\n\t\tSystem.out.println(\"Buildings Found: \" + buildingsFound);\n\t\tSystem.out.println(\"Pages searched: \"+ pagesSearched);\n\t\tSystem.out.println(\"Time Taken: \" + (endTime - startTime) +\"ms\");\t\n\t}", "@Override\n public void print() {\n }", "public void printCommands(){\n LocalApi.print_commands();\n }", "ProcessRunner print();", "public void print() {\n\t\tPrinter.print(doPrint());\n\t}", "@Override\n\tpublic void juxing() {\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t}", "public static void printInfo(){\n }", "@Override\n\t\t\tpublic void print(String str) {\n\t\t\t\tSystem.out.println(str);\n\t\t\t}", "static void print (Object output){\r\n \t\tSystem.out.println(output);\r\n \t}", "public interface ConsolePrinter {\r\n\r\n\t/**\r\n\t * Prints given text line to console.\r\n\t * \r\n\t * @param line\r\n\t * text to print.\r\n\t */\r\n\tvoid println(String line);\r\n\r\n\t/**\r\n\t * Prints given (formatted) string to current server console.<br>\r\n\t * <i>Note: This method neither throws an exception nor prints anything if a\r\n\t * command line is available but no server console running. Use\r\n\t * {@link EduLog} for that.</i>\r\n\t * \r\n\t * @see Formatter\r\n\t * \r\n\t * @param line\r\n\t * A (format) string that should be printed.\r\n\t * \r\n\t * @param args\r\n\t * Format arguments.\r\n\t * \r\n\t * @throws IllegalFormatException\r\n\t * If a format string contains an illegal syntax, a format\r\n\t * specifier that is incompatible with the given arguments,\r\n\t * insufficient arguments given the format string, or other\r\n\t * illegal conditions. For specification of all possible\r\n\t * formatting errors, see the detail section of\r\n\t * {@link Formatter} class specification.\r\n\t */\r\n\tvoid printlnf(String line, Object... args);\r\n\r\n}", "public void println() {\n\t\tprintln(\"\"); //$NON-NLS-1$\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate static void printDebug(String p) {\n\t\tif (DEBUG) {\n\t\t\tSystem.out.println(PREFIX + p);\n\t\t}\n\t}", "public void printYourself(){\n\t}", "private void printHelp() \n {\n Logger.Log(\"You have somehow ended up in this strange, magical land. But really you just want to go home.\");\n Logger.Log(\"\");\n Logger.Log(\"Your command words are:\");\n parser.showCommands();\n Logger.Log(\"You may view your inventory or your companions\");\n }", "public void print(Object someObj) {\r\n this.print(someObj.toString());\r\n }", "public static void print(Object o)\n\t{\n\t\tif(m_debugFlag) {\n\t\t\tSystem.out.print(o.toString());\n\t\t}\n\t}", "public void printQuiet() {\n if (numOut != 0) {\n System.out.println(numIn + \",\" + numOut + \",\" + (totTimeWait / numIn) + \",\" + (totTime / numOut));\n } else {\n System.out.println(numIn + \",\" + numOut + \",\" + (totTimeWait / numIn) + \",0\");\n }\n }", "public static void println(String line) {\n if (verbose) System.out.println(line);\n }", "private void printConsole(String text) {\n\t\tMessage msg = getHandler().obtainMessage(MESSAGE_CONSOLE_CHANGED);\n\t\tmsg.obj = \"\\n\" + text ;\n\t\tmsg.sendToTarget();\t\t\n\t}", "private void printTimer() {\n\t\tif (_verbose) {\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"-- \" + getTimeString() + \" --\");\n\t\t}\n\t}", "public void print() {\r\n System.out.println(c() + \"(\" + x + \", \" + y + \")\");\r\n }", "public void print() {\r\n\t\tSystem.out.print(getUID());\r\n\t\tSystem.out.print(getTITLE());\r\n\t\tSystem.out.print(getNOOFCOPIES());\r\n\t}", "private void print(String message) {\n\n //System.out.println(LocalDateTime.now() + \" \" + message);\n System.out.println(message);\n }", "protected void printOut(String str)\n { if (stdout!=null) System.out.println(str);\n }", "public void printInfo(){\n\t}", "public void printInfo(){\n\t}", "void println(String message);", "public void println(Object obj) {\n println(obj.toString());\n }", "protected void dbgOut(String text_out)\n {\n if (debugOn)\n System.out.println(text_out);\n }", "public void print() {\n System.out.println(\"I am \" + status() + (muted ? \" and told to shut up *sadface*\" : \"\") + \" (\" + toString() + \")\");\n }", "public void print(Object obj) {\n print(obj.toString());\n }", "public void print() {\n System.out.println(\"Nome: \" + nome);\n System.out.println(\"Telefone: \" + telefone);\n }", "public static void println(Object val) {\n Builtins.println(val);\n }" ]
[ "0.76695764", "0.73383504", "0.72964615", "0.7281709", "0.7276981", "0.72625697", "0.7206026", "0.71252286", "0.7121794", "0.71115553", "0.71106786", "0.7076087", "0.70324486", "0.7015263", "0.6997165", "0.6987129", "0.6987129", "0.6987129", "0.6987129", "0.6953966", "0.69257355", "0.6911702", "0.68224585", "0.6817289", "0.6790832", "0.6785931", "0.6785931", "0.6785931", "0.6785931", "0.6785931", "0.67823505", "0.67758244", "0.67758244", "0.67758244", "0.67758244", "0.67758244", "0.67758244", "0.67758244", "0.67758244", "0.67758244", "0.6773645", "0.6767447", "0.6760166", "0.67497015", "0.674497", "0.6729212", "0.67239064", "0.66947645", "0.66912097", "0.6682017", "0.66772974", "0.6660855", "0.6649514", "0.664325", "0.6636957", "0.6627452", "0.662634", "0.6600265", "0.65981275", "0.65640855", "0.6559298", "0.655578", "0.65478116", "0.65470654", "0.65302014", "0.64881873", "0.64862853", "0.6475196", "0.6475021", "0.6467807", "0.64642537", "0.64582986", "0.6456456", "0.64282197", "0.6393887", "0.6385094", "0.6377657", "0.63736534", "0.6362335", "0.6352289", "0.6336368", "0.63319606", "0.63279176", "0.6326105", "0.63214415", "0.63202626", "0.63198584", "0.6319418", "0.6315303", "0.63114786", "0.6310788", "0.6308517", "0.6307289", "0.6307289", "0.6297639", "0.629199", "0.6284522", "0.62837994", "0.6274371", "0.6273602", "0.62692755" ]
0.0
-1
file use to save
public File getDataSaveFile() { return dataSaveFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void save(File file);", "File getSaveFile();", "void save(String fileName);", "void save(String filename);", "@Override\n\tpublic void save(Object o, String file) {\n\t\t\n\t}", "public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;", "public boolean save(String file);", "void saveToFile(String filename) throws IOException;", "@Override\n public void setSaveFile(File file)\n {\n \n }", "@Override\n public void saveFile(String fileString, String filename) throws IOException {\n }", "public void save(String fileName) throws IOException;", "public abstract void saveToFile(PrintWriter out);", "String savedFile();", "public void save (File argFile) throws IOException;", "public void saveGame(File fileLocation);", "public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}", "public void save(File file) {\n //new FileSystem().saveFile(addressBook, file);\n }", "public abstract void save(FileWriter fw) throws IOException;", "private void saveToFile(File file) throws IOException {\n FileWriter fileWriter = null;\n try {\n fileWriter = new FileWriter(file);\n fileWriter.write(getSaveString());\n }\n finally {\n if (fileWriter != null) {\n fileWriter.close();\n }\n }\n }", "public void saveToFile()\n\t{\t\n\t\tsetCourseToFileString(courseToFileString);\n\t\t\ttry \n\t {\n\t FileWriter fw = new FileWriter(fileName);\n\t fw.write (this.getCourseToFileString ( ));\n\t for(Student b : this.getStudents ( ))\t \t\n\t \tfw.write(b.toFileString ( ));\n\t \tfw.close ( );\n\t } \n\t catch (Exception ex) \n\t {\n\t ex.printStackTrace();\n\t }\n\t\t\tthis.saveNeed = false;\n\n\t}", "@Override\n public boolean save(String file) {\n boolean ans = false;\n ObjectOutputStream oos;\n try {\n FileOutputStream fileOut = new FileOutputStream(file, true);\n oos = new ObjectOutputStream(fileOut);\n oos.writeObject(this);\n ans= true;\n }\n catch (FileNotFoundException e) {\n e.printStackTrace(); }\n catch (IOException e) {e.printStackTrace();}\n return ans;\n }", "default void save(String file) {\n save(new File(file));\n }", "void saveAs() {\n writeFile.Export();\n }", "public void save() {\n\t\tBufferedWriter bw = null;\n\t\tFileWriter fw = null;\n\t\ttry {\n\t\t\tFile file = new File(\"fileSave.txt\");\n\t\t\tif(!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t\tfw = new FileWriter(file);\n\t\t\tbw = new BufferedWriter(fw);\n\t\t\t//string to hold text to write on new file\n\t\t\tString text = textArea.getText();\n\t\t\t//write file\n\t\t\tif (text != null) {\n\t\t\t\tbw.write(text);\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ie) {\n\t\t\tie.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif (bw != null) {\n\t\t\t\t\tbw.close();\n\t\t\t\t\tfw.close();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (IOException ie2) {\n\t\t\t\tie2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "void save_to_file() {\n\t\tthis.setAlwaysOnTop(false);\n\t\t\n\t\t/**\n\t\t * chose file with file selector \n\t\t */\n\t\t\n\t\tFileDialog fd = new FileDialog(this, \"Choose a save directory\", FileDialog.SAVE);\n\t\t\n\t\t//default path is current directory\n\t\tfd.setDirectory(System.getProperty(\"user.dir\"));\n\t\tfd.setFile(\"*.cmakro\");\n\t\tfd.setVisible(true);\n\t\t\n\t\t\n\t\tString filename = fd.getFile();\n\t\tString path = fd.getDirectory();\n\t\tString file_withpath = path + filename;\n\t\t\n\t\tif (filename != null) {\n\t\t\t System.out.println(\"save path: \" + file_withpath);\n\t\t\t \n\t\ttry {\n\t\t\tObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(file_withpath));\n\n\t\t\tout.writeObject(Key_Lists);\n\t\t\t\n\t\t\tout.close();\n\t\t\t\n\t\t\tinfo_label.setForeground(green);\n\t\t\tinfo_label.setText(\"file saved :D\");\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tthis.setAlwaysOnTop(true);\n\t\t\n\t}", "public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }", "File getSaveLocation();", "@Override\n\tpublic void save(String file_name) {\n\t\tserialize(file_name);\n\t}", "public void saveFile()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString newLine = System.getProperty(\"line.separator\");\n\t\t\n\t\tfor(CSVItem cItem : itemList)\n\t\t{\n\t\t\tsb.append(cItem.buildCSVString()).append(newLine);\n\t\t\t\n\t\t}\n\t\tString fileString = sb.toString();\n\t\t\n\t\t File newTextFile = new File(filePath);\n\n FileWriter fw;\n\t\ttry {\n\t\t\tfw = new FileWriter(newTextFile);\n\t\t\t fw.write(fileString);\n\t\t fw.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \n\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t\tFile savingDirectory = new File(savingFolder());\n\t\t\n\t\tif( !savingDirectory.isDirectory() ) {\n\t\t\tsavingDirectory.mkdirs();\n\t\t}\n\t\t\n\t\t\n\t\t//Create the file if it's necessary. The file is based on the name of the item. two items in the same directory shouldn't have the same name.\n\t\t\n\t\tFile savingFile = new File(savingDirectory, getIdentifier());\n\t\t\n\t\tif( !savingFile.exists() ) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tsavingFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"the following item couldn't be saved: \" + getIdentifier());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t}\n\n\t\t\n\t\t//generate the savingTextLine and print it in the savingFile. the previous content is erased when the PrintWriter is created.\n\t\t\n\t\tString text = generateSavingTextLine();\n\n\t\ttry {\n\t\t\tPrintWriter printer = new PrintWriter(savingFile);\n\t\t\tprinter.write(text);\t\t\t\n\t\t\tprinter.close();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tsave();\n\t\t} \n\t}", "public final void saveToFile() {\n\t\tWrite.midi(getScore(), getName()+\".mid\"); \n\t}", "@Override\n public void saveFile(Object o, File file, String ext)\n throws IOException {\n dest = file;\n }", "public void save(){\n Player temp = Arena.CUR_PLAYER;\n try{\n FileOutputStream outputFile = new FileOutputStream(\"./data.sec\");\n ObjectOutputStream objectOut = new ObjectOutputStream(outputFile);\n objectOut.writeObject(temp);\n objectOut.close();\n outputFile.close();\n }\n catch(FileNotFoundException e){\n System.out.print(\"Cannot create a file at that location\");\n }\n catch(SecurityException e){\n System.out.print(\"Permission Denied!\");\n }\n catch(IOException e){\n System.out.println(\"Error 203\");\n } \n }", "public void Save() {\n try {\n ObjectOutputStream objUt = new ObjectOutputStream(\n new FileOutputStream(\"sparfil.txt\"));\n objUt.writeObject(this);\n } catch(Exception e) {\n System.out.println(e);}\n }", "public void save() {\n // Convert the settings to a string\n String output = readSettings();\n \n try {\n // Make sure the file exists\n if (!settingsFile.exists()) {\n File parent = settingsFile.getParentFile();\n parent.mkdirs();\n settingsFile.createNewFile(); \n }\n \n // Write the data into the file\n BufferedWriter writer = new BufferedWriter(new FileWriter(settingsFile));\n writer.write(output);\n writer.close(); \n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void saveToFile(File file, Model model) throws IOException;", "public void save(){\n\tif(currentFile == null){\n\t // TODO: add popup to select where to save file and file name\n\t // currentFile = new TextFile(os, title, null);\n\t}else{\n\t currentFile.setBody(textArea.getText());\n\t}\n }", "private void saveInFile() {\n try {\n FileOutputStream fos = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);//goes stream based on filename\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos)); //create buffer writer\n Gson gson = new Gson();\n gson.toJson(countbookList, out);//convert java object to json string & save in output\n out.flush();\n fos.close();\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }", "private void saveFile() {\n\t\ttry {\n\t\t\tFile file = jfc.getSelectedFile();\n\t\t\tint c = -1;\n\t\t\tif(file==null)\n\t\t\t{\n\t\t\t\tc = jfc.showSaveDialog(this);\n\t\t\t}\n\t\t\t\n\n\t\t\tif(file!= null || c ==0)\n\t\t\t{\t\n\t\t\t\tFileWriter fw = new FileWriter(jfc.getSelectedFile());\n\t\t\t\tfw.write(jta.getText());\n\t\t\t\tfw.close();\n\t\t\t\tSystem.out.println(\"파일을 저장하였습니다\");\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\t\n\t\t} catch (Exception e2) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(e2.getMessage());\n\t\t}\n\t}", "private void save()\n\t{\n\t\t//get the text\n\t\tString spssTxt = spssText.getText();\n\t\t//save it to a JS place where Java can find it\n\t\tsaveToJS(spssTxt);\n\t\t//make up a file name\n\t\tString fileName = form.getText().replace(\" \", \"_\").replace(\"\\\\\", \"\").replace(\"/\",\"\").replace(\"*\", \"\").replace(\"\\\"\", \"\")\n\t\t\t\t.replace(\"<\", \"\").replace(\">\", \"\").replace(\"#\", \"\").replace(\"'\", \"\") + \".spss\";\t\t\n\t\t\n\t\t\n\t\t\n\t\tappletHtml.setHTML(\"<APPLET codebase=\\\"fileioapplets/\\\"+\" +\n\t\t\t\t\" archive=\\\"kobo_fileIOApplets.jar, plugin.jar\\\" \"+\n\t\t\t\t\" code=\\\"org.oyrm.kobo.fileIOApplets.ui.FileSaveApplet.class\\\" \"+\n\t\t\t\t\" width=\\\"5\\\" HEIGHT=\\\"5\\\" MAYSCRIPT> \"+\n\t\t\t\t\"<param name=\\\"formName\\\" value=\\\"\"+fileName+\"\\\"/>\"+\n\t\t\t\t\"<param name=\\\"save\\\" value=\\\"\"+LocaleText.get(\"SaveSPSSFile\")+\"\\\"/>\"+\n\t\t\t\t\"</APPLET>\");\n\t}", "public void autoSave(){\n\t\ttry {\n\t\t\t//read in file\n\t\t\tFile file = new File(System.getProperty(\"user.dir\")+\"/Default.scalcsave\");\n\t\t\tObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\toutput.writeObject(SaveFile.getSaveFile());\n\t\t\toutput.close();\n\t\t\tSystem.out.println(\"Save Success\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void saveStringToFile(String s) {\n try {\n FileWriter saveData = new FileWriter(SAVE_FILE);\n BufferedWriter bW = new BufferedWriter(saveData);\n bW.write(s);\n bW.flush();\n bW.close();\n } catch (IOException noFile) {\n System.out.println(\"SaveFile not found.\");\n }\n }", "void save();", "void save();", "void save();", "synchronized public void saveToFile() {\n try {\n saveObjToFile(this, saveFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n log(\"error saving resource to file\");\n }\n }", "void saveFile () {\r\n\r\n\t\ttry {\r\n\t\t\tFileOutputStream fos = new FileOutputStream (\"Bank.dat\", true);\r\n\t\t\tDataOutputStream dos = new DataOutputStream (fos);\r\n\t\t\tdos.writeUTF (saves[count][0]);\r\n\t\t\tdos.writeUTF (saves[count][1]);\r\n\t\t\tdos.writeUTF (saves[count][2]);\r\n\t\t\tdos.writeUTF (saves[count][3]);\r\n\t\t\tdos.writeUTF (saves[count][4]);\r\n\t\t\tdos.writeUTF (saves[count][5]);\r\n\t\t\tJOptionPane.showMessageDialog (this, \"The Record has been Saved Successfully\",\r\n\t\t\t\t\t\t\"BankSystem - Record Saved\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t\ttxtClear ();\r\n\t\t\tdos.close();\r\n\t\t\tfos.close();\r\n\t\t}\r\n\t\tcatch (IOException ioe) {\r\n\t\t\tJOptionPane.showMessageDialog (this, \"There are Some Problem with File\",\r\n\t\t\t\t\t\t\"BankSystem - Problem\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t}\r\n\r\n\t}", "public static void saveAs(){\n\t\tFile saveFile;\n\t\tJFileChooser saveChooser = new JFileChooser();\n\t\tFileNameExtensionFilter saveFilter = new FileNameExtensionFilter(\"Sensormap Files (.stuff)\", \"stuff\");\n\t\tFileNameExtensionFilter saveFilter2 = new FileNameExtensionFilter(\"Gzipped Sensormap Files (.stuff.gz)\", \"stuff.gz\");\n\t\tsaveChooser.setFileFilter(saveFilter);\n\t\tsaveChooser.setFileFilter(saveFilter2);\n\t\tint saveReturnVal = saveChooser.showSaveDialog(ControlPanelFrame.getFrame());\n\t\tif(saveReturnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tif(saveChooser.getFileFilter() == saveFilter && saveChooser.getSelectedFile().getName().endsWith(\".stuff\")==false){\n\t\t\t\tsaveFile = new File(saveChooser.getSelectedFile().getAbsolutePath()+\".stuff\");\n\t\t\t} else if(saveChooser.getFileFilter() == saveFilter2 && saveChooser.getSelectedFile().getName().endsWith(\".stuff.gz\")==false){\n\t\t\t\tsaveFile = new File(saveChooser.getSelectedFile().getAbsolutePath()+\".stuff.gz\");\n\t\t\t} else {\n\t\t\t\tsaveFile = saveChooser.getSelectedFile();\n\t\t\t}\n\t\t\tXMLSaver.saveSensorList(saveFile);\n\t\t\tGUIReferences.viewPort.halfTitle = saveFile.getName();\n\t\t\tGUIReferences.viewPort.setTitle(saveFile.getName());\n\t\t\tGUIReferences.currentFile = saveFile;\n\t\t\tGUIReferences.saveMenuItem.setEnabled(false);\n\t\t}\n\t}", "private void savePressed(){\n\t\t\n\t\tJFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.dir\"));\n\t\tFileNameExtensionFilter extentions = new FileNameExtensionFilter(\"SuperCalcSave\", \"scalcsave\");\n\t\tfileChooser.setFileFilter(extentions);\n\t\tint retunedVal = fileChooser.showSaveDialog(this);\n\t\tFile file = null;\n\t\tif(retunedVal == JFileChooser.APPROVE_OPTION){\n\t\t\tfile = fileChooser.getSelectedFile();\n\t\t\t//make sure file has the right extention\n\t\t\tif(file.getAbsolutePath().contains(\".scalcsave\"))\n\t\t\t\tfile = new File(file.getAbsolutePath());\n\t\t\telse\n\t\t\t\tfile = new File(file.getAbsolutePath()+\".scalcsave\");\n\t\t}\n\t\t//only continue if a file is selected\n\t\tif(file != null){\t\n\t\t\ttry {\n\t\t\t\t//read in file\n\t\t\t\tObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\t\toutput.writeObject(SaveFile.getSaveFile());\n\t\t\t\toutput.close();\n\t\t\t\tSystem.out.println(\"Save Success\");\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "private void saveFile(File file){\r\n\t\ttry {\r\n\t\t\tlocal.saveFile(file);\r\n\t\t\topenFile = file;\r\n\t\t\tpopulateRecentMenu();\r\n\t\t\tframe.setTitle(openFile.getName());\r\n\t\t\tedit = false;\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void saveFile() {\n if (fileExisted == false) {\n JFileChooser fChoice = new JFileChooser();\n int choice = fChoice.showSaveDialog(this);\n if (choice == JFileChooser.APPROVE_OPTION) {\n File f = fChoice.getSelectedFile();\n //\n if(!f.getName().contains(\".txt\")){\n File fN=new File(f.getParent(), f.getName()+\".txt\");\n FileDAO.writeFile(fN, txtContent);\n fMain = fN;\n fileExisted = true;\n lastSave=true;\n this.setTitle(fN.getName());\n }\n else{\n \n FileDAO.writeFile(f, txtContent);\n fMain = f;\n fileExisted = true;\n lastSave=true;\n this.setTitle(f.getName());\n } \n \n }\n } else if (fileExisted == true) {\n FileDAO.writeFile(fMain, txtContent);\n lastSave=true;\n }\n\n }", "public void save() {\r\n IniReader.write(FILE_NAME, \"x\", x, \"y\", y, \"fullscreen\", fullscreen, \"controlType\", controlType, \"vol\", volMul,\r\n \"keyUpMouse\", getKeyUpMouseName(), \"keyDownMouse\", getKeyDownMouseName(), \"keyUp\", getKeyUpName(), \"keyDown\", keyDownName,\r\n \"keyLeft\", keyLeftName, \"keyRight\", keyRightName, \"keyShoot\", keyShootName, \"keyShoot2\", getKeyShoot2Name(),\r\n \"keyAbility\", getKeyAbilityName(), \"keyEscape\", getKeyEscapeName(), \"keyMap\", keyMapName, \"keyInventory\", keyInventoryName,\r\n \"keyTalk\", getKeyTalkName(), \"keyPause\", getKeyPauseName(), \"keyDrop\", getKeyDropName(), \"keySellMenu\", getKeySellMenuName(),\r\n \"keyBuyMenu\", getKeyBuyMenuName(), \"keyChangeShipMenu\", getKeyChangeShipMenuName(), \"keyHireShipMenu\", getKeyHireShipMenuName());\r\n }", "void save(String output);", "public static void save() {\n Game.save(UI.askNgetString(\"Filename for this save file?\")+\".xml\");\n }", "String saveToFile(Object data, String fileName, FileFormat fileFormat) throws IOException;", "public void tempSaveToFile() {\n try {\n ObjectOutputStream outputStream = new ObjectOutputStream(\n this.openFileOutput(MenuActivity2048.TEMP_SAVE_FILENAME, MODE_PRIVATE));\n outputStream.writeObject(boardManager);\n outputStream.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }", "public void save(String path){\t\r\n\t\t\t FMParser.save(this, path);\r\n\t\t\t}", "static String save() {\n JFileChooser fileChooser;\n String path = FileLoader.loadFile(\"path.txt\");\n if (path != null) {\n fileChooser = new JFileChooser(path);\n } else {\n fileChooser = new JFileChooser((FileSystemView.getFileSystemView().getHomeDirectory()));\n }\n\n fileChooser.setDialogTitle(\"Save text file\");\n fileChooser.setDialogType(JFileChooser.SAVE_DIALOG);\n\n if (fileChooser.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) {\n FileLoader.saveFile(\"path.txt\", fileChooser.getSelectedFile().getParent(), false);\n return fileChooser.getSelectedFile().getAbsolutePath() + \".mytxt\" ;\n }\n return null;\n }", "public void save() {\t\n\t\n\t\n\t}", "private void updateFile() {\n try {\n this.taskStorage.save(this.taskList);\n this.aliasStorage.save(this.parser);\n } catch (IOException e) {\n System.out.println(\"Master i am unable to save the file!\");\n }\n }", "public void saveFile() {\r\n File savedFile = new File(fileName);\r\n\r\n try (FileWriter fw = new FileWriter(savedFile)) {\r\n fw.write(workSpace.getText());\r\n\r\n fw.close();\r\n } catch (IOException ex) {\r\n JOptionPane.showMessageDialog(null, \"There was an error saving the file\");\r\n }\r\n }", "public static void save(FileIO fileIO)\r\n\t{\n\t\t\r\n\t}", "protected abstract void writeFile();", "public void saveFile() {\t\n\t\tString fileloc = \"\";\n\t\tif(!prf.foldername.getText().equals(\"\"))\n\t\t\tfileloc += prf.foldername.getText()+\"/\";\n\t\tfileloc += ((MinLFile) tabbedPane.getSelectedComponent()).filename;;\t\t\n\t\tFile fl = new File(fileloc);\n\t\t\n\t\ttry {\n\t\t\tif(fl.exists()) {\n\t\t\t\tint option = JOptionPane.showConfirmDialog(null, \"The file with this name already exists, do you want to overwrite it?\", \"Save File\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(option == 0) {\n\t\t\t\t\tFiles.delete(fl.toPath());\n\t\t\t\t\ttry {\n\t\t\t\t\t\t\n\t\t\t\t\t\tFileWriter fw = new FileWriter(fileloc);\n\t\t\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\t\t\tbw.write(((MinLFile) tabbedPane.getSelectedComponent()).CodeArea.getText());\n\t\t\t\t\t\tbw.close();\n\t\t\t\t\t\tfw.close();\n\t\t\t\t\t\t((MinLFile) tabbedPane.getSelectedComponent()).filechanged = false;\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\tFileWriter fw = new FileWriter(fileloc);\n\t\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\t\tbw.write(((MinLFile) tabbedPane.getSelectedComponent()).CodeArea.getText());\n\t\t\t\t\tbw.close();\n\t\t\t\t\tfw.close();\n\t\t\t\t\t((MinLFile) tabbedPane.getSelectedComponent()).filechanged = false;\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"The specified folder doesnt exist.\");\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected void saveFile(String s, Vector<Curve> v) {\n\t\tfile.save(s, v);\n\t}", "private void saveGame(int gameId, String fileName){\n\n }", "public void saveFile(File file, String text) {\r\n\t\t\r\n\t\tif (file==null){\r\n\t\t\treturn;\t\r\n\t\t}\r\n\r\n\t\ttry (BufferedWriter bw = new BufferedWriter(new FileWriter(file))) {\r\n\r\n\t\t\tbw.write(text);\r\n\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "void save(String fileName) throws IOException, TransformerConfigurationException, ParserConfigurationException;", "public abstract void writeToFile( );", "void saveGameState(File saveName);", "private void saveGame() throws FileNotFoundException {\r\n\t\tJFileChooser fileChooser = new JFileChooser();\r\n\t\tFile file = null;\r\n\t\tif (fileChooser.showSaveDialog(gameView) == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tfile = fileChooser.getSelectedFile();\r\n\t\t}\r\n\t\tif (file != null) {\r\n\t\t\tFileWriter fileWriter = new FileWriter(convertToStringArrayList(), file);\r\n\t\t\tfileWriter.writeFile();\r\n\t\t}\r\n\r\n\t}", "public void setSaveFile(File file) {\n\t\t_file = file;\n\t}", "private void save(FileItem file) throws Exception {\n FileHandler fileHandler = new FileHandler(oriImgFile());\n fileHandler.saveFile(file);\n }", "public static void save(String line)\n {\n \ttry (BufferedWriter writer = Files.newBufferedWriter(path, StandardCharsets.UTF_8)) {\n \t\twriter.write(line,0,line.length());//takes the lines stars from the index 0 and saves till the end\n \t} catch (Exception x) {\n \t\tx.printStackTrace();//prints stack if something is worng\n \t}\n }", "public void save(OutputStream os) throws IOException;", "private void saveInFile() {\n try {\n FileOutputStream fOut = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);\n\n OutputStreamWriter writer = new OutputStreamWriter(fOut);\n Gson gson = new Gson();\n gson.toJson(counters, writer);\n writer.flush();\n\n fOut.close();\n\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }", "public static void saveObj(Object obj, File file)\n {\n try(ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file)))\n {\n oos.writeObject(obj);\n }\n \n catch(IOException e)\n {\n JOptionPane.showMessageDialog(null, \"[Error] Failed to save file: \" + e.getMessage());\n }\n }", "public void save() {\n Path root = Paths.get(storagePath);\n try {\n Files.copy(file.getInputStream(), root.resolve(file.getOriginalFilename()),\n StandardCopyOption.REPLACE_EXISTING);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public boolean save() {\n\t\treturn save(_file);\n\t}", "public void save() {\n final JFileChooser fileChooser =\n new JFileChooser(System.getProperty(\"user.dir\"));\n try {\n fileChooser.setSelectedFile(new File(\"save.ser\"));\n int saveFile = fileChooser.showSaveDialog(GameFrame.this);\n\n if (saveFile == JFileChooser.APPROVE_OPTION) {\n File saveGame = fileChooser.getSelectedFile();\n FileOutputStream fileOut = new FileOutputStream(saveGame);\n ObjectOutputStream objOut = new ObjectOutputStream(fileOut);\n objOut.writeObject(world);\n objOut.close();\n fileOut.close();\n System.out.println(\"Game saved.\");\n } else {\n return;\n }\n } catch (IOException i) {\n i.printStackTrace();\n }\n\n }", "public void save() {\n JAXB.marshal(this, new File(fileName));\n }", "public void saveFile() {\n\t\tPrintWriter output = null;\n\t\ttry {\n\t\t\toutput = new PrintWriter(\"/Users/katejeon/Documents/Spring_2020/CPSC_35339/avengers_project/game_result.txt\");\n\t\t\toutput.println(textArea.getText());\n\t\t\toutput.flush();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"File doesn't exist.\");\n\t\t} finally {\n\t\t\toutput.close();\n\t\t}\n\t}", "@FXML\n public void saveFile(Event e) {\n String outputData = output.getText();\n\n File file = chooser.showSaveDialog(save.getScene().getWindow());\n\n if(file != null) {\n createFile(outputData, file);\n }\n }", "public void save(String filePath){\r\n Scanner in = new Scanner(System.in);\r\n File saveFile = new File(filePath);\r\n if (saveFile.exists()){\r\n System.out.println(\"Do you really, really want to overwrite your previous game?\");\r\n System.out.println(\"Yes: '1', No: '0'.\");\r\n int input = in.nextInt();\r\n if (input!=1){\r\n return;\r\n }\r\n }\r\n File saveDir = new File(this.savePath);\r\n if (!saveDir.exists()){\r\n saveDir.mkdir();\r\n }\r\n FileOutputStream fos = null;\r\n ObjectOutputStream out = null;\r\n try {\r\n fos = new FileOutputStream(saveFile);\r\n out = new ObjectOutputStream(fos);\r\n out.writeObject(this.serialVersionUID);\r\n out.writeObject(p);\r\n out.writeObject(map);\r\n out.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"Make sure you don't use spaces in your folder names.\");\r\n ex.printStackTrace();\r\n }\r\n }", "@Override\n\tpublic void doSaveAs() {\n\n\t}", "public interface Saveable {\n void save( String key,File file,Context context);\n}", "void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void serialize() {\r\n if (newFile) {\r\n this.newFile = this.serializeAs();\r\n } else if (!newFile && !path.equals(\"\")) {\r\n sr.save(this.path);\r\n }\r\n }", "public void save() {\n\t\tFile f = null;\n\t\tif ((jfc.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) &&\n\t\t\t\t(!jfc.getSelectedFile().exists() ||\n\t\t\t\t\t(JOptionPane.showConfirmDialog(null,\n\t\t\t\t\t\"File \" + jfc.getSelectedFile().getAbsolutePath() +\n\t\t\t\t\t\" exists.\\nDo you want to replace it?\", \"Are you sure?\",\n\t\t\t\t\tJOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)))\n\t\t\tf = jfc.getSelectedFile();\n\t\tif (f == null)\n\t\t\treturn;\n\t\ttry {\n\t\t\tFileOutputStream fos = WavWrite.open(f.getPath(),\n\t\t\t\t\t(int)currentFile.length, currentFile.channels,\n\t\t\t\t\t(int)Math.round(currentFile.frameRate),\n\t\t\t\t\tcurrentFile.frameSize / currentFile.channels);\n\t\t\tinitBeats();\n\t\t\tsetPosition(0);\n\t\t\twhile (currentPosition < currentFile.length) {\n\t\t\t\tint bytesRead = currentFile.audioIn.read(readBuffer);\n\t\t\t\tif (bytesRead > 0) {\n\t\t\t\t\taddBeats(readBuffer, bytesRead);\n\t\t\t\t\tfos.write(readBuffer, 0, bytesRead);\n\t\t\t\t\tcurrentPosition += bytesRead;\n\t\t\t\t} else\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (currentPosition < currentFile.length)\n\t\t\t\tSystem.err.println(\"saveAudio(): error: wrote \" + currentPosition +\n\t\t\t\t\t\t\" of \" + currentFile.length + \" bytes\");\n\t\t\tfos.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException while saving data\");\n\t\t}\n\t}", "public void fileSave()\n {\n try\n {\n // construct the default file name using the instance name + current date and time\n StringBuffer currentDT = new StringBuffer();\n try {\n currentDT = new StringBuffer(ConnectWindow.getDatabase().getSYSDate());\n }\n catch (Exception e) {\n displayError(e,this) ;\n }\n\n // construct a default file name\n String defaultFileName;\n if (ConnectWindow.isLinux()) {\n defaultFileName = ConnectWindow.getBaseDir() + \"/Output/RichMon \" + instanceName + \" \" + currentDT.toString() + \".html\";\n }\n else {\n defaultFileName = ConnectWindow.getBaseDir() + \"\\\\Output\\\\RichMon \" + instanceName + \" \" + currentDT.toString() + \".html\";\n }\n JFileChooser fileChooser = new JFileChooser();\n fileChooser.setSelectedFile(new File(defaultFileName));\n File saveFile;\n BufferedWriter save;\n\n // prompt the user to choose a file name\n int option = fileChooser.showSaveDialog(this);\n if (option == JFileChooser.APPROVE_OPTION)\n {\n saveFile = fileChooser.getSelectedFile();\n\n // force the user to use a new file name if the specified filename already exists\n while (saveFile.exists())\n {\n JOptionPane.showConfirmDialog(this,\"File already exists\",\"File Already Exists\",JOptionPane.ERROR_MESSAGE);\n option = fileChooser.showOpenDialog(this);\n if (option == JFileChooser.APPROVE_OPTION)\n {\n saveFile = fileChooser.getSelectedFile();\n }\n }\n save = new BufferedWriter(new FileWriter(saveFile));\n saveFile.createNewFile();\n\n // create a process to format the output and write the file\n try {\n OutputHTML outputHTML = new OutputHTML(saveFile,save,\"Database\",databasePanel.getResultCache());\n outputHTML.savePanel(\"Performance\",performancePanel.getResultCache(),null);\n// outputHTML.savePanel(\"Scratch\",scratchPanel.getResultCache(),scratchPanel.getSQLCache());\n\n JTabbedPane scratchTP = ScratchPanel.getScratchTP();\n \n for (int i=0; i < scratchTP.getComponentCount(); i++) {\n try {\n System.out.println(\"i=\" + i + \" class: \" + scratchTP.getComponentAt(i).getClass());\n if (scratchTP.getComponentAt(i) instanceof ScratchDetailPanel) {\n ScratchDetailPanel t = (ScratchDetailPanel)scratchTP.getComponentAt(i);\n System.out.println(\"Saving: \" + scratchTP.getTitleAt(i));\n outputHTML.savePanel(scratchTP.getTitleAt(i), t.getResultCache(), t.getSQLCache());\n }\n } catch (Exception e) {\n // do nothing \n }\n }\n }\n catch (Exception e) {\n displayError(e,this);\n }\n\n // close the file\n save.close();\n }\n }\n catch (IOException e)\n {\n displayError(e,this);\n }\n }", "private void saveToFile(){\n this.currentMarkovChain.setMarkovName(this.txtMarkovChainName.getText());\n saveMarkovToCSVFileInformation();\n \n //Save to file\n Result result = DigPopGUIUtilityClass.saveDigPopGUIInformationSaveFile(\n this.digPopGUIInformation,\n this.digPopGUIInformation.getFilePath());\n }", "public void saveFileAs(String text) {\r\n\r\n\t\tFile tempFile;\r\n\t\ttempFile = fileChooser.showSaveDialog(fileChooserDialog);\r\n\t\tsaveFile(tempFile, text);\r\n\t\t\r\n\t\r\n\t\t\r\n\t}", "void saveRequestToFile(MovilizerRequest request, Path filePath);", "void onGameSaved(File file);", "public void saveNewRollManager()\n\t{\n\t JFileChooser chooser = new JFileChooser(); //allows the user to choose a file\n\t chooser.setCurrentDirectory(new File(\"/home/me/Documents\"));\t//sets the directory of where to find the file\n\t int retrival = chooser.showSaveDialog(null);\n\t if (retrival == JFileChooser.APPROVE_OPTION) {\n\t try \n\t {\n\t FileWriter fw = new FileWriter(chooser.getSelectedFile()+\".txt\");\n\t fw.write (getCourseToFileString ( ));\n\t for(Student b : getStudents ( ))\t \t\n\t \tfw.write(b.toFileString ( ));\n\t \tfw.close ( );\n\t \t;\n\t } \n\t catch (Exception ex) \n\t {\n\t ex.printStackTrace();\n\t }\n\t\t\tthis.saveNeed = false;\n\n\t }\n\t \n\t}", "public void save(File filename) throws IOException {\n FileOutputStream fos = new FileOutputStream(filename);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(this);\n oos.close();\n }", "public void saveGame(String fileName){\n try {\n File file1 = new File(fileName);\n FileOutputStream fileOutputStream = new FileOutputStream(file1);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(this);\n }catch (Exception e){\n System.err.println(\"Error when saving file\");\n }\n }", "@Override\n\tpublic void doSaveAs() {\n\t}", "void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }", "public void saveData(){\r\n file.executeAction(modelStore);\r\n }", "public Save(File loc) throws FileNotFoundException {\n FILE = loc;\n }" ]
[ "0.80341303", "0.7802521", "0.77949286", "0.77870667", "0.75314677", "0.751276", "0.7505195", "0.74862266", "0.73834646", "0.7374541", "0.72952837", "0.72823167", "0.7281276", "0.7232519", "0.72094095", "0.71850514", "0.7151951", "0.7132313", "0.70922285", "0.7065146", "0.7062439", "0.7051933", "0.7042527", "0.70224035", "0.69916177", "0.6964239", "0.69613355", "0.69593513", "0.6941969", "0.69365644", "0.69195783", "0.69125146", "0.69105166", "0.69039047", "0.6882571", "0.68806803", "0.6871715", "0.6865191", "0.6845466", "0.6839893", "0.6838472", "0.6831501", "0.68264425", "0.68264425", "0.68264425", "0.6807782", "0.6806605", "0.67875755", "0.6766792", "0.67662805", "0.67656016", "0.67649096", "0.6760576", "0.6757991", "0.6754576", "0.6747714", "0.67437714", "0.6734435", "0.6733945", "0.6717589", "0.6714841", "0.671214", "0.6709842", "0.67003083", "0.6680692", "0.66752034", "0.66740197", "0.6657834", "0.66538376", "0.66436964", "0.66396683", "0.66319615", "0.6630269", "0.66252667", "0.662103", "0.6619812", "0.6603951", "0.6595579", "0.6593594", "0.65711385", "0.65641683", "0.6563193", "0.6553705", "0.65536445", "0.6551397", "0.655102", "0.65477", "0.65153086", "0.6497595", "0.6495194", "0.6485704", "0.6484618", "0.64743507", "0.6471721", "0.6471012", "0.6466171", "0.6464272", "0.6462597", "0.64547104", "0.64522284", "0.64476013" ]
0.0
-1
notify all listeners in listenerHashSet.
public boolean notifyListeners(DataEvent<DataElementType> event) { try { if (null == listenerHashSet) { return false; } Iterator iter = listenerHashSet.iterator(); ArrayList<Thread> thread_list = new ArrayList<>(listenerHashSet.size()); while (iter.hasNext()) { SensorDataListener<DataElementType> listener = (SensorDataListener<DataElementType>) iter.next(); Runnable task = () -> { try { listener.SensorDataEvent(event); } catch (InterruptedException e) { e.printStackTrace(); } }; Thread t = new Thread(task); t.start(); thread_list.add(t); } for(Thread t:thread_list){ t.join(); } } catch (Exception e) { e.printStackTrace(); return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private final void fire(HashSet<Consumer<SpanNode<T>>> listeners){\n for (Consumer<SpanNode<T>> listener: listeners) listener.accept(this);\n }", "private void notifyListeners() \n\t{\n\t\tSystem.out.println(\"Event Source: Notifying all listeners\");\n\n\t\tfor(IListener listener : listeners)\n\t\t{\n\t\t\tlistener.eventOccured(new Event(this));//passing and object of source\n\t\t}\n\n\t}", "private void notifyListeners(RestState state) {\n\t\tfor (RestStateChangeListener l : listener) {\n\t\t\tl.onStateChangedEvent(state);\n\t\t}\n\t}", "protected void updateAll() {\n for (String key : listenerMap.keySet()) {\n updateValueForKey(key, true);\n }\n }", "private void notifyListeners() {\n\t\tfor(ModelListener l:listeners) {\n\t\t\tl.update();\t// Tell the listener that something changed\n\t\t}\n\t}", "@Override\n\tpublic void notifyObserver() {\n\t\tEnumeration<ObserverListener> enumd = vector.elements();\n\t\twhile (enumd.hasMoreElements()) {\n\t\t\tObserverListener observerListener = enumd\n\t\t\t\t\t.nextElement();\n\t\t\tobserverListener.observer();\n\t\t\tobserverListener.obsupdata();\n\t\t}\n\t}", "public void notifyAllObservers(){\n\t\tthis.notifyAllObservers(null);\n\t}", "@Override\n\tpublic void notifys() {\n\t\tfor(Observer observer : observers) {\n\t\t\tobserver.update(this);\n\t\t}\n\t}", "private void notifyEventListListeners() {\n this.eventListListeners.forEach(listener -> listener.onEventListChange(this.getEventList()));\n }", "@Override\n void notifys() {\n for (Observer o : observers) {\n o.update();\n }\n }", "public void notifyListeners() {\n Handler handler = new Handler(Looper.getMainLooper()); // TODO reuse\n // handler\n Runnable runnable = new Runnable() {\n\n @Override\n public void run() {\n synchronized (listeners) {\n for (IContentRequester requester : listeners) {\n requester.contentChanged(Content.this);\n }\n }\n }\n };\n boolean success = handler.post(runnable);\n if (success) {\n // Log.d(TAG,\n // \"Posted notification for all listeners from \"+this.toString()+\" to \"+listeners.size()+\" listeners.\");\n Log.d(TAG, \"Posted notification for all listeners from content id \"\n + id + \" to \" + listeners.size() + \" listeners.\");\n } else {\n Log.e(TAG, \"Failed to post notification for all listeners\");\n }\n }", "private void notifyObservers() {\n\t\tIterator<Observer> i = observers.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tObserver o = ( Observer ) i.next();\r\n\t\t\to.update( this );\r\n\t\t}\r\n\t}", "protected void notifyObservers()\n\t{\n\t Trace.println(Trace.EXEC_PLUS);\n\n\t for (TestGroupResultObserver observer : myObserverCollection)\n\t {\n\t \tobserver.notify(this);\n\t }\n\t}", "protected final void notifyInvalidated() {\n if (!myNotificationsEnabled) {\n return;\n }\n\n for (InvalidationListener listener : myListeners) {\n listener.onInvalidated(this);\n }\n\n for (InvalidationListener listener : myWeakListeners) {\n listener.onInvalidated(this);\n }\n }", "private static void informListeners() {\r\n\t\tfor (ATEListener l : listeners) {\r\n\t\t\tl.classListChanged( );\r\n\t\t}\r\n\t}", "public void notifyAllObservers() {\n\t\tfor(Observer observer : observers) {\n\t\t\tobserver.update();\n\t\t}\n\t}", "private void onPeersCleared()\n {\n for (PeerListener listener : getListeners()) {\n listener.onPeersCleared();\n }\n }", "public void notifyObservers() {\r\n for (Observer observer: this.observers) {\r\n observer.update(this);\r\n }\r\n\r\n// System.out.println(this);\r\n }", "private void informListeners(State state, Set<Element> elements) {\n // Event informing listeners that check has started.\n CheckEvent e = new CheckEvent(state, elements, this);\n for (CheckListener l : listener) {\n l.checkChanged(e);\n }\n }", "protected void notifyChangeListeners() { \n Utilities.invokeLater(new Runnable() {\n public void run() { for(ChangeListener l: _changeListeners) l.apply(this); }\n });\n }", "public void notifyObservers() {}", "void notifyAllAboutChange();", "@Override\r\n\tpublic void notifyObservers() {\n\t\tEnumeration<Observer> enumo = vector.elements();\r\n\t\twhile(enumo.hasMoreElements()){\r\n\t\t\tenumo.nextElement().update();\r\n\t\t}\r\n\t}", "@Override\n public void notifyObservers() {\n for (Observer observer : observers){\n // observers will pull the data from the observer when notified\n observer.update(this, null);\n }\n }", "@Override\r\n\tpublic void notifyObservers(){\r\n\t\tfor(IObserver obs : observers){\r\n\t\t\tobs.update(this, selectedEntity);\r\n\t\t}\r\n\t\tselectedEntity = null;\r\n\t}", "protected void notifyModificationListeners() {\r\n\t\tfor (ElementModificationListener l : modificationListeners) {\r\n\t\t\tl.elementModified(current);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void notifyObservers() {\n\t\tfor(Observer o : list) {\r\n\t\t\t// Atualiza a informacao no observador\r\n\t\t\to.update(this, this);\r\n\t\t}\r\n\t}", "public void notifyListeners() {\n Logger logger = LogX;\n logger.d(\"notifyListeners: \" + this.mListeners.size(), false);\n List<IWalletCardBaseInfo> tmpCardInfo = getCardInfo();\n Iterator<OnDataReadyListener> it = this.mListeners.iterator();\n while (it.hasNext()) {\n it.next().refreshData(tmpCardInfo);\n }\n }", "@Override\r\n\tpublic void notifyObservers() {\n\t\tfor (Observer o : this.observers) {\r\n\t\t\to.update();\r\n\t\t}\r\n\t}", "private void notifyListeners() {\n for (SerialConnectionReadyListener listener : listeners) {\n listener.SerialConnectionReady(this);\n }\n }", "private static void notifyListeners0(Future<?> future, DefaultFutureListeners listeners)\r\n/* 518: */ {\r\n/* 519:599 */ GenericFutureListener<?>[] a = listeners.listeners();\r\n/* 520:600 */ int size = listeners.size();\r\n/* 521:601 */ for (int i = 0; i < size; i++) {\r\n/* 522:602 */ notifyListener0(future, a[i]);\r\n/* 523: */ }\r\n/* 524: */ }", "public void notify(HashSet<Square> squares, Update update){\r\n\t\tArrayList<OnSquare> onSquares = new ArrayList<OnSquare>();\r\n\t\tArrayList<OnSquare> updateableOnSquares = new ArrayList<OnSquare>();\r\n\t\tfor(Square o:squares){\r\n\t\t\tonSquares.addAll(o.getOnSquares());\r\n\t\t\tupdateableOnSquares.addAll(o.getOnSquares());\r\n\t\t}\r\n\t\tfor(OnSquare o:onSquares)\r\n\t\t\tfor(UpdatePriorityPolicy policy:o.getUpdatePriorityPolicies())\r\n\t\t\t\tpolicy.prioritise(updateableOnSquares);\r\n\t\tfor(int i=0;i<updateableOnSquares.size();i++)\r\n\t\t\tupdateableOnSquares.get(i).update(update);\r\n\t}", "public void removeAll() {\n\t\tmListenerSet.clear();\n\t}", "public void notifyObservers() {\n for (int i = 0; i < observers.size(); i++) {\n Observer observer = (Observer)observers.get(i);\n observer.update(this.durum);\n }\n }", "public void alert(){\n\t\tfor (ChangeListener l : listeners) {\n\t\t\tl.stateChanged(new ChangeEvent(this));\n\t\t}\n\t}", "protected abstract void collectFires(Collection<Object> evAndListeners);", "private void notifyListeners(HelpTopic topic) {\n for (ITopicListener listener : topicListeners) {\n listener.onTopicSelected(topic);\n }\n }", "private void notifyObservers() {\n BinStatusUpdate newStatus = buildNewStatus();\n observers.iterator().forEachRemaining(binStatusUpdateStreamObserver -> binStatusUpdateStreamObserver.onNext(newStatus));\n }", "private void notifyObservers(GameEvent<S, A> e) {\n \tfor (GameObserver<S, A> o : observers){\n\t\t\to.notifyEvent(e);\n\t\t}\n\t}", "@Override\n\tpublic void notifyObservers() {\n\t\tfor (Observer obs : this.observers)\n\t\t{\n\t\t\tobs.update();\n\t\t}\n\t}", "public void notifyStudentsObservers() {\n \t\tfor (IStudentsObserver so : studentsObservers) {\n \t\t\tso.updateStudents();\n \t\t}\n \t}", "@Override\r\n\tpublic void notifyObservers() {\n\t\t\r\n\t}", "private void notifyListeners(ActionEvent evt) {\n\t\tIterator iter = m_listeners.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tActionListener listener = (ActionListener) iter.next();\n\t\t\tlistener.actionPerformed(evt);\n\t\t}\n\t}", "public void notifyObservers();", "public void notifyObservers();", "public void notifyObservers();", "public void notifyState() {\n\t\tList<T> alldata = new ArrayList<T>(this.dataMap.values());\t\r\n\t\t// call them with the current data\r\n\t\t// for each observer call them\r\n\t\tfor( ModelEvents<T> observer : this.ObserverList){\r\n\t\t\tobserver.dataState(alldata);\r\n\t\t}\r\n\r\n\t}", "@Override\r\n\tpublic void notifyObservers() {\n\t for(Observer o : observers){\r\n\t\t o.update();\r\n\t }\r\n\t}", "private void notifyHit(Ball hitter) {\n // Make a copy of the hitListeners before iterating over them.\n List<HitListener> listeners = new ArrayList<HitListener>(this.hitListeners);\n // Notify all listeners about a hit event:\n for (HitListener hl : listeners) {\n hl.hitEvent(this, hitter);\n }\n }", "protected void notifyListeners(CacheEvent e) {\n synchronized (listeners) {\n for (int i=0; i<listeners.size(); i++) {\n CacheListener l = (CacheListener) listeners.elementAt(i);\n l.cacheUpdated(e);\n }\n }\n }", "public void notifyObservers() {\n\t\tfor(ElevatorObserver obs: observers) {\n\t\t\tobs.elevatorDidFinishTask(this);\n\t\t}\n\t}", "public void notifyObservers(){\n for (GameObserver g: observers){\n g.handleUpdate(new GameEvent(this,\n currentPlayer,\n genericWorldMap,\n gameState,\n currentTerritoriesOfInterest,\n currentMessage));\n }\n }", "void notifyObservers();", "void notifyObservers();", "private void notifyHit(Ball hitter) {\r\n List<HitListener> listeners = new ArrayList<>(this.getHitListeners());\r\n for (HitListener hl : listeners) {\r\n hl.hitEvent(this, hitter);\r\n }\r\n }", "private void notifyListeners(boolean dataChanged) {\n for (OnDataChangedListener listener : dataChangedListeners) {\n listener.onDataChanged(dataChanged);\n }\n }", "protected void notifyObservers() {\n os.notify(this, null);\n }", "private void notifyObservers() {\n\t\tfor (Observer observer : subscribers) {\n\t\t\tobserver.update(theInterestingValue); // we can send whole object, or just value of interest\n\t\t\t// using a pull variant, the update method will ask for the information from the observer\n\t\t\t// observer.update(this)\n\t\t}\n\t}", "protected void notifyWorkflowStatusListeners() {\n\t\tfor (WorkflowStatusListener listener : workflowStatusListeners) {\n\t\t\tlistener.workflowStatusChanged(this);\n\t\t}\n\t}", "static void NotifyCorrespondingObservers() {}", "public void notifyHit(Ball hitter) {\r\n // Make a copy of the hitListeners before iterating over them.\r\n List<HitListener> listeners = new ArrayList<HitListener>(this.hitListeners);\r\n // Notify all listeners about a hit event:\r\n for (HitListener hl : listeners) {\r\n hl.hitEvent(this, hitter);\r\n }\r\n }", "protected void notifyListeners(int weekDay, int segment) {\r\n\t\tfor(ScheduleChangeListener listener : listeners)\r\n\t\t\tlistener.scheduleChanged(weekDay, segment);\r\n\t}", "@Override\n public void notifySubscribers(Bundle notification) {\n for (ISubscriber subscriber : subscribers) {\n List<SubscriberFilter> filters = subscriber.getFilters();\n\n if (notification.getString(\"notificationType\").equals(subscriber.getNotificationType())) {\n if (notification.getString(\"userId\").equals(subscriber.getUser().getAuthUserID())) {\n if (!filters.isEmpty()) {\n List<Boolean> filterResults = new ArrayList<>();\n\n Object entity = notification.getSerializable(\"entity\");\n HashMap entityHashMap = (HashMap)entity;\n\n for (int index = 0; index < filters.size(); index++) {\n Object entityValue = entityHashMap.get(filters.get(index).getField());\n\n if (entityValue != null) {\n filterResults.add(filters.get(index).getValues().contains(entityValue));\n }\n }\n\n if (!filterResults.contains(false)) {\n entityHashMap.put(\"notificationId\", notification.getString(\"notificationId\"));\n entityHashMap.put(\"userId\", notification.getString(\"userId\"));\n subscriber.update(notification);\n }\n } else {\n subscriber.update(notification);\n }\n }\n }\n }\n }", "protected void notifyStart(\n )\n {\n for(IListener listener : listeners)\n {listener.onStart(this);}\n }", "private void notifyListeners(ImageDownloadTask imageDownloadTask) {\n imageDownloadTaskMap.remove(imageDownloadTask.getStringUrl());\n if (imageDownloadTask.getBitmapImage() != null) {\n for (ImageRetrieverListener listener : listeners) {\n listener.newImageAvailable(imageDownloadTask.getStringUrl(), imageDownloadTask.getBitmapImage());\n }\n }\n }", "public void notifyObservers(){\r\n\t\tif (this.lastNews != null)\r\n\t\t\tfor (Observer ob: observers){\r\n\t\t\t\tob.updateFromLobby(lastNews);\r\n\t\t\t}\r\n\t}", "private void notifyListeners(MenuCommand mc) {\n connectorListeners.forEach(listener-> listener.onCommand(this, mc));\n }", "private synchronized void notifyCompleted() {\n // since there will be no more observer messages after this, there\n // is no need to keep any observers registered after we finish here\n // so get the observers one last time, and at the same time\n // remove them from the table\n Observer[] observers = observersTable.remove(this);\n if (observers != null) {\n for (Observer observer : observers) {\n observer.completed(this);\n }\n observersTable.remove(this);\n }\n\n }", "public void notifySelectedCourseObservers() {\n \t\tfor (ISelectedCourseObserver so : selectedCourseObservers) {\n \t\t\tso.updateSelectedCourse();\n \t\t}\n \t}", "private void notifyidiots() {\n\t\tfor(Observ g:obslist) {\n\t\t\tg.update();\n\t\t}\n\t}", "@Override\n\tpublic void notifyAllObservers() {\n\t\tmyTurtle.notifyObservers();\n\t}", "private void setListeners() {\n\n }", "public void notifyObserver() {\n\r\n for (Observer observer : observers) {\r\n\r\n observer.update(stockName, price);\r\n\r\n }\r\n }", "public void fireListenersOnPaths(Collection<IPath> pathList) {\r\n\t\tfor (Pair<IPath, IResourceChangeHandler> entry : trackedResources) {\r\n\t\t\tif (pathList.contains(entry.first)) {\r\n\t\t\t\tentry.second.resourceChanged(entry.first);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "public void resetListeners() {\n\t\tfinal ListenerSupport<AgentShutDownListener> backup = new ListenerSupport<>();\n\n\t\tgetListeners().apply(backup::add);\n\n\t\tbackup.apply(listener -> {\n\t\t\tgetListeners().remove(listener);\n\t\t});\n\t}", "@Override\n public void notifyObserver() {\n for(Observer o:list){\n o.update(w);\n }\n }", "@Override\n\tpublic void Notify() {\n\t\tfor (Observer observer : obs) {\n\t\t\tobserver.update();\n\t\t}\n\t}", "public void detachAllObservers();", "public static void fire() {\n\t\tILocalizationListener[] array = listeners.toArray(new ILocalizationListener[listeners.size()]);\n\t\tfor(ILocalizationListener l : array) {\n\t\t\tl.localizationChanged();\n\t\t}\n\t}", "public void notifyMultipleMentions(ArrayList<IStatus> mentions){\n for (ITwitterListener listener:listeners){\n listener.onMultipleMentions(mentions);\n }\n }", "public void doNotify(){\n\t\tsynchronized(m){\n\t\t\tm.notifyAll();\n\t\t}\n\t}", "protected void notifyListeners(BAEvent event) {\n \t\ttmc.callListeners(event); /// Call our listeners listening to only this match\n \t\tevent.callEvent(); /// Call bukkit listeners for this event\n \t}", "private void notifyListeners() {\n IDisplayPaneContainer container = (IDisplayPaneContainer) activeEditorMap\n .get(currentWindow);\n for (IVizEditorChangedListener listener : changeListeners) {\n listener.editorChanged(container);\n }\n }", "@Override\r\n\tprotected void setListeners() {\n\t\t\r\n\t}", "void check(List<Engine.ISubscriptionEventNotifier> notifiers, Engine.Settings settings) {\n for ( var mem : members_.entrySet() ) {\n mem.getValue().check(notifiers, settings);\n }\n }", "protected final void notifyReadyStateChanged() {\n // notify all listeners (including parents)\n for (DialogModuleChangeListener listener : listeners) {\n listener.onReadyStateChanged();\n }\n }", "protected void notifyAllObserversForClose() {\n\t\tArrayList<BTEvent> keys = this.observers.keys();\n\t\tfor (BTEvent event : keys) {\n\t\t\tArrayList<BTCommObserver> currentObservers = this.observers\n\t\t\t\t\t.get(event);\n\t\t\tif (currentObservers != null) {\n\t\t\t\tfor (BTCommObserver commObserver : currentObservers) {\n\t\t\t\t\tcommObserver.notifyForClose(this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void NotifyResetParameters() {\n for(IParameterViewListener listener : _listeners){\n listener.OnResetParameters();\n }\n }", "public void onSignalChange(boolean hasSignal) {\n\t\t\tif (mSelListeners != null && mSelListeners.size() > 0) {\n\t\t\t\tfor (IChannelSelectorListener mSelListener : mSelListeners) {\n\t\t\t\t\tmSelListener.signalChange(hasSignal);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void notifyListeners(AlgorithmBase algorithm) {\r\n\r\n for (int i = 0; i < objectList.size(); i++) {\r\n ((AlgorithmInterface) objectList.elementAt(i)).algorithmPerformed(algorithm);\r\n }\r\n\r\n }", "void firePluginsMonitored()\n {\n // Set that at least one iteration was done. That means that \"all available\" plugins\n // have been loaded by now.\n if ( !XMPPServer.getInstance().isSetupMode() )\n {\n executed = true;\n }\n\n for ( final PluginManagerListener listener : pluginManagerListeners )\n {\n firePluginsMonitored(listener);\n }\n }", "private static void fireMazeChanged() {\r\n\t\tfor (ATEListener l : listeners) {\r\n\t\t\tl.mazeChanged(currentMaze);\r\n\t\t}\r\n\t}", "public void removeAllListener() {\r\n listeners.clear();\r\n }", "private void notifyAmplitudeListeners(double amplitudeOne, double amplitudeTwo)\r\n {\n IDualAmplitudeListener[] listenerCopy = amplitudeListeners.toArray(new IDualAmplitudeListener[0]);\r\n for (IDualAmplitudeListener listener : listenerCopy)\r\n {\r\n listener.receiveAmplitude(amplitudeOne, amplitudeTwo);\r\n }\r\n }", "public void notifyChangementJoueurs();", "void firePropertyChange() {\n java.util.Vector targets;\n synchronized (this) {\n if (listeners == null) {\n return;\n }\n targets = (java.util.Vector) listeners.clone();\n }\n\n PropertyChangeEvent evt = new PropertyChangeEvent(this, null, null, null);\n\n for (int i = 0; i < targets.size(); i++) {\n PropertyChangeListener target = (PropertyChangeListener)targets.elementAt(i);\n target.propertyChange(evt);\n }\n }", "public void notifyListeners(Type type) {\n for (WorkspaceListener listener : listeners) {\n listener.update(type);\n }\n }", "private void _notifyAction() {\n for (int i = 0; i < _watchers.size(); ++i) {\n OptionWidgetWatcher ow = (OptionWidgetWatcher) _watchers.elementAt(i);\n ow.optionAction(this);\n }\n }", "private void send(Iterable<T> aMessages) {\n for (Listener<T> myL : _listeners)\n myL.arrived(aMessages);\n }", "protected void notifyListeners() {\n // TODO could these be done earlier (or just once?)\n JMeterContext threadContext = getThreadContext();\n JMeterVariables threadVars = threadContext.getVariables();\n SamplePackage pack = (SamplePackage) threadVars.getObject(JMeterThread.PACKAGE_OBJECT);\n if (pack == null) {\n // If child of TransactionController is a ThroughputController and TPC does\n // not sample its children, then we will have this\n // TODO Should this be at warn level ?\n log.warn(\"Could not fetch SamplePackage\");\n } else {\n SampleEvent event = new SampleEvent(res, threadContext.getThreadGroup().getName(),threadVars, true);\n // We must set res to null now, before sending the event for the transaction,\n // so that we can ignore that event in our sampleOccured method\n res = null;\n- // bug 50032 \n- if (!getThreadContext().isReinitializingSubControllers()) {\n- lnf.notifyListeners(event, pack.getSampleListeners());\n- }\n+ lnf.notifyListeners(event, pack.getSampleListeners());\n }\n }" ]
[ "0.7122317", "0.68158764", "0.66327965", "0.65905684", "0.6574038", "0.6525433", "0.646498", "0.64599496", "0.63984704", "0.6368882", "0.63354236", "0.6303136", "0.6292097", "0.6191815", "0.61672395", "0.6162506", "0.61621827", "0.6153037", "0.6136554", "0.6128948", "0.61256385", "0.6108751", "0.6091654", "0.6078001", "0.6077734", "0.6046739", "0.6022315", "0.6007006", "0.6002744", "0.59938735", "0.59914213", "0.5973174", "0.5969599", "0.59495014", "0.5928759", "0.5928581", "0.5928045", "0.5911765", "0.5885203", "0.5880412", "0.5874804", "0.58730245", "0.5856295", "0.58450705", "0.58450705", "0.58450705", "0.5841129", "0.5838258", "0.5831641", "0.58242416", "0.5821078", "0.5806774", "0.57844555", "0.57844555", "0.57767594", "0.5772179", "0.577061", "0.5748056", "0.57308143", "0.5729384", "0.5720384", "0.57173157", "0.57038724", "0.5698061", "0.5694814", "0.5692524", "0.5687545", "0.5644339", "0.5633196", "0.5623767", "0.5623461", "0.5617118", "0.56095254", "0.5602273", "0.55898416", "0.55895793", "0.55884546", "0.5564622", "0.55617654", "0.55363244", "0.55245596", "0.5513571", "0.54930353", "0.54838896", "0.5479445", "0.54664147", "0.54560256", "0.5453315", "0.54514587", "0.5434578", "0.54279846", "0.5417913", "0.5416159", "0.5415159", "0.54143673", "0.54101604", "0.54074425", "0.5404469", "0.5400296", "0.5396336" ]
0.58472973
43
Created by Administrator on 2016/12/6.
public interface IPublishArticle { @POST(ServerInterface.PUBLISH_ARTICLE) @Multipart Call<String> publishArticle(@Part MultipartBody.Part pic, @Part("type") String type, @Part("friendCircle.user.id") String userId, @Part("friendCircle.topic.id") String topicId, @Part("friendCircle.msg") String content); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\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\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo38117a() {\n }", "public void mo4359a() {\n }", "public final void mo51373a() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "public void verarbeite() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void autoDetails() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public contrustor(){\r\n\t}", "public Pitonyak_09_02() {\r\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "Petunia() {\r\n\t\t}", "@Override\n protected void getExras() {\n }", "@Override\n protected void initialize() \n {\n \n }", "public void mo6081a() {\n }", "@Override\n\tpublic void create () {\n\n\t}", "public void mo12930a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private TMCourse() {\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\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 initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n\tpublic void onCreate() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tprotected void onCreate() {\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}", "private void init() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public void create() {\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 public void init() {\n\n }", "@Override\n public void init() {\n\n }", "protected void aktualisieren() {\r\n\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n void init() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "protected void mo6255a() {\n }", "@Override\n public void init() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void mo1531a() {\n }" ]
[ "0.6197841", "0.6133664", "0.6056708", "0.60118645", "0.59580964", "0.59399956", "0.5914657", "0.59085876", "0.5887657", "0.58692795", "0.58692795", "0.5830893", "0.5819857", "0.5819857", "0.5805036", "0.58040106", "0.5797197", "0.57889426", "0.5788737", "0.5781579", "0.57657903", "0.5696671", "0.5686058", "0.5675403", "0.5651425", "0.56480294", "0.56428236", "0.56411004", "0.56226504", "0.56226504", "0.56226504", "0.56226504", "0.56226504", "0.56226504", "0.56226504", "0.5611954", "0.56051856", "0.5599763", "0.558107", "0.5581029", "0.5561829", "0.5560942", "0.5553229", "0.5547125", "0.5542591", "0.5534115", "0.55338705", "0.5528792", "0.5526381", "0.55260026", "0.5519081", "0.5515429", "0.55085844", "0.54977506", "0.54906034", "0.54839957", "0.54796416", "0.5477736", "0.5473904", "0.54644024", "0.54644024", "0.54644024", "0.54644024", "0.54644024", "0.54555583", "0.5438802", "0.5438802", "0.54368716", "0.543305", "0.54327786", "0.54327786", "0.5431811", "0.54306144", "0.5428692", "0.54286605", "0.5426523", "0.5426523", "0.5426523", "0.54197073", "0.5403285", "0.5403285", "0.5403285", "0.5403285", "0.5403285", "0.5403285", "0.5403283", "0.5401863", "0.5401863", "0.5401863", "0.53951913", "0.53951913", "0.53924215", "0.5384991", "0.53811103", "0.53809804", "0.5380045", "0.5379751", "0.5376165", "0.5372685", "0.5371702", "0.53676283" ]
0.0
-1
do what you need to do
private void restoreSleepMode(){ wl.release(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public void processing();", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "public void execute(){\n\t\t\n\t}", "protected void additionalProcessing() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void baocun() {\n\t\t\n\t}", "@Override\n\tpublic void processing() {\n\n\t}", "protected void execute() {\n\t\t\n\t}", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "@Override\n\tpublic void anular() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void doSomething(){\n\t\t// now in here calling doMore();\n\t\tdoMore();\n\t\tSystem.out.println(\"-----------\");\n\t\t\n\t\t\t\n\t\t}", "@Override\r\n\tprotected void processExecute() {\n\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "private void verificaData() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public void process() {\n\t}", "public void execute() {\r\n\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n protected void doAct() {\n }", "protected void execute() {\n\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "private void performDirectEdit() {\n\t}", "private void getStatus() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void doIt() {\n\t\t\n\t}", "protected void execute()\n\t{\n\t}", "private void doEvents() {\n\t\tapplyEvents(generateEvents());\t\t\n\t}", "@Override\r\n\tprotected void doF3() {\n\t\t\r\n\t}", "public void perder() {\n // TODO implement here\n }", "@Override\r\n\tprotected void doF1() {\n\t\t\r\n\t}", "public void verarbeite() {\n\t\t\r\n\t}", "public void run() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void execute() {\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void sub() {\n\n\t}", "void aprovarAnalise();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "private void remplirUtiliseData() {\n\t}", "protected void execute() {\n\n\n \n }", "protected void aktualisieren() {\r\n\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "protected void execute() {\n\t}", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "@Override\r\n\tpublic void doWorkFlowAnalysis() {\n\t\t\r\n\t}", "public void work() {\n\t}", "public void work() {\n\t}", "public void excavate();", "private void strin() {\n\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tprotected void doFirst() {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "protected void execute() {}", "@Override\n\tpublic void trabajar() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "protected void doPostAlgorithmActions() {\r\n\r\n if (displayLoc == NEW) {\r\n AlgorithmParameters.storeImageInRunner(getResultImage());\r\n }\r\n }", "public void working()\n {\n \n \n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n\tprotected void postRun() {\n\n\t}", "void berechneFlaeche() {\n\t}", "protected abstract void work();", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "public void run(){\n ArrayList<ArrayList<Furniture>> all = getSubsets(getFoundFurniture());\n ArrayList<ArrayList<Furniture>> valid = getValid(all);\n ArrayList<ArrayList<Furniture>> ordered = comparePrice(valid);\n ArrayList<ArrayList<Furniture>> orders = produceOrder();\n checkOrder(orders, false);\n }", "void redo();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();" ]
[ "0.6227504", "0.60906005", "0.5969728", "0.5939817", "0.58910096", "0.5880546", "0.58769715", "0.5873356", "0.58411336", "0.579991", "0.57992625", "0.5783903", "0.5773654", "0.5769613", "0.5768523", "0.5753223", "0.5694186", "0.56912005", "0.56798464", "0.5675148", "0.5653572", "0.5646175", "0.56457067", "0.5641392", "0.56287694", "0.5623988", "0.5617604", "0.561433", "0.561433", "0.561433", "0.5593432", "0.5592712", "0.5588644", "0.5579814", "0.55793", "0.5566626", "0.5563694", "0.5559782", "0.5559588", "0.5555129", "0.5553558", "0.5545208", "0.55446935", "0.55377245", "0.553664", "0.5533836", "0.55309606", "0.5529513", "0.5514542", "0.55107147", "0.5504733", "0.55034816", "0.55002826", "0.54948044", "0.5480838", "0.5475934", "0.54720265", "0.54710275", "0.54710275", "0.5457339", "0.545467", "0.545467", "0.5454488", "0.5451068", "0.5438998", "0.5438329", "0.5436971", "0.5432466", "0.5432466", "0.54314584", "0.5425922", "0.54210997", "0.5413363", "0.5406244", "0.5406244", "0.54052925", "0.5401203", "0.5395779", "0.5394098", "0.5390577", "0.5390577", "0.53823066", "0.53792185", "0.53791416", "0.5376337", "0.5369451", "0.53670186", "0.53630626", "0.53598344", "0.5351143", "0.5349585", "0.53425604", "0.5339763", "0.53311044", "0.5326176", "0.53250426", "0.53250426", "0.53250426", "0.53250426", "0.53250426", "0.53250426" ]
0.0
-1
Expected number of proxies
@Schema(required = true, description = "Expected number of proxies") public Integer getExpectedProxiesCount() { return expectedProxiesCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPeerURLsCount();", "public static Integer numValidClients() {\n return getLoggedInUserConnections().size() + anonClients.size();\n }", "public int manyConnections() {\n\t\tint ammound = 0;\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif(this.get(i).clientAlive) {\n\t\t\t\tammound++;\n\t\t\t}\n\t\t\tSystem.out.println(\"Ist Client Nr. \" + i + \" frei? \" + !this.get(i).isAlive());\n\t\t}\n\t\treturn ammound;\n\t\t\n\t}", "private static synchronized long nextProxyId() {\n return _proxyId++;\n }", "public int getNumAlives() {\n return aliveTroopsMap.size();\n }", "public int getNumNetworkCopies(){\n synchronized (networkCopiesLock){\n return this.networkCopies.size();\n }\n }", "private int visitedNetworksCount() {\n final HashSet<String> visitedNetworksSet = new HashSet<>(mVisitedNetworks);\n return visitedNetworksSet.size();\n }", "protected int numPeers() {\n\t\treturn peers.size();\n\t}", "int getHotelImageURLsCount();", "@Test\n\tpublic void testConnectionsExistOnPoolCreation() {\n\t\tAssert.assertTrue(pool.totalConnections() > 0); \n\t}", "@Test(timeout = 4000)\n public void test62() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n connectionFactories0.getXAConnectionFactory();\n int int0 = connectionFactories0.getXATopicConnectionFactoryCount();\n assertEquals(0, int0);\n }", "int getConnectionsCount();", "public int numberOfOpenSites() {\n \treturn size;\n }", "int getPeersCount();", "int getCityImageURLsCount();", "@Test\n public void testSumEstimatedProxySize()\n {\n assertEquals(this.linealRegressionCalculator.sumEstimatedProxySize(), 3828.0, 0.01);\n }", "public int numberOfOpenSites() {\n \treturn num;\r\n }", "int getDelegatedOutputsCount();", "@Test public void modelExpectedProxyingBehavior() {\n\n boolean bigTableOfTruth[][] = new boolean[][]{\n /* proxySelTraffic, avoidProxy, proxy_everything, result */\n { true, true, true, true },\n { false, true, true, true },\n { true, false, true, true },\n { false, false, true, true },\n { true, true, false, false },\n { false, true, false, true },\n { true, false, false, true },\n { false, false, false, true },\n };\n\n for (int i = 0; i < bigTableOfTruth.length; i++) {\n boolean[] row = bigTableOfTruth[i];\n\n BrowserConfigurationOptions options = new BrowserConfigurationOptions();\n options.setOnlyProxySeleniumTraffic(row[0]);\n options.setAvoidProxy(row[1]);\n options.setProxyEverything(row[2]);\n\n Assert.assertEquals(\"Failure on row: \" + i, row[3], Proxies.isProxyingAllTraffic(options.asCapabilities()));\n }\n\n }", "int getCertificatesCount();", "int getCertificatesCount();", "int getRequestsCount();", "int getRequestsCount();", "@Override\n\tpublic void setMaxNumOfUrls(int maxNumOfUrls) {\n\t\t\n\t}", "@Test(timeout = 10000L)\n public void testNbNodes() throws Exception {\n CommonDriverAdminTests.testNbNodes(client, nbNodes);\n }", "int getNumCreationError() {\n \treturn pool.getNumCreationError();\n }", "public int numConnections(){\n return connections.size();\n }", "public static int getNumberCreated() {\n return numberOfPools;\n }", "public int totalNumNodes () { throw new RuntimeException(); }", "int getConnectionCount();", "public int size() {\n int size = 0;\n for (Map<Number160, PeerStatistic> map : peerMapVerified) {\n synchronized (map) {\n size += map.size();\n }\n }\n return size;\n }", "long countPostings() {\n \tlong result = 0;\n \tfor (Layer layer : layers.values())\n \t\tresult += layer.size();\n \treturn result;\n }", "public int numofConnections() {\n\t\tint numberofconnection = 0;\n\t\tString node;\n\t\tfor (String key : Nodeswithconnect.keySet()) {\n\t\t\tfor (int i = 0; i < Nodeswithconnect.get(key).length; i++) {\n\t\t\t\tnode = Nodeswithconnect.get(key)[i];\n\t\t\t\tif (!node.equals(\"null\")) {\n\t\t\t\t\tnumberofconnection++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn numberofconnection;\n\t}", "int getTotalCreatedConnections();", "public int numberOfOpenSites() {\n return NOpen;\r\n }", "long getRequestsCount();", "public int getHotelImageURLsCount() {\n return hotelImageURLs_.size();\n }", "int getPeerCount();", "int getLinksCount();", "public static int size() {\n\t\treturn (anonymousSize() + registeredSize());\n\t}", "public void testListenersCountWithCookie () throws Exception {\n doTestListenersCount (true);\n }", "public int numberOfOpenSites() {\n return 0;\n }", "void shouldUseSocksProxy() {\n }", "public int numberOfOpenSites() {\n return count;\n }", "public int getHotelImageURLsCount() {\n return hotelImageURLs_.size();\n }", "public int numberOfOpenSites(){ return openSites; }", "public int size() {\r\n\t\tint size = 0;\r\n\t\tfor (Integer key : connectionLists.keySet()) {\r\n\t\t\tsize += connectionLists.get(key).size();\r\n\t\t}\r\n\t\treturn size;\r\n\t}", "public int getTotalConnections()\n {\n // return _connections.size();\n return 0;\n }", "public int clientsCount(){\n return clientsList.size();\n }", "int getIndexEndpointsCount();", "public int size() {\n return adminList.size() + ipList.size() + tpList.size() + topicList.size();\n }", "@Override\n public int getNumConnections()\n {\n return connections.size();\n }", "long getAllSize(final TCServerMap[] maps) throws AbortedOperationException;", "int getUnreachableCount();", "Integer totalRetryAttempts();", "int getNetworkInterfacesCount();", "public int numberOfOpenSites(){\n return numOpenSites;\n }", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n int int0 = connectionFactories0.getXAQueueConnectionFactoryCount();\n assertEquals(0, int0);\n }", "public int getCityImageURLsCount() {\n return cityImageURLs_.size();\n }", "int getCertificateCount();", "int getCertificateCount();", "@java.lang.Override\n public int getVirtualDomainsCount() {\n return virtualDomains_.size();\n }", "private int getNumberOfAccounts()\n {\n ProtocolProviderFactory factory =\n DictAccRegWizzActivator.getDictProtocolProviderFactory();\n\n return factory.getRegisteredAccounts().size();\n }", "public int numberOfOpenSites()\r\n { return openSites; }", "@Test public void springProxies() {\n\t\tlong initialCount = targetRepo.count();\n\t\tContact contact = new Contact();\n\t\tcontact.setFirstname(\"Mickey\");\n\t\tcontact.setLastname(\"Mouse\");\n\t\ttargetRepo.save(contact);\n\t\tAssert.assertEquals(\n\t\t\tinitialCount+1,\n\t\t\ttargetRepo.count()\n\t\t);\n\t}", "private int getMinNumberofNewConnections(Map<String,\n AirportNode> airportGraph,\n List<AirportNode> unreachableAirportNodes) {\n unreachableAirportNodes.sort(\n (a1, a2) -> a2.unreachableConnections.size() - a1.unreachableConnections.size());\n int numberOfNewConnectionsToMake = 0;\n for (AirportNode eachUnreachableAirportNode : unreachableAirportNodes) {\n if (eachUnreachableAirportNode.isReachable) continue;\n // try to make a connection to the unreachable aiport and mark the airport as reachable\n numberOfNewConnectionsToMake++;\n for (String eachUnreachableConnection : eachUnreachableAirportNode.unreachableConnections) {\n airportGraph.get(eachUnreachableConnection).isReachable = true;\n }\n }\n return numberOfNewConnectionsToMake;\n }", "public int getIPCount() {\n return this.numberOfIPs;\n }", "@Test\n public void testGetSizeOfCheckoutList() {\n }", "protected double Hops() {\r\n\t\tint hops = 0;\r\n\t\tIterator<Flow> f = this.flows.iterator();\r\n\t\twhile (f.hasNext()) {\r\n\t\t\thops += f.next().getLinks().size();\r\n\t\t}\r\n\t\treturn hops;\r\n\t}", "int getHttpProxyPort();", "@Test(timeout = 4000)\n public void test74() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n connectionFactories0.clearConnectionFactory();\n XATopicConnectionFactory[] xATopicConnectionFactoryArray0 = new XATopicConnectionFactory[2];\n XATopicConnectionFactory xATopicConnectionFactory0 = new XATopicConnectionFactory();\n xATopicConnectionFactoryArray0[0] = xATopicConnectionFactory0;\n XATopicConnectionFactory xATopicConnectionFactory1 = new XATopicConnectionFactory();\n xATopicConnectionFactoryArray0[1] = xATopicConnectionFactory1;\n connectionFactories0.setXATopicConnectionFactory(xATopicConnectionFactoryArray0);\n connectionFactories0.getXATopicConnectionFactory();\n assertEquals(2, connectionFactories0.getXATopicConnectionFactoryCount());\n }", "public int size() {\n return trips.size();\n }", "@Test(timeout = 4000)\n public void test64() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n connectionFactories0.getXATopicConnectionFactory();\n ConnectionFactory[] connectionFactoryArray0 = new ConnectionFactory[2];\n ConnectionFactory connectionFactory0 = new ConnectionFactory();\n connectionFactoryArray0[0] = connectionFactory0;\n ConnectionFactory connectionFactory1 = new ConnectionFactory();\n connectionFactoryArray0[1] = connectionFactory1;\n connectionFactories0.setConnectionFactory(connectionFactoryArray0);\n assertEquals(2, connectionFactories0.getConnectionFactoryCount());\n }", "@Test\r\n\tpublic void testSize() {\r\n\t\tAssert.assertEquals(15, list.size());\r\n\t}", "void shouldUseSocksProxyInSecondPage() {\n }", "@Test\n public void TEST_UR_MAP_OBJECT_COUNT() {\n Map[] maps = new Map[3];\n maps[0] = new Map(\"Map1/Map1.tmx\", 1000, \"easy\");\n maps[1] = new Map(\"Map1/Map1.tmx\", 1000, \"medium\");\n maps[2] = new Map(\"Map1/Map1.tmx\", 1000, \"hard\");\n for (int i = 0; i <= 2; i++) {\n Map map = maps[i];\n map.createLanes();\n int obstacleCount = map.lanes[0].obstacles.length;\n int powerupCount = map.lanes[0].powerUps.length;\n for (int j = 1; j <= 3; j++) {\n assertEquals(map.lanes[j].obstacles.length, obstacleCount);\n assertEquals(map.lanes[j].powerUps.length, powerupCount);\n }\n }\n }", "public int numberOfOpenSites() {\n return (openCount);\n }", "public int getNumConnects() {\n\t\treturn numConnects;\n\t}", "public int size() {\n return neurons.size();\n }", "public int size() {\r\n return listeners.size() + weak.size();\r\n }", "private void incrConnectionCount() {\n connectionCount.inc();\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n int int0 = DBUtil.getOpenConnectionCount();\n assertEquals(0, int0);\n }", "public long size() {\n return links.length * links.length;\n }", "public int getCantidadRobots();", "public void testSize(Method m) {\n String newCacheName = \"repl-size\";\n startCaches(newCacheName);\n List<HotRodClient> newClients = createClients(newCacheName);\n try {\n TestSizeResponse sizeStart = newClients.get(0).size();\n assertStatus(sizeStart, Success);\n assertEquals(0, sizeStart.size);\n for (int i = 0; i < 20; i++) {\n newClients.get(1).assertPut(m, \"k-\" + i, \"v-\" + i);\n }\n TestSizeResponse sizeEnd = newClients.get(1).size();\n assertStatus(sizeEnd, Success);\n assertEquals(20, sizeEnd.size);\n } finally {\n newClients.forEach(HotRodClient::stop);\n }\n }", "int getDelegateesCount();", "private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}", "public int getCityImageURLsCount() {\n return cityImageURLs_.size();\n }", "Integer getConnectorCount();", "int getHopCount() {\n return hopCount;\n }", "public int getNonResourceUrlsCount() {\n return nonResourceUrls_.size();\n }", "public static int getConnectionCount()\r\n {\r\n return count_; \r\n }", "int getServerWorkIterations();", "@Test\n public void testNumLinks()\n {\n String[] navLinks = {\"CS1632 D3 Home\", \"Factorial\", \"Fibonacci\", \"Hello\", \"Cathedral Pics\"};\n int numLinks = 0;\n\n for (int i = 0; i < navLinks.length; i++) {\n driver.findElement(By.linkText(navLinks[0])).click();\n List<WebElement> links = driver.findElements(By.tagName(\"a\"));\n assertEquals(5, links.size());\n }\n }", "public boolean maxPeersReached(){\n\t\tif(peers.size()>=maxpeers){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "int getResponsesCount();", "@Test(timeout = 4000)\n public void test30() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n ConnectionFactories connectionFactories1 = new ConnectionFactories();\n connectionFactories1.getQueueConnectionFactoryCount();\n connectionFactories1.enumerateXATopicConnectionFactory();\n QueueConnectionFactory queueConnectionFactory0 = new QueueConnectionFactory();\n ConnectionFactories connectionFactories2 = new ConnectionFactories();\n try { \n connectionFactories2.setQueueConnectionFactory(0, queueConnectionFactory0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 0, Size: 0\n //\n verifyException(\"java.util.ArrayList\", e);\n }\n }", "public int loadBalance() {\r\n\t\tserverCount++;\r\n\t\tserverCount = (serverCount) % (servers.size());\r\n\t\treturn serverCount;\r\n\t}", "int getServerProcessingIterations();", "public int numberOfOpenSites() {\n return numberOfOpenSites;\n }" ]
[ "0.62589735", "0.6143268", "0.6104526", "0.5886667", "0.5870095", "0.5861299", "0.58572906", "0.58542573", "0.584562", "0.5844063", "0.58053005", "0.5798796", "0.57741797", "0.5756298", "0.56767166", "0.5671812", "0.56626356", "0.5654432", "0.56484324", "0.56465423", "0.56465423", "0.5644495", "0.5644495", "0.56399494", "0.5632046", "0.56228375", "0.55980754", "0.5593795", "0.55877435", "0.5570523", "0.5555143", "0.55449474", "0.5541121", "0.5521045", "0.5518468", "0.5518193", "0.5514869", "0.5511434", "0.55085284", "0.5497553", "0.54934627", "0.5473552", "0.54620945", "0.54565823", "0.5432487", "0.5429543", "0.54105914", "0.5401648", "0.5399123", "0.5390036", "0.53893465", "0.5381418", "0.5379066", "0.5374399", "0.53616154", "0.5356585", "0.5350725", "0.53465", "0.5345278", "0.5344601", "0.5344601", "0.53359944", "0.5335205", "0.53296775", "0.5326114", "0.53233236", "0.53180665", "0.53176284", "0.5310124", "0.53068495", "0.5306655", "0.53004056", "0.5298495", "0.5297677", "0.5294609", "0.52941436", "0.5290621", "0.52895623", "0.52871376", "0.52861494", "0.52827716", "0.5282532", "0.52792823", "0.52764076", "0.52751327", "0.5273427", "0.5265392", "0.52607024", "0.5259233", "0.5254742", "0.52364117", "0.5236284", "0.52336293", "0.5232597", "0.5230292", "0.52284956", "0.5224695", "0.52182263", "0.5213967", "0.5213392" ]
0.7067267
0
Secret string for signature generation
@Schema(required = true, description = "Secret string for signature generation") public String getSignatureSecret() { return signatureSecret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSecret();", "String getSecret();", "String getUniqueSignature();", "public String generateUniqueSignature(){\n final String uuid = UniqueIdentifierGenerator.generateUniqueIdentifier();\n setSignature(uuid);\n return uuid;\n }", "private String generateSecretKey(){\n SecureRandom random = new SecureRandom();\n byte[] bytes = new byte[20];\n\n random.nextBytes(bytes);\n Base32 base32 = new Base32();\n return base32.encodeToString(bytes);\n }", "java.lang.String getServerSecret();", "public abstract String getSecret();", "com.google.protobuf.ByteString getSecretBytes();", "private static String generateSecret(Accessor accessor, Consumer consumer) {\n return generateHash(accessor.getToken() + consumer.getSecret() + System.nanoTime());\n }", "private String signature() {\n\t\t++this.nonce;\n\t\tString message = new String(this.nonce + this.username + this.apiKey);\n\t\tMac hmac = null;\n\n\t\ttry {\n\t\t\thmac = Mac.getInstance(\"HmacSHA256\");\n\t\t\tSecretKeySpec secret_key = new SecretKeySpec(\n\t\t\t\t\t((String) this.apiSecret).getBytes(\"UTF-8\"), \"HmacSHA256\");\n\t\t\thmac.init(secret_key);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidKeyException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn String.format(\"%X\",\n\t\t\t\tnew BigInteger(1, hmac.doFinal(message.getBytes())));\n\t}", "String getSignature();", "String getSignature();", "String getSignature();", "private String key() {\n return \"secret\";\n }", "protected static String generateToken()\n\t{\n\t\treturn UUID.randomUUID().toString();\n\t}", "private static String sign(String data, String secretKey)\n throws NoSuchAlgorithmException, InvalidKeyException,\n IllegalStateException, UnsupportedEncodingException {\n Mac mac = Mac.getInstance(ALGORITHM);\n mac.init(new SecretKeySpec(secretKey.getBytes(CHARACTER_ENCODING),\n ALGORITHM));\n byte[] signature = mac.doFinal(data.getBytes(CHARACTER_ENCODING));\n String signatureBase64 = new String(Base64.encodeBase64(signature),\n CHARACTER_ENCODING);\n return new String(signatureBase64);\n }", "public byte[] generateSignature()\n {\n if (!forSigning)\n {\n throw new IllegalStateException(\"PairingDigestSigner not initialised for signature generation.\");\n }\n\n byte[] hash = new byte[digest.getDigestSize()];\n digest.doFinal(hash, 0);\n\n Element[] sig = pairingSigner.generateSignature(hash);\n\n try {\n return pairingSigner.derEncode(sig);\n } catch (IOException e) {\n throw new IllegalStateException(\"unable to encode signature\");\n }\n }", "byte[] generateSignature(byte[] message, PrivateKey privateKey, SecureRandom secureRandom) throws IOException;", "public String getSecretKey();", "private static Key generateKey() {\n return new SecretKeySpec(keyValue, ALGO);\n }", "public abstract String getSignature();", "java.lang.String getSignatureText();", "public static String buildHmacSha256SignedJWT(String sharedSecretString) throws JOSEException {\n\t\tJWSObject jwsObject = new JWSObject(new JWSHeader(JWSAlgorithm.HS256), new Payload(\"Hello world!\"));\n\n\t\t// create JWS header with HMAC-SHA256 algorithm.\n\t\tjwsObject.sign(new MACSigner(sharedSecretString));\n\n\t\t// serialize into base64-encoded text.\n\t\tString jwtInText = jwsObject.serialize();\n\n\t\t// print the value of the JWT.\n\t\tSystem.out.println(jwtInText);\n\n\t\treturn jwtInText;\n\t}", "@Override\n public String generateSignature(String requestPath, String method, String body, String timestamp) {\n try {\n String prehash = timestamp + method.toUpperCase() + requestPath + body;\n byte[] secretDecoded = Base64.getDecoder().decode(secretKey);\n SecretKeySpec keyspec = new SecretKeySpec(secretDecoded, \"HmacSHA256\");\n Mac sha256 = (Mac) GdaxConstants.SHARED_MAC.clone();\n sha256.init(keyspec);\n return Base64.getEncoder().encodeToString(sha256.doFinal(prehash.getBytes()));\n } catch (CloneNotSupportedException | InvalidKeyException e) {\n e.printStackTrace();\n throw new RuntimeErrorException(new Error(\"Cannot set up authentication headers.\"));\n }\n }", "void generateSecretKey() {\n\n Random rand = new Random();\n \n // randomly generate alphabet chars\n this.secretKey.setCharAt(0, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(1, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(4, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(5, (char) (rand.nextInt(26) + 'a'));\n\n // randomly generate special chars\n // special chars are between 33-47 and 58-64 on ASCII table\n if (rand.nextBoolean()) {\n this.secretKey.setCharAt(3, (char) (rand.nextInt(15) + '!'));\n this.secretKey.setCharAt(8, (char) (rand.nextInt(15) + '!'));\n } else {\n this.secretKey.setCharAt(3, (char) (rand.nextInt(7) + ':'));\n this.secretKey.setCharAt(8, (char) (rand.nextInt(7) + ':'));\n }\n \n // randomly generate int between 2 and 5\n this.secretKey.setCharAt(7, (char) (rand.nextInt(4) + '2'));\n }", "BigInteger getDigitalSignature();", "public final byte[] secret() {\n try {\n ByteSequence seq = new ByteSequence(this.sequence());\n seq.append(this._domainNameSeq);\n seq.append(this._creatorCert.getEncoded());\n return seq.sequence();\n } catch (Exception ex) {\n ex.printStackTrace();\n return null;\n }\n }", "com.google.protobuf.ByteString\n getServerSecretBytes();", "com.google.protobuf.ByteString getSignature();", "String getSecretByKey(String key);", "private static byte[] generateSymetricKey(int length) {\n\t\tSecureRandom random = new SecureRandom();\n\t\tbyte[] keyBytes = new byte[length];\n\t\trandom.nextBytes(keyBytes);\n\t\tSecretKeySpec key = new SecretKeySpec(keyBytes, \"AES\");\n\t\treturn key.getEncoded();\n\t}", "private static String generateSignature(String data, String key) throws SignatureException {\n String result;\n try {\n // get an hmac_sha1 key from the raw key bytes\n SecretKeySpec signingKey = new SecretKeySpec(key.getBytes(StandardCharsets.UTF_8), \"HmacSHA1\");\n // get an hmac_sha1 Mac instance and initialize with the signing key\n Mac mac = Mac.getInstance(\"HmacSHA1\");\n mac.init(signingKey);\n // compute the hmac on input data bytes\n byte[] rawHmac = mac.doFinal(data.getBytes(StandardCharsets.UTF_8));\n result = Base64.encodeBase64String(rawHmac);\n }\n catch (Exception e) {\n throw new SignatureException(\"Failed to generate HMAC : \" + e.getMessage());\n }\n return result;\n }", "private static SecretKeySpec generateKey(final String password) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n final MessageDigest digest = MessageDigest.getInstance(HASH_ALGORITHM);\n byte[] bytes = password.getBytes(\"UTF-8\");\n digest.update(bytes, 0, bytes.length);\n byte[] key = digest.digest();\n\n log(\"SHA-256 key \", key);\n\n SecretKeySpec secretKeySpec = new SecretKeySpec(key, \"AES\");\n return secretKeySpec;\n }", "private byte[] createSignatureBase() {\n final Charset utf8 = StandardCharsets.UTF_8;\n byte[] urlBytes = url.getBytes(utf8);\n byte[] timeStampBytes = Long.toString(timestamp).getBytes(utf8);\n byte[] secretBytes = secret.getBytes(utf8);\n\n // concatenate\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n try {\n stream.write(urlBytes);\n stream.write(body);\n stream.write(timeStampBytes);\n stream.write(secretBytes);\n } catch (IOException ex){\n logger.error(\"Could not create signature base\", ex);\n return new byte[0];\n }\n\n return stream.toByteArray();\n }", "private String generateToken(Map<String, Object> claims) {\n return Jwts.builder()\n .setClaims(claims)\n .setExpiration(new Date(System.currentTimeMillis() + 700000000))\n .signWith(SignatureAlgorithm.HS512, SECRET)\n .compact();\n }", "public void createSecret(final ArtifactVersion version, final Secret secret);", "public String generateClientSecret() {\n return clientSecretGenerator.generate().toString();\n }", "public static String urlSafeRandomToken() {\n SecureRandom random = new SecureRandom();\n byte bytes[] = new byte[20];\n random.nextBytes(bytes);\n Base64.Encoder encoder = Base64.getUrlEncoder().withoutPadding();\n String token = encoder.encodeToString(bytes);\n return token;\n }", "private String generateToken () {\n SecureRandom secureRandom = new SecureRandom();\n long longToken;\n String token = \"\";\n for ( int i = 0; i < 3; i++ ) {\n longToken = Math.abs( secureRandom.nextLong() );\n token = token.concat( Long.toString( longToken, 34 + i ) );//max value of radix is 36\n }\n return token;\n }", "private static String getNonceStr() {\r\n\t\tRandom random = new Random();\r\n\t\treturn MD5Util.MD5Encode(String.valueOf(random.nextInt(10000)), \"GBK\");\r\n\t}", "public static byte[] generateSalt() throws GeneralSecurityException { \n return CryptorFunctions.getRandomBytes(SECRETKEY_DERIVATION_SALT_SIZE_BYTE);\n }", "public static String generateAuthToken() throws EndlosException {\n\t\treturn hash(Utility.generateToken(6) + DateUtility.getCurrentEpoch() + Utility.generateToken(8));\n\t}", "public String generateKey(long duration) throws Exception;", "@Override\n public String buildSignature(RequestDataToSign requestDataToSign, String appKey) {\n // find private key for this app\n final String secretKey = keyStore.getPrivateKey(appKey);\n if (secretKey == null) {\n LOG.error(\"Unknown application key: {}\", appKey);\n throw new PrivateKeyNotFoundException();\n }\n\n // sign\n return super.buildSignature(requestDataToSign, secretKey);\n }", "protected byte[] engineSharedSecret() throws KeyAgreementException {\n return Util.trim(ZZ);\n }", "public String mo34971a() {\n return \"SHA-384\";\n }", "private static String generateToken(Accessor accessor) {\n return generateHash(accessor.getConsumerId() + System.nanoTime());\n }", "private String createSalt()\r\n {\r\n SecureRandom random = new SecureRandom();\r\n byte bytes[] = new byte[20];\r\n random.nextBytes(bytes);\r\n StringBuilder sb = new StringBuilder();\r\n\r\n for (int i = 0; i < bytes.length; i++)\r\n {\r\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\r\n }\r\n\r\n String salt = sb.toString();\r\n return salt;\r\n }", "public String makeNonce()\n\t{\n\t\tbyte[] data = new byte[NONCE_SIZE];\n\t\trandom.nextBytes(data);\n\n\t\treturn encoder.encode(data);\n\t}", "SignatureIdentification createSignatureIdentification();", "protected String generateKey(){\n Random bi= new Random();\n String returnable= \"\";\n for(int i =0;i<20;i++)\n returnable += bi.nextInt(10);\n return returnable;\n }", "private String prepareSecurityToken() {\r\n\t\tint time = ((int) System.currentTimeMillis() % SECURITY_TOKEN_TIMESTAMP_RANGE);\r\n\t\treturn String.valueOf(time + (new Random().nextLong() - SECURITY_TOKEN_TIMESTAMP_RANGE));\r\n\t}", "@Override\n public byte[] generateSignature() throws CryptoException, DataLengthException {\n if (!forSigning) {\n throw new IllegalStateException(\"CL04 Signer not initialised for signature generation.\");\n }\n\n try {\n CL04SignSecretPairingKeySerParameter sk = (CL04SignSecretPairingKeySerParameter) pairingKeySerParameter;\n Pairing pairing = PairingFactory.getPairing(sk.getParameters());\n final Element alpha = pairing.getZr().newRandomElement().getImmutable();\n final Element a = sk.getG().powZn(alpha);\n final List<Element> A = sk.getZ().stream().map(a::powZn).collect(Collectors.toCollection(ArrayList::new));\n final Element b = a.powZn(sk.getY()).getImmutable();\n final List<Element> B = A.stream().map(Ai -> Ai.powZn(sk.getY())).collect(Collectors.toCollection(ArrayList::new));\n final Element xTimesY = alpha.mul(sk.getX().mul(sk.getY()));\n final Element c = a.powZn(sk.getX()).mul(commitment.powZn(xTimesY)).getImmutable();\n\n Element[] signElements = new Element[3 + 2 * messages.size()];\n signElements[0] = a;\n signElements[1] = b;\n signElements[2] = c;\n for (int i = 0; i < messages.size(); i++) {\n signElements[3 + i] = A.get(i);\n signElements[3 + messages.size() + i] = B.get(i);\n }\n return derEncode(signElements);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "private int generateSecret() {\n int secret = secretGenerator.nextInt();\n while (secretToNumber.containsKey(secret)) {\n secret = secretGenerator.nextInt();\n }\n return secret;\n }", "public int getSecret() {\n return secret;\n }", "public String calculateSignature(String str) {\n try {\n String signingKey = getSigningKey();\n byte[] bytes = str.getBytes(\"UTF8\");\n SecretKeySpec secretKeySpec = new SecretKeySpec(signingKey.getBytes(\"UTF8\"), \"HmacSHA1\");\n Mac instance = Mac.getInstance(\"HmacSHA1\");\n instance.init(secretKeySpec);\n byte[] doFinal = instance.doFinal(bytes);\n return ByteString.of(doFinal, 0, doFinal.length).base64();\n } catch (InvalidKeyException e) {\n Twitter.getLogger().e(\"Twitter\", \"Failed to calculate signature\", e);\n return \"\";\n } catch (NoSuchAlgorithmException e2) {\n Twitter.getLogger().e(\"Twitter\", \"Failed to calculate signature\", e2);\n return \"\";\n } catch (UnsupportedEncodingException e3) {\n Twitter.getLogger().e(\"Twitter\", \"Failed to calculate signature\", e3);\n return \"\";\n }\n }", "private byte[] getTokenKey() throws InternalSkiException {\n return sysKey(TOKEN_KEY);\n }", "private static Key generateKey(String secretKeyString) throws Exception {\n // generate secret key from string\n Key key = new SecretKeySpec(secretKeyString.getBytes(), \"AES\");\n return key;\n }", "public static String generateRandomNonce() {\n Random r = new Random();\n StringBuffer n = new StringBuffer();\n for (int i = 0; i < r.nextInt(8) + 2; i++) {\n n.append(r.nextInt(26) + 'a');\n }\n return n.toString();\n }", "private static String sign(String data, String key)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMac mac = Mac.getInstance(\"HmacSHA1\");\n\t\t\t\tmac.init(new SecretKeySpec(key.getBytes(), \"HmacSHA1\"));\n\t\t\t\treturn Base64.encodeBytes(mac.doFinal(data.getBytes(\"UTF-8\")));\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tthrow new RuntimeException(new SignatureException(\"Failed to generate signature: \" + e.getMessage(), e));\n\t\t\t}\n\t\t}", "protected SecretKey generateRandomAESKey() throws GeneralSecurityException {\n fixPrng();\n // Instantiante KeyGenerator\n KeyGenerator keyGenerator = KeyGenerator.getInstance(AES_INSTANCE);\n // Initialize generator with the desired keylength\n keyGenerator.init(AES_128);\n // Return new key\n return keyGenerator.generateKey();\n }", "private String generateNonce() {\n // Get the time of day and run MD5 over it.\n Date date = new Date();\n long time = date.getTime();\n Random rand = new Random();\n long pad = rand.nextLong();\n // String nonceString = (new Long(time)).toString()\n // + (new Long(pad)).toString();\n String nonceString = Long.valueOf(time).toString()\n + Long.valueOf(pad).toString();\n byte mdbytes[] = messageDigest.digest(nonceString.getBytes());\n // Convert the mdbytes array into a hex string.\n return toHexString(mdbytes);\n }", "@Override\r\n protected String appSecret() {\r\n return \"\";\r\n }", "protected static String generateSaltString() {\n Random rng = new Random();\n byte[] saltBytes = new byte[32];\n rng.nextBytes(saltBytes);\n return bytesToString(saltBytes);\n }", "public static String generateHalfKey(){\n return randomChars(HALF_KEY_LENGTH);\n }", "@Override\n public String generateKey(int round) {\n return this.key.substring(4 * round, 4 * round + 16);\n }", "public String getSecretWord()\n {\n return OriginSecretWord;\n }", "public abstract String getSigAlgOID();", "public String generateSalt()\r\n\t{\r\n\t\tfinal Random r = new SecureRandom();\r\n\t\tbyte[] byteSalt = new byte[32];\r\n\t\tr.nextBytes(byteSalt);\r\n\t\tsalt = DatatypeConverter.printBase64Binary(byteSalt);\r\n\r\n\t\treturn salt;\r\n\t}", "com.google.protobuf.ByteString\n getSignatureBytes();", "com.google.protobuf.ByteString\n getSignatureBytes();", "Signature getSignature();", "private static String genString(){\n final String ALPHA_NUMERIC_STRING =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n int pwLength = 14; //The longer the password, the more likely the user is to change it.\n StringBuilder pw = new StringBuilder();\n while (pwLength-- != 0) {\n int character = (int)(Math.random()*ALPHA_NUMERIC_STRING.length());\n pw.append(ALPHA_NUMERIC_STRING.charAt(character));\n }\n return pw.toString(); //\n }", "public abstract byte[] getSignature();", "private String pswd(){\n try{\n PBEKeySpec spec = new PBEKeySpec(this.Creator.toUpperCase().toCharArray(), this.Time.getBytes(), 100, 512);\n SecretKeyFactory skf = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n //System.out.println(\"pswd=\"+this.toHex(skf.generateSecret(spec).getEncoded()));\n return this.toHex(skf.generateSecret(spec).getEncoded());\n }catch(InvalidKeySpecException | NoSuchAlgorithmException e){\n e.printStackTrace();\n }\n return null;\n }", "public static ECKey createFromPassphrase(String secret) {\n byte[] hash = null;\n\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n md.update(secret.getBytes(\"UTF-8\"));\n hash = md.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n ECKey key = new ECKey(new SecureRandom(hash));\n return key;\n }", "private static String getSalt() {\n\t\tSecureRandom gen = new SecureRandom();\n\t\tbyte[] salt = new byte[32];\n\t\tgen.nextBytes(salt);\n\t\treturn DatatypeConverter.printBase64Binary(salt);\n\t}", "@Test\n public void testNullRandom() {\n String sha = \"SHA-256\";\n String mgf = \"MGF1\";\n int saltLen = 32;\n int keySizeInBits = 2048;\n int samples = 8;\n Signature signer;\n PrivateKey priv;\n try {\n String algorithm = getAlgorithmName(sha, mgf);\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\");\n keyGen.initialize(keySizeInBits);\n KeyPair keypair = keyGen.genKeyPair();\n priv = keypair.getPrivate();\n signer = Signature.getInstance(algorithm);\n PSSParameterSpec params = getPssParameterSpec(sha, mgf, sha, saltLen, 1);\n signer.setParameter(params);\n } catch (GeneralSecurityException ex) {\n TestUtil.skipTest(\"RSA key generation is not supported.\" + ex);\n return;\n }\n Set<String> signatures = new HashSet<String>();\n byte[] messageBytes = new byte[8];\n for (int i = 0; i < samples; i++) {\n byte[] signature;\n try {\n signer.initSign(priv, null);\n signer.update(messageBytes);\n signature = signer.sign();\n } catch (GeneralSecurityException ex) {\n fail(\"Failed to sign. \" + ex);\n return;\n }\n String hex = TestUtil.bytesToHex(signature);\n assertTrue(\"Same signature computed twice\", signatures.add(hex));\n }\n }", "static String getSaltString() {\n String SALTCHARS = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\";\n StringBuilder salt = new StringBuilder();\n Random rnd = new Random();\n while (salt.length() < 18) { // length of the random string.\n int index = (int) (rnd.nextFloat() * SALTCHARS.length());\n salt.append(SALTCHARS.charAt(index));\n }\n String saltStr = salt.toString();\n return saltStr;\n }", "@Override // com.google.android.gms.internal.ads.zzayz\n public final /* synthetic */ Signature zzb(String str, Provider provider) throws GeneralSecurityException {\n return provider == null ? Signature.getInstance(str) : Signature.getInstance(str, provider);\n }", "com.microsoft.schemas.office.x2006.digsig.STUniqueIdentifierWithBraces xgetSignatureProviderId();", "@Test\n public void testRandomization() {\n String sha = \"SHA-256\";\n String mgf = \"MGF1\";\n int saltLen = 32;\n int keySizeInBits = 2048;\n int samples = 8;\n Set<String> signatures = new HashSet<String>();\n Signature signer;\n PrivateKey priv;\n try {\n String algorithm = getAlgorithmName(sha, mgf);\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\");\n keyGen.initialize(keySizeInBits);\n KeyPair keypair = keyGen.genKeyPair();\n priv = keypair.getPrivate();\n signer = Signature.getInstance(algorithm);\n PSSParameterSpec params = getPssParameterSpec(sha, mgf, sha, saltLen, 1);\n signer.setParameter(params);\n byte[] messageBytes = new byte[8];\n for (int i = 0; i < samples; i++) {\n signer.initSign(priv);\n signer.update(messageBytes);\n byte[] signature = signer.sign();\n String hex = TestUtil.bytesToHex(signature);\n assertTrue(\"Same signature computed twice\", signatures.add(hex));\n }\n } catch (GeneralSecurityException ex) {\n TestUtil.skipTest(\"Failed to generat signatures:\" + ex);\n return;\n }\n }", "private String generateSignatureBaseString(String httpMethod, String url, Map<String, String> requestParams, String nonce, String timestamp) {\n Map<String, String> params = new HashMap<>();\n requestParams.entrySet().forEach(entry -> {\n put(params, entry.getKey(), entry.getValue());\n });\n put(params, oauth_consumer_key, consumerKey);\n put(params, oauth_nonce, nonce);\n put(params, oauth_signature_method, signatureMethod);\n put(params, oauth_timestamp, timestamp);\n put(params, oauth_token, token);\n put(params, oauth_version, version);\n Map<String, String> sortedParams = params.entrySet().stream().sorted(Map.Entry.comparingByKey())\n .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (oldValue, newValue) -> oldValue, LinkedHashMap::new));\n StringBuilder base = new StringBuilder();\n sortedParams.entrySet().forEach(entry -> {\n base.append(entry.getKey()).append(\"=\").append(entry.getValue()).append(\"&\");\n });\n base.deleteCharAt(base.length() - 1);\n String baseString = httpMethod.toUpperCase() + \"&\" + encode(url) + \"&\" + encode(base.toString());\n return baseString;\n }", "private String generateBase32Token() throws CryptoProviderException {\n byte[] randomBytes = keyGenerator.generateRandomBytes(BASE32_KEY_LENGTH);\n return BaseEncoding.base32().omitPadding().encode(randomBytes).substring(0, BASE32_KEY_LENGTH);\n }", "private String getTOTPCode(String secretKey){\n Base32 base32 = new Base32();\n byte[] bytes = base32.decode(secretKey);\n String hexKey = Hex.encodeHexString(bytes);\n\n return TOTP.getOTP(hexKey);\n }", "byte[] get_secure_random_bytes();", "byte[] get_node_secret();", "public com.google.protobuf.ByteString\n getSignatureBytes() {\n Object ref = signature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n signature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSignatureBytes() {\n Object ref = signature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n signature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "java.lang.String getSignatureProviderId();", "String getComponentAppSecret();", "boolean isSecretValid();", "@Override\n\tpublic String getMYSign(Map<String, String> param) {\n\t\treturn appMd5(param,getKey());\n\t}", "public String generateAuthCode() {\n return authCodeGenerator.generate().toString();\n }", "public static String generateDeviceToken() throws EndlosException {\n\t\treturn hash(Utility.generateUuid() + DateUtility.getCurrentEpoch());\n\t}", "public String constructSignatureBase(String str, String str2) {\n URI create = URI.create(this.url);\n TreeMap queryParams = UrlUtils.getQueryParams(create, true);\n Map<String, String> map = this.postParams;\n if (map != null) {\n queryParams.putAll(map);\n }\n String str3 = this.callback;\n if (str3 != null) {\n queryParams.put(\"oauth_callback\", str3);\n }\n queryParams.put(\"oauth_consumer_key\", this.authConfig.getConsumerKey());\n queryParams.put(\"oauth_nonce\", str);\n queryParams.put(\"oauth_signature_method\", \"HMAC-SHA1\");\n queryParams.put(\"oauth_timestamp\", str2);\n TwitterAuthToken twitterAuthToken = this.authToken;\n if (!(twitterAuthToken == null || twitterAuthToken.token == null)) {\n queryParams.put(\"oauth_token\", this.authToken.token);\n }\n queryParams.put(\"oauth_version\", \"1.0\");\n StringBuilder sb = new StringBuilder();\n sb.append(create.getScheme());\n sb.append(\"://\");\n sb.append(create.getHost());\n sb.append(create.getPath());\n String sb2 = sb.toString();\n StringBuilder sb3 = new StringBuilder();\n sb3.append(this.method.toUpperCase(Locale.ENGLISH));\n sb3.append(Typography.amp);\n sb3.append(UrlUtils.percentEncode(sb2));\n sb3.append(Typography.amp);\n sb3.append(getEncodedQueryParams(queryParams));\n return sb3.toString();\n }", "public String getSignature() {\n Object ref = signature_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n signature_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getSignature() {\n Object ref = signature_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n signature_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "@Override\n public com.google.protobuf.ByteString\n getSignatureBytes() {\n Object ref = signature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n signature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public com.google.protobuf.ByteString\n getSignatureBytes() {\n Object ref = signature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n signature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }" ]
[ "0.7524962", "0.7423396", "0.72570646", "0.7208524", "0.7047588", "0.69776434", "0.6966646", "0.6803699", "0.67820364", "0.6767182", "0.65909976", "0.65909976", "0.65909976", "0.6511597", "0.6409063", "0.6398827", "0.6395951", "0.6355108", "0.63476586", "0.63198125", "0.63170516", "0.6286606", "0.6277557", "0.6269094", "0.6247082", "0.622415", "0.622227", "0.6197804", "0.61940426", "0.6187961", "0.61766136", "0.61688834", "0.6111803", "0.60955644", "0.60914624", "0.6088659", "0.60788554", "0.6068649", "0.6063318", "0.60625654", "0.605876", "0.6044641", "0.60390145", "0.6028826", "0.602724", "0.6025831", "0.6014254", "0.6011355", "0.60061425", "0.60012174", "0.60009784", "0.5998137", "0.59720784", "0.5964071", "0.5944631", "0.5932238", "0.5930448", "0.5927043", "0.5926207", "0.59157795", "0.591021", "0.59059864", "0.5897137", "0.58882564", "0.5887761", "0.5871801", "0.5871462", "0.58712655", "0.58475953", "0.5845334", "0.5845334", "0.5845028", "0.5838024", "0.5836735", "0.5821078", "0.5816682", "0.5795378", "0.5786565", "0.57845193", "0.57747114", "0.5770209", "0.576766", "0.57669115", "0.5754443", "0.57512707", "0.57511", "0.5746658", "0.5740657", "0.5740657", "0.5738293", "0.5728978", "0.5724235", "0.57181555", "0.5712332", "0.57069486", "0.57053083", "0.57016575", "0.57016575", "0.56954324", "0.56954324" ]
0.7275947
2
Signature validity in milliseconds
@Schema(required = true, description = "Signature validity in milliseconds") public Long getSignatureValidForMillis() { return signatureValidForMillis; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean verifySignature() {\r\n\t\t\r\n\t\tString data;\r\n\t\t\r\n\t\tif(isTypeCreation){\r\n\t\t\t\r\n\t\t\tdata = StringUtil.getStringFromKey(creator) + name +\r\n\t\t\t\t\tdescription + begin + end+end_subscription+\r\n\t\t\t\t\tlocation+min_capacity+max_capacity;\r\n\t\t\treturn StringUtil.verifyECDSASig(creator, data, signature);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdata = StringUtil.getStringFromKey(subscriber)+id_event;\r\n\t\t\treturn StringUtil.verifyECDSASig(subscriber, data, signature);\r\n\t\t}\r\n//\t\tSystem.out.println(\"signature \"+signature);\r\n\t\t\r\n\t}", "public long getTokenValidityInSeconds() {\n return tokenValidityInSeconds;\n }", "public boolean verifiySignature() {\n\t\tString data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient)\n\t\t\t\t+ Float.toString(value);\n\t\treturn StringUtil.verifyECDSASig(sender, data, signature);\n\t}", "boolean hasExpiryTimeSecs();", "public boolean verifySignature() {\n\n String data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(recipient) + Float.toString(value);\n return StringUtil.verifyECDSASig(sender, data, signature);\n }", "boolean hasSignature();", "boolean hasSignature();", "Duration getTokenExpiredIn();", "public Integer getAccessTokenValiditySeconds() {\n return accessTokenValiditySeconds;\n }", "public boolean verifyDigitalSignature(VidaasSignature vidaasSignature, String message)\n\t\t\tthrows GeneralSecurityException, IOException {\n\t\tbyte[] sigBytes;\n\t\tSystem.out.println(\"verifyDigitalSignature\");\n\t\t\n\t\tDate now = new Date();\n\t\tif (((now.getTime() - vidaasSignature.getTimestamp()) > (maxMessageAgeSeconds * 1000))\n\t\t\t\t&& (vidaasSignature.getTimestamp() != 0)) {\n\t\t\t// Message is too old\n\t\t\tmessageTooOld = true;\n\t\t} else {\n\t\t\t// Message has not yet expired\n\t\t\tmessageTooOld = false;\n\t\t\tString decodedUrl = decodeSignature(vidaasSignature.getSignature());\n\t\t\tSystem.out.println(\"Decoded:\" + decodedUrl);\n\t\t\tsigBytes = decodedUrl.getBytes();\n\t\t\treturn verifyDigitalSignature(sigBytes, vidaasSignature.getTimestampedMessage(message));\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public boolean checkTokenExpiry() {\n //System.out.println(\"Checking token expiry...\");\n Date now = new Date();\n long nowTime = now.getTime();\n //Date expire;\n Date tokenEXPClaim;\n long expires;\n try {\n DecodedJWT recievedToken = JWT.decode(currentAccessToken);\n tokenEXPClaim = recievedToken.getExpiresAt();\n expires = tokenEXPClaim.getTime();\n //System.out.println(\"Now is \"+nowTime);\n //System.out.println(\"Expires at \"+expires);\n //System.out.println(\"Expired? \"+(nowTime >= expires));\n return nowTime >= expires;\n } \n catch (Exception exception){\n System.out.println(\"Problem with token, no way to check expiry\");\n System.out.println(exception);\n return true;\n }\n \n }", "long getExpiration();", "boolean hasExpiry();", "public boolean checkTokenExpiry(String token) {\n System.out.println(token);\n Date now = new Date();\n long nowTime = now.getTime();\n //Date expire;\n Date tokenEXPClaim;\n long expires;\n try {\n DecodedJWT recievedToken = JWT.decode(token);\n tokenEXPClaim = recievedToken.getExpiresAt();\n expires = tokenEXPClaim.getTime();\n return nowTime >= expires;\n } \n catch (Exception exception){\n System.out.println(\"Problem with token, no way to check expiry\");\n System.out.println(exception);\n return true;\n }\n \n }", "public long getTokenValidityInSecondsForRememberMe() {\n return tokenValidityInSecondsForRememberMe;\n }", "int getSignature ();", "public int getSignedUrlDuration();", "private void verifyCadesSignature(byte[] signature, byte[] data)\n throws CmsCadesException, TspVerificationException, CMSSignatureException {\n CadesSignature cadesSig = new CadesSignature(signature, data);\n int signerInfoLength = cadesSig.getSignerInfos().length;\n\n System.out.println(\"Signature contains \" + signerInfoLength + \" signer infos\");\n\n for (int j = 0; j < signerInfoLength; j++) {\n cadesSig.verifySignatureValue(j);\n System.out.println(\"Signer \" + (j + 1) + \" signature value is valid.\");\n\n // tsp verification\n SignatureTimeStamp[] timestamps = cadesSig.getSignatureTimeStamps(j);\n for (SignatureTimeStamp tst : timestamps) {\n System.out.println(\"Signer info \" + (j + 1) + \" contains a signature timestamp.\");\n tst.verifyTimeStampToken(null);\n System.out.println(\"Signer info \" + (j + 1) + \" signature timestamp is valid.\");\n }\n }\n }", "boolean isValidExpTime();", "String getSignature();", "String getSignature();", "String getSignature();", "boolean isExpire(long currentTime);", "public static boolean verifyTimeStamp(String timeStr) {\n return true;\n }", "private void validateFermatPacketSignature(FermatPacket fermatPacketReceive){\n\n System.out.println(\" WsCommunicationVPNClient - validateFermatPacketSignature\");\n\n /*\n * Validate the signature\n */\n boolean isValid = AsymmectricCryptography.verifyMessageSignature(fermatPacketReceive.getSignature(), fermatPacketReceive.getMessageContent(), vpnServerIdentity);\n\n System.out.println(\" WsCommunicationVPNClient - isValid = \" + isValid);\n\n /*\n * if not valid signature\n */\n if (!isValid){\n throw new RuntimeException(\"Fermat Packet received has not a valid signature, go to close this connection maybe is compromise\");\n }\n\n }", "public TimeSignatureRetriever ()\r\n {\r\n }", "com.google.protobuf.ByteString getSignedTimeStamp();", "BigInteger getDigitalSignature();", "Signature getSignature();", "int getExpiryTimeSecs();", "public static boolean isSigned_infos_timestamp() {\n return false;\n }", "private void verifyCadesSignatureStream(InputStream signature, InputStream data)\n throws CmsCadesException, TspVerificationException, CMSSignatureException {\n CadesSignatureStream cadesSig = new CadesSignatureStream(signature, data);\n int signerInfoLength = cadesSig.getSignerInfos().length;\n\n System.out.println(\"Signature contains \" + signerInfoLength + \" signer infos\");\n\n for (int j = 0; j < signerInfoLength; j++) {\n cadesSig.verifySignatureValue(j);\n System.out.println(\"Signer \" + (j + 1) + \" signature value is valid.\");\n\n // tsp verification\n SignatureTimeStamp[] timestamps = cadesSig.getSignatureTimeStamps(j);\n for (SignatureTimeStamp tst : timestamps) {\n System.out.println(\"Signer info \" + (j + 1) + \" contains a signature timestamp.\");\n tst.verifyTimeStampToken(null);\n System.out.println(\"Signer info \" + (j + 1) + \" signature timestamp is valid.\");\n }\n }\n }", "boolean isValidForNow ();", "public boolean checkJTIValidityPeriod(String jti, long jwtExpiryTimeMillis, long currentTimeInMillis,\n long timeStampSkewMillis) throws IdentityOAuth2Exception {\n if (currentTimeInMillis + timeStampSkewMillis > jwtExpiryTimeMillis) {\n return logAndReturnTrue(\"JWT Token with jti: \" + jti + \"has been reused after the allowed expiry time:\"\n + jwtExpiryTimeMillis);\n } else {\n return logAndReturnFalse(\"JWT Token with jti: \" + jti + \" Has been replayed before the allowed expiry time:\"\n + jwtExpiryTimeMillis);\n }\n }", "String getSpecifiedExpiry();", "public int getExpiry();", "protected boolean validateExpiration(SignedJWT jwtToken) {\n boolean valid = false;\n try {\n Date expires = jwtToken.getJWTClaimsSet().getExpirationTime();\n if (expires == null || new Date().before(expires)) {\n LOG.debug(\"JWT token expiration date has been \"\n + \"successfully validated\");\n valid = true;\n } else {\n LOG.warn(\"JWT expiration date validation failed.\");\n }\n } catch (ParseException pe) {\n LOG.warn(\"JWT expiration date validation failed.\", pe);\n }\n return valid;\n }", "boolean hasExpirationDate();", "Entry<StatusType, String> verifyInternalSignature(final Document document);", "String getUniqueSignature();", "protected boolean validateSignature(SignedJWT jwtToken) {\n boolean valid = false;\n if (JWSObject.State.SIGNED == jwtToken.getState()) {\n LOG.debug(\"JWT token is in a SIGNED state\");\n if (jwtToken.getSignature() != null) {\n LOG.debug(\"JWT token signature is not null\");\n try {\n JWSVerifier verifier = new RSASSAVerifier(publicKey);\n if (jwtToken.verify(verifier)) {\n valid = true;\n LOG.debug(\"JWT token has been successfully verified\");\n } else {\n LOG.warn(\"JWT signature verification failed.\");\n }\n } catch (JOSEException je) {\n LOG.warn(\"Error while validating signature\", je);\n }\n }\n }\n return valid;\n }", "private boolean hasTimeSig (Measure measure)\r\n {\r\n for (Staff.SystemIterator sit = new Staff.SystemIterator(measure);\r\n sit.hasNext();) {\r\n Staff staff = sit.next();\r\n\r\n if (sit.getMeasure()\r\n .getTimeSignature(staff) != null) {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }", "public boolean validateExpirationTime(Date expirationTime, long currentTimeInMillis,\n long timeStampSkewMillis) throws IdentityOAuth2Exception {\n long expirationTimeInMillis = expirationTime.getTime();\n if ((currentTimeInMillis + timeStampSkewMillis) > expirationTimeInMillis) {\n return logAndReturnFalse(\"JSON Web Token is expired. Expiration Time(ms) : \" + expirationTimeInMillis + \". JWT Rejected and validation terminated\");\n }\n return logAndReturnTrue(\"Expiration Time(exp) of JWT was validated successfully.\");\n }", "public boolean verifyTimestamp(long lTimestamp) {\n\t\tDate now = new Date();\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(String.format(\"Check if input timestamp (%d, args) is much less than current timestamp (%d) that would suggest the message is too old\",\n\t\t\t\t\tlTimestamp, now.getTime()));\n\t\t\tlog.debug(String.format(\"Max age of a message is %d seconds\", maxMessageAgeSeconds));\n\t\t}\n\t\tif (((now.getTime() - lTimestamp) > maxMessageAgeSeconds*1000)\n\t\t\t\t&& (lTimestamp != 0)) {\n\t\t\tlog.debug(\"Message is too old\");\n\t\t\t// Message is too old\n\t\t\tmessageTooOld = true;\n\t\t} else {\n\t\t\t// Message has not yet expired\n\t\t\tlog.debug(\"Message is not too old\");\n\t\t\tmessageTooOld = false;\n\t\t}\n\t\treturn !messageTooOld;\n\t}", "public boolean hasExpiryTimeSecs() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasExpiryTimeSecs() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "private static boolean ValidateTokenSignature(String token, PublicKey publicKey) {\n \tboolean verified=true;\n try {\n \tJwts.parser().setSigningKey(publicKey).parseClaimsJws(token);\n } catch (Exception e) {\n verified=false;\n }\n return verified;\n }", "public Integer getRefreshTokenValiditySeconds() {\n return refreshTokenValiditySeconds;\n }", "protected boolean verifySignature(Signature signature, Credential credential) {\n SignatureValidator validator = new SignatureValidator(credential);\n try {\n validator.validate(signature);\n } catch (ValidationException e) {\n log.debug(\"Signature validation using candidate validation credential failed\", e);\n return false;\n }\n \n log.debug(\"Signature validation using candidate credential was successful\");\n return true;\n }", "Entry<StatusType, String> verifyExternalSignature(Document document, Document signature);", "public boolean validateAgeOfTheToken(Date issuedAtTime, long currentTimeInMillis, long timeStampSkewMillis) throws\n IdentityOAuth2Exception {\n if (issuedAtTime == null) {\n return true;\n }\n if (notAcceptBeforeTimeInMins > 0) {\n long issuedAtTimeMillis = issuedAtTime.getTime();\n long rejectBeforeMillis = 1000L * 60 * notAcceptBeforeTimeInMins;\n if (currentTimeInMillis + timeStampSkewMillis - issuedAtTimeMillis >\n rejectBeforeMillis) {\n String logMsg = getTokenTooOldMessage(currentTimeInMillis, timeStampSkewMillis, issuedAtTimeMillis, rejectBeforeMillis);\n return logAndReturnFalse(logMsg);\n }\n }\n return true;\n }", "com.google.protobuf.ByteString getSignature();", "public boolean verifyTimestamp(String timestamp) {\n\t\tlog.debug(\"Verifying string based timestamp\");\n\t\treturn (verifyTimestamp(Long.parseLong(timestamp)));\n\t}", "public Boolean ValidateJWTExpirationTime(Long expirationTime, int extraValidityDay) {\n // long expirationTimeSeconds = Long.parseLong(expirationTime);\n Date time = new Date((long) expirationTime * 1000);\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(time);\n calendar.add(Calendar.DATE, extraValidityDay);\n time = calendar.getTime();\n\n if (time.compareTo(new Date()) > 0) {\n\n return true;\n }\n return false;\n }", "public void checkValidity(java.util.Date r1) throws java.security.cert.CertificateExpiredException, java.security.cert.CertificateNotYetValidException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.checkValidity(java.util.Date):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.checkValidity(java.util.Date):void\");\n }", "boolean checkSignature(long sig0, long sig1, long sig2) throws Exception {\n Integer[] sig = new Integer[3];\n\t /* Get signature */\n readSignature(sig);\n\t /* Compare signature */\n if (sig[0] != sig0 || sig[1] != sig1 || sig[2] != sig2) {\n throw new Exception(\"Signature does not match selected device! \");\n }\n return true; // Indicate supported command.\n }", "public int getBlockchainValidTimer() {\r\n return blockchainValidTimer;\r\n }", "boolean hasExpired();", "public boolean isSignatureRequired() {\n\t\treturn false;\n\t}", "boolean expired();", "@Override\n\tpublic long getTokenExpiryTime() {\n\t\treturn 0;\n\t}", "long getExpirationDate();", "boolean isValid() {\n for (int i = 0; i < SIGNATURE.length; i++) {\n if (mem.getByte(i) != SIGNATURE[i]) {\n // Invalid signature\n return false;\n }\n }\n final int specRev = mem.getByte(6);\n if ((specRev != 0x01) && (specRev != 0x04)) {\n // Invalid specification revision\n return false;\n }\n return true;\n }", "String getExpiry();", "org.apache.calcite.avatica.proto.Common.Signature getSignature();", "public interface SignatureValidator {\n\n boolean validate(String encodedToken, final Signer signer);\n}", "public boolean verify(SignerInformationVerifier verifier)\n throws CMSException\n {\n Time signingTime = getSigningTime(); // has to be validated if present.\n\n if (verifier.hasAssociatedCertificate())\n {\n if (signingTime != null)\n {\n X509CertificateHolder dcv = verifier.getAssociatedCertificate();\n\n if (!dcv.isValidOn(signingTime.getDate()))\n {\n throw new CMSVerifierCertificateNotValidException(\"verifier not valid at signingTime\");\n }\n }\n }\n\n return doVerify(verifier);\n }", "public boolean isSecurityTokenExpired() {\n return System.currentTimeMillis() > securityTokenExpiryTime || isExpired();\n }", "public abstract byte[] getSignature();", "@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }", "long getValidFrom();", "public boolean hasSignature() {\n return signature_ != null;\n }", "private static void wxSignTest(){\n\t\t\n\t\tString sb=\"appid=wx791233ecd4e71c3f&attach=91_40090_3999&mch_id=1220845901&openid=oc9Xijt__DS0SyGDGqGnUPxSkDWQ&cash_fee=7600&fee_type=CNY\"+\n\t\t\t\t\"&time_end=20150831172810&bank_type=BOC_DEBIT&nonce_str\"+\n\t\t\t\t\"=5K8264ILTKCH16CQ2502SI8ZNMTM67VS&total_fee=7600&trade_type=JSAPI&result_code=SUCCESS&return_code=SUCCESS&is_subscribe=Y&out_trade_\"+\n\t\t\t\t\"no=2015083100400904657685188272&transaction_id=1007950222201508310755172159&key=48d15a39462fbe06f6391328ff685954\";\n\t\t\tString sign = DigestUtils.md5Hex(sb).toUpperCase();\n\t\t\tSystem.out.println(\"sign=\"+sign);\t\n\t}", "org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder();", "public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "private static void checkLastSampleTime() {\n double lastSampleTime = ((Double)state.get( \"lastSampleTime\" )).doubleValue();\n Double cTime = (Double)state.get( \"currentTime\" );\n double currentTime = cTime.doubleValue(); // just in case this is a ref\n\n if( lastSampleTime <= currentTime ){\n validity = false;\n out.println( \"<BR>Error: Last Sample Time is less than current time<BR>\" ); \n }\n }", "com.microsoft.schemas.office.x2006.digsig.STSignatureType xgetSignatureType();", "public abstract String getSignature();", "@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }", "public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "boolean checkForExpiration() {\n boolean expired = false;\n\n // check if lease exists and lease expire is not MAX_VALUE\n if (leaseId > -1 && leaseExpireTime < Long.MAX_VALUE) {\n\n long currentTime = getCurrentTime();\n if (currentTime > leaseExpireTime) {\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[checkForExpiration] Expiring token at {}: {}\",\n currentTime, this);\n }\n noteExpiredLease();\n basicReleaseLock();\n expired = true;\n }\n }\n\n return expired;\n }", "boolean hasExpires();", "boolean isExpired();", "boolean verifySignature(byte[] message, byte[] signature, PublicKey publicKey) throws IOException;", "int getSignOnTime();", "Optional<Instant> getTokenInvalidationTimestamp();", "public Timestamp getValidFrom();", "public void validate(SignForm signForm) {\n }", "@Override\n\tpublic void setTokenExpiryTime(long arg0) {\n\t\t\n\t}", "public static boolean isSigned_estLength() {\n return false;\n }", "public boolean signRequired() {\n\t\treturn false;\n\t}", "private static boolean verify(BigInteger number, PublicKey pubKey, byte[] sigbytes) throws Exception {\r\n\t\tSignature sig = Signature.getInstance(\"SHAwithDSA\");\r\n\t\tsig.initVerify(pubKey);\r\n\t\tbyte[] data = bigIntToByteArray(number);\r\n\t\tsig.update(data);\r\n\t\treturn sig.verify(sigbytes);\r\n \t}", "private Date calcExpiryTime(final boolean isDeviceTrusted) {\n return (isDeviceTrusted ? constants.now().plusMinutes(trustedDurationMins) : constants.now().plusMinutes(untrustedDurationMins)).toDate();\n }", "public boolean hasValidFromMillis() {\n return fieldSetFlags()[4];\n }", "@Override\n\tpublic void validateTimestamps() {\n\n\t\t/*\n\t\t * This validates the content-timestamp tokensToProcess present in the signature.\n\t\t */\n\t\tfor (final TimestampToken timestampToken : getContentTimestamps()) {\n\n\t\t\tfinal byte[] timestampBytes = getContentTimestampData(timestampToken);\n\t\t\ttimestampToken.matchData(timestampBytes);\n\t\t}\n\n\t\t/*\n\t\t * This validates the signature timestamp tokensToProcess present in the signature.\n\t\t */\n\t\tfor (final TimestampToken timestampToken : getSignatureTimestamps()) {\n\n\t\t\tfinal byte[] timestampBytes = getSignatureTimestampData(timestampToken, null);\n\t\t\ttimestampToken.matchData(timestampBytes);\n\t\t}\n\n\t\t/*\n\t\t * This validates the SigAndRefs timestamp tokensToProcess present in the signature.\n\t\t */\n\t\tfor (final TimestampToken timestampToken : getTimestampsX1()) {\n\n\t\t\tfinal byte[] timestampBytes = getTimestampX1Data(timestampToken, null);\n\t\t\ttimestampToken.matchData(timestampBytes);\n\t\t}\n\n\t\t/*\n\t\t * This validates the RefsOnly timestamp tokensToProcess present in the signature.\n\t\t */\n\t\tfor (final TimestampToken timestampToken : getTimestampsX2()) {\n\n\t\t\tfinal byte[] timestampBytes = getTimestampX2Data(timestampToken, null);\n\t\t\ttimestampToken.matchData(timestampBytes);\n\t\t}\n\n\t\t/*\n\t\t * This validates the archive timestamp tokensToProcess present in the signature.\n\t\t */\n\t\tfor (final TimestampToken timestampToken : getArchiveTimestamps()) {\n\n\t\t\tfinal byte[] timestampData = getArchiveTimestampData(timestampToken, null);\n\t\t\ttimestampToken.matchData(timestampData);\n\t\t}\n\t}", "public Date\ngetTimeSigned() {\n\treturn timeSigned;\n}", "public String getSignature()\r\n {\r\n return signature;\r\n }", "public static boolean isSigned_length() {\n return false;\n }", "int getSignatureType();", "public boolean checkTimeout(){\n\t\tif((System.currentTimeMillis()-this.activeTime.getTime())/1000 >= this.expire){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}" ]
[ "0.6680803", "0.64696187", "0.6417674", "0.62471515", "0.6138094", "0.60706615", "0.60706615", "0.60496086", "0.6028363", "0.6008542", "0.59484595", "0.5942024", "0.5938955", "0.59221363", "0.5914019", "0.58342856", "0.582417", "0.5812463", "0.58076537", "0.58005285", "0.58005285", "0.58005285", "0.57885253", "0.57847", "0.57840484", "0.5780324", "0.5769265", "0.57668376", "0.57623893", "0.5748206", "0.5696281", "0.56927365", "0.5656484", "0.5655489", "0.5623961", "0.56181616", "0.5604197", "0.5600977", "0.55960125", "0.55867213", "0.5581524", "0.5578967", "0.5562563", "0.55537075", "0.5550169", "0.55356944", "0.5522298", "0.5497971", "0.5495316", "0.5485721", "0.5480842", "0.5480458", "0.5471384", "0.5456752", "0.5441295", "0.5431727", "0.5422359", "0.54148847", "0.5392438", "0.53900546", "0.53847873", "0.5384429", "0.5381252", "0.5354991", "0.5341398", "0.53230274", "0.5322586", "0.5322119", "0.53209734", "0.53140306", "0.5312298", "0.5312278", "0.5309524", "0.53001744", "0.52914435", "0.52879983", "0.5286623", "0.52750856", "0.5272804", "0.52605546", "0.52573395", "0.5249763", "0.5248953", "0.52394235", "0.5235929", "0.52308446", "0.52189", "0.5215698", "0.52147067", "0.51969206", "0.51964843", "0.5185048", "0.51834756", "0.5181924", "0.5179615", "0.5171517", "0.5168767", "0.5161857", "0.5151546", "0.5139863" ]
0.777445
0
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPACES);\n }", "private String toIndentedString(Object o)\n/* */ {\n/* 128 */ if (o == null) {\n/* 129 */ return \"null\";\n/* */ }\n/* 131 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }", "private String toIndentedString( Object o )\n {\n if ( o == null )\n {\n return \"null\";\n }\n return o.toString().replace( \"\\n\", \"\\n \" );\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }" ]
[ "0.7886073", "0.75506985", "0.74986166", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953", "0.7462953" ]
0.0
-1
Called by the board to initialise the action cache
protected static void initActions(int _boardSize) { boardSize = _boardSize; if (actions == null) actions = new Action[Player.values().length][]; for (Player p : Player.values()) { int i = p.ordinal(); actions[i] = new Action[boardSize]; for (int j = 0; j < boardSize; j++) actions[i][j] = new Action(p, j); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void initActions() {\n\t\t\r\n\t}", "public abstract void init_actions() throws Exception;", "protected void init_actions()\r\n {\r\n action_obj = new CUP$CircuitCup$actions(this);\r\n }", "private void init() {\n clearCaches();\n }", "protected void resetActionsCache() {\r\n\t\tactionsCache.clear();\r\n\t}", "protected void init_actions()\r\n {\r\n action_obj = new CUP$MJParser$actions(this);\r\n }", "@Override\r\n public void initAction() {\n \r\n }", "protected void init_actions()\n {\n action_obj = new CUP$FractalParser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Asintactico$actions(this);\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$Parser$actions(this);\r\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$parser$actions(this);\r\n }", "protected void init_actions()\n {\n action_obj = new CUP$CompParser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$CoolParser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$CoolParser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$include$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$PCLParser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Grm$actions();\n }", "public void initialise() throws ActionLifecycleException;", "protected void init_actions() {\r\n action_obj = new CUP$SintacticoH$actions(this);\r\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$SintaxAnalysis$actions(this);\r\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$AnalizadorSintactico$actions(this);\r\n }", "private void initialize() {\n\t\tcacheableImpl = new CacheableImpl();\n\t\tsetToolTipText(\"\");\n\t}", "protected void init_actions()\n {\n action_obj = new CUP$Sintactico$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$A4Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$A4Parser$actions(this);\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$LuaGrammarCup$actions(this);\r\n }", "protected void init_actions()\n {\n action_obj = new CUP$XPathParser$actions(this);\n }", "@Override\n public void initComponent() {\n ActionManager am = ActionManager.getInstance();\n }", "protected void init_actions()\n {\n action_obj = new CUP$analisis_sintactico_re$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$ParserForms$actions(this);\n }", "public void initiateAction() {\r\n\t\t// TODO Auto-generated method stub\t\r\n\t}", "private void initActions() \n {\n // Quits the application\n this.quitAction = new AbstractAction (\"Quit\") \n {\n public static final long serialVersionUID = 2L;\n\n @Override\n public void actionPerformed (ActionEvent arg0) \n { \n System.exit(0);\n }\n };\n\n // Creates a new model\n this.newGameAction = new AbstractAction (\"New Game\") \n {\n public static final long serialVersionUID = 3L;\n\n @Override\n public void actionPerformed(ActionEvent arg0) \n {\n AsteroidsFrame.this.newGame ();\n }\n };\n }", "@PostConstruct\n public void initCache() {\n cache = Collections.synchronizedMap(new HashMap<>(cacheCapacity, 1));\n }", "public void setupActions() {\n getActionManager().setup(getView());\n }", "@Override\n public void doInit() {\n action = (String) getRequestAttributes().get(\"action\");\n }", "public ActionManager() {\n\t\tsuper();\n\t}", "private StateActions(){}", "public void m12739a() {\n C2756f.m12786a(this);\n Bundle bundle = new Bundle();\n bundle.putInt(\"com.tonyodev.fetch.action_type\", 325);\n FetchService.m12646a(this.f9046c, bundle);\n }", "protected void initializeCache() {\n if (cacheResults && initialized) {\n dataCache = new HashMap<String, Map<String, Map<String, BaseAttribute>>>();\n }\n }", "private void initAction() {\n\t\timg_back.setOnClickListener(this);\n\t\tbtn_delete.setOnClickListener(this);\n\t\tbtn_update.setOnClickListener(this);\n\t}", "protected void init( CommonDockAction action ){\n if( this.action != null )\n throw new IllegalStateException( \"already initialized\" );\n \n if( action == null )\n throw new NullPointerException( \"action is null\" );\n \n this.action = action;\n }", "public void init() throws CacheException {\n // no-op\n }", "protected void declareGlobalActionKeys() {\n\r\n }", "protected void initializeCache() {\n\t\tif (cache == null){\n\t\t\tcache = Collections.synchronizedMap(new HashMap());\n\t\t}\n\t\telse{\n\t\t\tcache.clear();\n\t\t}\n\t}", "private void init() {\n mMemoryCache = new LruCache<String, Bitmap>(DEFAULT_MEM_CACHE_SIZE) {\n /**\n * Measure item size in kilobytes rather than units which is more\n * practical for a bitmap cache\n */\n @Override\n protected int sizeOf(String key, Bitmap bitmap) {\n final int bitmapSize = getBitmapSize(bitmap) / 1024;\n return bitmapSize == 0 ? 1 : bitmapSize;\n }\n };\n }", "public void init()\r\n {\r\n m_active = false;\r\n m_entryTimes = new HashMap<String, Long>();\r\n m_tsm = BotAction.getBotAction().getTSM();\r\n m_tsm.setOperatorLevel(ER_LEVEL);\r\n registerSettings();\r\n m_tsm.addTSChangeListener(this);\r\n m_botAction.setPlayerPositionUpdating(500);\r\n }", "public void doInitialAction(){}", "@Override\n protected Action[] createActions() {\n return new Action[0];\n }", "GameState requestActionTile();", "protected abstract void initCache(List<RECIPE> recipes);", "@Override\n \tpublic void addActions() {\n \t\t\n \t}", "public void setCached() {\n }", "public void initialize() {\n if (coverage == 0 || coverage == 1) {\n pAttemptMovement = 1;\n pAttemptTransition = 1;\n } else {\n pAttemptTransition = 1.0f;\n pAttemptMovement = pmove * (1-coverage) / coverage;\n if (pAttemptMovement > 1.0f) {\n pAttemptTransition = 1 / pAttemptMovement;\n pAttemptMovement = 1.0f;\n }\n }\n // System.out.println(\"pAttemptMovement = \"+pAttemptMovement+\", pAttemptTransition = \"+pAttemptTransition);\n // accept - memoize the return values of exp for accept, because there are only a handful that get used\n map = new ExpMap(1024);\n }", "public void setActions() {\n actions = new HashMap<String, Action>();\n for (Action a: jsonManager.getActionsFromJson()) {\n actions.put(a.getName(), a);\n }\n }", "public GameAction initializeSettings() {\r\n // Loop through each setting and process it\r\n for (Setting setting : this.ruleset.getSettings()) {\r\n this.processSetting(setting);\r\n }\r\n \r\n // Now that the game is set up initialize the actions for each turn\r\n this.turnActions = this.ruleset.getTurnActions();\r\n \r\n // Return the first gameAction for preprocessing\r\n return this.turnActions.get(0);\r\n }", "private ActionPackage() {}", "ActionMap getActionMap() {\n return createActionMap(); }", "ActionMap createActionMap() {\n ActionMap map = new ActionMapUIResource();\n Action[] actions = editor.getActions();\n //System.out.println(\"building map for UI: \" + getPropertyPrefix());\n int n = actions.length;\n for (int i = 0; i < n; i++) {\n Action a = actions[i];\n map.put(a.getValue(Action.NAME), a);\n //System.out.println(\" \" + a.getValue(Action.NAME));\n }\n map.put(TransferHandler.getCutAction().getValue(Action.NAME),\n TransferHandler.getCutAction());\n map.put(TransferHandler.getCopyAction().getValue(Action.NAME),\n TransferHandler.getCopyAction());\n map.put(TransferHandler.getPasteAction().getValue(Action.NAME),\n TransferHandler.getPasteAction());\n return map;\n }", "protected void createLookupCache() {\n }", "public void init() {\n\t\tif (cache != null) {\n\t\t\tcache.dispose();\n\t\t\tcache = null;\n\t\t}\n\t\tcache = cacheFactory.create(CacheFactoryDirective.NoDCE, \"test\");\n\t}", "private void init() {\n\n\t\tinitializeLists();\n\t\tcreateTiles();\n\t\tcreateTileViews();\n\t\tshuffleTiles();\n\n\t}", "public void initializeActions(SGControllerActionInitializer actionInitializer);", "@Before\n public void init() {\n Cache cache = cacheManager.getCache(\"default-test\");\n cache.clear();\n\n }", "public static ActionList<BankActionContext> initActions() {\n\t\tBankActionContext context = BankActionContext.getInstance();\n\t\tBankAgency ag = context.getBankAgency();\n\t\tBankAccountActionList<BankActionContext> actionListBankAgency = new BankAccountActionList<BankActionContext>(\"1\", \"General\",\n\t\t\t\t\"--\\n \" + ag.getAgencyName() + \" (\" + ag.getAgencyLoc() + \")\\n General Menu\\n--\");\n\t\tactionListBankAgency.addAction(new ListAccounts(\"1\", \"List of the Agency accounts\"));\n\t\tactionListBankAgency.addAction(new AccountNumber(\"2\", \"See an account (by its number)\"));\n\n\t\tBankAccountActionList<BankActionContext> actionListAccountOperation = new BankAccountActionList<BankActionContext>(\"3\", \"Operation on an account\",\n\t\t\t\t\"--\\n \" + ag.getAgencyName() + \" (\" + ag.getAgencyLoc() + \")\\n Menu Operation on an account\\n--\");\n\t\tactionListAccountOperation.addAction(new Deposit(\"1\", \"Deposit money on an account\"));\n\t\tactionListAccountOperation.addAction(new Withdraw(\"2\", \"Withdraw money from an account\"));\n\t\tactionListBankAgency.addAction(actionListAccountOperation);\n\n\t\tBankAccountActionList<BankActionContext> actionListManagement = new BankAccountActionList<BankActionContext>(\"4\",\n\t\t\t\t\"Accounts management\",\n\t\t\t\t\"--\\n \" + ag.getAgencyName() + \" (\" + ag.getAgencyLoc() + \")\\n Menu Accounts management\\n--\");\n\t\tactionListManagement.addAction(new AddAccount(\"1\", \"Add an account\"));\n\t\tactionListManagement.addAction(new DeleteAccount(\"2\", \"Delete an account\"));\n\t\tactionListBankAgency.addAction(actionListManagement);\n\n\t\treturn actionListBankAgency;\n\t}", "public ScheduledActionAction() {\n\n }", "void initialize() throws IllegalActionException {\n\t\tEntity selectedTable = that.getSelectedTableEntity();\n\t\tif (selectedTable.getHasZipDataFile()\n\t\t\t\t|| selectedTable.getHasGZipDataFile()\n\t\t\t\t|| selectedTable.getHasGZipDataFile()) {\n\t\t\tString targetFileExtension = that.getFileExtensionInZip();\n\t\t\tthat.log.debug(\"The file extension will send out is \"\n\t\t\t\t\t+ targetFileExtension);\n\t\t\tEcogridCompressedDataCacheItem compressedItem = (EcogridCompressedDataCacheItem) that\n\t\t\t\t\t.getSelectedCachedDataItem();\n\t\t\t_targetFilePathInZip = compressedItem\n\t\t\t\t\t.getUnzippedFilePath(targetFileExtension);\n\t\t} else {\n\t\t\tthrow new IllegalActionException(\n\t\t\t\t\t\"The selected entity is not a compressed data file\");\n\t\t}\n\t}", "@PostConstruct\n\tpublic void init() {\n\t // TODO create cacheTreeMgr using HashMap or EhCache\n cacheTree = new CacheTreeHashMap();\n\t cacheTree.init();\n\t}", "private void initActions() {\n\t\tthis.back.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlistener.act(PokePartyPanel.MANAGE_TRAINERS_PANEL, \n\t\t\t\t\t\tPokePartyPanel.MANAGE_TRAINERS_PANEL);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tthis.pass.addKeyListener(new KeyListener() {\n\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\tif(e.getKeyChar() == KeyEvent.VK_ENTER) {\n//\t\t\t\t\tSystem.out.println(PokeUtils.doPass(pass.getPassword()));\n\t\t\t\t\tif(df.login(userID, PokeUtils.doPass(pass.getPassword()))) {\n\t\t\t\t\t\tlistener.act(PokePartyPanel.TEAM_PANEL, String.valueOf(userID));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, msg, title,\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE, null);\n\t\t\t\t\t}\n\t\t\t\t\tpass.setText(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "public void performInitialisation() {\n \t\t// subclasses can override the behaviour for this method\n \t}", "protected PMBaseAction() {\r\n super();\r\n }", "public void initActionExecutionResults(\n String queueName ) throws AgentException {\n\n Map<String, ActionExecutionStatistic> thisQueueStatics = actionsPerQueue.get(queueName);\n if (thisQueueStatics != null) {\n // there is already information about queue with same name, maybe this is another run of same test\n // cleanup this info\n thisQueueStatics.clear();\n } else {\n // unknown queue\n actionsPerQueue.put(queueName, new HashMap<String, ActionExecutionStatistic>());\n }\n }", "private void initializeCache(int cacheSize){\n \t\tlruCache = new LRUCache(cacheSize);\n \t}", "public UpcomingContestsManagerAction() {\r\n }", "public ActionState createActionState();", "private void init() {\n CoachData coachData = UserBuffer.getCoachSession();\n list = PlanFunction.searchPlanByCoachID(coachData.getID());\n this.update();\n }", "private void createImageCache(){\n ImageCacheManager.getInstance().init(this,\n this.getPackageCodePath()\n , DISK_IMAGECACHE_SIZE\n , DISK_IMAGECACHE_COMPRESS_FORMAT\n , DISK_IMAGECACHE_QUALITY\n , ImageCacheManager.CacheType.MEMORY);\n }", "private void initializeKeyBoardActions() {\n\t\tpairsListView.setOnKeyPressed(event -> {\n\t\t\tif (KeyCode.DELETE == event.getCode()) {\n\t\t\t\tremoveSelectedAction();\n\t\t\t}\n\t\t});\n\t\tfirstListView.setOnKeyPressed(this::handleListViewKeys);\n\t\tsecondListView.setOnKeyPressed(this::handleListViewKeys);\n\t}", "private void setActions() {\n\t\tfor (IContributionItem item : actionToolBarManager.getContributions()) {\n\t\t\tif (zoomInAction != null && zoomOutAction != null && zoomActualAction != null)\n\t\t\t\treturn;\n\t\t\tif (ZoomInAction.ID.equals(item.getId()) && item instanceof ActionContributionItem) {\n\t\t\t\tzoomInAction = (AReportAction) ((ActionContributionItem) item).getAction();\n\t\t\t} else if (ZoomOutAction.ID.equals(item.getId()) && item instanceof ActionContributionItem) {\n\t\t\t\tzoomOutAction = (AReportAction) ((ActionContributionItem) item).getAction();\n\t\t\t} else if (ZoomActualSizeAction.ID.equals(item.getId()) && item instanceof ActionContributionItem) {\n\t\t\t\tzoomActualAction = (AReportAction) ((ActionContributionItem) item).getAction();\n\t\t\t}\n\t\t}\n\t}", "void init() {\r\n\r\n map = new HashMap<Square, Piece>();\r\n for (Square sq: INITIAL_ATTACKERS) {\r\n map.put(sq, BLACK);\r\n }\r\n for (Square sq: INITIAL_DEFENDERS) {\r\n map.put(sq, WHITE);\r\n }\r\n king = sq(4, 4);\r\n map.put(king, KING);\r\n for (int i = 0; i <= 8; i++) {\r\n for (int j = 0; j <= 8; j++) {\r\n if (!map.containsKey(sq(i, j))) {\r\n map.put(sq(i, j), EMPTY);\r\n }\r\n }\r\n }\r\n\r\n board = new Piece[9][9];\r\n\r\n for (Square keys : map.keySet()) {\r\n board[keys.col()][keys.row()] = map.get(keys);\r\n }\r\n }", "public void createAction() {\n }" ]
[ "0.7114121", "0.6802696", "0.6761202", "0.66515607", "0.6650088", "0.6635021", "0.65453184", "0.65334994", "0.6526948", "0.65033466", "0.6468701", "0.6468701", "0.6468701", "0.6468701", "0.6468701", "0.6443508", "0.64348894", "0.64217013", "0.64217013", "0.63982093", "0.63982093", "0.63982093", "0.63982093", "0.63982093", "0.63982093", "0.63982093", "0.63982093", "0.63982093", "0.63982093", "0.63982093", "0.63982093", "0.63982093", "0.63982093", "0.63982093", "0.63739073", "0.63654876", "0.6344722", "0.6343829", "0.62934655", "0.6229752", "0.6203593", "0.61655307", "0.6164825", "0.6139995", "0.6139995", "0.61309534", "0.60959387", "0.60921276", "0.60356414", "0.6032887", "0.6023381", "0.60136735", "0.5964401", "0.5903557", "0.5892552", "0.5891485", "0.5879221", "0.58696765", "0.5834152", "0.58143705", "0.5800774", "0.5789203", "0.5750702", "0.5729719", "0.5725151", "0.5718607", "0.57080454", "0.5698925", "0.56737703", "0.56622934", "0.5570178", "0.556912", "0.55506927", "0.5539625", "0.5532283", "0.5530319", "0.55294806", "0.55022824", "0.5499471", "0.5491098", "0.5489553", "0.54730654", "0.5472382", "0.54718405", "0.54652494", "0.54517406", "0.54359806", "0.54200727", "0.54128075", "0.5408684", "0.5398397", "0.5362306", "0.5358143", "0.53531486", "0.53457797", "0.53073233", "0.5306203", "0.5302346", "0.52912766", "0.52877134" ]
0.5926958
53
Unfortunately required by hibernate
ClassLoader getNewTempClassLoader() { return new ClassLoader(getClassLoader()) { }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getName() {\n\t\treturn \"Hibernate\";\n\t}", "public AbstractHibernateDAOSupport() {\n super();\n }", "public static void main(String[] args) throws Exception {\n\r\n Session session = ourSessionFactory.openSession();\r\n Transaction tx = null;\r\n\r\n try {\r\n tx = session.beginTransaction();\r\n List<BooksEntity> books = session.createQuery(\"FROM\" + BooksEntity.class.getName()).list();\r\n\r\n for (BooksEntity book : books) {\r\n System.out.println(\" Tytuł: \" + book.getTitle());\r\n System.out.println(\" Autor\" + book.getAuthor());\r\n }\r\n tx.commit();\r\n }catch (HibernateException e){\r\n if (tx!=null) tx.rollback();\r\n e.printStackTrace();\r\n }finally {\r\n session.close();\r\n }\r\n }", "@Override\n public Entity configuracion(Entity e) throws SQLException {\n return null;\n }", "public interface IHibernatePersistenceModule extends IPersistenceModule {\r\n\t/**\r\n\t * Retorna a sessao do hibernate\r\n\t * \r\n\t * @return a sessao\r\n\t */\r\n\tSession getSession();\r\n}", "public DerivedPartOfPerspectivesFKDAOJDBC() {\n \t\n }", "private HibernateToListDAO(){\r\n\t\tfactory = new AnnotationConfiguration().addPackage(\"il.hit.model\") //the fully qualified package name\r\n .addAnnotatedClass(User.class).addAnnotatedClass(Items.class)\r\n .addResource(\"hibernate.cfg.xml\").configure().buildSessionFactory();\r\n\t}", "@Before\r\n public void before() {\n AnnotationConfiguration configuration = new AnnotationConfiguration();\r\n configuration.addAnnotatedClass(Customer.class).addAnnotatedClass(OrderLine.class).addAnnotatedClass(Product.class).addAnnotatedClass(SalesOrder.class);\r\n configuration.setProperty(\"hibernate.dialect\", \"org.hibernate.dialect.MySQL5Dialect\");\r\n configuration.setProperty(\"hibernate.connection.driver_class\", \"com.mysql.jdbc.Driver\");\r\n configuration.setProperty(\"hibernate.connection.url\", \"jdbc:mysql://localhost:3306/order_management_db\");\r\n configuration.setProperty(\"hibernate.connection.username\", \"root\");\r\n sessionFactory = configuration.buildSessionFactory();\r\n session = sessionFactory.openSession();\r\n }", "public static List<Book> getBookLocation() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookLocation\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}", "@Test\r\n\tpublic void fun4(){\r\n\t\t//3 获得session\r\n\t\t\t\tSession session = HebernateUtils.openSession();\t\r\n\t\t\t\tsession.beginTransaction();\r\n\t\t\t\t//-------------------\r\n\t\t\t\tOrder o = (Order) session.get(Order.class, 2);\r\n\t\t\t\t\r\n//\t\t\t\tHibernate: \r\n//\t\t\t\t select\r\n//\t\t\t\t order0_.id as id4_1_,\r\n//\t\t\t\t order0_.name as name4_1_,\r\n//\t\t\t\t order0_.cid as cid4_1_,\r\n//\t\t\t\t customer1_.id as id3_0_,\r\n//\t\t\t\t customer1_.name as name3_0_ \r\n//\t\t\t\t from\r\n//\t\t\t\t t_order order0_ \r\n//\t\t\t\t left outer join\r\n//\t\t\t\t t_customer customer1_ \r\n//\t\t\t\t on order0_.cid=customer1_.id \r\n//\t\t\t\t where\r\n//\t\t\t\t order0_.id=?\r\n\t\t\t\t \t\t\r\n\t\t\t\tSystem.out.println(o.getCustomer().getName());\r\n//\t\t\t\ttom\r\n\t\t\t\t//------------------\r\n\t\t\t\tsession.getTransaction().commit();\r\n\t\t\t\tsession.close();\r\n\t}", "public static void main(String[] args)\r\n {\n\t\t\r\n\t \r\n\t SessionFactory factory = new Configuration().configure(\"hibernate_cfg.xml\").buildSessionFactory();\r\n\t// Employee e=new Employee();\r\n//\t\t e.setId(2);\r\n//\t\t e.setName(\"mayuri\");\r\n//\t\t e.setSalary(38000);\r\n//\t \t e.setAddress(\"solapur\");\r\n\t\t\r\n\t Session session = factory.openSession(); \r\n\t org.hibernate.Transaction t = session.beginTransaction();\r\n//\t\tsession.save(e);\r\n\t\t//session.update(e);\r\n\t // session.delete(e);\r\n\t \r\n\t /**\r\n\t * \r\n\t * fetch data from database using list and without passing object\r\n\t */\r\n\t /* int i=0;\r\n Employee emp=new Employee();\r\n emp=null;\r\n for(i=0;i<=4;i++)\r\n {\r\n emp=(Employee) session.get(Employee.class,i);\r\n System.out.println(\"\\n\"+emp.getId()+\"\\n\"+emp.getName()+\"\\n\"+emp.getSalary()+\"\\n\"+emp.getAddress());\r\n \r\n }*/\r\n\t /**\r\n\t * fetch data from database using object\r\n\t */\r\n\t Employee e=new Employee();\r\n\t e=(Employee) session.get(Employee.class, 1);\r\n\t System.out.println(e);\r\n\t\t\t \r\n//\t \r\n//\t emp =(Employee) session.get(Employee.class,1);\r\n//\t System.out.println(emp);\r\n\t \r\n\t /**\r\n\t * use of createCriteria() from criteria API\r\n\t */\r\n\t // List<Employee> employees = (List<Employee>) session.createCriteria(Employee.class).list();\r\n\t // System.out.println(\"\\n\"+employees);\r\n\r\n\t \r\n\t \r\n\t // Employee e=session.get(Employee.class,new Integer(4));\r\n\t // System.out.println(\"\\n\"+e.getId()+\"\\n\"+e.getName()+\"\\n\"+e.getSalary()+\"\\n\"+e.getAddress());\r\n\t\t\r\n\t \r\n\t \r\n\t\tt.commit();\r\n\t\tSystem.out.println(\"successfully saved\");\r\n\t\t\r\n\r\n\t \r\n }", "protected abstract String getEntityExistanceSQL(E entity);", "public static void main(String[] args) {\nSession session=new Configuration().configure().buildSessionFactory().openSession();\r\n\r\n Student std=new Student();\r\n std.setName(\"nikhil\");\r\n session.save(std);\r\n session.beginTransaction().commit();\r\n System.out.println(\"success\");\r\n \r\n\t}", "public static List<Book> getBookDetails_2() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getAllBookList_2\");\r\n List<Book> bookList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookList;\r\n}", "private Session getHibernateSession() throws AuditException {\r\n return this.session;\r\n }", "@Override\n\t\t\tpublic MemberInfoShowBean doInHibernate(Session session) throws HibernateException, SQLException {\n\t\t\t\tString hql = \"select new com.yuncai.modules.lottery.bean.vo.MemberInfoShowBean(m1.account, m1.name, m1.certNo, m1.email, m1.mobile, m2.bankCard, m2.bankPart,m2.bank) from Member as m1 ,MemberInfo as m2 where m1.id=m2.memberId and m1.account=:account\";\n\t\t\t\tQuery query = session.createQuery(hql);\n\t\t\t\tquery.setParameter(\"account\", account);\n\t\t\t\tMemberInfoShowBean bean = (MemberInfoShowBean) query.uniqueResult();\n\t\t\t\t\n\t\t\t\treturn bean;\n\t\t\t}", "@Test\r\n\tpublic void fun1(){\r\n\t\t//3 获得session\r\n\t\t\t\tSession session = HebernateUtils.openSession();\t\r\n\t\t\t\tsession.beginTransaction();\r\n\t\t\t\t//-------------------\r\n\t\t\t\tOrder o = (Order) session.get(Order.class, 1);\r\n\t\t\t\t\r\n//\t\t\t\tHibernate: \r\n//\t\t\t\t select\r\n//\t\t\t\t order0_.id as id4_0_,\r\n//\t\t\t\t order0_.name as name4_0_,\r\n//\t\t\t\t order0_.cid as cid4_0_ \r\n//\t\t\t\t from\r\n//\t\t\t\t t_order order0_ \r\n//\t\t\t\t where\r\n//\t\t\t\t order0_.id=?\r\n//\t\t\t\tHibernate: \r\n//\t\t\t\t select\r\n//\t\t\t\t customer0_.id as id3_0_,\r\n//\t\t\t\t customer0_.name as name3_0_ \r\n//\t\t\t\t from\r\n//\t\t\t\t t_customer customer0_ \r\n//\t\t\t\t where\r\n//\t\t\t\t customer0_.id=?\r\n//\t\t\t\tHibernate: \r\n//\t\t\t\t select\r\n//\t\t\t\t orders0_.cid as cid3_1_,\r\n//\t\t\t\t orders0_.id as id1_,\r\n//\t\t\t\t orders0_.id as id4_0_,\r\n//\t\t\t\t orders0_.name as name4_0_,\r\n//\t\t\t\t orders0_.cid as cid4_0_ \r\n//\t\t\t\t from\r\n//\t\t\t\t t_order orders0_ \r\n//\t\t\t\t where\r\n//\t\t\t\t orders0_.cid=?\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(o.getCustomer().getName());\r\n\t\t\t\t\r\n\t\t\t\t//------------------\r\n\t\t\t\tsession.getTransaction().commit();\r\n\t\t\t\tsession.close();\r\n\t}", "public void setSessionFactory(SessionFactory sessionFactory) {\n template = new HibernateTemplate(sessionFactory);\n}", "public static void main(String[] args) {\n\n SessionFactory sessionFactory = HibernateSessionHelper.buildSessionFactory();\n Session session = sessionFactory.openSession();\n// session.persist(users);\n Users users = (Users) session.load(Users.class, 1);\n System.out.println(users.getName());\n System.out.println(\"1.kısım\");\n System.out.println(users.getAddress().getName());\n System.out.println(\"2.kısım\");\n session.clear();\n// session.evict(users);\n Users users2 = (Users) session.load(Users.class, 1);\n System.out.println(users2);\n System.out.println(\"3.kısım\");\n }", "@Test\n public void test()\n {\n SqlSession session = SqlBuilder.getSqlSessionFactory().openSession();\n RoleMapper mapper = session.getMapper(RoleMapper.class);\n Role role = mapper.getOneRole(2L);\n System.out.println(role);\n }", "private void hibernateInitialize(Solicitud solicitud) {\n// Hibernate.initialize(solicitud);\n// Hibernate.initialize(solicitud.getEstudiante());\n// Hibernate.initialize(solicitud.getEstudiante().getPersona());\n// Hibernate.initialize(solicitud.getEstudiante().getPersona().getTipoDocumento());\n// Hibernate.initialize(solicitud.getEstudiante().getHorario_disponible());\n// Hibernate.initialize(solicitud.getEstudiante().getHorario_disponible().getDias_disponibles());\n// Hibernate.initialize(solicitud.getEstudiante().getEstudiante().getInformacion_Academica());\n// Hibernate.initialize(solicitud.getEstudiante().getEstudiante().getPrograma().getNombre());\n// Hibernate.initialize(solicitud.getMonitoria_solicitada());\n// Hibernate.initialize(solicitud.getMonitoria_solicitada().getCurso());\n// Collection<MonitoriaAceptada> monitorias = solicitud.getMonitorias();\n// for (Iterator<MonitoriaAceptada> it = monitorias.iterator(); it.hasNext();) {\n// MonitoriaAceptada monitoria = it.next();\n// Hibernate.initialize(monitoria);\n// Hibernate.initialize(monitoria.getSeccion());\n// }\n// Collection<MonitoriaRealizada> monitoriasRealizadas = solicitud.getEstudiante().getMonitoriasRealizadas();\n// Hibernate.initialize(monitoriasRealizadas);\n// for (MonitoriaRealizada monitoriaRealizada : monitoriasRealizadas) {\n// Hibernate.initialize(monitoriaRealizada);\n// }\n// Hibernate.initialize(solicitud.getResponsablePreseleccion());\n\n }", "@Override\n public Object doInHibernate(Session session) throws HibernateException {\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public static List<Book> getBookSellers() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookSellers\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}", "public static void main( String[] args )\n {\n \tSessionFactory sf = HibernateSessionFactoryUtil.getSessionFactory(); \n \tSession session1 = sf.openSession();\n \t\n \t// insertTestData(session1);\n \t\n \tsession1.beginTransaction();\n \t\n \t\n \tSystem.out.println(\"List of objects\\n\");\n \tQuery query1 = session1.createQuery(\"from Student s where s.rollno>45\");\n \tList<Student> students= query1.list();\n \t\n \tfor(Student s: students) {\n \t\tSystem.out.println(s);\n \t}\n \t\n \tSystem.out.println(\"\\n*****************\\n\");\n \t\n \tint rollno = 7;\n \t\n \tSystem.out.println(\"Single object via explicit parameter\\n\");\n \tQuery query2 = session1.createQuery(\"from Student where rollno=:param\");\n \tquery2.setParameter(\"param\", rollno);\n \tStudent student1 = (Student) query2.uniqueResult();\n \tSystem.out.println(student1);\n \t\n \tSystem.out.println(\"\\n*****************\\n\");\n \t\n \tSystem.out.println(\"Single object with certain columns\\\\n\");\n \t\n \tQuery query3 = session1.createQuery(\"Select rollno, name from Student where rollno=7\");\n \tObject[] student2 = (Object[]) query3.uniqueResult();\n \tSystem.out.println(student2[0] + \" - \" + student2[1]);\n \t\n \tSystem.out.println(\"\\n*****************\\n\");\n \t\n \tSystem.out.println(\"Returns results of adding data (summation)\\n\");\n \t\n \tQuery query4 = session1.createQuery(\"Select sum(marks) from Student\");\n \tLong sumOfMarks = (Long) query4.uniqueResult();\n \tSystem.out.println(\"sumOfMarks: \" + sumOfMarks);\n \t\n \tSystem.out.println(\"\\n*****************\\n\");\n \t\n \t\n \tSystem.out.println(\"Returns results by using original SQL\\n\");\n \t\n \tSQLQuery query5 = session1.createSQLQuery(\"SELECT * FROM student WHERE marks>60\");\n \tquery5.addEntity(Student.class);\n \tList<Student> students2 = query5.getResultList();\n \t\n \tfor(Student s1: students2) {\n \t\tSystem.out.println(s1);\n \t}\n \t\n \tSystem.out.println(\"\\n*****************\\n\");\n \t\n \tSystem.out.println(\"Return results by using original SQL/Native Query\\n\");\n \t\n \tNativeQuery query6 = session1.createSQLQuery(\"SELECT rollno, name FROM student WHERE marks>60\");\n \tquery6.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n \tList<?> students3 = query6.list();\n \t\n \tfor(Object s1: students3) {\n \t\tMap<?, ?> m1 = (Map) s1;\n \t\tSystem.out.println(m1.get(\"name\") + \" : \" + m1.get(\"rollno\"));\n \t}\n \t\n \tSystem.out.println(\"\\n*****************\\n\");\n \t\n \tsession1.getTransaction().commit();\n }", "public static List<Book> getBookCategory() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getBookCategory\");\r\n List<Book> bookLocationList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookLocationList;\r\n}", "private HibernateUtil() {\r\n }", "public static void main(String[] args) {\n\t\tSessionFactory factory = new Configuration()\n\t\t\t\t.configure(\"hibernate.cfg.xml\")\n\t\t\t\t.addAnnotatedClass(Student.class)\n\t\t\t\t.addAnnotatedClass(Project.class)\n\t\t\t\t.buildSessionFactory();\n\n// create session\nSession session = factory.openSession();\ntry {\t\t\t\n\n\tStudent student = new Student(\"Shivam\",\"[email protected]\");\n\tProject project = new Project(\"Student Management System\",\"java\");\n\tstudent.setProject(project);\n\tsession.beginTransaction();\n\tSystem.out.println(\"Saving Student: \" + student);\n\t\n\tsession.save(student);\t\t\t\t\t\n\t\n\t// commit transaction\n\tsession.getTransaction().commit();\n\t\n\tSystem.out.println(\"Done!\");\n\t\n}\nfinally {\n\tfactory.close();\n\n}\n}", "private Properties getHibernateProperties() {\n\t\tProperties properties = new Properties();\n\t\tproperties.put(\"hibernate.show_sql\", \"true\");\n\t\tproperties.put(\"hibernate.dialect\", \"org.hibernate.dialect.MySQLDialect\");\n\t\tproperties.put(\"hbm2ddl.auto\", \"create\");\n\t\tproperties.put(\"hibernate.id.new_generator_mappings\", \"false\");\n\t\t\n\t\treturn properties;\n\t}", "private static void init(){\n entityManager = HibernateUtil.getEntityManager();\n transaction = entityManager.getTransaction();\n }", "public NationalityDAO() {\n //sessionFactory = HibernateUtil.getSessionFactory();\n session=HibernateUtil.openSession();\n }", "protected abstract SessionFactory buildSessionFactory() throws Exception;", "public static void main(String[] args) {\n\t\tConfiguration cfg = new Configuration();\n\t\tcfg.configure(\"hibernate.cfg.xml\");\n\n\t\tSessionFactory factory = cfg.buildSessionFactory();\n\t\tSession session = factory.openSession();\n\t\t\n\t\tQuery qry=session.createQuery(\"from Company_has_role c\");\n\n\t List l=qry.list();\n\t Iterator it = l.iterator();\n\t while(it.hasNext())\n\t {\n\t \tObject o = it.next();\n\t \tCompany_has_role c = (Company_has_role)o;\n\t \tSystem.out.println(c.getCompany_has_roleid());\n\t \tRole v=c.getRole_roleid();\n\t \tSystem.out.println(v.getRolename());\n\t }\n\t\t\n\t\t\n\n\t/*\tRole c = new Role();\n\n\t\tc.setRoleid(101);\n\t\tc.setRolename(\"java4s\");\n\n\t\tCompany_has_role c1 = new Company_has_role();\n\n\t\tc1.setCompany_has_roleid(504);\n\t\tc1.setRole_roleid(c);\n\n\t\tTransaction tx = session.beginTransaction();\n\n\t\tsession.save(c1);\n\n\t\ttx.commit();*/\n\t\tsession.close();\n\t\tSystem.out.println(\"Many To One is Done..!!\");\n\t\tfactory.close();\n\t}", "public interface HibernateProperties\r\n{\r\n /**\r\n * Returns all programmatically set properties that shall be used in the hibernate configuration.\r\n * \r\n * @return Null can be returned. The returned property class can be empty.\r\n */\r\n public Properties getProperties();\r\n \r\n /**\r\n * This method will replace the currently set properties with the given properties. This is not a\r\n * merge!. Existing properties will be wiped out.\r\n * \r\n * @param properties\r\n */\r\n public void setProperties(Properties properties);\r\n\r\n /**\r\n * This method will set/replace the property given by its key with the given value.\r\n * \r\n * @param key The name of the property to set/replace.\r\n * @param value The value to set/replace the property with.\r\n */\r\n public void addProperty(String key, String value);\r\n}", "protected void entityInit() {}", "@Test\n public void test6() throws Exception {\n String jpql = \"SELECT c FROM Course c where c.name = :name\";\n TypedQuery<Course> q = em.createQuery(jpql, Course.class);\n q.setParameter(\"name\", \"Edited one\");\n Course course = q.getSingleResult();\n Assert.assertEquals(\"Edited one\", course.getCourseMapped().getName());\n Assert.assertEquals(2, course.getCourseMapped().getLevels().size());\n }", "protected void afterSessionFactoryCreation() throws Exception {\n\t}", "public PimsSysReqFieldDaoHibernate() {\n super(PimsSysReqField.class);\n }", "@Override\n\tprotected void lazyLoad() {\n\t}", "@SuppressWarnings(\"all\")\r\npublic interface Person {\r\n\r\n /**\r\n * Constant value for lastname.\r\n */\r\n String LASTNAME = \"lastname\";\r\n\r\n /**\r\n * Gets the lastname.\r\n *\r\n * @hibernate.property\r\n * @hibernate.column\r\n * name = \"LASTNAME\"\r\n * length = \"64\"\r\n * @return the lastname.\r\n */\r\n java.lang.String getLastname();\r\n\r\n /**\r\n * Sets the lastname.\r\n *\r\n * @param lastname\r\n * the lastname to set.\r\n */\r\n void setLastname(java.lang.String lastname);\r\n\r\n\r\n\r\n /**\r\n * Constant value for firstname.\r\n */\r\n String FIRSTNAME = \"firstname\";\r\n\r\n /**\r\n * Gets the firstname.\r\n *\r\n * @hibernate.property\r\n * @hibernate.column\r\n * name = \"FIRSTNAME\"\r\n * length = \"64\"\r\n * @return the firstname.\r\n */\r\n java.lang.String getFirstname();\r\n\r\n /**\r\n * Sets the firstname.\r\n *\r\n * @param firstname\r\n * the firstname to set.\r\n */\r\n void setFirstname(java.lang.String firstname);\r\n\r\n\r\n\r\n /**\r\n * Constant value for createTimestamp.\r\n */\r\n String CREATE_TIMESTAMP = \"createTimestamp\";\r\n\r\n /**\r\n * Gets the createTimestamp.\r\n *\r\n * @hibernate.property\r\n * type = \"timestamp\"\r\n * @hibernate.column\r\n * name = \"CREATE_TIMESTAMP\"\r\n * @return the createTimestamp.\r\n */\r\n java.util.Date getCreateTimestamp();\r\n\r\n /**\r\n * Sets the createTimestamp.\r\n *\r\n * @param createTimestamp\r\n * the createTimestamp to set.\r\n */\r\n void setCreateTimestamp(java.util.Date createTimestamp);\r\n\r\n\r\n\r\n /**\r\n * Constant value for lastUpdateTimestamp.\r\n */\r\n String LAST_UPDATE_TIMESTAMP = \"lastUpdateTimestamp\";\r\n\r\n /**\r\n * Gets the lastUpdateTimestamp.\r\n *\r\n * @hibernate.property\r\n * type = \"timestamp\"\r\n * @hibernate.column\r\n * name = \"LAST_UPDATE_TIMESTAMP\"\r\n * @return the lastUpdateTimestamp.\r\n */\r\n java.util.Date getLastUpdateTimestamp();\r\n\r\n /**\r\n * Sets the lastUpdateTimestamp.\r\n *\r\n * @param lastUpdateTimestamp\r\n * the lastUpdateTimestamp to set.\r\n */\r\n void setLastUpdateTimestamp(java.util.Date lastUpdateTimestamp);\r\n\r\n\r\n\r\n\r\n}", "protected abstract String identity() throws SQLException;", "@SuppressWarnings(\"unchecked\")\n\t public AbstractHibernateRepository() {\n\t entityClass = (Class<Entity>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];\n\t }", "private Properties getHibernateProperties() {\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.put(\"hibernate.dialect\", hibernateDialect); // -> database specific property\r\n\t\t// -> this will allow us to see the sql query executed.\r\n\t\tproperties.put(\"hibernate.show_sql\", showSql);\r\n\t\t// -> this will format the sql query.\r\n\t\tproperties.put(\"hibernate.format_sql\", formatSql);\r\n\t\t// -> this will allow us to automatically create, update or drop the table in\r\n\t\t// the database.\r\n\t\t// properties.put(\"hibernate.hbm2ddl.auto\", hbm2ddl);\r\n\t\treturn properties;\r\n\t}", "private Properties hibernateProperties() {\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.put(org.hibernate.cfg.Environment.DIALECT, \"org.hibernate.dialect.MySQL5Dialect\");\r\n\t\tproperties.put(org.hibernate.cfg.Environment.SHOW_SQL, true);\r\n properties.put(org.hibernate.cfg.Environment.FORMAT_SQL, true);\r\n properties.put(org.hibernate.cfg.Environment.HBM2DDL_AUTO, \"update\");\r\n return properties;\r\n\t}", "public static void main(String[] args) { \n\t\t\n\t\tConfiguration conf = new Configuration().configure(\"hibernate.cfg.xml\");\n\t\tServiceRegistry registry = new StandardServiceRegistryBuilder().applySettings(conf.getProperties()).build();\n\t\tSessionFactory factory = conf.buildSessionFactory(registry);\n\t\tSession session = factory.openSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\t/*Employee emp = new Employee();\n emp.setId(1023);\n\t\temp.setFirstname(\"shahil\");\n\t\temp.setLastname(\"duby\");*/\n\t\t//session.save(emp);\n\t\t//session.update(emp);\n\t\t//session.persist(emp);\n\t\t//session.saveOrUpdate(emp);\n\t\t\n\t/*\tTransaction tx=null;\n\t\ttry { \n\t\t\ttx=session.beginTransaction();\n\t\t\tList emp=session.createQuery((\"from hibernatetb\").list();\n\t\t\tfor (Iterable<= emp.iterator();Iterator.ha)\n\t\t}catch(HibernateException E) {}*/\n\t\t\n\t\tCriteria c = session.createCriteria(Employee.class);\n\t c.setProjection(Projections.property(\"lastname\"));\n\t\tList employees = c.list();\n\n\t\tfor (Object o : employees) {\n\t\t\tString s = (String)o;\n\t\t\tSystem.out.println(\"empname :\"+s);\n\t\t}/*\n\t\tIterator itr = employees.iterator();\n\t\twhile (itr.hasNext()) {\n\n//\t\t\tEmployee emp = (Employee) itr.next();\n\t\t\tSystem.out.println(itr.`);\n\t\t\tSystem.out.println(emp.getFirstname());\n\t\t\tSystem.out.println(emp.getLastname());\n\t\t}\n\t\t \n\t\t\n\t\ttx.commit();*/\n\t\tsession.close();\n\t}", "public static void main(String[] args) {\n\t\temployee e1 = new employee();\n\t\temployee e2 = new employee();\n\t\temployee e3 = new employee();\n\t\temployee e4 = new employee();\n\t\temployee e5 = new employee();\n\t\tint c = 1001;\n\t\te1.setName(\"Raj\");e1.setSalary(3000);e1.setDesign(\"Manager\");e1.setEmpid(c);\n\t\te2.setName(\"Arjun\");e2.setSalary(5000);e2.setDesign(\"Designer\");e2.setEmpid(c+1);\n\t\te3.setName(\"Abhi\");e3.setSalary(2300);e3.setDesign(\"Admin\");e3.setEmpid(c+2);\n\t\te4.setName(\"Sneha\");e4.setSalary(9000);e4.setDesign(\"CEO\");e4.setEmpid(c+3);\n\t\te5.setName(\"Nitu\");e5.setSalary(700000);e5.setDesign(\"Teacher\");e5.setEmpid(c+4);\n\t\t\n\t\tConfiguration c1=new AnnotationConfiguration();\n\t\tc1.configure();\n\t\tSessionFactory sf = c1.buildSessionFactory();\n\t\tSession s =sf.openSession();\n\t\tTransaction t = s.beginTransaction();\n\t\ts.save(e1);\n\t\ts.save(e2);\n\t\ts.save(e3);\n\t\ts.save(e4);\n\t\ts.save(e5);\n\t\tt.commit();\n\t\ts.flush();\n\t\ts.close();\n\t\t/* <property name=\"hibernate.connection.driver_class\">oracle.jdbc.driver.OracleDriver</property>\n <property name=\"hibernate.connection.url\">jdbc:oracle:thin:@APL-5LNB403:1521:XE</property>\n <property name=\"hibernate.connection.username\">scott</property>\n <property name=\"hibernate.connection.password\">tiger</property>\n */\n\t\t\n\t}", "private Session fetchSession()\n\t{\n\t\t\tlog.info (\"******Fetching Hibernate Session\");\n\n\t\t\tSession session = HibernateFactory.currentSession();\n\n\t\t\treturn session;\n\t \n\t}", "public static void main(String[] args) {\n\t\tSessionFactory factory=new Configuration().configure(\"hibernate.cfg.xml\").addAnnotatedClass(Employee.class)\n .buildSessionFactory();\nSession session=factory.openSession();\nQuery query=session.createQuery(\"from Employee\");\nList<Employee> list=query.getResultList();\nfor(Employee e:list) {\n\tSystem.out.println(e);\n}\n\t}", "private HibernateUtil() {\n\t}", "private HibernateController(){}", "private void getHibernateSession() {\n try {\n session = em.unwrap(Session.class)\n .getSessionFactory().openSession();\n\n } catch(Exception ex) {\n logger.error(\"Failed to invoke the getter to obtain the hibernate session \" + ex.getMessage());\n ex.printStackTrace();\n }\n\n if(session == null) {\n logger.error(\"Failed to find hibernate session from \" + em.toString());\n }\n }", "public static void main(String[] args) {\n SessionFactory factory = new Configuration()\n .configure(\"hibernate.cfg.xml\")\n .addAnnotatedClass(Student.class)\n .buildSessionFactory();\n\n// create session\n Session session = factory.getCurrentSession();\n\n try {\n// create a Course object\n System.out.println(\"Creating instructor object...\");\n Course tempCourse = new Course(\"History of Magic\");\n\n// start a transaction\n session.beginTransaction();\n\n// save the Course object\n System.out.println(\"Saving the Course...\");\n System.out.println(tempCourse);\n session.save(tempCourse);\n\n// commit transaction\n session.getTransaction().commit();\n\n// MY NEW CODE\n\n// find out the Course's id: primary key\n System.out.println(\"Saved Course. Generated id: \" + tempCourse.getId());\n\n// now get a new session and start transaction\n session = factory.getCurrentSession();\n session.beginTransaction();\n\n// retrieve Course based on the id: primary key\n System.out.println(\"\\nGetting Course with id: \" + tempCourse.getId());\n\n Course myCourse = session.get(Course.class, tempCourse.getId());\n\n System.out.println(\"Get complete: \" + myCourse);\n\n// commit the transaction\n session.getTransaction().commit();\n\n System.out.println(\"Done!\");\n }\n finally {\n factory.close();\n }\n\n\n }", "protected HibernateSynonymGroupDAO() {\n super(SynonymGroup.class);\n }", "@Test\n public void testAddNotEntity() {\n reloadableSessionFactory.addEntity(String.class);\n }", "public boolean requiresCastingOfParametersInSelectClause() {\ndiff --git a/hibernate-core/src/main/java/org/hibernate/dialect/SQLServer2005Dialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/SQLServer2005Dialect.java\nindex b3c01018b9..4ee4697b8a 100644\n--- a/hibernate-core/src/main/java/org/hibernate/dialect/SQLServer2005Dialect.java\n+++ b/hibernate-core/src/main/java/org/hibernate/dialect/SQLServer2005Dialect.java\n@@ -1,302 +1,117 @@\n /*\n * Hibernate, Relational Persistence for Idiomatic Java\n *\n * Copyright (c) 2010, Red Hat Inc. or third-party contributors as\n * indicated by the @author tags or express copyright attribution\n * statements applied by the authors. All third-party contributions are\n * distributed under license by Red Hat Inc.\n *\n * This copyrighted material is made available to anyone wishing to use, modify,\n * copy, or redistribute it subject to the terms and conditions of the GNU\n * Lesser General Public License, as published by the Free Software Foundation.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License\n * for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this distribution; if not, write to:\n * Free Software Foundation, Inc.\n * 51 Franklin Street, Fifth Floor\n * Boston, MA 02110-1301 USA\n */\n package org.hibernate.dialect;\n \n import java.sql.SQLException;\n import java.sql.Types;\n-import java.util.regex.Matcher;\n-import java.util.regex.Pattern;\n \n import org.hibernate.JDBCException;\n import org.hibernate.LockMode;\n import org.hibernate.LockOptions;\n import org.hibernate.QueryTimeoutException;\n import org.hibernate.dialect.function.NoArgSQLFunction;\n+import org.hibernate.dialect.pagination.LimitHandler;\n+import org.hibernate.dialect.pagination.SQLServer2005LimitHandler;\n+import org.hibernate.engine.spi.RowSelection;\n import org.hibernate.exception.LockTimeoutException;\n import org.hibernate.exception.spi.SQLExceptionConversionDelegate;\n import org.hibernate.internal.util.JdbcExceptionHelper;\n import org.hibernate.type.StandardBasicTypes;\n \n /**\n * A dialect for Microsoft SQL 2005. (HHH-3936 fix)\n *\n * @author Yoryos Valotasios\n+ * @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)\n */\n public class SQLServer2005Dialect extends SQLServerDialect {\n-\tprivate static final String SELECT = \"select\";\n-\tprivate static final String FROM = \"from\";\n-\tprivate static final String DISTINCT = \"distinct\";\n-\tprivate static final String ORDER_BY = \"order by\";\n \tprivate static final int MAX_LENGTH = 8000;\n \n-\t/**\n-\t * Regular expression for stripping alias\n-\t */\n-\tprivate static final Pattern ALIAS_PATTERN = Pattern.compile( \"\\\\sas\\\\s[^,]+(,?)\" );\n-\n \tpublic SQLServer2005Dialect() {\n \t\t// HHH-3965 fix\n \t\t// As per http://www.sql-server-helper.com/faq/sql-server-2005-varchar-max-p01.aspx\n \t\t// use varchar(max) and varbinary(max) instead of TEXT and IMAGE types\n \t\tregisterColumnType( Types.BLOB, \"varbinary(MAX)\" );\n \t\tregisterColumnType( Types.VARBINARY, \"varbinary(MAX)\" );\n \t\tregisterColumnType( Types.VARBINARY, MAX_LENGTH, \"varbinary($l)\" );\n \t\tregisterColumnType( Types.LONGVARBINARY, \"varbinary(MAX)\" );\n \n \t\tregisterColumnType( Types.CLOB, \"varchar(MAX)\" );\n \t\tregisterColumnType( Types.LONGVARCHAR, \"varchar(MAX)\" );\n \t\tregisterColumnType( Types.VARCHAR, \"varchar(MAX)\" );\n \t\tregisterColumnType( Types.VARCHAR, MAX_LENGTH, \"varchar($l)\" );\n \n \t\tregisterColumnType( Types.BIGINT, \"bigint\" );\n \t\tregisterColumnType( Types.BIT, \"bit\" );\n \t\tregisterColumnType( Types.BOOLEAN, \"bit\" );\n \n \n \t\tregisterFunction( \"row_number\", new NoArgSQLFunction( \"row_number\", StandardBasicTypes.INTEGER, true ) );\n \t}\n \n \t@Override\n-\tpublic boolean supportsLimitOffset() {\n-\t\treturn true;\n-\t}\n-\n-\t@Override\n-\tpublic boolean bindLimitParametersFirst() {\n-\t\treturn false;\n-\t}\n-\n-\t@Override\n-\tpublic boolean supportsVariableLimit() {\n-\t\treturn true;\n-\t}\n-\n-\t@Override\n-\tpublic int convertToFirstRowValue(int zeroBasedFirstResult) {\n-\t\t// Our dialect paginated results aren't zero based. The first row should get the number 1 and so on\n-\t\treturn zeroBasedFirstResult + 1;\n-\t}\n-\n-\t@Override\n-\tpublic String getLimitString(String query, int offset, int limit) {\n-\t\t// We transform the query to one with an offset and limit if we have an offset and limit to bind\n-\t\tif ( offset > 1 || limit > 1 ) {\n-\t\t\treturn getLimitString( query, true );\n-\t\t}\n-\t\treturn query;\n-\t}\n-\n-\t/**\n-\t * Add a LIMIT clause to the given SQL SELECT (HHH-2655: ROW_NUMBER for Paging)\n-\t *\n-\t * The LIMIT SQL will look like:\n-\t *\n-\t * <pre>\n-\t * WITH query AS (\n-\t * original_select_clause_without_distinct_and_order_by,\n-\t * ROW_NUMBER() OVER ([ORDER BY CURRENT_TIMESTAMP | original_order_by_clause]) as __hibernate_row_nr__\n-\t * original_from_clause\n-\t * original_where_clause\n-\t * group_by_if_originally_select_distinct\n-\t * )\n-\t * SELECT * FROM query WHERE __hibernate_row_nr__ >= offset AND __hibernate_row_nr__ < offset + last\n-\t * </pre>\n-\t *\n-\t * @param querySqlString The SQL statement to base the limit query off of.\n-\t * @param hasOffset Is the query requesting an offset?\n-\t *\n-\t * @return A new SQL statement with the LIMIT clause applied.\n-\t */\n-\t@Override\n-\tpublic String getLimitString(String querySqlString, boolean hasOffset) {\n-\t\tStringBuilder sb = new StringBuilder( querySqlString.trim() );\n-\n-\t\tint orderByIndex = shallowIndexOfWord( sb, ORDER_BY, 0 );\n-\t\tCharSequence orderby = orderByIndex > 0 ? sb.subSequence( orderByIndex, sb.length() )\n-\t\t\t\t: \"ORDER BY CURRENT_TIMESTAMP\";\n-\n-\t\t// Delete the order by clause at the end of the query\n-\t\tif ( orderByIndex > 0 ) {\n-\t\t\tsb.delete( orderByIndex, orderByIndex + orderby.length() );\n-\t\t}\n-\n-\t\t// HHH-5715 bug fix\n-\t\treplaceDistinctWithGroupBy( sb );\n-\n-\t\tinsertRowNumberFunction( sb, orderby );\n-\n-\t\t// Wrap the query within a with statement:\n-\t\tsb.insert( 0, \"WITH query AS (\" ).append( \") SELECT * FROM query \" );\n-\t\tsb.append( \"WHERE __hibernate_row_nr__ >= ? AND __hibernate_row_nr__ < ?\" );\n-\n-\t\treturn sb.toString();\n-\t}\n-\n-\t/**\n-\t * Utility method that checks if the given sql query is a select distinct one and if so replaces the distinct select\n-\t * with an equivalent simple select with a group by clause.\n-\t *\n-\t * @param sql an sql query\n-\t */\n-\tprotected static void replaceDistinctWithGroupBy(StringBuilder sql) {\n-\t\tint distinctIndex = shallowIndexOfWord( sql, DISTINCT, 0 );\n-\t\tint selectEndIndex = shallowIndexOfWord( sql, FROM, 0 );\n-\t\tif (distinctIndex > 0 && distinctIndex < selectEndIndex) {\n-\t\t\tsql.delete( distinctIndex, distinctIndex + DISTINCT.length() + \" \".length());\n-\t\t\tsql.append( \" group by\" ).append( getSelectFieldsWithoutAliases( sql ) );\n-\t\t}\n-\t}\n-\n-\tpublic static final String SELECT_WITH_SPACE = SELECT + ' ';\n-\n-\t/**\n-\t * This utility method searches the given sql query for the fields of the select statement and returns them without\n-\t * the aliases.\n-\t *\n-\t * @param sql sql query\n-\t *\n-\t * @return the fields of the select statement without their alias\n-\t */\n-\tprotected static CharSequence getSelectFieldsWithoutAliases(StringBuilder sql) {\n-\t\tfinal int selectStartPos = shallowIndexOf( sql, SELECT_WITH_SPACE, 0 );\n-\t\tfinal int fromStartPos = shallowIndexOfWord( sql, FROM, selectStartPos );\n-\t\tString select = sql.substring( selectStartPos + SELECT.length(), fromStartPos );\n-\n-\t\t// Strip the as clauses\n-\t\treturn stripAliases( select );\n-\t}\n-\n-\t/**\n-\t * Utility method that strips the aliases.\n-\t *\n-\t * @param str string to replace the as statements\n-\t *\n-\t * @return a string without the as statements\n-\t */\n-\tprotected static String stripAliases(String str) {\n-\t\tMatcher matcher = ALIAS_PATTERN.matcher( str );\n-\t\treturn matcher.replaceAll( \"$1\" );\n-\t}\n-\n-\t/**\n-\t * We must place the row_number function at the end of select clause.\n-\t *\n-\t * @param sql the initial sql query without the order by clause\n-\t * @param orderby the order by clause of the query\n-\t */\n-\tprotected void insertRowNumberFunction(StringBuilder sql, CharSequence orderby) {\n-\t\t// Find the end of the select clause\n-\t\tint selectEndIndex = shallowIndexOfWord( sql, FROM, 0 );\n-\n-\t\t// Insert after the select clause the row_number() function:\n-\t\tsql.insert( selectEndIndex - 1, \", ROW_NUMBER() OVER (\" + orderby + \") as __hibernate_row_nr__\" );\n+\tpublic LimitHandler buildLimitHandler(String sql, RowSelection selection) {\n+\t\treturn new SQLServer2005LimitHandler( sql, selection );\n \t}", "@Override\n public void loadEntityDetails() {\n \tsuper.loadEntityDetails();\n }", "T buidEntity(ResultSet rs) throws SQLException;", "public interface EmpDao {\n\n\n /**\n * 根据参数查询列表\n * @param map\n * @return\n */\n\n// select empno,ENAME,job,mgr,hiredate,sal,comm,deptno from emp\n @Select(\"<script>\" +\n \"select a.empno,a.ename,a.job,a.mgr,to_char(a.hiredate,'yyyy-mm-dd') hiredate,a.sal,a.comm,a.deptno,a.mgrname,a.dname,a.rn from \" +\n \"(select b.*,rownum rn from \" +\n \"(select e.*,d.dname from (select e1.*,e2.ename mgrname from emp e1 left join emp e2 on e1.mgr=e2.empno) e left join dept d on e.deptno=d.deptno \" +\n \"<where>\" +\n \"<if test='ename!=null'>and e.ename like '%'||#{ename}||'%' </if>\" +\n \"<if test='job!=null'>and e.job like '%'||#{job}||'%' </if>\" +\n \"</where>\" +\n \"order by empno desc) b where rownum &lt; #{end}) a where a.rn &gt; #{start}\" +\n \"</script>\")\n List<Map> getList(Map map);\n\n\n /**\n * 带条件查询总条数\n * @param map\n * @return\n */\n @Select(\"<script>\"+\n \"select count(*) from emp <where>\" +\n \"<if test='ename != null'> and ename like '%${ename}%'</if>\"+\n \"<if test='job != null'> and job like '%${job}%'</if>\"+\n \"</where></script>\")\n int getPageCount(Map map);\n /**\n * 添加\n * @param map\n * @return\n */\n// seq_emp_id.nextval,ename, job, hiredate, sal, comm,deptno\n @Insert(\"insert into emp values(seq_emp_id.nextval,#{ENAME},#{JOB},#{MGR},to_date(#{HIREDATE},'yyyy-mm-dd'),#{SAL},#{COMM},#{DEPTNO})\")\n int add(Map map);\n\n\n /**\n * 更新\n * @param map\n * @return\n */\n @Update(\"update emp set ename=#{ENAME},job=#{JOB},mgr=#{MGR},hiredate=to_date(#{HIREDATE},'yyyy-mm-dd'),sal=#{SAL},comm=#{COMM},deptno=#{DEPTNO} where empno=#{EMPNO}\")\n int update(Map map);\n\n /**\n * 删除\n * @param deptNo\n * @return\n */\n @Delete(\"delete from emp where empno=#{EMPNO}\")\n int delete(int deptNo);\n\n /**\n * 获取所有部门,用于页面数据绑定\n * @return\n */\n @Select(\"select deptno,dname from dept\")\n List<Map> getDeptType();\n\n /**\n * 获取所有职位,用于页面数据绑定\n * @return\n */\n @Select(\"select distinct(job) from emp\")\n List<Map> getJob();\n\n /**\n * 获取上司,用于页面数据绑定\n * @return\n */\n @Select(\"select empno,ename from emp where job='PRESIDENT' or job='MANAGER' or job='ANALYST'\")\n List<Map> getMgr();\n\n\n}", "public SqlSessionFactory get();", "@Override\n\tpublic Object getObjectByInfo(String hql) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction transaction = session.beginTransaction();\n\t\tQuery query = session.createQuery(hql);\n\t\tObject obj = query.uniqueResult();\n\t\ttransaction.commit();\n\t\tsession.close();\n\t\tSystem.out.println(\"查询完毕\");\n\t\treturn obj;\n\t}", "private static SessionFactory buildSessionFact() {\n try {\n\n return new Configuration().configure(\"hibernate.cfg.xml\").buildSessionFactory();\n\n \n } catch (Throwable ex) {\n \n System.err.println(\"Initial SessionFactory creation failed.\" + ex);\n throw new ExceptionInInitializerError(ex);\n }\n }", "public HibernateTemplate getHibernateTemplate() {\n return _hibernateTemplate;\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public abstract ZALogDao mo87644a();", "@Override\n public boolean isMapped() {\n return false;\n }", "@Test\n @TestForIssue(jiraKey = \"HHH-8775\")\n public void testBootstrapWithClassMappedMOreThanOnce() {\n Map settings = new HashMap();\n settings.put(HBXML_FILES, \"org/hibernate/jpa/test/callbacks/hbmxml/ClassMappedMoreThanOnce.hbm.xml\");\n final EntityManagerFactoryBuilder builder = Bootstrap.getEntityManagerFactoryBuilder(new BaseEntityManagerFunctionalTestCase.TestingPersistenceUnitDescriptorImpl(getClass().getSimpleName()), settings);\n HibernateEntityManagerFactory emf = null;\n try {\n emf = builder.build().unwrap(HibernateEntityManagerFactory.class);\n } finally {\n if (emf != null) {\n try {\n emf.close();\n } catch (Exception ignore) {\n }\n }\n }\n }", "@Override\r\n\tpublic List<ServicesDto> list() {\r\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"FROM ServicesDto WHERE active = TRUE\").list();\r\n}", "public static List<Book> getBookDetails_1() throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n \r\n Query query=session.getNamedQuery(\"INVENTORY_getAllBookList_1\");\r\n List<Book> bookList=query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return bookList;\r\n \r\n }", "public TblActividadFinanciamientoDet() {\n // Este lo usa Jpa para realizar los Mapping\n }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Hibernate Lazy Loading in Default\")\n public void testHibernateDefaultLazyLoading()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n SBAddressVal01 addressVal01 = SBAddressVal01.of(\n \"Kusumarama Road\",\n \"Seenigama\",\n \"Hikkaduwa\",\n \"Sri Lanka\",\n \"292000\"\n );\n\n SBCustomerOrder order01 = SBCustomerOrder.of(\n \"IN0000001\",\n new Timestamp(new java.util.Date().getTime()),\n 2024.50\n );\n\n SBCustomerOrder order02 = SBCustomerOrder.of(\n \"IN0000002\",\n new Timestamp(new java.util.Date().getTime()),\n 1024.50\n );\n\n SBCustomerOrder order03 = SBCustomerOrder.of(\n \"IN0000003\",\n new Timestamp(new java.util.Date().getTime()),\n 3024.50\n );\n\n SBCustomerOrder order04 = SBCustomerOrder.of(\n \"IN0000004\",\n new Timestamp(new java.util.Date().getTime()),\n 5024.50\n );\n\n SBCustomer05 sbCustomer05 = new SBCustomer05();\n\n sbCustomer05.getCustomer05Orders().add(order01);\n sbCustomer05.getCustomer05Orders().add(order02);\n sbCustomer05.getCustomer05Orders().add(order03);\n sbCustomer05.getCustomer05Orders().add(order04);\n\n sbCustomer05.setCustomer05Email(\"[email protected]\");\n sbCustomer05.setCustomer05Sex(\"Male\");\n sbCustomer05.setCustomer05FirstName(\"Umesh\");\n sbCustomer05.setCustomer05LastName(\"Gunasekara\");\n sbCustomer05.setCustomer05Nic(\"901521344V\");\n sbCustomer05.setCustomer05Mobile(\"0711233000\");\n try {\n sbCustomer05.setCustomer05Birthday(new SimpleDateFormat(\"dd/MM/yyyy\").parse(\"31/05/1990\"));\n } catch (ParseException e) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n sbCustomer05.setCustomer05Address(addressVal01);\n sbCustomer05.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n sbCustomer05.setRawLastUpdateLogId(1);\n sbCustomer05.setUpdateUserAccountId(1);\n sbCustomer05.setRawActiveStatus(1);\n sbCustomer05.setRawDeleteStatus(1);\n sbCustomer05.setRawShowStatus(1);\n sbCustomer05.setRawUpdateStatus(1);\n\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n session.save(sbCustomer05);\n transaction.commit();\n System.out.println(\"Added Customer 03: \" + sbCustomer05.getCustomer05FirstName());\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n //********************************************\n //The first session has benn closed with end of try catch\n //*******************************************\n\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n SBCustomer05 customer = session.get(SBCustomer05.class, sbCustomer05.getCustomer05Id());\n transaction.commit();\n System.out.println(\"Get Customer 05: \" + customer.getCustomer05FirstName());\n System.out.println(\"Get Customer 05 Orders \");\n customer.getCustomer05Orders().forEach(\n order ->\n {\n System.out.println(\"Order Invoice Number :\" + order.getCustomerOrderInvoiceNumber());\n System.out.println(\"\\tDate & Time :\" + order.getCustomerOrderDateTime());\n System.out.println(\"\\tTotal Amount:\" + order.getCustomerOrderTotal());\n });\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "private static synchronized void lazyinit()\n {\n try\n {\n if (sessionFactory == null)\n {\n System.out.println(\"Going to create SessionFactory \");\n sessionFactory = new Configuration().configure().buildSessionFactory();\n// sessionFactory.openSession();\n System.out.println(\"Hibernate could create SessionFactory\");\n }\n } catch (Throwable t)\n {\n System.out.println(\"Hibernate could not create SessionFactory\");\n t.printStackTrace();\n }\n }", "@Override\n\tprotected void doUpdate(Session session) {\n\n\t}", "public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }", "@Test\n public void testsaveUser(){\n \tSession session=myHibernateUtil.getSessionFactory().getCurrentSession();\n \t\n \tTransaction ts=session.beginTransaction();\n \tUsers u=new Users();\n \tu.setUsername(\"zhangsan\");\n \tu.setPassword(\"123456\");\n \tsession.save(u);\n \tts.commit();\n }", "public static void main(String[] args) {\n\t\t\n\t\ttry(Session session = HibernateUtil.getSessionFactory().openSession()) {\n\t\t\t\n\t\t\tString sql =\"SELECT version()\";\n\t\t\tString result = (String) session.createNativeQuery(sql).getSingleResult();\n\t\t\tSystem.out.println(\"Mysql version without cfg file:::\"+result);\n\t\t}catch (HibernateException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n Personel personel = new Personel();\n personel.setPersoneladi(\"Kübra\");\n personel.setPersonelsoyadi(\"YILDIZ\");\n personel.setPersonelgiristarihi(new Date());\n \n Adres adres1= new Adres();\n adres1.setSehir(\"İSTANBUL\");\n adres1.setSemt(\"SARIYER\");\n adres1.setMahalle(\"BEBEK\");\n adres1.setPostakodu(\"56000\");\n \n personel.getAdresListesi().add(adres1);\n \n Adres adres2= new Adres();\n adres2.setSehir(\"İSTANBUL\");\n adres2.setSemt(\"BEŞİKTAŞ\");\n adres2.setMahalle(\"BEBEK\");\n adres2.setPostakodu(\"61600\");\n personel.getAdresListesi().add(adres2);\n \n SessionFactory sessionfactory = new Configuration().configure().buildSessionFactory();\n Session session = sessionfactory.openSession();\n session.beginTransaction();\n session.save(personel);\n session.getTransaction().commit();\n session.close();\n \n personel = null;\n session = sessionfactory.openSession();\n session.beginTransaction();\n personel = session.get(Personel.class, 1);\n session.close();\n\t}", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Hibernate Lazy Loading in Default with Session Close\")\n public void testHibernateDefaultLazyLoadingWithSessionClose()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n SBAddressVal01 addressVal01 = SBAddressVal01.of(\n \"Kusumarama Road\",\n \"Seenigama\",\n \"Hikkaduwa\",\n \"Sri Lanka\",\n \"292000\"\n );\n\n SBCustomerOrder order01 = SBCustomerOrder.of(\n \"IN0000001\",\n new Timestamp(new java.util.Date().getTime()),\n 2024.50\n );\n\n SBCustomerOrder order02 = SBCustomerOrder.of(\n \"IN0000002\",\n new Timestamp(new java.util.Date().getTime()),\n 1024.50\n );\n\n SBCustomerOrder order03 = SBCustomerOrder.of(\n \"IN0000003\",\n new Timestamp(new java.util.Date().getTime()),\n 3024.50\n );\n\n SBCustomerOrder order04 = SBCustomerOrder.of(\n \"IN0000004\",\n new Timestamp(new java.util.Date().getTime()),\n 5024.50\n );\n\n SBCustomer05 sbCustomer05 = new SBCustomer05();\n\n sbCustomer05.getCustomer05Orders().add(order01);\n sbCustomer05.getCustomer05Orders().add(order02);\n sbCustomer05.getCustomer05Orders().add(order03);\n sbCustomer05.getCustomer05Orders().add(order04);\n\n sbCustomer05.setCustomer05Email(\"[email protected]\");\n sbCustomer05.setCustomer05Sex(\"Male\");\n sbCustomer05.setCustomer05FirstName(\"Umesh\");\n sbCustomer05.setCustomer05LastName(\"Gunasekara\");\n sbCustomer05.setCustomer05Nic(\"901521344V\");\n sbCustomer05.setCustomer05Mobile(\"0711233000\");\n try {\n sbCustomer05.setCustomer05Birthday(new SimpleDateFormat(\"dd/MM/yyyy\").parse(\"31/05/1990\"));\n } catch (ParseException e) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n sbCustomer05.setCustomer05Address(addressVal01);\n sbCustomer05.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n sbCustomer05.setRawLastUpdateLogId(1);\n sbCustomer05.setUpdateUserAccountId(1);\n sbCustomer05.setRawActiveStatus(1);\n sbCustomer05.setRawDeleteStatus(1);\n sbCustomer05.setRawShowStatus(1);\n sbCustomer05.setRawUpdateStatus(1);\n\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n session.save(sbCustomer05);\n transaction.commit();\n System.out.println(\"Added Customer 03: \" + sbCustomer05.getCustomer05FirstName());\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n //********************************************\n //The first session has benn closed with end of try catch\n //*******************************************\n\n SBCustomer05 customer = null;\n\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n customer = session.get(SBCustomer05.class, sbCustomer05.getCustomer05Id());\n transaction.commit();\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n System.out.println(\"Get Customer 05: \" + customer.getCustomer05FirstName());\n System.out.println(\"Get Customer 05 Orders \");\n customer.getCustomer05Orders().forEach(\n order ->\n {\n System.out.println(\"Order Invoice Number :\" + order.getCustomerOrderInvoiceNumber());\n System.out.println(\"\\tDate & Time :\" + order.getCustomerOrderDateTime());\n System.out.println(\"\\tTotal Amount:\" + order.getCustomerOrderTotal());\n });\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "private Criteria createFindByEntity(int type, int id) {\n return null;\t\n }", "protected JpaModule() {\n }", "public interface EepHeadLoadDAO extends DAO<EepHeadLoad> {\r\n\t/**\r\n\t * Sletter alle linjer tilhørende gitt hode\r\n\t * \r\n\t * @param head\r\n\t */\r\n\tvoid deleteImportFile(EepHeadLoad head);\r\n\r\n\t/**\r\n\t * Finner alle for gitt sekvensnummer\r\n\t * \r\n\t * @param nr\r\n\t * @return alle for gitt sekvensnummer\r\n\t */\r\n\tEepHeadLoad findBySequenceNumber(Integer nr);\r\n}", "private SessionFactoryUtil() {\r\n try {\r\n LOG.info(\"Configurando hibernate.cfg.xml\");\r\n CfgFile cfgFile = new CfgFile();\r\n Configuration configure = new Configuration().configure(new File(cfgFile.getPathFile()));\r\n cfgFile.toBuildMetaData(configure);\r\n ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder().applySettings(configure.getProperties()).build();\r\n sessionFactory = configure.buildSessionFactory(serviceRegistry);\r\n LOG.info(\"Configuracion se cargo a memoria de forma correcta\");\r\n } // try\r\n catch (Exception e) {\r\n Error.mensaje(e);\r\n } // catch\r\n }", "public interface IUserbookDao {\r\n public void saveUserbook(UserbookEntity userbookEntity) throws SQLException;\r\n\r\n public void delUserbook(UserbookEntity userbookEntity) throws SQLException;\r\n\r\n public void editUserbook(UserbookEntity userbookEntity) throws SQLException;\r\n\r\n public UserbookEntity getUserbookById(int id) throws SQLException;\r\n\r\n public boolean isExists(int id) throws SQLException;\r\n\r\n public void setSessionFactory(SessionFactory sessionFactory)throws SQLException;\r\n}", "private void pushToHibernate(){\n DATA_API.saveUser(USER);\n }", "public static void inicializarBD() {\n\t\ts = new StandardServiceRegistryBuilder().configure().build();\r\n\t\tsf = new MetadataSources(s).buildMetadata().buildSessionFactory();\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Test\n public void save1()\n {\n MobileGoods m = new MobileGoods();\n m.setMobile_os(\"sdafsdaf\");\n m.setMobile_memory(\"254gb\");\n m.setMobile_frontCamera(\"sadf\");\n m.setMobile_news(\"dsfsadf\");\n m.setMobile_backCamera(\"dsafsadf\");\n m.setMobile_battery(\"dsfasadf\");\n m.setMobile_rom(\"dsafasdf\");\n m.setMobile_color(\"dsafsadfs\");\n m.setGoods_name(\"dfasdf\");\n m.setGoods_price(234d);\n m.setGoods_description(\"dfasdfasdf\");\n m.setGoods_number(2353425);\n\n session.save(m);\n transaction.commit();\n }", "public static void main(String[] args) {\r\n\r\n\t\t\r\n\t\tVehicle v1 = new Vehicle(10,\"V1\",1012);\r\n\t\t//Vehicle v2 = new Vehicle(11,\"V2\",332012);\r\n\t\t//Vehicle v3 = new Vehicle(12,\"V3\",412012);\r\n\t\tSessionFactory sf = new Configuration().configure().buildSessionFactory();\r\n\t\tSession session1 = sf.openSession();\r\n\t\tTransaction tr= session1.beginTransaction();\r\n\t\tsession1.save(v1);\r\n\t\tsession1.flush();\r\n\t\ttr.commit();\r\n\t\tsession1.close();\t\t\r\n\t\tSession session2 = sf.openSession();\r\n\t\tTransaction tr1= session2.beginTransaction();\r\n\t\tVehicle v2 = session2.get(Vehicle.class,1);\r\n\t\tv2.setVechilePrice(10000);\r\n\t\tsession2.save(v2);\r\n\t\tsession2.flush();\r\n\t\tsession2.close();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t/*Transaction tr= session.beginTransaction();\r\n\t\tsession.save(v1);\r\n\t\tsession.save(v2);\r\n\t\tsession.save(v3);\r\n\t\tsession.flush();\r\n\t\ttr.commit();*/\r\n\t\t//session.close();\r\n\t\t//sf.close();\r\n\t\t\r\n\t}", "public interface DepartmentDao {\n\n /**\n * 部门列表查询\n * @return\n */\n @Select(\"select deptno,dname,loc from department\")\n List<Map> getDeptList();\n}", "public interface HdcChangeLogDao extends\n AbstractHibernateDao<HdcChangeLog> {\n public Page findHdcChangeLogByPage(Map<String, Object> filter,\n int pageNo, int pageSize,String operateTypeId);\n}", "public static void SetSchool() {\n\t\tcfg =new Configuration().configure(\"com/HQLSelectQuery/hibernate.cfg.xml\");\n\t\tsf = cfg.buildSessionFactory();\n\t\tsession = sf.openSession();\n\t\t\n\t\t\n\t}", "public interface RoleMapper extends RoleDao {\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE id = #{id}\")\n Role getRole(int id);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role WHERE name = #{name}\")\n Role getRoleByName(String name);\n\n @Override\n @ResultType(Role.class)\n @Select(\"SELECT * FROM role ORDER BY name\")\n List<Role> getAllRoles();\n\n @Override\n @Insert(\"INSERT INTO role (name) VALUES(#{name})\")\n @Options(useGeneratedKeys = true)\n void addRole(Role role);\n\n @Override\n @Delete(\"DELETE FROM role WHERE id =#{id}\")\n void removeRole(Role role);\n}", "public interface LeadersDao {\r\n\r\n @Select(\"select * from leaders where dept_id=#{deptId}\")\r\n List<Leaders> selectLeadersByDept(@Param(\"deptId\") Integer dept_id);\r\n \r\n @Select(\"select * from leaders where lid=#{lid}\")\r\n Leaders selectLeadersByid(@Param(\"lid\") Integer lid);\r\n\r\n @Insert(\"INSERT INTO leaders (lid,dept_id) \" +\r\n \" VALUES (#{lid},#{deptId})\")\r\n int insertLeader(@Param(\"lid\")Integer lid, @Param(\"deptId\")Integer dept_id);\r\n\r\n @Delete(\"delete from leaders where lid = #{lid}\")\r\n int deleteLeader(Integer lid);\r\n}", "@Test\n public void test3() throws Exception {\n String jpql = \"SELECT c FROM Course c where SQL('course_mapped ->> ''?'' = ''Second one''',c.name) \";\n Query q = em.createQuery(jpql, Course.class);\n List<Course> courses = q.getResultList();\n Assert.assertEquals(1, courses.size());\n Assert.assertEquals(\"Second one\", courses.get(0).getCourseMapped().getName());\n\n }", "public interface SfopEquiAlarEnviDAO extends CrudRepositoryEnvi<EnviSfopEquiAlar, EnviSfopEquiAlarPK> {\n\n\t\n}", "@Override\n\tpublic boolean isGeneratedValue() {\n// if ( this.isAutoIncremented() ) {\n// \treturn true ; \n// } \n// else if (this.getGeneratedValue() != null) {\n// \treturn true ; \n// }\n \treturn false ; \n\t}", "private ORMServiceFactory() { }", "public interface PersistenceFactory {\n /* Fields */\n\n /**\n * The property name for all classes stored at the column:row level to introspect the entity that contains the\n * properties persisted in a row's columns\n */\n String CLASS_PROPERTY = \"___class\";\n\n /* Misc */\n\n /**\n * Deletes columns by name from column family\n *\n * @param columnFamily the column family\n * @param key the key\n * @param columns the columns to be deleted by name\n */\n void deleteColumns(String columnFamily, String key, String... columns);\n\n /**\n * Executes a query\n *\n * @param expectedResult the result expected from the query execution\n * @param query the query\n * @param <T> the result type\n * @return the result\n */\n <T> T executeQuery(Class<T> expectedResult, Query query);\n\n /**\n * @param entityClass the class\n * @param key the id\n * @param <T> the entity type\n * @return an entity from the data store looked up by its id\n */\n <T> T get(Class<T> entityClass, String key);\n\n /**\n * Fetch a map of columns and their values\n *\n * @param columnFamily the column family\n * @param key the column family key\n * @param reversed if the order should be reversed\n * @param columns the column names\n * @return a map of columns and their values\n */\n Map<String, ByteBuffer> getColumns(String columnFamily, String key, boolean reversed, String... columns);\n\n /**\n * Fetch a map of columns and their values\n *\n * @param columnFamily the column family\n * @param key the column family key\n * @param limit of columns\n * @param reversed if the order should be reversed\n * @param fromColumn from column\n * @param toColumn to column\n * @return a map of columns and their values\n */\n Map<String, ByteBuffer> getColumns(String columnFamily, String key, int limit, boolean reversed, String fromColumn, String toColumn);\n\n /**\n * @return the default consistency level\n */\n ConsistencyLevel getDefaultConsistencyLevel();\n\n /**\n * @return the default keyspace\n */\n String getDefaultKeySpace();\n\n /**\n * @param entityClass the class type for this instance\n * @param <T> the type of class to be returned\n * @return an instance of this type after transformation of its accessors to notify the persistence context that there are ongoing changes\n */\n <T> T getInstance(Class<T> entityClass);\n\n /**\n * Obtains an entity key\n *\n * @param entity the entity\n * @return the key\n */\n String getKey(Object entity);\n\n /**\n * The list of managed class by this factory\n *\n * @return The list of managed class by this factory\n */\n List<Class<?>> getManagedClasses();\n\n /**\n * Get a list of entities given a query\n *\n * @param type the type of objects to expect back\n * @param query the query\n * @param <T> the result type\n * @return the list of entities\n */\n <T> List<T> getResultList(Class<T> type, Query query);\n\n /**\n * Get a single result from a CQL query\n *\n * @param type the type of objects to expect back\n * @param query the query\n * @param <T> the entity type\n * @return the resulting entity\n */\n <T> T getSingleResult(Class<T> type, Query query);\n\n /**\n * Inserts columns based on a map representing keys with properties and their corresponding values\n *\n * @param columnFamily the column family\n * @param key the column family key\n * @param keyValuePairs the map with keys and values\n */\n void insertColumns(String columnFamily, String key, Map<String, Object> keyValuePairs);\n\n /**\n * Entry point method to persist and arbitrary list of objects into the datastore\n *\n * @param entities the entities to be persisted\n */\n <T> void persist(T... entities);\n\n /**\n * @param entities the entities to be removed from the data store\n */\n <T> void remove(T... entities);\n \n /**\n * return cluster\n */\n Cluster getCluster(); \n}", "public interface JPQLQueryCriteria{\n\t\n}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public HibernateTemplate getHibernateTemplate()\n \t{\n \t\treturn this.hibernateTemplate;\n \t}", "@Override\n\tpublic void init() throws SlickException {\n\t\t\n\t}" ]
[ "0.61058545", "0.6044256", "0.603981", "0.602379", "0.5989853", "0.5949583", "0.59016216", "0.58673644", "0.58625454", "0.5854164", "0.584983", "0.5825091", "0.57698077", "0.57690406", "0.5766387", "0.5763563", "0.57609034", "0.575974", "0.57424843", "0.57159126", "0.57145286", "0.56931627", "0.568795", "0.56715846", "0.5657435", "0.565247", "0.5628387", "0.5625417", "0.5622188", "0.5620229", "0.5610825", "0.5609274", "0.5598695", "0.5589186", "0.5585518", "0.5582444", "0.55751354", "0.5566537", "0.55560005", "0.5545908", "0.55422884", "0.5529546", "0.5526387", "0.5515964", "0.5515495", "0.55060345", "0.55009073", "0.55001295", "0.5498168", "0.5485587", "0.5485486", "0.54777527", "0.5476056", "0.54722214", "0.54689515", "0.5460698", "0.5448979", "0.5432627", "0.5423006", "0.5418981", "0.5417642", "0.54165477", "0.5416101", "0.5409786", "0.5401815", "0.5399373", "0.53981155", "0.53944916", "0.5391172", "0.53827345", "0.53808725", "0.53799295", "0.53768134", "0.5375438", "0.53716606", "0.53697723", "0.53677773", "0.5363189", "0.5358464", "0.53570473", "0.535625", "0.5350594", "0.5339837", "0.53342813", "0.53341", "0.5331723", "0.5331042", "0.53283215", "0.5326095", "0.53211296", "0.5320489", "0.5315713", "0.53149414", "0.53085345", "0.5307827", "0.5307322", "0.5297385", "0.5291405", "0.52846855", "0.5282177", "0.5278021" ]
0.0
-1
Created by Leo on 2018/12/15.
public interface ErrorCodeException { String getErrorCode(); default int getHttpCode() { return 400; } ; default String getHttpDesc() { return "Bad Request"; } ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void nadar() {\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\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\n\tprotected void interr() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n void init() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public void mo38117a() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public void gored() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void init() {}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo4359a() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public int getOrder() {\n return 0;\n }", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void init() {\n }", "private void init() {\n\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n public int getSize() {\n return 1;\n }", "private void kk12() {\n\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\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 emprestimo() {\n\n\t}", "@Override\n public int getOrder() {\n return 4;\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override public int describeContents() { return 0; }", "Consumable() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "Petunia() {\r\n\t\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\r\n\tpublic void just() {\n\t\t\r\n\t}" ]
[ "0.6066086", "0.5742465", "0.57256687", "0.56617874", "0.5646751", "0.5609635", "0.5609635", "0.56050307", "0.5580791", "0.5574679", "0.5546965", "0.55425817", "0.5516529", "0.55076206", "0.5497008", "0.54799056", "0.5477826", "0.547318", "0.5461658", "0.5453545", "0.5449234", "0.5424285", "0.5423302", "0.5422494", "0.5373367", "0.53664446", "0.5364538", "0.5358928", "0.5358892", "0.5347453", "0.5347409", "0.5346286", "0.5343335", "0.5343335", "0.5343335", "0.5343335", "0.5343335", "0.5343335", "0.532954", "0.5320096", "0.5304019", "0.5304019", "0.5304019", "0.5304019", "0.5304019", "0.5297581", "0.52967787", "0.5294955", "0.5289748", "0.5280531", "0.52803093", "0.5270297", "0.52626115", "0.52580154", "0.52580154", "0.5256126", "0.5251789", "0.52308804", "0.5220123", "0.52191335", "0.52191335", "0.52162343", "0.5216105", "0.5212539", "0.5212539", "0.5211235", "0.5211235", "0.5211235", "0.52040756", "0.52038866", "0.5202166", "0.5191565", "0.5188667", "0.5188667", "0.5188667", "0.5188667", "0.5188667", "0.5188667", "0.5188667", "0.5186398", "0.5174867", "0.517474", "0.5168442", "0.5164512", "0.5164434", "0.5164434", "0.5164434", "0.51549244", "0.51537555", "0.5152971", "0.5152971", "0.5152971", "0.5143756", "0.51392543", "0.5136074", "0.5130759", "0.5128893", "0.51248467", "0.51248467", "0.51248467", "0.5106536" ]
0.0
-1
String observacaoHorasAcima = setObservacaoHorasAcima(); String observacaoHorasAbaixo = setObservacaoHorasAbaixo();
private void setObservacoesHoras( int historicoAlterado, int exclusao, int inclusao, int horasAcima15m, int horasAcima30m, int horasAcima1h, int horasAcima3h, int horasAcima7h, int horasAcima12h, int horasAcima23h, int horasAbaixo15m, int horasAbaixo30m, int horasAbaixo1h, int horasAbaixo3h, int horasAbaixo5h) { String observacaoHorasInconsistencia = setObservacaoHorasInconsistentes(); String observacaoInclusao = ""; if (inclusao > 1) { observacaoInclusao = (inclusao == 2 ? "1 inclusão manual" : ((inclusao-1) + " inclusões manual")); } String observacaoExclusao = ""; if (exclusao > 1) { observacaoExclusao = (exclusao == 2 ? "1 apagado" : ((exclusao-1) + " apagados")); } String historicoAlteracao = ""; if (historicoAlterado > 1) { historicoAlteracao = (historicoAlterado == 2 ? "1 histórico alteração" : ((historicoAlterado-1) + " históricos de alterações")); } this.observacaoHoras = ""; //this.observacaoHoras += observacaoHorasAcima == "" ? "" : "<br>"+observacaoHorasAcima; //this.observacaoHoras += observacaoHorasAbaixo == "" ? "" : "<br>"+observacaoHorasAbaixo; this.observacaoHoras += observacaoHorasInconsistencia == "" ? "" : "<br>"+observacaoHorasInconsistencia; this.observacaoHoras += observacaoInclusao == "" ? "" : "<br>"+observacaoInclusao; this.observacaoHoras += observacaoExclusao == "" ? "" : "<br>"+observacaoExclusao; this.observacaoHoras += historicoAlteracao == "" ? "" : "<br>"+historicoAlteracao; if (this.ausenciaSolicitacoes != null && !this.ausenciaSolicitacoes.isEmpty()) { List<AusenciaSolicitacao> ferias = this.ausenciaSolicitacoes.stream().filter(x->x.getMotivoAusencia().getNome().toLowerCase()=="férias").collect(Collectors.toList()); List<AusenciaSolicitacao> ausencias = this.ausenciaSolicitacoes.stream().filter(x->x.getMotivoAusencia().getNome().toLowerCase()!="férias").collect(Collectors.toList()); } // folgas / ferias }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHorario(String horario);", "public void setAutorizacion(String autorizacion)\r\n/* 139: */ {\r\n/* 140:236 */ this.autorizacion = autorizacion;\r\n/* 141: */ }", "public String MuestraCualquiera() {//PARA MOSTRAR CUALQUIER TIPO DE CLIENTE\nString Muestra=\"\";\n\nif(getTipoCliente().equals(\"Docente\")) {//SI ES DOCENTE\nMuestra=MuestraDocente();//SE MUESTRAN SOLO LOS DATOS DE DOCENTE\n}else if(getTipoCliente().equalsIgnoreCase(\"Administrativo\")) {//SI ES ADMINISTRATIVO\nMuestra=MuestraAdministrativo();//SE MUESTRAN SOLO LOS DATOS DE ADMINISTRATIVO\n}\n\nreturn Muestra;\n}", "public void setEstablecimiento(String establecimiento)\r\n/* 119: */ {\r\n/* 120:198 */ this.establecimiento = establecimiento;\r\n/* 121: */ }", "public void setObservacion(java.lang.String param){\n \n this.localObservacion=param;\n \n\n }", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public void setObstaculo(int avenida, int calle);", "public void Ordenamiento() {\n\n\t}", "public void introducirhora(){\n int horadespertar; \n }", "public String getAutorizacion()\r\n/* 134: */ {\r\n/* 135:226 */ return this.autorizacion;\r\n/* 136: */ }", "public String getEstablecimiento()\r\n/* 114: */ {\r\n/* 115:188 */ return this.establecimiento;\r\n/* 116: */ }", "public void asetaTeksti(){\n }", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "public void setHorario(String horario) {\n this.horario = horario;\n }", "public void datos_elegidos(){\n\n\n }", "public java.lang.String getObservacion(){\n return localObservacion;\n }", "private void populaHorarioAula()\n {\n Calendar hora = Calendar.getInstance();\n hora.set(Calendar.HOUR_OF_DAY, 18);\n hora.set(Calendar.MINUTE, 0);\n HorarioAula h = new HorarioAula(hora, \"Segunda e Quinta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Terca e Sexta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 15);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 10);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Quarta e Sexta\", 3, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Sexta\", 1, 1, 2);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 19);\n h = new HorarioAula(hora, \"Sexta\", 2, 1, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Segunda\", 3, 6, 4);\n horarioAulaDAO.insert(h);\n\n }", "@Override\n\tvoid geraDados() {\n\n\t}", "public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }", "public void setHora_hasta(java.lang.String newHora_hasta);", "void actualizar(Prestamo prestamo);", "public void asignarVida();", "public String limpiar()\r\n/* 103: */ {\r\n/* 104:112 */ this.motivoLlamadoAtencion = new MotivoLlamadoAtencion();\r\n/* 105:113 */ return \"\";\r\n/* 106: */ }", "public abstract void setFecha_termino(java.lang.String newFecha_termino);", "public ejercicio1() {\n this.cadena = \"\";\n this.buscar = \"\";\n }", "@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}", "public abstract void setAcma_cierre(java.lang.String newAcma_cierre);", "public String getHorario() {\n return horario;\n }", "public void comecar() { setEstado(estado.comecar()); }", "private void actualizaSugerencias() { \t \t\n\n \t// Pide un vector con las últimas N_SUGERENCIAS búsquedas\n \t// get_historial siempre devuelve un vector tamaño N_SUGERENCIAS\n \t// relleno con null si no las hay\n \tString[] historial = buscador.get_historial(N_SUGERENCIAS);\n \t\n \t// Establece el texto para cada botón...\n \tfor(int k=0; k < historial.length; k++) { \t\t \t\t\n \t\t\n \t\tString texto = historial[k]; \n \t\t// Si la entrada k está vacía..\n \t\tif ( texto == null) {\n \t\t\t// Rellena el botón con el valor por defecto\n \t\t\ttexto = DEF_SUGERENCIAS[k];\n \t\t\t// Y lo añade al historial para que haya concordancia\n \t\t\tbuscador.add_to_historial(texto);\n \t\t} \t\t\n \t\tb_sugerencias[k].setText(texto);\n \t} \t\n }", "private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}", "public void limpiar() {\n\t//txtBuscar.setText(\"\");\n\n\t// codTemporal.setText(\"\");\n\thabilita(true, false, false, false, false, true, false, true, true);\n }", "private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }", "public abstract void setearEstadosPropuests(String estado, String propuesta, String fechaCambio) throws ParseException;", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }", "public void setFechaHasta(Date fechaHasta)\r\n/* 179: */ {\r\n/* 180:312 */ this.fechaHasta = fechaHasta;\r\n/* 181: */ }", "private void actualizaEstadoMapa() {\n if(cambiosFondo >= 0 && cambiosFondo < 10){\n estadoMapa= EstadoMapa.RURAL;\n }\n if(cambiosFondo == 10){\n estadoMapa= EstadoMapa.RURALURBANO;\n }\n if(cambiosFondo > 10 && cambiosFondo < 15){\n estadoMapa= EstadoMapa.URBANO;\n }\n if(cambiosFondo == 15 ){\n estadoMapa= EstadoMapa.URBANOUNIVERSIDAD;\n }\n if(cambiosFondo > 15 && cambiosFondo < 20){\n estadoMapa= EstadoMapa.UNIVERSIDAD;\n }\n if(cambiosFondo == 20){\n estadoMapa= EstadoMapa.UNIVERSIDADSALONES;\n }\n if(cambiosFondo > 20 && cambiosFondo < 25){\n estadoMapa= EstadoMapa.SALONES;\n }\n\n }", "public void setMotivoLlamadoAtencion(MotivoLlamadoAtencion motivoLlamadoAtencion)\r\n/* 119: */ {\r\n/* 120:127 */ this.motivoLlamadoAtencion = motivoLlamadoAtencion;\r\n/* 121: */ }", "public void consultasSeguimiento() {\r\n try {\r\n switch (opcionMostrarAnalistaSeguim) {\r\n case \"Cita\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n break;\r\n case \"Entrega\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(3, mBsesion.codigoMiSesion());\r\n break;\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".consultasSeguimiento()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "private void mostrarEstadoObjetosUsados() {\n Beneficiario beneficiario = null;\n FichaSocial fichaSocial = null;\n SolicitudBeneficio solicitudBeneficio = null;\n AspectoHabitacional aspectoHabitacional = null;\n AspectoEconomico aspectoEconomico = null;\n\n // CAMBIAR: Obtener datos del Request y asignarlos a los textField\n if (this.getRequestBean1().getObjetoABM() != null) {\n fichaSocial = (FichaSocial) this.getRequestBean1().getObjetoABM();\n aspectoHabitacional = (AspectoHabitacional) fichaSocial.getAspectoHabitacional();\n aspectoEconomico = (AspectoEconomico) fichaSocial.getAspectoEconomico();\n this.getElementoPila().getObjetos().set(0, fichaSocial);\n this.getElementoPila().getObjetos().set(1, aspectoHabitacional);\n this.getElementoPila().getObjetos().set(2, aspectoEconomico);\n }\n\n int ind = 0;\n fichaSocial = (FichaSocial) this.obtenerObjetoDelElementoPila(ind++, FichaSocial.class);\n aspectoHabitacional = (AspectoHabitacional) this.obtenerObjetoDelElementoPila(ind++, AspectoHabitacional.class);\n aspectoEconomico = (AspectoEconomico) this.obtenerObjetoDelElementoPila(ind++, AspectoEconomico.class);\n\n\n this.getTfCodigo().setText(fichaSocial.getNumero());\n this.getTfFecha().setText(Conversor.getStringDeFechaCorta(fichaSocial.getFecha()));\n ////\n //Beneficiarios:\n if (fichaSocial.getTitular() != null) {\n this.getTfTitular().setText(fichaSocial.toString());\n }\n\n this.setListaDelCommunication(new ArrayList(fichaSocial.getGrupoFamiliar()));\n this.getObjectListDataProvider().setList(new ArrayList(fichaSocial.getGrupoFamiliar()));\n\n //Aspecto habitacional:\n if (aspectoHabitacional.getNumeroPersonas() != null) {\n this.getTfNroPersonas().setText(aspectoHabitacional.getNumeroPersonas().toString());\n }\n this.getTfVivienda().setText(aspectoHabitacional.getVivienda());\n this.getTfTenencia().setText(aspectoHabitacional.getTenencia());\n this.getTfNroCamas().setText(aspectoHabitacional.getNumeroCamas());\n this.getTfNroAmbientes().setText(aspectoHabitacional.getNumeroAmbientes());\n this.getCbBanioCompleto().setValue(new Boolean(aspectoHabitacional.isBanioCompleto()));\n this.getCbBanioInterno().setValue(new Boolean(aspectoHabitacional.isBanioInterno()));\n this.getCbAgua().setValue(new Boolean(aspectoHabitacional.isAgua()));\n this.getCbLuz().setValue(new Boolean(aspectoHabitacional.isLuz()));\n this.getCbCloaca().setValue(new Boolean(aspectoHabitacional.isCloaca()));\n this.getCbGasNatural().setValue(new Boolean(aspectoHabitacional.isGasNatural()));\n\n //Aspecto Economico:\n this.getTfNroCasas().setText(aspectoEconomico.getNumeroCasas());\n this.getTfNroTerrenos().setText(aspectoEconomico.getNumeroTerrenos());\n this.getTfNroCampos().setText(aspectoEconomico.getNumeroCampos());\n this.getTfVehiculo().setText(aspectoEconomico.getVehiculo());\n this.getTfIndustria().setText(aspectoEconomico.getIndustria());\n this.getTfActividadLaboral().setText(aspectoEconomico.getActividadLaboral());\n this.getTfComercio().setText(aspectoEconomico.getComercio());\n\n //Solicitud Beneficio\n this.setListaDelCommunication2(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n this.getObjectListDataProvider2().setList(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n }", "@Override\r\n\tpublic void atualizar(TituloEleitoral tituloVO) throws Exception {\n\t\t\r\n\t}", "public void enviarValoresCabecera(){\n }", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "public abstract void setAcma_valor(java.lang.String newAcma_valor);", "public void setHoras(int horas) {\n this.horas = horas;\n }", "public void setar_campos()\n {\n int setar = tblCliNome.getSelectedRow();\n txtCliId.setText(tblCliNome.getModel().getValueAt(setar, 0).toString());\n txtCliNome.setText(tblCliNome.getModel().getValueAt(setar, 1).toString());\n txtCliRua.setText(tblCliNome.getModel().getValueAt(setar, 2).toString());\n txtCliNumero.setText(tblCliNome.getModel().getValueAt(setar, 3).toString());\n txtCliComplemento.setText(tblCliNome.getModel().getValueAt(setar, 4).toString());\n txtCliBairro.setText(tblCliNome.getModel().getValueAt(setar, 5).toString());\n txtCliCidade.setText(tblCliNome.getModel().getValueAt(setar, 6).toString());\n txtCliUf.setText(tblCliNome.getModel().getValueAt(setar, 7).toString());\n txtCliFixo.setText(tblCliNome.getModel().getValueAt(setar, 8).toString());\n txtCliCel.setText(tblCliNome.getModel().getValueAt(setar, 9).toString());\n txtCliMail.setText(tblCliNome.getModel().getValueAt(setar, 10).toString());\n txtCliCep.setText(tblCliNome.getModel().getValueAt(setar, 11).toString());\n \n // A LINHA ABAIXO DESABILITA O BOTÃO ADICIONAR PARA QUE O CADASTRO NÃO SEJA DUPLICADO\n btnAdicionar.setEnabled(true);\n \n }", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public int construir(int pasoSolicitado ) {\n if(tipoTraductor.equals(\"Ascendente\")){\n construirAsc(pasoSolicitado);\n \n }\n else{\n construirDesc(pasoSolicitado);\n }\n contador=pasoSolicitado;\n cadena.actualizarCadena(pasoSolicitado);\n return contador;\n }", "private void calificar(HttpPresentationComms comms, int idsol, String confiabilidad, String justificacion, int idNav, String elUsuario) throws HttpPresentationException, KeywordValueException {\n/* 166 */ VSolicitudesDAO rsVSol = new VSolicitudesDAO();\n/* 167 */ VSolicitudesDTO regSol = rsVSol.getSolicitud(idsol);\n/* 168 */ rsVSol.close();\n/* */ \n/* 170 */ EstadoDAO ef = new EstadoDAO();\n/* 171 */ ef.cargarTodosTipo(\"EF\");\n/* 172 */ EstadoDTO estado = ef.next();\n/* 173 */ ef.close();\n/* */ \n/* 175 */ boolean enviarMensaje = true;\n/* */ \n/* 177 */ ServiciosDAO serf = new ServiciosDAO();\n/* 178 */ ServiciosDTO regServicio = serf.cargarRegistro(regSol.getCodigoServicio());\n/* 179 */ serf.close();\n/* */ \n/* */ \n/* 182 */ if (!regServicio.getIndCorreoCalificacion().equals(\"S\")) {\n/* 183 */ enviarMensaje = false;\n/* */ }\n/* */ \n/* 186 */ Varios oVarios = new Varios();\n/* 187 */ oVarios.actualizarEstadoObj(idNav, regSol.getCodigoEstado(), estado.getCodigo(), justificacion, regSol, enviarMensaje, elUsuario, 0, 0, 0, confiabilidad);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 201 */ AtencionSolicitudDAO asf = new AtencionSolicitudDAO();\n/* 202 */ if (justificacion != null && justificacion.length() > 0) {\n/* 203 */ asf.crearAtencion(idsol, justificacion, idNav, elUsuario);\n/* */ }\n/* */ \n/* */ \n/* 207 */ if (confiabilidad.equals(\"R\")) {\n/* 208 */ SisUsuariosDTO recipiente = oVarios.getJefeProveedorObj(regSol.getEmpleadoProveedor());\n/* 209 */ if (recipiente != null) {\n/* */ \n/* 211 */ SisUsuariosDAO perf = new SisUsuariosDAO();\n/* 212 */ SisUsuariosDTO regNavegante = perf.cargarRegistro(idNav);\n/* 213 */ SisUsuariosDTO regProveedor = perf.cargarRegistro(regSol.getEmpleadoProveedor());\n/* */ \n/* 215 */ String url = \"\\n\" + ParametrosDTO.getString(\"url.sistema\");\n/* 216 */ url = url + \"LU.po?l=\" + recipiente.getCodigoEmpleado() + \"&p=\" + recipiente.getPassword() + \"&t=m&\";\n/* 217 */ url = url + \"h=VSEnCurso.po?solicitud=\" + regSol.getNumero();\n/* 218 */ String from = regNavegante.getEmail();\n/* 219 */ String to = recipiente.getEmail();\n/* */ \n/* 221 */ String mensaje = oVarios.formatMensaje(\"SolicitudCalificadaNC\", \"\" + regSol.getNumero(), regSol.getNombreServicio(), regProveedor.getNombre(), url);\n/* 222 */ Utilidades.sendMail(ParametrosDTO.getString(\"servidor.correo\"), from, to, regSol.getNombreServicio(), mensaje);\n/* */ } \n/* */ } \n/* */ \n/* 226 */ if (estado.getTipoEstado().trim().equals(\"EF\") && regServicio.getTipoServicio().equals(Integer.toString(2)))\n/* */ {\n/* 228 */ asf.incluirTarea(regSol.getNumero(), regServicio.getTipoServicio(), elUsuario);\n/* */ }\n/* 230 */ asf.close();\n/* */ }", "public SuperRodada(){\n this.pontos_em_disputa=0;\n this.truco=false;\n this.Desafiante=null;\n this.addPontosEmDisputa(2);\n Game game = Game.getGame();\n DonoDoBaralho=(DonoDoBaralho==null)?game.getDupla(1).getJogadorA():this.proximoAJogar(DonoDoBaralho);\n \n }", "private void mostrarDatosInterfaz() {\n\t\tif (this.opcion == CREAR) {\n\t\t\tthis.campoTextoNombreUsuario.setUserData(\"\");\n\t\t\tthis.campoTextoNombreUsuario.setDisable(false);\n\t\t\tthis.campoContrasena.setUserData(\"\");\n\t\t\tthis.campoContrasena.setDisable(false);\n\t\t\tthis.campoCorreo.setUserData(\"\");\n\t\t\tthis.campoCorreo.setDisable(false);\n\t\t\tthis.comboGrupoUsuario.getSelectionModel().select(\"\");\n\t\t\tthis.comboGrupoUsuario.setDisable(false);\n\t\t\tthis.comboStatus.getSelectionModel().select(\"\");\n\t\t\tthis.comboStatus.setDisable(false);\n\t\t\tthis.comboEmpleados.setDisable(false);\n\t\t} else if (this.opcion == EDITAR) {\n\t\t\tthis.campoTextoNombreUsuario.setText(this.usuario.getUsuario());\n\t\t\tthis.campoTextoNombreUsuario.setDisable(true);\n\t\t\tthis.campoContrasena.setText(this.usuario.getContrasena());\n\t\t\tthis.campoContrasena.setDisable(false);\n\t\t\tthis.campoCorreo.setText(this.usuario.getCorreoElectronico());\n\t\t\tthis.campoCorreo.setDisable(false);\n\t\t\tthis.comboGrupoUsuario.setValue(this.usuario.getNombreGrupoUsuario());\n\t\t\tthis.comboGrupoUsuario.setDisable(false);\n\t\t\tthis.comboStatus.setValue(this.usuario.getDescripcionStatus());\n\t\t\tthis.comboStatus.setDisable(false);\n\t\t\tthis.comboEmpleados.setValue(this.usuario.getNombreEmpleado());\n\t\t\tthis.comboEmpleados.setDisable(false);\n\t\t} else if (this.opcion == VER) {\n\t\t\tthis.campoTextoNombreUsuario.setText(this.usuario.getUsuario());\n\t\t\tthis.campoTextoNombreUsuario.setDisable(true);\n\t\t\tthis.campoContrasena.setText(this.usuario.getContrasena());\n\t\t\tthis.campoContrasena.setDisable(true);\n\t\t\tthis.campoCorreo.setText(this.usuario.getCorreoElectronico());\n\t\t\tthis.campoCorreo.setDisable(true);\n\t\t\tthis.comboGrupoUsuario.setValue(this.usuario.getNombreGrupoUsuario());\n\t\t\tthis.comboGrupoUsuario.setDisable(true);\n\t\t\tthis.comboStatus.setValue(this.usuario.getDescripcionStatus());\n\t\t\tthis.comboStatus.setDisable(true);\n\t\t\tthis.comboEmpleados.setValue(this.usuario.getNombreEmpleado());\n\t\t\tthis.comboEmpleados.setDisable(true);\n\t\t}//FIN IF ELSE\n\t}", "private void actualizarFondo() {\n actualizaEstadoMapa();\n if (modificacionFondoBase == true && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE){\n moverFondo();\n } else if (modificacionFondoBase == false && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE ){\n texturaFondoBase= texturaFondo1_1;\n texturaFondoApoyo= texturaFondo1_2;\n moverFondo();\n }\n }", "public abstract void setFecha_inicio(java.lang.String newFecha_inicio);", "@Override\n\tpublic void initMostrar_datos(Object historia_clinica) {\n\t\tif (opciones_via_ingreso.equals(Opciones_via_ingreso.MOSTRAR)) {\n\t\t\tFormularioUtil.deshabilitarComponentes(groupboxEditar, true,\n\t\t\t\t\tnew String[] { \"northEditar\" });\n\t\t\ttoolbarbuttonTipo_historia\n\t\t\t\t\t.setLabel(\"Mostrando Historia de Urgencia\");\n\t\t} else {\n\t\t\ttoolbarbuttonTipo_historia\n\t\t\t\t\t.setLabel(\"Modificando Historia de Urgencia\");\n\t\t}\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void setEjercicio(Ejercicio ejercicio)\r\n/* 150: */ {\r\n/* 151:193 */ this.ejercicio = ejercicio;\r\n/* 152: */ }", "public ConversorVelocidad() {\n //setTemperaturaConvertida(0);\n }", "public void setdat()\n {\n }", "public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }", "void actualizarAsistencia(Asistencia asistencia);", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "@Override\r\n\tpublic void actualizar(int id_evento_vista, Object datos) {\r\n\t\t//Borra lo anterior\r\n \t\r\n \t jFormattedTextFieldPiso.setText(\"\");\r\n jFormattedTextFieldNumero.setText(\"\");\r\n jFormattedTextFieldTipo.setText(\"\");\r\n \r\n\t\t\r\n\t\tif(id_evento_vista == EventoVista.ALTA_HABITACION_EXITO){\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Se ha creado la Habitacion con exito\", \"Nuevo Habitacion\", JOptionPane.INFORMATION_MESSAGE);\t\t\r\n\t\t}\t\r\n\t\r\n\t\telse if (id_evento_vista == EventoVista.ALTA_HABITACION_FALLO){\r\n\t\t\tJOptionPane.showMessageDialog(null, \"ERROR!! Ha ocurrido un error con la BD\", \"Nuevo Habitacion\", JOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\t\t\r\n\t}", "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "public void setContrasena(String contrasena) {this.contrasena = contrasena;}", "public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}", "@Test\r\n public void testSetAnalizar() {\r\n System.out.println(\"setAnalizar\");\r\n String analizar = \"3+(\";\r\n RevisorParentesis instance = null;\r\n instance.setAnalizar(analizar);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "private void limpiarDatos() {\n\t\t\n\t}", "@Test\r\n public void testSetMiservicio() {\r\n System.out.println(\"setMiservicio\");\r\n Servicio miservicio = new Servicio();\r\n miservicio.descripcion=\"gestion de vigilancia\";\r\n Servicio_CentroEcu instance = new Servicio_CentroEcu();\r\n instance.setMiservicio(miservicio);\r\n assertEquals(instance.getMiservicio().descripcion, \"gestion de vigilancia\");\r\n }", "private void limpiarValores(){\n\t\tpcodcia = \"\";\n\t\tcedula = \"\";\n\t\tcoduser = \"\";\n\t\tcluser = \"\";\n\t\tmail = \"\";\n\t\taudit = \"\";\n\t\tnbr = \"\";\n\t\trol = \"\";\n\t}", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "public java.lang.String getHora_hasta();", "private void inicializarVariablesControlRonda() {\n\t\ttieneAs = new int[4];\n\t\tfor(int i=0;i<tieneAs.length;i++) {\n\t\t\ttieneAs[i]=0;\n\t\t}\n\t\tidJugadores = new String[3];\n\t\tvalorManos = new int[4];\n\t\t\n\t\tmazo = new Baraja();\n\t\tCarta carta;\n\t\tganador = new ArrayList<String>();\n\t\tapuestasJugadores = new int[3];\n\t\tmanoJugador1 = new ArrayList<Carta>();\n\t\tmanoJugador2 = new ArrayList<Carta>();\n\t\tmanoJugador3 = new ArrayList<Carta>();\n\t\tmanoDealer = new ArrayList<Carta>();\n\t\tparejaNombreGanancia = new ArrayList<Pair<String,Integer>>(); \n\t\t\n\t\t// gestiona las tres manos en un solo objeto para facilitar el manejo del hilo\n\t\tmanosJugadores = new ArrayList<ArrayList<Carta>>(4);\n\t\tmanosJugadores.add(manoJugador1);\n\t\tmanosJugadores.add(manoJugador2);\n\t\tmanosJugadores.add(manoJugador3);\n\t\tmanosJugadores.add(manoDealer);\n\t\t// reparto inicial jugadores 1 y 2\n\t\tfor (int i = 1; i <= 2; i++) {\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador1.add(carta);\n\t\t\tcalcularValorMano(carta, 0);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador2.add(carta);\n\t\t\tcalcularValorMano(carta, 1);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador3.add(carta);\n\t\t\tcalcularValorMano(carta, 2);\n\t\t}\n\t\t// Carta inicial Dealer\n\t\tcarta = mazo.getCarta();\n\t\tmanoDealer.add(carta);\n\t\tcalcularValorMano(carta, 3);\n\n\t\t\n\t}", "public int getHoras() {\n return horas;\n }", "public void Tarifa(String tipoTarifa){\n Tarifa = tipoTarifa;\n Regular = \"R\";\n Comercial = \"C\";\n\n }", "public void Nodo(){\r\n this.valor = \"\";\r\n this.siguiente = null;\r\n }", "private void mostrarEmenta (){\n }", "@Override\r\n\tpublic void funcionalidad(boolean aceptado) {\r\n\t\tif (aceptado) {\r\n\t\t\tbtn_guardar.removeAll();\r\n\t\t\tbtn_cancelar.removeAll();\r\n\t\t\tbtn_cancelar.setVisible(false);\r\n\t\t\tbtn_guardar.setVisible(false);\r\n\t\t\tbtnEliminar.setVisible(true);\r\n\t\t\tbutton_Editar.setVisible(true);\r\n\t\t\tbtnRetirar.setVisible(true);\r\n\t\t\tbtn_crear.setVisible(true);\r\n\r\n\t\t\tif (validarDatos()) {\r\n\t\t\t\t// Actualizar miOferta\r\n\t\t\t\tmiOferta.setDescripcion(txArea_descripcion.getText());\r\n\t\t\t\tmiOferta.setLugar(txField_lugar.getText());\r\n\t\t\t\tmiOferta.setExperiencia(Float.parseFloat(txField_experiencia.getText()));\r\n\t\t\t\tmiOferta.setContrato(((Contrato) combo_contrato.getSelectedItem()));\r\n\t\t\t\tmiOferta.setSalarioMax(Integer.parseInt(txField_sueldoMax.getText()));\r\n\t\t\t\tmiOferta.setSalarioMin(Integer.parseInt(txField_sueldoMin.getText()));\r\n\t\t\t\tmiOferta.setAspectosImprescindibles(txArea_aspectosImpres.getText());\r\n\t\t\t\tmiOferta.setAspectosAValorar(txArea_aspectosValorar.getText());\r\n\t\t\t\tmiOferta.setConocimientos(pa_conocimientos.getConocimientosAnadidos());\r\n\t\t\t}\r\n\r\n\t\t\ttry {\r\n\t\t\t\tUtilidadesBD.actualizarOferta(miOferta);\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void validerSaisie();", "public void setHorariosAtencion (List<HorarioAtencionEntity> pHorariosAtencion)\r\n {\r\n this.horariosAtencion = pHorariosAtencion;\r\n }", "public Sesiones() {\n\t\tentradasVendidas = 0;\n\t}", "void actualizarNotaIngresoPorHacer(Integer codigoCompania, Long codigoNotaIngreso, String estadoPorHacer, String observacion, String codigoUsuario)throws SICException;", "public void setNombre(String nombre)\r\n/* 65: */ {\r\n/* 66: 76 */ this.nombre = nombre;\r\n/* 67: */ }", "public void codigo(String cadena, String codigo,int codigos,Reserva2 reserva,JDateChooser dateFechaIda,JDateChooser dateFechaVuelta,JTextField DineroFaltante) {\n\t\tcadena=codigo.split(\",\")[1];\n\t\tubicacion=codigo.split(\",\")[5];\n\t\tnombre=codigo.split(\",\")[3];\n\t\tprecio=codigo.split(\",\")[8];\n\t\tcodigos=Integer.parseInt(cadena);\n\t\tSystem.out.println(\"hola\");\n\t\tSystem.out.println(Modelo1.contador);\n\t\t\n\t\tif(Modelo1.contador==1) {\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigohotel(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\t\n\t\t}\n\t\telse if(Modelo1.contador==2) {\n\t\t\t\n\t\t\totroprecio=Double.parseDouble(precio);\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigocasa(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\tpreciofinal=metodos.preciototal(dateFechaIda, dateFechaVuelta, otroprecio);\n\t\t\treserva.setPrecio(preciofinal);\n\t\t\tSystem.out.println(reserva.getUbicacion());\n\t\t\tSystem.out.println(reserva.getCodigocasa());\n\t\t\tSystem.out.println(reserva.getNombreAlojamiento());\n\t\t\tSystem.out.println(reserva.getPrecio());\n\t\t\tDineroFaltante.setText(reserva.getPrecio()+\" \\u20ac\");\n\t\t\tModelo1.total_faltante = reserva.getPrecio();\n\t\t\t\n\t\t}\n\t\telse if(Modelo1.contador==3) {\n\t\t\t\n\t\t\totroprecio=Double.parseDouble(precio);\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigoapatamento(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\tpreciofinal=metodos.preciototal(dateFechaIda, dateFechaVuelta, otroprecio);\n\t\t\treserva.setPrecio(preciofinal);\n\t\t\tSystem.out.println(reserva.getUbicacion());\n\t\t\tSystem.out.println(reserva.getCodigoapatamento());\n\t\t\tSystem.out.println(reserva.getNombreAlojamiento());\n\t\t\tSystem.out.println(reserva.getPrecio());\n\t\t\tDineroFaltante.setText(reserva.getPrecio()+\" \\u20ac\");\n\t\t\tModelo1.total_faltante = reserva.getPrecio();\n\t\t}\n\t\t\n\t}", "public String getPatronAutorizacion()\r\n/* 204: */ {\r\n/* 205:349 */ this.patronAutorizacion = \"\";\r\n/* 206:350 */ if (this.indicadorFacturaElectronica) {\r\n/* 207:351 */ for (int i = 0; i < 37; i++) {\r\n/* 208:352 */ this.patronAutorizacion += \"9\";\r\n/* 209: */ }\r\n/* 210: */ } else {\r\n/* 211:355 */ for (int i = 0; i < 10; i++) {\r\n/* 212:356 */ this.patronAutorizacion += \"9\";\r\n/* 213: */ }\r\n/* 214: */ }\r\n/* 215:359 */ return this.patronAutorizacion;\r\n/* 216: */ }", "void setTitolo(String titolo);", "public void mostrarCompra() {\n }", "public void setHorInicio(java.lang.String horInicio) {\n this.horInicio = horInicio;\n }", "void realizarSolicitud(Cliente cliente);", "@Override\r\n\tpublic void atualizar(Aluno pAluno) {\r\n\t}", "private void datosVehiculo(boolean esta_en_revista) {\n\t\ttry{\n\t\t\t String Sjson= Utils.doHttpConnection(\"http://datos.labplc.mx/movilidad/vehiculos/\"+placa+\".json\");\n\t\t\t JSONObject json= (JSONObject) new JSONTokener(Sjson).nextValue();\n\t\t\t JSONObject json2 = json.getJSONObject(\"consulta\");\n\t\t\t JSONObject jsonResponse = new JSONObject(json2.toString());\n\t\t\t JSONObject sys = jsonResponse.getJSONObject(\"tenencias\");\n\t\t\t \n\t\t\t if(sys.getString(\"tieneadeudos\").toString().equals(\"0\")){\n\t\t\t \tautoBean.setDescripcion_tenencia(getResources().getString(R.string.sin_adeudo_tenencia));\n\t\t\t \tautoBean.setImagen_teencia(imagen_verde);\n\t\t\t }else{\n\t\t\t \tautoBean.setDescripcion_tenencia(getResources().getString(R.string.con_adeudo_tenencia));\n\t\t\t \tautoBean.setImagen_teencia(imagen_rojo);\n\t\t\t \tPUNTOS_APP-=PUNTOS_TENENCIA;\n\t\t\t }\n\t\t\t \n\t\t\t JSONArray cast = jsonResponse.getJSONArray(\"infracciones\");\n\t\t\t String situacion;\n\t\t\t boolean hasInfraccion=false;\n\t\t\t for (int i=0; i<cast.length(); i++) {\n\t\t\t \tJSONObject oneObject = cast.getJSONObject(i);\n\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t situacion = (String) oneObject.getString(\"situacion\");\n\t\t\t\t\t\t\t if(!situacion.equals(\"Pagada\")){\n\t\t\t\t\t\t\t\t hasInfraccion=true;\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t } catch (JSONException e) { \n\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t }\n\t\t\t }\n\t\t\t if(hasInfraccion){\n\t\t\t \t autoBean.setDescripcion_infracciones(getResources().getString(R.string.tiene_infraccion));\n\t\t\t\t \tautoBean.setImagen_infraccones(imagen_rojo);\n\t\t\t\t \tPUNTOS_APP-=PUNTOS_INFRACCIONES;\n\t\t\t }else{\n\t\t\t \t autoBean.setDescripcion_infracciones(getResources().getString(R.string.no_tiene_infraccion));\n\t\t\t\t autoBean.setImagen_infraccones(imagen_verde);\n\t\t\t }\n\t\t\t JSONArray cast2 = jsonResponse.getJSONArray(\"verificaciones\");\n\t\t\t if(cast2.length()==0){\n\t\t\t \t autoBean.setDescripcion_verificacion(getResources().getString(R.string.no_tiene_verificaciones));\n\t\t\t\t\t autoBean.setImagen_verificacion(imagen_rojo);\n\t\t\t\t\t PUNTOS_APP-=PUNTOS_VERIFICACION;\n\t\t\t }\n\t\t\t\t\t Date lm = new Date();\n\t\t\t\t\t String lasmod = new SimpleDateFormat(\"yyyy-MM-dd\").format(lm);\n\t\t\t\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\tBoolean yaValide=true;\n\t\t\t\t for (int i=0; i<cast2.length(); i++) {\n\t\t\t\t \tJSONObject oneObject = cast2.getJSONObject(i);\n\t\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t\t\tif(!esta_en_revista&&yaValide){\n\t\t\t\t\t\t\t\t\t\t autoBean.setMarca((String) oneObject.getString(\"marca\"));\n\t\t\t\t\t\t\t\t\t\t autoBean.setSubmarca((String) oneObject.getString(\"submarca\"));\n\t\t\t\t\t\t\t\t\t\t autoBean.setAnio((String) oneObject.getString(\"modelo\"));\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_revista(getResources().getString(R.string.sin_revista));\n\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_revista(imagen_rojo);\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t Calendar calendar = Calendar.getInstance();\n\t\t\t\t\t\t\t\t\t\t int thisYear = calendar.get(Calendar.YEAR);\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t if(thisYear-Integer.parseInt(autoBean.getAnio())<=10){\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_vehiculo(getResources().getString(R.string.carro_nuevo)+\" \"+getResources().getString(R.string.Anio)+\" \"+autoBean.getAnio());\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_vehiculo(imagen_verde);\n\t\t\t\t\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_vehiculo(getResources().getString(R.string.carro_viejo)+\" \"+getResources().getString(R.string.Anio)+\" \"+autoBean.getAnio());\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_vehiculo(imagen_rojo);\n\t\t\t\t\t\t\t\t\t\t\t PUNTOS_APP-=PUNTOS_ANIO_VEHICULO;\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t yaValide=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t Date date1 = formatter.parse(lasmod);\n\t\t\t\t\t\t\t\t Date date2 = formatter.parse(oneObject.getString(\"vigencia\").toString());\n\t\t\t\t\t\t\t\t int comparison = date2.compareTo(date1);\n\t\t\t\t\t\t\t\t if((comparison==1||comparison==0)&&!oneObject.getString(\"resultado\").toString().equals(\"RECHAZO\")){\n\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_verificacion(getResources().getString(R.string.tiene_verificaciones)+\" \"+oneObject.getString(\"resultado\").toString());\n\t\t\t\t\t\t\t\t\t autoBean.setImagen_verificacion(imagen_verde); \n\t\t\t\t\t\t\t\t\t hasVerificacion=true;\n\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_verificacion(getResources().getString(R.string.no_tiene_verificaciones));\n\t\t\t\t\t\t\t\t\t autoBean.setImagen_verificacion(imagen_rojo);\n\t\t\t\t\t\t\t\t\t hasVerificacion=false;\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t } catch (JSONException e) { \n\t\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t\t } catch (ParseException e) {\n\t\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t if(!hasVerificacion){\n\t\t\t\t \t PUNTOS_APP-=PUNTOS_VERIFICACION;\n\t\t\t\t }\n\t\t\t \n\t\t\t}catch(JSONException e){\n\t\t\t\tDatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t}\n\t\t\n\t}", "public Date getFechaHasta()\r\n/* 174: */ {\r\n/* 175:302 */ return this.fechaHasta;\r\n/* 176: */ }", "public void resetMostrarVuelta()\r\n {\r\n this.mostrarVuelta = null;\r\n }", "@Override\n public void set(Voluntario a) {\n if (a==null) a=new Voluntario();\n \n txtNome.setText(a.getNome());\n DateFormat df = new SimpleDateFormat(\"dd/mm/yyyy\");\n txtDataN.setText(df.format(a.getDataNascimento().getTime()));\n txtNacionalidade.setText(a.getNacionalidadeIndiv());\n txtProfissao.setText(a.getProfissao());\n txtMorada.setText(a.getMorada());\n txtCodPostal.setText(a.getCodigoPostal());\n txtLocalidade.setText(a.getLocalidade());\n txtTelefone.setText(a.getTelefone());\n txtTelemovel.setText(a.getTelemovel());\n txtEmail.setText(a.getEmail());\n txtNif.setText(a.getNif()+\"\");\n txtHabilit.setText(a.getHabilitacoes());\n txtConhecimentosL.setText(a.getConhecimentosLing());\n txtFormComp.setText(a.getFormacaoComp());\n txtExpV.setText(a.getExperienciaVolunt());\n txtConhecimentosC.setText(a.getConhecimentosConstr());\n txtDispon.setText(a.getDisponibilidade());\n txtComoConheceu.setText(a.getComoConheceu());\n checkReceberInfo.setSelected(a.getReceberInfo());\n checkIsParceiro.setSelected(a.isParceiro()); \n \n voluntario = a;\n }", "public void setNombre(String nombre) {this.nombre = nombre;}", "private void setPrecioVentaBaterias() throws Exception {\n\t\tRegisterDomain rr = RegisterDomain.getInstance();\n\t\tlong idListaPrecio = this.selectedDetalle.getListaPrecio().getId();\n\t\tString codArticulo = this.selectedDetalle.getArticulo().getCodigoInterno();\t\t\n\t\tArticuloListaPrecioDetalle lista = rr.getListaPrecioDetalle(idListaPrecio, codArticulo);\n\t\tString formula = this.selectedDetalle.getListaPrecio().getFormula();\n\t\tif (lista != null && formula == null) {\n\t\t\tthis.selectedDetalle.setPrecioGs(this.selectedCondicion.isCondicionContado()? lista.getPrecioGs_contado() : lista.getPrecioGs_credito());\n\t\t} else {\n\t\t\tdouble costo = this.selectedDetalle.getArticulo().getCostoGs();\n\t\t\tint margen = this.selectedDetalle.getListaPrecio().getMargen();\n\t\t\tdouble precio = ControlArticuloCosto.getPrecioVenta(costo, margen);\n\t\t\t\n\t\t\t// formula lista precio mayorista..\n\t\t\tif (idListaPrecio == 2 && formula != null) {\n\t\t\t\tArticuloListaPrecio distribuidor = (ArticuloListaPrecio) rr.getObject(ArticuloListaPrecio.class.getName(), 1);\n\t\t\t\tArticuloListaPrecioDetalle precioDet = rr.getListaPrecioDetalle(distribuidor.getId(), codArticulo);\n\t\t\t\tif (precioDet != null) {\n\t\t\t\t\tdouble cont = precioDet.getPrecioGs_contado();\n\t\t\t\t\tdouble cred = precioDet.getPrecioGs_credito();\n\t\t\t\t\tdouble formulaCont = cont + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_contado(), 10);\n\t\t\t\t\tdouble formulaCred = cred + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_credito(), 10);\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(this.selectedCondicion.isCondicionContado()? formulaCont : formulaCred);\n\t\t\t\t} else {\n\t\t\t\t\tmargen = distribuidor.getMargen();\n\t\t\t\t\tdouble precioGs = ControlArticuloCosto.getPrecioVenta(costo, margen);\n\t\t\t\t\tdouble formula_ = precioGs + Utiles.obtenerValorDelPorcentaje(precioGs, 10);\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(formula_);\n\t\t\t\t}\n\n\t\t\t// formula lista precio minorista..\n\t\t\t} else if (idListaPrecio == 3 && formula != null) {\n\t\t\t\tArticuloListaPrecio distribuidor = (ArticuloListaPrecio) rr.getObject(ArticuloListaPrecio.class.getName(), 1);\n\t\t\t\tArticuloListaPrecioDetalle precioDet = rr.getListaPrecioDetalle(distribuidor.getId(), codArticulo);\n\t\t\t\tif (precioDet != null) {\n\t\t\t\t\tdouble cont = precioDet.getPrecioGs_contado() + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_contado(), 10);\n\t\t\t\t\tdouble cred = precioDet.getPrecioGs_credito() + Utiles.obtenerValorDelPorcentaje(precioDet.getPrecioGs_credito(), 10);\n\t\t\t\t\tdouble formulaCont = (cont * 1.15) / 0.8;\n\t\t\t\t\tdouble formulaCred = (cred * 1.15) / 0.8;\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(this.selectedCondicion.isCondicionContado()? formulaCont : formulaCred);\n\t\t\t\t} else {\n\t\t\t\t\tmargen = distribuidor.getMargen();\n\t\t\t\t\tdouble precioGs = ControlArticuloCosto.getPrecioVenta(costo, margen);\n\t\t\t\t\tdouble formula_ = ((precioGs + Utiles.obtenerValorDelPorcentaje(precioGs, 10)) * 1.15) / 0.8;\n\t\t\t\t\tthis.selectedDetalle.setPrecioGs(formula_);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tthis.selectedDetalle.setPrecioGs(precio);\n\t\t\t}\t\t\n\t\t}\n\t}", "private void llenarEntidadConLosDatosDeLosControles() {\n clienteActual.setNombre(txtNombre.getText());\n clienteActual.setApellido(txtApellido.getText());\n clienteActual.setDui(txtDui.getText());\n //clienteActual.setNumero(txtNumero.getText());\n //clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n }", "private void initValues() {\n this.closeConnection();\n this.agregarRol = false;\n rutRoles = null; rutRoles = new Vector(); rutRoles.clear();\n deudasContribuyente = null; deudasContribuyente = new Vector(); deudasContribuyente.clear();\n rutRolesConsultados = null; rutRolesConsultados = new HashMap(); rutRolesConsultados.clear();\n param = null; param = new HashMap(); param.clear();\n\n demandasContribuyente = null; demandasContribuyente = new Vector(); demandasContribuyente.clear();\n demandaSeleccionada=null; demandaSeleccionada= new Long(-1);\n\n\n this.conveniosMasivo = null;\n\n porcentajeCuotaContado = null; porcentajeCuotaContado = new Long(0);\n porcentajeCondonacion = null; porcentajeCondonacion = new Long(0);\n pagoContado = null; pagoContado = new Long(0);\n numeroCuotas = null; numeroCuotas = new Long(0);\n totalPagar = null; totalPagar = new Long(0);\n totalPagarConCondonacion = null; totalPagarConCondonacion = new Long(0);\n arregloDeudas=\"\";\n tipoPago=1;\n estadoCobranza=\"T\";\n codigoPropuesta = new Long(0);\n codigoFuncionario = new Long(0);\n idTesoreria = new Long(0);\n liquidada = false;\n }", "public void atualizar() {\n System.out.println(\"Metodo atualizar chamado!\");\n setR1(0);\n setR2(0);\n setR3(0);\n setN(0);\n\n //context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Atualizado!\", \"\"));\n }", "@Override public void realizarCobro(Persona persona){\n\tpersona.cuenta.retiro(120);\n }" ]
[ "0.6807989", "0.65826863", "0.6473995", "0.63609296", "0.63605845", "0.63457006", "0.634348", "0.6342363", "0.6291898", "0.62556285", "0.6250112", "0.6224845", "0.6201879", "0.6170074", "0.616568", "0.615917", "0.61368114", "0.61269057", "0.6110095", "0.6085609", "0.6001745", "0.59998447", "0.5999263", "0.59849477", "0.5969288", "0.59670955", "0.5960641", "0.5946945", "0.59369844", "0.5929666", "0.59293973", "0.59194976", "0.591934", "0.59166235", "0.5913023", "0.5901548", "0.58883524", "0.5879563", "0.58682793", "0.5863436", "0.5862787", "0.58568805", "0.5852097", "0.58439684", "0.58366525", "0.5834765", "0.5831632", "0.5821211", "0.58179504", "0.5815203", "0.5812059", "0.57963264", "0.5789458", "0.57847446", "0.57801425", "0.578003", "0.57704085", "0.57664895", "0.576592", "0.5760886", "0.5750982", "0.5746783", "0.572311", "0.57225007", "0.5721203", "0.572103", "0.571717", "0.57169616", "0.57099235", "0.5705485", "0.5703147", "0.56920147", "0.56779164", "0.5677494", "0.5672896", "0.5667594", "0.5664644", "0.56646395", "0.5661141", "0.5660822", "0.5658951", "0.5658619", "0.56479686", "0.56453526", "0.5642935", "0.5639056", "0.5626332", "0.5621325", "0.5621303", "0.5618453", "0.56184465", "0.56104934", "0.5601313", "0.56000626", "0.55983174", "0.55952334", "0.5592535", "0.5586286", "0.55862105", "0.55852544" ]
0.7473859
0
Check if it is possible to go to position `(x, y)` from the current position. The function returns false if the cell has a value 0, or it is already visited.
private static boolean isSafe(int mat[][], int visited[][], int x, int y) { if (mat[x][y] == 0 || visited[x][y] != 0) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canMoveTo(int x, int y) {\n for (Cell c : this.board) {\n if (c.x == x && c.y == y) {\n return !c.isFlooded;\n }\n }\n return false;\n }", "public boolean isReachable(int x, int y){\n return (x >= 0 && x < maze.length && y >= 0 && y < maze[0].length && maze[x][y] != \"#\" );\n\n }", "private boolean isCellVisited(Cell cell) {\n\t\tboolean result;\n\t\t// Return true to skip it if cell is null\n\t\tif (!isIn(cell))\n\t\t\treturn true;\n\n\t\tint r = cell.r;\n\t\tint c = cell.c;\n\t\tif (maze.type == HEX) {\n\t\t\tc = c - (r + 1) / 2;\n\t\t}\n\t\ttry {\n\t\t\tresult = visited[r][c];\n\t\t} catch (Exception e) {\n\t\t\tresult = true;\n\t\t}\n\n\t\treturn result;\n\t}", "public boolean isCellNavigable(int row, int col) {\n\t\treturn (cells[row][col] >= 0);\n\t}", "boolean isCellAlive(int x, int y);", "public boolean isPossible(int x, int y, int value)\n {\n return _cells[x][y].isValuePossible(value);\n }", "private boolean canMoveDown()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = grid.length-2; row >=0; row-- ) {\n // looks at tile directly below the current tile\n int compare = row + 1;\n if ( grid[row][column] != 0 ) {\n if ( grid[compare][column] == 0 || grid[row][column] ==\n grid[compare][column] ) {\n return true;\n }\n }\n }\n } \n return false;\n }", "private static boolean isMoveValid( int x, int y ){\n int path[] = new int[8];\n for( int distance = 1; distance < 8; distance ++ ){\n checkPath( path, 0, x + distance, y, distance );\n checkPath( path, 1, x + distance, y + distance, distance );\n checkPath( path, 2, x, y + distance, distance );\n checkPath( path, 3, x - distance, y, distance );\n checkPath( path, 4, x - distance, y - distance, distance );\n checkPath( path, 5, x, y - distance, distance );\n checkPath( path, 6, x + distance, y - distance, distance );\n checkPath( path, 7, x - distance, y + distance, distance );\n }\n for( int i = 0; i < 8; i++ ){\n if( path[ i ] > 1 ){\n return true;\n }\n }\n return false;\n }", "public boolean isMoveLegal(int x, int y) {\n\t\tif (rowSize <= x || colSize <= y || x < 0 || y < 0) {\r\n\t\t\t// System.out.print(\"Position (\" + (x + 1) + \", \" + (y + 1) + \") is\r\n\t\t\t// out of range!\\n\");\r\n\t\t\treturn false;\r\n\t\t} else if (!(matrix[x][y] == 0)) {\r\n\t\t\t// System.out.print(\"Position (\" + (x + 1) + \", \" + (y + 1) + \") has\r\n\t\t\t// been occupied!\\n\");\r\n\t\t\treturn false;\r\n\t\t} else\r\n\t\t\treturn true;\r\n\t}", "@Override\n public boolean moveIsPossible(Coordinate coord) {\n if(gameState.getTurnState().hasMoved()){\n return false;\n }\n Field field = gameState.getField();\n if(!field.getField().containsKey(coord)){\n return false;\n }\n Cell currentPosition = gameState.getTurnState().getCurrentPlayer()\n .getPosition();\n Cell destination = field.getCell(coord);\n return field.isReachable(currentPosition, destination, 3);\n }", "private int checkCellClick(int xPos, int yPos) {\r\n\r\n\t\tfor (int i = 0; i < MAX_CELL_COUNT; ++i) {\r\n\r\n\t\t\tint x1 = ((width - SIZE_X) / 2) + 16;\r\n\t\t\tint y1 = ((height - SIZE_Y) / 2) + 16 + (i * CELL_SIZE_Y);\r\n\t\t\tint x2 = x1 + (SIZE_X - 42);\r\n\t\t\tint y2 = y1 + CELL_SIZE_Y;\r\n\r\n\t\t\tif (xPos >= x1 && xPos <= x2) {\r\n\t\t\t\tif (yPos >= y1 && yPos <= y2) {\r\n\t\t\t\t\treturn i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn -1;\r\n\t}", "private static boolean checkCellsNotNull(\n \t\t\tde.fhhannover.inform.hnefatafl.vorgaben.Move currentMove){\n \t\t\t\tif (currentMove.getFromCell() == null ||\n \t\t\t\t\tcurrentMove.getToCell() == null){\n \t\t\t\t\t\treturn false;\n \t\t\t\t}\n \t\t\t\treturn true;\t\t\n \t}", "private boolean canMoveUp()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = 1; row < grid.length; row++ ) {\n // looks at tile directly above the current tile\n int compare = row-1;\n if ( grid[row][column] != 0 ) {\n if ( grid[compare][column] == 0 || grid[row][column] ==\n grid[compare][column] ) {\n return true;\n }\n }\n }\n } \n return false;\n }", "private boolean checkOrTurn(int row,int column, ItemState itemStateCurrentPlayer, int x, int y) {\n\t\t if(column==Settings.nbrRowsColumns||column<0){\n\t\t\t return false; //Get the hell out\n\t\t }\n\t\t if(row==Settings.nbrRowsColumns||row<0){ \n\t\t\t return false; //Get the hell out\n\t\t }\n\t\t if (gameStateInt[row][column]==Helpers.getOpponentPlayerCorrespondingInt(itemStateCurrentPlayer)){ //Still another color\n\t\t\t if(checkOrTurn(row+y,column+x, itemStateCurrentPlayer, x, y)){ //continue check next\n\t\t\t\t\t changed.add(new Action(row,column));\n\t\t\t\t return true;\n\t\t\t }else{\n\t\t\t\t return false;\n\t\t\t }\n\t\t }else if (gameStateInt[row][column]==Helpers.getPlayerCorrespondingInt(itemStateCurrentPlayer)){\n\t\t\t return true; //found same color\n\t\t }else{\n\t\t\t return false; //found grass\n\t\t }\n\t }", "private boolean hasPossibleMove()\n {\n for(int i=0; i<FieldSize; ++i)\n {\n for(int j=1; j<FieldSize; ++j)\n {\n if(field[i][j] == field[i][j-1])\n return true;\n }\n }\n for(int j=0; j<FieldSize; ++j)\n {\n for(int i=1; i<FieldSize; ++i)\n {\n if(field[i][j] == field[i-1][j])\n return true;\n }\n }\n return false;\n }", "public boolean isCellAlive(int x, int y) {\n return this.startGeneration[x][y];\n }", "private static boolean solution(int[][] arr, int[][] mazeTravel, int row, int column) {\n\n int size = arr.length;\n\n if (row < 0 || row >= size || column < 0 || column >= size || arr[row][column] == 0 || mazeTravel[row][column] == 1 ) {\n return false;\n }\n //Mark position as travelled\n mazeTravel[row][column] = 1;\n //Check if reached destination\n if(row== arr.length-1&&column== arr.length-1){\n return true;\n }\n //Top direction\n if (solution(arr, mazeTravel, row - 1, column) ) {\n return true;\n }\n //Right direction\n if (solution(arr, mazeTravel, row, column + 1)) {\n return true;\n }\n\n //Left direction\n if (solution(arr, mazeTravel, row, column - 1)) {\n return true;\n }\n\n //Down direction\n if (solution(arr, mazeTravel, row + 1, column)) {\n return true;\n }\n //Above 4 Conditions not satisfied\n return false;\n }", "private boolean nextCell(int x, int y)\n\t{\n\t\tint nextX = x;\n\t\tint nextY = y;\n\t\tint[] sudokuValuesSuperSet = {1,2,3,4,5,6,7,8,9};\n\t\tRandom r = new Random();\n\t\tint tmp = 0;\n\t\tint current = 0;\n\t\tint valueLength = sudokuValuesSuperSet.length;\n\n\t\tfor(int i=valueLength-1;i>0;i--)\n\t\t{\n\t\t\tcurrent = r.nextInt(i);\n\t\t\ttmp = sudokuValuesSuperSet[current];\n\t\t\tsudokuValuesSuperSet[current] = sudokuValuesSuperSet[i];\n\t\t\tsudokuValuesSuperSet[i] = tmp;\n\t\t}\n\n\t\tfor(int i=0;i<sudokuValuesSuperSet.length;i++)\n\t\t{\n\t\t\tif(isValuePlacementValid(x, y, sudokuValuesSuperSet[i]))\n\t\t\t{\n\t\t\t\tsudokuMatrix[x][y] = sudokuValuesSuperSet[i];\n\t\t\t\tif(x == 8)\n\t\t\t\t{\n\t\t\t\t\tif(y == 8)\n\t\t\t\t\t\treturn true;//it means we have completed all the cells\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tnextX = 0;\n\t\t\t\t\t\tnextY = y + 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tnextX = x + 1;\n\t\t\t\t}\n\t\t\t\tif(nextCell(nextX, nextY))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tsudokuMatrix[x][y] = 0;\n\t\treturn false;\n\t}", "private boolean isNeighborAt(int x, int y, Assignment assignment){\n\t\tif(x >= 0 && x < this.dimension && y >= 0 && y < this.dimension)\n\t\t\tif(assignment.holds(this.board[x][y]))\n\t\t\t\treturn true;\n\n\t\treturn false;\n\t}", "@Override\n public boolean hasPossibleCapture(final Coordinate destination) {\n\n Coordinate coordinate = this.getCoordinate();\n int row = coordinate.getRow();\n int col = coordinate.getCol();\n\n //\n //\n ////\n int tempRow1 = row - 2;\n int tempCol1 = col - 1;\n Coordinate tempCoordinate1 = new Coordinate(tempRow1, tempCol1);\n if (destination.equals(tempCoordinate1)) {\n return true;\n }\n\n ////\n //\n //\n int tempRow2 = row + 2;\n int tempCol2 = col - 1;\n Coordinate tempCoordinate2 = new Coordinate(tempRow2, tempCol2);\n if (destination.equals(tempCoordinate2)) {\n return true;\n }\n\n //////\n //\n int tempRow3 = row - 1;\n int tempCol3 = col - 2;\n Coordinate tempCoordinate3 = new Coordinate(tempRow3, tempCol3);\n if (destination.equals(tempCoordinate3)) {\n return true;\n }\n\n ///////\n //\n int tempRow4 = row - 1;\n int tempCol4 = col + 2;\n Coordinate tempCoordinate4 = new Coordinate(tempRow4, tempCol4);\n if (destination.equals(tempCoordinate4)) {\n return true;\n }\n\n ////\n //\n //\n int tempRow5 = row + 2;\n int tempCol5 = col + 1;\n Coordinate tempCoordinate5 = new Coordinate(tempRow5, tempCol5);\n if (destination.equals(tempCoordinate5)) {\n return true;\n }\n\n //\n //\n ////\n int tempRow6 = row - 2;\n int tempCol6 = col + 1;\n Coordinate tempCoordinate6 = new Coordinate(tempRow6, tempCol6);\n if (destination.equals(tempCoordinate6)) {\n return true;\n }\n\n //\n //////\n int tempRow7 = row + 1;\n int tempCol7 = col - 2;\n Coordinate tempCoordinate7 = new Coordinate(tempRow7, tempCol7);\n if (destination.equals(tempCoordinate7)) {\n return true;\n }\n\n //\n //////\n int tempRow8 = row + 1;\n int tempCol8 = col + 2;\n Coordinate tempCoordinate8 = new Coordinate(tempRow8, tempCol8);\n return destination.equals(tempCoordinate8);\n }", "public boolean valid(int x, int y) {\n return board[x][y] == 0;\n }", "@Override\n\tpublic boolean canMoveTo(Integer row, Integer col, ChessBoard board) {\n\t\tif((0<=(this.row - row)<=1 && 0<=(this.col - col)<=1) && (1==(this.row - row) || (this.col - col)==1));\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t\tfor(int i=0; i<=1 i++) {\n\t\t\tfor(int j=0, j<=1, j++) {\n\t\t\t\tif((i=0) && (j=0))\n\t\t\t\t\t\tcontinue;\n\t\t\t\tboard.pieceAt(row, col);\n\t\t\t}\n\t\t}\n\t\tboard.pieceAt(row, col)\n\t\t\n\t\telse if()\n\t}\n\n\t@Override\n\tpublic void moveTo(Integer row, Integer col) {\n\t\t\n\t\t\n\t}\n\n\t@Override\n\tpublic PieceType getType() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}\n}", "@Override\r\n\tpublic boolean possibleMove(int x, int y) {\n\t\tif (this.sameColor(Board.getPiece(x, y)) == true) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (Math.abs(this.getY() - y) == 2 && Math.abs(this.getX() - x) == 1\r\n\t\t\t\t|| Math.abs(this.getY() - y) == 1 && Math.abs(this.getX() - x) == 2) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "public Boolean isValidMovement(int x, int y){\n\t\tif ( x < 0 || x > 7 || y < 0 || y > 7 \n\t\t\t\t|| this.board.getPiece(x, y).getColor().equalsIgnoreCase(this.color))\n\t\t\treturn false;\n\t\t\n\t\tint distX = Math.abs(this.posX - x);\n\t\tint distY = Math.abs(this.posY - y);\n\t\t\n\t\tif (distX != distY)\n\t\t\treturn false;\n\t\t\n\t\tif (this.posX > x && this.posY > y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX - i, this.posY - i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (this.posX < x && this.posY > y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX + i, this.posY - i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (this.posX > x && this.posY < y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX - i, this.posY + i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (this.posX < x && this.posY < y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX + i, this.posY + i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public boolean isNeighbor(Cell cell){\n \tif((Math.pow(x - cell.getX(), 2) + (Math.pow(y - cell.getY(), 2)) <= 10* 10)){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n }", "private static boolean isCellAlive(int[][] coordinates, int row, int column) {\n\t\tboolean cellAlive = coordinates[row][column] == 1;\r\n\t\tint numberOfNeighbours = 0;\r\n\t\t//check one to the right of col\r\n\t\tif (coordinates[row].length > column + 1) {\r\n\t\t\tif (coordinates[row][column + 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one to the left of col\r\n\t\tif (coordinates[row].length > column - 1 && column - 1 >= 0) {\r\n\t\t\tif (coordinates[row][column - 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one above col\r\n\t\tif (coordinates.length > row - 1 && row - 1 >= 0) {\r\n\t\t\tif (coordinates[row - 1][column] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one below col\r\n\t\tif (coordinates.length > row + 1) {\r\n\t\t\tif (coordinates[row + 1][column] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one top left diagonal to col\r\n\t\tif (coordinates.length > row - 1 && coordinates[row].length > column - 1 && row - 1 >= 0 && column - 1 >= 0) {\r\n\t\t\tif (coordinates[row - 1][column - 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one top right diagonal to col\r\n\t\tif (coordinates.length > row - 1 && coordinates[row].length > column + 1 && row - 1 >= 0) {\r\n\t\t\tif (coordinates[row - 1][column + 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one bottom left diagonal to col\r\n\t\tif (coordinates.length > row + 1 && coordinates[row].length > column - 1 && column - 1 >= 0) {\r\n\t\t\tif (coordinates[row + 1][column - 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one bottom right diagonal to col\r\n\t\tif (coordinates.length > row + 1 && coordinates[row].length > column + 1) {\r\n\t\t\tif (coordinates[row + 1][column + 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t System.out.println(\"Number of neighbours for \" + row + \", \" + column\r\n\t\t + \" was \" + numberOfNeighbours);\r\n\t\t//if the number of neighbours was 2 or 3, the cell is alive\r\n\t\tif ((numberOfNeighbours == 2) && cellAlive) {\r\n\t\t\treturn true;\r\n\t\t} else if (numberOfNeighbours == 3) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private static boolean canMove(int row, int col, int[][] maze)\r\n {\r\n if (maze[row][col] == 0)\r\n return true;\r\n return false;\r\n }", "public boolean isGoal() {\n if (posX != N-1 || posY != N-1) return false;\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n if (matrix[i][j] == 0) continue;\n if (i*N+j+1 != matrix[i][j]) return false;\n }\n }\n return true;\n }", "public boolean isLegal(int x_pos, int y_pos){\n //TODO\n //if the color is black,\n if(color==\"black\" || color.equals(\"black\")){\n for(int i=1; i<8; i++){\n if(this.x_pos-i==x_pos && y_pos==this.y_pos) return true;\n if(this.x_pos==x_pos && this.y_pos-i==y_pos) return true;\n }\n }\n //if the color is white, then its going up the board (you add the position)\n else{\n for(int i=1; i<8; i++){\n if(this.x_pos+i==x_pos && y_pos==this.y_pos) return true;\n if(this.x_pos==x_pos && this.y_pos+i==y_pos) return true;\n }\n }\n return false;\n }", "@Override\n public boolean canMove(int destinationX, int destinationY) {\n int differenceX = Math.abs(destinationX - this.boardCoordinates.x);\n int differenceY = Math.abs(destinationY - this.boardCoordinates.y);\n\n return (destinationX == this.boardCoordinates.x && differenceY == 1) ||\n (destinationY == this.boardCoordinates.y && differenceX == 1) ||\n (differenceX == differenceY && differenceX == 0); //we're handling start=finish coordinates separately\n }", "public void checkNeighbours(int row, int column)\r\n {\r\n int counter = 0;\r\n //*************************************************\r\n //Following code was adapted from Harry Tang 2015-04-27\r\n for (int columnNeighbours = column - 1; columnNeighbours <= column + 1; columnNeighbours ++)\r\n {\r\n for (int rowNeighbours = row - 1; rowNeighbours <= row + 1; rowNeighbours ++)\r\n {\r\n try \r\n {\r\n if (cellGrid[columnNeighbours][rowNeighbours].isAlive()\r\n && cellGrid[columnNeighbours][rowNeighbours] != cellGrid[column][row])\r\n {\r\n counter ++;\r\n }\r\n }\r\n catch (IndexOutOfBoundsException e)\r\n {\r\n // do nothing\r\n }\r\n } // end of for (int y = indexY - 1; y == indexY; y++)\r\n } // end of for (int x = indexX - 1; x == indexX; x++)\r\n //*************************************************\r\n \r\n decisionOnCellState(counter, row, column);\r\n }", "public boolean checkReached(float xTile, float yTile)\r\n/* 134: */ {\r\n/* 135:149 */ if ((this.mission) && (tileReachObjectives(xTile, yTile)))\r\n/* 136: */ {\r\n/* 137:152 */ this.reach[((int)xTile)][((int)yTile)] = 0;\r\n/* 138:153 */ this.reachablePlaces -= 1;\r\n/* 139:154 */ if (this.reachablePlaces == 0) {\r\n/* 140:156 */ return true;\r\n/* 141: */ }\r\n/* 142: */ }\r\n/* 143:160 */ return false;\r\n/* 144: */ }", "private boolean solveNext(){\n Stack<Integer[]> emptyPositions = findEmptyPositions();\n\n while (!emptyPositions.isEmpty()) {\n\n //get the top empty position from the stack.\n Integer[] position = emptyPositions.peek();\n int row = position[0];\n int col = position[1];\n\n for (int value = 1; value <= size; value++) {\n if (isPositionValid(row, col, value)){\n\n //value is valid, we can set it to the board.\n board[row][col] = value;\n\n //recursive backtracking\n if(solveNext()) {\n\n //if the value leads to a solution, pop it from the stack.\n emptyPositions.pop();\n return true;\n }\n else board[row][col] = 0;\n\n }\n }\n return false;\n }\n return true;\n }", "private boolean canCaptureSomewhere(int x, int y){\n\t\tfor (int i = -2; i <= 2; i=i+4){\n\t\t\tfor (int j = -2; j <= 2; j=j+4){\n\t\t\t\tif (!(x+i < 0 || x+i > N\t\t\n\t\t\t\t|| y+j < 0 || y+j > N)){\t\t//don't give validMove impossible final coordinates\n\t\t\t\t\tif (validMove(x, y, x+i, y+j)) return true;\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasValidPath(int[][] grid) {\n int m = grid.length;\n int n = grid[0].length;\n boolean[][] visited = new boolean[m][n];\n\n Queue<int[]> queue = new LinkedList<>();\n queue.add(new int[] {0, 0});\n visited[0][0] = true;\n\n while (!queue.isEmpty()) {\n int[] current = queue.poll();\n int x = current[0];\n int y = current[1];\n int num = grid[x][y] - 1;\n for (int[] dir : dirs[num]) {\n int nx = x + dir[0], ny = y + dir[1];\n if (nx < 0 || nx >= m || ny < 0 || ny >= n || visited[nx][ny]) continue;\n // go to the next cell and come back to origin to see if port directions are same\n // if not visited and can be connected, add to queue\n for (int[] backDir : dirs[grid[nx][ny] - 1]) {\n if (nx + backDir[0] == x && ny + backDir[1] == y) {\n visited[nx][ny] = true;\n queue.add(new int[] {nx, ny});\n }\n }\n }\n }\n\n return visited[m - 1][n - 1];\n }", "public boolean validMove(int x, int y){\n if(!super.validMove(x, y)){\n return false;\n }\n if(((Math.abs(x - this.x()) == 2) && (Math.abs(y - this.y()) == 1))\n || ((Math.abs(x - this.x()) == 1) && (Math.abs(y - this.y()) == 2))){\n return true;\n }else{\n return false;\n }\n }", "private boolean findNumSafeLandHelper(int[][] array, int[][] visited, int row, int col) {\n\t\tif (array[row][col] == 0 || visited[row][col] == 1) {\n\t\t\treturn false;\n\t\t}\n\t\t// if the currnet square is at the border and its not visited and its\n\t\t// not sea then it means this is a safe land\n\t\tif (row == 0 || (row == array.length - 1) || col == 0 || (col == array.length - 1)) {\n\t\t\treturn true;\n\t\t}\n\t\t// backtrack to all four directions and find is there any safe land path\n\t\t// present\n\t\tboolean isPathPresent = false;\n\t\tvisited[row][col] = 1;\n\t\t// check all four direction from the currnet square\n\t\tisPathPresent = (row > 0 ? findNumSafeLandHelper(array, visited, row - 1, col) : false)\n\t\t\t\t|| (row < (array.length - 1) ? findNumSafeLandHelper(array, visited, row + 1, col) : false)\n\t\t\t\t|| (col > 0 ? findNumSafeLandHelper(array, visited, row, col - 1) : false)\n\t\t\t\t|| (col < (array.length - 1) ? findNumSafeLandHelper(array, visited, row, col + 1) : false);\n\t\tvisited[row][col] = 0;\n\t\treturn isPathPresent;\n\t}", "@Override\n public boolean isLocationEmpty(int x, int y)\n {\n return isLocationEmpty(null, x, y);\n }", "public boolean validPosition(Player p, double x, double y) {\n\n\t\tTile tile = getTile(p, x + p.BOUNDING_BOX_X, y);\n\t\tif (tile == null || !tile.canEnter(p)) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttile = getTile(p, x, y + p.BOUNDING_BOX_Y);\n\t\tif (tile == null || !tile.canEnter(p)) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttile = getTile(p, x - p.BOUNDING_BOX_X, y);\n\t\tif (tile == null || !tile.canEnter(p)) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttile = getTile(p, x, y - p.BOUNDING_BOX_Y);\n\t\tif (tile == null || !tile.canEnter(p)) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "private boolean onBoard(int x, int y){\n if((x<WIDTH&&y<HEIGHT)){\n if(0<=x&&0<=y){\n return true;\n }\n return false;\n }else{\n return false;\n }\n\t}", "private boolean tryFindPath() {\n\t\t\tfor (Node neighbour : neighbours) {\n\t\t\t\tif (neighbour.x == n || neighbour.y == 0) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!neighbour.isReachable()) {\n\t\t\t\t\tneighbour.setReachable();\n\t\t\t\t\tif (neighbour.tryFindPath()) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "private static boolean goalFunction(Maze m, int x, int y)\n\t{\n\t\tfor (int i = 0; i < x; i++)\n\t\t{\n\t\t\tfor (int j = 0; j < y; j++)\n\t\t\t{\n\t\t\t\tif(m.getRoom(i,j).getNumConnectedRooms() == 0)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(m.getEnd().getNumConnectedRooms() > 1)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}", "public boolean hasBlockAdjacent(int x, int y) {\n\t\treturn \tgetBlock(x, y + 1).canBePlaced(Direction.DOWN, 0, x, y + 1, this) || \n\t\t\tgetBlock(x, y - 1).canBePlaced(Direction.UP, 0, x, y - 1, this) || \n\t\t\tgetBlock(x + 1, y).canBePlaced(Direction.LEFT, 0, x + 1, y, this) || \n\t\t\tgetBlock(x - 1, y).canBePlaced(Direction.RIGHT, 0, x - 1, y, this);\n\t}", "private Cell nextNotVisitedCell(Cell current) {\n if (current.isValidDirection(LEFT) && !cells[current.col - 1][current.row].visited)\n return cells[current.col - 1][current.row];\n\n // Check whether the right cell is visited, if there is one.\n if (current.isValidDirection(RIGHT) && !cells[current.col + 1][current.row].visited)\n return cells[current.col + 1][current.row];\n\n // Check whether the cell above is visited, if there is one.\n if (current.isValidDirection(UPWARD) && !cells[current.col][current.row - 1].visited)\n return cells[current.col][current.row - 1];\n\n // Check whether the cell below is visited, if there is one.\n if (current.isValidDirection(DOWNWARD) && !cells[current.col][current.row + 1].visited)\n return cells[current.col][current.row + 1];\n\n return null;\n }", "private boolean reachX(Position target) {\n return position.x == target.x;\n }", "public static boolean isBasicJumpValid(int[][] board, int player, int fromRow, int fromCol, int toRow, int toCol) {\r\n\t\t\r\n\t\tboolean ans = false;\r\n\t\t//is the impot is legal\r\n\t\tif(fromRow<8&fromCol<8&toRow<8&toCol<8&fromRow>-1&fromCol>-1&toRow>-1&toCol>-1&player>-2&player<2&player!=0){\r\n\t\t\tif (board [toRow][toCol]==0){/*is the target slot avalibel*/\r\n\t\t\t\tif (board[fromRow][fromCol]==1||board[fromRow][fromCol]==2){/*is the player is red*/\t\t\t\r\n\t\t\t\t\tif((board[(fromRow+toRow)/2][(fromCol+toCol)/2]==-1)||(board[(fromRow+toRow)/2][(fromCol+toCol)/2]==-2)){/*is thier enemy solduers between the begning and the target*/\r\n\t\t\t\t\t\tif (board[fromRow][fromCol]==1){/*is thie simpol soldiuer in the bignning slot*/\r\n\t\t\t\t\t\t\tif(fromRow==toRow-2&&(fromCol==toCol+2||fromCol==toCol-2)){/*is eating diagonally upward and the move is two square*/\r\n\t\t\t\t\t\t\t\tans = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{/*is thir queen in the starting slot*/\r\n\t\t\t\t\t\t\tif(((fromRow==toRow+2)||(fromRow==toRow-2))&&((fromCol==toCol+2)||(fromCol==toCol-2))){\r\n\t\t\t\t\t\t\t\t/*if is eating diagonally and the move is two square*/\r\n\t\t\t\t\t\t\t\tans = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (board[fromRow][fromCol]==-1|board[fromRow][fromCol]==-2){/*is the solduer is blue*/\r\n\t\t\t\t\tif((board[(fromRow+toRow)/2][(fromCol+toCol)/2]==1)||(board[(fromRow+toRow)/2][(fromCol+toCol)/2]==2)){/*thie is an enemu betwen the teget and the begning*/\r\n\t\t\t\t\t\tif (board[fromRow][fromCol]==-1){\r\n\t\t\t\t\t\t\tif(fromRow==toRow+2&&(fromCol==toCol+2||fromCol==toCol-2)){/*is eating diagonally downward and the move is two square*/\r\n\t\t\t\t\t\t\t\tans = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tif(((fromRow==toRow+2)||(fromRow==toRow-2))&&((fromCol==toCol+2)||(fromCol==toCol-2))){\r\n\t\t\t\t\t\t\t\t/*if is eating diagonally and the move is two square*/\r\n\t\t\t\t\t\t\t\tans = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ans;\r\n\t}", "boolean jumpPossible(int k) {\n if (get(k) != _whoseMove) {\n return false;\n }\n for (int i = -2; i <= 2; i += 2) {\n for (int j = -2; j <= 2; j += 2) {\n char nextCol = (char) (col(k) + i);\n char nextRow = (char) (row(k) + j);\n if (k % 2 == 0) {\n if (validSquare(nextCol, nextRow)) {\n int mid = (k + index(nextCol, nextRow)) / 2;\n if (get(nextCol, nextRow)\n == EMPTY && get(mid) == get(k).opposite()) {\n return true;\n }\n }\n } else {\n if (i == 0 || j == 0) {\n if (validSquare(nextCol, nextRow)) {\n int mid = (k + index(nextCol, nextRow)) / 2;\n if (get(nextCol, nextRow)\n == EMPTY && get(mid) == get(k).opposite()) {\n return true;\n }\n }\n }\n }\n }\n }\n return false;\n }", "public abstract boolean isOutOfBounds(int x, int y);", "private static boolean AllCellsVisited()\n {\n for (Cell arr[] : cells){\n for (Cell c : arr)\n {\n if (!c.Visited)\n {\n return false;\n }\n }\n }\n return true;\n }", "private static Cell isAdjacent(char[][] board, Character ch, int row, int col, Set<Cell> visited) {\n if(isValidCell(row-1, col, board) && board[row-1][col] == ch && !visited.contains(new Cell(row-1, col))) return new Cell(row-1, col);\n //if(isValidCell(row-1, col+1, board) && board[row-1][col+1] == ch && !visited.contains(new Cell(row-1, col+1))) return new Cell(row-1, col+1);\n if(isValidCell(row, col-1, board) && board[row][col-1] == ch && !visited.contains(new Cell(row, col-1))) return new Cell(row, col-1);\n if(isValidCell(row, col+1, board) && board[row][col+1] == ch && !visited.contains(new Cell(row, col+1))) return new Cell(row, col+1);\n //if(isValidCell(row+1, col-1, board) && board[row+1][col-1] == ch && !visited.contains(new Cell(row+1, col-1))) return new Cell(row+1, col-1);\n if(isValidCell(row+1, col, board) && board[row+1][col] == ch && !visited.contains(new Cell(row+1, col))) return new Cell(row+1, col);\n //if(isValidCell(row+1, col+1, board) && board[row+1][col+1] == ch && !visited.contains(new Cell(row+1, col+1))) return new Cell(row+1, col+1);\n return null;\n }", "public boolean foundGoal() \r\n\t{\r\n\t\t// Write the method that determines if the walker has found a way out of the maze.\r\n\t\treturn ( currentCol < 0 || currentRow < 0 || \r\n\t\t\t\t currentCol >= size || currentRow >= size );\r\n\t}", "boolean jumpPossible() {\n for (int k = 0; k <= MAX_INDEX; k += 1) {\n if (jumpPossible(k)) {\n return true;\n }\n }\n return false;\n }", "public boolean isLegalStep(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\tPlayer white = currentGame.getWhitePlayer();\n\t\tint[] toCheckPos = new int[2];\n\t\tint[] existingPos = new int[2];\n\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\ttoCheckPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t} else {\n\t\t\ttoCheckPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t}\n\t\t//0 = column, 1 = row\n\t\tif(dir == MoveDirection.North) {\n\t\t\tif(toCheckPos[1] == 1) return false;\n\t\t\tif(toCheckPos[1] - 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), -1, 0);\n\t\t} else if(dir == MoveDirection.South) {\n\t\t\tif(toCheckPos[1] == 9) return false;\n\t\t\tif(toCheckPos[1] + 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 1, 0);\n\t\t} else if(dir == MoveDirection.East) {\n\t\t\tif(toCheckPos[0] == 9) return false;\n\t\t\tif(toCheckPos[0] + 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, 1);\n\t\t} else if(dir == MoveDirection.West) {\n\t\t\tif(toCheckPos[0] == 1) return false;\n\t\t\tif(toCheckPos[0] - 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, -1);\n\t\t}\n\t\t\n\t\treturn false;\r\n }", "public abstract boolean getCell(int x, int y);", "private static Boolean checkForContinuousConnectivity()\n\t{\n\t\tint row=0;\n\t\tint column=0;\n\t\tBoolean floorFound=false;\n\n\t\tfor(int i=0; i<board.length; i++)\n\t\t{\n\t\t\tfor(int j=0; j<board[i].length; j++)\n\t\t\t{\n\t\t\t\tif(board[i][j]==Cells.FLOOR)\n\t\t\t\t{\n\t\t\t\t\trow=i;\n\t\t\t\t\tcolumn=j;\n\t\t\t\t\tfloorFound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (floorFound)\n\t\t\t\tbreak;\n\t\t}\n\n\t\tfor(int i=0; i<board.length; i++)\n\t\t{\n\t\t\tfor(int j=0; j<board[i].length; j++)\n\t\t\t{\n\t\t\t\tif(board[i][j]==Cells.FLOOR && !(_PF.canFindAWay(column, row, j, i)))\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "private boolean legalMove() {\n\n\t\t// empty landing spot\n\t\tif (tilePath.size() == 0) {\n\t\t\tdebug(\"illegal, empty landing spot\");\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!mBoard.tileIsEmpty(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, tile not empty\");\n\t\t\treturn false;\n\t\t}\n\n\t\t// start doesn't equal end\n\t\tif (tilePath.get(0).equals(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, start doesn't equal end\");\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Override\n public boolean canMoveTo(int x, int y, Board board) {\n \n if (x > this.x && y > this.y){ //move up to the right\n if(lowCh(\"uright\",xt+1,yt+1,x,y,board) == true)\n {\n return canTake(x,y,board) == true;\n }else{\n return false;\n }\n } else if (x > this.x && y < this.y){ //move down to the right\n if(lowCh(\"dright\",xt+1,yt-1,x,y,board) == true)\n {\n return canTake(x,y,board) == true;\n }else{\n return false;\n }\n } else if (x < this.x && y > this.y){ //move up to the left\n if (lowCh(\"uleft\",xt-1,yt+1,x,y,board) == true)\n {\n return canTake(x,y,board) == true;\n }else{\n return false;\n }\n } else if (x < this.x && y < this.y){ //move down to the left\n if (lowCh(\"dleft\",xt-1,yt-1,x,y,board) == true)\n {\n return canTake(x,y,board) == true;\n }else{\n return false;\n }\n } else {\n return false;\n }\n }", "private static boolean isSafe(char[][] grid, int row, int col, int ROW, int COL, boolean[][] visited) {\n\t\t// row number is in range, col number is in range and value is 1 and not yet visited.\n\t\treturn (row >= 0) && (row < ROW) && (col >= 0) && (col < COL) && (grid[row][col] == '1' && !visited[row][col]);\n\t}", "public static boolean Traversal_DFS(int row, int col, int[][] maze)\r\n {\n if (isASolution(row, col))\r\n {\r\n maze[row][col] = 3;\r\n return true;\r\n }\r\n\r\n // otherwise, mark the cell as visited and process its children.\r\n maze[row][col] = 2;\r\n if (canMove(row,col-1, maze) && Traversal_DFS(row,col-1, maze))\r\n {\r\n \t// mark this as success.\r\n maze[row][col-1] = 3;\r\n return true;\r\n }\r\n if (canMove(row,col+1, maze))\r\n {\r\n // move right\r\n if (Traversal_DFS(row,col+1, maze))\r\n {\r\n \tmaze[row][col+1] = 3;\r\n return true;\r\n }\r\n }\r\n if (canMove(row-1,col, maze))\r\n {\r\n // move up\r\n if (Traversal_DFS(row-1,col, maze))\r\n {\r\n \tmaze[row-1][col] = 3;\r\n return true;\r\n }\r\n }\r\n if (canMove(row+1,col, maze))\r\n {\r\n // move down\r\n if (Traversal_DFS(row+1,col, maze))\r\n {\r\n \tmaze[row+1][col] = 3;\r\n return true;\r\n }\r\n }\r\n // Failure, unmark the cell and return false\r\n maze[row][col] = 0;\r\n return false;\r\n }", "public Boolean isValidMove(int x, int y, int[] current, int[][] array, int c) {\n\n\t\tif(current[0]==0) {\n\t\t\tif(array[x][y]==0) {\n\t\t\t\tcurrent = null;\n\t\t\t\tarray = null;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\telse if(c==1) {\n\t\t\tif(current[0]==1) {\n\t\t\t\tif(x<=array.length-2 && array[x][y]==0 && array[x+1][y]==0) {\n\t\t\t\t\tcurrent = null;\n\t\t\t\t\tarray = null;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(current[0]==2) {\n\t\t\t\tif(y<=array.length-2 && array[x][y]==0 && array[x][y+1]==0) {\n\t\t\t\t\tcurrent = null;\n\t\t\t\t\tarray = null;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif(current[0]==1) {\n\t\t\t\tif(x>=1 && array[x][y]==0 && array[x-1][y]==0) {\n\t\t\t\t\tcurrent = null;\n\t\t\t\t\tarray = null;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(current[0]==2) {\n\t\t\t\tif(y>=1 && array[x][y]==0 && array[x][y-1]==0) {\n\t\t\t\t\tcurrent = null;\n\t\t\t\t\tarray = null;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcurrent = null;\n\t\tarray = null;\n\t\treturn false;\n\t}", "public boolean isGoal() {\n boolean result = false; \n for (int i = 0; i < this.N; i++) {\n for (int j = 0; j < this.N; j++) {\n int idx = (i * this.N) + (j + 1);\n if (idx != N * N - 1 && tiles[i][j] != idx) {\n return false;\n } \n if (idx == N * N - 1) {\n if (tiles[N - 1][N - 1] == 0) return true;\n return false;\n }\n }\n }\n return result;\n }", "public boolean canMoveHere(double xCo, double yCo, Pieces current) {\n //if in arena\n if(xCo < xSize && xCo > 0 && yCo < ySize && yCo > 0) {\n //if space free\n if(getDroneAt(xCo, yCo) == null || getDroneAt(xCo, yCo) == current) {\n return true;\n }\n }\n\n return false;\n }", "public boolean isOpen(int row, int col) {\n if (isInBounds(row-1, col-1)) {\n return grid[row-1][col-1];\n }\n else {\n throw new java.lang.IllegalArgumentException(\"Bad Coordinates\");\n }\n }", "public boolean checkMove(int x, int y, int move){\r\n\t\tif (move == -1) {\r\n\t\t\treturn true;\r\n\t\t}else if ((x < 1) || (y < 1) || (x > this.size) || (y > this.size) || (move < 1) || (move > this.size)){\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\tif (getXValues()[x][move] || getYValues()[y][move]) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}return true;\r\n\t}", "public boolean forwardChecking(Grid board, Cell cell) { \n recursiveCalls++;\n if (endOfGrid(board)) { // if all the numbers of the board != 0\n return true;\n }\n\n DeleteQueue delQueue = new DeleteQueue(); // create delete queue\n delQueue.fcAddToDelete(cell); // fill the queue with posible variables (row, col & matrix) that must update their domain\n ArrayList<Integer> valuesCell = map.get(cell); // save the domain of the variable on which im operating\n int value = 0;\n\n for (int i = 0; i < valuesCell.size(); i++) { // for each value of the domain, I will delete the corresponding value from the domain of the variables with restrictions towards V\n value = valuesCell.get(i);\n delQueue.executeDeletion(value, map); // delete from the domains\n if (delQueue.checkForEmptyDomains(map)) { // check for empty domains\n delQueue.restoreDomains(value, map); // If any domain is empty, restore all domains\n } else {\n ArrayList<Integer> newDomain = new ArrayList<>();\n newDomain.add(value);\n map.put(cell, newDomain); // update the domain of the varible on which im operating\n board.setCell(value, cell.row, cell.col); // set the new value on the board\n if (forwardChecking(board, cell.nextCell(board))) { // recursive call\n return true;\n } else {\n delQueue.restoreDomains(value, map); // restore all domains\n map.put(cell, valuesCell); // restore the domain of the cell on which I operated\n }\n }\n }\n board.setCell(0, cell.row, cell.col); // restore original value on the board\n\n return false;\n }", "@Override\n\tpublic boolean testMove(int xEnd, int yEnd, board b){\n return (xEnd == x - 1 && yEnd == y - 1) || (xEnd == x - 1 && yEnd == y) || (xEnd == x - 1 && yEnd == y + 1) || (xEnd == x && yEnd == y - 1) || (xEnd == x && yEnd == y + 1) || (xEnd == x + 1 && yEnd == y - 1) || (xEnd == x + 1 && yEnd == y) || (xEnd == x + 1 && yEnd == y + 1);\n\t}", "private boolean possible(){\n\t\tboolean psb = false;\n\t\tswitch(direction){\n\t\t\tcase RIGHT:\n\t\t\t\tif(hash_matrix.containsKey(x+1 + y*row_length)){\n\t\t\t\t\tpsb = true;\n\t\t\t\t}else if(hash_matrix.containsKey(x + (y+1)*row_length)){\n\t\t\t\t\tdirection = DOWN;\n\t\t\t\t\tpsb = true;\n\t\t\t\t}else if(hash_matrix.containsKey(x + (y-1)*row_length)){\n\t\t\t\t\tdirection = UP;\n\t\t\t\t\tpsb = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase LEFT:\n\t\t\t\tif(hash_matrix.containsKey(x - 1 + y*row_length)){\n\t\t\t\t\tpsb = true;\n\t\t\t\t}else if(hash_matrix.containsKey(x + (y+1)*row_length)){\n\t\t\t\t\tdirection = DOWN;\n\t\t\t\t\tpsb = true;\n\t\t\t\t}else if(hash_matrix.containsKey(x + (y-1)*row_length)){\n\t\t\t\t\tdirection = UP;\n\t\t\t\t\tpsb = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase UP:\n\t\t\t\tif(hash_matrix.containsKey(x + (y-1)*row_length)){\n\t\t\t\t\tpsb = true;\n\t\t\t\t}else if(hash_matrix.containsKey(x + 1 + (y)*row_length)){\n\t\t\t\t\tdirection = RIGHT;\n\t\t\t\t\tpsb = true;\n\t\t\t\t}else if(hash_matrix.containsKey(x - 1 + (y)*row_length)){\n\t\t\t\t\tdirection = LEFT;\n\t\t\t\t\tpsb = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase DOWN:\n\t\t\t\tif(hash_matrix.containsKey(x + (y+1)*row_length)){\n\t\t\t\t\tpsb = true;\n\t\t\t\t}else if(hash_matrix.containsKey(x + 1 + y*row_length)){\n\t\t\t\t\tdirection = RIGHT;\n\t\t\t\t\tpsb = true;\n\t\t\t\t}else if(hash_matrix.containsKey(x - 1 + (y)*row_length)){\n\t\t\t\t\tdirection = LEFT;\n\t\t\t\t\tpsb = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t\tsteps++;\t\t\t//last step that will generate false also needs to be counted\n\t\treturn psb;\n\t}", "@Override\n public boolean isLocationValid(int x, int y)\n {\n return master.isLocationValid(x, y);\n }", "public boolean solve(final int startRow, final int startCol) {\r\n\r\n // TODO\r\n // validate arguments: ensure position is within maze area\r\n\r\n if(mazeData [startRow][startCol] == WALL) {\r\n throw new IllegalArgumentException(\" we're in a wall buddy\");\r\n }\r\n else if (startRow > mazeData.length-1 || startCol > mazeData.length-1 ){\r\n throw new IllegalArgumentException(\" we're out of bounds \");\r\n }\r\n\r\n\r\n\r\n\r\n\r\n // TODO create local class for row/col positions\r\n class Position {\r\n private int row;\r\n private int col;\r\n\r\n // TODO add instance variables\r\n public Position(final int row, final int col) {\r\n this.row = row;\r\n this.col= col;\r\n }\r\n\r\n\r\n\r\n // TODO toString if desired\r\n public String toString() {\r\n return \"Row: \" + this.row + \"Column: \"+ this.col;\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n // define the stack (work queue)\r\n final var queue = Collections.asLifoQueue(new LinkedList<Position>());\r\n //Queue<Position> queue = new LinkedList<Position>(); // EXTRA CREDIT PART 2\r\n\r\n // put starting position in queue\r\n queue.add(new Position(startRow, startCol));\r\n\r\n\r\n\r\n\r\n\r\n // look for a way out of the maze from the current position\r\n while (!queue.isEmpty()) {\r\n\r\n\r\n final Position pos = queue.remove();\r\n\r\n // if this is a wall, then ignore this position (and skip the remaining steps of the loop body)\r\n if (mazeData [pos.row][pos.col]== WALL){\r\n continue; // jumps to next spot in que , by skipping to next iteration of loops by saying continue\r\n }\r\n\r\n\r\n // otherwise mark this place as visited (drop a breadcrumb)\r\n if (mazeData [pos.row][pos.col]== VISITED){\r\n continue; // jumps to next spot in que , by skipping to next iteration of loops by saying continue\r\n }\r\n else if(mazeData [pos.row][pos.col]== EMPTY){\r\n mazeData [pos.row][pos.col]= VISITED;\r\n }\r\n\r\n // if we're already on the perimeter, then this is a way out and we should return success (true) right away\r\n if (pos.row == 0|| pos.col ==0 || pos.row == mazeData.length-1 || pos.col == mazeData[0].length-1){\r\n mazeData[startRow][startCol] = START;\r\n return true;\r\n }\r\n\r\n queue.add(new Position(pos.row+1,pos.col ));//down\r\n queue.add(new Position(pos.row-1,pos.col ));//up\r\n queue.add(new Position(pos.row,pos.col-1 )); //left\r\n queue.add(new Position(pos.row, pos.col + 1)); //right\r\n\r\n\r\n }//end of while\r\n\r\n\r\n\r\n // mark starting position\r\n mazeData[startRow][startCol] = START;\r\n\r\n // if we've looked everywhere but haven't gotten out, then return failure (false)\r\n return false;\r\n }", "private boolean findTicTacToe(int x, int y) {\n for (Point c : ticTacToeList) {\n if (c != null && c.getX() == x && c.getY() == y)\n return true;\n }\n return false;\n }", "boolean legalMove(Move mov) {\n if (mov == null || !validSquare(mov.toIndex())\n || !validSquare(mov.fromIndex())) {\n throw new IllegalArgumentException(\"Illegal move\");\n }\n PieceColor from = get(mov.fromIndex());\n PieceColor to = get(mov.toIndex());\n if (!mov.isJump() && jumpPossible()) {\n return false;\n }\n if (from != _whoseMove) {\n return false;\n } else if (mov.isJump()) {\n return checkJump(mov, false);\n } else if (from == BLACK && row(mov.fromIndex()) == '1') {\n return false;\n } else if (from == WHITE && row(mov.fromIndex()) == '5') {\n return false;\n } else if (mov.isLeftMove()) {\n ArrayList<String> rec = _directions.get(mov.fromIndex());\n return get(mov.toIndex()) == EMPTY\n && !rec.get(rec.size() - 1).equals(\"Right\");\n } else if (mov.isRightMove()) {\n ArrayList<String> rec = _directions.get(mov.fromIndex());\n return get(mov.toIndex()) == EMPTY\n && !rec.get(rec.size() - 1).equals(\"Left\");\n } else if (from == BLACK) {\n if (mov.fromIndex() % 2 == 0 && to == EMPTY) {\n return mov.fromIndex() - mov.toIndex() == SIDE\n || mov.fromIndex() - mov.toIndex() == SIDE - 1\n || mov.fromIndex() - mov.toIndex() == SIDE + 1;\n } else {\n return mov.fromIndex() - mov.toIndex() == SIDE && to == EMPTY;\n }\n } else if (from == WHITE) {\n if (mov.fromIndex() % 2 == 0 && to == EMPTY) {\n return mov.toIndex() - mov.fromIndex() == SIDE\n || mov.toIndex() - mov.fromIndex() == SIDE + 1\n || mov.toIndex() - mov.fromIndex() == SIDE - 1;\n } else {\n return mov.toIndex() - mov.fromIndex() == SIDE && to == EMPTY;\n }\n }\n return false;\n }", "private boolean isLegalPositon(Position checkPosition){\n if (checkPosition.equalPosition(start)||checkPosition.equalPosition(end))\n return true;\n if(checkPosition.getRow()<0 || checkPosition.getCol()<0 || checkPosition.getRow()>=this.rows || checkPosition.getCol() >= this.cols){\n return false;\n }\n\n if(maze[checkPosition.getRow()][checkPosition.getCol()]== WallType.wall){\n return false;\n }\n return true;\n }", "public boolean hasPath(int[][] maze, int[] start, int[] destination) {\n if (isWall(maze, start[0], start[1])) {\n return false;\n }\n\n boolean[][] visited = new boolean[maze.length][maze[0].length];\n\n Queue<int[]> queue = new LinkedList<>();\n queue.add(start);\n\n int[] currentPosition = null;\n visited[start[0]][start[1]] = true;\n while ((currentPosition = queue.poll()) != null) {\n int row = currentPosition[0];\n int col = currentPosition[1];\n\n // whether is destination\n if (reachDest(destination, row, col)) {\n return true;\n }\n\n // for all the 4 neighbours of current position\n for (int i = 0; i < 4; i++) {\n int nRow = row + neighbourDir[i][0]; // neighbour row\n int nCol = col + neighbourDir[i][1]; // neighbour col\n\n // keep going when there is no wall\n while (!isWall(maze, nRow, nCol)) {\n nRow += neighbourDir[i][0];\n nCol += neighbourDir[i][1];\n }\n\n // To get here, means current position is a wall, so the coordinate should be adjusted\n int lastRow = nRow - neighbourDir[i][0];\n int lastCol = nCol - neighbourDir[i][1];\n\n if (!isWall(maze, lastRow, lastCol) && !visited[lastRow][lastCol]) {\n // not visited\n visited[lastRow][lastCol] = true;\n queue.add(new int[]{lastRow, lastCol});\n }\n }\n\n }\n\n return false;\n }", "private static boolean isPossible(int[][] board, int row, int col, int value) {\r\n\r\n\t\tif (!isPossibleRow(board, row, col, value))\r\n\t\t\treturn false;\r\n\t\tif (!isPossibleCol(board, row, col, value))\r\n\t\t\treturn false;\r\n\t\tif (!isPossibleGrid(board, row, col, value))\r\n\t\t\treturn false;\r\n\r\n\t\treturn true;\r\n\r\n\t}", "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 }", "public static boolean checkPositionInPath(Vector<int[]> path, int x, int y){\n\t\tboolean positionChecker = false;\r\n\t\tfor(int i = 0; i < path.size(); i++)\r\n\t\t{\r\n\t\t\tif(path.get(i)[0] == x && path.get(i)[1] == y)\r\n\t\t\t{\r\n\t\t\t\tpositionChecker = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn positionChecker;\r\n\t}", "public boolean canWalkTo(Point point) {\n\t\t// this way if some new block types will be implemented it will be safer to\n\t\t// extend\n\t\tif (maze[point.x][point.y] == Block.EMPTY) return true;\n\t\tif (maze[point.x][point.y] == Block.START) return true;\n\t\tif (maze[point.x][point.y] == Block.FINISH) return true;\n\t\treturn false;\n\t}", "private Boolean pointNotMyCell(Position3D cell,int d, int r, int c) {\n return !(d == cell.getDepthIndex() && c == cell.getColumnIndex() && r == cell.getRowIndex());\n }", "public boolean isGoal() {\n for (int row = 0; row < N; ++row) {\n for (int col = 0; col < N; ++col) {\n final int goalValue;\n if (row == N - 1 && col == N - 1) {\n goalValue = 0;\n }\n else {\n goalValue = N * row + col + 1;\n }\n if (tiles[row][col] != goalValue) {\n return false;\n }\n }\n }\n return true;\n }", "private boolean valid (int row, int column) {\n\n boolean result = false;\n \n // check if cell is in the bounds of the matrix\n if (row >= 0 && row < grid.length &&\n column >= 0 && column < grid[0].length)\n\n // check if cell is not blocked and not previously tried\n if (grid[row][column] == 1)\n result = true;\n\n return result;\n\n }", "private int getPath(int row, int col) {\n\tif (row > X || col > Y || row < 0 || col < 0) return 0;\n\tif (row == X && col == Y) return 1;\n\tif (grid[row][col] == -1) return 0;\n\n\tif (memo[row][col] != -1) return memo[row][col];\n\n\tint isPossible = getPath(row + y_dir[0], col + x_dir[0]);\n\tif (isPossible != 1) {\n\t isPossible = getPath(row + y_dir[1], col + x_dir[1]);\n\t}\n\n\tif (isPossible == 1) {\n\t path.add(new Point(row, col));\n\t}\n\t\n\treturn memo[row][col] = isPossible;\n }", "public boolean computeCell() {\n boolean b = false;\n int[] tab = null;\n switch (course) {\n case 4:\n tab = CMap.givePositionTale(x, y - (CMap.TH / 2));\n break;\n default:\n tab = CMap.givePositionTale(x, y - (CMap.TH / 2));\n break;\n }\n\n Cell c = game.getMap().getCell(tab);\n if (c != current) {\n current = c;\n b = true;\n }\n return b;\n }", "private boolean thereispath(Move m, Tile tile, Integer integer, Graph g, Board B) {\n\n boolean result = true;\n boolean result1 = true;\n\n int start_dest_C = tile.COLUMN;\n int start_dest_R = tile.ROW;\n\n int move_column = m.getX();\n int move_row = m.getY();\n\n int TEMP = 0;\n int TEMP_ID = 0;\n int TEMP_ID_F = tile.id;\n int TEMP_ID_FIRST = tile.id;\n\n int final_dest_R = (integer / B.width);\n int final_dest_C = (integer % B.width);\n\n //System.out.println(\"* \" + tile.toString() + \" \" + integer + \" \" + m.toString());\n\n // Y ROW - X COLUMN\n\n for (int i = 0; i != 2; i++) {\n\n TEMP_ID_FIRST = tile.id;\n\n // possibility 1\n if (i == 0) {\n\n\n // first move columns\n for (int c = 0; c != Math.abs(move_column) && result != false; c++) {\n\n if (c == 0) {\n TEMP_ID_FIRST = tile.id;\n\n } else {\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n }\n\n TEMP = move_column / Math.abs(move_column);\n\n //System.out.println(\"1C:\" + TEMP);\n\n //System.out.println(\" \" + TEMP_ID_FIRST + \" - > \" + (start_dest_C + TEMP));\n\n start_dest_C += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n //System.out.println(TEMP_ID_FIRST + \" = \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n // System.out.println(\"OK\");\n\n } else {\n\n result = false;\n\n // System.out.println(\"NOPE\");\n\n\n }\n }\n\n for (int r = 0; r != Math.abs(move_row) && result != false; r++) {\n\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n TEMP = move_row / Math.abs(move_row);\n\n //System.out.println(\"1R:\" + TEMP);\n\n //System.out.println(start_dest_R + \" - > \" + (start_dest_R + TEMP));\n\n start_dest_R += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n // System.out.println(TEMP_ID_FIRST + \" and \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n //System.out.println(\"OK\");\n\n\n } else {\n\n result = false;\n\n //System.out.println(\"NOPE\");\n\n\n }\n }\n\n if (result == true) {\n return true;\n }\n\n\n }\n\n TEMP_ID = 0;\n\n if (i == 1) {\n\n result = true;\n\n start_dest_C = tile.COLUMN;\n start_dest_R = tile.ROW;\n // first move row\n for (int r = 0; r != Math.abs(move_row) && result1 != false; r++) {\n\n if (r == 0) {\n TEMP_ID_FIRST = tile.id;\n\n } else {\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n }\n\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n TEMP = move_row / Math.abs(move_row);\n\n //System.out.println(\"1R:\" + TEMP);\n\n //System.out.println(start_dest_R + \" - > \" + (start_dest_R + TEMP));\n\n start_dest_R += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n\n //System.out.println(TEMP_ID_FIRST + \" = \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n //System.out.println(\"OK\");\n\n } else {\n\n //System.out.println(\"NOPE\");\n\n result = false;\n\n }\n\n\n }\n\n // first move columns\n for (int c = 0; c != Math.abs(move_column) && result1 != false; c++) {\n\n\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n TEMP = move_column / Math.abs(move_column);\n\n //System.out.println(\"1C:\" + TEMP);\n\n //System.out.println(\" \" + TEMP_ID_FIRST + \" - > \" + (start_dest_C + TEMP));\n\n start_dest_C += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n //System.out.println(TEMP_ID_FIRST + \" and \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n //System.out.println(\"OK\");\n\n } else {\n result = false;\n\n //System.out.println(\"NOPE\");\n\n\n }\n }\n\n if (result == false) {\n return false;\n\n }\n\n\n }\n\n\n }\n\n\n return true;\n }", "public boolean isOpen(int row, int col) {\n if (row - 1 >= grid.length || col - 1 >= grid.length || row - 1 < 0 || col - 1 < 0) {\n throw new IllegalArgumentException(\"index is out of boundary.\");\n }\n return grid[row - 1][col - 1];\n }", "public static boolean navigate(Maze maze, int row, int col) {\n if (row < 0 || col < 0 || row >= maze.height() || col >= maze.width()) {\n return false;\n }\n // condition 2. wall\n if (maze.isWall(row, col)) {\n return false;\n }\n // condition 3. already visited this position\n if (maze.explored(row, col)) {\n return false;\n }\n\n // if you are at an edge (maxrow or maxcol), then you have solved the maze\n if (row == 0 || col == 0 || row == maze.height() - 1 || col == maze.width() - 1) {\n maze.mark(row, col);\n System.out.println(\"Escaped maze at (\" + row + \", \" + col + \")\\n\");\n return true;\n }\n\n maze.explore(row, col);\n if (navigate(maze, row, col - 1) || // try left\n navigate(maze, row, col + 1) || // try right\n navigate(maze, row - 1, col) || // try up\n navigate(maze, row + 1, col)) { // try down\n maze.mark(row, col);\n // System.out.println(maze);\n return true;\n }\n\n return false;\n }", "public boolean isMine(int x, int y);", "private boolean dfs(int[][] maze, boolean[][] visited, int[] start, int[] destination) {\n\t\tif(Arrays.equals(start, destination)) return true;\n\t\tint i = start[0];\n\t\tint j = start[1];\n\t\tif(visited[i][j])\n\t\t\treturn false;\n\t\tvisited[i][j] = true;\n\t\tBiPredicate<Integer, Integer> roll = (rowInc, colInc) -> {\n\t\t\tint ii = i, jj = j;\n\t\t\twhile(ii >= 0 && ii <= maze.length - 1 && jj >= 0 && jj <= maze[0].length - 1 && maze[ii][jj] != 1) {\n\t\t\t\tii += rowInc;\n\t\t\t\tjj += colInc;\n\t\t\t}\n\t\t\treturn dfs(maze, visited, new int[] {ii - rowInc, jj - colInc}, destination)\n\t\t};\n\t\tif(roll.test(1, 0)) return true;\n\t\tif(roll.test(-1, 0)) return true;\n\t\tif(roll.test(0, 1)) return true;\n\t\tif(roll.test(0, -1)) return true;\n\t\t\n\t\treturn false;\n\t}", "private boolean Visited(int depth, int row, int col ,boolean[][][] VisitedCells){\n if (VisitedCells[depth][row][col] == true)\n return true;\n return false;\n }", "public Boolean tryWalk(int nextX, int nextY) {\n List<Entity> obstacles = this.dungeon.getEntities().stream()\n .filter(o -> o != null && o.getX() == nextX && o.getY() == nextY)\n .collect(Collectors.toList());\n if (dungeon.isWall(nextX, nextY)) {\n if(dungeon.isBroken(nextX, nextY)) {\n return true;\n } else {\n return false;\n }\n }\n \n if (!obstacles.isEmpty()) {\n if ((obstacles.get(0) instanceof Switch)) {\n return true;\n } else {\n return false;\n } \n }\n return true;\n }", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "private boolean isLegalPos(int row, int col){\r\n return !(row < 0 || row > 7 || col < 0 || col > 7);\r\n }", "public int isIsland(int row, int col){\n if(grid[row][col] == '0'){\n return 0;\n }\n //Otherwise there is an island here and we need to recursively\n //flood fill 0s to prevent future double-counts.\n floodFill(row, col);\n return 1;\n \n }", "boolean checkJump(Move mov, boolean allowPartial) {\n if (!mov.isJump()) {\n return false;\n }\n PieceColor compare = get(mov.fromIndex()).opposite();\n PieceColor init = get(mov.fromIndex());\n ArrayList<Integer> record = new ArrayList<>();\n if (allowPartial) {\n return partialJump(mov);\n } else {\n Move rec = mov;\n while (rec != null) {\n PieceColor from = get(rec.fromIndex());\n PieceColor to = get(rec.toIndex());\n record.add(rec.toIndex());\n char mCol = rec.jumpedCol();\n char mRow = rec.jumpedRow();\n if (rec.fromIndex() % 2 == 0) {\n set(rec.fromIndex(), init);\n if (get(mCol, mRow)\n == compare && to == EMPTY) {\n set(rec.fromIndex(), from);\n rec = rec.jumpTail();\n } else {\n set(rec.fromIndex(), from);\n return false;\n }\n } else {\n set(rec.fromIndex(), init);\n if (index(mCol, mRow) % 2 == 0\n && get(mCol, mRow) == compare\n && to == EMPTY) {\n set(rec.fromIndex(), from);\n rec = rec.jumpTail();\n } else {\n set(rec.fromIndex(), from);\n return false;\n }\n }\n }\n for (int i : record) {\n set(i, init);\n }\n if (jumpPossible(record.get(record.size() - 1))) {\n for (int i : record) {\n set(i, EMPTY);\n }\n return false;\n }\n for (int i : record) {\n set(i, EMPTY);\n }\n return true;\n }\n }", "boolean isValidMove(int col);", "public boolean setPosition(){\n\n while(true){\n System.out.println(\"Enter Line: \");\n line = scanner.nextInt();\n System.out.println(\"Enter Column: \");\n column = scanner.nextInt();\n\n if(line>0 && line<9 && column>0 && column<9){\n if(boardgame[line][column]!='_')\n System.out.println(\"cell already selected\");\n else \n break;\n }else{\n System.out.println(\"Choose a number between 1 and 8\");\n }\n }\n if(getPosition(line, column)==-1)\n return true;\n else \n return false;\n }", "boolean FindUnassignedLocation(int grid[][], Point p)\n {\n int row=p.x,col=p.y;\n for (row = 0; row < N; row++)\n for (col = 0; col < N; col++)\n if (grid[row][col] == UNASSIGNED)\n {\n p.x=row;p.y=col;\n return true;\n }\n return false;\n }", "public boolean relieComposantes(int x, int y, String col)\n\t{\n\t\t\tif(getLesVoisins(x, y, col).getX() == x && getLesVoisins(x, y, col).getY() == y)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn (getLesVoisins(x, y, col).getCol() == tableauPeres_[x][y].getCol());\n\t\t\t}\n\t\t/*}*/\n\t\t/*if (x == 0)\n\t\t{\n\t\t \treturn (tableauPeres_[x+1][y].getCol() == tableauPeres_[x][y].getCol()\n\t\t \t\t|| tableauPeres_[x][y-1].getCol() == tableauPeres_[x][y].getCol()\n\t\t \t\t|| tableauPeres_[x][y+1].getCol() == tableauPeres_[x][y].getCol()\n\t\t \t\t|| tableauPeres_[x+1][y-1].getCol() == tableauPeres_[x][y].getCol()\n\t\t \t\t|| tableauPeres_[x+1][y+1].getCol() == tableauPeres_[x][y].getCol());\n\t\t}\n\t\telse if (y == 0)\n\t\t{\n\t\t\treturn (tableauPeres_[x+1][y].getCol() == tableauPeres_[x][y].getCol()\n\t\t\t\t|| tableauPeres_[x-1][y].getCol() == tableauPeres_[x][y].getCol()\n\t\t\t\t|| tableauPeres_[x][y+1].getCol() == tableauPeres_[x][y].getCol()\n\t\t\t\t|| tableauPeres_[x+1][y+1].getCol() == tableauPeres_[x][y].getCol()\n\t\t\t\t|| tableauPeres_[x-1][y+1].getCol() == tableauPeres_[x][y].getCol());\n\t\t}\n\t\telse if (x == 0 && y == 0)\n\t\t{\n\t\t\treturn (tableauPeres_[x+1][y].getCol() == tableauPeres_[x][y].getCol()\n\t\t\t\t|| tableauPeres_[x][y+1].getCol() == tableauPeres_[x][y].getCol()\n\t\t\t\t|| tableauPeres_[x+1][y+1].getCol() == tableauPeres_[x][y].getCol());\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn (tableauPeres_[x-1][y].getCol() == tableauPeres_[x][y].getCol()\n\t\t\t\t|| tableauPeres_[x+1][y].getCol() == tableauPeres_[x][y].getCol()\n\t\t\t\t|| tableauPeres_[x][y+1].getCol() == tableauPeres_[x][y].getCol()\n\t\t \t\t|| tableauPeres_[x][y-1].getCol() == tableauPeres_[x][y].getCol()\n\t\t \t\t|| tableauPeres_[x-1][y-1].getCol() == tableauPeres_[x][y].getCol()\n\t\t \t\t|| tableauPeres_[x+1][y-1].getCol() == tableauPeres_[x][y].getCol()\n\t\t \t\t|| tableauPeres_[x-1][y+1].getCol() == tableauPeres_[x][y].getCol()\n\t\t \t\t|| tableauPeres_[x+1][y+1].getCol() == tableauPeres_[x][y].getCol());\n\t\t}*/\n\t\t\n\n\t}", "public abstract boolean checkIfCellHasValue(int row, int col);" ]
[ "0.68586755", "0.6779791", "0.6675035", "0.6649165", "0.66297513", "0.65838116", "0.65298027", "0.64933777", "0.6435982", "0.64147", "0.63704467", "0.63233316", "0.6322987", "0.63135713", "0.6310812", "0.62953424", "0.6284914", "0.62651896", "0.62427634", "0.6241796", "0.6236315", "0.62253803", "0.62124825", "0.620828", "0.62042", "0.61987394", "0.61872715", "0.6185809", "0.61766464", "0.61762", "0.6172534", "0.616211", "0.6161503", "0.6159398", "0.61578447", "0.61565626", "0.61540246", "0.614964", "0.61473876", "0.6138671", "0.61327213", "0.612777", "0.60999745", "0.60995936", "0.609676", "0.6095229", "0.60871273", "0.60869235", "0.6085879", "0.60779774", "0.6064834", "0.6062367", "0.606107", "0.6057188", "0.6039064", "0.60389787", "0.60359174", "0.60319847", "0.6029804", "0.6028344", "0.60277027", "0.60198015", "0.60055554", "0.6005365", "0.6001889", "0.6000909", "0.60000193", "0.59765506", "0.5971175", "0.59704727", "0.59598774", "0.5940563", "0.59392345", "0.59349763", "0.593209", "0.5926674", "0.5925248", "0.59252065", "0.5924796", "0.5923966", "0.59228796", "0.5916517", "0.5913926", "0.59055126", "0.58995044", "0.5898519", "0.5891387", "0.58912086", "0.5890645", "0.58894354", "0.58894354", "0.58894354", "0.58894354", "0.5889064", "0.58876115", "0.5880683", "0.58726716", "0.5865523", "0.58622134", "0.58607584", "0.5859715" ]
0.0
-1
Returns false if not a valid position
private static boolean isValid(int x, int y) { if (x < M && y < N && x >= 0 && y >= 0) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isValidPosition(Point pos){\r\n return (0 <= pos.getFirst() && pos.getFirst() < 8 && \r\n 0 <= pos.getSecond() && pos.getSecond() < 8);\r\n }", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "private boolean validate(int position) {\n return ((position >= 0) && (position < this.values.length));\n }", "@Test\n public void testIsPositionValid() {\n assertFalse(this.board.isPositionValid(new Position(-1, -1)));\n assertFalse(this.board.isPositionValid(new Position(11, 11)));\n for (int line = 0; line < 11; line++) {\n for (int column = 0; column < 11; column++) {\n assertTrue(this.board.isPositionValid(new Position(line, column)));\n }\n }\n }", "private boolean checkPosition(int position) {\r\n\t\treturn position>size||position < 0;\r\n\t}", "public static boolean validPos(String moveTo)\n\t{\n\t\tfor(int rows = 0; rows < 8; rows++)\n\t\t{\n\t\t\tfor(int cols = 0; cols < 8; cols++)\n\t\t\t{\n\t\t\t\tif(posMap[rows][cols].equals(moveTo))\n\t\t\t\t{\t\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@java.lang.Override\n public boolean hasPosition() {\n return position_ != null;\n }", "@java.lang.Override\n public boolean hasPosition() {\n return position_ != null;\n }", "private boolean isValidMove(int position) {\n\t\tif( !(position >= 0) || !(position <= 8) ) return false;\n\n\t\treturn gameBoard[position] == 0;\n\t}", "private boolean isLegalPos(int row, int col){\r\n return !(row < 0 || row > 7 || col < 0 || col > 7);\r\n }", "public boolean someLegalPos() {\n return !legalPos.isEmpty();\n }", "private boolean isPositionIndex(final long index) {\r\n\t\treturn index >= 0 && index <= size;\r\n\t}", "public boolean isValidPosition(Position pos){\n\t\t// check whether the specified position is a valid position for the board\n\t\t// return true for valid positions and false for invalid ones\n\t\t// O(1)\n\t\tif((pos.getRow() >= 0 && pos.getRow() <= numRows) && (pos.getCol() >= 0 && pos.getCol() <= numCols)) { //If the row and columns are within the bounds then it returns true\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasPosition() {\n return positionBuilder_ != null || position_ != null;\n }", "public boolean hasPosition() {\n return positionBuilder_ != null || position_ != null;\n }", "boolean judgeValid()\r\n\t{\r\n\t\tif(loc.i>=0 && loc.i<80 && loc.j>=0 && loc.j<80 && des.i>=0 && des.i<80 && des.j>=0 && des.j<80)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t\t\r\n\t}", "public boolean hasStartPosition() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "private boolean isThereValidMove() {\n\t\treturn true;\n\t}", "public boolean hasStartPosition() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "boolean hasEndPosition();", "boolean hasEndPosition();", "public boolean isInCorrectPosition() {\n return originalPos == currentPos;\n }", "private boolean isLegalPositon(Position checkPosition){\n if (checkPosition.equalPosition(start)||checkPosition.equalPosition(end))\n return true;\n if(checkPosition.getRow()<0 || checkPosition.getCol()<0 || checkPosition.getRow()>=this.rows || checkPosition.getCol() >= this.cols){\n return false;\n }\n\n if(maze[checkPosition.getRow()][checkPosition.getCol()]== WallType.wall){\n return false;\n }\n return true;\n }", "public boolean isPosValid(int x, int y, int tokNum, int rotNum) {\n int [] xArray = xRotations[tokNum][rotNum];\n int [] yArray = yRotations[tokNum][rotNum];\n \n for (int i = 0; i < 4; i++) {\n \n //Positions to check \n int xIndex = x+xArray[i];\n int yIndex = y+yArray[i];\n \n //Check range\n if (xIndex < 0) return false;\n if (xIndex >= 10) return false;\n if (yIndex < 0) return false;\n if (yIndex >= 20) return false;\n \n //Check to see if space is occupied\n if (gameBoard[xIndex][yIndex] == 1) return false;\n }\n\n return true;\n }", "boolean hasPositionX();", "boolean hasPositionX();", "boolean hasPositionX();", "@Model\n private boolean isValidPosition(double position){\n\t if (this.superWorld == null) return (!Double.isNaN(position));\n\t else return Helper.isValidDouble(position);\n }", "boolean hasStartPosition();", "boolean hasStartPosition();", "protected boolean isValid() {\n \t\t\treturn fStart > -1 && fEnd > -1 && fText != null;\n \t\t}", "public boolean isSetPos() {\n return this.pos != null;\n }", "public boolean isSetPos() {\n return this.pos != null;\n }", "public boolean hasPosition() {\n return fieldSetFlags()[7];\n }", "boolean isSetBeginPosition();", "protected boolean validCoord(int row, int col) {\n\t\treturn (row >= 0 && row < b.size() && col >= 0 && col < b.size());\n\t}", "private boolean positionExists(int row, int column) {\n\t\treturn row >= 0 && row < rows && column >= 0 && column < columns;\n\t}", "@Override\n\tpublic boolean isLegalMove(Square newPosition) {\n\t\treturn false;\n\t}", "boolean validateOffset() {\n\t\t\tint num = entriesByIndex.size() + 1; // assuming 0, plus 1-N)\n\t\t\tfor (int index : entriesByIndex.keySet()) {\n\t\t\t\tif (index > num || index < 0) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "private boolean isMoveValid (int rows, int columns) {\n return rows < this.rows && columns < this.columns && rows >= 0 && columns >= 0;\n }", "@Override\n\tpublic boolean isMoveValid(int srcRow, int srcCol, int destRow, int destCol) {\n\t\treturn false;\n\t}", "boolean isInternal(Position<E> p) throws IllegalArgumentException;", "public boolean isPositionValid(String position) {\n boolean isActive = false;\n PositionVVOImpl positionVO =\n (PositionVVOImpl)findValidationViewObject(\"PositionVVO1\");\n positionVO.initQuery(position);\n\n // Just do a simple existence check. If you don't find a\n // match, return false.\n if (positionVO.hasNext()) {\n isActive = true;\n }\n return isActive;\n }", "public boolean hasPositionX() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean isPositionValid(){\n\t\t//check overlapping with walls\n\t\tfor(Wall wall : Game.gameField.getWalls()){\n\t\t\tif(wall.overlaps(center))\n\t\t\t\treturn false;\n\t\t}\n\t\t//check overlapping with other balls\n\t\tfor(Ball ball : Game.gameField.getBalls()){\n\t\t\tif(ball == this)\n\t\t\t\tcontinue;\n\t\t\tif(ball.getCenterPoint().distance(center) < RADIUS * 2)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn GameField.FIELD.contains(center);\n\t}", "public boolean hasPositionX() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasPositionX() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasPositionX() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasPositionX() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasPositionX() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "@Override\n\tpublic boolean isLast(Position P) throws InvalidPositionException {\n\t\treturn false;\n\t}", "public boolean atPosition() {\n return m_X.getClosedLoopError() < Constants.k_ToleranceX;\n }", "public boolean hasValidPoint() {\n return mPoint.x != 0 || mPoint.y != 0;\n }", "public boolean isPositionValid(int row, int col, int value){\n return !isInRow(row, value) && !isInCol(col, value) && !isInBox(row, col, value);\n }", "private boolean isValidPos(List<Integer> sol) {\n int row = sol.size() - 1;\n int col = sol.get(row);\n \n for (int i = 0; i < row; i++) {\n // we are sure that there will be no conflict in the same row\n // check vertical line, and diagonal line\n if (col == sol.get(i) || Math.abs(col - sol.get(i)) == row - i) {\n return false;\n }\n }\n return true;\n }", "boolean isSetEndPosition();", "private boolean isValidMove(int i, int j) {\n\t\tint rowDelta = Math.abs(i - row);\n\t\tint colDelta = Math.abs(j - col);\n\n\t\tif ((rowDelta == 1) && (colDelta == 0)) {\n\t\t\tinvalidMoveLbl.setVisible(false);\n\t\t\treturn true;\n\t\t}\n\t\tif ((colDelta == 1) && (rowDelta == 0)) {\n\t\t\tinvalidMoveLbl.setVisible(false);\n\t\t\treturn true;\n\t\t}\n\t\tinvalidMoveLbl.setVisible(true);\n\t\treturn false;\n\t}", "private boolean indexIsValid(int index) {\n\t\tif (index > -1 && index < text.length())\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean isValidMove(String move){\n String[] art = move.split(\" \");\n if(!art[0].equals(\"mark\")){\n return false;\n }\n int x,y;\n try {\n x=Integer.parseInt(art[1]);\n y=Integer.parseInt(art[2]);\n if(0<x && x<17 && y>0 && 17>y){\n if(board.getMark(x-1,y-1) == '-') {\n //pozitie valida si libera\n return true;\n }\n else {\n //pozitie ocupata\n return false;\n }\n }\n }catch (Exception e){\n //cazul in care nu se trimit numere ca parametri\n return false;\n }\n //daca pozitia este invalida\n return false;\n }", "public boolean isValidMove(Coordinates coordinates) {\n if (grid[coordinates.getRow()][coordinates.getColumn()].getSymbol() != 'X' &&\n grid[coordinates.getRow()][coordinates.getColumn()].getSymbol() != 'O') {\n return true;\n }\n\n return false;\n }", "protected abstract boolean isMarkerPositionInternal(int index);", "private boolean isLegalCoordinate(int row, int col) {\n return row > 0 && row <= getSize() && col > 0 && col <= getSize();\n }", "private boolean legalMove() {\n\n\t\t// empty landing spot\n\t\tif (tilePath.size() == 0) {\n\t\t\tdebug(\"illegal, empty landing spot\");\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!mBoard.tileIsEmpty(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, tile not empty\");\n\t\t\treturn false;\n\t\t}\n\n\t\t// start doesn't equal end\n\t\tif (tilePath.get(0).equals(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, start doesn't equal end\");\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "protected void validatePosition(long position, long size) throws IOException {\n if (position < 0) {\n throw new EOFException(\n String.format(\n \"Invalid seek offset: position value (%d) must be >= 0 for '%s'\",\n position, resourceId));\n }\n\n if (size >= 0 && position >= size) {\n throw new EOFException(\n String.format(\n \"Invalid seek offset: position value (%d) must be between 0 and %d for '%s'\",\n position, size, resourceId));\n }\n }", "protected boolean canMove(int pos) {\n\t\tString[] directions = getDirectionsFor(pos).split(\",\");\n\t\tfor(String strlabel : directions){\n\t\t\tint label = Integer.parseInt(strlabel);\n\t\t\tif(label == blank)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isLegalMove() {\n return iterator().hasNext();\n }", "private boolean isCursorValid(Cursor cursor) {\n if (cursor.isClosed() || cursor.isBeforeFirst() || cursor.isAfterLast()) {\n return false;\n }\n return true;\n }", "private boolean isOutOfBounds(int row, int col) {\n if (row < 0 || row >= this.getRows()) {\n return true;\n }\n else if (col < 0 || col >= this.getColumns()) {\n return true;\n }\n else {\n return false; // the placement is valid\n }\n }", "private boolean isNearToEndPosition() {\n switch (direction) {\n case UP:\n return posY <= endPosition;\n case DOWN:\n return posY >= endPosition;\n case LEFT:\n return posX <= endPosition;\n case RIGHT:\n return posX >= endPosition;\n }\n throw new RuntimeException(\"Unknown position\");\n }", "public static boolean isValidPlace(int[] setPos){\n if(setPos[0]<=4 && setPos[0]>=0)\n return (setPos[1]<=4 && setPos[1]>=0);\n return false;\n }", "public boolean hasPositionCall() {\n if (_left.hasPositionCall()) return true;\n if (_right.hasPositionCall()) return true;\n return false;\n }", "public boolean canMove() {\n\n\tArrayList<Location> moveLocs = getValid(getLocation());\n\n\tif (isEnd == true) {\n\t return false;\n\t} \n\tif (!moveLocs.isEmpty()) {\n\t \n\t randomSelect(moveLocs);\n\t // selectMoveLocation(moveLocs);\n\t return true;\n\n\t} else {\n\t return false;\n\t}\n }", "private boolean validIndex(int index)\n {\n if(index >= 0 && index < songs.size())\n return true;\n else\n {\n System.out.println(\"not valid number as index\");\n return false;\n }\n }", "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}", "public abstract boolean isInternal(Position<E> p);", "private boolean checkNoDataAfterEnd(long pos) {\n if (!bytes.inside(pos, 4L))\n return true;\n if (pos <= bytes.writeLimit() - 4) {\n final int value = bytes.bytesStore().readVolatileInt(pos);\n if (value != 0) {\n String text;\n long pos0 = bytes.readPosition();\n try {\n bytes.readPosition(pos);\n text = bytes.toDebugString();\n } finally {\n bytes.readPosition(pos0);\n }\n throw new IllegalStateException(\"Data was written after the end of the message, zero out data before rewinding \" + text);\n }\n }\n return true;\n }", "public boolean isValidPosition(Rectangular r) {\n\t\tLine AB = new Line(A1, B1);\n\t\tLine CD = new Line(C1, AB.getU());\n\t\tLine AD = new Line(A1, D1);\n\t\tLine BC = new Line(B1, AD.getU());\n\n\t\tif (isInRect2(AB, CD, AD, BC, r.getA1()))\n\t\t\treturn true;\n\t\tif (isInRect2(AB, CD, AD, BC, r.getB1()))\n\t\t\treturn true;\n\t\tif (isInRect2(AB, CD, AD, BC, r.getC1()))\n\t\t\treturn true;\n\t\tif (isInRect2(AB, CD, AD, BC, r.getD1()))\n\t\t\treturn true;\n\n\t\treturn false;\n\t}", "public boolean isSetPositionX() {\r\n return EncodingUtils.testBit(__isset_bitfield, __POSITIONX_ISSET_ID);\r\n }", "public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }", "boolean hasOffset();", "public boolean checkValidCoordinate(int i, int j)\n\t{\n\t\tif(i>=0 && i<this.numberOfRows && j>=0 && j<this.numberOfColumns)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean wrongPositioning(int x, int y, LoadedMap map) {\n boolean ans = false;\n if(hasAbove(x, y, map)&&(hasLeft(x, y, map)||hasRight(x, y, map))){\n ans = true;\n }else if (hasBelow(x, y, map)&&(hasLeft(x, y, map)||hasRight(x, y, map))) {\n ans = true;\n }\n return ans;\n }", "public boolean isClose(Position pos) {\n return this.row - pos.row >= -1 && this.row - pos.row <= 1 && this.column - pos.column >= -1 && this.column - pos.column <= 1;\n }", "private boolean isEditValid ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint value = Integer.parseInt (super.getText ());\r\n\t\t\tboolean isValid = isInsideValidRange (value);\r\n\r\n\t\t\tif (isValid)\r\n\t\t\t{\r\n\t\t\t\tcommitEdit (value);\r\n\t\t\t}\r\n\r\n\t\t\treturn (isValid);\r\n\t\t}\r\n\t\tcatch (NumberFormatException e)\r\n\t\t{\r\n\t\t\t// Parse failed; therefore invalid\r\n\t\t\treturn (false);\r\n\t\t}\r\n\t}", "public void testPosition() {\n System.out.println(\"position\");\n BufferedCharSequence instance = null;\n int expResult = 0;\n int result = instance.position();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public boolean validIndex(int idx) {\n return idx >= 0 && idx < len;\n }", "public boolean isValidMove(CardStack stack)\n {\n return false;\n }", "public boolean isValidMove(int toRow,int toCol){\n //Stayed in the same spot\n if(myRow == toRow && myCol == toCol){\n return false;\n }\n //if the xy coordinate we are moving to is outside the board\n if(toRow < 0 || toRow > 11 || toCol < 0 || toCol > 11){\n return false;\n }\n return true;\n }", "public boolean hasStartPositions(int player)\r\n/* 399: */ {\r\n/* 400:470 */ ArrayList<StartPositionModel> models = getStartPositions(player);\r\n/* 401:472 */ for (StartPositionModel model : models) {\r\n/* 402:474 */ if ((model.isOpen()) && (getAgentOnTile(model.getX(), model.getY()) == null)) {\r\n/* 403:476 */ return true;\r\n/* 404: */ }\r\n/* 405: */ }\r\n/* 406:479 */ return false;\r\n/* 407: */ }", "private boolean isLegal(String move) {\n if (!move.matches(\"[0-9]*,[0-9]*\")) {\n return false;\n }\n\n int column = Integer.parseInt(move.substring(2)) - 1;\n int row = Integer.parseInt(move.substring(0, 1)) - 1;\n\n if (beyondBoard(column, row)) {\n return false;\n }\n\n if (isOccupied(column, row)) {\n return false;\n }\n\n return true;\n }", "boolean hasTargetPos();", "private boolean isValidPosition(RotorPosition positionToValidate) {\n return !((positionToValidate == RotorPosition.GREEK && numberOfRotors != 4)\n || positionToValidate == RotorPosition.REFLECTOR);\n }", "public boolean isValid() {\n\t\treturn (x >= 0 && x < Board.SIZE && y >= 0 && y < Board.SIZE);\n\t}", "public boolean canMoveTo(Position position){\n if(position.x > mapSize.x || position.x < 0 || position.y > mapSize.y || position.y < 0){\n return false;\n }\n return !isOccupied(position);\n }", "public static boolean isValid(int pos) {\n\n\t\t// Start at index jobsChosen-1 and go down to 0\n\t\tfor (int i = jobsChosen - 1; i >= 0; i--) {\n\t\t\tif (pos == currentCombo[i]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// Test passed, return true,position is not interfering with others\n\t\treturn true;\n\t}", "public boolean isValid(String startPos, String destPos, Board b){\n\t\t\n\t\tint prevx = Main.converttoMove(String.valueOf(startPos.charAt(0)));\n\t\tint prevy = Integer.valueOf(String.valueOf(startPos.charAt(1)));\n\t\tint tox = Main.converttoMove(String.valueOf(destPos.charAt(0)));\n\t\tint toy = Integer.valueOf(String.valueOf(destPos.charAt(1)));\n\t\t\n\t\tArrayList<Move> moves = getPossibleMoves(startPos, b);\n\t\tfor(Move m :moves) {\n\t\t\tif(m.getToX() == tox && m.getToY() == toy) {\n\t\t\t\treturn true;//or we could return the Move/null, which will tell us the populated info of the Move object (piecetaken/promotion of whatever)\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "boolean isValidMove(int col);", "boolean isValidMove(int move)\n\t{\n\t\treturn move >= 0 && move <= state.size() - 1 && state.get(move) == 0;\n\t}" ]
[ "0.76883996", "0.7527309", "0.7527309", "0.7527309", "0.7527309", "0.75262636", "0.7434391", "0.74244857", "0.7292485", "0.7146059", "0.7146059", "0.7094296", "0.69705224", "0.6964137", "0.69480795", "0.6910443", "0.68979245", "0.68979245", "0.68781054", "0.6865954", "0.68535316", "0.6839522", "0.68310463", "0.68310463", "0.68262005", "0.6759597", "0.675573", "0.6748644", "0.6748644", "0.6748644", "0.674209", "0.67153037", "0.67153037", "0.66983986", "0.66921556", "0.66921556", "0.6691124", "0.66537166", "0.6618717", "0.65964264", "0.6578676", "0.65764534", "0.6566253", "0.6564805", "0.65501994", "0.65326107", "0.6531793", "0.6519847", "0.65183944", "0.65172714", "0.6514975", "0.65059704", "0.65048397", "0.6487468", "0.6482083", "0.6467645", "0.64597315", "0.6422675", "0.6414937", "0.6396179", "0.6380108", "0.6371123", "0.6365767", "0.63648516", "0.6344685", "0.63403434", "0.633728", "0.6306946", "0.62969947", "0.62872565", "0.62855095", "0.62752193", "0.62621874", "0.6261443", "0.62576085", "0.62565506", "0.62369335", "0.62277186", "0.6222323", "0.62207425", "0.62106395", "0.6198449", "0.6197031", "0.61968887", "0.61957043", "0.6181681", "0.61808515", "0.6176196", "0.61758834", "0.6175372", "0.61642754", "0.61583316", "0.61549", "0.6152743", "0.61520666", "0.6149647", "0.6145241", "0.6143177", "0.61421174", "0.6139556", "0.6130242" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { root = inflater.inflate(R.layout.fragment_attention, container, false); listView = root.findViewById(R.id.viewAttention); btnAdd = root.findViewById(R.id.btnAdd); btnAdd.setOnClickListener(this); attentionDao = new AttentionDao(getContext()); items = new ArrayList<>(); List<AttentionRecord> tmp = attentionDao.getAll(); for(int i = 0; i < tmp.size(); i ++){ AttentionRecord e = tmp.get(i); Map<String,Object> item = new HashMap<>(); item.put("id",e.id); item.put("addTime",e.addTime); items.add(item); } MyAttentionApt simpleAdapter = new MyAttentionApt(getActivity(),items,R.layout.simple_item_attention, new String[]{"id","addTime"}, new int[]{R.id.itemId,R.id.itemAddTime}); listView.setAdapter(simpleAdapter); listView.setOnItemLongClickListener(onItemLongClickListener); return root; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
/ access modifiers changed from: protected
public final void zza(zze zze, TaskCompletionSource<String> taskCompletionSource) throws RemoteException { taskCompletionSource.setResult(zze.zzbr()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\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}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private TMCourse() {\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }" ]
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.6406691", "0.6402136", "0.6400287", "0.63977665", "0.63784796", "0.6373787", "0.63716805", "0.63680965", "0.6353791", "0.63344383", "0.6327005", "0.6327005", "0.63259363", "0.63079315", "0.6279023", "0.6271251", "0.62518364", "0.62254924", "0.62218183", "0.6213994", "0.6204108", "0.6195944", "0.61826825", "0.617686", "0.6158371", "0.6138765", "0.61224854", "0.6119267", "0.6119013", "0.61006695", "0.60922325", "0.60922325", "0.6086324", "0.6083917", "0.607071", "0.6070383", "0.6067458", "0.60568124", "0.6047576", "0.6047091", "0.60342956", "0.6031699", "0.6026248", "0.6019563", "0.60169774", "0.6014913", "0.6011912", "0.59969044", "0.59951806", "0.5994921", "0.599172", "0.59913194", "0.5985337", "0.59844744", "0.59678656", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.59647757", "0.59647757", "0.59616375", "0.5956373", "0.5952514", "0.59497356", "0.59454703", "0.5941018", "0.5934147", "0.5933801", "0.59318185", "0.5931161", "0.5929297", "0.5926942", "0.5925829", "0.5924853", "0.5923296", "0.5922199", "0.59202504", "0.5918595" ]
0.0
-1
Interfaccia di politica di sconto
public interface Sconto { /** * Restituisce il valore dello sconto * @param costoIntero costo di tutti i biglietti snza sconto * @return importo dello sconto */ public double getImportoSconto(double costoIntero); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public void statoIniziale()\n {\n int r, c;\n for (r=0; r<DIM_LATO; r++)\n for (c=0; c<DIM_LATO; c++)\n {\n if (eNera(r,c))\n {\n if (r<3) // le tre righe in alto\n contenutoCaselle[r][c] = PEDINA_NERA;\n else if (r>4) // le tre righe in basso\n contenutoCaselle[r][c] = PEDINA_BIANCA;\n else contenutoCaselle[r][c] = VUOTA; // le 2 righe centrali\n }\n else contenutoCaselle[r][c] = VUOTA; // caselle bianche\n }\n }", "public Coup coupIA() {\n\n int propriete = TypeCoup.CONT.getValue();\n int bloque = Bloque.NONBLOQUE.getValue();\n Term A = intArrayToList(plateau1);\n Term B = intArrayToList(plateau2);\n Term C = intArrayToList(piecesDispos);\n Variable D = new Variable(\"D\");\n Variable E = new Variable(\"E\");\n Variable F = new Variable(\"F\");\n Variable G = new Variable(\"G\");\n Variable H = new Variable(\"H\");\n org.jpl7.Integer I = new org.jpl7.Integer(co.getValue());\n q1 = new Query(\"choixCoupEtJoue\", new Term[] {A, B, C, D, E, F, G, H, I});\n\n\n if (q1.hasSolution()) {\n Map<String, Term> solution = q1.oneSolution();\n int caseJ = solution.get(\"D\").intValue();\n int pion = solution.get(\"E\").intValue();\n Term[] plateau1 = listToTermArray(solution.get(\"F\"));\n Term[] plateau2 = listToTermArray(solution.get(\"G\"));\n Term[] piecesDispos = listToTermArray(solution.get(\"H\"));\n for (int i = 0; i < 16; i++) {\n if (i < 8) {\n this.piecesDispos[i] = piecesDispos[i].intValue();\n }\n this.plateau1[i] = plateau1[i].intValue();\n this.plateau2[i] = plateau2[i].intValue();\n }\n\n int ligne = caseJ / 4;\n int colonne = caseJ % 4;\n\n if (pion == 1 || pion == 5) {\n pion = 1;\n }\n if (pion == 2 || pion == 6) {\n pion = 0;\n }\n if (pion == 3 || pion == 7) {\n pion = 2;\n }\n if (pion == 4 || pion == 8) {\n pion = 3;\n }\n\n\n Term J = intArrayToList(this.plateau1);\n q1 = new Query(\"gagne\", new Term[] {J});\n System.out.println(q1.hasSolution() ? \"Gagné\" : \"\");\n if (q1.hasSolution()) {\n propriete = 1;\n }\n return new Coup(bloque,ligne, colonne, pion, propriete);\n }\n System.out.println(\"Bloqué\");\n return new Coup(1,0, 0, 0, 3);\n }", "public int[] choisir(int[] coord)\r\n {\r\n int[] res = new int[3]; //tableau a rendre\r\n int x = coord[0];\r\n int y = coord[1]; //récupération des coordonnées\r\n int[] voisinage= new int[4]; //tableau qui regardera les cases adjacentes à la case cherchée\r\n voisinage[0] = getValHaut(x,y);\r\n voisinage[1] = getValDroite(x,y);\r\n voisinage[2] = getValBas(x,y);\r\n voisinage[3] = getValGauche(x,y);\r\n System.out.println(\"je choisis la case \"+x+\" \"+y+\"\");\r\n for(int i = 0; i<voisinage.length; i++ ) //parcours des possibilités si on joue sans créer d'opportunités adverses\r\n {\r\n if (Vision[x][y][i+1] == 0) //si il n'y a pas de trait déja tracé\r\n {\r\n if (voisinage[i] != 2) //si la case adjacente n'a pas déja deux traits dessinés\r\n {\r\n switch (i) //switch pour réagir selon la case a jouer\r\n {\r\n case 0:\r\n res[0]=x;\r\n res[1]=y;\r\n break;\r\n\r\n case 1:\r\n res[0]=x+1;\r\n res[1]=y;\r\n break;\r\n\r\n case 2:\r\n res[0]=x;\r\n res[1]=y+1;\r\n break;\r\n\r\n case 3:\r\n res[0]=x;\r\n res[1]=y;\r\n break;\r\n }\r\n //fin du switch sur i\r\n\r\n res[2]=i%2;\r\n return res;\r\n }\r\n //fin du si la case adjacente a déja 2 traits dessinés\r\n }\r\n //si il n'y a pas de trait déja tracé\r\n }\r\n //fin du for de parcours des possibilités de jouers sans créer d'opportunités adverses\r\n\r\n for(int i=0; i<voisinage.length ; i++ ) //Parcours des possibilités sans recherche d'opportunités\r\n {\r\n if (Vision[x][y][i+1] == 0) {\r\n switch (i) //switch pour réagir selon la case a jouer\r\n {\r\n case 0:\r\n res[0]=x;\r\n res[1]=y;\r\n break;\r\n\r\n case 1:\r\n res[0]=x+1;\r\n res[1]=y;\r\n break;\r\n\r\n case 2:\r\n res[0]=x;\r\n res[1]=y+1;\r\n break;\r\n\r\n case 3:\r\n res[0]=x;\r\n res[1]=y;\r\n break;\r\n }\r\n //fin du switch sur i\r\n\r\n res[2]=i%2;\r\n return res;\r\n }\r\n }\r\n //fin du parcours de possibilité sans recherche\r\n return tabVide;\r\n }", "public void affichageSolution() {\n\t\t//On commence par retirer toutes les traces pré-existantes du labyrinthe\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Trace) {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j] = new Case();\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//On parcourt toutes les cases du labyrinthe. Si on trouve un filon non extrait dont le chemin qui le sépare au mineur est plus petit que shortestPath, on enregistre la longueur du chemin ainsi que les coordonnees de ledit filon\n\t\tint shortestPath = Integer.MAX_VALUE;\n\t\tint[] coordsNearestFilon = {-1,-1};\n\t\tfor (int i=0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j=0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Filon && ((Filon)this.laby.getLabyrinthe()[i][j]).getExtrait() == false) {\n\t\t\t\t\tif (this.laby.solve(j,i) != null) {\n\t\t\t\t\t\tint pathSize = this.laby.solve(j,i).size();\n\t\t\t\t\t\tif (pathSize < shortestPath) {\n\t\t\t\t\t\t\tshortestPath = pathSize;\n\t\t\t\t\t\t\tcoordsNearestFilon[0] = j;\n\t\t\t\t\t\t\tcoordsNearestFilon[1] = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Si il n'y a plus de filon non extrait atteignable, on cherche les coordonnes de la clef\n\t\tif (coordsNearestFilon[0] == -1) {\n\t\t\tcoordsNearestFilon = this.laby.getCoordsClef();\n\t\t\t//Si il n'y a plus de filon non extrait atteignable et que la clef a deja ouvert la porte, on cherche les coordonnes de la sortie\n\t\t\tif (coordsNearestFilon == null)\tcoordsNearestFilon = this.laby.getCoordsSortie();\n\t\t}\n\n\t\t//On cree une pile qui contient des couples de coordonnees qui correspondent a la solution, puis on depile car le dernier element est l'objectif vise\n\t\tStack<Integer[]> solution = this.laby.solve(coordsNearestFilon[0], coordsNearestFilon[1]);\n\t\tsolution.pop();\n\n\t\t//Tant que l'on n'arrive pas au premier element de la pile (cad la case ou se trouve le mineur), on depile tout en gardant l'element depile, qui contient les coordonnees d'une trace que l'on dessine en suivant dans la fenetre\n\t\twhile (solution.size() != 1) {\n\t\t\tInteger[] coordsTmp = solution.pop();\n\t\t\tTrace traceTmp = new Trace();\n\t\t\tthis.laby.getLabyrinthe()[coordsTmp[1]][coordsTmp[0]] = new Trace();\n\t\t\t((JLabel)grille.getComponents()[coordsTmp[1]*this.laby.getLargeur()+coordsTmp[0]]).setIcon(traceTmp.imageCase());\n\t\t}\n\t\tSystem.out.println(\"\\n========================================== SOLUTION =====================================\\n\");\n\t\tthis.affichageLabyrinthe();\n\t}", "public Scacchiera()\n {\n contenutoCaselle = new int[DIM_LATO][DIM_LATO];\n statoIniziale();\n }", "public void sueldo(){\n if(horas <= 40){\n sueldo = horas * cuota;\n }else {\n if (horas <= 50) {\n sueldo = (40 * cuota) + ((horas - 40) * (cuota * 2));\n } else {\n sueldo = ((40 * cuota) + (10 * cuota * 2)) + ((horas - 50) + (cuota * 3));\n }\n }\n\n }", "public void Semantica() {\r\n int var, etq;\r\n double marca, valor;\r\n double[] punto = new double[3];\r\n double[] punto_medio = new double[2];\r\n\r\n /* we generate the fuzzy partitions of the variables */\r\n for (var = 0; var < n_variables; var++) {\r\n marca = (extremos[var].max - extremos[var].min) /\r\n ((double) n_etiquetas[var] - 1);\r\n for (etq = 0; etq < n_etiquetas[var]; etq++) {\r\n valor = extremos[var].min + marca * (etq - 1);\r\n BaseDatos[var][etq].x0 = Asigna(valor, extremos[var].max);\r\n valor = extremos[var].min + marca * etq;\r\n BaseDatos[var][etq].x1 = Asigna(valor, extremos[var].max);\r\n BaseDatos[var][etq].x2 = BaseDatos[var][etq].x1;\r\n valor = extremos[var].min + marca * (etq + 1);\r\n BaseDatos[var][etq].x3 = Asigna(valor, extremos[var].max);\r\n BaseDatos[var][etq].y = 1;\r\n BaseDatos[var][etq].Nombre = \"V\" + (var + 1);\r\n BaseDatos[var][etq].Etiqueta = \"E\" + (etq + 1);\r\n }\r\n }\r\n }", "public void aggiornaPropulsori(){\n xPropulsore1=new int[]{xCord[0],xCord[0]};\n yPropulsore1=new int[]{yCord[0],yCord[0]+15}; \n xPropulsore2=new int[]{xCord[2],xCord[2]}; \n yPropulsore2=new int[]{yCord[2],yCord[2]+15};\n \n }", "private void aggiornaContiFiglioRicorsivamente(Conto contoPadre) {\n\t\tString methodName = \"aggiornaContiFiglioRicorsivamente\";\n\t\tcontoPadre.setDataInizioValiditaFiltro(this.conto.getDataInizioValidita());\n\t\t\n\t\tListaPaginata<Conto> contiFiglio = contoDad.ricercaSinteticaContoFigli(contoPadre, new ParametriPaginazione(0,Integer.MAX_VALUE));\n\t\tfor (Conto contoFiglio : contiFiglio) {\n\t\t\t\n\t\t\t//TODO aggiungere qui tutti i parametri da ribaltare sui conti figli.\n\t\t\tcontoFiglio.setAttivo(contoPadre.getAttivo()); //in analisi c'è solo questo parametro!\n\t\t\t\n\t\t\tif(isContoDiLivelloDiLegge()) {\n\t\t\t\tlog.debug(methodName, \"Conto di livello di legge: aggiorno tutti i campi del figlio \" + contoFiglio.getCodice());\n\t\t\t\t\n\t\t\t\t//TODO controllare eventuali altri parametri da ribaltare ai conti figlio.\n\t\t\t\tcontoFiglio.setElementoPianoDeiConti(contoPadre.getElementoPianoDeiConti());\n\t\t\t\tcontoFiglio.setCategoriaCespiti(contoPadre.getCategoriaCespiti());\n\t\t\t\tcontoFiglio.setTipoConto(contoPadre.getTipoConto());\n\t\t\t\tcontoFiglio.setTipoLegame(contoPadre.getTipoLegame());\n\t\t\t\tcontoFiglio.setContoAPartite(contoPadre.getContoAPartite());\n\t\t\t\tcontoFiglio.setContoDiLegge(contoPadre.getContoDiLegge());\n\t\t\t\tcontoFiglio.setCodiceBilancio(contoPadre.getCodiceBilancio());\n\t\t\t\tcontoFiglio.setContoCollegato(contoPadre.getContoCollegato());\n\t\t\t} else {\n\t\t\t\tlog.debug(methodName, \"Conto NON di livello di legge: aggiorno solo il flag Attivo del figlio \" + contoFiglio.getCodice());\n\t\t\t}\n\t\t\t\n\t\t\tcontoDad.aggiornaConto(contoFiglio);\n\t\t\tlog.debug(methodName, \"Aggiornato conto figlio: \"+ contoFiglio.getCodice());\n\t\t\taggiornaContiFiglioRicorsivamente(contoFiglio);\n\t\t}\n\t}", "void imprimeValores(){\n System.out.println(\"coordenada del raton:(\"+pratonl[0][0]+\",\"+pratonl[0][1]+\")\");\n System.out.println(\"coordenada del queso:(\"+pquesol[0][0]+\",\"+pquesol[0][1]+\")\");\n imprimeCalculos();//imprime la diferencia entre las X y las Y de las coordenadas\n movimiento();\n }", "@SuppressWarnings(\"unused\")\r\n private void findAbdomenVOI() {\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n\r\n ArrayList<Integer> xValsAbdomenVOI = new ArrayList<Integer>();\r\n ArrayList<Integer> yValsAbdomenVOI = new ArrayList<Integer>();\r\n\r\n // angle in radians\r\n double angleRad;\r\n \r\n for (int angle = 39; angle < 45; angle += 3) {\r\n int x, y, yOffset;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n scaleFactor = Math.tan(angleRad);\r\n x = xDim;\r\n y = ycm;\r\n yOffset = y * xDim;\r\n while (x > xcm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n x--;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n x = xcm;\r\n y = 0;\r\n yOffset = y * xDim;\r\n while (y < ycm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n y++;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n x = 0;\r\n y = ycm;\r\n yOffset = y * xDim;\r\n while (x < xcm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n x++;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 225 && angle <= 315) {\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n x = xcm;\r\n y = yDim;\r\n yOffset = y * xDim;\r\n while (y < yDim && sliceBuffer[yOffset + x] == abdomenTissueLabel) {\r\n y--;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n }\r\n } // end for (angle = 0; ...\r\n \r\n int[] x1 = new int[xValsAbdomenVOI.size()];\r\n int[] y1 = new int[xValsAbdomenVOI.size()];\r\n int[] z1 = new int[xValsAbdomenVOI.size()];\r\n for(int idx = 0; idx < xValsAbdomenVOI.size(); idx++) {\r\n x1[idx] = xValsAbdomenVOI.get(idx);\r\n y1[idx] = xValsAbdomenVOI.get(idx);\r\n z1[idx] = 0;\r\n }\r\n\r\n // make the VOI's and add the points to them\r\n abdomenVOI = new VOI((short)0, \"Abdomen\");\r\n abdomenVOI.importCurve(x1, y1, z1);\r\n\r\n\r\n }", "@Override\n public void interagit() {\n super.interagit();\n ArrayList<EtreVivant> cibles = this.ciblesPotentiellesAdjacentes(this.getPosition(),this.nombreVoisins);\n cibles.stream().filter((vivants) -> (vivants.getEtat().equals(EtatEtreVivant.MALADE))).forEach((vivants) -> {\n this.soigne(vivants);\n });\n }", "public void pulisci() {\n Cella c;\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n c = getElementAt(griglia, i, j);\n c.cerchio.setVisible(false);\n }\n }\n }", "public void stampaScacchiera(String titolo)\n {\n System.out.println(titolo);\n System.out.println(\"=== Scacchiera \" +DIM_LATO+ \"x\" +DIM_LATO+ \" ===\");\n int r,c;\n for (r=0; r<DIM_LATO; r++)\n {\n for (c=0; c<DIM_LATO; c++) System.out.print(\"--\");\n System.out.println(\"-\");\n for (c=0; c<DIM_LATO; c++)\n {\n switch (contenuto(r,c))\n {\n case PEDINA_BIANCA: System.out.print(\"|b\"); break;\n case PEDINA_NERA: System.out.print(\"|n\"); break; \n case DAMA_BIANCA: System.out.print(\"|B\"); break; \n case DAMA_NERA: System.out.print(\"|N\"); break; \n case VUOTA: System.out.print(\"| \"); break;\n }\n }\n System.out.println(\"|\");\n }\n for (c=0; c<DIM_LATO; c++) System.out.print(\"--\");\n System.out.println(\"-\");\n }", "private int[] enquadramentoContagemDeCaracteres(int[] quadro) throws Exception {\n System.out.println(\"\\n\\t[Contagem de Caracteres]\");\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\t[Contagem de Caracteres]\\n\");\n Thread.sleep(velocidade);\n\n int informacaoDeControle = ManipuladorDeBit.getPrimeiroByte(quadro[0]);//Quantidade de Bits do quadro\n //Quantidade de Bits de carga util do quadro\n int quantidadeDeBitsCargaUtil = informacaoDeControle;\n System.out.println(\"IC: \" + informacaoDeControle);\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\tIC [\"+informacaoDeControle+\"] \");\n\n\n int novoTamanho = quantidadeDeBitsCargaUtil/8;\n\n int[] quadroDesenquadrado = new int[novoTamanho];//Novo vetor de Carga Util\n int posQuadro = 0;//Posicao do Vetor de Quadros\n\n int cargaUtil = 0;//Nova Carga Util\n\n quadro[0] = ManipuladorDeBit.deslocarBits(quadro[0]);//Deslocando os bits 0's a esquerda\n //Primeiro inteiro do Quadro - Contem a informacao de Controle IC nos primeiros 8 bits\n quadro[0] <<= 8;//Deslocando 8 bits para a esquerda, descartar a IC\n\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"Carga Util [ \");\n for (int i=1; (i<=3) && (i<=novoTamanho); i++) {\n cargaUtil = ManipuladorDeBit.getPrimeiroByte(quadro[0]);\n quadroDesenquadrado[posQuadro++] = cargaUtil;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(cargaUtil + \" \");\n quadro[0] <<= 8;//Desloca 8 bits para a esquerda\n }\n\n Thread.sleep(velocidade);\n\n //Caso o quadro for composto por mais de um inteiro do vetor\n for (int i=1, quantidadeByte; posQuadro<novoTamanho; i++) {\n quantidadeByte = ManipuladorDeBit.quantidadeDeBytes(quadro[i]);\n quadro[i] = ManipuladorDeBit.deslocarBits(quadro[i]);\n\n for (int x=1; (x<=quantidadeByte) && (x<=4); x++) {\n cargaUtil = ManipuladorDeBit.getPrimeiroByte(quadro[i]);\n quadroDesenquadrado[posQuadro++] = cargaUtil;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(cargaUtil + \" \");\n quadro[i] <<= 8;//Desloca 8 bits para a esquerda\n }\n Thread.sleep(velocidade);\n }\n \n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"]\\n\");\n Thread.sleep(velocidade);\n\n return quadroDesenquadrado;\n }", "public void solucioInicial2() {\n int grupsRecollits = 0;\n for (int i=0; i<numCentres*helisPerCentre; ++i) {\n Helicopter hel = new Helicopter();\n helicopters.add(hel);\n }\n int indexHelic = 0;\n int indexGrup = 0;\n int places = 15;\n while (indexGrup < numGrups) {\n int trajecte[] = {-1,-1,-1};\n for (int i=0; i < 3 && indexGrup<numGrups; ++i) {\n Grupo grup = grups.get( indexGrup );\n if (places - grup.getNPersonas() >= 0) {\n places -= grup.getNPersonas();\n trajecte[i] = indexGrup;\n indexGrup++;\n\n }\n else i = 3;\n }\n Helicopter helicopter = helicopters.get( indexHelic );\n helicopter.addTrajecte( trajecte, indexHelic/helisPerCentre );\n places = 15;\n indexHelic++;\n if (indexHelic == numCentres*helisPerCentre) indexHelic = 0;\n }\n }", "public void soin() {\n if (!autoriseOperation()) {\n return;\n }\n if (tamagoStats.getXp() >= 2) {\n incrFatigue(-3);\n incrHumeur(3);\n incrFaim(-3);\n incrSale(-3);\n incrXp(-2);\n\n if (tamagoStats.getPoids() == 0) {\n incrPoids(3);\n } else if (tamagoStats.getPoids() == TamagoStats.POIDS_MAX) {\n incrPoids(-3);\n }\n\n setEtatPiece(Etat.NONE);\n tamagoStats.setEtatSante(Etat.NONE);\n\n setChanged();\n notifyObservers();\n }\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Unesite koordinatu prve tacke x1: \");\r\n\t\tdouble x1=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu prve tacke y1: \");\r\n\t\tdouble y1=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu druge tacke x2: \");\r\n\t\tdouble x2=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu druge tacke y2: \");\r\n\t\tdouble y2=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu trece tacke x3: \");\r\n\t\tdouble x3=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu trece tacke y3: \");\r\n\t\tdouble y3=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu cetvrte tacke x4: \");\r\n\t\tdouble x4=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu cetvrte tacke x4: \");\r\n\t\tdouble y4=provjera();\r\n\t\t\r\n\t\t//kreiranje objekata\r\n\t\tLinearEquation linear= LinearEquation.getIntersectingPoint(x1, y1, x2, y2, x3, y3, x4, y4);\r\n\t\t\r\n\t\t//ispis rezultata\r\n\t\tif(linear.isSolvable()){\r\n\t\t\tSystem.out.print(\"Presjek dvije prave je u tacki sa koordinatama x=\" + linear.getX()+ \" i y=\" + linear.getY());\r\n\t\t}else{\r\n\t\t\tSystem.out.print(\"Prave su paralelne!!!\");\r\n\t\t}\r\n\t\t\r\n\t\tunos.close();\r\n\t}", "@Test\n public void testCasesVidePlacement() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test casesVidePlacement ====================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n JoueurHumain j1 = new JoueurHumain(instance, true, NumJoueur.JOUEUR1);\n JoueurHumain j2 = new JoueurHumain(instance, true, NumJoueur.JOUEUR1);\n Reine reinej1 = j1.getReine(j1.getPions());\n Reine reinej2 = j2.getReine(j2.getPions());\n\n ArrayList<HexaPoint> expectedj1;\n ArrayList<HexaPoint> expectedj2;\n ArrayList<HexaPoint> resj1;\n ArrayList<HexaPoint> resj2;\n\n System.out.println(\"test sur une ruche venant d'être créé :\");\n expectedj1 = new ArrayList<>();\n expectedj1.add(orig);\n expectedj2 = new ArrayList<>();\n expectedj2.add(orig);\n resj1 = instance.casesVidePlacement(j1);\n resj2 = instance.casesVidePlacement(j2);\n\n arrayCorrespondsp(resj1, expectedj1);\n arrayCorrespondsp(resj2, expectedj2);\n\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur avec l'insecte de j1 à l'origine :\");\n instance.ajoutInsecte(reinej1, orig);\n expectedj1 = new ArrayList<>();\n expectedj1.addAll(orig.coordonneesVoisins());\n expectedj2 = new ArrayList<>();\n expectedj2.addAll(orig.coordonneesVoisins());\n resj1 = instance.casesVidePlacement(j1);\n resj2 = instance.casesVidePlacement(j2);\n\n arrayCorrespondsp(resj1, expectedj1);\n arrayCorrespondsp(resj2, expectedj2);\n\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n \n System.out.println(\"test sur avec l'insecte de j1 à l'origine et j2 en bas:\");\n instance.ajoutInsecte(reinej2, orig.voisinBas());\n expectedj1 = new ArrayList<>();\n expectedj1.add(orig.voisinDroiteHaut());\n expectedj1.add(orig.voisinGaucheHaut());\n expectedj1.add(orig.voisinHaut());\n expectedj2 = new ArrayList<>();\n expectedj2.add(orig.voisinBas().voisinBas());\n expectedj2.add(orig.voisinBas().voisinDroiteBas());\n expectedj2.add(orig.voisinBas().voisinGaucheBas());;\n resj1 = instance.casesVidePlacement(j1);\n resj2 = instance.casesVidePlacement(j2);\n\n //arrayCorrespondsp(resj1, expectedj1);\n //arrayCorrespondsp(resj2, expectedj2);\n\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "float znajdzOstatecznaCene()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCene\");\n\t\t//print (\"znajdzOstatecznaCene \"+iteracja);\n\t\t\n\t\t//debug\n\t\tBoolean debug = false;\n\t\tif (LokalneCentrum.getCurrentHour().equals(\"03:00\"))\n\t\t{\n\t\t\tprint(\"03:00 on the clock\",debug);\n\t\t\tdebug=false;\n\t\t}\n\t\t\n\t\t//wszystkie ceny jakie byly oglaszan ne na najblizszy slot w \n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tprint(\"ceny na najblizszy slot \"+cenyNaNajblizszySlot.size());\n\n\t\t\n\t\t//do rpzerobienia problemu minimalizacji na maksymalizacje\n\t\tint inverter =-1;\n\t\t\n\t\ti=0;\n\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\tfloat minimuCena =cena;\t\t\n\t\tfloat minimumValue =inverter*funkcjaRynku2(cena, false,true);\n\t\ti++;\n\t\t\n\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), minimuCena);\n\t\t\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tcena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =inverter*funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), cena);\n\n\t\t\tif (value<minimumValue)\n\t\t\t{\n\t\t\t\tminimuCena =cena;\n\t\t\t\tminimumValue = value;\n\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(debug)\n\t\t{\n\t\t\tgetInput(\"03:00 end\");\n\t\t}\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCene - nto finished\");\n\t\treturn minimuCena;\n\t\t\n\t}", "public GrapheIndicateursProjet (Projet p) {\n seuils = p.getSeuilFixes() ;\n \n // pour l'echelle, on determine les mesures max de toutes les iterations\n \n \n iterations = p.getListeIt() ; \n nbIt = iterations.size() ;\n \n // calcul des maximums\n Iteration tempIt = null ;\n IndicateursIteration tempIndIt = null ;\n for (int i = 0 ; i < nbIt ; i++)\n {\n if (iterations.get(i) instanceof Iteration)\n {\n tempIt = (Iteration)iterations.get(i) ;\n tempIndIt = tempIt.getIndicateursIteration() ;\n // charges\n if (tempIndIt.getTotalCharges() > chargesMax) { chargesMax = tempIndIt.getTotalCharges() ; }\n\t\tif (tempIndIt.getChargeMoyenneParticipants() > moyenneChargesMax) { moyenneChargesMax = tempIndIt.getChargeMoyenneParticipants() ; }\n\t\tif (tempIndIt.getNombreParticipants() > participantsMax) { participantsMax = tempIndIt.getNombreParticipants() ; }\n\t\tif (tempIndIt.getNombreTachesTerminees() > tachesTermineesMax) { tachesTermineesMax = tempIndIt.getNombreTachesTerminees() ; }\n\t\tif (tempIndIt.getNombreMoyenTachesParticipants() > tachesParticipantsMax) { tachesParticipantsMax = tempIndIt.getNombreMoyenTachesParticipants() ; }\n\t\tif (tempIndIt.getDureeMoyenneTaches() > dureeMoyenneTacheMax) { dureeMoyenneTacheMax = tempIndIt.getDureeMoyenneTaches() ; }\n }\n }\n setPreferredSize(new Dimension(ITERATION_WIDTH * nbIt,440));\n\t//setBorder(new TitledBorder(new EtchedBorder(), \"toto\", 5, TitledBorder.ABOVE_TOP)) ;\n }", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Dati dati;\n\n try { // prova ad eseguire il codice\n\n this.setMessaggio(\"Analisi in corso\");\n this.setBreakAbilitato(true);\n\n /* recupera e registra i dati delle RMP da elaborare */\n dati = getDatiRMP();\n this.setDati(dati);\n\n /* regola il fondo scala dell'operazione */\n this.setMax(dati.getRowCount());\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public static void main(String[] args) {\n int numeros[] = {2, 3, 4, 2, 4, 5, 6, 2, 1, 2};\n //Creamos segundo arreglo con iguall tamaño que el arreglo nùmeros\n int cuadrados[] = new int[numeros.length];\n //Arreglo para almacenar el proceso de la operación\n String procesos[] = new String[numeros.length];\n //Creamos ciclo de repeticiòn para recorrer arreglo \n for (int indice = 0; indice < numeros.length; indice++) {\n int cuadrado = numeros[indice] * numeros[indice];\n //Almacenamos el proceso de la opreaciòn en el arreglo cuadrados\n cuadrados[indice] = cuadrado;\n \n //Almacenar resultado en el arreglo procesos\n procesos[indice] = numeros[indice] + \"x\" + numeros[indice];\n }\n //Ciclo de repetición para mostrar arreglos\n String print_numeros = \"numeros - \";\n String print_cuadrados = \"cuadrados - \";\n String print_procesos = \"procesoss - \";\n for (int indice = 0; indice < numeros.length; indice++) {\n print_numeros = print_numeros + numeros[indice] + \", \";\n print_cuadrados = print_cuadrados + cuadrados[indice] + \", \";\n print_procesos = print_procesos + procesos[indice] + \", \";\n\n }\n System.out.println(print_numeros);\n System.out.println(print_cuadrados);\n System.out.println(print_procesos);\n \n //suma solo numeros pares\n int acumulador_pares=0;\n for (int indice = 0; indice < 10; indice++) {\n boolean par= detectar_par(numeros[indice]);\n if (par == true) {\n acumulador_pares = acumulador_pares + numeros[indice];\n \n }\n }\n System.out.println(\"La suma de los nùmeros pares es: \"+acumulador_pares);\n \n }", "public Fenetre_resultats_plaque(float debit_m_1, float debit_m_2, float capacite_th_1, float capacite_th_2, float viscosite_1, float viscosite_2, float conductivite_th_1, float conductivite_th_2, float masse_volumique_1, float masse_volumique_2, float tempc, float tempf, float longueur, float largeur, float hauteur) {\n\n Plaques plaque1;\n Finance F1;\n\n plaque1 = new Plaques(longueur, largeur, hauteur, debit_m_1, debit_m_2, capacite_th_1, capacite_th_2, tempc, tempf, masse_volumique_1, masse_volumique_2, viscosite_1, viscosite_2, conductivite_th_1, conductivite_th_2);\n F1 = new Finance();\n\n int nbre_plaques_total_main = plaque1.calcul_nbre_plaques_total();\n double surface_plaque_main = plaque1.calcul_surface_plaques();\n\n plaque1.calcul_surface_contact();\n\n double smod_main = plaque1.calcul_smod();\n\n plaque1.calcul_coeff_convection_h();\n plaque1.calcul_rth();\n plaque1.calcul_densite_couple();\n plaque1.calcul_rcharge();\n \n double pe_main = plaque1.calcul_Pe();\n\n int nbre_modules_main = plaque1.getter_nbre_modules();\n\n double prix_modules_main = F1.calcul_prix_modules(nbre_modules_main);\n if (prix_modules_main < 0) {\n prix_modules_main = 0;\n }\n \n F1.calcul_volume_plaques(surface_plaque_main, plaque1.getter_diam_tube(), plaque1.getter_epaisseur_plaque(), nbre_plaques_total_main, plaque1.getter_inter_plaque());\n \n double prix_materiaux_main = F1.calcul_prix_matiere();\n if (prix_materiaux_main < 0) {\n prix_materiaux_main = 0;\n }\n \n double prix_total_main = prix_modules_main + prix_materiaux_main;\n\n double energie_produite_main = F1.conversion_kwh(pe_main);\n double revenu_horaire_main = F1.calcul_revenu_horaire();\n double nbre_heures_main = F1.calcul_nbre_heures();\n \n DecimalFormat df2 = new DecimalFormat(\"#.##\");\n DecimalFormat df4 = new DecimalFormat(\"#.####\");\n DecimalFormat df5 = new DecimalFormat(\"#.#####\");\n DecimalFormat df7 = new DecimalFormat(\"#.#######\");\n \n\n String entetes[] = {\"Résultat\", \"Valeur\"};\n Object donnees[][] = {\n {\"Nombre de modules\", plaque1.getter_nbre_modules()},\n {\"Surface proposée (en m²)\", df5.format(plaque1.getter_surface_contact())},\n {\"Surface utilisée par les modules (en m²)\", df5.format(smod_main)},\n {\"Débit massique chaud(en m3/h)\", debit_m_1},\n {\"Débit massique froid(en m3/h)\", debit_m_2},\n {\"Température chaude (en °C)\", tempc},\n {\"Différence de température\", plaque1.getter_diff_temperature()},\n {\"Puissance électrique générée (en W)\", df2.format(pe_main)}};\n\n DefaultTableModel modele = new DefaultTableModel(donnees, entetes) {\n @Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }\n };\n\n tableau = new JTable(modele);\n\n String entetes2[] = {\"Caractéristiques\", \"Valeurs\"};\n Object donnees2[][] = {\n {\"Surface d'un module (en m²)\", plaque1.getter_surface_module()},\n {\"Longueur d'une jambe (en m)\", df4.format(plaque1.getter_longueur_jambe())},\n {\"Surface d'une jambe (en m²)\", df7.format(plaque1.getter_surface_jambe())},\n {\"Densité de couple\", df5.format(plaque1.getter_densite_couple())},\n {\"Conductivité thermique du module (en W/m/K)\", df2.format(plaque1.getter_conduct_th_module())}\n };\n\n DefaultTableModel modele2 = new DefaultTableModel(donnees2, entetes2) {\n @Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }\n };\n\n Object donnees3[][] = {\n {\"Prix des modules (en €)\", df2.format(prix_modules_main)},\n {\"Prix de la matière première (en €)\", df2.format(prix_materiaux_main)},\n {\"Prix total échangeur (en €)\", df2.format(prix_total_main)},\n {\"Prix du kilowatt-heure\", F1.getter_prix_elec()},\n {\"Revenu horaire\", df2.format(revenu_horaire_main)},\n {\"Nbre d'heures pour remboursement\", df2.format(nbre_heures_main)}\n\n };\n String entetes3[] = {\"Caractéristiques\", \"Valeurs\"};\n\n DefaultTableModel modele3 = new DefaultTableModel(donnees3, entetes3) {\n @Override\n public boolean isCellEditable(int row, int col) {\n return false;\n }\n };\n\n tableau3 = new JTable(modele3);\n\n // Pour le graphique en camembert\n final JFXPanel fxPanel = new JFXPanel(); // On crée un panneau FX car on peut pas mettre des objet FX dans un JFRame\n final PieChart chart = new PieChart(); // on crée un objet de type camembert\n chart.setTitle(\"Répartition du prix de l'échangeur\"); // on change le titre de ce graph\n chart.getData().setAll(new PieChart.Data(\"Prix des modules \" + prix_modules_main + \" €\", prix_modules_main), new PieChart.Data(\"Prix du matériau \" + df2.format(prix_materiaux_main) + \" €\", prix_materiaux_main)\n ); // on implémente les différents case du camebert\n final Scene scene = new Scene(chart); // on crée une scene (FX) où l'on met le graph camembert\n fxPanel.setScene(scene);\n\n // a partir de là c'est plus le camembert\n tableau2 = new JTable(modele2);\n\n JScrollPane tableau_entete = new JScrollPane(tableau);\n JScrollPane tableau_entete2 = new JScrollPane(tableau2);\n JScrollPane tableau_entete3 = new JScrollPane(tableau3);\n\n tableau_entete.setViewportView(tableau);\n tableau_entete2.setViewportView(tableau2);\n tableau_entete3.setViewportView(tableau3);\n\n tableau_entete.setPreferredSize(new Dimension(550, 170));\n tableau_entete2.setPreferredSize(new Dimension(550, 110));\n tableau_entete3.setPreferredSize(new Dimension(550, 120));\n\n JLabel label_resultat = new JLabel(\"Resultat de la simulation\");\n JLabel label_module = new JLabel(\"Caractéristiques du module utilisé\");\n JLabel label_prix = new JLabel(\"Prix de l'échangeur\");\n \n setBounds(0, 0, 600, 950);\n setTitle(\"Résultats Technologie Plaques\");\n \n panneau = new JPanel();\n panneau.add(label_resultat);\n panneau.add(tableau_entete);\n panneau.add(label_module);\n panneau.add(tableau_entete2);\n panneau.add(label_prix);\n panneau.add(tableau_entete3);\n panneau.add(fxPanel); // on ajoute au Jframe notre panneau FX (qui contient donc UNE \"scene\" qui elle contient les object FX, ici notre camembert)\n getContentPane().add(panneau);\n \n this.setLocation(600, 0);\n this.setResizable(false);\n }", "public void calculEtatSuccesseur() { \r\n\t\tboolean haut = false,\r\n\t\t\t\tbas = false,\r\n\t\t\t\tgauche = false,\r\n\t\t\t\tdroite = false,\r\n\t\t\t\thautGauche = false,\r\n\t\t\t\tbasGauche = false,\r\n\t\t\t\thautDroit = false,\r\n\t\t\t\tbasDroit = false;\r\n\t\t\r\n\t\tString blanc = \" B \";\r\n\t\tString noir = \" N \";\r\n\t\tfor(Point p : this.jetonAdverse()) {\r\n\t\t\tString [][]plateau;\r\n\t\t\tplateau= copieEtat();\r\n\t\t\tint x = (int) p.getX();\r\n\t\t\tint y = (int) p.getY();\r\n\t\t\tif(this.joueurActuel.getCouleur() == \"noir\") { //dans le cas ou le joueur pose un pion noir\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) { //on regarde uniquement le centre du plateaau \r\n\t\t\t\t\t//on reinitialise x,y et plateau a chaque étape\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tdroite = getDroite(x,y,blanc);\r\n\t\t\t\t\thaut = getHaut(x, y, blanc);\r\n\t\t\t\t\tbas = getBas(x, y, blanc);\r\n\t\t\t\t\tgauche = getGauche(x, y, blanc);\r\n\t\t\t\t\thautDroit = getDiagHautdroite(x, y, blanc);\r\n\t\t\t\t\thautGauche = getDiagHautGauche(x, y, blanc);\r\n\t\t\t\t\tbasDroit = getDiagBasDroite(x, y, blanc);\r\n\t\t\t\t\tbasGauche = getDiagBasGauche(x, y, blanc);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y-1]==noir) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(droite) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//1\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==noir) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(bas) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==noir) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(gauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(haut) {\r\n\t\t\t\t\t\t\t//System.out.println(\"regarde en dessous\");\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==noir) {\r\n\t\t\t\t\t\tif(hautGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(basGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit : OK!\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(hautDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==noir) {\r\n\t\t\t\t\t\tif(basDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t//System.out.println(\"ajouté!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {//si le joueur actuel a les pions blanc\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x][y-1]==blanc) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(getDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t}//1.1\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==blanc) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getBas(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2.2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==blanc) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getGauche(x, y, noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3.3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == blanc) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getHaut(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4.4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5.5\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//6.6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautdroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7.7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8.8\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String [] agrs){\n\r\n\r\n Kaczka gumowa = new GumowaKaczka();\r\n gumowa.ustawKwakanieInterfejs(2);\r\n gumowa.ustawLatanieInterfejs(new SzybkieLatanie());\r\n gumowa.wyswietl();\r\n System.out.println(gumowa.kwacz());\r\n System.out.println(gumowa.lec());\r\n Kaczka dzika = new DzikaKaczka();\r\n // dzika.ustawLatanieInterfejs(1);\r\n dzika.wyswietl();\r\n System.out.println(dzika.lec());\r\n System.out.println(dzika.kwacz());\r\n\r\n\r\n// Polecenie[] polecenieWlacz;\r\n// Polecenie[] polecanieWylacz;\r\n// Polecenie polecenieWycofaj;\r\n//\r\n// polecanieWylacz = new Polecenie[7];\r\n// polecenieWlacz = new Polecenie[7];\r\n//\r\n// Swiatlo swiatlo = new Swiatlo();\r\n// polecanieWylacz[0] = new PolecenieWylaczSwiatlo(swiatlo);\r\n// polecenieWlacz[0] = new PolecenieWlaczSwiatlo(swiatlo);\r\n//\r\n//\r\n//\r\n//\r\n// polecenieWlacz[0].wykonaj();\r\n// polecanieWylacz[0].wykonaj();\r\n// polecenieWlacz[0].wykonaj();\r\n// polecenieWycofaj = polecanieWylacz[0];\r\n//// polecenieWycofaj = polecenieWlacz[0];\r\n// polecenieWycofaj.wykonaj();\r\n// polecenieWycofaj.wykonaj();\r\n//// polecenieWycofaj.wycofaj();\r\n//\r\n// WiezaStereo wiezaStereo = new WiezaStereo();\r\n//\r\n// polecenieWlacz[1] = new PolecenieWiezaStereoWlaczCD(wiezaStereo);\r\n//\r\n// polecenieWlacz[1].wykonaj();\r\n\r\n\r\n\r\n }", "private HashMap<String, Paire> initVuDispo(ContraintesTournee contraintes, HashMap<String, Intersection> intersections){\n\t\tHashMap<String, Paire> vuDispo = new HashMap<String, Paire>();\n\t\tfor (HashMap.Entry<String, Intersection> iterator : intersections.entrySet()) {\n\t\t if( iterator.getValue() instanceof PointEnlevement ) {\n\t\t \tvuDispo.put( iterator.getKey(), new Paire(true, false) );\n\t\t }else {\n\t\t \tvuDispo.put( iterator.getKey(), new Paire(false, false) );\n\t\t }\n\t\t}\n\t\t\n\t\t//Mettre premier noeud comme deja visite - ici le premier est l'entrepot\n\t\tvuDispo.get(contraintes.getDepot().getId()).setDispo(false);\n\t\tvuDispo.get(contraintes.getDepot().getId()).setVu(true);\n\t\t\n\t\treturn vuDispo;\n\t}", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "public void controllore() {\n if (puntiVita > maxPunti) puntiVita = maxPunti;\n if (puntiFame > maxPunti) puntiFame = maxPunti;\n if (puntiFelicita > maxPunti) puntiFelicita = maxPunti;\n if (soldiTam < 1) {\n System.out.println(\"Hai finito i soldi\");\n System.exit(3);\n }\n //controlla che la creatura non sia morta, se lo è mette sonoVivo a false\n if (puntiVita <= minPunti && puntiFame <= minPunti && puntiFelicita <= minPunti) sonoVivo = false;\n }", "void rozpiszKontraktyPart2NoEV(int index,float wolumenHandlu, float sumaKupna,float sumaSprzedazy )\n\t{\n\t\tArrayList<Prosument> listaProsumentowTrue =listaProsumentowWrap.getListaProsumentow();\n\t\t\n\n\t\tint a=0;\n\t\twhile (a<listaProsumentowTrue.size())\n\t\t{\n\t\t\t\t\t\t\n\t\t\t// ustala bianrke kupuj\n\t\t\t// ustala clakowita sprzedaz (jako consumption)\n\t\t\t//ustala calkowite kupno (jako generacje)\n\t\t\tDayData constrainMarker = new DayData();\n\t\t\t\n\t\t\tArrayList<Point> L1\t=listaFunkcjiUzytecznosci.get(a);\n\t\t\t\n\t\t\t//energia jaka zadeklarowal prosument ze sprzeda/kupi\n\t\t\tfloat energia = L1.get(index).getIloscEnergiiDoKupienia();\n\t\t\t\n\t\t\tif (energia>0)\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoKupienia = energia/sumaKupna*wolumenHandlu;\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(1);\n\t\t\t\tconstrainMarker.setGeneration(iloscEnergiiDoKupienia);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoKupienia,a);\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoSprzedania = energia/sumaSprzedazy*wolumenHandlu;\n\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(0);\n\t\t\t\tconstrainMarker.setConsumption(iloscEnergiiDoSprzedania);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoSprzedania,a);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<Float> priceVector = priceVectorsList.get(priceVectorsList.size()-1);\n\t\t\t\n\t\t\t//poinformuj prosumenta o wyniakch handlu i dostosuj go do wynikow\n\t\t\tlistaProsumentowTrue.get(a).getKontrakt(priceVector,constrainMarker);\n\t\t\t\n\t\t\ta++;\n\t\t}\n\t}", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "private void resampleAbdomenVOI() {\r\n VOIVector vois = abdomenImage.getVOIs();\r\n VOI theVOI = vois.get(0);\r\n\r\n VOIContour curve = ((VOIContour)theVOI.getCurves().get(0));\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n// ViewUserInterface.getReference().getMessageFrame().append(\"Xcm: \" +xcm +\" Ycm: \" +ycm);\r\n \r\n\r\n ArrayList<Integer> xValsAbdomenVOI = new ArrayList<Integer>();\r\n ArrayList<Integer> yValsAbdomenVOI = new ArrayList<Integer>();\r\n\r\n // angle in radians\r\n double angleRad;\r\n \r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n int x = xcm;\r\n int y = ycm;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xDim && curve.contains(x, y)) {\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > 0 && curve.contains(x, y)) {\r\n\r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > 0 && curve.contains(x, y)) {\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yDim && curve.contains(x, y)) {\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n }\r\n } // end for (angle = 0; ...\r\n \r\n// ViewUserInterface.getReference().getMessageFrame().append(\"resample VOI number of points: \" +xValsAbdomenVOI.size());\r\n curve.clear();\r\n for(int idx = 0; idx < xValsAbdomenVOI.size(); idx++) {\r\n curve.add( new Vector3f( xValsAbdomenVOI.get(idx), yValsAbdomenVOI.get(idx), 0 ) );\r\n }\r\n }", "public static void main(String[] args) {\n\t\tString pol1=\"1x^3+3x^2+7x^1+21x^0\";\r\n\t\tString pol2=\"1x^2+7x^0\";\r\n\t\tString adunare=\"+1x^3+4x^2+7x^1+28x^0\";\r\n\t\tString scadere=\"+1x^3+2x^2+7x^1+14x^0\";\r\n\t\tString inmultire=\"+1x^5+3x^4+14x^3+42x^2+49x^1+147x^0\";\r\n\t\tString restul=\"\";\r\n\t\tString catul=\"+1.0x^1+3.0x^0\";\r\n\t\tString derivare=\"+3x^2+6x^1+7x^0\";\r\n\t\tString integrare=\"+0.25x^4+1.0x^3+3.5x^2+21.0x^1\";\r\n\t\tPolinom p1=new Polinom();\r\n\t\tPolinom p2=new Polinom();\r\n\t\tPolinom p1copie=new Polinom();\r\n\t\ttry {\r\n\t\t\tp1=p1.crearePolinom(pol1, 3);\r\n\t\t\tp1copie=p1.crearePolinom(pol1, 3);\r\n\t\t\tp2=p2.crearePolinom(pol2, 2);\r\n\t\t} catch (IllegalInputException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\r\n\t\tPolinom p3=p1.adunarePolinom(p2, 4);\r\n\t\tString rezAdunare=p3.afisPolinomIntreg();\r\n\t\tPolinom p4=p1.scaderePolinom(p2, 4);\r\n\t\tString rezScadere=p4.afisPolinomIntreg();\r\n\t\tPolinom p5=p1.inmultirePolinom(p2, 6);\r\n\t\tString rezInmultire=p5.afisPolinomIntreg();\r\n\t\tString cat=p1.impartirePolinom(p2, 3, 2);\r\n\t\tString rest=p1copie.impartirePolinom(p2, 3, 2);\r\n\t\tPolinom p7=p1.derivarePolinom(3);\r\n\t\tString rezDerivare=p7.afisPolinomReal();\r\n\t\tPolinom p8=p1.integrarePolinom(4);\r\n\t\tString rezIntegrare=p8.afisPolinomReal();\r\n\t\t\r\n\t\tassert adunare!=rezAdunare : \"Nu se verifica adunarea!\";\r\n\t\tassert scadere!=rezScadere : \"Nu se verifica scaderea!\";\r\n\t\tassert inmultire!=rezInmultire : \"Nu se verifica inmultirea!\";\r\n\t\tassert derivare!=rezDerivare : \"Nu se verifica derivarea!\";\r\n\t\tassert integrare!=rezIntegrare : \"Nu se verifica integrarea!\";\r\n\t\tassert catul!=cat : \"Nu se verifica adunarea!\";\r\n\t\tassert restul!=rest : \"Nu se verifica adunarea!\";\r\n\t\t\r\n\t\t\r\n\t}", "public void enemigosCatacumba(){\n esq81 = new Esqueleto(1, 8, 400, 160, 30);\n esq82 = new Esqueleto(2, 8, 400, 160, 30);\n esq111 = new Esqueleto(1, 11, 800, 255, 50);\n esq112 = new Esqueleto(2, 11, 800, 255, 50);\n esq141 = new Esqueleto(1, 14, 1000, 265, 60);\n esq142 = new Esqueleto(2, 14, 1000, 265, 60);\n //\n zom81 = new Zombie(1, 8, 1000, 170, 40);\n zom82 = new Zombie(2, 8, 1000, 170, 40);\n zom111 = new Zombie(1, 11, 1300, 250, 50);\n zom112 = new Zombie(2, 11, 1300, 250, 50);\n zom141 = new Zombie(1, 14, 1700, 260, 60);\n zom142 = new Zombie(2, 14, 1700, 260, 60);\n //\n fana81 = new Fanatico(1, 8, 400, 190, 40);\n fana82 = new Fanatico(2, 8, 400, 190, 40);\n fana111 = new Fanatico(1, 11, 700, 250, 50);\n fana112 = new Fanatico(2, 11, 700, 250, 50);\n fana141 = new Fanatico(1, 14, 900, 260, 60);\n fana142 = new Fanatico(2, 14, 900, 260, 60);\n //\n mi81 = new Mimico(1, 8, 3, 1, 3000);\n mi111 = new Mimico(1, 11, 4, 1, 3000);\n mi141 = new Mimico(1, 14, 5, 1, 3200);\n }", "public Ruteo setCovering(){\n\t\tRuteo resultado=null;\n\t\t double time1= System.currentTimeMillis();\n\t\t Integer [][]a=new Integer[Auxiliar.OBRAS.size()][listaSetCovering.size()];\n\t\t List<Double>c=new ArrayList<Double>();\n\t\t List<Double>t=new ArrayList<Double>();\n\t\t List<Obra>listObras=Auxiliar.OBRAS;\n\t\t for(int i=0;i<listaSetCovering.size();i++){\n\t\t\t c.add(listaSetCovering.get(i).costosTotales);\n\t\t\t t.add(listaSetCovering.get(i).tiempoTotal);\n\t\t }\n\t\t for(int i=0;i<Auxiliar.OBRAS.size();i++){\n\t\t\t for(int j=0;j<listaSetCovering.size();j++){\n\t\t\t\t if(listaSetCovering.get(j).estaObraEnRuta(listObras.get(i))){\n\t\t\t\t\t a[i][j]=1;\n\t\t\t\t }else{\n\t\t\t\t\t a[i][j]=0;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t List<Integer>respuesta=new ArrayList<Integer>();\n\t\tif(fo==FO1){\n\t\t\tSetCovering sc=new SetCovering();\n\t\t\trespuesta=sc.generateModel(c, a);\n\t\t\t\n\t\t\tList<Ruta>rutasRuteo=new ArrayList<Ruta>();\n\t\t\tfor(int i=0;i<respuesta.size();i++){\n\t\t\t\tRuta ruta=listaSetCovering.get(respuesta.get(i));\n\t\t\t\trutasRuteo.add(ruta);\n\t\t\t}\n\t\t\tDouble costosRuteo=darCostoRuteo(rutasRuteo);\n\t\t\tobjval=sc.fo;\n\t\t\tRuteo ruteo=new Ruteo(costosRuteo,rutasRuteo);\n\t\t\tresultado=ruteo;\n\t\t}else if(fo==FO2){\n\t\t\tSetCovering2 sc=new SetCovering2();\n\t\t\trespuesta=sc.generateModel(c,t, a);\n\t\t\tobjval=sc.fo;\n\t\t\tList<Ruta>rutasRuteo=new ArrayList<Ruta>();\n\t\t\tfor(int i=0;i<respuesta.size();i++){\n\t\t\t\tRuta ruta=listaSetCovering.get(respuesta.get(i));\n\t\t\t\trutasRuteo.add(ruta);\n\t\t\t}\n\t\t\tDouble costosRuteo=darCostoRuteo(rutasRuteo);\n\t\t\tRuteo ruteo=new Ruteo(costosRuteo,rutasRuteo);\n\t\t\tresultado=ruteo;\n\t\t}else if(fo==FO3){\n\t\t\tSetCovering3 sc=new SetCovering3();\n\t\t\trespuesta=sc.generateModel(c, a);\n\t\t\tobjval=sc.fo;\n\t\t\tList<Ruta>rutasRuteo=new ArrayList<Ruta>();\n\t\t\tfor(int i=0;i<respuesta.size();i++){\n\t\t\t\tRuta ruta=listaSetCovering.get(respuesta.get(i));\n\t\t\t\trutasRuteo.add(ruta);\n\t\t\t}\n\t\t\tDouble costosRuteo=darCostoRuteo(rutasRuteo);\n\t\t\tRuteo ruteo=new Ruteo(costosRuteo,rutasRuteo);\n\t\t\tresultado=ruteo;\n\t\t}else if(fo==FO4){\n\t\t\tSetCovering4 sc=new SetCovering4();\n\t\t\trespuesta=sc.generateModel(c,t, a);\n\t\t\tobjval=sc.fo;\n\t\t\tList<Ruta>rutasRuteo=new ArrayList<Ruta>();\n\t\t\tfor(int i=0;i<respuesta.size();i++){\n\t\t\t\tRuta ruta=listaSetCovering.get(respuesta.get(i));\n\t\t\t\trutasRuteo.add(ruta);\n\t\t\t}\n\t\t\tDouble costosRuteo=darCostoRuteo(rutasRuteo);\n\t\t\tRuteo ruteo=new Ruteo(costosRuteo,rutasRuteo);\n\t\t\tresultado=ruteo;\n\t\t}\n\t\t double time2= System.currentTimeMillis();\n\t\t tiempoComputacionalSetCovering=(time2-time1)/1000.0;\n\t\t return resultado;\n\t}", "public void naplnVrcholy() {\r\n System.out.println(\"Zadajte pocet vrcholov: \");\r\n pocetVrcholov = skener.nextInt();\r\n for (int i=0; i < pocetVrcholov; i++) {\r\n nekonecno = (int)(Double.POSITIVE_INFINITY);\r\n if(i==0) { //pre prvy vrchol potrebujeme nastavit vzdialenost 0 \r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu, 0, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n } else { //ostatne budu mat nekonecno alebo v tomto pripade 9999 (lebo tuto hodnotu v mensich grafoch nepresiahnem)\r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu,nekonecno, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n }\r\n }\r\n }", "public void run() {\r\n\t\tint miCiclo = cicloRR;\r\n\t\tint misRafagas = rafagasRR;\r\n\t\t\r\n\t\tfloat indicePenalizacion = (float) 0.00;\r\n\t\tfloat penalizacion = (float) 0.00;\r\n\t\tfloat indicePenalizacionPorProceso =(float) 0.00;\r\n\t\t\r\n\t\t//Como vamos a reducir el valor del quantum antes del principio de ciclo\r\n\t\t//Sumamos 1 al quantum original, así compensamos esa reducción en el primer\r\n\t\t//ciclo de ejecución y realizamos un ciclo de quantum completo\r\n\t\tint miQuantum = quantumRR + 1;\r\n\t\t\r\n\t\tfor (miCiclo = 0; miCiclo < misRafagas; miCiclo++) {\r\n\t\t\t//Compruebo si algún elemento coincide su llegada con el ciclo\r\n\t\t\t//Si coincide, lo añado a la cola\r\n\t\t\tfor (int i = 0; i<miListaRR.size(); i++) {\r\n\t\t\t\tif(miListaRR.get(i).getLlegada() == cicloRR) {\r\n\t\t\t\t\tcolaProcesosRR.add(miListaRR.get(i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t//Sumamos 1 al ciclo\r\n\t\t\tcicloRR++;\r\n\t\t\t\t\r\n\t\t\t//Restamos 1 al quantum restante\r\n\t\t\tmiQuantum--;\r\n\t\t\t//Si el quantum es 0, lo reiniciamos y enviamos el 1er elemento de la cola al final\r\n\t\t\tif (miQuantum == 0) {\r\n\t\t\t\tmiQuantum = quantumRR;\r\n\t\t\t\tcolaProcesosRR.add(colaProcesosRR.peek());\r\n\t\t\t\tcolaProcesosRR.poll();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Restamos 1 a la rafaga pendiente\r\n\t\t\tcolaProcesosRR.peek().setRafaga(colaProcesosRR.peek().getRafaga()-1);\r\n\t\t\t\t\r\n\t\t\t//Escribimos la línea con la información del proceso\r\n\t\t\t//Si al proceso le quedan 0 ráfagas, ha terminado, así que lo sacamos de la cola\r\n\t\t\tif (colaProcesosRR.peek().getRafaga() == 0) {\r\n\r\n\t\t\t\tSystem.out.println(\t\"Ciclo \" + cicloRR + \r\n\t\t\t\t\t\t\t\t\t\". Proceso \" + colaProcesosRR.peek().getNombre() + \r\n\t\t\t\t\t\t\t\t\t\". Ráfagas pendientes: \" + colaProcesosRR.peek().getRafaga() +\r\n\t\t\t\t\t\t\t\t\t\" FIN DEL PROCESO \" + colaProcesosRR.peek().getNombre()); \r\n\t\t\t\tcolaProcesosRR.peek().setSalida(cicloRR);\r\n\t\t\t\tcolaProcesosRR.poll();\r\n\t\t\t\tmiQuantum = quantumRR+1;\r\n\t\t\t}\t\t\t\t\r\n\t\t\t//Si le quedan ráfagas pendientes, mostramos la información y volvemos al principio\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\t\"Ciclo \" + cicloRR + \r\n\t\t\t\t\t\t\t\t\t\". Proceso \" + colaProcesosRR.peek().getNombre() + \r\n\t\t\t\t\t\t\t\t\t\". Ráfagas pendientes: \" + colaProcesosRR.peek().getRafaga());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\" + \"Índices de penalización:\" + \"\\n\");\r\n\t\t\r\n\t\t//Para cada proceso, calculamos la penalización y la vamos añadiendo a un total\r\n\t\tfor (int i = 0; i<miListaRR.size() ; i++) {\r\n\t\t\tpenalizacion = (float) (miListaRR.get(i).getSalida()-miListaRR.get(i).getLlegada()) / miListaRR.get(i).getRafagaInicial();\r\n\t\t\tindicePenalizacionPorProceso = penalizacion / miListaRR.size();\r\n\t\t\tindicePenalizacion = indicePenalizacion + indicePenalizacionPorProceso;\r\n\t\t\tSystem.out.println(\"Índice de penalización del proceso \" + miListaRR.get(i).getNombre() + \": \" + penalizacion);\r\n\t\t}\r\n\t\t\r\n\t\t//Finalmente, mostramos la penalización total\r\n System.out.println(\"\\n\" + \"Índice de Penalización total: \" + indicePenalizacion);\r\n \r\n\t}", "public void vincula(){\n for (Nodo n : exps)\n n.vincula();\n }", "Object obtenerPolizasPorFolioSolicitudNoCancelada(int folioSolicitud,String formatoSolicitud);", "@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}", "public void PerspektivischeProjektion(){\n /**\n * Abrufen der Koordinaten aus den einzelnen\n * Point Objekten des Objekts Tetraeder.\n */\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n /*\n * Aufrufen der Methode sortieren\n */\n double[][] sP = cls_berechnen.sortieren(A, B, C, D);\n\n A = sP[0];\n B = sP[1];\n C = sP[2];\n D = sP[3];\n\n /*Wenn alle z Koordinaten gleich sind, ist es kein Tetraeder. */\n if (A[2] == D[2]) {\n System.out.println(\"kein Tetraeder\");\n return;\n }\n\n //Entfernung vom 'Center of projection' zur 'Projectoin plane'\n double d=5;\n\n /*\n * Transformiert x|y|z Koordinaten in x|y Koordinaten\n * mithilfer der perspektivischen Projektion\n */\n\n A[0]=A[0]/((A[2]+d)/d);\n A[1]=A[1]/((A[2]+d)/d);\n B[0]=B[0]/((B[2]+d)/d);\n B[1]=B[1]/((B[2]+d)/d);\n C[0]=C[0]/((C[2]+d)/d);\n C[1]=C[1]/((C[2]+d)/d);\n D[0]=D[0]/((D[2]+d)/d);\n D[1]=D[1]/((D[2]+d)/d);\n\n\n double ax, ay, bx, by, cx, cy, dx, dy;\n ax=A[0];\n ay=A[1];\n bx=B[0];\n by=B[1];\n cx=C[0];\n cy=C[1];\n dx=D[0];\n dy=D[1];\n\n tetraederzeichnen(ax, ay, bx, by, cx, cy, dx, dy);\n }", "public void aktualisiere(PhysicalObject po){\n\t\tthis.po=po;\n\t\tKipper kipperObj= (Kipper) po;\t\t\n\t\tx = kipperObj.getX();\n\t\ty = kipperObj.getY();\n\t\tbreite=kipperObj.getBreite();\n\t\tlaenge=kipperObj.getLaenge();\n\t\twinkel=kipperObj.getWinkel();\n\t\tlkwfahrt=kipperObj.isFahrt();\t\t\n\t\tif (kipperObj.getMaterialListe().size() == 1) {\n\t\t\tmatRatio=kipperObj.getMaterialListe().get(0).getVolumen()/kipperObj.getMaxVolumen();\t\n\t\t\tif(matRatio > 1)\n\t\t\t\tmatRatio=1;\n\t\t}\t\t\n\t}", "public void hallarPerimetroIsosceles() {\r\n this.perimetro = 2*(this.ladoA+this.ladoB);\r\n }", "public Inventario(int s, int S, float c, float r, int x, float h){\n this.s=s;\n this.S=S;\n this.c=c;\n this.r=r;\n this.x=x; //partimos con un stock inicial de x unidades del producto\n this.h=h;\n \n this.C=0;\n this.H=0;\n this.R=0;\n \n this.t0=0;\n this.t1=0;\n \n T=100;\n \n }", "private static void cajas() {\n\t\t\n\t}", "void getCirculation (double effaoa, double thickness_pst, double camber_pst) { \n double beta;\n double th_abs = thickness_pst/100.0; \n xcval = 0.0;\n ycval = camber_pst/50; // was: current_part.camber/25/2\n\n if (current_part.foil == FOIL_CYLINDER || /* get circulation for rotating cylnder */\n current_part.foil == FOIL_BALL) { /* get circulation for rotating ball */\n rval = radius/lconv;\n gamval = 4.0 * Math.PI * Math.PI *spin * rval * rval\n / (velocity/vconv);\n gamval = gamval * spindr;\n ycval = .0001;\n } else {\n rval = th_abs + Math.sqrt((current_part.foil == FOIL_FLAT_PLATE\n ? 0 : th_abs*th_abs)\n + ycval*ycval + 1.0);\n xcval = current_part.foil == FOIL_JOUKOWSKI ? 0 : (1.0 - Math.sqrt(rval*rval - ycval*ycval));\n beta = Math.asin(ycval/rval)/convdr; /* Kutta condition */\n gamval = 2.0*rval*Math.sin((effaoa+beta)*convdr);\n }\n }", "public static Nodo buscarSolucionPorAmplitud(Nodo inicio, int[][] solucion) {\n\t\tArrayList<Nodo> abiertos = new ArrayList<Nodo>();\n\t\tabiertos.add(inicio);\n\t\tint cont = 0;\n\t\tArrayList<Nodo> visitados = new ArrayList<Nodo>();\n\t\twhile(abiertos.size()!=0) {\n\t\t\tSystem.out.println(\"Visitados\");\n\t\t\tSystem.out.println(\"#################################\");\n\t\t\tfor(Nodo n : visitados) {\n\t\t\t\timprimirEstado(n.getEstado());\n\t\t\t\tSystem.out.println(\"Costo de este nodo: \" + n.getCosto());\n\t\t\t\tSystem.out.println(\"---------------\");\n\t\t\t}\n\t\t\tSystem.out.println(\"#################################\");\n\t\t\tNodo revisar = abiertos.remove(0);\n\t\t\trevisar.setCosto(calcularCosto(revisar.getEstado(), solucion));\n\t\t\timprimirEstado(revisar.getEstado());\n\t\t\tint[] pcero = ubicarPosicionCero(revisar.getEstado());\n\t\t\tSystem.out.println(\"Iteracion # \" + ++cont);\n\t\t\tif(Arrays.deepEquals(revisar.getEstado(), solucion)) {\n\t\t\t\tSystem.out.println(\"***** SOLUCION ENCONTRADA *****\");\n\t\t\t\treturn revisar;\n\n\t\t\t}\n\n\t\t\tArrayList<Nodo> hijos = new ArrayList<Nodo>();\n\t\t\tvisitados.add(revisar);\n\t\t\tif(pcero[0]!=0) {\n\t\t\t\tNodo hijo = new Nodo(clonar(revisar.getEstado()));\n\t\t\t\thijo.setCosto(calcularCosto(hijo.getEstado(), solucion));\n\t\t\t\tint arriba = hijo.getEstado()[pcero[0]-1][pcero[1]];\n\t\t\t\thijo.getEstado()[pcero[0]][pcero[1]] = arriba;\n\t\t\t\thijo.getEstado()[pcero[0]-1][pcero[1]] = 0;\n\t\t\t\tif(!estaEnVisitados(visitados, hijo))\n\t\t\t\t\tabiertos.add(hijo); //Esta linea es para hacer recorrido em amplitud\n\n\t\t\t\thijos.add(hijo);\n\t\t\t}\n\t\t\tif(pcero[0]!=2) {\n\t\t\t\tNodo hijo = new Nodo(clonar(revisar.getEstado()));\n\t\t\t\thijo.setCosto(calcularCosto(hijo.getEstado(), solucion));\n\t\t\t\tint abajo = hijo.getEstado()[pcero[0]+1][pcero[1]];\n\t\t\t\thijo.getEstado()[pcero[0]][pcero[1]] = abajo;\n\t\t\t\thijo.getEstado()[pcero[0]+1][pcero[1]] = 0;\n\t\t\t\tif(!estaEnVisitados(visitados, hijo))\n\t\t\t\t\tabiertos.add(hijo); //Esta linea es para hacer recorrido em amplitud\n\n\t\t\t\thijos.add(hijo);\n\t\t\t}\n\t\t\tif(pcero[1]!=0) {\n\t\t\t\tNodo hijo = new Nodo(clonar(revisar.getEstado()));\n\t\t\t\thijo.setCosto(calcularCosto(hijo.getEstado(), solucion));\n\t\t\t\tint izq = hijo.getEstado()[pcero[0]][pcero[1]-1];\n\t\t\t\thijo.getEstado()[pcero[0]][pcero[1]] = izq;\n\t\t\t\thijo.getEstado()[pcero[0]][pcero[1]-1] = 0;\n\t\t\t\tif(!estaEnVisitados(visitados, hijo))\n\t\t\t\t\tabiertos.add(hijo); //Esta linea es para hacer recorrido em amplitud\n\n\t\t\t\thijos.add(hijo);\n\t\t\t}\n\t\t\tif(pcero[1]!=2) {\n\t\t\t\tNodo hijo = new Nodo(clonar(revisar.getEstado()));\n\t\t\t\thijo.setCosto(calcularCosto(hijo.getEstado(), solucion));\n\t\t\t\tint der = hijo.getEstado()[pcero[0]][pcero[1]+1];\n\t\t\t\thijo.getEstado()[pcero[0]][pcero[1]] = der;\n\t\t\t\thijo.getEstado()[pcero[0]][pcero[1]+1] = 0;\n\t\t\t\tif(!estaEnVisitados(visitados, hijo))\n\t\t\t\t\tabiertos.add(hijo); //Esta linea es para hacer recorrido em amplitud\n\t\t\t\thijos.add(hijo);\n\t\t\t}\n\t\t\trevisar.setHijos(hijos);\n\t\t}\n\t\treturn null;\n\n\t}", "public void realizacjap34() {\n System.out.println(\"REALIZACJA PUNKTU 3\\n\");\n\n System.out.println(\"\\nWyszukiwanie osob po imieniu (Piotr) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoImieniu(Listy.osoby, \"Piotr\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po nazwisku (Oleszczuk) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoNazwisku(Listy.osoby, \"Oleszczuk\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy mniejszym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyMniejszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy większym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyWiekszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy równym 5============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyRownym(Listy.osoby, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin mniejszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachMniejszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin wiekszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachWiekszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin równej 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachRownych(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji wiekszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiWiekszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji mniejszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiMniejszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji rownej 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiRownej(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stanowisku (Adiunkt) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStanowisku(Listy.osoby, \"Adiunkt\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studenta po numerze indeksu (123456) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzStudentaPoIndeksie(Listy.osoby, \"123456\"));\n\n System.out.println(\"\\nWyszukiwanie studentów po roku studiów (1) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoRokuStudiow(Listy.osoby, 1).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studentów po kierunku (Informatyka Stosowana) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoKierunku(Listy.osoby, \"Informatyka Stosowana\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursu po nazwie (Analiza Matematyczna 1) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzKursPoNazwie(Listy.kursy, \"Analiza Matematyczna 1\"));\n\n System.out.println(\"\\nWyszukiwanie kursów po liczbie ects (5) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoECTS(Listy.kursy, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursów po prowadzacym+\"+Listy.osoby.get(0).getImie()+\" \"+Listy.osoby.get(0).getNazwisko()+\" ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoProwadzacym(Listy.kursy, Listy.osoby.get(0)).forEach(System.out::println);\n\n\n //REALIZACJA PUNKTU 4\n System.out.println(\"=====================================================================================================================\");\n System.out.println(\"REALIZACJA PUNKTU 4\");\n System.out.println(\"=====================================================================================================================\\n\");\n System.out.println(\"Kursy:\\n\");\n for (Kurs kurs : Listy.kursy) {\n System.out.println(kurs.toString());\n }\n\n System.out.println(\"\\nOsoby:\\n\");\n for (Osoba osoba : Listy.osoby) {\n System.out.println(\"OSOBA====================================================================================================\");\n System.out.println(osoba.toString());\n System.out.println();\n }\n }", "public Tournee chercheSolution(int tpsLimite, ContraintesTournee contraintes, Map<String, Map<String, Chemin>> plusCourtsChemins){\n\t\t//HashMap avec l'id et le point pour pouvoir recuperer le point a partir de l'id\n\t\tHashMap<String, Intersection> intersections = new HashMap<String, Intersection>();\n\t\tIterator<PointEnlevement> itEnlev = (Iterator<PointEnlevement>)contraintes.getPointsEnlevement().iterator();\n\t\tIterator<PointLivraison> itLiv = (Iterator<PointLivraison>)contraintes.getPointsLivraison().iterator();\n\t\t\n\t\t//Remplissage HashMap des intersections \n\t\tintersections.put(contraintes.getDepot().getId(), contraintes.getDepot());\n\t\tint nbSommets = 1;\n\t\twhile(itEnlev.hasNext()) {\n\t\t\tIntersection intersec = (Intersection) itEnlev.next();\n\t\t\tintersections.put(intersec.getId(), intersec);\n\t\t\tnbSommets++;\n\t\t}\n\t\twhile(itLiv.hasNext()) {\n\t\t\tIntersection intersec = (Intersection) itLiv.next();\n\t\t\tintersections.put(intersec.getId(), intersec);\n\t\t\tnbSommets++;\n\t\t}\n\t\t\n\t\t//Initialisation de la HashMap vuDispo - contenant les attributs boolean vu et dispo\n\t\tHashMap<String, Paire> vuDispo = initVuDispo(contraintes, intersections);\n\t\t\n\t\tTournee tournee = new Tournee(contraintes);\n\t\t//Sequentiel et MinFirst\n//\t\tcalculerSimplementTournee(tournee, contraintes.getDepot().getId(), (nbSommets-1), intersections, vuDispo, plusCourtsChemins);\t\t\n\t\t\n\t\t//MinFirst + 2-Opt\n\t\tcalculerSimplementTournee(tournee, contraintes.getDepot().getId(), (nbSommets-1), intersections, vuDispo, plusCourtsChemins);\t\t\n\t\ttwoOpt(tpsLimite, System.currentTimeMillis(), tournee, plusCourtsChemins, intersections);\n\t\t\n\t\treturn tournee;\n\t}", "public void geneticoPSO(){ \n //leer archivos de texto\n nombreArchivos.stream().map((nombreArchivo) -> lam.leerArchivo(nombreArchivo)).forEach((Mochila moc) -> {\n mochilas.add(moc);\n }); \n \n int o = 0;\n for (Mochila mochila : mochilas) { \n \n Algorithm_PSO alg_pso = new Algorithm_PSO(0.1, 0.8, 0.7, 0.6, 1, tamanioPob, EFOs, mochila.getSolucion().length, mochila); \n Individuo_mochilaPSO res = (Individuo_mochilaPSO)alg_pso.correr();\n System.out.println(\"fitnes: \" + res.getFitness() + \". Solucion\" + Arrays.toString(res.getCromosoma()));\n if (o == 9){\n System.out.println(\"\");\n }\n o++;\n }\n \n }", "public static void viaggia(List<Trasporto> lista,Taxi[] taxi,HandlerCoR h) throws SQLException\r\n {\n Persona app = (Persona) lista.get(0);\r\n /* ARGOMENTI handleRequest\r\n 1° Oggetto Request\r\n 2° Array Taxi per permettere la selezione e la modifica della disponibilità\r\n */\r\n h.handleRequest(new RequestCoR(app.getPosPartenza(),app.getPosArrivo(),taxi),taxi); \r\n SceltaPercorso tempo = new SceltaPercorso();\r\n SceltaPercorso spazio = new SceltaPercorso();\r\n tempo.setPercorsoStrategy(new timeStrategy());\r\n spazio.setPercorsoStrategy(new lenghtStrategy());\r\n for(int i=0;i<5;i++)\r\n if(!taxi[i].getLibero())\r\n {\r\n if(Scelta.equals(\"veloce\"))\r\n {\r\n JOptionPane.showMessageDialog(null,\"Hai Scelto il Percorso più Veloce...\");\r\n Connessione conn;\r\n conn = Connessione.getConnessione();\r\n String query = \"Delete from CRONOCORSE where PASSEGGERO = ? \";\r\n try (PreparedStatement ps = conn.connect.prepareStatement(query)) {\r\n ps.setString(1, app.getNome());\r\n ps.executeUpdate();\r\n ps.close();\r\n JOptionPane.showMessageDialog(null,\"Cliente in viaggio...\\n\"+app.getNome()+\" è arrivato a destinazione!\\nPrezzo Corsa: \"+taxi[i].getPrezzoTotale()+\"€\");\r\n \r\n \r\n }catch(SQLException e){JOptionPane.showMessageDialog(null,e);}\r\n tempo.Prenota(taxi[i]); \r\n app.setPosPartenza();\r\n taxi[i].setPosizione(app.getPosArrivo());\r\n taxi[i].setStato(true);\r\n taxi[i].clear();\r\n lista.set(0,app);\r\n i=5;\r\n \r\n } else\r\n \r\n {\r\n JOptionPane.showMessageDialog(null,\"Hai Scelto il Percorso più Breve...\");\r\n Connessione conn;\r\n conn = Connessione.getConnessione();\r\n String query = \"Delete from CRONOCORSE where PASSEGGERO = ? \";\r\n try (PreparedStatement ps = conn.connect.prepareStatement(query)) {\r\n ps.setString(1, app.getNome());\r\n ps.executeUpdate();\r\n ps.close();\r\n JOptionPane.showMessageDialog(null,\"Cliente in viaggio...\\n\"+app.getNome()+\" è arrivato a destinazione!\\nPrezzo Corsa: \"+taxi[i].getPrezzoTotale()+\"€\");\r\n \r\n \r\n }catch(SQLException e){JOptionPane.showMessageDialog(null,e);}\r\n spazio.Prenota(taxi[i]); \r\n app.setPosPartenza();\r\n taxi[i].setPosizione(app.getPosArrivo());\r\n taxi[i].setStato(true);\r\n taxi[i].clear();\r\n lista.set(0,app);\r\n i=5;\r\n \r\n \r\n }\r\n }\r\n \r\n }", "public void compute2() {\n\n ILineString lsInitiale = this.geom;\n ILineString lsLisse = Operateurs.resampling(lsInitiale, 1);\n // ILineString lsLisse = GaussianFilter.gaussianFilter(lsInitiale, 10, 1);\n // ILineString\n // lsLisse=LissageGaussian.AppliquerLissageGaussien((GM_LineString)\n // lsInitiale, 10, 1, false);\n\n logger.debug(\"Gaussian Smoothing of : \" + lsInitiale);\n\n // On determine les séquences de virages\n List<Integer> listSequence = determineSequences(lsLisse);\n\n // On applique le filtre gaussien\n\n // On crée une collection de points qui servira à découper tous les\n // virages\n\n if (listSequence.size() > 0) {\n List<Integer> listSequenceFiltre = filtrageSequences(listSequence, 1);\n DirectPositionList dplPointsInflexionLsLissee = determinePointsInflexion(\n lsInitiale, listSequenceFiltre);\n\n for (IDirectPosition directPosition : dplPointsInflexionLsLissee) {\n this.jddPtsInflexion.add(directPosition.toGM_Point().getPosition());\n // dplPtsInflexionVirages.add(directPosition);\n }\n\n // jddPtsInflexion.addAll(jddPtsInflexionLsInitiale);\n\n }\n // dplPtsInflexionVirages.add(lsInitiale.coord().get(lsInitiale.coord().size()-1));\n\n }", "public void faiLavoro(){\n System.out.println(\"Scrivere 1 per Consegna lunga\\nSeleziona 2 per Consegna corta\\nSeleziona 3 per Consegna normale\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n soldiTam += 500;\n puntiVita -= 40;\n puntiFame -= 40;\n puntiFelicita -= 40;\n }\n case 2 -> {\n soldiTam += 300;\n puntiVita -= 20;\n puntiFame -= 20;\n puntiFelicita -= 20;\n }\n case 3 -> {\n soldiTam += 100;\n puntiVita -= 10;\n puntiFame -= 10;\n puntiFelicita -= 10;\n }\n }\n checkStato();\n }", "public static void main(String[] args) {\n System.out.println(\"Test de la partie 1:\");\n System.out.println(\"--------------------\");\n\n Position position1 = new Position(0, 1);\n Position position2 = new Position(1, 0);\n Position position3 = new Position(1, 1);\n\n Neurone neuron1 = new Neurone(position1, 0.5);\n Neurone neuron2 = new Neurone(position2, 1.0);\n Neurone neuron3 = new Neurone(position3, 2.0);\n\n neuron1.connexion(neuron2);\n neuron2.connexion(neuron3);\n neuron1.recoitStimulus(10);\n\n System.out.println(\"Signaux : \");\n System.out.println(neuron1.getSignal());\n System.out.println(neuron2.getSignal());\n System.out.println(neuron3.getSignal());\n\n System.out.println();\n System.out.println(\"Premiere connexion du neurone 1\");\n System.out.println(neuron1.getConnexion(0));\n\n\n // FIN TEST DE LA PARTIE 1\n\n // TEST DE LA PARTIE 2\n System.out.println(\"Test de la partie 2:\");\n System.out.println(\"--------------------\");\n\n Position position5 = new Position(0, 0);\n NeuroneCumulatif neuron5 = new NeuroneCumulatif(position5, 0.5);\n neuron5.recoitStimulus(10);\n neuron5.recoitStimulus(10);\n System.out.println(\"Signal du neurone cumulatif -> \" + neuron5.getSignal());\n\n // FIN TEST DE LA PARTIE 2\n\n // TEST DE LA PARTIE 3\n System.out.println();\n System.out.println(\"Test de la partie 3:\");\n System.out.println(\"--------------------\");\n Cerveau cerveau = new Cerveau();\n\n // parametres de construction du neurone:\n // la position et le facteur d'attenuation\n cerveau.ajouterNeurone(new Position(0,0), 0.5);\n cerveau.ajouterNeurone(new Position(0,1), 0.2);\n cerveau.ajouterNeurone(new Position(1,0), 1.0);\n\n // parametres de construction du neurone cumulatif:\n // la position et le facteur d'attenuation\n cerveau.ajouterNeuroneCumulatif(new Position(1,1), 0.8);\n cerveau.creerConnexions();\n cerveau.stimuler(0, 10);\n\n System.out.println(\"Signal du 3eme neurone -> \" + cerveau.sonder(3));\n System.out.println(cerveau);\n // FIN TEST DE LA PARTIE 3\n }", "public int orientaceGrafu(){\n\t\tint poc = 0;\n\t\tfor(int i = 0 ; i < hrana.length ; i++){\n\t\t\tif(!oriNeboNeoriHrana(hrana[i].zacatek,hrana[i].konec))\n\t\t\t poc++;\n\t\t}\n\t\tif(poc == 0 )\n\t\t\treturn 0;\n\t\t\n\t\tif(poc == pocetHr)\n\t\t\treturn 1;\n\t\t\n\t\t\n\t\t\treturn 2;\n\t\t \n\t\t\n\t\t\t\t\t\n\t}", "public static void obtenerInfoColisionJugador(Jugador jugador, Objeto col,String[] direccion, ArrayList<Objeto> obj_colision) {\n Rectangle[] lados_ente = jugador.objeto_ente.getRectangle();\n Rectangle[] lados_col = col.getRectangle();\n\n \n if (col.getTag().compareToIgnoreCase(Objeto.Tag.COMIDA) == 0 || col.getTag().compareToIgnoreCase(Objeto.Tag.MONEDA) == 0) {\n //System.out.println(\"COMIDA\");\n for(int i=0;i<4;i++)\n if (lados_ente[i].intersects(lados_col[0])) {\n obj_colision.add(col);\n return;\n }\n }\n\n \n \n if (col.getTag().compareToIgnoreCase(Objeto.Tag.ENEMIGO) == 0) {\n\n //System.out.println(lados_ente[0].x + \" con \" + lados_col[0].x + \" tag: \" + col.getId());\n if (lados_ente[0].intersects(lados_col[2])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"enemigo_arriba\";\n }\n //else\n // System.out.println(lados_ente[0].y + \" con \" + lados_col[2].y + \" tag: \" + col.getId());\n if (lados_ente[1].intersects(lados_col[3])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"enemigo_derecha\";\n\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"enemigo_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[1])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"enemigo_izquierda\";\n }\n\n }\n \n if (col.getTag().compareToIgnoreCase(Objeto.Tag.NPC) == 0) {\n\n //System.out.println(lados_ente[0].x + \" con \" + lados_col[0].x + \" tag: \" + col.getId());\n if (lados_ente[0].intersects(lados_col[0])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"npc_arriba\";\n }\n //else\n // System.out.println(lados_ente[0].y + \" con \" + lados_col[2].y + \" tag: \" + col.getId());\n if (lados_ente[1].intersects(lados_col[0])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"npc_derecha\";\n\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"npc_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[0])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"npc_izquierda\";\n }\n\n }\n\n if (lados_ente[0].intersects(lados_col[0])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"entorno_arriba\";\n }\n if (lados_ente[1].intersects(lados_col[0])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"entorno_derecha\";\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"entorno_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[0])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"entorno_izquierda\";\n }\n }", "private void pojedi (int i, int j) {\n\t\trezultat++;\n\t\tthis.zmija.add(0, new Cvor(i,j));\n\t\tthis.dodajZmiju();\n\t\tthis.dodajHranu();\n\t}", "void evoluer()\n {\n int taille = grille.length;\n int nbVivantes = 0;\n for(int i=-1; i<2; i++)\n {\n int xx = ((x+i)+taille)%taille; // si x+i=-1, xx=taille-1. si x+i=taille, xx=0\n for(int j=-1; j<2; j++)\n {\n if (i==0 && j==0) continue;\n int yy = ((y+j)+taille)%taille;\n if (grille[xx][yy].vivante) nbVivantes++;\n }\n }\n if (nbVivantes<=1 || nbVivantes>=4) {vientDeChanger = (vivante==true); vivante = false;}\n if (nbVivantes==3) {vientDeChanger = (vivante==false); vivante = true;}\n }", "private void afficheSuiv(){\n\t\ttry{ // Essayer ceci\n\t\t\tif(numCourant <= rep.taille()){\n\t\t\t\tnumCourant ++;\n\t\t\t\tPersonne e = rep.recherchePersonne(numCourant); // Rechercher la personne en fonction du numCourant\n\t\t\t\tafficherPersonne(e);\n\t\t\t}else{\n\t\t\t\tafficherMessageErreur();\n\t\t\t}\n\t\t}catch(Exception e){ // Permet de voir s'il y a cette exception\n\t\t\tafficherMessageErreur();\n\t\t\tnumCourant --;\n\t\t}\n\t}", "void rozpiszKontraktyPart2EV(int index,float wolumenHandlu, float sumaKupna,float sumaSprzedazy )\n\t{\n\t\t//wektor z ostatecznie ustalona cena\n\t\t//rozpiszKontrakty() - wrzuca jako ostatnia cene cene obowiazujaa na lokalnym rynku \n\t\tArrayList<Float> priceVector = priceVectorsList.get(priceVectorsList.size()-1);\n\n\t\t\n\t\t//ograniczenia handlu prosumenta\n\t\tArrayList<DayData> constrainMarkerList = new ArrayList<DayData>();\n\t\t\n\t\t//ograniczenia handlu EV\n\t\tArrayList<DayData> constrainMarkerListEV = new ArrayList<DayData>();\n\t\t\n\t\t//print(listaFunkcjiUzytecznosci.size());\n\t\t//getInput(\"rozpiszKontraktyPart2EV first stop\");\n\t\t\n\t\tint i=0;\n\t\twhile(i<listaFunkcjiUzytecznosci.size())\n\t\t{\n\t\t\t\n\t\t\t//lista funkcji uzytecznosci o indeksie i\n\t\t\tArrayList<Point> L1\t=listaFunkcjiUzytecznosci.get(i);\n\t\t\t\n\t\t\t//point z cena = cena rynkowa\n\t\t\tPoint point = L1.get(index);\n\t\t\t\n\t\t\t\n\t\t\tDayData d =rozpiszKontraktyPointToConstrainMarker(point, wolumenHandlu, sumaKupna, sumaSprzedazy, i);\n\t\t\t\n\t\t\tif (i<Stale.liczbaProsumentow)\n\t\t\t{\n\t\t\t\tconstrainMarkerList.add(d);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tconstrainMarkerListEV.add(d);\n\t\t\t\t\n\t\t\t\t/*print(d.getKupuj());\n\t\t\t\tprint(d.getConsumption());\n\t\t\t\tprint(d.getGeneration());\n\t\t\t\t\n\t\t\t\tgetInput(\"rozpiszKontraktyPart2EV - Ostatni kontrakt\");*/\n\t\t\t}\n\n\t\t\t\n\t\t\t//print(\"rozpiszKontraktyPart2EV \"+i);\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tArrayList<Prosument> listaProsumentow =listaProsumentowWrap.getListaProsumentow();\n\n\t\t//wyywolaj pobranie ontraktu\n\t\ti=0;\n\t\twhile (i<Stale.liczbaProsumentow)\n\t\t{\n\t\t\tif (i<constrainMarkerListEV.size())\n\t\t\t{\n\t\t\t\t((ProsumentEV)listaProsumentow.get(i)).getKontrakt(priceVector,constrainMarkerList.get(i),constrainMarkerListEV.get(i));\n\t\t\t\t//print(\"constrainMarkerListEV \"+i);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlistaProsumentow.get(i).getKontrakt(priceVector,constrainMarkerList.get(i));\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//getInput(\"rozpiszKontraktyPart2EV -end\");\n\t}", "private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}", "private void paintCourbeLie() {\n\t\tfloat x, y, yPrec = parent.getY(0);\n\t\tint j=0, jPrec = (int) axis.getY();\n\t\t\n\t\tfor(int i=(int) axis.getX()-1; i>0; i--) { //Dessine la courbe precedant l'origine\n\t\t\tx = (float) ((i-axis.getX())/(pointsParX));\n\t\t\ty = parent.getY(x);\n\n\t\t\tif(y>yMin && y<yMax) {\n\t\t\t\tj = convertY(y);\n\t\t\t\n\t\t\t\tpaintPointInColor(i, j);\n\t\t\t\t\n\t\t\t\tif(j != jPrec-1 && j != jPrec+1) //Si il y a un espacement entre ce point et le dernier point dessine\n\t\t\t\t\ttraceLink(i, j, i-1, jPrec); //on trace une ligne entre ces deux points\n\t\t\t\t\n\t\t\t\tjPrec = j;\n\t\t\t}\n\t\t\t\n\t\t\telse if(y > yMax && yPrec < yMax) //Trace la courbe jusqu'en haut si le point sort de l'affichage\n\t\t\t\ttraceLink(i, 1, i-1, jPrec);\n\t\t\t\t\n\t\t\telse if(y < yMin && yPrec > yMin) //Trace la courbe jusqu'en bas si le point sort de l'affichage\n\t\t\t\ttraceLink(i, height-1, i-1, jPrec);\n\n\t\t\tyPrec = y;\n\t\t}\n\t\t\n\t\tyPrec = parent.getY(0);\n\t\tjPrec = (int) axis.getY();\n\t\t\n\t\tfor(int i=(int) axis.getX(); i<width; i++) { //Dessine la courbe suivant l'origine\n\t\t\tx = (float) ((i-axis.getX())/(pointsParX));\n\t\t\ty = parent.getY(x);\n\n\t\t\tif(y>yMin && y<yMax) {\n\t\t\t\tj = convertY(y);\n\t\t\t\n\t\t\t\tpaintPointInColor(i, j);\n\t\t\t\t\n\t\t\t\tif(j != jPrec-1 && j != jPrec+1)\n\t\t\t\t\ttraceLink(i, j, i-1, jPrec);\n\t\t\t\t\n\t\t\t\tjPrec = j;\n\t\t\t}\n\t\t\t\n\t\t\telse if(y > yMax && yPrec < yMax)\n\t\t\t\ttraceLink(i, 1, i-1, jPrec);\n\n\t\t\telse if(y < yMin && yPrec > yMin)\n\t\t\t\ttraceLink(i, height-1, i-1, jPrec);\n\t\t\t\t\n\t\t\tyPrec = y;\n\t\t}\n\t}", "public void partieEnCour(int niveau){\n\t\t\t\n\t\t\tif(niveau<=0){\n\t\t\t\tSystem.out.println(\"Quel niveau ?\");\n\t\t\t\tniveau=lire.nextInt();\n\t\t\t}\n\t\t\tthis.niveau=niveau;\n\t\t\tthis.terrainDeLaPartie=this.EnsembleNiveau.listeMap.get(niveau-1);\n\t\t\tSystem.out.println(terrainDeLaPartie.getCave().toString());\n\t\t\tthis.terrainDeLaPartie.afficherMap();\n\t\t\tboolean heroEnVie=true;\n\t\t\twhile(sortieNonAtteint()&& tempsNonEcoule() && heroEnVie==true){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(ObjetVivant eleViv:terrainDeLaPartie.getPersonnageSurLeTerrain()){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tif(eleViv.estEnVie()){\n\t\t\t\t\t\t\teleViv.seDeplacer(terrainDeLaPartie);\n\t\t\t\t\t\t}\n\t\t\t\t\t}catch(DeplacementInvalideException e){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfor(ObjetNonVivant eleNonViv:terrainDeLaPartie.getObjetSurLeTerrain()){\n\t\t\t\t\teleNonViv.tomber(terrainDeLaPartie);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tquiEstMort();\n\t\t\t\tquiEstDetruit();\n\t\t\t\tthis.terrainDeLaPartie.getObjetSurLeTerrain().addAll(this.terrainDeLaPartie.reinitialisationObjet());\n\t\t\t\tthis.terrainDeLaPartie.afficherMap();\n\t\t\t\tCave a=this.terrainDeLaPartie.getCave();\n\t\t\t\ta.setCaveTime(a.getCaveTime()-1);\t\t\t\n\t\t\t\tSystem.out.println(this.terrainDeLaPartie.getPersonnageSurLeTerrain().size()-1+\" enemie\");\n\t\t\t\tSystem.out.println(this.terrainDeLaPartie.getObjetSurLeTerrain().size()-1+\" objet\");\n\t\t\t\t\n\t\t\t\theroEnVie=heroEncoreDansListe(this.terrainDeLaPartie.getPersonnageSurLeTerrain());\n\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif(heroEnVie && !sortieNonAtteint()){\n\t\t\t\tthis.terrainDeLaPartie=this.EnsembleNiveau.listeMap.get(niveau);\n\t\t\t\tpartieEnCour(niveau+1);\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Vous avez perdu ! Voulez vous rejouer ?\");\n\t\t\t\tSystem.out.println(\"1:rejouer\");\n\t\t\t\tSystem.out.println(\"2:quitter \");\n\t\t\t\tint rep=lire.nextInt();\n\t\t\t\tif(rep==1){\n\t\t\t\t\tFile f=new File(\"BD01plus.bdcff\");\n\t\t\t\t\tEnsembleNiveau=new Univers();\n\t\t\t\t\tLireFichier.lire(f, EnsembleNiveau);\n\t\t\t\t\tthis.partieEnCour(niveau);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "@Override\n public Coup meilleurCoup(Plateau _plateau, Joueur _joueur, boolean _ponder) {\n \n _plateau.sauvegardePosition(0);\n \n /* On créé un noeud père, qui est le noeud racine de l'arbre. On définit arbitrairement le joueur associé (\n (0 ou 1, il importe peu de savoir quel joueur correspond à ce nombre, cette information étant déjà portée par \n j1 et j2 dans l'algorithme. Le tout est de faire alterner cette valeur à chaque niveau de l'arbre. */\n \n Noeud pere = new Noeud();\n pere.joueurAssocie = 0;\n \n // On définit ici c, le coefficient d'arbitrage entre exploration et exploitation. Ce dernier est théroquement optimal pour una valeur égale à sqrt(2).\n \n double c = 10 * Math.sqrt(2);\n double[] resultat = new double[2];\n \n // Conditions de fonctionnement par itération\n \n //int i = 1;\n //int nbTours = 10000;\n \n //while(i <= nbTours){\n \n // Conditions de fonctionnement en mode \"compétition\" (100 ms pour se décider au maximum).\n \n long startTime = System.currentTimeMillis();\n \n while((System.currentTimeMillis()-startTime) < 100){\n\n // La valeur résultat ne sert à rien fondamentalement ici, elle sert uniquement pour le bon fonctionnement de l'algorithme en lui même.\n // On restaure le plateau à chaque tour dans le MCTS (Sélection - Expension - Simulation - Backpropagation). \n \n resultat = MCTS(pere, _plateau, this.j_humain, this.j_ordi, c, this.is9x9, this.methodeSimulation);\n _plateau.restaurePosition(0);\n \n //i++;\n }\n\n // On doit maintenant choisir le meilleur coup parmi les fils du noeud racine, qui correspondent au coup disponibles pour l'IA.\n \n double maxValue = 0;\n int maxValueIndex = 0;\n \n for(int j = 0; j < pere.fils.length; j++){\n \n double tauxGain = ((double)pere.fils[j].nbPartiesGagnees / (double)pere.fils[j].nbPartiesJouees);\n\n // On choisirat le coup qui maximise le taux de gain des parties simulées.\n \n if(tauxGain >= maxValue){\n maxValueIndex = j;\n maxValue = tauxGain;\n \n }\n }\n \n // On retourne le coup associé au taux de gain le plus élevé.\n\n return pere.fils[maxValueIndex].coupAssocie;\n }", "private void preenchePosicoes(List<Par<Integer,Integer>> posicoes, \n\t\t\tEstadoAmbiente estado) {\n\t\tfor (Par<Integer,Integer> p : posicoes) {\n\t\t\tthis.quadricula[p.primeiro()][p.segundo()] = estado;\n\t\t}\n\t}", "private void posicionInicial(int ancho){\r\n posicionX = ancho;\r\n Random aleatroio = new Random();\r\n int desplazamiento = aleatroio.nextInt(150)+100;\r\n \r\n \r\n cazaTie = new Rectangle2D.Double(posicionX, desplazamiento, anchoEnemigo, alturaEnemigo);\r\n }", "public void daiGioco() {\n System.out.println(\"Scrivere 1 per giocare al PC, al costo di 200 Tam\\nSeleziona 2 per a Calcio, al costo di 100 Tam\\nSeleziona 3 per Disegnare, al costo di 50 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiFelicita += 60;\n puntiVita -= 30;\n soldiTam -= 200;\n }\n case 2 -> {\n puntiFelicita += 40;\n puntiVita -= 20;\n soldiTam -= 100;\n }\n case 3 -> {\n puntiFelicita += 30;\n puntiVita -= 10;\n soldiTam -= 50;\n }\n }\n checkStato();\n }", "private void formatoCirculos(Connection conex){\r\n circulos(hlQuirugi, pQuirugicos.listaAntePatoQuir(conex, paci.getId_paciente()));\r\n circulos(hlAlergias, pAlergias.listaAntePaAlergias(conex, paci.getId_paciente()));\r\n circulos(hlPadMedicos, pMedicos.listaAntePatoMedico(conex, paci.getId_paciente()));\r\n circulosObjetos(hlNoPatologicos, antNopato.cargaSoloUno(paci.getId_paciente(), conex));\r\n circulosObjetos(hlHeredo, masAnteHere.cargaSoloUno(paci.getId_paciente(), conex));\r\n circulos(hlTransfuncionales, pTransfucion.listaAntePaTransfucion(conex, paci.getId_paciente()));\r\n circulos(hlTraumaticos, pTraumaticos.listaAntePaTrauma(conex, paci.getId_paciente()));\r\n circulos(hlAdiciones, pAdicciones.listaAntePaAdicciones(conex, paci.getId_paciente()));\r\n }", "private void estadoInicial(){\n double referencias[] = new double[sigmas.length];\n for(int i=0;i<sigmas.length;i++){\n referencias[i] = (ppl.limiteSuperiorR(i+1)+ppl.limiteInferiorR(i+1))/2;\n System.out.printf(\"limS:%g, limI:%g, Referencias[%d] = %g\\n\",ppl.limiteSuperiorR(i+1),ppl.limiteInferiorR(i+1),i,referencias[i]);\n }\n\n double Zc = ppl.Z(referencias[0],referencias[1]);\n TActual = Zc*0.2;\n System.out.printf(\"TActual:T%g \\n\",TActual);\n\n estadoMejor = new Estado(\n iteracionActual, \n TActual, \n referencias,\n Zc);\n\n calcularSoluciones(estadoMejor);\n calcularProbabilidadAceptacion(estadoMejor);\n\n historialEstados.add(estadoMejor);\n }", "@Override\n\tpublic List<IIndividuo> cruce(IIndividuo ind1, IIndividuo ind2) throws CruceNuloException {\n\t\tList<IIndividuo> result = new ArrayList<>();\n\t\tint a = Individuo.aleatNum(0, ind1.getNumeroNodos()-1);\n\t\tint b = Individuo.aleatNum(0, ind2.getNumeroNodos()-1);\n\t\t\n\t\t/* TODO Descomentar para la entrega. Lo quitamos para acelerar las pruebas.\n\t\t * if(a == 0 && b == 0) {\n\t\t\tthrow new CruceNuloException();\n\t\t}*/\n\t\t\n\t\twhile(a == 0 && b == 0) {\n\t\t\ta = Individuo.aleatNum(0, ind1.getNumeroNodos()-1);\n\t\t\tb = Individuo.aleatNum(0, ind2.getNumeroNodos()-1);\n\t\t}\n\t\t\n\t\t/*Copiamos los individuos, pues no podemos devolver el mismo.\n\t\t * Una vez copiados, los etiquetamos, pues durante la copia no\n\t\t * copiamos las etiquetas. Así, si los individuos iniciales estaban\n\t\t * etiquetados, no habrá ningun problema, seran iguales, y si no estaban\n\t\t * etiquetados, el algoritmo seguira funcionando.*/\n\t\tIIndividuo copia1 = new Individuo();\n\t\tcopia1.setFitness(ind1.getFitness());\n\t\tcopia1.setExpresion(ind1.getExpresion().copy());\n\t\tcopia1.etiquetaNodos();\n\t\t\n\t\tIIndividuo copia2 = new Individuo();\n\t\tcopia2.setFitness(ind2.getFitness());\n\t\tcopia2.setExpresion(ind2.getExpresion().copy());\n\t\tcopia2.etiquetaNodos();\n\t\t\n\t\t/*Cogemos enconces los Nodos que queremos intercambiar entre ambos arboles.\n\t\t * En este caso, dado nuestro algoritmo de etiquetacion y nuestra forma de \n\t\t * generar los numeros aleatorios, sabemos que dicho nodo siempre va a estar,\n\t\t * y por tanto, no hace falta que nos aseguremos de que la funcion buscarNodo\n\t\t * no devuelva null.*/\n\t\t\n\t\tINodo nodo1 = copia1.getExpresion().buscarNodo(a);\n\t\tINodo nodo2 = copia2.getExpresion().buscarNodo(b);\n\t\t\n\t\tcopia1.getExpresion().reemplazarNodo(a, nodo2);\n\t\tcopia2.getExpresion().reemplazarNodo(b, nodo1);\n\t\tcopia1.etiquetaNodos();\n\t\tcopia2.etiquetaNodos();\n\t\t\n\t\tresult.add(copia1);\n\t\tresult.add(copia2);\n\t\treturn result;\n\t}", "public void recarga(){\n \tthis.fuerza *= 1.1;\n \tthis.vitalidad *= 1.1; \n }", "public Contrareloj(int opc,int min,int seg) {\r\n super.opc=opc;\r\n this.opc=opc;\r\n this.seg=seg;\r\n this.min=min;\r\n inicializar1();\r\n llenar();\r\n inicializar2();\r\n juego();\r\n }", "public static Resultado PCF(GrafoMatriz G, Demanda demanda,ListaEnlazada [] ksp,int capacidad){\n \n //*Definicion de variables las variables\n int inicio=0, fin=0,cont; // posicion inicial y final dentro del espectro asi como el contador de FSs contiguos disponibles\n \n int demandaColocada=0; // bandera para controlar si ya se encontro espectro disponible para la demanda.\n int [] OE= new int[capacidad]; //Ocupacion de Espectro.\n ArrayList<ListaEnlazada> kspUbicados = new ArrayList<ListaEnlazada>();\n ArrayList<Integer> inicios = new ArrayList<Integer>();\n ArrayList<Integer> fines = new ArrayList<Integer>();\n ArrayList<Integer> indiceKsp = new ArrayList<Integer>();\n\n //Probamos para cada camino, si existe espectro para ubicar la damanda\n int k=0;\n\n while(k<ksp.length && ksp[k]!=null){\n //Inicializadomos el espectro, inicialmente todos los FSs estan libres\n for(int i=0;i<capacidad;i++){\n OE[i]=1;\n }\n //Calcular la ocupacion del espectro para cada camino k\n for(int i=0;i<capacidad;i++){\n for(Nodo n=ksp[k].getInicio();n.getSiguiente().getSiguiente()!=null;n=n.getSiguiente()){\n //System.out.println(\"v1 \"+n.getDato()+\" v2 \"+n.getSiguiente().getDato()+\" cant vertices \"+G.getCantidadDeVertices()+\" i \"+i+\" FSs \"+G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS().length);\n if(G.acceder(n.getDato(),n.getSiguiente().getDato()).getFS()[i].getEstado()==0){\n OE[i]=0;\n break;\n }\n }\n }\n \n inicio=fin=cont=0;\n for(int i=0;i<capacidad;i++){\n if(OE[i]==1){\n inicio=i;\n for(int j=inicio;j<capacidad;j++){\n if(OE[j]==1){\n cont++;\n }\n else{\n cont=0;\n break;\n }\n //si se encontro un bloque valido, salimos de todos los bloques\n if(cont==demanda.getNroFS()){\n fin=j;\n fines.add(fin);\n inicios.add(inicio);\n demandaColocada=1;\n kspUbicados.add(ksp[k]);\n indiceKsp.add(k);\n //inicio=fin=cont=0;\n break;\n }\n }\n }\n if(demandaColocada==1){\n demandaColocada = 0;\n break;\n }\n }\n k++;\n }\n \n /*if(demandaColocada==0){\n return null; // Si no se encontro, en ningun camino un bloque contiguo de FSs, retorna null.\n }*/\n \n if (kspUbicados.isEmpty()){\n //System.out.println(\"Desubicado\");\n return null;\n }\n \n int [] cortesSlots = new int [2];\n double corte = -1;\n double Fcmt = 9999999;\n double FcmtAux = -1;\n \n int caminoElegido = -1;\n\n //controla que exista un resultado\n boolean nulo = true;\n\n ArrayList<Integer> indiceL = new ArrayList<Integer>();\n \n //contar los cortes de cada candidato\n for (int i=0; i<kspUbicados.size(); i++){\n cortesSlots = Utilitarios.nroCuts(kspUbicados.get(i), G, capacidad);\n if (cortesSlots != null){\n \n corte = (double)cortesSlots[0];\n \n indiceL = Utilitarios.buscarIndices(kspUbicados.get(i), G, capacidad);\n \n double saltos = (double)Utilitarios.calcularSaltos(kspUbicados.get(i));\n \n double slotsDemanda = demanda.getNroFS();\n \n //contar los desalineamientos\n double desalineamiento = (double)Utilitarios.contarDesalineamiento(kspUbicados.get(i), G, capacidad, cortesSlots[1]);\n \n double capacidadLibre = (double)Utilitarios.contarCapacidadLibre(kspUbicados.get(i),G,capacidad);\n \n \n \n \n // double vecinos = (double)Utilitarios.contarVecinos(kspUbicados.get(i),G,capacidad);\n \n\n \n //FcmtAux = corte + (desalineamiento/(demanda.getNroFS()*vecinos)) + (saltos *(demanda.getNroFS()/capacidadLibre)); \n \n FcmtAux = ((saltos*slotsDemanda) + corte + desalineamiento)/capacidadLibre;\n \n if (FcmtAux<Fcmt){\n Fcmt = FcmtAux;\n caminoElegido = i;\n }\n \n nulo = false;\n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n \n }\n }\n \n if (caminoElegido==-1){\n System.out.println(\"Camino Elegido = -1 ..................\");\n }\n //caminoElegido = Utilitarios.contarCuts(kspUbicados, G, capacidad);\n \n if (nulo || caminoElegido==-1){\n return null;\n }\n \n Resultado r= new Resultado();\n /*r.setCamino(k-1);\n r.setFin(fin);\n r.setInicio(inicio);*/\n \n r.setCamino(indiceKsp.get(caminoElegido));\n r.setFin(fines.get(caminoElegido));\n r.setInicio(inicios.get(caminoElegido));\n return r;\n }", "public ControladorCombate(int tipo_simulacion,\r\n Entrenador entrenador1, Entrenador entrenador2, ControladorPrincipal cp){\r\n this.esLider = false;\r\n this.controlador_principal = cp;\r\n this.tipo_simulacion = tipo_simulacion;\r\n this.combate = new Combate();\r\n this.equipo1 = entrenador1.getPokemones();\r\n this.equipo2 = entrenador2.getPokemones();\r\n this.entrenador1 = entrenador1;\r\n this.entrenador2 = entrenador2;\r\n this.vc = new VistaCombate();\r\n this.va = new VistaAtaque();\r\n this.ve = new VistaEquipo();\r\n this.creg = new ControladorRegistros();\r\n String[] nombres1 = new String[6];\r\n String[] nombres2 = new String[6];\r\n for (int i = 0; i < 6; i++) {\r\n nombres1[i]=equipo1[i].getPseudonimo();\r\n nombres2[i]=equipo2[i].getPseudonimo(); \r\n }\r\n this.vpc = new VistaPreviaCombate(tipo_simulacion, entrenador1.getNombre(), entrenador2.getNombre());\r\n this.vpc.agregarListener(this);\r\n this.vpc.setjC_Equipo1(nombres1);\r\n this.vpc.setjC_Equipo2(nombres2);\r\n this.vpc.setVisible(true);\r\n this.termino = false;\r\n resetearEntrenadores();\r\n }", "private Filtro getFiltroFissiGiornoConto(Date data, int codConto) {\n /* variabili e costanti locali di lavoro */\n Filtro filtro = null;\n Filtro filtroDate = null;\n Filtro filtroInizio = null;\n Filtro filtroSincro;\n Filtro filtroVuota;\n Filtro filtroIntervallo;\n Filtro filtroFine;\n Filtro filtroConto = null;\n Modulo modConto;\n Date dataVuota;\n\n try { // prova ad eseguire il codice\n\n modConto = Progetto.getModulo(Conto.NOME_MODULO);\n\n filtroDate = new Filtro();\n\n filtroInizio = FiltroFactory.crea(Cam.dataInizioValidita.get(),\n Filtro.Op.MINORE_UGUALE,\n data);\n filtroSincro = FiltroFactory.crea(Cam.dataSincro.get(), Filtro.Op.MINORE, data);\n dataVuota = Lib.Data.getVuota();\n filtroVuota = FiltroFactory.crea(Cam.dataSincro.get(), dataVuota);\n\n filtroFine = FiltroFactory.crea(Cam.dataFineValidita.get(),\n Filtro.Op.MAGGIORE_UGUALE,\n data);\n filtroIntervallo = new Filtro();\n filtroIntervallo.add(filtroSincro);\n filtroIntervallo.add(filtroFine);\n\n filtroDate.add(filtroIntervallo);\n filtroDate.add(Filtro.Op.OR, filtroVuota);\n\n /* filtro per il conto */\n filtroConto = FiltroFactory.codice(modConto, codConto);\n\n filtro = new Filtro();\n filtro.add(filtroInizio);\n filtro.add(filtroDate);\n filtro.add(filtroConto);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return filtro;\n }", "@Override\n public Forme symetrieAxiale(final Ligne l) {\n double coeficient = (l.getPointB().getY() - l.getPointA().getY()) / (l.getPointB().getX() - l.getPointA().getX());\n double b = l.getPointA().getY() - (coeficient * l.getPointA().getX());\n /* Calcul de l'equation de la deuxieme droite (entre le centre et le centre symetrique) :\n * coefficient = 1 / coefficientPremiereDroite\n * donc yCentre = xCentre * coefficient + b\n * */\n\n double coefficientBis = -1 / coeficient;\n\n double bBis = this.centre.getY() - (this.centre.getX() * coefficientBis);\n double bpCercle =this.pCercle.getY() - (this.pCercle.getX() * coefficientBis);\n\n /*\n Soit les droites dont les équations sont y = x – 4 et y = –2x + 5, alors : x – 4 = –2x + 5. On représente ces droites dans un plan cartésien.\n Donc : 3x = 9 et x = 3\n Puis : y = –1\n Les coordonnées du point d’intersection de ces droites sont (3, –1).\n\n */\n double xCentre = (bBis - b) / (coeficient - coefficientBis);\n double yCentre = coefficientBis * xCentre + bBis;\n\n double xPCercle = (bpCercle - b) / (coeficient - coefficientBis);\n double yPCercle = coefficientBis * xPCercle + bpCercle;\n\n Point newCentre = new Point(Math.floor((2*xCentre - this.centre.getX())*100)/100,Math.floor((2*yCentre - this.centre.getY())*100)/100);\n Point newPoint = new Point(Math.floor((2*xPCercle - this.pCercle.getX())*100)/100,Math.floor((2*yPCercle - this.pCercle.getY())*100)/100);\n return new Cercle(newCentre,newPoint);\n }", "public void mutacioni(Individe individi, double probabiliteti) {\n int gjasaPerNdryshim = (int) ((1 / probabiliteti) * Math.random());\r\n if (gjasaPerNdryshim == 1) {\r\n int selectVetura1 = (int) (Math.random() * individi.pikatEVeturave.length);//selekton veturen e pare\r\n int selectPikenKamioni1 = (int) (Math.random() * individi.pikatEVeturave[selectVetura1].size());//selekton piken e vetures tpare\r\n if (pikatEVeturave[selectVetura1].size() == 0) {\r\n return;\r\n }\r\n Point pika1 = individi.pikatEVeturave[selectVetura1].get(selectPikenKamioni1);//pika 1\r\n\r\n int selectVetura2 = (int) (Math.random() * individi.pikatEVeturave.length);//selekton veturen e dyte\r\n int selectPikenKamioni2 = (int) (Math.random() * individi.pikatEVeturave[selectVetura2].size());//selekton piken e vetures tdyte\r\n if (pikatEVeturave[selectVetura2].size() == 0) {\r\n return;\r\n }\r\n Point pika2 = individi.pikatEVeturave[selectVetura2].get(selectPikenKamioni2);//pika 2\r\n\r\n individi.pikatEVeturave[selectVetura2].set(selectPikenKamioni2, pika1);//i ndrron vendet ketyre dy pikave\r\n individi.pikatEVeturave[selectVetura1].set(selectPikenKamioni1, pika2);\r\n }\r\n\r\n }", "SintagmaPreposicional createSintagmaPreposicional();", "private void test() {\n\t\tCoordinate[] polyPts = new Coordinate[]{ \n\t\t\t\t new Coordinate(-98.50165524249245,45.216163960194365), \n\t\t\t\t new Coordinate(-96.07562805826798,39.725652270504796), \t\n\t\t\t\t new Coordinate(-88.95179971518155,39.08088689505274), \t\n\t\t\t\t new Coordinate(-87.96893561066132,44.647653935023214),\n\t\t \t\t new Coordinate(-89.72876449996915,41.54448973482366)\n\t\t\t\t };\n Coordinate[] seg = new Coordinate[2]; \n \n \tCoordinate midPt = new Coordinate();\n \tmidPt.x = ( polyPts[ 0 ].x + polyPts[ 2 ].x ) / 2.0 - 1.0;\n \tmidPt.y = ( polyPts[ 0 ].y + polyPts[ 2 ].y ) / 2.0 - 1.0;\n seg[0] = polyPts[ 0 ];\n seg[1] = midPt; \n \n \n\t\tfor ( int ii = 0; ii < (polyPts.length - 2); ii++ ) {\n\t\t\tfor ( int jj = ii + 2; jj < (polyPts.length); jj ++ ) {\n\t\t seg[0] = polyPts[ii];\n\t\t seg[1] = polyPts[jj]; \n\t\t \n\t\t\t boolean good = polysegIntPoly( seg, polyPts );\n\t String s;\n\t\t\t if ( good ) {\n\t\t\t\t\ts = \"Qualify!\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ts = \"Not qualify\";\t\t\t\t\n\t\t\t\t}\t\t\t \n\t\t\t\t\n\t\t\t System.out.println( \"\\npoint \" + ii + \"\\t<Point Lat=\\\"\" + \n\t\t\t\t\t polyPts[ii].y + \"\\\" Lon=\\\"\" + polyPts[ii].x + \"\\\"/>\" \n\t\t\t\t\t + \"\\t=>\\t\" + \"point \" + jj+ \"\\t<Point Lat=\\\"\" + \n polyPts[jj].y + \"\\\" Lon=\\\"\" + polyPts[jj].x + \"\\\"/>\"\n + \"\\t\" + s );\n \n\t\t\t}\n\t }\n\n\t}", "private void aretes_aO(){\n\t\tthis.cube[40] = this.cube[7]; \n\t\tthis.cube[7] = this.cube[25];\n\t\tthis.cube[25] = this.cube[46];\n\t\tthis.cube[46] = this.cube[34];\n\t\tthis.cube[34] = this.cube[40];\n\t}", "@Override\n public Boolean colisionoCon(Policia gr) {\n return true;\n }", "public void riconnetti() {\n\t\tconnesso = true;\n\t}", "private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }", "public void avvio_gioco(){\n\n punti = 3;\n //Posizione iniziale della x\n for (short i = 0; i < punti; i++) {\n x[i] = 150 - i*10;\n y[i] = 150;\n }\n posiziona_bersaglio();\n\n //Attivazione del timer\n timer = new Timer(RITARDO, this);\n timer.start();\n }", "public void dibujarSubformula(Nodo act, int x, int y, int x2, int y2, JPanel p, Color colorP) {\n\n Graphics2D g = (Graphics2D) p.getGraphics();\n\n if (colorP != null) {\n System.out.println(\"diferente de null\");\n color = colorP;\n }\n\n if (act == null) {\n return;\n } else {\n int ancho = act.valor.length();\n\n g.setColor(Color.BLACK);\n g.drawLine(x + 15, y + 3, x2 + 15, y2 + 30);\n\n System.out.println(color.toString());\n g.setColor(color);\n\n //el dibujo del circulo dependiendo la cantidad de letras y simbolos\n if (ancho >= 0 && ancho <= 2) {\n g.setColor(color);\n g.fillOval(x, y, 30, 30);\n g.setColor(Color.BLACK);\n g.drawString(\"\" + act.valor, (x) + 11, (y) + 20);\n\n System.out.println(\"0 y 2\");\n }\n\n if (ancho >= 3 && ancho <= 5) {\n g.setColor(color);\n g.fillOval(x, y, 40, 33);\n\n g.setColor(Color.BLACK);\n g.drawString(\"\" + act.valor, (x) + 5, (y) + 20);\n System.out.println(\"3 y 8\");\n }\n if (ancho >= 6 && ancho <= 8) {\n g.setColor(color);\n g.fillOval(x - 18, y, 55, 30);\n\n g.setColor(Color.BLACK);\n g.drawString(\"\" + act.valor, (x) - 11, (y) + 20);\n System.out.println(\"3 y 8\");\n }\n if (ancho >= 9 && ancho <= 13) {\n g.setColor(color);\n g.fillOval(x - 25, y + 3, 85, 30);\n\n g.setColor(Color.BLACK);\n g.drawString(\"\" + act.valor, (x - 30) + 12, (y) + 25);\n System.out.println(\"9 y 13\");\n }\n if (ancho >= 14 && ancho <= 18) {\n g.setColor(color);\n g.fillOval(x - 25, y + 10, 115, 30);\n System.out.println(\"14 y 18\");\n g.setColor(Color.BLACK);\n g.drawString(\"\" + act.valor, (x - 20) + 12, (y) + 30);\n\n }\n if (ancho >= 19 && ancho <= 23) {\n g.setColor(color);\n g.fillOval(x - 52, y + 1, 132, 30);\n g.setColor(Color.BLACK);\n g.drawString(\"\" + act.valor, (x - 50), (y) + 20);\n System.out.println(\"19 y 23\");\n\n }\n if (ancho >= 24 && ancho <= 27) {\n g.setColor(color);\n g.fillOval(x - 58, y + 10, 148, 30);\n g.setColor(Color.BLACK);\n g.drawString(\"\" + act.valor, (x - 55), (y) + 30);\n System.out.println(\"24 y 27\");\n\n }\n\n if (act.getNodoIzq() != null) {\n dibujarSubformula(act.getNodoIzq(), (x) - (anchoX(act.altura())), y + 100, x, y, p, color);\n\n }\n if (act.getNodoDer() != null) {\n dibujarSubformula(act.getNodoDer(), (x) + (anchoX(act.altura())), y + 100, x, y, p, color);\n }\n\n }\n }", "public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }", "public static void Turno(){\n\t\tif (pl1){\n\t\t\tpl1=false;\n\t\t\tpl2=true;\t\n\t\t\tvalore = 1;\n\t\t}\n\t\telse{\n\t\t\tpl1=true;\n\t\t\tpl2=false;\n\t\t\tvalore = 2;\n\t\t}\n\t}", "private void calificar(HttpPresentationComms comms, int idsol, String confiabilidad, String justificacion, int idNav, String elUsuario) throws HttpPresentationException, KeywordValueException {\n/* 166 */ VSolicitudesDAO rsVSol = new VSolicitudesDAO();\n/* 167 */ VSolicitudesDTO regSol = rsVSol.getSolicitud(idsol);\n/* 168 */ rsVSol.close();\n/* */ \n/* 170 */ EstadoDAO ef = new EstadoDAO();\n/* 171 */ ef.cargarTodosTipo(\"EF\");\n/* 172 */ EstadoDTO estado = ef.next();\n/* 173 */ ef.close();\n/* */ \n/* 175 */ boolean enviarMensaje = true;\n/* */ \n/* 177 */ ServiciosDAO serf = new ServiciosDAO();\n/* 178 */ ServiciosDTO regServicio = serf.cargarRegistro(regSol.getCodigoServicio());\n/* 179 */ serf.close();\n/* */ \n/* */ \n/* 182 */ if (!regServicio.getIndCorreoCalificacion().equals(\"S\")) {\n/* 183 */ enviarMensaje = false;\n/* */ }\n/* */ \n/* 186 */ Varios oVarios = new Varios();\n/* 187 */ oVarios.actualizarEstadoObj(idNav, regSol.getCodigoEstado(), estado.getCodigo(), justificacion, regSol, enviarMensaje, elUsuario, 0, 0, 0, confiabilidad);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 201 */ AtencionSolicitudDAO asf = new AtencionSolicitudDAO();\n/* 202 */ if (justificacion != null && justificacion.length() > 0) {\n/* 203 */ asf.crearAtencion(idsol, justificacion, idNav, elUsuario);\n/* */ }\n/* */ \n/* */ \n/* 207 */ if (confiabilidad.equals(\"R\")) {\n/* 208 */ SisUsuariosDTO recipiente = oVarios.getJefeProveedorObj(regSol.getEmpleadoProveedor());\n/* 209 */ if (recipiente != null) {\n/* */ \n/* 211 */ SisUsuariosDAO perf = new SisUsuariosDAO();\n/* 212 */ SisUsuariosDTO regNavegante = perf.cargarRegistro(idNav);\n/* 213 */ SisUsuariosDTO regProveedor = perf.cargarRegistro(regSol.getEmpleadoProveedor());\n/* */ \n/* 215 */ String url = \"\\n\" + ParametrosDTO.getString(\"url.sistema\");\n/* 216 */ url = url + \"LU.po?l=\" + recipiente.getCodigoEmpleado() + \"&p=\" + recipiente.getPassword() + \"&t=m&\";\n/* 217 */ url = url + \"h=VSEnCurso.po?solicitud=\" + regSol.getNumero();\n/* 218 */ String from = regNavegante.getEmail();\n/* 219 */ String to = recipiente.getEmail();\n/* */ \n/* 221 */ String mensaje = oVarios.formatMensaje(\"SolicitudCalificadaNC\", \"\" + regSol.getNumero(), regSol.getNombreServicio(), regProveedor.getNombre(), url);\n/* 222 */ Utilidades.sendMail(ParametrosDTO.getString(\"servidor.correo\"), from, to, regSol.getNombreServicio(), mensaje);\n/* */ } \n/* */ } \n/* */ \n/* 226 */ if (estado.getTipoEstado().trim().equals(\"EF\") && regServicio.getTipoServicio().equals(Integer.toString(2)))\n/* */ {\n/* 228 */ asf.incluirTarea(regSol.getNumero(), regServicio.getTipoServicio(), elUsuario);\n/* */ }\n/* 230 */ asf.close();\n/* */ }", "public double calcularInteresSimple(){\n double interesSimple = capital * interes * tiempo;\n return interesSimple;\n }", "private void atenderSolicitudPiso(Ascensor a, int piso) {\n\t\ta.detenerse();\r\n\t\ta.abrirPuertas();\r\n\t\tHelper.esperar(2);\r\n\t\tsetSolicitud(a, piso, false);\r\n\t\ta.cerrarPuertas();\r\n\t}", "public Nodo espaciosJustos(Nodo nodo){\n System.out.println(\"----------------inicio heuristica espaciosJustos--------------\");\n Operadores operadores = new Operadores();\n //variables de matriz\n int numFilas,numColumnas,numColores;\n \n numColumnas = nodo.getnColumnas();\n numFilas = nodo.getnFilas();\n numColores = nodo.getnColores();\n \n String [][] matriz = new String [numFilas][numColumnas];\n matriz = operadores.clonarMatriz(nodo.getMatriz());\n //-------------------\n \n //variables de filas y columnas\n ArrayList<ArrayListColumna> columnas = new ArrayList<ArrayListColumna>();\n columnas = (ArrayList<ArrayListColumna>)nodo.getColumnas();\n \n ArrayList<ArrayListFila> filas = new ArrayList<ArrayListFila>();\n filas = (ArrayList<ArrayListFila>)nodo.getFilas();\n //---------------------------\n \n ArrayListFila auxListFila = new ArrayListFila();\n ArrayListColumna auxListColumna = new ArrayListColumna();\n \n int cambio=1;\n int changue=0;\n while(cambio!=0){\n cambio=0;\n \n nodo.setCambio(0);\n for(int i=0;i<numFilas;i++){\n auxListFila = (ArrayListFila)filas.get(i);\n for(int j=0;j<numColores;j++){\n Color auxColor = new Color();\n auxColor = auxListFila.getColor(j);\n\n if(auxColor.getNumero() > 0){\n int contador=0;\n for(int c=0;c<numColumnas;c++){\n auxListColumna=(ArrayListColumna)columnas.get(c);\n\n for(int j1=0;j1<numColores;j1++){\n Color auxColor1 = new Color();\n auxColor1 = auxListColumna.getColor(j1);\n if(auxColor1.getNumero() > 0){\n if(auxColor.getColor().equals(auxColor1.getColor()) && operadores.isPosicionVaciaFila(nodo.getMatriz(), i, c)){\n contador++;\n }\n }\n }\n }\n \n if(auxColor.getNumero() == contador){\n changue=1;\n cambio=1;\n auxColor.setNumero(0);\n for(int c=0;c<numColumnas;c++){\n auxListColumna=(ArrayListColumna)columnas.get(c);\n\n for(int j1=0;j1<numColores;j1++){\n Color auxColor1 = new Color();\n auxColor1 = auxListColumna.getColor(j1);\n if(auxColor1.getNumero() > 0){\n if(auxColor.getColor().equals(auxColor1.getColor()) && operadores.isPosicionVaciaFila(nodo.getMatriz(), i, c)){\n \n auxColor1.setNumero(auxColor1.getNumero()-1);\n\n matriz = operadores.pintarPosicion(matriz, i, c, auxColor.getColor());\n\n nodo.setMatriz(matriz);\n }\n }\n }\n }\n System.out.println(\"-----\");\n operadores.imprimirMatriz(nodo.getMatriz());\n System.out.println(\"-----\");\n \n \n }\n }\n }\n }\n \n }\n if(changue==1) nodo.setCambio(1);\n System.out.println(\"----------------fin heuristica espaciosJustos-------------- \");\n return (Nodo)nodo;\n }", "public void attaque(Personnage p,int x, int y, int xApres, int yApres, Case[][] tableauIle, Affichage affichage, int equipe){\n\t\tRandom random=new Random();\n\t\tif (this.getObjetInventaire(\"Epee\")){\n\t\t\t//il fait plus de dommage s'il a une epee\t\n\t\t\tint degat=5*random.nextInt(7);\n\t\t\tif(!p.perteEnergie(degat, xApres, yApres, tableauIle, true, false, affichage, equipe)){\n\t\t\t\t//Verifie que le personnage ne meurt pas de la perte d'energie\n\t\t\t\taffichage.popUp(equipe,\"Vous avez inflige \"+degat+\" points de degats a votre cible\", \"ATTAQUE\" );\n\t\t\t}else{\n\t\t\t\taffichage.popUp(equipe,\"Vous avez reussi a tuer votre cible\", \"ATTAQUE\" );\n\t\t\t}\n\t\t}else{\n\t\t\t//fait moins de dommage comme le guerrier se bat avec ses poings\t\n\t\t\tint degat=random.nextInt(7);\n\t\t\tif(!p.perteEnergie(degat, xApres, yApres, tableauIle, true, false,affichage, equipe)){\n\t\t\t\t//Verifie que le personnage ne meurt pas de la perte d'energie\n\t\t\t\taffichage.popUp(equipe,\"Vous combattez à main nues... Vous avez infliger \"+degat+\" points de degats a votre cible\", \"ATTAQUE\" );\n\t\t\t}else{\n\t\t\t\taffichage.popUp(equipe,\"Vous avez reussi a tuer votre cible\", \"ATTAQUE\" );\n\t\t\t}\n\t\t}\n\t\tsuper.perteEnergie(10, x,y, tableauIle, false, false,affichage, equipe);\n\t}", "public void joueDeuxHumains()\n\t{\n\t\tboolean fin = false;\n\t\tboolean result = false;\n\t\tint etoiles;\n\t\tint choix;\n\t\tint i = 0;\n\t\tint x = 0;\n\t\tint y = 0;\n\t\tint x2 = 0;\n\t\tint y2 = 0;\n\t\tString couleur;\n\t\tetoiles = initialiser();\n\t\twhile (!fin)\n\t\t{\n\t\t\tif (i % 2 == 0)\n\t\t\t{\n\t\t\t\tcouleur = \"bleu\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcouleur = \"rouge\";\n\t\t\t}\n\t\t\tSystem.out.println(\"1-Jouer\");\n\t\t\tSystem.out.println(\"2-Afficher une composante\");\n\t\t\tSystem.out.println(\"3-Vérifier si une case relie une composante\");\n\t\t\tSystem.out.println(\"4-Regarder s'il existe un chemin entre deux cases d'une couleur donnée\");\n\t\t\tSystem.out.println(\"5-Afficher le nombre minimum de cases entre deux cases données (x,y) et (z,t)\");\n\t\t\tSystem.out.println(\"6-Quitter\");\n\t\t\tchoix = clavier.nextInt();\n\t\t\tafficher(i);\n\t\t\tswitch (choix)\n\t\t\t{\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"### Ajout d'une case pour jouer ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tresult = tableauPeres_[x][y].colorerCase(couleur);\n\t\t\t\t\t//System.out.println(existeCheminCases(getLesVoisins(x, y, couleur), tableauPeres_[x][y], couleur));\n\t\t\t\t\tif (getNbEtoiles(x, y, couleur) < getNbEtoiles(getLesVoisins(x, y, couleur).getX(), getLesVoisins(x, y, couleur).getY(), couleur))\n\t\t\t\t\t{\n\t\t\t\t\t\tunion(getLesVoisins(x, y, couleur).getX(), getLesVoisins(x, y, couleur).getY(), x, y);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tunion(x, y, getLesVoisins(x, y, couleur).getX(), getLesVoisins(x, y, couleur).getY());\n\t\t\t\t\t}\n\t\t\t\t\tpreparerScore(x, y, couleur);\n\t\t\t\t\tafficheScores(couleur);\n\t\t\t\t\tnombresEtoiles(x, y, couleur);\n\t\t\t\t\t++i;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tSystem.out.println(\"### Afficher une composante ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tcompressionChemin(x2, y2);\n\t\t\t\t\tafficheComposante(x, y, couleur);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tSystem.out.println(\"### Tester si une case relie une composante ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tif(!relieComposantes(x, y, couleur))\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Cette case ne relie aucune composante.\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Cette case relie une ou plusieurs composante(s).\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.println(\"### Tester s'il existe un chemin entre deux cases données ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x de la première case ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y de la première case ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x de la deuxième case ?\");\n\t\t\t\t\tx2 = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y de la deuxième case ?\");\n\t\t\t\t\ty2 = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tcompressionChemin(x2, y2);\n\t\t\t\t\tif (existeCheminCases(tableauPeres_[x][y], tableauPeres_[x2][y2], couleur))\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Il existe un chemin entre les deux cases.\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Il n'existe pas de chemin entre les deux cases.\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tSystem.out.println(\"### Afficher nombre minimum de cases qui relie deux cases ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x de la première case ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y de la première case ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x de la deuxième case ?\");\n\t\t\t\t\tx2 = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y de la deuxième case ?\");\n\t\t\t\t\ty2 = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tcompressionChemin(x2, y2);\n\t\t\t\t\tSystem.out.println(relierCasesMin(x, y, x2, y2, couleur));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tfin = true;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (scoreJ2_ == etoiles)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Joueur bleu a gagné !\");\n\t\t\t\tfin = true;\n\t\t\t}\n\t\t\telse if (scoreJ1_ == etoiles)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Joueur rouge a gagné !\");\n\t\t\t\tfin = true;\n\t\t\t}\n\n\t\t}\n\t}", "public void stworzWrogow() {\n\t\tfor(; aktualnaLiczbaWrogow < MAX_LICZBA_WROGOW; aktualnaLiczbaWrogow++) {\n\t\t\tdouble x = (generatorWspolrzednych.nextInt(550)) + 20 ;\n\t\t\tdouble y = ((generatorWspolrzednych.nextInt(750)) + 20);\n\t\t\tx = x < 0 ? -x : x; \n\t\t\ty = y < 0 ? y : -y;\n\t\t\tStatekWroga statekWroga = new StatekWroga(new Wspolrzedne(x, y));\n\t\t\t\n\t\t\tstatekWroga.setDol(DLUGOSC_RUCHU);\n\t\t\t\n\t\t\tstatkiWroga.add(statekWroga);\n\t\t}\n\t}", "public void controlla_bersaglio() {\n\n if ((x[0] == bersaglio_x) && (y[0] == bersaglio_y)) {\n punti++;\n posiziona_bersaglio();\n }\n }", "void recorridoCero(){\n \n for(int i=0;i<8;i++)\n\t\t\tfor(int j=0;j<8;j++)\n\t\t\t\t{\n\t\t\t\t\t//marcar con cero todas las posiciones\n\t\t\t\t\trecorrido[i][j]=0;\n\t\t\t\t}\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 }", "@Override\r\n public void ingresarCapacidad(){\r\n double capacidad = Math.pow(alto, 3);\r\n int capacidadInt = Double.valueOf(capacidad).intValue();\r\n super.capacidad = capacidadInt;\r\n super.cantidadRestante = capacidadInt;\r\n System.out.println(capacidadInt);\r\n }" ]
[ "0.6133665", "0.60442", "0.59917784", "0.595939", "0.5911782", "0.58939534", "0.5789125", "0.57744795", "0.56579506", "0.56264085", "0.56041235", "0.5603898", "0.5602211", "0.5571922", "0.55714846", "0.5569173", "0.5562015", "0.5547778", "0.554041", "0.55400586", "0.5539657", "0.5536431", "0.5519658", "0.55167526", "0.55065477", "0.55005795", "0.54996866", "0.5490616", "0.54818326", "0.54809165", "0.5478755", "0.54676735", "0.5450925", "0.54486", "0.5446214", "0.54429746", "0.5441832", "0.54225683", "0.5420528", "0.5419081", "0.5418831", "0.540624", "0.5404936", "0.5400258", "0.5391037", "0.5377456", "0.5377003", "0.5358948", "0.53588605", "0.53582287", "0.53575855", "0.53519195", "0.53504586", "0.53345007", "0.53337294", "0.5332924", "0.53270626", "0.53242654", "0.5321412", "0.53177196", "0.5316327", "0.53145415", "0.5304555", "0.5303798", "0.52971685", "0.5292963", "0.5288019", "0.5286363", "0.52851987", "0.5284558", "0.52810854", "0.5279575", "0.5279201", "0.52724206", "0.5270714", "0.5269583", "0.5264584", "0.52604896", "0.52537173", "0.52500063", "0.5248392", "0.52470917", "0.524557", "0.5242688", "0.52366656", "0.52365917", "0.523659", "0.5235284", "0.5233376", "0.5230903", "0.52214676", "0.52177805", "0.5210097", "0.5208931", "0.52065253", "0.52064306", "0.52064043", "0.52044404", "0.52041835", "0.5196623" ]
0.5642528
9
Restituisce il valore dello sconto
public double getImportoSconto(double costoIntero);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getValor();", "public java.lang.String getValor();", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "public int getValore() {\n return valore;\n }", "String getVal();", "public int getValor() {\r\n return valor;\r\n }", "public int getValor() {\n return valor;\n }", "public String getValor() {\n return valor;\n }", "public int getValor() {\n return Valor;\n }", "public V valor() {\n return value;\n }", "String getCurrentValue();", "public Valore getValore() {\n\t\treturn valore;\n\t}", "public abstract java.lang.String getAcma_valor();", "public Integer getLongitud()\n/* 37: */ {\n/* 38:55 */ return this.longitud;\n/* 39: */ }", "public void receberValores() {\n Bundle b = getIntent().getExtras();\n if (b != null) {\n cpf3 = b.getString(\"valor2\");\n renda = b.getDouble(\"valor3\");\n data = b.getString(\"valor4\");\n data2 = b.getString(\"valor5\");\n }\n }", "Reserva Obtener();", "private void limpiarValores(){\n\t\tpcodcia = \"\";\n\t\tcedula = \"\";\n\t\tcoduser = \"\";\n\t\tcluser = \"\";\n\t\tmail = \"\";\n\t\taudit = \"\";\n\t\tnbr = \"\";\n\t\trol = \"\";\n\t}", "public ValoreA getValore() {\r\n\t\treturn valore;\r\n\t}", "public int MostrarUltimoValorIngresado() {\r\n return UltimoValorIngresado.informacion;\r\n }", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_HAS_ISHORARIO_IDISHORARIO))\n\t\t{\n\t\t\tc=ISHORARIO_IDISHORARIO;\n\t\t}\n\t\telse if (campo.equals(Constantes.ID_HAS_ISAULA_IDISAULA))\n\t\t{\n\t\t\tc=ISAULA_IDISAULA;\n\t\t}\n\t\telse if (campo.equals(Constantes.ISHORARIO_HAS_ISAULA_ISCURSO_IDISCURSO))\n\t\t{\n\t\t\tc=ISCURSO_IDISCURSO;\n\t\t}\n\t\t\n\t\treturn c;\n\t}", "public HTMLElement getElementValorEd() { return this.$element_ValorEd; }", "Object getValueFrom();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "public S getValue() { return value; }", "public final T getValor() {\r\n return valor;\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn getValor();\r\n\t}", "String setValue();", "public void setMontoPedidoRechazado(double param){\n \n this.localMontoPedidoRechazado=param;\n \n\n }", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "public int getValoracionMedia(){\n return valoracionMedia;\n }", "@JsonProperty(\"valore\") \n \n public String getValore() {\n return valore;\n }", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "public int getInital_value(){\n return this.inital_value;\n }", "public int recuperar() {\r\n\t if (raiz == null)\r\n\t return -99999;\r\n\t ;\r\n\t int x = raiz.dato;\r\n\t raiz = raiz.sig;\r\n\t return x;\r\n\t }", "Object readValue();", "public String getRetorno(){\n return retorno;\n }", "public void setMotivoRechazo(biz.belcorp.www.canonico.ffvv.vender.TMotivoRechazo param){\n \n this.localMotivoRechazo=param;\n \n\n }", "public int getC_Conversion_UOM_ID() \n{\nInteger ii = (Integer)get_Value(\"C_Conversion_UOM_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_ISFICHA))\n\t\t{\n\t\t\tc=IDISFICHA;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS))\n\t\t{\n\t\t\tc=NOTAS;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_ANOTACIONES))\n\t\t{\n\t\t\tc=ANOTACIONES;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS_EJERCICIOS))\n\t\t{\n\t\t\tc=NOTAS_EJERCICIOS;\n\t\t}\n\t\treturn c;\n\t}", "public int getArmadura(){return armadura;}", "public Object getValue(){\n \treturn this.value;\n }", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public void cambioEstadAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAvaluo()) || \"\".equals(mBRadicacion.Radi.getEstadoAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.CambioEstRad(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"La informacion ha sido guardada correctamente\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".cambioEstadAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "public void Get() { ob = ti.Get(currentrowi, \"persoana\"); ID = ti.ID; CNP = ob[0]; Nume = ob[1]; Prenume = ob[2]; }", "@Override\n\t\t\tpublic String getValue() {\n\t\t\t\treturn value;\n\t\t\t}", "public double getMontoSolicitado(){\n return localMontoSolicitado;\n }", "public ValoresCalculo getValorCalculo()\r\n/* 88: */ {\r\n/* 89:107 */ return this.valorCalculo;\r\n/* 90: */ }", "public int getTransportista(){\n return this.transportista;\n }", "String getValue()\n {\n return value.toString();\n }", "public Valor(Integer id_valor, String valor){\n\n //A variavel da classe Construtora vai receber a variavel que está vindo por parametro (This faz referencia a classe)\n this.id_valor = id_valor ;\n this.valor = valor ;\n }", "@Override\n public Object getValue()\n {\n return value;\n }", "public HTMLInputElement getElementValor() { return this.$element_Valor; }", "public int getValue() \n {\n return value;\n }", "public Object getValue() { return _value; }", "public void loadValue() {\n int loadInt = assignedDataObject.getInt(name);\n Integer iv = new Integer(loadInt);\n editBeginValue = iv.toString();\n if (!showZero & loadInt == 0) editBeginValue = \"\";\n if (loadInt == 0 & assignedDataObject.getMode() == DataObject.INSERTMODE) editBeginValue = new Integer(defaultValue).toString();\n this.setText(editBeginValue);\n }", "public void validerSaisie();", "public Object getValue()\n {\n\treturn value;\n }", "public double getMontoPedidoRechazado(){\n return localMontoPedidoRechazado;\n }", "public java.lang.String getOrigen(){\n return localOrigen;\n }", "public int getAnio(){\r\n \r\n \r\n return this.anio;\r\n \r\n }", "public void resetValor();", "public String actualizarValorRetencionIVAListener()\r\n/* 571: */ {\r\n/* 572:605 */ DetalleFacturaProveedorSRI detalleFacturaProveedorSRI = (DetalleFacturaProveedorSRI)this.dtDetalleIVAFacturaProveedorSRI.getRowData();\r\n/* 573:606 */ this.servicioFacturaProveedorSRI.actualizarValorRetencion(detalleFacturaProveedorSRI);\r\n/* 574:607 */ return \"\";\r\n/* 575: */ }", "public int getValeur() {\r\n return valeur;\r\n }", "@Override\r\n public void ingresarCapacidad(){\r\n double capacidad = Math.pow(alto, 3);\r\n int capacidadInt = Double.valueOf(capacidad).intValue();\r\n super.capacidad = capacidadInt;\r\n super.cantidadRestante = capacidadInt;\r\n System.out.println(capacidadInt);\r\n }", "public int getM_Locator_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Locator_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public void setC_Conversion_UOM_ID (int C_Conversion_UOM_ID)\n{\nset_Value (\"C_Conversion_UOM_ID\", new Integer(C_Conversion_UOM_ID));\n}", "@Override\r\n\tpublic int operar() {\n\t\treturn this.valor;\r\n\t}", "public void valor(V v) {\n value = v;\n }", "public void setValor(int valor) {\n this.valor = valor;\n }", "@Override\r\n public Object getValue() {\r\n return value;\r\n }", "public void cambiaRitmo(int valor){\r\n\t\t\r\n\t}", "public String getValue () { return value; }", "public int obtenerDatos() {\n codigo =Integer.parseInt(modelo.getValueAt(fila,0).toString());\n return codigo;\n }", "public void setMontoSolicitado(double param){\n \n this.localMontoSolicitado=param;\n \n\n }", "public int getAtencionAlCliente(){\n return atencion_al_cliente; \n }", "public String getDocumentNo() \n{\nreturn (String)get_Value(\"DocumentNo\");\n}", "public void setValorCalculo(ValoresCalculo valorCalculo)\r\n/* 93: */ {\r\n/* 94:111 */ this.valorCalculo = valorCalculo;\r\n/* 95: */ }", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public int getValor() {\n\t\treturn valor;\n\t}", "@Override\r\n\tpublic float chekearDatos(){\r\n\t\t\r\n\t\tfloat monto = 0f;\r\n\t\tfloat montoPorMes = creditoSolicitado/plazoEnMeses;\r\n\t\tdouble porcentajeDeSusIngesosMensuales = (cliente.getIngresosMensuales()*0.7);\r\n\t\t\r\n\t\tif(cliente.getIngresoAnual()>=15000f && montoPorMes<=porcentajeDeSusIngesosMensuales){\r\n\t\t\t\r\n\t\t\tmonto = this.creditoSolicitado;\r\n\t\t\tsetEstadoDeSolicitud(true);\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\treturn monto;\r\n\t}", "public int getC_UOM_ID() \n{\nInteger ii = (Integer)get_Value(\"C_UOM_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}" ]
[ "0.6864691", "0.6609909", "0.6491137", "0.6271489", "0.60922104", "0.6073484", "0.60147786", "0.5964978", "0.5960762", "0.5902276", "0.589629", "0.58801574", "0.58472526", "0.5819265", "0.58097595", "0.5788694", "0.57801086", "0.575709", "0.5751117", "0.5740151", "0.57290435", "0.5724665", "0.5721527", "0.5721527", "0.5721527", "0.5721527", "0.5721527", "0.5721527", "0.5721527", "0.5721527", "0.5721527", "0.5721527", "0.56946844", "0.56896", "0.5689353", "0.56844777", "0.56706023", "0.56643194", "0.56643194", "0.56643194", "0.56643194", "0.56643194", "0.56643194", "0.56643194", "0.5662831", "0.56584793", "0.5654171", "0.5654171", "0.5654171", "0.5654171", "0.5654171", "0.5654171", "0.5652093", "0.56500804", "0.5644621", "0.5644053", "0.56427497", "0.56415784", "0.56383985", "0.56306976", "0.5613407", "0.56131136", "0.5606452", "0.56059456", "0.5603681", "0.5601548", "0.55910325", "0.55889374", "0.55833066", "0.55831593", "0.55772567", "0.55631846", "0.55618453", "0.55526745", "0.55473125", "0.5545621", "0.55445623", "0.55424035", "0.55422527", "0.554034", "0.55394167", "0.5537811", "0.5535596", "0.5533949", "0.5531183", "0.5528732", "0.55252945", "0.5524393", "0.5523934", "0.55198824", "0.55185854", "0.5514739", "0.55083257", "0.55080396", "0.5506117", "0.5505995", "0.55000454", "0.5495059", "0.549095", "0.54875976", "0.5485526" ]
0.0
-1
Creates a new MUnaryPostOperator object
public MUnaryPostOperator(String name, int index, ArrayList<String>scan) { super( isUnaryPostOperator(name)?name:""); if(this.getName().equals("")){ throw new IndexOutOfBoundsException("Invalid Name For Unary Post-MNumber MOperator." ); }//end if else{ this.index=(index>=0&&scan.get(index).equals(name))?index:-1; this.precedence=MOperator.getPrecedence(name); }//end else if(this.index==-1){ throw new IndexOutOfBoundsException("Invalid Index" ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Expr unaryPost(Position pos, X10Unary_c.Operator op, Expr e) throws SemanticException {\n Type ret = e.type();\n Expr one = getLiteral(pos, ret, 1);\n Assign.Operator asgn = (op == X10Unary_c.POST_INC) ? Assign.ADD_ASSIGN : Assign.SUB_ASSIGN;\n X10Binary_c.Operator bin = (op == X10Unary_c.POST_INC) ? X10Binary_c.SUB : X10Binary_c.ADD;\n Expr incr = assign(pos, e, asgn, one);\n incr = visitAssign((Assign) incr);\n return visitBinary((X10Binary_c) xnf.Binary(pos, incr, bin, one).type(ret));\n }", "Unary operator(Operator o);", "public static UnaryExpression postIncrementAssign(Expression expression) {\n return makeUnary(ExpressionType.PostIncrementAssign, expression, expression.getType());\n }", "public static UnaryExpression postDecrementAssign(Expression expression) {\n return makeUnary(ExpressionType.PostDecrementAssign, expression, expression.getType());\n }", "public static UnaryExpression postDecrementAssign(Expression expression, Method method) {\n return makeUnary(ExpressionType.PostDecrementAssign, expression, expression.getType(),method);\n }", "@Override\n\tpublic void VisitUnaryNode(UnaryOperatorNode Node) {\n\n\t}", "UOp createUOp();", "public static UnaryExpression PostIncrementAssign(Expression expression, Method method) {\n return makeUnary(ExpressionType.PostIncrementAssign, expression, expression.getType(), method);\n }", "public static OperatorBuilder postfix(String symbol, DoubleUnaryOperator unaryOp) {\n return unary(symbol, unaryOp, Type.POSTFIX);\n }", "@Test\n public void unaryTest() {\n UnaryOperator<String> postfix = (a) -> a + \"postfix\";\n UnaryOperator<Integer> increment = (a) -> a + 1;\n\n Assert.assertEquals(\"valuepostfix\", postfix.apply(\"value\"));\n Assert.assertEquals(new Integer(2), increment.apply(1));\n }", "public BastUnaryExpr(TokenAndHistory[] tokens, AbstractBastExpr operand, int type) {\n super(tokens, operand);\n this.type = type;\n fieldMap.put(BastFieldConstants.UNARY_EXPR_OPERAND, new BastField(operand));\n }", "Operand createOperand();", "public PostRemove createPostRemove(String methodName) {\n\t\tPostRemove postRemove = new PostRemove();\n\t\tpostRemove.setMethodName(methodName);\n\t\treturn postRemove;\n\t}", "public Command createOperationCommand(int operator, Operand operand1, Operand operand2);", "private static OperatorBuilder unary(String symbol, DoubleUnaryOperator unaryOp, Type type) {\n if (unaryOp == null) {\n throw new IllegalArgumentException(\"operator argument must not be null\");\n }\n if (type.arity() != 1) {\n throw new IllegalArgumentException(\"type argument must be PREFIX or POSTFIX\");\n }\n // XXX ensure valid symbol\n return new OperatorBuilder(unaryOp, null, symbol, 90, type);\n }", "Nop createNop();", "private Expr unaryPre(Position pos, X10Unary_c.Operator op, Expr e) throws SemanticException {\n Type ret = e.type();\n Expr one = getLiteral(pos, ret, 1);\n Assign.Operator asgn = (op == X10Unary_c.PRE_INC) ? Assign.ADD_ASSIGN : Assign.SUB_ASSIGN;\n Expr a = assign(pos, e, asgn, one);\n a = visitAssign((Assign) a);\n return a;\n }", "protected SNUnOp(SyntaxNode operand,\n OperatorUnFactory opFactory, SyntaxNodeConstructorUn snFactory,\n String name) {\n operand_ = operand;\n opFactory_ = opFactory;\n snFactory_ = snFactory;\n snName_ = name;\n }", "ExpOperand createExpOperand();", "private CustomQueue<String> evaluatePostFix(CustomQueue<String>postfix){\r\n CustomStack<String> numberStack = new CustomStack();\r\n CustomQueue<String> result = new CustomQueue();\r\n \r\n while (postfix.isEmpty() == false){\r\n String value = postfix.remove();\r\n if (isOperator(value)){\r\n //First popped value should be on the right hand side of the operator\r\n double val2 = Double.parseDouble(numberStack.pop());\r\n //Second popped value should be on the left hand side of the operator\r\n double val1 = Double.parseDouble(numberStack.pop());\r\n String operation_result = calculate(val1, val2, value);\r\n numberStack.push(operation_result);\r\n }\r\n else{\r\n //It should be a number\r\n numberStack.push(value);\r\n }\r\n }\r\n \r\n if (numberStack.empty())\r\n result.add(\"0\");\r\n else\r\n result.add(numberStack.pop());\r\n \r\n return result;\r\n }", "public Unary createUnary(Position pos, polyglot.ast.Unary.Operator op, Expr expr) {\n return (Unary) xnf.Unary(pos, op, expr).type(expr.type());\n }", "OpFunctionArgOperand createOpFunctionArgOperand();", "private void createMul(Code32 code, int op, int cond, int Rd, int Rn, int Rm) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | op | (Rd << 16) | (Rm << 8) | (0x9 << 4) | Rn;\r\n\t\tcode.incInstructionNum();\r\n\t}", "public static EvaluationStep getUnaryOperation(final String theOperator)\n {\n if(\"+\".equals(theOperator)) return NoOp;\n if(\"-\".equals(theOperator)) return Negation;\n throw new IllegalStateException(\"Invalid unary operator ($operator).\".replace(\"$operator\", (null != theOperator) ? theOperator : \"null\"));\n }", "public RequestDataBuilder post() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.POST);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}", "@Override void apply(Env env) {\n if( env.isNum() ) { env.push(new ValNum(op(env.popDbl()))); return; }\n// if( env.isStr() ) { env.push(new ASTString(op(env.popStr()))); return; }\n Frame fr = env.popAry();\n final ASTUniOp uni = this; // Final 'this' so can use in closure\n Frame fr2 = new MRTask() {\n @Override public void map( Chunk[] chks, NewChunk[] nchks ) {\n for( int i=0; i<nchks.length; i++ ) {\n NewChunk n =nchks[i];\n Chunk c = chks[i];\n int rlen = c._len;\n if (c.vec().isEnum() || c.vec().isUUID() || c.vec().isString()) {\n for (int r = 0; r <rlen;r++) n.addNum(Double.NaN);\n } else {\n for( int r=0; r<rlen; r++ )\n n.addNum(uni.op(c.atd(r)));\n }\n }\n }\n }.doAll(fr.numCols(),fr).outputFrame(fr._names, null);\n env.pushAry(fr2);\n }", "public Binary operator(Operator op) {\n\tBinary_c n = (Binary_c) copy();\n\tn.op = op;\n\treturn n;\n }", "public final void rule__XMultiplicativeExpression__RightOperandAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12415:1: ( ( ruleXUnaryOperation ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12416:1: ( ruleXUnaryOperation )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12416:1: ( ruleXUnaryOperation )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12417:1: ruleXUnaryOperation\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXUnaryOperation_in_rule__XMultiplicativeExpression__RightOperandAssignment_1_124911);\n ruleXUnaryOperation();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Unary() {\n }", "public ChainOperator(){\n\n }", "final void resetOperator( UniqueString us ) {\n this.operator = Context.getGlobalContext().getSymbol(us);\n }", "public final void rule__XMultiplicativeExpression__RightOperandAssignment_1_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:17683:1: ( ( ruleXUnaryOperation ) )\r\n // InternalDroneScript.g:17684:2: ( ruleXUnaryOperation )\r\n {\r\n // InternalDroneScript.g:17684:2: ( ruleXUnaryOperation )\r\n // InternalDroneScript.g:17685:3: ruleXUnaryOperation\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXUnaryOperation();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "private ASTNode unaryMinusRules(ASTNode operand){\n Token operandToken = operand.getToken();\n if (operand instanceof UnaryOP && operandToken.getType() == TokenType.MINUS) {\n return ((UnaryOP) operand).getOperand();\n }\n else{\n return operand;\n }\n }", "Expression unaryExpressionNotPlusMinus() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tif (isKind(OP_EXCLAMATION)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e = unaryExpression();\r\n\t\t\treturn new ExpressionUnary(first,op,e);\r\n\t\t} else \t{\r\n\t\t\treturn primary(); //errors will be reported by primary()\r\n\t\t}\r\n\t}", "public LatentImage transform(UnaryOperator<Color> op) {\n\t\tpendingOperations.add((x, y, c) -> op.apply(c));\n\t\treturn this;\n\t}", "public Command createStoreCommand(Operand lhs, Operand rhs);", "public Request<E, T> buildHttpPost ()\n\t{\n\t\treturn new HttpPostRequest<E, T>(this);\n\t}", "private Expr unary() {\n if(match(BANG, MINUS)) { // If this thing can be accurately considered a unary...\n Token operator = previous();\n Expr right = unary();\n return new Expr.Unary(operator, right);\n }\n\n return call(); // Otherwise, pass it up the chain of precedence\n }", "public final EObject ruleUnaryExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_PostfixExpression_0 = null;\n\n Enumerator lv_operator_2_0 = null;\n\n EObject lv_operand_3_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4071:6: ( (this_PostfixExpression_0= rulePostfixExpression | ( () ( (lv_operator_2_0= ruleUnaryOperator ) ) ( (lv_operand_3_0= rulePostfixExpression ) ) ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4072:1: (this_PostfixExpression_0= rulePostfixExpression | ( () ( (lv_operator_2_0= ruleUnaryOperator ) ) ( (lv_operand_3_0= rulePostfixExpression ) ) ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4072:1: (this_PostfixExpression_0= rulePostfixExpression | ( () ( (lv_operator_2_0= ruleUnaryOperator ) ) ( (lv_operand_3_0= rulePostfixExpression ) ) ) )\n int alt60=2;\n int LA60_0 = input.LA(1);\n\n if ( ((LA60_0>=RULE_ID && LA60_0<=RULE_STRING)||LA60_0==13||LA60_0==25||LA60_0==33||(LA60_0>=55 && LA60_0<=57)||(LA60_0>=76 && LA60_0<=77)) ) {\n alt60=1;\n }\n else if ( (LA60_0==61||LA60_0==74) ) {\n alt60=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"4072:1: (this_PostfixExpression_0= rulePostfixExpression | ( () ( (lv_operator_2_0= ruleUnaryOperator ) ) ( (lv_operand_3_0= rulePostfixExpression ) ) ) )\", 60, 0, input);\n\n throw nvae;\n }\n switch (alt60) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4073:5: this_PostfixExpression_0= rulePostfixExpression\n {\n \n currentNode=createCompositeNode(grammarAccess.getUnaryExpressionAccess().getPostfixExpressionParserRuleCall_0(), currentNode); \n \n pushFollow(FOLLOW_rulePostfixExpression_in_ruleUnaryExpression6936);\n this_PostfixExpression_0=rulePostfixExpression();\n _fsp--;\n\n \n current = this_PostfixExpression_0; \n currentNode = currentNode.getParent();\n \n\n }\n break;\n case 2 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4082:6: ( () ( (lv_operator_2_0= ruleUnaryOperator ) ) ( (lv_operand_3_0= rulePostfixExpression ) ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4082:6: ( () ( (lv_operator_2_0= ruleUnaryOperator ) ) ( (lv_operand_3_0= rulePostfixExpression ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4082:7: () ( (lv_operator_2_0= ruleUnaryOperator ) ) ( (lv_operand_3_0= rulePostfixExpression ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4082:7: ()\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4083:5: \n {\n \n temp=factory.create(grammarAccess.getUnaryExpressionAccess().getUnaryExpressionAction_1_0().getType().getClassifier());\n current = temp; \n temp = null;\n CompositeNode newNode = createCompositeNode(grammarAccess.getUnaryExpressionAccess().getUnaryExpressionAction_1_0(), currentNode.getParent());\n newNode.getChildren().add(currentNode);\n moveLookaheadInfo(currentNode, newNode);\n currentNode = newNode; \n associateNodeWithAstElement(currentNode, current); \n \n\n }\n\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4093:2: ( (lv_operator_2_0= ruleUnaryOperator ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4094:1: (lv_operator_2_0= ruleUnaryOperator )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4094:1: (lv_operator_2_0= ruleUnaryOperator )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4095:3: lv_operator_2_0= ruleUnaryOperator\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getUnaryExpressionAccess().getOperatorUnaryOperatorEnumRuleCall_1_1_0(), currentNode); \n \t \n pushFollow(FOLLOW_ruleUnaryOperator_in_ruleUnaryExpression6972);\n lv_operator_2_0=ruleUnaryOperator();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnaryExpressionRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"operator\",\n \t \t\tlv_operator_2_0, \n \t \t\t\"UnaryOperator\", \n \t \t\tcurrentNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t currentNode = currentNode.getParent();\n \t \n\n }\n\n\n }\n\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4117:2: ( (lv_operand_3_0= rulePostfixExpression ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4118:1: (lv_operand_3_0= rulePostfixExpression )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4118:1: (lv_operand_3_0= rulePostfixExpression )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4119:3: lv_operand_3_0= rulePostfixExpression\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getUnaryExpressionAccess().getOperandPostfixExpressionParserRuleCall_1_2_0(), currentNode); \n \t \n pushFollow(FOLLOW_rulePostfixExpression_in_ruleUnaryExpression6993);\n lv_operand_3_0=rulePostfixExpression();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getUnaryExpressionRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"operand\",\n \t \t\tlv_operand_3_0, \n \t \t\t\"PostfixExpression\", \n \t \t\tcurrentNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t currentNode = currentNode.getParent();\n \t \n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "void setPendingBinaryOperation(DoubleBinaryOperator op);", "Operator operator();", "public MedPostTranslator() {}", "public Calculator() {\r\n\t\tthis.operator = new Addition();\r\n\t}", "public static OperationMBean getMultiplyOperationMBean()\n {\n return new Operation(\"multiply\");\n }", "@Override\n public void addPostCommand(String postCommand) {\n }", "private void jetUnopExpr(){\n\t\tUnopExpr unopExpr = (UnopExpr) rExpr;\n\t\tif(unopExpr instanceof LengthExpr){\n\t\t\t//length_expr = \"length\" immediate;\n\t\t\t//$i1 = lengthof $r10\n\t\t\t//(assert (= $i1 lengthMap.get($r10)))\n\t\t\tLengthExpr lengthExpr = (LengthExpr) unopExpr;\n\t\t\tValue immediate = lengthExpr.getOp();\n\t\t\tif(immediate instanceof Constant){\n\t\t\t\tthis.exprStr = immediate.toString();\n\t\t\t}else{\n\t\t\t\tthis.exprStr = fileGenerator.getRenameOf(immediate, false, this.stmtIdx);\n\t\t\t}\n\t\t}else if(unopExpr instanceof NegExpr){\n\t\t\t//neg_expr = \"-\" immediate;\n\t\t\t//a = -b\n\t\t\t//(assert (= a (- 0 b))))\n\t\t\tNegExpr negExpr = (NegExpr) unopExpr;\n\t\t\tValue immediate = negExpr.getOp();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append(\"(- 0 \");\n\t\t\tif(immediate instanceof Constant){\n\t\t\t\tsb.append(immediate.toString());\n\t\t\t}else{\n\t\t\t\tsb.append(fileGenerator.getRenameOf(immediate, false, this.stmtIdx));\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t}\n\t}", "void postProcess(@NotNull NodePostProcessor postProcessor);", "public final void rule__XMultiplicativeExpression__RightOperandAssignment_1_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17660:1: ( ( ruleXUnaryOperation ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17661:1: ( ruleXUnaryOperation )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17661:1: ( ruleXUnaryOperation )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17662:1: ruleXUnaryOperation\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); \r\n }\r\n pushFollow(FOLLOW_ruleXUnaryOperation_in_rule__XMultiplicativeExpression__RightOperandAssignment_1_135663);\r\n ruleXUnaryOperation();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public void enfoncerMult() {\n\t\ttry {\n\t\t\tthis.op = new Mult();\n\t\t\tif (!raz) {\n\t\t\t\tthis.pile.push(valC);\n\t\t\t}\n\t\t\tint a = this.pile.pop(); int b = this.pile.pop();\n\t\t\tthis.valC = this.op.eval(b,a);\n\t\t\tthis.pile.push(this.valC);\n\t\t\tthis.raz = true;\n\t\t}\n\t\tcatch (EmptyStackException e) {\n\t\t\tSystem.out.println(\"Erreur de syntaxe : Saisir deux operandes avant de saisir un operateur\");\n\t\t}\n\t}", "BackwardMinAction createBackwardMinAction();", "public final void rule__XUnaryOperation__FeatureAssignment_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12430:1: ( ( ( ruleOpUnary ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12431:1: ( ( ruleOpUnary ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12431:1: ( ( ruleOpUnary ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12432:1: ( ruleOpUnary )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12433:1: ( ruleOpUnary )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12434:1: ruleOpUnary\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); \n }\n pushFollow(FOLLOW_ruleOpUnary_in_rule__XUnaryOperation__FeatureAssignment_0_124946);\n ruleOpUnary();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public UnaryExpNode() {\n }", "public static OperationMBean getAddOperationMBean()\n {\n return new Operation(\"add\");\n }", "private boolean postops() {\r\n return OPT(GO() && postop() && postops());\r\n }", "public static UnaryExpression preDecrementAssign(Expression expression, Method method) {\n return makeUnary(ExpressionType.PreDecrementAssign, expression, expression.getType(), method);\n }", "ColumnOperand createColumnOperand();", "private void createMulAcc(Code32 code, int op, int cond, int Rd, int Ra, int Rn, int Rm) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | op | (Rd << 16) | (Ra << 12) | (Rm << 8) | (0x9 << 4) | Rn;\r\n\t\tcode.incInstructionNum();\r\n\t}", "public static UnaryExpression PreDecrementAssign(Expression expression) {\n return makeUnary(ExpressionType.PreDecrementAssign, expression, expression.getType());\n }", "public ComplementOp() {\r\n\t\tsuper();\r\n\t}", "public static OperationMBean getSubtractOperationMBean()\n {\n return new Operation(\"subtract\");\n }", "@Override\n public Expression create(Expression a, Expression b) {\n return new Minus(a, b);\n }", "public final void rule__XUnaryOperation__OperandAssignment_0_2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:17717:1: ( ( ruleXUnaryOperation ) )\r\n // InternalDroneScript.g:17718:2: ( ruleXUnaryOperation )\r\n {\r\n // InternalDroneScript.g:17718:2: ( ruleXUnaryOperation )\r\n // InternalDroneScript.g:17719:3: ruleXUnaryOperation\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_2_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXUnaryOperation();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_2_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public UnaryOperationButton(String normalLabel, String inverseLabel, DoubleUnaryOperator normalOperator,\n\t\t\t DoubleUnaryOperator inverseOperator, Calculator calc) {\n\t\tthis.normalLabel = normalLabel;\n\t\tthis.inverseLabel = inverseLabel;\n\t\tthis.normalOperator = normalOperator;\n\t\tthis.inverseOperator = inverseOperator;\n\t\tthis.calc = calc;\n\t\tsetText(this.normalLabel);\n\t\taddActionListener(a -> {\n\t\t\tCalcModel model = this.calc.getModel();\n\t\t\tif (isInverse) {\n\t\t\t\tmodel.setValue(this.inverseOperator.applyAsDouble(model.getValue()));\n\t\t\t} else {\n\t\t\t\tmodel.setValue(this.normalOperator.applyAsDouble(model.getValue()));\n\t\t\t}\n\t\t});\n\t}", "public interface Unary extends Expr \n{\n /** Unary expression operator. */\n public static enum Operator {\n BIT_NOT (\"~\", true),\n NEG (\"-\", true),\n POST_INC (\"++\", false),\n POST_DEC (\"--\", false),\n PRE_INC (\"++\", true),\n PRE_DEC (\"--\", true),\n POS (\"+\", true),\n NOT (\"!\", true),\n CARET (\"^\", true),\n BAR (\"|\", true),\n AMPERSAND(\"&\", true),\n STAR (\"*\", true),\n SLASH (\"/\", true),\n PERCENT (\"%\", true);\n\n protected boolean prefix;\n protected String name;\n\n private Operator(String name, boolean prefix) {\n this.name = name;\n this.prefix = prefix;\n }\n\n /** Returns true of the operator is a prefix operator, false if\n * postfix. */\n public boolean isPrefix() { return prefix; }\n\n @Override public String toString() { return name; }\n }\n\n public static final Operator BIT_NOT = Operator.BIT_NOT;\n public static final Operator NEG = Operator.NEG;\n public static final Operator POST_INC = Operator.POST_INC;\n public static final Operator POST_DEC = Operator.POST_DEC;\n public static final Operator PRE_INC = Operator.PRE_INC;\n public static final Operator PRE_DEC = Operator.PRE_DEC;\n public static final Operator POS = Operator.POS;\n public static final Operator NOT = Operator.NOT;\n public static final Operator CARET = Operator.CARET;\n public static final Operator BAR = Operator.BAR;\n public static final Operator AMPERSAND = Operator.AMPERSAND;\n public static final Operator STAR = Operator.STAR;\n public static final Operator SLASH = Operator.SLASH;\n public static final Operator PERCENT = Operator.PERCENT;\n\n /** The sub-expression on that to apply the operator. */\n Expr expr();\n /** Set the sub-expression on that to apply the operator. */\n Unary expr(Expr e);\n\n /** The operator to apply on the sub-expression. */\n Operator operator();\n /** Set the operator to apply on the sub-expression. */\n Unary operator(Operator o);\n}", "Expression addExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = multExpression();\r\n\t\twhile(isKind(OP_PLUS, OP_MINUS)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = multExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "public final void rule__XUnaryOperation__FeatureAssignment_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17675:1: ( ( ( ruleOpUnary ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17676:1: ( ( ruleOpUnary ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17676:1: ( ( ruleOpUnary ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17677:1: ( ruleOpUnary )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17678:1: ( ruleOpUnary )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17679:1: ruleOpUnary\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); \r\n }\r\n pushFollow(FOLLOW_ruleOpUnary_in_rule__XUnaryOperation__FeatureAssignment_0_135698);\r\n ruleOpUnary();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public PrefixExpression.Operator getReverse(PostfixExpression.Operator op) {\n if (op == PostfixExpression.Operator.DECREMENT)\n return PrefixExpression.Operator.INCREMENT;\n else if (op == PostfixExpression.Operator.INCREMENT)\n return PrefixExpression.Operator.DECREMENT;\n else\n return null;\n }", "POperand createPOperand();", "public static void main(String[] args) {\n\t\tPostFix aux,courant, racine;\r\n\t\t\r\n\t\t sc = new Scanner(System.in);\r\n\t\t System.out.println(\"Entrer l'expression postfixée--->\");\r\n\t\t ArrayList<String> list ; \r\n\t\t String PostEntre = sc.nextLine();\r\n\t\t \r\n\t\t list = new ArrayList<>(Arrays.asList(PostEntre.split(\" \")));\r\n\t\t \r\n\t\t ArrayDeque<PostFix> pil = new ArrayDeque<PostFix>();\r\n\t\t for (String s : list){\r\n\t\t\t courant = new PostFix(s);\r\n\t\t\t if (isOperator(s)){\r\n\t\t\t\t aux = pil.pop();\r\n\t\t\t\t courant.setfilsgauche(pil.pop());\r\n\t\t\t\t courant.setfilsdroit(aux);\r\n\t\t\t }\r\n\t\t\t pil.push(courant);\r\n\t\t\t \r\n\t\t }\r\n\t\t racine = pil.pop();\r\n\t\t System.out.println(\"L'arbre est : \" );\r\n\t\t System.out.println(racine + \"\\n\" );\r\n\t\t // racine.Afficher(racine);\r\n\t\t \r\n\t\t //----------------------------to prefix------------------------\r\n\t\t String s1,s2,sor;\r\n\t\t \r\n\t\t ArrayDeque<String> operst = new ArrayDeque<String>();\r\n\t\t for (String n : list){\r\n\t\t\t if (!isOperator(n))\r\n\t\t\t\t operst.push(n);\r\n\t\t\t else{\r\n\t\t\t\ts2 = operst.pop();\r\n\t\t\t \ts1 = operst.pop();\r\n\t\t\t \tsor = n +\" \"+ s1 +\" \"+ s2;\r\n\t\t\t operst.push(sor);\r\n\t\t\t }\r\n\t\t\t \t\t\t \r\n\t\t }\r\n\t\t System.out.println(\"L'expression prefixee donne: \");\r\n\t\t System.out.println(operst.pop()+\"\\n\");\r\n\t\t //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n\t\t \r\n\t\t \r\n\t\t //-----------------------------evaluation-----------------------\r\n\t\t Double oper1, oper2,result;\r\n\t\t ArrayDeque<Double> abc = new ArrayDeque<Double>();\r\n\t\t for (String n : list){\r\n\t\t\t if (!isOperator(n))\r\n\t\t\t\t abc.push(Double.valueOf(n));\t\t\t\r\n\t\t\t else{\r\n\t\t\t\t oper2 = abc.pop();\t\t\t \t\r\n\t\t\t\t oper1 = abc.pop();\r\n\t\t\t \tresult = operate(oper1,oper2,n);\t\t\t \r\n\t\t\t \t\tabc.push(result);\r\n\t\t\t }\r\n\t\t\t \t\t\t \r\n\t\t }\r\n\t\t System.out.println(\"l'evaluation donne: \");\r\n\t\t System.out.println(abc.pop());\r\n\t\t //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n\r\n\t}", "void post(java.lang.Runnable command);", "public PostFix(String infix) {\n this.infix = infix;\n infixList = new ArrayList<>();\n expStack = new Stack<>();\n postFix = new ArrayList<>();\n }", "DoubleBinaryOperator getPendingBinaryOperation();", "protected UnaryExpNode(ExpNode expr) {\n this.expr = expr;\n }", "public Polynomial postfixEval(List<Token> postfixtokenList){\n ArrayDeque<Token> stack = new ArrayDeque<Token>(); \n\n Polynomial result = new Polynomial(); \n for (Token token : postfixtokenList){\n if (token instanceof Polynomial)\n stack.push(token); \n else if (token instanceof Operator){\n Polynomial op2 = (Polynomial) stack.pop(); \n Polynomial op1 = (Polynomial) stack.pop(); \n result = ((Operator) token).operate(op1, op2);\n if (result == null) //for division by 0\n return null;\n stack.push(result); \n }\n }\n result = (Polynomial) stack.pop(); \n if (storingVar != ' '){\n memory.put(storingVar, result); \n storingVar = ' ';\n }\n return result; \n }", "public final void mT__37() throws RecognitionException {\n try {\n int _type = T__37;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:37:7: ( 'POST' )\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:37:9: 'POST'\n {\n match(\"POST\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "static <T> Function<T,SibillaValue> apply(UnaryOperator<SibillaValue> op, Function<T,SibillaValue> f1) {\n return arg -> op.apply(f1.apply(arg));\n }", "Operands createOperands();", "public static void main(String[] args) {\r\n \tif (args.length > 0) {\r\n \t\tString operator = args[0];\r\n \t\tif (operator.equals(\"-\")) {\r\n \t\t\ttransform();\r\n \t\t} else if (operator.equals(\"+\")) {\r\n \t\t\tinverseTransform();\r\n \t\t} else {\r\n \t\t\tthrow new IllegalArgumentException();\r\n \t\t}\r\n \t}\r\n }", "Unary expr(Expr e);", "public void postfix(TokenType token, int precedence) {\n register(token, new PostfixOperatorParselet(precedence));\n }", "private void executeUnaryExpression(Tree tree) {\n ProgramState.Pop unstackUnary = programState.unstackValue(1);\n programState = unstackUnary.state;\n SymbolicValue unarySymbolicValue = constraintManager.createSymbolicValue(tree);\n unarySymbolicValue.computedFrom(unstackUnary.values);\n if (tree.is(Tree.Kind.POSTFIX_DECREMENT, Tree.Kind.POSTFIX_INCREMENT, Tree.Kind.PREFIX_DECREMENT, Tree.Kind.PREFIX_INCREMENT)\n && ((UnaryExpressionTree) tree).expression().is(Tree.Kind.IDENTIFIER)) {\n programState = programState.put(((IdentifierTree) ((UnaryExpressionTree) tree).expression()).symbol(), unarySymbolicValue);\n }\n if(tree.is(Tree.Kind.POSTFIX_DECREMENT, Tree.Kind.POSTFIX_INCREMENT)) {\n programState = programState.stackValue(unstackUnary.values.get(0));\n } else {\n programState = programState.stackValue(unarySymbolicValue);\n }\n }", "default PacketMethod getMethod() {\n return PacketMethod.POST;\n }", "static DoubleUnaryOperator convert(double f, double b) {\n\t\treturn (double x) -> f * x + b;\n\t}", "Expression unaryExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tif (isKind(OP_PLUS)) { //throw away the plus here\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e = unaryExpression();\r\n\t\t\treturn new ExpressionUnary(first, op, e);\r\n\t\t}\r\n\t\telse if (isKind(OP_MINUS)){\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e = unaryExpression();\r\n\t\t\treturn new ExpressionUnary(first, op, e);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn unaryExpressionNotPlusMinus();\r\n\t\t}\r\n\t}", "public final void rule__AstExpressionUnary__Group_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18618:1: ( ( ( rule__AstExpressionUnary__UnaryOperatorAssignment_0_1 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18619:1: ( ( rule__AstExpressionUnary__UnaryOperatorAssignment_0_1 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18619:1: ( ( rule__AstExpressionUnary__UnaryOperatorAssignment_0_1 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18620:1: ( rule__AstExpressionUnary__UnaryOperatorAssignment_0_1 )\n {\n before(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorAssignment_0_1()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18621:1: ( rule__AstExpressionUnary__UnaryOperatorAssignment_0_1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:18621:2: rule__AstExpressionUnary__UnaryOperatorAssignment_0_1\n {\n pushFollow(FOLLOW_rule__AstExpressionUnary__UnaryOperatorAssignment_0_1_in_rule__AstExpressionUnary__Group_0__1__Impl37419);\n rule__AstExpressionUnary__UnaryOperatorAssignment_0_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorAssignment_0_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\n\tprotected void executeAux(CPU cpu) throws InstructionExecutionException {\n\t\t if(cpu.getNumElem() > 0){\n\t\t\t cpu.push(-cpu.pop());\n\t\t }\n\t\t else \t\n\t\t\t\tthrow new InstructionExecutionException\n\t\t\t\t\t(\"Error ejecutando \" + this.toString() + \": faltan operandos en la pila (hay \" + cpu.getNumElem() + \")\");\n\t\t\t\n\t}", "public static BinaryOperation Create(IConstraintExpression operand1,\n\t\t\tIConstraintExpression operand2, BinaryOperator operator) {\n\t\tif (BoolBinaryOperators.contains(operator)) {\n\t\t\treturn new BinaryBoolOperation(operand1, operand2, operator);\n\t\t} else {\n\t\t\treturn new BinaryNumericOperation(operand1, operand2, operator);\n\t\t}\n\t}", "public Builder clearPost() {\n copyOnWrite();\n instance.clearPost();\n return this;\n }", "public final void rule__XUnaryOperation__Group_0__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:5302:1: ( ( ( rule__XUnaryOperation__OperandAssignment_0_2 ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:5303:1: ( ( rule__XUnaryOperation__OperandAssignment_0_2 ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:5303:1: ( ( rule__XUnaryOperation__OperandAssignment_0_2 ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:5304:1: ( rule__XUnaryOperation__OperandAssignment_0_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXUnaryOperationAccess().getOperandAssignment_0_2()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:5305:1: ( rule__XUnaryOperation__OperandAssignment_0_2 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:5305:2: rule__XUnaryOperation__OperandAssignment_0_2\n {\n pushFollow(FOLLOW_rule__XUnaryOperation__OperandAssignment_0_2_in_rule__XUnaryOperation__Group_0__2__Impl10902);\n rule__XUnaryOperation__OperandAssignment_0_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXUnaryOperationAccess().getOperandAssignment_0_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void applyOperator(GameOperator operator) {\n this.number=operator.apply(this.number, next.getNumber());\n this.next = next.getNext();\n }", "public Mult(Expression left, Expression right) {\n super(left, right);\n }", "public Mult(Expression left, Expression right) {\n super(left, right);\n }", "public InterceptorType<T> removeAllPostConstruct()\n {\n childNode.remove(\"post-construct\");\n return this;\n }", "public TreeNode constructFromPrePost(int[] pre, int[] post) {\n if (pre == null || post == null || pre.length != post.length) return null;\n int preLen = pre.length;\n int postLen = post.length;\n return helper(pre, 0, preLen - 1, post, 0, postLen - 1);\n }", "@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n Additive op = token.getValue(); // + | -\n // + is always followed by an argument\n Expression arg = next.pollFirst().getTarget(); // b argument\n Term<Additive> term = new Term<>(op, arg);\n return term;\n }", "public VRMasterRenderer(MasterRenderer m, Fbo left, Fbo right, PostProcessor leftPost, PostProcessor rightPost) {\n\t\tsuper(m);\n\t\tthis.renderTarget = left;\n\t\tthis.rightRenderTarget = right;\n\t\tthis.post = leftPost;\n\t\tthis.rightPost = rightPost;\n\t}", "private void postOrder(OpTree t, ArrayList<String> rlist)\n\t{\n\t\tif (t == null) return;\n\t\tpostOrder(t.left, rlist);\n\t\tpostOrder(t.right, rlist);\n\t\trlist.add(rlist.size(),(t.op != null? t.op : t.dval.toString()));\n\t}", "OpFunction createOpFunction();", "@Override\n\tpublic void VisitBinaryNode(BinaryOperatorNode Node) {\n\n\t}", "public PushOperation(String... args) throws SyntaxException {\r\n // validate preconditions\r\n if (args.length < 1) {\r\n throw new SyntaxException(\"Not enough arguments for \\\"push\\\" operation\");\r\n }\r\n\r\n pushArg = args[0];\r\n\r\n if (!DefineOperation.NAME_PATTERN.matcher(pushArg).matches()\r\n && !DefineOperation.DOUBLE_PATTERN.matcher(pushArg).matches()) {\r\n throw new SyntaxException(String.format(\"Invalid argument '%s' for \\\"push\\\" operation\", pushArg));\r\n }\r\n }" ]
[ "0.69850135", "0.5658778", "0.55724204", "0.5540799", "0.55006725", "0.5446669", "0.5340541", "0.52417845", "0.5214555", "0.517174", "0.515017", "0.5067778", "0.5059232", "0.500739", "0.50050783", "0.5000366", "0.4971969", "0.49655065", "0.48926598", "0.4880556", "0.4870914", "0.48576945", "0.48476124", "0.4815179", "0.4791602", "0.47907308", "0.47892135", "0.47865772", "0.47816345", "0.47617117", "0.4761042", "0.47577506", "0.4754992", "0.47502133", "0.47304505", "0.4719552", "0.47188643", "0.47145703", "0.4710429", "0.46966457", "0.46774134", "0.467606", "0.46674472", "0.46616822", "0.46460083", "0.46436307", "0.46229786", "0.4614448", "0.46053383", "0.46009094", "0.45950848", "0.4590317", "0.45885953", "0.45848426", "0.4553485", "0.45525134", "0.45504126", "0.45430896", "0.45354876", "0.4527685", "0.45142528", "0.44995376", "0.44973207", "0.44930318", "0.4484703", "0.44816086", "0.44808847", "0.44793293", "0.44789815", "0.44703096", "0.44692823", "0.4463876", "0.4456609", "0.44560033", "0.44540274", "0.44507128", "0.4447479", "0.4436355", "0.4434225", "0.44331378", "0.44308996", "0.44307223", "0.4423495", "0.44132447", "0.44114757", "0.44102284", "0.44096187", "0.44074658", "0.44062883", "0.4401982", "0.44018304", "0.44018304", "0.44006005", "0.43976182", "0.43972576", "0.4394502", "0.43914938", "0.4386822", "0.43805712", "0.43738186" ]
0.62088877
1
Carefully interpretes the correct arrangement of a loose math statement for objects of this class and applies the correct one to the Function object.
public static void assignCompoundTokens(ArrayList<String>scan){ for(int i=0;i<scan.size();i++){ if( isUnaryPostOperator( scan.get(i) ) ){ if(isNumber(scan.get(i-1))||isVariableString(scan.get(i-1))){ int index=i-1; int j=i; while(isUnaryPostOperator(scan.get(j))){ ++j; } scan.add(j, ")"); scan.add(index,"("); i=j+1; }//end if else if(isClosingBracket(scan.get(i-1))){ int index=MBracket.getComplementIndex(false, i-1, scan); int j=i; while(isUnaryPostOperator(scan.get(j))){ ++j; } scan.add(j, ")"); scan.add(index,"("); i=j+1; } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MathObject evaluate(Function input);", "public void doMath();", "private void equate()\n\t{\n\t\t\tif(Fun == Function.ADD)\n\t\t\t{\t\t\t\n\t\t\t\tresult = calc.sum ( );\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end ADD condition\n\t\t\t\n\t\t\telse if(Fun == Function.SUBTRACT)\n\t\t\t{\n\t\t\t\tresult = calc.subtract ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end SUBTRACT condition\n\t\t\t\n\t\t\telse if (Fun == Function.MULTIPLY)\n\t\t\t{\n\t\t\t\tresult = calc.multiply ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end MULTIPLY condition\n\t\t\t\n\t\t\telse if (Fun == Function.DIVIDE)\n\t\t\t{\n\t\t\t\tresult = calc.divide ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}\n\t\t\t\t\n\t}", "public MathEval() {\r\n super();\r\n\r\n constants=new TreeMap<String,Double>(String.CASE_INSENSITIVE_ORDER);\r\n setConstant(\"E\" ,Math.E);\r\n setConstant(\"Euler\" ,0.577215664901533D);\r\n setConstant(\"LN2\" ,0.693147180559945D);\r\n setConstant(\"LN10\" ,2.302585092994046D);\r\n setConstant(\"LOG2E\" ,1.442695040888963D);\r\n setConstant(\"LOG10E\",0.434294481903252D);\r\n setConstant(\"PHI\" ,1.618033988749895D);\r\n setConstant(\"PI\" ,Math.PI);\r\n\r\n variables=new TreeMap<String,Double>(String.CASE_INSENSITIVE_ORDER);\r\n\r\n functions=new TreeMap<String,FunctionHandler>(String.CASE_INSENSITIVE_ORDER);\r\n\r\n offset=0;\r\n isConstant=false;\r\n }", "@Override\r\n \tpublic int evaluate(final String expression) {\n \t\tif (expression.isEmpty()) {\r\n \t\t\tthrow new RuntimeException();\r\n \t\t}\r\n \t\tObject v, f;\r\n \t\tfloat k;\r\n \t\tfor (int i = 0; i < expression.length(); i++) {\r\n \t\t\t\tif (expression.charAt(i) == '/') {\r\n \t\t\t\t\tif (s.size() >= 2) {\r\n \t\t\t\t\t\tf = s.pop();\r\n \t\t\t\t\t\tv = s.pop();\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tthrow new RuntimeException();\r\n \t\t\t\t\t}\r\n \t\t\t\t k = (Float.valueOf(\r\n \t\t\t\t\t\tString.valueOf(v))\r\n \t\t\t\t\t\t/ (Float.valueOf(\r\n \t\t\t\t\t\t String.valueOf(f))));\r\n \t\t\t\ts.push(k);\r\n \t\t\t\t} else if (expression.charAt(i) == '*') {\r\n \t\t\t\t\tif (s.size() >= 2) {\r\n \t\t\t\t\t\tf = s.pop();\r\n \t\t\t\t\t\tv = s.pop();\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tthrow new RuntimeException();\r\n \t\t\t\t\t}\r\n \t\t\t\t k = (Float.valueOf(\r\n \t\t\t\t\t\t\tString.valueOf(v))\r\n \t\t\t\t\t\t\t* (Float.valueOf(\r\n \t\t\t\t\t\t\t String.valueOf(f))));\r\n \t\t\t\t\ts.push(k);\r\n \t\t\t\t\t} else if (\r\n \t\t\t\t\t\texpression.charAt(i) == '+') {\r\n \t\t\t\t\t\tif (s.size() >= 2) {\r\n \t \t\t\t\t\t\tf = s.pop();\r\n \t \t\t\t\t\t\tv = s.pop();\r\n \t \t\t\t\t\t} else {\r\n \t \t\t\t\t throw new RuntimeException();\r\n \t \t\t\t\t\t}\r\n \t\t\t\t k = (Float.valueOf(\r\n \t\t\t\t\t\t\tString.valueOf(v))\r\n \t\t\t\t\t\t\t+ (Float.valueOf(\r\n \t\t\t\t\t\t\t String.valueOf(f))));\r\n \t\t\t\t\ts.push(k);\r\n \t\t\t\t\t} else if (\r\n \t\t\t\t\texpression.charAt(i) == '-') {\r\n \t\t\t\t\t\tif (s.size() >= 2) {\r\n \t \t\t\t\t\t\tf = s.pop();\r\n \t \t\t\t\t\t\tv = s.pop();\r\n \t \t\t\t\t\t} else {\r\n \t \t\t\t \t throw new RuntimeException();\r\n \t \t\t\t\t\t}\r\n \t\t\t\t\t k = (Float.valueOf(\r\n \t\t\t\t\t\t\tString.valueOf(v))\r\n \t\t\t\t\t\t\t- (Float.valueOf(\r\n \t\t\t\t\t\t\t String.valueOf(f))));\r\n \t\t\t\t\ts.push(k);\r\n \t\t\t\t\t} else {\r\n \t\t\t\tif (expression.charAt(i) != ' ') {\r\n \t\t\t\t\tint r = 0;\r\n \t\t\t\t\tr += Integer.valueOf(\r\n \t\t\t\t\t\tString.valueOf(\r\n \t\t\t\t\t\texpression.charAt(i)));\r\n \t\t\t\t\twhile (\r\n \t\t\t\t\texpression.charAt(i + 1) != ' ') {\r\n \t\t\t\t\t\ti++;\r\n \t\t\t\t\t\tr *= magic10;\r\n \t\t\t\t\t\tr += Integer.valueOf(\r\n \t\t\t\t\t\t\tString.valueOf(\r\n \t\t\t\t\t\t\texpression.charAt(i)));\r\n \t\t\t\t\t}\r\n \t\t\t\ts.push(r);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n if (s.size() == 0) {\r\n \t\t\tthrow new RuntimeException();\r\n \t\t}\r\n \t\tfloat h = Float.parseFloat((String.valueOf(s.pop())));\r\n \t\tif (!s.isEmpty()) {\r\n \t\t\treturn 0;\r\n \t\t}\r\n \t\treturn (int) h;\r\n \t}", "public final CQLParser.mathematicalFunction_return mathematicalFunction() throws RecognitionException {\n CQLParser.mathematicalFunction_return retval = new CQLParser.mathematicalFunction_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token set112=null;\n Token char_literal113=null;\n Token char_literal115=null;\n CQLParser.arithmeticExpression_return arithmeticExpression114 = null;\n\n\n Object set112_tree=null;\n Object char_literal113_tree=null;\n Object char_literal115_tree=null;\n\n errorMessageStack.push(\"Mathematical function definition\"); \n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:431:2: ( ( SQRT | LOG | LN | ABS ) '(' arithmeticExpression ')' )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:431:4: ( SQRT | LOG | LN | ABS ) '(' arithmeticExpression ')'\n {\n root_0 = (Object)adaptor.nil();\n\n set112=(Token)input.LT(1);\n set112=(Token)input.LT(1);\n if ( (input.LA(1)>=SQRT && input.LA(1)<=ABS) ) {\n input.consume();\n root_0 = (Object)adaptor.becomeRoot((Object)adaptor.create(set112), root_0);\n state.errorRecovery=false;\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n char_literal113=(Token)match(input,114,FOLLOW_114_in_mathematicalFunction2031); \n pushFollow(FOLLOW_arithmeticExpression_in_mathematicalFunction2034);\n arithmeticExpression114=arithmeticExpression();\n\n state._fsp--;\n\n adaptor.addChild(root_0, arithmeticExpression114.getTree());\n char_literal115=(Token)match(input,116,FOLLOW_116_in_mathematicalFunction2036); \n\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n errorMessageStack.pop();\n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }", "@Test\n void scEvaluate() {\n StandardCalc sc = new StandardCalc();\n String expression = (\"( 5 * ( 6 + 7 ) ) - 2\");\n float result = 0f;\n try {\n result = sc.evaluate(expression);\n } catch (InvalidExpressionException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n assertEquals(result, 63);\n }", "public ArithmeticFunctionEvaluator(ArithmeticExpressionEvaluator myAttachedAE) {\r\n this.eAE = myAttachedAE;\r\n FUNCTIONS = new TreeMap<String, Function>();\r\n FUNCTIONS.put(\"floor\", new Function(1, 1, ARITHMETIC) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret = new CombinedReturnObject(Math.floor(arg.get(0).doubleValue()));\r\n ret.setIsValue(arg.get(0).isValue());\r\n ret.setErrorInExpression(arg.get(0).isErrorInExpression());\r\n return ret;\r\n }\r\n });\r\n FUNCTIONS.put(\"cos\", new Function(1, 1, ARITHMETIC) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret = new CombinedReturnObject(Math.cos(Math.toRadians(arg.get(0).doubleValue())));\r\n ret.setIsValue(arg.get(0).isValue());\r\n ret.setErrorInExpression(arg.get(0).isErrorInExpression());\r\n return ret;\r\n }\r\n });\r\n FUNCTIONS.put(\"sin\", new Function(1, 1, ARITHMETIC) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret = new CombinedReturnObject(Math.sin(Math.toRadians(arg.get(0).doubleValue())));\r\n ret.setIsValue(arg.get(0).isValue());\r\n ret.setErrorInExpression(arg.get(0).isErrorInExpression());\r\n return ret;\r\n }\r\n });\r\n\r\n FUNCTIONS.put(\"tan\", new Function(1, 1, ARITHMETIC) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret = new CombinedReturnObject(Math.tan(Math.toRadians(arg.get(0).doubleValue())));\r\n ret.setIsValue(arg.get(0).isValue());\r\n ret.setErrorInExpression(arg.get(0).isErrorInExpression());\r\n return ret;\r\n }\r\n });\r\n\r\n FUNCTIONS.put(\"exp\", new Function(1, 1, ARITHMETIC) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret = new CombinedReturnObject(Math.exp(arg.get(0).doubleValue()));\r\n ret.setIsValue(arg.get(0).isValue());\r\n ret.setErrorInExpression(arg.get(0).isErrorInExpression());\r\n return ret;\r\n }\r\n });\r\n FUNCTIONS.put(\"ln\", new Function(1, 1, ARITHMETIC,false,true) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret = new CombinedReturnObject(Math.log(arg.get(0).doubleValue()));\r\n ret.setIsValue(arg.get(0).isValue());\r\n ret.setErrorInExpression(arg.get(0).isErrorInExpression());\r\n return ret;\r\n }\r\n });\r\n\r\n FUNCTIONS.put(\"log\", new Function(1, 1, ARITHMETIC,false,true) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret = new CombinedReturnObject(Math.log10(arg.get(0).doubleValue()));\r\n\r\n ret.setIsValue(arg.get(0).isValue());\r\n ret.setErrorInExpression(arg.get(0).isErrorInExpression());\r\n return ret;\r\n }\r\n });\r\n\r\n FUNCTIONS.put(\"abs\", new Function(1, 1, ARITHMETIC) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret = new CombinedReturnObject(Math.abs(arg.get(0).doubleValue()));\r\n\r\n ret.setIsValue(arg.get(0).isValue());\r\n ret.setErrorInExpression(arg.get(0).isErrorInExpression());\r\n return ret;\r\n }\r\n });\r\n\r\n FUNCTIONS.put(\"round\", new Function(1, 1, ARITHMETIC) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret = new CombinedReturnObject(Math.round(arg.get(0).doubleValue()));\r\n\r\n ret.setIsValue(arg.get(0).isValue());\r\n ret.setErrorInExpression(arg.get(0).isErrorInExpression());\r\n return ret;\r\n }\r\n });\r\n\r\n FUNCTIONS.put(\"div\", new Function(2, 2, ARITHMETIC, true) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n\r\n long a = Math.round(arg.get(0).doubleValue());\r\n long b = Math.round(arg.get(1).doubleValue());\r\n CombinedReturnObject ret = new CombinedReturnObject(Math.floorDiv(a, b));\r\n ret.setIsValue(arg.get(0).isValue() && arg.get(1).isValue());\r\n ret.setErrorInExpression(arg.get(0).isErrorInExpression() && arg.get(1).isErrorInExpression());\r\n return ret;\r\n }\r\n });\r\n\r\n FUNCTIONS.put(\"mod\", new Function(2, 2, ARITHMETIC, true) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n\r\n long a = Math.round(arg.get(0).doubleValue());\r\n long b = Math.round(arg.get(1).doubleValue());\r\n CombinedReturnObject ret = new CombinedReturnObject(Math.floorMod(a, b));\r\n ret.setIsValue(arg.get(0).isValue() && arg.get(1).isValue());\r\n ret.setErrorInExpression(arg.get(0).isErrorInExpression() && arg.get(1).isErrorInExpression());\r\n return ret;\r\n }\r\n });\r\n\r\n FUNCTIONS.put(\"fact\", new Function(1, 1, ARITHMETIC, true) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret = new CombinedReturnObject(1);\r\n long i = Math.round(arg.get(0).doubleValue());\r\n long res = 1;\r\n while (i > 0) {\r\n res = res * i;\r\n i--;\r\n }\r\n ret.setIntValue(res);\r\n ret.setIsValue(arg.get(0).isValue());\r\n ret.setErrorInExpression(arg.get(0).isErrorInExpression());\r\n return ret;\r\n }\r\n });\r\n\r\n FUNCTIONS.put(\"pi\", new Function(0, 0, ARITHMETIC) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret = new CombinedReturnObject(Math.PI);\r\n\r\n return ret;\r\n }\r\n });\r\n\r\n FUNCTIONS.put(\"pgcd\", new Function(2, 2, ARITHMETIC, true) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret = new CombinedReturnObject(1);\r\n long a = Math.round(arg.get(0).doubleValue());\r\n long b = Math.round(arg.get(1).doubleValue());\r\n long c = 0;\r\n if (a < b) {\r\n c = b;\r\n b = a;\r\n a = c;\r\n }\r\n\r\n long r = a;\r\n if (b != 0) {\r\n while (r != 0) {\r\n r = a % b;\r\n a = b;\r\n b = r;\r\n }\r\n } else {\r\n a = 1;\r\n }\r\n\r\n ret.setIntValue(a);\r\n\r\n ret.setIsValue(arg.get(0).isValue() && arg.get(1).isValue());\r\n ret.setErrorInExpression(arg.get(0).isErrorInExpression() && arg.get(1).isErrorInExpression());\r\n return ret;\r\n }\r\n });\r\n\r\n FUNCTIONS.put(\"ppcm\", new Function(2, 2, ARITHMETIC, true) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret = new CombinedReturnObject(1);\r\n long a = Math.round(arg.get(0).doubleValue());\r\n long b = Math.round(arg.get(1).doubleValue());\r\n long c = 0;\r\n if (a < b) {\r\n c = b;\r\n b = a;\r\n a = c;\r\n }\r\n\r\n long r = a;\r\n if (b != 0) {\r\n while (r != 0) {\r\n r = a % b;\r\n a = b;\r\n b = r;\r\n }\r\n } else {\r\n a = 1;\r\n }\r\n long a1 = Math.round(arg.get(0).doubleValue());\r\n long b1 = Math.round(arg.get(1).doubleValue());\r\n ret.setIntValue(a1 * b1 / a);\r\n\r\n ret.setIsValue(arg.get(0).isValue() && arg.get(1).isValue());\r\n ret.setErrorInExpression(arg.get(0).isErrorInExpression() && arg.get(1).isErrorInExpression());\r\n return ret;\r\n }\r\n });\r\n\r\n FUNCTIONS.put(\"rand\", new Function(0, -1, ARITHMETIC) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret = new CombinedReturnObject(Math.random());\r\n boolean isValueTemp = true;\r\n boolean isErrorTemp = false;\r\n\r\n if (arg.size() > 0) {\r\n int i = 0;\r\n int randint = (int) Math.round(Math.random() * (arg.size() - 1));\r\n\r\n ret = new CombinedReturnObject(arg.get(randint));\r\n System.out.println(\" ---- : \" + ret.stringValue());\r\n for (i = 0; i < arg.size(); i++) {\r\n //System.out.println(i+\":\"+arg.get(i).doubleValue());\r\n //ret.setDoubleValue(ret.doubleValue() + arg.get(i).doubleValue());\r\n if (!arg.get(i).isValue()) {\r\n isValueTemp = true;\r\n }\r\n if (arg.get(i).isErrorInExpression()) {\r\n isErrorTemp = true;\r\n }\r\n }\r\n }\r\n\r\n Cell cell = eAE.evaluator.getActualEvaluatingCell();\r\n if (cell != null) {\r\n cell.setContainRandomFunction(true);\r\n }\r\n ret.setIsValue(isValueTemp);\r\n ret.setErrorInExpression(isErrorTemp);\r\n\r\n return ret;\r\n }\r\n });\r\n FUNCTIONS.put(\"alea\", new Function(2, 2, ARITHMETIC) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret = new CombinedReturnObject(Math.random());\r\n\r\n int i = 0;\r\n double a, b;\r\n if (arg.get(0).doubleValue() <= arg.get(1).doubleValue()) {\r\n a = arg.get(0).doubleValue();\r\n b = arg.get(1).doubleValue();\r\n } else {\r\n b = arg.get(0).doubleValue();\r\n a = arg.get(1).doubleValue();\r\n }\r\n double rand = Math.random() * (b - a) + a;\r\n ret = new CombinedReturnObject(rand);\r\n if (!arg.get(0).isValue()) {\r\n ret.setIsValue(false);\r\n } else {\r\n if (!arg.get(1).isValue()) {\r\n ret.setIsValue(false);\r\n }\r\n }\r\n if (arg.get(0).isErrorInExpression()) {\r\n ret.setErrorInExpression(true);\r\n } else {\r\n if (arg.get(1).isErrorInExpression()) {\r\n ret.setErrorInExpression(true);\r\n }\r\n }\r\n Cell cell = eAE.evaluator.getActualEvaluatingCell();\r\n if (cell != null) {\r\n cell.setContainRandomFunction(true);\r\n }\r\n return ret;\r\n }\r\n });\r\n\r\n FUNCTIONS.put(\"aleaint\", new Function(2, 2, ARITHMETIC, true) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret = new CombinedReturnObject(Math.random());\r\n\r\n int i = 0;\r\n double a, b;\r\n if (arg.get(0).doubleValue() <= arg.get(1).doubleValue()) {\r\n a = arg.get(0).doubleValue();\r\n b = arg.get(1).doubleValue();\r\n } else {\r\n b = arg.get(0).doubleValue();\r\n a = arg.get(1).doubleValue();\r\n }\r\n long rand = Math.round((Math.random() * (b - a) + a));\r\n ret = new CombinedReturnObject(rand);\r\n if (!arg.get(0).isValue()) {\r\n ret.setIsValue(false);\r\n } else {\r\n if (!arg.get(1).isValue()) {\r\n ret.setIsValue(false);\r\n }\r\n }\r\n if (arg.get(0).isErrorInExpression()) {\r\n ret.setErrorInExpression(true);\r\n } else {\r\n if (arg.get(1).isErrorInExpression()) {\r\n ret.setErrorInExpression(true);\r\n }\r\n }\r\n Cell cell = eAE.evaluator.getActualEvaluatingCell();\r\n if (cell != null) {\r\n cell.setContainRandomFunction(true);\r\n }\r\n return ret;\r\n }\r\n });\r\n FUNCTIONS.put(\"max\", new Function(1, -1, ARITHMETIC) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret;\r\n boolean isValueTemp = true;\r\n boolean isErrorTemp = false;\r\n ret = new CombinedReturnObject(arg.get(0).doubleValue());\r\n //added\r\n /*ArrayList<CombinedReturnObject> listofvars = arg.get(0).asArrayList();\r\n \r\n for (int k = 0; k < listofvars.size(); k++) {\r\n if (ret.doubleValue() < listofvars.get(k).doubleValue()) {\r\n ret = new CombinedReturnObject(listofvars.get(k).doubleValue());\r\n }\r\n }*/\r\n //added\r\n if (!arg.get(0).isValue()) {\r\n isValueTemp = false;\r\n }\r\n if (arg.get(0).isErrorInExpression()) {\r\n isErrorTemp = true;\r\n }\r\n int i = 0;\r\n for (i = 1; i < arg.size(); i++) {\r\n if (ret.doubleValue() < arg.get(i).doubleValue()) {\r\n /*listofvars = arg.get(i).asArrayList();\r\n for (int k = 0; k < listofvars.size(); k++) {\r\n if (ret.doubleValue() < listofvars.get(k).doubleValue()) {\r\n ret = new CombinedReturnObject(listofvars.get(k).doubleValue());\r\n }\r\n }*/\r\n //added New\r\n ret = new CombinedReturnObject(arg.get(i).doubleValue());\r\n }\r\n if (!arg.get(i).isValue()) {\r\n isValueTemp = false;\r\n }\r\n if (arg.get(i).isErrorInExpression()) {\r\n isErrorTemp = true;\r\n }\r\n }\r\n ret.setIsValue(isValueTemp);\r\n ret.setErrorInExpression(isErrorTemp);\r\n return ret;\r\n }\r\n });\r\n FUNCTIONS.put(\"min\", new Function(1, -1, ARITHMETIC) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret = new CombinedReturnObject(arg.get(0).doubleValue());\r\n boolean isValueTemp = true;\r\n boolean isErrorTemp = false;\r\n\r\n int i = 0;\r\n if (!arg.get(0).isValue()) {\r\n isValueTemp = false;\r\n }\r\n if (arg.get(0).isErrorInExpression()) {\r\n isErrorTemp = true;\r\n }\r\n for (i = 1; i < arg.size(); i++) {\r\n if (ret.doubleValue() > arg.get(i).doubleValue()) {\r\n ret = new CombinedReturnObject(arg.get(i).doubleValue());\r\n\r\n }\r\n if (!arg.get(i).isValue()) {\r\n isValueTemp = false;\r\n }\r\n if (arg.get(i).isErrorInExpression()) {\r\n isErrorTemp = true;\r\n }\r\n\r\n }\r\n ret.setIsValue(isValueTemp);\r\n ret.setErrorInExpression(isErrorTemp);\r\n return ret;\r\n }\r\n });\r\n FUNCTIONS.put(\"somme\", new Function(1, -1, ARITHMETIC) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret;\r\n boolean isValueTemp = true;\r\n boolean isErrorTemp = false;\r\n ret = new CombinedReturnObject(arg.get(0).doubleValue());\r\n if (!arg.get(0).isValue()) {\r\n isValueTemp = false;\r\n }\r\n if (arg.get(0).isErrorInExpression()) {\r\n isErrorTemp = true;\r\n }\r\n int i = 0;\r\n //System.out.println(i+\":\"+arg.get(i).doubleValue());\r\n for (i = 1; i < arg.size(); i++) {\r\n //System.out.println(i+\":\"+arg.get(i).doubleValue());\r\n ret.setDoubleValue(ret.doubleValue() + arg.get(i).doubleValue());\r\n if (!arg.get(i).isValue()) {\r\n isValueTemp = false;\r\n }\r\n if (arg.get(i).isErrorInExpression()) {\r\n isErrorTemp = true;\r\n }\r\n }\r\n ret.setIsValue(isValueTemp);\r\n ret.setErrorInExpression(isErrorTemp);\r\n return ret;\r\n }\r\n });\r\n\r\n FUNCTIONS.put(\"moyenne\", new Function(1, -1, STATISTIC) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret;\r\n boolean isValueTemp = true;\r\n boolean isErrorTemp = false;\r\n ret = new CombinedReturnObject(arg.get(0).doubleValue());\r\n if (!arg.get(0).isValue()) {\r\n isValueTemp = false;\r\n }\r\n if (arg.get(0).isErrorInExpression()) {\r\n isErrorTemp = true;\r\n }\r\n int i = 0;\r\n //System.out.println(i+\":\"+arg.get(i).doubleValue());\r\n for (i = 1; i < arg.size(); i++) {\r\n //System.out.println(i+\":\"+arg.get(i).doubleValue());\r\n ret.setDoubleValue(ret.doubleValue() + arg.get(i).doubleValue());\r\n if (!arg.get(i).isValue()) {\r\n isValueTemp = true;\r\n }\r\n if (arg.get(i).isErrorInExpression()) {\r\n isErrorTemp = true;\r\n }\r\n }\r\n\r\n ret.setDoubleValue(ret.doubleValue() / arg.size());\r\n ret.setIsValue(isValueTemp);\r\n ret.setErrorInExpression(isErrorTemp);\r\n return ret;\r\n }\r\n });\r\n\r\n FUNCTIONS.put(\"variance\", new Function(1, -1, STATISTIC) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret;\r\n boolean isValueTemp = true;\r\n boolean isErrorTemp = false;\r\n double squareSum;\r\n double sum;\r\n ret = new CombinedReturnObject(arg.get(0).doubleValue());\r\n squareSum = Math.pow(arg.get(0).doubleValue(), 2);\r\n sum = arg.get(0).doubleValue();\r\n if (!arg.get(0).isValue()) {\r\n isValueTemp = false;\r\n }\r\n if (arg.get(0).isErrorInExpression()) {\r\n isErrorTemp = true;\r\n }\r\n int i = 0;\r\n //System.out.println(i+\":\"+arg.get(i).doubleValue());\r\n for (i = 1; i < arg.size(); i++) {\r\n //System.out.println(i+\":\"+arg.get(i).doubleValue());\r\n //ret.setDoubleValue(ret.doubleValue() + arg.get(i).doubleValue());\r\n squareSum = squareSum + Math.pow(arg.get(i).doubleValue(), 2);\r\n sum = sum + arg.get(i).doubleValue();\r\n if (!arg.get(i).isValue()) {\r\n isValueTemp = true;\r\n }\r\n if (arg.get(i).isErrorInExpression()) {\r\n isErrorTemp = true;\r\n }\r\n }\r\n double meanofsquares = squareSum / arg.size();\r\n double squaredmean = Math.pow(sum / arg.size(), 2);\r\n\r\n ret.setDoubleValue(meanofsquares - squaredmean);\r\n ret.setIsValue(isValueTemp);\r\n ret.setErrorInExpression(isErrorTemp);\r\n return ret;\r\n }\r\n });\r\n\r\n FUNCTIONS.put(\"mediane\", new Function(1, -1, STATISTIC) {\r\n @Override\r\n CombinedReturnObject execute(ArrayList<CombinedReturnObject> arg) {\r\n CombinedReturnObject ret;\r\n boolean isValueTemp = true;\r\n boolean isErrorTemp = false;\r\n ret = new CombinedReturnObject(arg.get(0).doubleValue());\r\n if (!arg.get(0).isValue()) {\r\n isValueTemp = false;\r\n }\r\n if (arg.get(0).isErrorInExpression()) {\r\n isErrorTemp = true;\r\n }\r\n int i = 0;\r\n //System.out.println(i+\":\"+arg.get(i).doubleValue());\r\n for (i = 1; i < arg.size(); i++) {\r\n //System.out.println(i+\":\"+arg.get(i).doubleValue());\r\n //ret.setDoubleValue(ret.doubleValue() + arg.get(i).doubleValue());\r\n if (!arg.get(i).isValue()) {\r\n isValueTemp = true;\r\n }\r\n if (arg.get(i).isErrorInExpression()) {\r\n isErrorTemp = true;\r\n }\r\n }\r\n\r\n int mid = Math.floorDiv(arg.size(), 2);\r\n if (arg.size() % 2 == 0) {\r\n ret.setDoubleValue((arg.get(mid).doubleValue() + arg.get(mid - 1).doubleValue()) / 2);\r\n } else {\r\n ret.setDoubleValue(arg.get(mid).doubleValue());\r\n }\r\n\r\n ret.setIsValue(isValueTemp);\r\n ret.setErrorInExpression(isErrorTemp);\r\n return ret;\r\n }\r\n });\r\n\r\n }", "protected IExpressionValue expression() throws TableFunctionMalformedException,\r\n\t\t\t\t\t\t\t\t\t\t\t\t InvalidProbabilityRangeException,\r\n\t\t\t\t\t\t\t\t\t\t\t\t SomeStateUndeclaredException{\r\n\t\t\r\n\t\t// temp table already created by upper caller\r\n\t\t\r\n\t\tIExpressionValue temp1 = term();\r\n\t\tIExpressionValue temp2 = null;\r\n\t\t\r\n\t\tFloat temp1Value = null;\r\n\t\tFloat temp2Value = null;\r\n\t\t// LOOK FOR +/- (OPTIONAL)\r\n\t\tswitch (look) {\r\n\t\tcase '+':\r\n\t\t\tmatch('+');\r\n\t\t\ttemp2 = term();\r\n\t\t\ttry {\r\n\t\t\t\ttemp1Value = Float.parseFloat(temp1.getValue());\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\ttemp1Value = Float.NaN;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\ttemp2Value = Float.parseFloat(temp2.getValue());\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\ttemp2Value = Float.NaN;\r\n\t\t\t}\r\n\t\t\tif (!Float.isNaN(temp1Value) && !Float.isNaN(temp2Value)) {\r\n\t\t\t\t// TODO cut the subtree if it is a known value...\r\n\t\t\t\ttemp1 = new AddOperationProbabilityValue(\r\n\t\t\t\t\t\ttemp1.isFixedValue()?(new SimpleProbabilityValue(temp1Value)):temp1 ,\r\n\t\t\t\t\t\t\t\ttemp2.isFixedValue()?(new SimpleProbabilityValue(temp2Value)):temp2);\r\n\t\t\t}\t\t\r\n\t\t\tbreak;\r\n\t\tcase '-':\r\n\t\t\tmatch('-');\r\n\t\t\ttemp2 = term();\r\n\t\t\ttry {\r\n\t\t\t\ttemp1Value = Float.parseFloat(temp1.getValue());\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\ttemp1Value = Float.NaN;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\ttemp2Value = Float.parseFloat(temp2.getValue());\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\ttemp2Value = Float.NaN;\r\n\t\t\t}\r\n\t\t\tif (!Float.isNaN(temp1Value) && !Float.isNaN(temp2Value)){\r\n\t\t\t\t// TODO cut the subtree if it is known value...\r\n\t\t\t\ttemp1 = new SubtractOperationProbabilityValue(\r\n\t\t\t\t\t\ttemp1.isFixedValue()?(new SimpleProbabilityValue(temp1Value)):temp1 ,\r\n\t\t\t\t\t\t\t\ttemp2.isFixedValue()?(new SimpleProbabilityValue(temp2Value)):temp2);\r\n\t\t\t}\t\t\t\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t// Debug.println(\"Expression returned \" + temp1.getProbability());\r\n\t\treturn temp1;\r\n\t}", "public interface FunctionEvaluator {\n\t/*\n\t * Evaluate the given function if possible. Otherwise should return null.\n\t */\n\tpublic MathObject evaluate(Function input);\n}", "private static void equationsTest() {\n }", "private Double check_mathOperator(Double result) {\n \r\n switch(mathOperator){\r\n case '/':\r\n result =totalFirst/totalLast;\r\n break;\r\n case 'x':\r\n result =totalFirst*totalLast;\r\n break;\r\n case '-':\r\n result =totalFirst-totalLast;\r\n break;\r\n case '+':\r\n result =totalFirst+totalLast;\r\n break;\r\n \r\n }\r\n return result;\r\n }", "protected Double calculationEngine(String strExpression, List<Character> split) throws Exception {\r\n\t\tPattern prio0 = Pattern.compile(\"[\\\\^]\");\r\n\t\tPattern prio1 = Pattern.compile(\"[\\\\*\\\\/]\");\t\t\r\n\t\t\r\n\t\tDouble result = 0.0;\r\n\t\tList<String> listExpressions = splitExpressions(strExpression, split);\r\n\t\t\r\n\t\tString lastOperator = \"\";\r\n\t\tDouble valueA = 0.0;\r\n\t\tfor(String expression: listExpressions) {\r\n\t\t\t\r\n\t\t\tDouble expressonValue = 0.0;\r\n\t\t\tString [] parseValue = expression.split(\"\\\\|\");\t\t\t\r\n\r\n\t\t\tStringBuilder value = new StringBuilder(parseValue[0]);\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(value.toString().contains(\"sqrt(\")) {\r\n\t\t\t\tint begin = value.toString().indexOf(\"sqrt(\");\t\t\t\t\r\n\t\t\t\tString content = getParenthesesContent(value.toString(), begin+4);\r\n\t\t\t\tint end = begin + content.length()+6;\r\n\t\t\t\texpressonValue = calculationEngine(content, macroSplit);\t\t\t\t\r\n\t\t\t\texpressonValue = Math.sqrt(expressonValue);\t\t\t\t\r\n\t\t\t\tvalue.delete(begin, end);\r\n\t\t\t\tvalue.insert(begin, expressonValue);\r\n\t\t\t} else if(value.toString().contains(\"(\")) {\r\n\t\t\t\tint begin = value.toString().indexOf(\"(\");\t\t\t\t\r\n\t\t\t\tString content = getParenthesesContent(value.toString(), begin);\r\n\t\t\t\tint end = begin + content.length()+2;\t\t\t\t\t\t\r\n\t\t\t\texpressonValue = calculationEngine(content, macroSplit);\r\n\t\t\t\tvalue.delete(begin, end);\r\n\t\t\t\tvalue.insert(begin, expressonValue);\r\n\t\t\t} \r\n\t\t\tif(prio1.matcher(value).find()) {\r\n\t\t\t\texpressonValue = calculationEngine(value.toString(), microSplit);\r\n\t\t\t} else if(prio0.matcher(value).find()) {\r\n\t\t\t\texpressonValue = calculationEngine(value.toString(), nanoSplit);\r\n\t\t\t} else {\r\n\t\t\t\texpressonValue = Double.valueOf(value.toString().replaceAll(\",\", \".\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(lastOperator != null && !lastOperator.isEmpty()) {\r\n\t\t\t\tresult = calculate(valueA, expressonValue, lastOperator.charAt(0));\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tresult = expressonValue;\r\n\t\t\t}\r\n\t\t\tvalueA = result;\r\n\t\t\tif(parseValue.length > 1) {\r\n\t\t\t\tlastOperator = expression.split(\"\\\\|\")[1];\r\n\t\t\t}\t\t\t\t\t\t\r\n\t\t}\r\n\t\treturn result;\r\n\t\t\r\n\t}", "public String calcWithJs(String mathExpr) throws ScriptException {\r\n\t\tfinal ScriptEngineManager engineManager = new ScriptEngineManager();\r\n\t\tfinal ScriptEngine engine = engineManager.getEngineByName(\"JavaScript\");\r\n\t\t\r\n\t\t// Security for JavaScript to avoid commands injections\r\n\t\t Pattern p = Pattern.compile(\"[a-zA-Z]\");\r\n\t\t Matcher m = p.matcher(mathExpr);\r\n\t\t if(m.find())\r\n\t\t\t throw new ScriptException(\"ERROR Parsing mathExpr, the Expression contains letters\");\r\n\t\ttry {\r\n\t\t\t// Sleep to trigger the log warning\r\n\t\t\tThread.sleep(500);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn engine.eval(mathExpr).toString();\r\n\t}", "public static String math_level2(String line){\n int current_index = 0;\n line = \"+\"+line; //Every element must have a sign before so I add a plus as a sign of the first element.\n while(current_index<line.length() && (line.contains(\"*\") || line.contains(\"/\"))){\n char current_char = line.charAt(current_index);\n if(current_char == '*' || current_char =='/'){\n String first_string = reverser(line.substring(0,current_index));\n if (first_string !=\"\") first_string = reverser(first_string.substring(0,finder(first_string)));\n else first_string = line.substring(0,current_index);\n \n char before_sign = line.charAt(current_index-first_string.length()-1); // Sign before an element has an effect on the result so I'm storing it.\n \n String second_string = line.substring(current_index+1);\n second_string = line.substring(current_index+1,current_index+finder(second_string.substring(1))+2);\n \n boolean is_double_first = first_string.contains(\".\");\n boolean is_second_double = second_string.contains(\".\");\n boolean isdouble = is_double_first || is_second_double;\n\n if(isdouble){\n double number1 = Double.parseDouble(first_string);\n double number2 = Double.parseDouble(second_string);\n double result;\n if(current_char=='*') result = number1*number2;\n else result = number1/number2;\n // I'm using two ternary operations to decide on the sign of the result. If both before sign is a minus and the result is negative, I'm replacing it with result*-1\n line = line.substring(0, current_index-first_string.length()-1)+ ((result<0)?((before_sign=='-')?(\"+\"+(result*-1)):(result+\"\")):(before_sign+\"\"+result)) + line.substring(current_index+second_string.length()+1);\n }\n\n else{\n int number1 = Integer.parseInt(first_string);\n int number2 = Integer.parseInt(second_string);\n int result;\n if(current_char=='*') result = number1*number2;\n else result = number1/number2;\n // Same operation as I do in line 155\n line = line.substring(0, current_index-first_string.length()-1)+ ((result<0)?((before_sign=='-')?(\"+\"+(result*-1)):(result+\"\")):(before_sign+\"\"+result)) + line.substring(current_index+second_string.length()+1);\n\n }\n current_index= current_index-first_string.length();// I'm using index as a cursor and moving it a little left instead of making it zero because this is much faster\n }\n current_index++;\n if(!(line.contains(\"*\") || line.contains(\"/\"))) break;// Breaks the while loop if there are no multiplication or division left.\n }\n return line;\n}", "private void calculate () {\n try {\n char[] expression = expressionView.getText().toString().trim().toCharArray();\n String temp = expressionView.getText().toString().trim();\n for (int i = 0; i < expression.length; i++) {\n if (expression[i] == '\\u00D7')\n expression[i] = '*';\n if (expression[i] == '\\u00f7')\n expression[i] = '/';\n if (expression[i] == '√')\n expression[i] = '²';\n }\n if (expression.length > 0) {\n Balan balan = new Balan();\n double realResult = balan.valueMath(String.copyValueOf(expression));\n int naturalResult;\n String finalResult;\n if (realResult % 1 == 0) {\n naturalResult = (int) Math.round(realResult);\n finalResult = String.valueOf(naturalResult);\n } else\n finalResult = String.valueOf(realResult);\n String error = balan.getError();\n // check error\n if (error != null) {\n mIsError = true;\n resultView.setText(error);\n if (error == \"Error div 0\")\n resultView.setText(\"Math Error\");\n } else { // show result\n expressionView.setText(temp);\n resultView.setText(finalResult);\n }\n }\n } catch (Exception e) {\n Toast.makeText(this,e.toString(),Toast.LENGTH_LONG);\n }\n }", "public MathEval(MathEval oth) {\r\n super();\r\n\r\n constants=new TreeMap<String,Double>(String.CASE_INSENSITIVE_ORDER);\r\n constants.putAll(oth.constants);\r\n\r\n variables=new TreeMap<String,Double>(String.CASE_INSENSITIVE_ORDER);\r\n variables.putAll(oth.variables);\r\n\r\n functions=new TreeMap<String,FunctionHandler>(String.CASE_INSENSITIVE_ORDER);\r\n functions.putAll(oth.functions);\r\n\r\n relaxed=oth.relaxed;\r\n\r\n offset=0;\r\n isConstant=false;\r\n }", "public double calculate(String expression) {\n\t\tString[] inputs = expression.split(\" \");\n\t if(debug) {\n\t\tSystem.out.print(\"Input array: \");\n\t\tfor(String value : inputs) {\n\t\t\tSystem.out.print(value + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t }\t\n\t\t\n\t\t// Go through the string array and pop operators onto the\n\t\t// operators stack and operands onto the the operands stack\n\t\tfor(String value : inputs) {\n\t\t if(debug) System.out.println(\"Evaluating: \" + value);\n\t\t\tif(value.equals(\"*\") || value.equals(\"/\") || value.equals(\"+\") || value.equals(\"-\")) {\n\t\t\t\t// If stack is empty push onto stack\n\t\t\t\tif(operand.empty()) {\n\t\t\t\t\toperand.push(value);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// If new operator is higher than old push onto\n\t\t\t\t// stack\n\t\t\t\telse if(value.equals(\"*\") || value.equals(\"/\")) {\n\t\t\t\t\tString old = (String)operand.peek();\n\t\t\t\t\tif(old.equals(\"*\")) {\n\t\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\t if(debug) {\n\t\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t\t }\n\t\t\t\t\t \ta = a*b;\n\t\t\t\t\t\toperators.push(a);\n\t\t\t\t\t\told = (String)operand.pop();\n\t\t\t\t\t\toperand.push(value);\n\t\t\t\t\t}\n\t\t\t\t\telse if(old.equals(\"/\")) {\n\t\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\t if(debug) {\n\t\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t\t }\n\t\t\t\t\t \ta = b/a;\n\t\t\t\t\t\toperators.push(a);\n\t\t\t\t\t\told = (String)operand.pop();\n\t\t\t\t\t\toperand.push(value);\n\t\t\t\t\t}\n\t\t\t\t\telse operand.push(value);\n\t\t\t\t}\n\n\t\t\t\t// Else pop old operator and evaluate top two\n\t\t\t\t// elements on operand stack then push new\n\t\t\t\t// operator onto stack\n\t\t\t\telse {\n\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\tString old = (String)operand.pop();\n\t\t\t\t if(debug) {\n\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t }\n\t\t\t\t\tif(old.equals(\"*\")) a = a*b;\n\t\t\t\t\telse if(old.equals(\"/\")) a = b/a;\n\t\t\t\t\telse if(old.equals(\"+\")) a = a+b;\n\t\t\t\t\telse a = b-a;\n\t\t\t\t\toperators.push(a);\n\t\t\t\t\toperand.push(value);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Put operators into operators stack\n\t\t\telse {\n\t\t\t try {\n\t\t\t\tDouble num = Double.parseDouble(value);\n\t\t\t\toperators.push(num);\n\t\t\t }\n\t\t\t catch(NumberFormatException e) {\n\t\t\t\t System.out.println(\"NumberFormatException: Something besides a number or operator entered\");\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\t// Finish up everything left over in stack\n\t\tString old;\n\t\tdouble a;\n\t\tdouble b;\n\t\twhile(!operand.empty()) {\n\t\t\told = (String)operand.pop();\n\t\t\ta = (Double)operators.pop();\n\t\t\tb = (Double)operators.pop();\n\t\t\tif(old.equals(\"*\")) a = a*b;\n\t\t\telse if(old.equals(\"/\")) a = b/a;\n\t\t\telse if(old.equals(\"+\")) a = a+b;\n\t\t\telse a = b-a;\n\t\t\toperators.push(a);\n\t\t}\n\t\treturn (Double)operators.peek();\n\t}", "protected Evaluable parseFactor() throws ParsingException {\n if (_token == null) {\n throw makeException(\"Expecting something more at end of expression\");\n }\n\n Evaluable eval = null;\n\n if (_token.type == TokenType.String) {\n eval = new LiteralExpr(_token.text);\n next(false);\n } else if (_token.type == TokenType.Regex) {\n RegexToken t = (RegexToken) _token;\n\n try {\n Pattern pattern = Pattern.compile(_token.text, t.caseInsensitive ? Pattern.CASE_INSENSITIVE : 0);\n eval = new LiteralExpr(pattern);\n next(false);\n } catch (Exception e) {\n throw makeException(\"Bad regular expression (\" + e.getMessage() + \")\");\n }\n } else if (_token.type == TokenType.Number) {\n eval = new LiteralExpr(((NumberToken)_token).value);\n next(false);\n } else if (_token.type == TokenType.Operator && _token.text.equals(\"-\")) { // unary minus?\n next(true);\n\n if (_token != null && _token.type == TokenType.Number) {\n Number n = ((NumberToken)_token).value;\n\n eval = new LiteralExpr(n instanceof Long ? -n.longValue() : -n.doubleValue());\n\n next(false);\n } else {\n throw makeException(\"Bad negative number\");\n }\n } else if (_token.type == TokenType.Identifier) {\n String text = _token.text;\n next(false);\n\n if (_token == null || _token.type != TokenType.Delimiter || !_token.text.equals(\"(\")) {\n eval = \"null\".equals(text) ? new LiteralExpr(null) : new VariableExpr(text);\n } else if( \"PI\".equals(text) ) {\n eval = new LiteralExpr(Math.PI);\n next(false);\n } else {\n Function f = ControlFunctionRegistry.getFunction(text);\n Control c = ControlFunctionRegistry.getControl(text);\n if (f == null && c == null) {\n throw makeException(\"Unknown function or control named \" + text);\n }\n\n next(true); // swallow (\n\n List<Evaluable> args = parseExpressionList(\")\");\n\n if (c != null) {\n Evaluable[] argsA = makeArray(args);\n String errorMessage = c.checkArguments(argsA);\n if (errorMessage != null) {\n throw makeException(errorMessage);\n }\n eval = new ControlCallExpr(argsA, c);\n } else {\n eval = new FunctionCallExpr(makeArray(args), f);\n }\n }\n } else if (_token.type == TokenType.Delimiter && _token.text.equals(\"(\")) {\n next(true);\n\n eval = parseExpression();\n\n if (_token != null && _token.type == TokenType.Delimiter && _token.text.equals(\")\")) {\n next(false);\n } else {\n throw makeException(\"Missing )\");\n }\n } else if (_token.type == TokenType.Delimiter && _token.text.equals(\"[\")) { // [ ... ] array\n next(true); // swallow [\n\n List<Evaluable> args = parseExpressionList(\"]\");\n\n eval = new FunctionCallExpr(makeArray(args), new ArgsToArray());\n } else {\n throw makeException(\"Missing number, string, identifier, regex, or parenthesized expression\");\n }\n\n while (_token != null) {\n if (_token.type == TokenType.Operator && _token.text.equals(\".\")) {\n next(false); // swallow .\n\n if (_token == null || _token.type != TokenType.Identifier) {\n throw makeException(\"Missing function name\");\n }\n\n String identifier = _token.text;\n next(false);\n\n if (_token != null && _token.type == TokenType.Delimiter && _token.text.equals(\"(\")) {\n next(true); // swallow (\n\n Function f = ControlFunctionRegistry.getFunction(identifier);\n if (f == null) {\n throw makeException(\"Unknown function \" + identifier);\n }\n\n List<Evaluable> args = parseExpressionList(\")\");\n args.add(0, eval);\n\n eval = new FunctionCallExpr(makeArray(args), f);\n } else {\n eval = new FieldAccessorExpr(eval, identifier);\n }\n } else if (_token.type == TokenType.Delimiter && _token.text.equals(\"[\")) {\n next(true); // swallow [\n\n List<Evaluable> args = parseExpressionList(\"]\");\n args.add(0, eval);\n\n eval = new FunctionCallExpr(makeArray(args), ControlFunctionRegistry.getFunction(\"get\"));\n } else {\n break;\n }\n }\n\n return eval;\n }", "public MathContext getMathContext();", "private double _doFunction(final double input1, final double input2) {\r\n double result;\r\n switch (_function) {\r\n case _EXP:\r\n result = Math.exp(input1);\r\n break;\r\n case _LOG:\r\n result = Math.log(input1);\r\n break;\r\n case _MODULO:\r\n result = input1 % input2;\r\n break;\r\n case _SIGN:\r\n if (input1 > 0) {\r\n result = 1.0;\r\n } else if (input1 < 0) {\r\n result = -1.0;\r\n } else {\r\n result = 0.0;\r\n }\r\n break;\r\n case _SQUARE:\r\n result = input1 * input1;\r\n break;\r\n case _SQRT:\r\n result = Math.sqrt(input1);\r\n break;\r\n default:\r\n throw new InternalErrorException(\"Invalid value for _function private variable. \"\r\n + \"MathFunction actor (\" + getFullName() + \")\" + \" on function type \" + _function);\r\n }\r\n return result;\r\n }", "public Object eval (Object expression);", "private static String calculate(String entStr) {\n Stack<Double> dStack = new Stack<>();\n Stack<Character> chStack = new Stack<>();\n int minus = 1;\n int priority;\n double operand;\n String strOperand = \"\";\n\n for (int i = 0; i < entStr.length(); i++) {\n priority = getPriority(entStr.charAt(i));\n if ((entStr.charAt(i) == '-' && (i == 0 || entStr.charAt(i - 1) == '('))) {\n minus = -1;\n } else if (priority == 0) {\n while (getPriority(entStr.charAt(i)) == 0) {\n strOperand += entStr.charAt(i);\n i++;\n if (i == entStr.length()) break;\n }\n try {\n operand = Double.parseDouble(strOperand) * minus;\n dStack.push(operand);\n strOperand = \"\";\n minus = 1;\n //System.out.println(\"operand= \" + operand);\n } catch (NumberFormatException e) {\n return e.getMessage();\n }\n i--;\n } else if (priority > 1) {\n if (chStack.empty() || priority > getPriority(chStack.peek()) || chStack.peek() == '(') {\n chStack.push(entStr.charAt(i));\n } else {\n if (dStack.peek() == 0 && chStack.peek() == '/') return \"ERROR: Dividing by zero !!!\";\n else {\n dStack.push(mathAction(dStack.pop(), dStack.pop(), chStack.pop()));\n //System.out.println(\"res= \" + dStack.peek());\n i--;\n }\n }\n } else if (entStr.charAt(i) == '(') {\n chStack.push('(');\n } else if (entStr.charAt(i) == ')') {\n if (chStack.peek() == '(') chStack.pop();\n else {\n if (dStack.peek() == 0 && chStack.peek() == '/') return \"ERROR: Dividing by zero !!!\";\n else {\n dStack.push(mathAction(dStack.pop(), dStack.pop(), chStack.pop()));\n //System.out.println(\"res= \" + dStack.peek());\n i--;\n }\n }\n }\n }\n while (!chStack.empty()) {\n if (dStack.peek() == 0 && chStack.peek() == '/') {\n return \"ERROR: Dividing by zero !!!\";\n } else {\n dStack.push(mathAction(dStack.pop(), dStack.pop(), chStack.pop()));\n }\n }\n //double res = dStack.pop();\n //System.out.println(\"dSteck is emty = \" + dStack.empty());\n //System.out.println(\"chSteck is emty = \" + chStack.empty());\n return String.valueOf(dStack.pop());\n }", "@Override\r\n\tpublic int evaluate(String expression) {\r\n\t\tString e =expression;\r\n\t\tfloat result=0; //the returned result \r\n\t\tif(e.length()==2) {\r\n\t\t\te = removespaces(e);\r\n\t\t\tint z =Integer.parseInt(e);\r\n\t\t\treturn z;\r\n\t\t}\r\n\t\tfor(int i =0 ;i<expression.length();i++){\r\n\t\t\tif(Character.isLetter(e.charAt(i))){\r\n\t\t\t\tthrow new RuntimeException(\"You Can't evaluate letters\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i =0 ;i<expression.length()-1;i++) {\r\n\t\t\twhile(e.charAt(i) != '+' &&e.charAt(i) != '/' &&e.charAt(i) != '-' &&e.charAt(i) != '*' ) {\r\n\t\t\t\tint j = 0;\r\n\t\t\t\twhile(e.charAt(i) != ' ' ) {\r\n\t\t\t\t\tj++;\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\tif(j>0) {\r\n\t\t\t\t\tString k = e.substring(i-j, i);\r\n\t\t\t\t\tk = removespaces(k);\r\n\t\t\t\t\tfloat z = Integer.parseInt(k);\r\n\t\t\t\t\topr.push(z);}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\tif(e.charAt(i)== '+') {\r\n\t\t\t\tfloat x = (float)opr.pop();\r\n\t\t\t\tresult = (float)opr.pop();\r\n\t\t\t\tresult = result + x;\r\n\t\t\t\topr.push(result);\r\n\t\t\t}\r\n\t\t\telse if(e.charAt(i)== '*') {\r\n\t\t\t\tfloat x = (float)opr.pop();\r\n\t\t\t\tresult = (float)opr.pop();\r\n\t\t\t\tresult = result * x;\r\n\t\t\t\topr.push(result);\r\n\t\t\t}\r\n\t\t\telse if(e.charAt(i)== '-') {\r\n\t\t\t\tfloat x = (float)opr.pop();\r\n\t\t\t\tresult = (float)opr.pop();\r\n\t\t\t\tresult = result - x;\r\n\t\t\t\topr.push(result);\r\n\t\t\t}\r\n\t\t\telse if(e.charAt(i)== '/') {\r\n\t\t\t\tfloat x = (float)opr.pop();\r\n\t\t\t\tresult = (float)opr.pop();\r\n\t\t\t\tresult = result / x;\r\n\t\t\t\topr.push(result);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn (int)result;\r\n\r\n\t}", "public static void main(String[] args) {\n MathOp add=new MathOp() {\n \t \n public int operation(int x, int y)\n {\n \t return x+y;\n }\n\t };\n\t System.out.println(add.operation(1, 2));\n \n\t MathOp sub=new MathOp() {\n \t \n\t public int operation(int x, int y)\n\t {\n\t \t return x-y;\n\t }\n\t\t };\n\t\t System.out.println(sub.operation(1, 2));\n\t \n\t\t MathOp mul=new MathOp() {\n\t \t \n\t\t public int operation(int x, int y)\n\t\t {\n\t\t \t return x*y;\n\t\t }\n\t\t\t };\n\t\t\t System.out.println(mul.operation(1, 2));\n\t\t \n\t\t\t MathOp div=new MathOp() {\n\t\t \t \n\t\t\t public int operation(int x, int y)\n\t\t\t { \n\t\t\t \t return x/y;\n\t\t\t }\n\t\t\t\t };\n\t\t\t\t System.out.println(div.operation(1, 2));\n\t\t\t \n}", "private String compute(String equ,String op)\n {\n String equation = equ;\n Pattern mdPattern = Pattern.compile(\"(\\\\d+([.]\\\\d+)*)(([\"+op+\"]))(\\\\d+([.]\\\\d+)*)\");\n Matcher matcher\t\t= mdPattern.matcher(equation);\n while(matcher.find())\n {\n String[] arr = null;\n double ans = 0;\n String eq = matcher.group(0);//get form x*y\n if(eq.contains(op))\n {\n arr = eq.split(\"\\\\\"+op);//make arr\n if(op.equals(\"*\"))\n ans = Double.valueOf(arr[0])*Double.valueOf(arr[1]);//compute\n if(op.equals(\"/\"))\n ans = Double.valueOf(arr[0])/Double.valueOf(arr[1]);//compute\n if(op.equals(\"+\"))\n ans = Double.valueOf(arr[0])+Double.valueOf(arr[1]);//compute\n if(op.equals(\"-\"))\n ans = Double.valueOf(arr[0])-Double.valueOf(arr[1]);//compute\n }\n\n equation = matcher.replaceFirst(String.valueOf(ans));//replace in equation\n matcher = mdPattern.matcher(equation);//look for more matches\n }\n return equation;\n }", "public static String calculateStringEquation(String equation){\r\n //\"(17*(8-7/7))^2+7-3*-6*s90\"\r\n //Validity Check\r\n String numberSymbols = \"-.0123456789\";\r\n String operators = \"*/+^√sdfzcv\";\r\n \r\n //Replace alternate symbols\r\n equation = equation.replace(\",\", \".\");\r\n equation = equation.replace(\"x\", \"*\");\r\n equation = equation.replace(\"%\", \"/100\");\r\n equation = equation.replace(\"\\\\\", \"/\");\r\n \r\n //Insert + in front of -\r\n int c = 1;\r\n String newEquation = \"\" + equation.charAt(0);//Doesnt need to add + to begin\r\n while (c < equation.length()) {\r\n if (equation.charAt(c) == '-' && !operators.contains(\"\"+equation.charAt(c-1))) {\r\n newEquation += \"+\";\r\n }\r\n newEquation += equation.charAt(c);\r\n c++;\r\n }\r\n equation = newEquation;\r\n \r\n\r\n\r\n\r\n //Convert everything to double (eg 2 -> 2.0)\r\n c = 0;\r\n newEquation = \"\";\r\n boolean inNum = false;\r\n while (c < equation.length()) {\r\n if (numberSymbols.indexOf(equation.charAt(c)) != -1) {\r\n if (!inNum) {//Doesnt re read when going over more difficult numbers eg 2342\r\n newEquation += findNextNumber(equation, c-1);//opIndex is the index before next\r\n inNum = true;\r\n }\r\n }else{\r\n inNum = false;\r\n newEquation += equation.charAt(c);\r\n }\r\n c++;\r\n }\r\n equation = newEquation;\r\n //Brackets\r\n while(equation.contains(\"(\") || equation.contains(\")\")) {\r\n int openIndex = equation.indexOf(\"(\");\r\n int openBrackets = 1;\r\n int closedBrackets = 0;\r\n int closeIndex = openIndex + 1;\r\n\r\n while (openBrackets != closedBrackets) {\r\n if (equation.charAt(closeIndex) == '(') {\r\n openBrackets++;\r\n }\r\n if (equation.charAt(closeIndex) == ')') {\r\n closedBrackets++;\r\n }\r\n closeIndex++;\r\n }\r\n\r\n //Rewrite equation and sub in new value\r\n newEquation = \"\";//Reused\r\n if (openIndex != 0) {\r\n newEquation += equation.substring(0, openIndex);\r\n }\r\n newEquation += calculateStringEquation(equation.substring(openIndex+1, closeIndex-1));\r\n if (closeIndex != equation.length()-1) {\r\n newEquation += equation.substring(closeIndex);\r\n }\r\n equation = newEquation;\r\n }\r\n \r\n //Check order\r\n boolean test = checkStringFormula(equation);\r\n if (checkStringFormula(equation)) {\r\n //Trig (Typically in brackets)\r\n while (equation.contains(\"s\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"s\"));\r\n equation = equation.replace(\"s\" + num1, \"\" + (Math.sin(Math.toRadians(num1))));\r\n }\r\n while (equation.contains(\"d\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"d\"));\r\n equation = equation.replace(\"d\" + num1, \"\" + (Math.cos(Math.toRadians(num1))));\r\n }\r\n while (equation.contains(\"f\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"f\"));\r\n equation = equation.replace(\"f\" + num1, \"\" + (Math.tan(Math.toRadians(num1))));\r\n }\r\n while (equation.contains(\"z\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"z\"));\r\n equation = equation.replace(\"z\" + num1, \"\" + Math.toDegrees(Math.asin(num1)));\r\n }\r\n while (equation.contains(\"c\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"c\"));\r\n equation = equation.replace(\"c\" + num1, \"\" + Math.toDegrees(Math.acos(num1)));\r\n }\r\n while (equation.contains(\"v\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"v\"));\r\n equation = equation.replace(\"v\" + num1, \"\" + Math.toDegrees(Math.atan(num1)));\r\n }\r\n //Exponents\r\n while (equation.contains(\"^\")) {\r\n int opIndex = equation.indexOf(\"^\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans = num1;//Need num1 for replace\r\n\r\n if (num2 == 0) {\r\n ans = 1;\r\n }else{\r\n for (int i = 0; i < num2-1; i++) {\r\n ans*=ans;\r\n }\r\n if (num2 < 0) {\r\n ans = 1/ans;\r\n }\r\n }\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Roots\r\n while (equation.contains(\"√\")) {\r\n int opIndex = equation.indexOf(\"√\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans = num1;//Need num1 for replace\r\n\r\n if (num2 == 0) {\r\n throw new ArithmeticException(\"Math error\");\r\n }else{\r\n ans = Math.pow(num2, 1/num1);\r\n }\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Division\r\n while (equation.contains(\"/\")) {\r\n int opIndex = equation.indexOf(\"/\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans = num1;//Need num1 for replace\r\n\r\n if (num2 == 0) {\r\n throw new java.lang.ArithmeticException();\r\n }else{\r\n ans = num1/num2;\r\n }\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Multiplication\r\n while (equation.contains(\"*\")) {\r\n int opIndex = equation.indexOf(\"*\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans;//Need num1 for replace\r\n\r\n ans = num1*num2;\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Addition\r\n while (equation.contains(\"+\")) {\r\n int opIndex = equation.indexOf(\"+\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans;//Need num1 for replace\r\n\r\n ans = num1+num2;\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n\r\n return equation;\r\n }else{\r\n throw new AssertionError(\"Incorrect Format\");\r\n }\r\n }", "public Equation computeEquation(Equation equation) {\n float result;\n List<MathOperator> mathOperators = equation.getMathOperators();\n List<Float> modifiers = equation.getModifierNumbers();\n Float baseNumber = equation.getBaseNumber();\n\n if (mathOperators.size() == 0 && modifiers.size() == 0) {\n result = baseNumber;\n equation.setResult(result);\n equation.setStringRepresentation();\n return equation;\n } else {\n try {\n result = baseNumber;\n for (int i = 0; i < mathOperators.size(); i++) {\n MathOperator o = mathOperators.get(i);\n switch (o) {\n case ADD:\n result = addNumbers(result, modifiers.get(i));\n break;\n case SUBTRACT:\n result = subtract(result, modifiers.get(i));\n break;\n case MULTIPLY:\n result = multiply(result, modifiers.get(i));\n break;\n case DIVIDE:\n try {\n result = divide(result, modifiers.get(i));\n break;\n } catch (ArithmeticException e) {\n System.out.println(Warning.DIV_BY_ZERO_ERROR);\n result = Float.parseFloat(null);\n }\n case POWER:\n result = power(result, modifiers.get(i));\n break;\n }\n }\n\n equation.setStringRepresentation();\n equation.setResult(result);\n return equation;\n } catch (IndexOutOfBoundsException e) {\n System.out.println(Warning.INDEX_OUT_OF_BOUND);\n }\n }\n return null;\n }", "private void xSquared()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.squared ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}", "public Expression simplify() {\n Expression exp = this.getExp().simplify();\n if (exp.getVariables().isEmpty()) {\n try {\n Num n = new Num(this.evaluate());\n return n;\n } catch (Exception e) {\n int checkStyleFix = 0;\n }\n }\n Cos s = new Cos(exp);\n return s;\n }", "@Override\n public Expression simplifyMore() {\n Expression left = super.getLeft();\n Expression right = super.getRight();\n\n // x * x -> x^2\n if (left.toString().equals(right.toString())) {\n return new Pow(left, 2);\n }\n\n // ((2.0 * x) * (x * 3.0)) -> 6x^2\n if (left instanceof Mult && right instanceof Mult) {\n if (((Mult) left).getRight().toString().equals(((Mult) right).getLeft().toString())) {\n Expression exp = new Mult(new Mult(((Mult) left).getLeft(), ((Mult) right).getRight()),\n new Mult(((Mult) left).getRight(), ((Mult) right).getLeft()));\n exp.turnBonusOn();\n return exp.simplify();\n }\n }\n\n // 2x * 2x -> 4x^2\n if (left instanceof Mult && right instanceof Mult) {\n if (((Mult) left).getRight().toString().equals(((Mult) right).getRight().toString())) {\n return new Mult(new Mult(((Mult) left).getLeft(), ((Mult) right).getLeft()).simplify(),\n new Pow(((Mult) left).getRight(), 2)).simplify();\n }\n }\n\n // 2x * 2y -> 4xy\n if (left instanceof Mult && right instanceof Mult) {\n return new Mult(new Mult(((Mult) left).getLeft(), ((Mult) right).getLeft()).simplify(),\n new Mult(((Mult) left).getRight(), ((Mult) right).getRight())).simplify();\n }\n\n // sin(x) * cos(x) -> 0.5 * sin(2x)\n if (right instanceof Sin && left instanceof Cos) {\n Expression exp = new Mult(0.5, new Sin(new Mult(2, ((Sin) right).getExpression())));\n exp.turnBonusOn();\n return exp.simplify();\n }\n\n // cos(x) * sin(x) -> 0.5 * sin(2x)\n if (right instanceof Cos && left instanceof Sin) {\n Expression exp = new Sin(new Mult(2, ((Cos) right).getExpression()));\n exp.turnBonusOn();\n return exp.simplify();\n }\n\n // log(x, y) * 2 -> 2 * log(x, y)\n if (left instanceof Sin || left instanceof Cos || left instanceof Log) {\n Expression exp = new Mult(right, left);\n exp.turnBonusOn();\n return exp.simplify();\n }\n\n // x^2 * x^3 -> x^5\n if (left instanceof Pow && right instanceof Pow) {\n if (((Pow) left).getLeft().toString().equals(((Pow) right).getLeft().toString())) {\n Expression exp = new Pow(((Pow) left).getLeft(),\n new Plus(((Pow) left).getRight(), ((Pow) right).getRight()));\n exp.turnBonusOn();\n return exp.simplify();\n }\n }\n\n // x^2 * x -> x^3\n if (left instanceof Pow) {\n if (((Pow) left).getLeft().toString().equals(right.toString())) {\n Expression exp = new Pow(((Pow) left).getLeft(), new Plus(((Pow) left).getRight(), 1));\n exp.turnBonusOn();\n return exp.simplify();\n }\n }\n\n return this;\n }", "@Test\n @ExcludeIn(DERBY)\n public void math3() {\n // 1.0 + 2.0 * 3.0 - 4.0 / 5.0 + 6.0 % 3.0\n NumberTemplate<Double> one = Expressions.numberTemplate(Double.class, \"1.0\");\n NumberTemplate<Double> two = Expressions.numberTemplate(Double.class, \"2.0\");\n NumberTemplate<Double> three = Expressions.numberTemplate(Double.class, \"3.0\");\n NumberTemplate<Double> four = Expressions.numberTemplate(Double.class, \"4.0\");\n NumberTemplate<Double> five = Expressions.numberTemplate(Double.class, \"5.0\");\n NumberTemplate<Double> six = Expressions.numberTemplate(Double.class, \"6.0\");\n Double num = query().select(one.add(two.multiply(three)).subtract(four.divide(five)).add(six.mod(three))).fetchFirst();\n Assert.assertEquals(6.2, num, 0.001);\n }", "public Object eval(String expression) throws Exception;", "double eval();", "public Node function()\r\n\t{\r\n\t\tint index = lexer.getPosition();\r\n\t\tif(lexer.getToken()==Lexer.Token.IDENTIFIER)\r\n\t\t{\r\n\t\t\tString name = lexer.getString();\r\n\t\t\tif(lexer.getToken()==Lexer.Token.LEFT_BRACKETS)\r\n\t\t\t{\r\n\t\t\t\tNode exp = expression();\r\n\t\t\t\tif(exp!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(lexer.getToken()==Lexer.Token.RIGHT_BRACKETS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(name.equals(\"sin\")) return new Sin(exp);\r\n\t\t\t\t\t\tif(name.equals(\"cos\")) return new Cos(exp);\r\n\t\t\t\t\t\tif(name.equals(\"tan\")) return new Tan(exp);\r\n\t\t\t\t\t\tif(name.equals(\"log\")) return new Log(exp);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.setPosition(index);\r\n\t\treturn null;\r\n\t}", "public static double eval(final String str) {\n return new Object() {\n int pos = -1, ch;\n\n void nextChar() {\n ch = (++pos < str.length()) ? str.charAt(pos) : -1;\n }\n\n boolean eat(int charToEat) {\n while (ch == ' ') nextChar();\n if (ch == charToEat) {\n nextChar();\n return true;\n }\n return false;\n }\n\n double parse() {\n nextChar();\n double x = parseExpression();\n if (pos < str.length()) throw new RuntimeException(\"Unexpected: \" + (char)ch);\n return x;\n }\n\n // Grammar:\n // expression = term | expression `+` term | expression `-` term\n // term = factor | term `*` factor | term `/` factor\n // factor = `+` factor | `-` factor | `(` expression `)`\n // | number | functionName factor | factor `^` factor\n\n double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }\n\n double parseTerm() {\n double x = parseFactor();\n for (;;) {\n if (eat('*')) x *= parseFactor(); // multiplication\n else if (eat('/')) x /= parseFactor(); // division\n else return x;\n }\n }\n\n double parseFactor() {\n if (eat('+')) return parseFactor(); // unary plus\n if (eat('-')) return -parseFactor(); // unary minus\n\n double x;\n int startPos = this.pos;\n if (eat('(')) { // parentheses\n x = parseExpression();\n eat(')');\n } else if ((ch >= '0' && ch <= '9') || ch == '.') { // numbers\n while ((ch >= '0' && ch <= '9') || ch == '.') nextChar();\n x = Double.parseDouble(str.substring(startPos, this.pos));\n } else if (ch >= 'a' && ch <= 'z') { // functions\n while (ch >= 'a' && ch <= 'z') nextChar();\n String func = str.substring(startPos, this.pos);\n x = parseFactor();\n if (func.equals(\"sqrt\")) x = Math.sqrt(x);\n else if (func.equals(\"sin\")) x = Math.sin(Math.toRadians(x));\n else if (func.equals(\"cos\")) x = Math.cos(Math.toRadians(x));\n else if (func.equals(\"tan\")) x = Math.tan(Math.toRadians(x));\n else throw new RuntimeException(\"Unknown function: \" + func);\n } else {\n throw new RuntimeException(\"Unexpected: \" + (char)ch);\n }\n\n if (eat('^')) x = Math.pow(x, parseFactor()); // exponentiation\n\n return x;\n }\n }.parse();\n }", "@ReflectiveMethod(name = \"m\", types = {})\n public float m(){\n return (float) NMSWrapper.getInstance().exec(nmsObject);\n }", "public MathObject apply(MathObject o) {\r\n\tif (o instanceof Complex) {\r\n\t double b = ((Complex)o).re();\r\n\t String strRx= new String(\"[cos(\"+b+\"/2) i*sin(\"+b+\"/2), i*sin(\"+b+ \"/2) cos(\"+b+\"/2)]\");\r\n\t Matrix Rx = Matrix.parseMatrix(strRx);\r\n\t return Rx;\r\n\t}\r\n\tLOG.LOG(0, toString() + \" not defined for argument\");\r\n\treturn null;\r\n }", "@Override\n public void visit(CalcExpr node) {\n }", "public abstract Object eval();", "public abstract double calcular();", "public static void solve(String question)\n\t{\n\t\t\n\t\tint add_function = 0;\n\t\tint sub_function = 0;\n\t\t\n\t\tString string_alpha = find_a(question); //finds the value of first input including x\n\t\tString string_beta = find_b(question); //finds the value of second input including x\n\t\t\n\t\tint var_alpha = find_a_num(question); //finds value as integer not including x, of first function\n\t\tint var_beta = find_b_num(question); //finds value as integer not including x, of second function\n\t\t\n\t\tSystem.out.println((find_par(2,question) + find_par(3,question)));\n\t\t\n\t\tString function_1 = function_1(question); //finds just the trig operator of the first function only used to check what type of equation\n\t\tString function_2 = function_2(question); //finds just the trig operator of the second function\n\t\t\n\t\t//check to make sure question is valid if not will start over\n\t\tif (!((function_1.equalsIgnoreCase(\"sin\") && function_1.equalsIgnoreCase(\"cos\") && function_1.equalsIgnoreCase(\"tan\")) || (function_2.equalsIgnoreCase(\"sin\") || function_2.equalsIgnoreCase(\"cos\") || function_2.equalsIgnoreCase(\"tan\"))))\n\t\t{\n\t\t\terror();\n\t\t}\n\t\t\n\t\t//checking to see what equation to use\n\t\t\n\t\tif (function_1.equalsIgnoreCase(\"sin\") && function_2.equalsIgnoreCase(\"sin\"))\n\t\t{\n\t\t\t\n\t\t\tsin_sin(string_alpha,string_beta,var_alpha,var_beta);\n\t\t\t/*System.out.println(\"Step 1: (1/2)[(cos(\" + string_alpha + \"-\" + string_beta + \")) - (cos(\" + string_alpha + \"+\" + string_beta +\"))]\"); //prints first step\n\t\t\t\n\t\t\tadd_function = var_alpha + var_beta; //adds the two values as integer\n\t\t\tsub_function = var_alpha - var_beta;\t//substracts the two values as integers\n\t\t\t\n\t\t\tString string_alpha2 = add_function +\"x\"; //reasigns string including x after substracting two values\n\t\t\tString string_beta2 = sub_function +\"x\";\t//reasigns string including x after substracting two values\n\n\t\t\tSystem.out.println(\"\\nStep 2: (1/2)[cos(\" + string_beta2 + \") - cos(\" + string_alpha2 + \")]\"); // uses x a literal instead of from string because they are always there and substracts both halfs\n\t\t\t\n\t\t\tSystem.out.println(\"\\nStep 3: (1/2)cos(\" + string_beta2 + \") - (1/2)cos(\" + string_alpha2 + \")\");\n\t\t\t\n\t\t\tfinished();*/\n\t\t\t\n\t\t}\n\t\t\n\t\tif (function_1.equalsIgnoreCase(\"sin\") && function_2.equalsIgnoreCase(\"cos\"))\n\t\t{\n\t\t\tSystem.out.println(\"Step 1: (1/2)[(cos(\" + string_alpha + \"+\" + string_beta + \")) - (cos(\" + string_alpha + \"-\" + string_beta +\"))]\\t\\tenter values into equation\"); //prints first step\n\t\t\t\n\t\t\tadd_function = var_alpha + var_beta; //adds the two values as integer\n\t\t\tsub_function = var_alpha - var_beta;\t//substracts the two values as integers\n\t\t\t\n\t\t\tString string_alpha2 = add_function +\"x\"; //reasigns string including x after substracting two values\n\t\t\tString string_beta2 = sub_function +\"x\";\t//reasigns string including x after substracting two values\n\n\t\t\tSystem.out.println(\"\\nStep 2: (1/2)[cos(\" + string_alpha2 + \") + cos(\" + string_beta2 + \")]\\t\\tsimplify values\"); // uses x a literal instead of from string because they are always there and substracts both halfs\n\t\t\t\n\t\t\tSystem.out.println(\"\\nStep 3: (1/2)cos(\" + string_alpha2 + \") + (1/2)cos(\" + string_beta2 + \") t\\tdistribute 1/2\");\n\t\t\t\n\t\t\tfinished();\n\t\t\t\n\t\t}\n\t\t//not done\n\t\tif (function_1.equalsIgnoreCase(\"cos\") && function_2.equalsIgnoreCase(\"cos\"))\n\t\t{\n\t\t\tSystem.out.println(\"Step 1: (1/2)[(cos(\" + string_alpha + \"+\" + string_beta + \")) - (cos(\" + string_alpha + \"-\" + string_beta +\"))]\\t\\tenter values into equation\"); //prints first step\n\t\t\t\n\t\t\tadd_function = var_alpha + var_beta; //adds the two values as integer\n\t\t\tsub_function = var_alpha - var_beta;\t//substracts the two values as integers\n\t\t\t\n\t\t\tString string_alpha2 = add_function +\"x\"; //reasigns string including x after substracting two values\n\t\t\tString string_beta2 = sub_function +\"x\";\t//reasigns string including x after substracting two values\n\n\t\t\tSystem.out.println(\"\\nStep 2: (1/2)[cos(\" + string_alpha2 + \") + cos(\" + string_beta2 + \")]\\t\\tsimplify values\"); // uses x a literal instead of from string because they are always there and substracts both halfs\n\t\t\t\n\t\t\tSystem.out.println(\"\\nStep 3: (1/2)cos(\" + string_alpha2 + \") + (1/2)cos(\" + string_beta2 + \") t\\tdistribute 1/2\");\n\t\t\t\n\t\t\tfinished();\n\t\t\t\n\t\t}\n\t\t\n\t\t////////////\n\t\t//System.out.println(function_1 + \" \" + function_2);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//find_b(question);\n\t}", "public AverageMathFunction (MathFunction... func) {\n if (func == null)\n throw new NullPointerException();\n this.func = func.clone ();\n }", "public String evaluate(String statement) {\n // TODO: Implement the logic here\n\n if (statement == null | statement == \"\"){\n return null;\n }\n\n String addition = \"+\";\n String substraction = \"-\";\n String multiplication = \"*\";\n String division = \"/\";\n String leftbracket = \"(\";\n String rightbracket = \")\";\n\n Stack<String> temporaryStack = new Stack<>();\n Stack<String> inputStack = new Stack<>();\n Stack<String> outputStack = new Stack<>();\n Stack<String> stackOperators = new Stack<>();\n Stack<String> reverseStack = new Stack<>();\n Stack<Double> computingStack = new Stack<>();\n\n String crutch = \"crutch\";\n stackOperators.push(crutch);\n inputStack.push(crutch);\n\n Double leftNumber;\n Double rightNumber;\n Double outResult;\n int stackCounter = 1;\n int reverseCounter = 0;\n\n String solution;\n\n if (statement.contains(\",\") | statement.contains(\"..\") | statement.contains(\"//\")| statement.contains(\"**\") | statement.contains(\"++\") |\n statement.contains(\"--\")) {\n return null;\n }\n\n//преобразование выражения в обратную польскую нотацию\n StringTokenizer stTok = new StringTokenizer(statement, \"+-*/()\", true);\n while (stTok.hasMoreTokens()) {\n temporaryStack.push(stTok.nextToken());\n stackCounter++;\n }\n while (!temporaryStack.isEmpty()){\n inputStack.push(temporaryStack.peek());\n temporaryStack.pop();\n }\n\n for (int i=1; i<stackCounter; i++){\n if (Character.isDigit(inputStack.peek().charAt(0))){\n outputStack.push(inputStack.peek());\n inputStack.pop();\n }\n else if (stackOperators.peek().equals(crutch) && (inputStack.peek().equals(addition) |\n inputStack.peek().equals(substraction) | inputStack.peek().equals(multiplication) |\n inputStack.peek().equals(division))){\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(addition) | inputStack.peek().equals(substraction)){\n while (stackOperators.peek().equals(addition) | stackOperators.peek().equals(substraction) |\n stackOperators.peek().equals(multiplication) | stackOperators.peek().equals(division)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(multiplication) | inputStack.peek().equals(division)){\n while (stackOperators.peek().equals(multiplication) | stackOperators.peek().equals(division)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(leftbracket)){\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(rightbracket)){\n while (!stackOperators.peek().equals(leftbracket)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n if (stackOperators.peek().equals(crutch)){\n return null;\n }\n inputStack.pop();\n stackOperators.pop();\n }\n }\n while (!stackOperators.peek().equals(crutch)){\n if (stackOperators.peek().equals(leftbracket) | stackOperators.peek().equals(rightbracket)){\n return null;\n } else {\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n\n }\n while (!outputStack.isEmpty()){\n reverseStack.push(outputStack.peek());\n outputStack.pop();\n reverseCounter++;\n }\n\n//вычисление выражения\n for (int i=0; i<reverseCounter; i++){\n if (Character.isDigit(reverseStack.peek().charAt(0))) {\n computingStack.push(Double.parseDouble(reverseStack.peek()));\n }\n else if (reverseStack.peek().equals(addition)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber + rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(substraction)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber - rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(multiplication)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber * rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(division)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n if (rightNumber!=0){\n outResult = leftNumber / rightNumber;\n computingStack.push(outResult);\n } else\n return null;\n }\n reverseStack.pop();\n }\n\n DecimalFormat myFormatter = new DecimalFormat(\"#.####\");\n String format = myFormatter.format(computingStack.peek());\n\n solution = format.replace( ',', '.');\n\n return solution;\n }", "@Test\n\tpublic void test3() {\n\t\tFormula formula = new FormulaImpl(); \n\t\tdouble result = formula.calculate(100);\n\t\tSystem.out.println(result);\n\t\t\n\t\t// accessed from formula instance including anonymous objects.\n\t\tresult = new Formula() {\n\t\t\t@Override\n\t\t\tpublic double calculate(int n) {\n\t\t\t\treturn n * 2;\n\t\t\t}\n\t\t}.sqrt(100);\n\t\t\n\t\tSystem.out.println(result);\n\t\t\n\t}", "private IMathExpr parseMathElement(String expr)\r\n throws InvalidMathExprException {\r\n try {\r\n double val = Double.parseDouble(expr);\r\n \r\n return new MathExprConst(val);\r\n } catch (NumberFormatException ex) {\r\n throw new InvalidMathExprException(\"Invalid syntax, \"\r\n + \"unknown character: \" + expr);\r\n }\r\n }", "public double operation( String a, String b, String o){\n switch (o){\n case \"+\": return Double.valueOf(a) + Double.valueOf(b);\n case \"-\": return Double.valueOf(a) - Double.valueOf(b);\n case \"x\": return Double.valueOf(a) * Double.valueOf(b);\n case \"÷\":try{\n return Double.valueOf(a) / Double.valueOf(b);\n }catch (Exception e){\n Log.e(\"calc\",e.getMessage());\n }\n\n default: return -1;\n }\n }", "@Override\n\tpublic float somar(float op1, float op2) {\n\t\treturn op1 + op2;\n\t}", "private static double operate(Double a, Double b, String op){\n\t switch (op){\r\n\t case \"+\": return Double.valueOf(a) + Double.valueOf(b);\r\n\t case \"-\": return Double.valueOf(a) - Double.valueOf(b);\r\n\t case \"*\": return Double.valueOf(a) * Double.valueOf(b);\r\n\t case \"/\": try{\r\n\t return Double.valueOf(a) / Double.valueOf(b);\r\n\t }catch (Exception e){\r\n\t e.getMessage();\r\n\t }\r\n\t default: return -1;\r\n\t }\r\n\t }", "public static void main(String[] args) {\n\n System.out.println(\"119.1+(28.2+37.3*(46.4-55.5)-4.6+(3/2)+1) = \" + evaluateExpression(\"119.1 + ( 28.2 + 37.3 * ( 46.4 - 55.5 ) - 4.6 + ( 3 / 2 ) + 1 )\"));\n\n}", "public MathEquation(char opCode) {\n this.opCode = opCode;\n }", "public interface Unary extends Expr \n{\n /** Unary expression operator. */\n public static enum Operator {\n BIT_NOT (\"~\", true),\n NEG (\"-\", true),\n POST_INC (\"++\", false),\n POST_DEC (\"--\", false),\n PRE_INC (\"++\", true),\n PRE_DEC (\"--\", true),\n POS (\"+\", true),\n NOT (\"!\", true),\n CARET (\"^\", true),\n BAR (\"|\", true),\n AMPERSAND(\"&\", true),\n STAR (\"*\", true),\n SLASH (\"/\", true),\n PERCENT (\"%\", true);\n\n protected boolean prefix;\n protected String name;\n\n private Operator(String name, boolean prefix) {\n this.name = name;\n this.prefix = prefix;\n }\n\n /** Returns true of the operator is a prefix operator, false if\n * postfix. */\n public boolean isPrefix() { return prefix; }\n\n @Override public String toString() { return name; }\n }\n\n public static final Operator BIT_NOT = Operator.BIT_NOT;\n public static final Operator NEG = Operator.NEG;\n public static final Operator POST_INC = Operator.POST_INC;\n public static final Operator POST_DEC = Operator.POST_DEC;\n public static final Operator PRE_INC = Operator.PRE_INC;\n public static final Operator PRE_DEC = Operator.PRE_DEC;\n public static final Operator POS = Operator.POS;\n public static final Operator NOT = Operator.NOT;\n public static final Operator CARET = Operator.CARET;\n public static final Operator BAR = Operator.BAR;\n public static final Operator AMPERSAND = Operator.AMPERSAND;\n public static final Operator STAR = Operator.STAR;\n public static final Operator SLASH = Operator.SLASH;\n public static final Operator PERCENT = Operator.PERCENT;\n\n /** The sub-expression on that to apply the operator. */\n Expr expr();\n /** Set the sub-expression on that to apply the operator. */\n Unary expr(Expr e);\n\n /** The operator to apply on the sub-expression. */\n Operator operator();\n /** Set the operator to apply on the sub-expression. */\n Unary operator(Operator o);\n}", "public interface Expression {\n\t\n\t/**\n\t * Evaluates an arithmetic expression.\n\t * \n\t * @return the value to which this expression evaluates\n\t */\n\tdouble eval();\n\t\n\t/**\n\t * Creates a String representation of an arithmetic expression.\n\t * \n\t * @return this expression in standard form, suitable for inclusion\n\t * in a program or text document (e.g., \"(2 - 4 * (7 + 2))\"). Note\n\t * that the string can have \"unnecessary\" parentheses as this (toy)\n\t * system does not know about operator precedence. \n\t */\n\tString toString();\n\n}", "protected abstract Object doCalculations();", "public ExpressionSolver(String s)\n\t{\n\t\tString[] ray = s.split(\" \");\n\t\tList<String> list = Arrays.asList(ray);\n\t\tfor (int i = 0; i < list.size()-1; i++) {\n\t\t\tif ( ray[i] == \"*\") {\n\t\t\t\tlist.remove(i + 1);\n\t\t\t\tlist.remove(i - 1);\n\t\t\t\tlist.set(i,Integer.parseInt(list.get(i-1)) * Integer.parseInt(list.get(i+1)) );\n\t\t\t}\n\t\t\tif ( ray[i] == \"/\") {\n\t\t\t\tlist.remove(i + 1);\n\t\t\t\tlist.remove(i - 1);\n\t\t\t\tlist.set(i,Integer.parseInt(list.get(i-1)) * Integer.parseInt(list.get(i+1)) );\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < list.size()-1; j++) {\n\t\t\tif (ray[j] == \"+\") {\n\t\t\t\tlist.remove(j + 1);\n\t\t\t\tlist.remove(j - 1);\n\t\t\t\tlist.set(j,Integer.parseInt(list.get(j-1)) * Integer.parseInt(list.get(j+1)) );\n\t\t\t}\n\t\t\tif ( ray[j] == \"-\") {\n\t\t\t\tlist.remove(j + 1);\n\t\t\t\tlist.remove(j - 1);\n\t\t\t\tlist.set(j,Integer.parseInt(list.get(j-1)) * Integer.parseInt(list.get(j+1)) );\n\t\t\t}\n\t\t}\n\t}", "public T caseExprArithmetic(ExprArithmetic object)\n {\n return null;\n }", "static double calculate(String func, double arg) {\n double result = 0.0;\n\n if (func.equals(\"sin\")) {\n result = Math.sin(arg);\n }\n if (func.equals(\"ln\")) {\n result = Math.log(arg);\n }\n if (func.equals(\"sqrt\")) {\n result = Math.sqrt(arg);\n }\n if (func.equals(\"abs\")) {\n result = Math.abs(arg);\n }\n return result;\n }", "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "private void squareRoot()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.squareRoot ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}", "@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n Calc.Function function = token.getValue(); // e.g. CalcGrammar.Function.sin\n Expression argument = next.pollFirst().getTarget(); // e.g. Expression.Variable(\"x\")\n return new Expression.Function(function, argument);\n }", "public static void main(String[] args) {\r\n\tSlingFunction f = new Sin(\r\n\t\tnew Arithmetic('*', new Point(0, 10), new T()));\r\n\tSystem.out.println(f);\r\n}", "private Object eval(SimpleExpr expr) {\n Object res = eval(expr.getExpr().get(0));\n\n for (int i = 1; i < expr.getExpr().size(); i++) {\n Object res2 = eval(expr.getExpr().get(i));\n String opt = expr.getOpt().get(i - 1);\n\n if (\"+\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res + (Double) res2;\n } else if (res instanceof Double && res2 instanceof String) {\n res = \"\" + res + res2;\n } else if (res instanceof Boolean && res2 instanceof String) {\n res = \"\" + res + res2;\n } else if (res instanceof String && res2 instanceof String) {\n res = \"\" + res + res2;\n } else if (res instanceof String && res2 instanceof Double) {\n res = \"\" + res + res2;\n } else if (res instanceof String && res2 instanceof Boolean) {\n res = \"\" + res + res2;\n } else {\n throw new RaydenScriptException(\"Expression error: SimpleExpr error\");\n }\n } else if (\"-\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res - (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: SimpleExpr error\");\n }\n } else {\n throw new RaydenScriptException(\"Expression error: Invalid operator '\" + opt + \"'.\");\n }\n }\n\n return res;\n }", "public static void main(String[] args) throws Exception {\r\n Expression e = new Plus(new Mult(2, \"x\"), new Plus(new Sin(new Mult(4, \"y\")), new Pow(\"e\", \"x\")));\r\n System.out.println(e);\r\n Map<String, Double> assignment = new TreeMap<String, Double>();\r\n assignment.put(\"x\", 2.0);\r\n assignment.put(\"y\", 0.25);\r\n assignment.put(\"e\", 2.71);\r\n System.out.println(e.evaluate(assignment));\r\n e = e.differentiate(\"x\");\r\n System.out.println(e);\r\n System.out.println(e.evaluate(assignment));\r\n System.out.println(e.simplify());\r\n System.out.println(e);\r\n }", "ExpressionCalculPrimary getExpr();", "MathinterpreterFactory getMathinterpreterFactory();", "private double processExpression() throws ParsingException {\n double result = processTerm();\n\n while (true) {\n if (tryCaptureChar('+')) {\n result += processTerm();\n } else if (tryCaptureChar('-')) {\n result -= processTerm();\n } else {\n break;\n }\n }\n return result;\n }", "@Override\n public Float calc() {\n\treturn null;\n }", "public static void calculateMathProblem(){\n\n int num1 = 5;\n double num2 = 3.0d;\n float num3 = 3.0f;\n double result1 = num1 + num2;\n double result2 = num1 - num2;\n double result3 = num1 * num2;\n double result4 = num1 / num2;\n float result5 = num1 / num3;\n System.out.println(result1);\n System.out.println(result2);\n System.out.println(result3);\n System.out.println(result4);\n System.out.println(result5);\n\n }", "@Override\n\tpublic int evalTree() {\n\t\tint num;\n\t\tExpressionTree left, right;\n\t\t\n\t\ttry {\n\t\t\tnum = Integer.parseInt(EMPTY + this.getValue());\n\n\t\t\treturn num;\n\t\t}\n\n\t\tcatch (NumberFormatException n) {\n\t\t\tleft = new ExpressionTree(getLeft());\n\t\t\tright = new ExpressionTree(getRight());\n\t\t\tif(TIMES_SIGN.equals(this.getValue()))\n\t\t\t\treturn left.evalTree() * right.evalTree();\n\t\t\telse\n\t\t\t\treturn left.evalTree() + right.evalTree();\n\t\t}\n\t}", "@Override\n public double execute(Object o) throws InvalidSyntaxException,\n InstantiationException, IllegalAccessException,\n ClassNotFoundException, SlogoException, EndOfStackException {\n return 0;\n }", "public void execute() {\n switch (this.opCode) {\n case 'a':\n this.result = this.leftVal + this.rightVal;\n break;\n case 's':\n this.result = this.leftVal - this.rightVal;\n break;\n case 'm':\n this.result = this.leftVal * this.rightVal;\n break;\n case 'd':\n this.result = this.rightVal != 0 ? this.leftVal / this.rightVal : 0.0d;\n break;\n default:\n System.out.println(\"Invalid opCode: \" + this.opCode);\n this.result = 0.0d;\n break;\n }\n numOfCalculations++;\n sumOfResults += result;\n }", "private Equation createEquation() throws MainApplicationException {\r\n\t\tEquation equation = new Equation(false,\r\n\t\t\t\t\"a+b=c\", \r\n\t\t\t\tfalse, \r\n\t\t\t\tnew Parametre(), \r\n\t\t\t\t\"Insérer Propriété\",\r\n\t\t\t\t\"Insérer commentaire\");\r\n\t\tequation.setIsModifiable(true);\r\n\t\treturn equation;\r\n\t}", "@Override\n public double callJavaMath(String methodName, Object[] args) {\n\treturn 0;\n }", "@Override\r\n\tpublic double eval() {\r\n\t\tresult = op.apply(arg.eval());\r\n\t\treturn result;\r\n\t}", "private Object eval(Term expr) {\n Object res = eval(expr.getExpr().get(0));\n\n for (int i = 1; i < expr.getExpr().size(); i++) {\n Object res2 = eval(expr.getExpr().get(i));\n String opt = expr.getOpt().get(i - 1);\n\n if (\"*\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res * (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: Term error\");\n }\n } else if (\"/\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res / (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: Term error\");\n }\n } else if (\"%\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res % (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: Term error\");\n }\n } else {\n throw new RaydenScriptException(\"Expression error: Invalid operator '\" + opt + \"'.\");\n }\n }\n\n return res;\n }", "private String calculate (double num1, double num2, String operator){\r\n \r\n double value;\r\n switch(operator){\r\n case \"+\":\r\n value = num1 + num2;\r\n break;\r\n case \"-\":\r\n value = num1 - num2;\r\n break;\r\n case \"*\":\r\n value = num1 * num2;\r\n break;\r\n case \"/\":\r\n value = num1/num2;\r\n break;\r\n default:\r\n throw new IllegalArgumentException();\r\n \r\n }\r\n String result = value + \"\";\r\n return result;\r\n }", "@ReflectiveMethod(name = \"l\", types = {})\n public float l(){\n return (float) NMSWrapper.getInstance().exec(nmsObject);\n }", "@Override\n public Expression simplify() {\n Expression right = getExpRight().simplify();\n Expression left = getExpLeft().simplify();\n //check if you can simplify more\n Num zero = new Num(0), one = new Num(1);\n //check if the left expression equals to zero\n if (zero.isEqual(left)) {\n return zero;\n }\n //check if the right expression equals to zero\n if (zero.isEqual(right)) {\n return zero;\n }\n //check if the left expression equals to one\n if (one.isEqual(left)) {\n return right;\n }\n //check if the right expression equals to one\n if (one.isEqual(right)) {\n return left;\n }\n try {\n //check if the expression is a number\n double value = evaluate();\n return new Num(value);\n } catch (Exception e) {\n return new Mult(left, right);\n }\n }", "public final CQLParser.functionExpression_return functionExpression() throws RecognitionException {\n CQLParser.functionExpression_return retval = new CQLParser.functionExpression_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n CQLParser.mathematicalFunction_return mathematicalFunction107 = null;\n\n CQLParser.statisticalFunction_return statisticalFunction108 = null;\n\n CQLParser.rangeFunction_return rangeFunction109 = null;\n\n CQLParser.stringFunction_return stringFunction110 = null;\n\n CQLParser.arrayDefinition_return arrayDefinition111 = null;\n\n\n\n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:419:2: ( mathematicalFunction | statisticalFunction | rangeFunction | stringFunction | arrayDefinition )\n int alt30=5;\n switch ( input.LA(1) ) {\n case SQRT:\n case LOG:\n case LN:\n case ABS:\n {\n alt30=1;\n }\n break;\n case AVG:\n case MEDIAN:\n case MIN:\n case MAX:\n case STDDEV:\n case VAR:\n case SUM:\n case COUNT:\n {\n alt30=2;\n }\n break;\n case RANGE:\n {\n alt30=3;\n }\n break;\n case ID:\n case INTEGER:\n case QUOTED_STRING:\n case REAL:\n case TRUE:\n case FALSE:\n case NULL:\n case 111:\n case 114:\n {\n alt30=4;\n }\n break;\n case 117:\n {\n alt30=5;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 30, 0, input);\n\n throw nvae;\n }\n\n switch (alt30) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:419:4: mathematicalFunction\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_mathematicalFunction_in_functionExpression1965);\n mathematicalFunction107=mathematicalFunction();\n\n state._fsp--;\n\n adaptor.addChild(root_0, mathematicalFunction107.getTree());\n\n }\n break;\n case 2 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:420:4: statisticalFunction\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_statisticalFunction_in_functionExpression1970);\n statisticalFunction108=statisticalFunction();\n\n state._fsp--;\n\n adaptor.addChild(root_0, statisticalFunction108.getTree());\n\n }\n break;\n case 3 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:421:4: rangeFunction\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_rangeFunction_in_functionExpression1975);\n rangeFunction109=rangeFunction();\n\n state._fsp--;\n\n adaptor.addChild(root_0, rangeFunction109.getTree());\n\n }\n break;\n case 4 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:422:4: stringFunction\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_stringFunction_in_functionExpression1981);\n stringFunction110=stringFunction();\n\n state._fsp--;\n\n adaptor.addChild(root_0, stringFunction110.getTree());\n\n }\n break;\n case 5 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:423:4: arrayDefinition\n {\n root_0 = (Object)adaptor.nil();\n\n pushFollow(FOLLOW_arrayDefinition_in_functionExpression1987);\n arrayDefinition111=arrayDefinition();\n\n state._fsp--;\n\n adaptor.addChild(root_0, arrayDefinition111.getTree());\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }", "protected Object evaluate( ) throws Exception {\n return new Double(Math.atan(getDouble(0)));\n }", "public static void main(String[] args) {\n FunctionFactory<Integer, Integer> functionFactory = new FunctionFactory<>();\n // 1. add simple functions \"square\", \"increment\", \"decrement\", \"negative\"\n // 2. get each function by name, and apply to argument 5, print a result (should be 25, 6, 4,-5 accordingly)\n // 3. add simple function \"abs\" using method reference (use class Math)\n // 4. add try/catch block, catch InvalidFunctionNameException and print some error message to the console\n // 5. try to get function with invalid name\n\n functionFactory.addFunction(\"square\", n -> n * n);\n functionFactory.addFunction(\"abs\", Math::abs);\n\n functionFactory.getFunction(\"square\").apply(5);\n try{\n functionFactory.getFunction(\"abs\").apply(5);\n }catch (InvalidFunctionNameException e){\n System.out.println(e.getMessage());\n }\n\n\n\n\n }", "double apply(double x, double y) {\n switch (this) {\n case PLUS: return x + y;\n case MINUS: return x - y;\n case TIMES: return x * y;\n case DEVICE: return x / y;\n }\n throw new AssertionError(\"unknwon op: \" + this);\n }", "protected abstract double operation(double val);", "private void calculate(double x, String lastCommand) {\n\n switch (lastCommand.charAt(0)){\n case '+':\n result += x;\n break;\n case '-':\n result -= x;\n break;\n case '*':\n result *= x;\n break;\n case '÷':\n result /= x;\n break;\n case '=':\n result = x;\n break;\n }\n showResult(result);\n }", "@Test\n public void test01(){\n Object result = FelEngine.instance.eval(\"5000*12+7500\");\n System.out.println(result);\n }", "private String evaluateExpr(String expr){\n\t\t//bigdecimal used for long user inputs\n\t\tBigDecimal num1, num2, ans, temp = new BigDecimal(\"0\");\n\t\tint check = 1;\n\t\t//find the position of function\n\t\twhile(Character.isDigit(expr.charAt(check)) || expr.charAt(check) == '.')\n\t\t\tcheck++;\n\t\t//extract numbers from expression\n\t\tnum1 = new BigDecimal(expr.substring(0,check));\n\t\tnum2 = new BigDecimal(expr.substring(check + 1,expr.length()));\n\t\t//division by zero error\n\t\tif(num2.compareTo(temp) == 0 && expr.charAt(check) == '/')\n\t\t\treturn \"Invalid\";\n\t\t//evaluate functions\n\t\tif(expr.charAt(check) == '*')\n\t\t\tans = num1.multiply(num2);\n\t\telse if(expr.charAt(check) == '+')\n\t\t\tans = num1.add(num2);\n\t\telse if(expr.charAt(check) == '/')\n\t\t\tans = num1.divide(num2, MathContext.DECIMAL32);\n\t\telse\n\t\t\tans = num1.subtract(num2);\n\t\treturn ans.toString();\n\t}", "public Function(double coeff, String trigFunction, double p) {\r\n\t if(trigFunction.toLowerCase().equals(\"sin\")){\r\n //y = coeff * Math.sin(p*x);\r\n sinc[0] = coeff;\r\n sind[0] = p;\r\n sinindex = 1;\r\n }else if(trigFunction.toLowerCase().equals(\"cos\")){\r\n //y = coeff * Math.cos(p*x);\r\n if( p == 0){\r\n co[0]+= coeff;\r\n }else{\r\n cosc[0] = coeff;\r\n cosd[0] = p;\r\n cosindex = 1;\r\n } \r\n }else if(trigFunction.toLowerCase().equals(\"tan\")){\r\n //y = coeff * Math.tan(p*x);\r\n tanc[0] = coeff;\r\n tand[0] = p;\r\n tanindex = 1;\r\n }else{\r\n clear(); \r\n }\r\n\t}", "public void cal_AdjustedFuelMoist(){\r\n\tADFM=0.9*FFM+0.5+9.5*Math.exp(-BUO/50);\r\n}", "private static int evaluateExpression(String expression, int number1, int number2){\n if(expression.equals(\"plus\")){\n \treturn (number1 + number2);\n }else if(expression.equals(\"minus\")){\n \treturn (number1 - number2);\n }else if(expression.equals(\"times\")){\n \treturn(number1 * number2);\n }else if(expression.equals(\"divide\")){\n \treturn(number1 / number2);\n }\n return 0;\n \n }", "protected IExpressionValue factor() throws TableFunctionMalformedException,\r\n\t\t\t\t\t\t\t\t\t\t\t InvalidProbabilityRangeException,\r\n\t\t\t\t\t\t\t\t\t\t\t SomeStateUndeclaredException{\r\n\t\tIExpressionValue ret = null;\r\n\t\tif (look == '(') {\r\n\t\t\tmatch('(');\r\n\t\t\tret = expression();\r\n\t\t\tmatch(')');\r\n\t\t} else if (look == '\"') {\r\n\t\t\tret = this.getStr();\r\n\t\t} else if (isAlpha(look)) {\r\n\t\t\tret = function();\r\n\t\t} else {\r\n\t\t\tret = getNum();\r\n\t\t}\r\n\t\t// Debug.println(\"Factor returning \" + ret.toString());\r\n\t\treturn ret;\r\n\t}", "protected void sequence_MathOperation(ISerializationContext context, MathOperation semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getMathOperation_Mlo()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getMathOperation_Mlo()));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getMathOperationAccess().getMloMathLogicalOperationParserRuleCall_0(), semanticObject.getMlo());\n\t\tfeeder.finish();\n\t}", "public MathEquation() {\n }", "public String calcWithSyaAlgo(String mathExpr) throws Exception {\r\n\t\tShuntingYardAlgorithm sta = new ShuntingYardAlgorithm();\r\n\t\treturn Double.toString(sta.solveMathExpr(mathExpr));\r\n\t}", "@Override\n protected void visitFunctionNode(FunctionNode node) {\n // TODO(lukes): move this logic to run as part of ResolveExpressionsTypeVisitor (possibly\n // extracted into a helper class)\n SoyFunction function = node.getSoyFunction();\n if (function instanceof BuiltinFunction) {\n visitNonpluginFunction((BuiltinFunction) function, node);\n } else {\n visitFunction(function, node);\n }\n\n // Recurse to operands.\n visitChildren(node);\n }", "public static double eval(final String str) {\n return new Object() {\n int pos = -1, ch;\n\n void nextChar() {\n ch = (++pos < str.length()) ? str.charAt(pos) : -1;\n }\n\n boolean eat(int charToEat) {\n while (ch == ' ') nextChar();\n if (ch == charToEat) {\n nextChar();\n return true;\n }\n return false;\n }\n\n double parse() {\n nextChar();\n double x = parseExpression();\n if (pos < str.length()) throw new RuntimeException(\"Unexpected: \" + (char)ch);\n return x;\n }\n\n // Grammar:\n // expression = term | expression `+` term | expression `-` term\n // term = factor | term `×` factor | term `÷` factor\n // factor = `+` factor | `-` factor | `(` expression `)`\n // | number | functionName factor | factor `^` factor\n\n double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }\n\n double parseTerm() {\n double x = parseFactor();\n for (;;) {\n if (eat('×')) x *= parseFactor(); // multiplication\n else if (eat('÷')) x /= parseFactor(); // division\n else return x;\n }\n }\n\n double parseFactor() {\n if (eat('+')) return parseFactor(); // unary plus\n if (eat('-')) return -parseFactor(); // unary minus\n\n double x;\n int startPos = this.pos;\n if (eat('(')) { // parentheses\n x = parseExpression();\n eat(')');\n } else if ((ch >= '0' && ch <= '9') || ch == '.') { // numbers\n while ((ch >= '0' && ch <= '9') || ch == '.') nextChar();\n x = Double.parseDouble(str.substring(startPos, this.pos));\n } else {\n throw new RuntimeException(\"Unexpected: \" + (char)ch);\n }\n\n return x;\n }\n }.parse();\n }", "public Node factor()\r\n\t{\r\n\t\tNode ret;\r\n\t\t// function\r\n\t\tret = function();\r\n\t\tif(ret!=null) return ret;\r\n\t\tret = number();\r\n\t\tif(ret!=null) return ret;\r\n\t\tret = parameter();\r\n\t\tif(ret!=null) return ret;\r\n\t\tret = t();\r\n\t\tif(ret!=null) return ret;\r\n\t\tret = infinity();\r\n\t\tif(ret!=null) return ret;\r\n\t\tret = variable();\r\n\t\tif(ret!=null) return ret;\r\n\t\tint index = lexer.getPosition();\r\n\t\tif(lexer.getToken()==Lexer.Token.LEFT_PARENTHESIS)\r\n\t\t{\r\n\t\t\tret = expression();\r\n\t\t\tif(ret!=null)\r\n\t\t\t{\r\n\t\t\t\tif(lexer.getToken()==Lexer.Token.RIGHT_PARENTHESIS)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn ret;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.setPosition(index);\r\n\t\treturn null;\r\n\t}", "private void reciprocal()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.reciprocal ( );\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}", "public void switchTrigFunctions(){\r\n //Three classes Objects for three diff modes\r\n IntegralAngle IA=new IntegralAngle();\r\n NthPower NP=new NthPower();\r\n AngleSum AS=new AngleSum();\r\n //CALCULATIONS ARE BASED ON FACTORIAL AND DOESN'T SUPPORT MORE THAN 20!\r\n \r\n //When SIN is selected\r\n if(trig_combo.getValue().equals(\"SIN\")){\r\n \r\n //Limit Exceeded\r\n if(angleMultiple.get(0)>21){\r\n //Showing error message\r\n type.setTextFill(Color.RED);\r\n type.setText(\"INVALID ANGLE INTEGRAL\");\r\n type.setText(type.getText()+\"\\nIntegral should be less than 20 because of your PC limitations\");\r\n }\r\n //Outputting result on the screen\r\n else {\r\n type.setTextFill(Color.GREEN);\r\n type.setText(\"Your Sine Expansion -->\");\r\n \r\n //For Sin(nx) mode\r\n if(switch_modes()==-1)\r\n IA.SinnXExpansion(hbox1,upon);\r\n \r\n //For Sin(x) Raise to the power n\r\n else if(switch_modes()==-2)\r\n NP.sinPower(power_combo,hbox1,hbox2,upon);\r\n \r\n //For Sin(x1+x2+...)\r\n else if(switch_modes()==-3)\r\n AS.sinSum(trig_combo,hbox1,upon);\r\n }\r\n \r\n }\r\n //When Cos is Selected\r\n else if(trig_combo.getValue().equals(\"COS\")){\r\n //Limit Exceeded\r\n if(angleMultiple.get(0)>21){\r\n //Showing error message\r\n type.setTextFill(Color.RED);\r\n type.setText(\"INVALID ANGLE INTEGRAL\");\r\n type.setText(type.getText()+\"\\nIntegral should be less than 20 because of your PC limitations\");\r\n }\r\n else {\r\n type.setTextFill(Color.GREEN);\r\n type.setText(\"Your Cosine Expansion -->\");\r\n \r\n //For Cos(nx) mode\r\n if(switch_modes()==-1)\r\n IA.CosnXExpansion(hbox1,upon);\r\n \r\n //For Cos(x) Raise to the power n\r\n else if(switch_modes()==-2)\r\n NP.cosPower(power_combo,hbox1,hbox2,upon);\r\n \r\n //For Cos(x1+x2+...)\r\n else if(switch_modes()==-3)\r\n AS.cosSum(trig_combo,hbox2,upon);\r\n }\r\n }\r\n //When Tan is Selected\r\n else if(trig_combo.getValue().equals(\"TAN\")){\r\n //Limit Exceeded\r\n if(angleMultiple.get(0)>21){\r\n //Showing error message\r\n type.setTextFill(Color.RED);\r\n type.setText(\"INVALID ANGLE INTEGRAL\");\r\n type.setText(type.getText()+\"\\nIntegral should be less than 20 because of your PC limitations\");\r\n //Resetting Upon Length\r\n upon.setEndX(0);\r\n }\r\n else {\r\n type.setTextFill(Color.GREEN);\r\n type.setText(\"Your Tangent Expansion -->\");\r\n //For Tan(nx) mode\r\n if(switch_modes()==-1)\r\n IA.TannXExpansion(hbox1,hbox2,upon);\r\n \r\n //For Tan(x) Raise to the power n\r\n else if(switch_modes()==-2)\r\n NP.tanPower(power_combo,hbox1,hbox2,upon);\r\n \r\n //For Tan(x1+x2+...)\r\n else if(switch_modes()==-3)\r\n AS.tanSum(trig_combo,hbox1,hbox2,upon);\r\n }\r\n }\r\n }", "@Override\n public Expression simplify() {\n try {\n return new Num(this.evaluate());\n } catch (Exception e) {\n if (getExpression1().simplify().toString().equals(getExpression2().simplify().toString())) {\n return new Num(0);\n }\n if (getExpression1().simplify().toString().equals(\"0.0\")) {\n return new Neg(getExpression2().simplify());\n }\n if (getExpression2().simplify().toString().equals(\"0.0\")) {\n return getExpression1().simplify();\n }\n return new Minus(getExpression1().simplify(), getExpression2().simplify());\n }\n }", "public void arithmeticMultiplication(Operator operatorType, Operator clickedOperator) {\n switch (operatorType) {\n case ADDITION, SUBTRACT -> {\n if (numberStored[1] == 0) {\n operatorAssigned = operatorType;\n numberStored[1] = Double.parseDouble(mainLabel.getText());\n } else {\n //numberStored[1] = numberStored[1] / Double.parseDouble(mainLabel.getText());\n numberStored[1] = basicCalculation(numberStored[1], Double.parseDouble(mainLabel.getText()), clickedOperator);\n mainLabel.setText(Double.toString(hasNegSign(numberStored[1])));\n }\n }\n case MULTIPLY, DIVIDE -> {\n if (numberStored[1] != 0) {\n //numberStored[1] = numberStored[1] / Double.parseDouble(mainLabel.getText());\n numberStored[1] = basicCalculation(numberStored[1], Double.parseDouble(mainLabel.getText()), operatorType);\n mainLabel.setText(Double.toString(numberStored[1]));\n } else {\n numberStored[0] = basicCalculation(numberStored[0], Double.parseDouble(mainLabel.getText()), operatorType);\n mainLabel.setText(Double.toString(numberStored[0]));\n }\n }\n case POW -> {\n double exp = Double.parseDouble(mainLabel.getText());\n double result = Math.pow(numberStored[2], exp);\n numberStored[2] = 0;\n\n if (numberStored[1] != 0) {\n numberStored[1] = basicCalculation(numberStored[1], result, operatorBfPow);\n mainLabel.setText(Double.toString(numberStored[1]));\n } else {\n numberStored[0] = basicCalculation(numberStored[0], result, operatorBfPow);\n mainLabel.setText(Double.toString(numberStored[0]));\n }\n operatorBfPow = Operator.NON;\n }\n default -> numberStored[0] = Double.parseDouble(mainLabel.getText());\n }\n }" ]
[ "0.6507766", "0.6129074", "0.5831082", "0.5822963", "0.56900924", "0.5688695", "0.56824726", "0.56766236", "0.5668551", "0.5630792", "0.5621324", "0.559014", "0.5478654", "0.5463613", "0.5462498", "0.5460476", "0.5415819", "0.5395154", "0.53715444", "0.5361533", "0.5331081", "0.53292525", "0.53261006", "0.5307742", "0.5285546", "0.52815115", "0.52746695", "0.5261251", "0.52538776", "0.5250526", "0.52495384", "0.52456665", "0.52447325", "0.5241417", "0.52343416", "0.5225335", "0.5225229", "0.5201477", "0.5192297", "0.5184211", "0.51691854", "0.5167616", "0.51666254", "0.51606524", "0.51594853", "0.5143341", "0.5140936", "0.51358944", "0.5110319", "0.510902", "0.51038116", "0.5103282", "0.51024204", "0.50982696", "0.50866175", "0.50856096", "0.50779593", "0.50642747", "0.50642747", "0.50632185", "0.50622076", "0.50526416", "0.5045335", "0.5044505", "0.5041616", "0.5038064", "0.50213766", "0.5015306", "0.50033957", "0.5003073", "0.50007725", "0.4999377", "0.49971747", "0.49906445", "0.49847203", "0.49841344", "0.49811876", "0.49808282", "0.49698162", "0.4966446", "0.49638483", "0.49629977", "0.49570605", "0.49528128", "0.49465388", "0.4946384", "0.49460912", "0.49404544", "0.49367183", "0.49367124", "0.49361405", "0.49341097", "0.4929727", "0.4923852", "0.49213284", "0.4912726", "0.4904333", "0.48983502", "0.48982847", "0.48957428", "0.48933962" ]
0.0
-1
This methods checks whether a given location is already used for some product inside store
private boolean isAssignedPosition(String location) { return productTypeRepository.findAll().stream().anyMatch(p -> p.getLocation().equals(location)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean locationExists(Location location);", "boolean hasLocation();", "boolean hasLocation();", "public abstract Boolean isExist(LocationDto location);", "SkuAvailability lookupSKUAvailabilityForLocation(Long skuId, Long locationId, boolean realTime);", "private boolean isOccupied(Location loc)\n\t{\n\t\treturn grid[loc.getRow()][loc.getCol()] != null;\n\t}", "public boolean hasLocation()\n\t{\n\t\treturn location != null;\n\t}", "@Override\n public boolean isLocationNotInstalled() {\n\n setLogString(\"Check if location is not installed.\", true, CustomLogLevel.HIGH);\n final String thStatusMsg = getTstatStatusMessage();\n return thStatusMsg != null && thStatusMsg.contains(LOCATION_NOT_INSTALLED);\n\n }", "public abstract boolean freeSlot(LocationDto location ,SlotDto slot);", "private boolean checkExistLocationPoint(String point, String lPoint) {\n\n ArrayList<LocationPointModel> listLocationPoint ;\n\n listLocationPoint = point.equals(\"loading\")?listLoadingnPoint : listDestinationPoint ;\n\n for (LocationPointModel lPointModel:listLocationPoint) {\n if(lPointModel.locPoint.toLowerCase().trim().equals(lPoint.toLowerCase().trim()))\n {\n Toast.makeText(getActivity(),(point.equals(\"loading\")?\"Loading\":\"Destination\")+\" point already exists!\", Toast.LENGTH_SHORT).show();\n return true ;\n }\n }\n return false ;\n\n }", "List<SkuAvailability> lookupSKUAvailabilityForLocation(List<Long> skuIds, Long locationId, boolean realTime);", "public boolean hasLocation()\n {\n return targetLocation != null;\n }", "public boolean checkForLotus(){\n Object obj=charactersOccupiedTheLocation[2];\n if(obj!=null){return true;}\n return false;\n }", "public Boolean verifySearchResult(String location) {\r\n\t\tBoolean flag = false;\r\n\t\tWaitHelper wait = new WaitHelper(driver);\r\n\t\tWebElement confirmation = wait.setExplicitWait(driver, By.xpath(\"//div[@class='row searchWidgetRow propertySection']\"), 25);\r\n\t\tList<WebElement> searchConfirmation = confirmation.findElements(By.xpath(\".//strong\"));\r\n\t\tfor(WebElement eachElement: searchConfirmation){\r\n\t\t\tif(location.contains(eachElement.getText())){\r\n\t\t\t\tSystem.out.println(\"Search locality \"+location+\" contains the text \"+eachElement.getText());\r\n\t\t\t\tflag=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "private void checkLocation(String mapName, Set<Point> seenLocations, List<Point> wildLocations) {\n Assert.assertFalse(mapName, wildLocations.isEmpty());\n for (Point location : wildLocations) {\n Assert.assertFalse(seenLocations.contains(location));\n seenLocations.add(location);\n }\n }", "boolean hasLocationNames();", "@Override\n public boolean isLocationEmpty(Unit unit, int x, int y)\n {\n Unit resident = master.getLocation(x, y).getResident();\n // if there's nothing there, yeah...\n if (resident == null)\n return true;\n // say it's not there if we dunno it's there\n if (resident.model.hidden && !confirmedVisibles.contains(resident)) \n return true;\n // otherwise, consult the fog map and master map\n return isLocationFogged(x, y) || master.isLocationEmpty(unit, x, y);\n }", "public boolean registered(String place) {\n return hotels != null && hotels.size() > 0;\n }", "private static boolean isHere(int portNummber,InetAddress address, String nameOfProduct){\n\n for(SensorData sensorData : actualSensorDatas){\n if((sensorData.getPortNummber() == portNummber)\n || (sensorData.getAddress() == address)\n || (sensorData.getProduct().getNameOfProduct() == nameOfProduct) ){\n return true;\n }\n }\n return false;\n }", "private boolean compareLocation(Location location){\n return location.getBlockX()==this.location.getBlockX() && location.getBlockY()==this.location.getBlockY() && location.getBlockZ() == this.location.getBlockZ();\n }", "public static boolean isLocationRequired(final Context context) {\n\t\tfinal SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\n\t\treturn preferences.getBoolean(PREFS_LOCATION_NOT_REQUIRED, isMarshmallowOrAbove());\n\t}", "public boolean contains(Location location) {\n String c = chunkToString(location.getChunk());\n ChunkWrapper chunk = chunks.get(c);\n return chunk.contains(location);\n }", "public static boolean testLocation(Location location) {\n if (!enabled())\n return true;\n\n return WorldGuardFlagHook.testLocation(location);\n }", "boolean hasLocationView();", "public static boolean isLocationEnabled(Context context) {\n int locationMode = 0;\n String locationProviders;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n try {\n locationMode = Settings.Secure.getInt(context.getContentResolver(), Settings.Secure.LOCATION_MODE);\n } catch (Settings.SettingNotFoundException e) {\n FirebaseCrashlytics.getInstance().recordException(e);\n e.printStackTrace();\n }\n return locationMode != Settings.Secure.LOCATION_MODE_OFF;\n } else {\n locationProviders = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED);\n return !TextUtils.isEmpty(locationProviders);\n }\n }", "public boolean isAssignedToLocation() {\n if (location == null) {\n return false;\n }\n return true;\n }", "boolean hasStoreChunkLocation();", "public boolean hasProduct() {\n return product_ != null;\n }", "private boolean canFindLocationAddress(){\n\n Geocoder geo = new Geocoder(this);\n\n //Get address provided for location as Address object\n try{\n List<Address> foundAddresses = geo.getFromLocationName(location.getAddress(),1);\n //Return true if an address is found\n return (foundAddresses.size() == 1);\n }\n catch(IOException e){\n e.printStackTrace();\n return false;\n }\n\n }", "public boolean availableSquare(Location location)\n {\n boolean available = false;\n if(countTrees() + countGrasses() <= 10) {\n available = true;\n }\n return available;\n }", "boolean isInclusiveTaxCalculationInUse(String storeCode, Address address);", "private boolean isBetter(Location newLocation, Location oldLocation) {\n return true;\n }", "private static boolean mapAlreadyHasMarkerForLocation(String location, HashMap<String, String> markerLocation) {\n return (markerLocation.containsValue(location));\n }", "public static boolean isBetterLocation(Location location, Location anotherLocation) {\n\t\t\n\t\tif (anotherLocation == null) {\n\t\t\treturn true;\n\t\t}else if (anotherLocation.getAltitude() <= 0){\n\t\t\treturn true;\n\t\t}\n\n\t\t//Comprobar si la nueva ubicación es más o menos reciente que la anterior\n\t\tlong timeDelta = location.getTime() - anotherLocation.getTime();\n\t\tboolean isNewer = timeDelta > 0;\n//\t\tLog.d(log,\"1.1: \"+location.getLatitude() + \",\"+location.getLongitude()+\" AC:\"+location.getAccuracy()+\" aLT:\"+location.getAltitude()+\"\\n\");\n//\t\tLog.d(log,\"1.2: \"+anotherLocation.getLatitude() + \",\"+anotherLocation.getLongitude()+\" AC:\"+anotherLocation.getAccuracy()+\" aLT:\"+anotherLocation.getAltitude()+\"\\n\");\n // Si hace más de dos minutos de la última ubicación ->nueva es mejor\n\t\tif (timeDelta > TWO_MINUTES) {\n//\t\t\tLog.d(log,\"2\");\n\t\t\treturn true;\n\t\t\t//Si la nueva ubicación es antigua -> nueva es peor\n\t\t} else if (timeDelta < -TWO_MINUTES) {\n//\t\t\tLog.d(log,\"3\");\n\t\t\treturn false;\n\t\t}\n\n\n\t\tint accuracyDelta = (int) (location.getAccuracy() - anotherLocation.getAccuracy());\n\t\tboolean isLessAccurate = accuracyDelta > 0;\n\t\tboolean isMoreAccurate = accuracyDelta < 0;\n\t\tboolean isSignificantlyLessAccurate = accuracyDelta > 200;\n\n \n\t\tboolean isFromSameProvider = isSameProvider(location.getProvider(),\n\t\t\t\tanotherLocation.getProvider());\n//\t\tLog.d(log,\"4\");\n\t\t// Determinar la mejor localización según las variables calculadas\n\t\tif (isMoreAccurate) {\n//\t\t\tLog.d(log,\"5\");\n\t\t\treturn true;\n\t\t} else if (isNewer && !isLessAccurate) {\n//\t\t\tLog.d(log,\"6\");\n\t\t\treturn true;\n\t\t} else if (isNewer && !isSignificantlyLessAccurate && isFromSameProvider) {\n//\t\t\tLog.d(log,\"7\");\n\t\t\treturn true;\n\t\t}\n//\t\tLog.d(log,\"8\");\n\t\treturn false;\n\t}", "public boolean existsAtLeastOneTslFromLocation(String tslLocation, Date date) throws TSLManagingException {\n\n\t\tboolean result = false;\n\n\t\tTSLObject tslObject = getTSLfromTSLLocation(tslLocation, date);\n\t\tif (tslObject == null) {\n\t\t\tLOGGER.debug(Language.getFormatResCoreTsl(ICoreTslMessages.LOGMTSL240, new Object[ ] { tslLocation, date }));\n\t\t} else {\n\t\t\tLOGGER.debug(Language.getFormatResCoreTsl(ICoreTslMessages.LOGMTSL241, new Object[ ] { tslLocation, date, tslObject.getSchemeInformation().getTslSequenceNumber() }));\n\t\t\tresult = true;\n\t\t}\n\n\t\treturn result;\n\n\t}", "private boolean checkShippingElementExist(WebElement article) {\n\t\ttry {\n\t\t\tarticle.findElement(By.xpath(\"ul/li[@class='lvshipping']//span[@class='fee']\"));\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "void makeUseOfNewLocation(Location location) {\n if ( isBetterLocation(location, currentBestLocation) ) {\n currentBestLocation = location;\n }\n }", "boolean isUsed();", "boolean isUsed();", "public boolean hasProduct(ProductBarcode code);", "private void checkProductAvailability()\n\t{\n\n\t\tprodMsg = \"\";\n\t\tcartIsEmpty = false;\n\n\t\tMap <String,Product> products = getProducts();\n\n\t\tint qtyRequested, qtyAvailable;\n\n\t\t// Check for unavailable products\n\t\tfor ( Product p : shoppingCart.getProducts().keySet() )\n\t\t{\n\t\t\tfor ( String s : products.keySet() )\n\t\t\t{\n\t\t\t\tif ( products.get(s).getName().equals(p.getName()) )\n\t\t\t\t{\n\t\t\t\t\t// Modify product to write to file\n\t\t\t\t\tqtyRequested = shoppingCart.getProducts().get(p);\n\t\t\t\t\tqtyAvailable = products.get(s).getQtyAvailable();\n\n\t\t\t\t\tif ( qtyAvailable < qtyRequested )\n\t\t\t\t\t\tunavailableProds.put(p, new ArrayList <>(Arrays.asList(qtyRequested, qtyAvailable)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Show warning\n\t\tif ( !unavailableProds.isEmpty() )\n\t\t{\n\t\t\tprodMsg = \"The cart products were not available anymore in the requested quantity, only the available quantity has been bought:\\n\\n\";\n\n\t\t\tfor ( Product p : unavailableProds.keySet() )\n\t\t\t{\n\t\t\t\tprodMsg += p.getName() + \": requested: \" + unavailableProds.get(p).get(0) + \", available: \"\n\t\t\t\t\t\t+ unavailableProds.get(p).get(1) + \"\\n\";\n\n\t\t\t\tif ( unavailableProds.get(p).get(1) == 0 )\n\t\t\t\t\tshoppingCart.removeProduct(p);\n\t\t\t\telse\n\t\t\t\t\tshoppingCart.getProducts().replace(p, unavailableProds.get(p).get(1));\n\t\t\t}\n\n\t\t\tif ( shoppingCart.getProducts().size() == 0 )\n\t\t\t{\n\t\t\t\tcartIsEmpty = true;\n\t\t\t\tprodMsg = \"All of your products were not available anymore for purchase: payment cancelled.\\nPlease select some new products.\";\n\t\t\t}\n\t\t}\n\t}", "public boolean containsLocation(Location p) {\n\t\tint r = p.getRow();\n\t\tint c = p.getCol();\n\t\tint offR = r - topLeft.getRow();\n\t\tint offC = c - topLeft.getCol();\n\t\treturn 0 <= offR && offR < length && 0 <= offC && offC < width;\n\t}", "private boolean isInstanceLocationSet() {\n \t\tActivator activator = Activator.getDefault();\n \t\tif (activator == null)\n \t\t\treturn false;\n \t\tLocation service = activator.getInstanceLocation();\n \t\tif (service == null)\n \t\t\treturn false;\n \t\treturn service.isSet();\n \t}", "private boolean checkSpaceAvailability(Point targetLocation, ICityFragment element) {\r\n //basic constraint:no other things here\r\n\r\n if (city.isAnythingHere(targetLocation, element.getBoundary().width, element.getBoundary().height, element)) {\r\n return false;\r\n }\r\n\r\n //crossroads:at least one road can connected\r\n if (element instanceof Crossroads) {\r\n var crossroad = (Crossroads) element;\r\n\r\n var accessibleRoad = findAccessibleRoads(crossroad, targetLocation);\r\n\r\n if (accessibleRoad == null || accessibleRoad.size() <= 1) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public boolean inRegion(Location loc)\n {\n if (!loc.getWorld().getName().equals(world.getName()) || !setup)\n return false;\n \n int x = loc.getBlockX();\n int y = loc.getBlockY();\n int z = loc.getBlockZ();\n \n // Check the lobby first.\n if (lobbySetup)\n {\n if ((x >= l1.getBlockX() && x <= l2.getBlockX()) && \n (z >= l1.getBlockZ() && z <= l2.getBlockZ()) && \n (y >= l1.getBlockY() && y <= l2.getBlockY()))\n return true;\n }\n \n // Returns false if the location is outside of the region.\n return ((x >= p1.getBlockX() && x <= p2.getBlockX()) && \n (z >= p1.getBlockZ() && z <= p2.getBlockZ()) && \n (y >= p1.getBlockY() && y <= p2.getBlockY()));\n }", "private boolean checkIfGoodSquare(MapLocation location) {\n return (location.x % 2 == location.y % 2) && !location.isAdjacentTo(Cache.myECLocation);\n }", "protected boolean validateLocation (BodyObject source, Location loc)\n {\n return true;\n }", "@Override\n public boolean isSet() {\n return locusLocus != null;\n }", "public void isProductAvailable(String productName) {\n\n\t\tString text = WebUtility.getText(Locators.getLocators(\"loc.text.productNameAfterSearch\"));\n\t\tSystem.out.println(text);\n\t\tAssert.assertEquals(text, productName, \"product is not present\");\n\n\t}", "public static void validateProductRequest(final InvLocProductRequest request) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "public boolean isAtLocation(Location loc) {\n return loc.equals(loc);\n }", "private boolean isLocationNearby(double latitude, double longitude){\n\n assert positionSettings != null;\n\n float[] result = new float[1];\n Location.distanceBetween(positionSettings.position.latitude, positionSettings.position.longitude,\n latitude, longitude, result); //result in meters\n return (result[0] <= positionSettings.radius);\n }", "public static boolean isLocationEnabled(final Context context) {\n\t\tif (isMarshmallowOrAbove()) {\n\t\t\tint locationMode = Settings.Secure.LOCATION_MODE_OFF;\n\t\t\ttry {\n\t\t\t\tlocationMode = Settings.Secure.getInt(context.getContentResolver(), Settings.Secure.LOCATION_MODE);\n\t\t\t} catch (final Settings.SettingNotFoundException e) {\n\t\t\t\t// do nothing\n\t\t\t}\n\t\t\treturn locationMode != Settings.Secure.LOCATION_MODE_OFF;\n\t\t}\n\t\treturn true;\n\t}", "private boolean isValidLocationFound() {\n return latitudeValue != null && longitudeValue != null;\n }", "public boolean productsTabVerification() {\r\n\t\t\r\n\t\t\r\n\t\twaitUntilPresenceOfElementLocated(ourProductsTab);\r\n\r\n\t\tList<WebElement> list = driver.findElements(By.xpath(\"//a[text()='OUR PRODUCTS']\"));\r\n\t\tif (list != null && !list.isEmpty()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean hasProduct() {\n return productBuilder_ != null || product_ != null;\n }", "@Override\n public boolean isLocationValid(int x, int y)\n {\n return master.isLocationValid(x, y);\n }", "public final boolean inUse()\n{\n\tif (_buildTime > 0)\n\t{\n\t\treturn false;\n\t}\n\treturn (_base.getAvailableQuarters() - _rules.getPersonnel() < _base.getUsedQuarters() ||\n\t\t\t_base.getAvailableStores() - _rules.getStorage() < _base.getUsedStores() ||\n\t\t\t_base.getAvailableLaboratories() - _rules.getLaboratories() < _base.getUsedLaboratories() ||\n\t\t\t_base.getAvailableWorkshops() - _rules.getWorkshops() < _base.getUsedWorkshops() ||\n\t\t\t_base.getAvailableHangars() - _rules.getCrafts() < _base.getUsedHangars());\n}", "@Override\n\tpublic long getLocation() {\n\t\treturn _buySellProducts.getLocation();\n\t}", "@Override\n public boolean checkAvailability(BasketEntryDto basketEntryDto) {\n // Add communication to product micro service here for product validation\n return Boolean.TRUE;\n }", "private void checkLocationPermission() {\n\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n //location permission required\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION}, PERMISSION_FINE_LOCATION);\n\n }else{\n //location already granted\n checkCoarseAddress();\n }\n }", "public boolean use() throws UnavailableObjectException {\r\n\t\tInventory inventory = Game.getInstance().getInventory();\r\n\t\tinventory.take(id);\r\n\t\treturn inventory.available(id);\r\n\t}", "public boolean checkLocations(String location, String range) {\n boolean locationPresent = location != null && !location.isEmpty();\n\n\n if (locationPresent) {\n // Parses the location and range strings into doubles\n String[] locationComponents = location.replaceAll(\" \", \"\").split(\",\");\n latitude = Double.parseDouble(locationComponents[0]);\n longitude = Double.parseDouble(locationComponents[1]);\n desiredRange = Double.parseDouble(range.replace(\"km\", \"\").trim());\n }\n return locationPresent;\n }", "private static boolean checkIfSupplierExists(int supplier_id, Parts part,\r\n\t\t\tData dat) {\r\n\r\n\t\tfor (Supplier sup : dat.getSuppliers_list()) {\r\n\t\t\tif (sup.getID() == supplier_id) {\r\n\t\t\t\t// int i = dat.getSuppliers_list().indexOf(sup);\r\n\t\t\t\tsup.getParts_supplied().add(part);\r\n\t\t\t\t// dat.getSuppliers_list().get(i).getParts_supplied().add(part);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n public boolean isLocationEmpty(Unit unit, XYCoord coords)\n {\n return isLocationEmpty(unit, coords.xCoord, coords.yCoord);\n }", "@Override\n\tpublic boolean checkUniqueSupplierProduct(Integer productId , Integer supplierId ) {\n\t\tloggerService\n\t\t\t\t.logServiceInfo(\"Start checkUniqueSupplierProduct Method with productId and supplierId\"\n\t\t\t\t\t\t+ productId + supplierId);\n\t\ttry {\n\n\t\t\t// SELECT * from PRODUCT_TYPE where NAME like '%s%' and SERVICE_ID =\n\t\t\t// 1;\n\t\t\tString query = \"select model FROM SupplierProduct model where lower(model.productId.id) = \"\n\t\t\t\t\t+ productId + \"and lower ( model.supplierId.id ) = \" + supplierId ;\n\n\t\t\t\n\t\t\tList<ProductType> list = baseDao.findListByQuery(query);\n\t\t\tloggerService\n\t\t\t\t\t.logServiceInfo(\"End checkUniqueSupplierProduct Method\");\n\t\t\treturn list.size() > 0 ? false : true;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tloggerService.logServiceError(\n\t\t\t\t\t\"can't checkUniqueProductWithService\", e);\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n\tpublic void setLocation(long location) {\n\t\t_buySellProducts.setLocation(location);\n\t}", "public boolean verifyCartItem()\n\t{ if (einKaufswagenBtn.isDisplayed())\n\t{\n\t\teinKaufswagenBtn.click();\n\t}\n\tfor (int j=0;j<collectnToStorePrdktIdLst.size();j++)\n\t{\n\t\tString expectedProduct1=collectnToStorePrdktIdLst.get(j);\n\t\tList<WebElement> fndProduct=driver.findElements(By.xpath(\"//form[@id='activeCartViewForm']//div[@class='a-section a-spacing-mini sc-list-body sc-java-remote-feature']//div[@class='a-row sc-list-item sc-list-item-border sc-java-remote-feature']\"));\n\t\tfor (int e=0;e<=fndProduct.size();e++)\n\t\t{\n\t\t\tString actProdkt=fndProduct.get(e).getAttribute(\"data-asin\");\n\t\t\tif (actProdkt.contains(expectedProduct1))\n\t\t\t{\n\t\t\t\tcnt++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tif (cnt==2)\n\t{\n\t\treturn true;\n\t}\n\n\telse\n\t{\n\t\treturn false;\n\t}\n\t}", "@Override\n public boolean isExists(Buyer buyer) {\n return false;\n }", "public boolean isSafe(Location location) {\r\n\r\n\t\tLocation northNeighbor = map.getLocation(location, Direction.NORTH);\r\n\t\tLocation southNeighbor = map.getLocation(location, Direction.SOUTH);\r\n\t\tLocation eastNeighbor = map.getLocation(location, Direction.EAST);\r\n\t\tLocation westNeighbor = map.getLocation(location, Direction.WEST);\r\n\r\n\t\tArrayList<Location> neighbors = new ArrayList<Location>(4);\r\n\t\tneighbors.add(northNeighbor);\r\n\t\tneighbors.add(southNeighbor);\r\n\t\tneighbors.add(eastNeighbor);\r\n\t\tneighbors.add(westNeighbor);\r\n\r\n\t\tif (northNeighbor.getSite().owner == myID && southNeighbor.getSite().owner == myID &&\r\n\t\t\t\teastNeighbor.getSite().owner == myID && westNeighbor.getSite().owner == myID){\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\treturn false;\r\n\r\n\t}", "public boolean contains(Software item){\n return products.contains (item);\n }", "@Override\n public boolean isLocationValid(XYCoord coords)\n {\n return master.isLocationValid(coords);\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Location)) {\r\n return false;\r\n }\r\n Location other = (Location) object;\r\n if ((this.locId == null && other.locId != null) || (this.locId != null && !this.locId.equals(other.locId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "private boolean isLocationAllowed() {\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\r\n\r\n //If permission is granted returning true\r\n if (result == PackageManager.PERMISSION_GRANTED)\r\n return true;\r\n\r\n //If permission is not granted returning false\r\n return false;\r\n }", "public boolean contains(double[] loc, double[] normal){\n double[] r = Vector3DOps.difference(loc, position);\n double proj = Vector3DOps.dot(normal, r);\n double s = Vector3DOps.dot(r, r);\n\n return s - proj*proj<radius*radius;\n\n }", "boolean isGoodLocation(World world, int x, int y, int z);", "boolean hasUserLocationView();", "@Override public boolean isValidated()\n{\n if (location_set.size() == 0 || !have_join) return false;\n\n return true;\n}", "public boolean checkItem () {\r\n\t\tfor (Entity e : getLocation().getWorld().getEntities())\r\n\t\t{\r\n\t\t\tdouble x = e.getLocation().getX();\r\n\t\t\tdouble z = e.getLocation().getZ();\r\n\t\t\tdouble yDiff = getSpawnLocation().getY() - e.getLocation().getY();\r\n \r\n\t\t\tif (yDiff < 0)\r\n\t\t\t\tyDiff *= -1;\r\n\r\n\t\t\tif (x == getSpawnLocation().getX() && yDiff <= 1.5 && z == getSpawnLocation().getZ()) {\r\n \r\n ShowCaseStandalone.slog(Level.FINEST, \"Potential hit on checkItem()\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tItem itemE = (Item)e;\r\n\t\t\t\t\tif (ItemStackHandler.itemsEqual(itemE.getItemStack(), getItemStack(), true)) {\r\n ShowCaseStandalone.slog(Level.FINEST, \"Existing stack: \" + itemE.getItemStack().toString());\r\n itemE.getItemStack().setAmount(1); //Removes duped items, which can occur.\r\n\t\t\t\t\t\tthis.item = itemE;\r\n\t\t\t\t\t\tscs.log(Level.FINER, \"Attaching to existing item.\");\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception ex) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "boolean hasAuvLoc();", "@Override\n protected void checkLocation() {\n // nothing\n }", "public static boolean playerCanUseItem(FSession fSession, Location location, Material material)\r\n {\n if (FactionHandler.isBypassing(fSession))\r\n {\r\n return true;\r\n }\r\n\r\n Faction otherFaction = FactionsUtils.getFaction(location);\r\n\r\n // if the faction is raidable or they're a member, they can do stuff.\r\n if (otherFaction.isRaidable() || otherFaction == fSession.getFaction())\r\n {\r\n return true;\r\n }\r\n\r\n // only continue if we care\r\n if (!useItems.contains(material))\r\n {\r\n return true;\r\n }\r\n\r\n // safezones and warzones behave the same as far as item usage goes.\r\n if (otherFaction.getType() == FactionType.SAFEZONE || otherFaction.getType() == FactionType.WARZONE)\r\n {\r\n DesireHCF.getLangHandler().sendRenderMessage(fSession.getSession(), \"factions.protection.use_items\", true, false);\r\n return false;\r\n }\r\n\r\n // wilderness you can do anything\r\n else if (otherFaction.getType() == FactionType.WILDERNESS)\r\n {\r\n return true;\r\n }\r\n\r\n // relationship counseling\r\n FactionRelationship rel = otherFaction.getRelationshipTo(fSession.getFaction());\r\n if (!rel.canBuild())\r\n {\r\n DesireHCF.getLangHandler().sendRenderMessage(fSession.getSession(), \"factions.protection.use_items\", true, false);\r\n return false;\r\n }\r\n\r\n return true;\r\n }", "void checkInventoryExists() {\n\n MrnInventory[] checkInventory =\n new MrnInventory(survey.getSurveyId()).get();\n inventoryExists = false;\n if (checkInventory.length > 0) {\n inventoryExists = true;\n } // if (checkInventory.length > 0)\n\n\n }", "@java.lang.Override\n public boolean hasRegionLocationMatrix() {\n return regionLocationMatrix_ != null;\n }", "private boolean knowMyLocation(LatLng myloc) {\n\t\tboolean isindoor = true;\n\t\tif((myloc.latitude>42.395||myloc.latitude<42.393) && (myloc.longitude>-72.528||myloc.longitude<-72.529)){\n\t\t\tisindoor = false;\n\t\t}\n\t\treturn isindoor;\n\t}", "public synchronized static boolean isInsideSecureLocation() {\n return prefs.getBoolean(IN_REGION, false);\n }", "public boolean isValidProductId(String pProductId, String pSiteId) throws RepositoryException{\n MutableRepository rep = getCatalogRepository();\n RepositoryItem it = rep.getItem(pProductId, getProductItemName()); \n if (it != null) { \n String siteIds = it.getPropertyValue(SITE_IDS_PARAMETER).toString(); \n if (siteIds.contains(pSiteId)) {\n return true;\n } \n }\n return false;\n }", "private boolean uploadLocation(Location l){\n\n long time = l.getTime();\n double longd = l.getLongitude();\n double lat = l.getLatitude();\n float spd = l.getSpeed(); //Meters per second\n double alt = l.getAltitude(); //Meters\n\n //If there is no privacy set or the user is currently outside the privacy circle upload the position\n if(privacyLocation == null || l.distanceTo(privacyLocation) > privacyRadius ) {\n\n //If we aren't already uploading the given location then continue with the upload\n if(!inProgress.contains(l)) {\n //Store the location as in progress, this will be removed after a successful upload\n inProgress.add(l);\n\n //Send to server\n LocationDetails ld = new LocationDetails(l, time, url, upload, this);\n Uploader uploader = new Uploader();\n uploader.execute(ld);\n\n //Update the UI with broadcast message:\n Intent intent = new Intent(AbstractTrackerActivity.BROADCAST_EVENT);\n intent.putExtra(AbstractTrackerActivity.BROADCAST_LATITUDE, lat);\n intent.putExtra(AbstractTrackerActivity.BROADCAST_LONGDITUDE, longd);\n intent.putExtra(AbstractTrackerActivity.BROADCAST_SPEED, spd);\n intent.putExtra(AbstractTrackerActivity.BROADCAST_ALTITUDE, alt);\n LocalBroadcastManager.getInstance(this).sendBroadcast(intent);\n\n return true;\n }\n //We're already in the process of uploading this one, do nothing\n else{\n return false;\n }\n }\n //If we're in the privacy circle then don't upload\n else{\n Toast.makeText(getApplicationContext(), getString(R.string.toast_privacy_zone), Toast.LENGTH_SHORT).show();\n return false;\n }\n }", "public boolean isPlayerAllowedToUseThisHere(Player player, Location location, Material material)\n \t{\n \t\treturn FactionsPlayerListener.playerCanUseItemHere(player, location, material, true);\n \t}", "@Override\n\tpublic boolean hasResource(ResourcePackType p_195764_1_, ResourceLocation p_195764_2_) {\n\t\treturn false;\n\t}", "boolean hasCompleteStore();", "public boolean containsInformation(Position position){\n return savedMap[position.getLatitude()][position.getLongitude()] != -1;\n }", "public boolean checkAvailability(int num_used) {\n return num_used != this.num_uses;\n }", "boolean hasUses();", "boolean hasUsage();", "private boolean isLocationEnabled() {\n LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n return locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER) || locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n }", "public boolean hasLocation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isExisting() throws Exception\r\n\t\t{\r\n\t\tRouteGroup myR = (RouteGroup) myRouteGroup.get();\r\n\t\tthis.UUID = myR.getUUID();\r\n\t\t\r\n\t\tVariables.getLogger().debug(\"Item \"+this.name+\" already exist in the CUCM\");\r\n\t\treturn true;\r\n\t\t}", "private boolean maxLocationsReached() {\n Query q = new Query(\"Location\");\n int numOfEntities = ds.prepare(q).countEntities();\n return (numOfEntities >= MAX_LOCATIONS);\n }", "private void locate() {\n possibleLocations[0][0] = false;\n possibleLocations[0][1] = false;\n possibleLocations[1][0] = false;\n do {\n location.randomGenerate();\n } while (!possibleLocations[location.y][location.x]);\n }" ]
[ "0.6602385", "0.64715296", "0.64715296", "0.62492967", "0.6103133", "0.6031783", "0.59648377", "0.5909889", "0.58031434", "0.5797876", "0.5772252", "0.5726362", "0.5699897", "0.5665044", "0.5664258", "0.56535745", "0.5636929", "0.5636234", "0.5626882", "0.5618588", "0.5587164", "0.558426", "0.554183", "0.5526299", "0.55235076", "0.54977417", "0.54909194", "0.54819584", "0.54337895", "0.5425694", "0.5422415", "0.5413871", "0.541147", "0.54111725", "0.5408203", "0.54063725", "0.53980625", "0.5387311", "0.5387311", "0.5381816", "0.5377782", "0.5377476", "0.53770196", "0.5365471", "0.5359623", "0.5358128", "0.53432333", "0.53402007", "0.5338276", "0.53358763", "0.53254104", "0.53218853", "0.53168815", "0.5306373", "0.53053933", "0.52985287", "0.5294324", "0.5282626", "0.5265671", "0.52566504", "0.5235435", "0.5231618", "0.5224048", "0.52217054", "0.5217675", "0.5217176", "0.5216943", "0.5214921", "0.5210707", "0.520844", "0.51960254", "0.51923573", "0.51913315", "0.51678437", "0.5166785", "0.51551384", "0.51544625", "0.51522547", "0.51353925", "0.51352185", "0.51341164", "0.51339656", "0.51327354", "0.5131328", "0.5128683", "0.51262224", "0.5119454", "0.51140785", "0.511259", "0.5104059", "0.50971985", "0.5091499", "0.5084925", "0.508093", "0.5070767", "0.5068027", "0.5066264", "0.50607026", "0.5056371", "0.5053954" ]
0.6848571
0
Sets the primary key of this vcms status.
public void setPrimaryKey(long primaryKey);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dmGtStatus.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_lineaGastoCategoria.setPrimaryKey(primaryKey);\n\t}", "public void setIdkey(String pIdkey){\n this.idkey = pIdkey;\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dlSyncEvent.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_state.setPrimaryKey(primaryKey);\n\t}", "public void setStatusId(long statusId);", "@Override\n public void setPrimaryKey(long primaryKey) {\n _partido.setPrimaryKey(primaryKey);\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_changesetEntry.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(long primaryKey) {\n this.primaryKey = primaryKey;\n }", "public void setPrimaryKey(String primaryKey);", "public void setPrimaryKey(String primaryKey);", "public void setPrimaryKey(String primaryKey);", "public void setStatusId(int statusId) {\n _statusId = statusId;\n }", "public void setIdStatus(String idStatus) {\n this.idStatus = idStatus;\n }", "public void setPrimaryKey(long primaryKey) {\n\t\t_tempNoTiceShipMessage.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(VLegalFORelPK primaryKey);", "@Override\n\tpublic void setPrimaryKey(int primaryKey) {\n\t\t_keHoachKiemDemNuoc.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(int primaryKey);", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_userSync.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_contentupdate.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(String primaryKey) {\r\n this.primaryKey = primaryKey;\r\n }", "public void setPrimaryKey(long primaryKey) {\n _sTransaction.setPrimaryKey(primaryKey);\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_candidate.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(int primaryKey) {\n\t\tthis.primaryKey = primaryKey;\n\t}", "public void setPrimaryKey(String primaryKey) {\r\n\t\tthis.primaryKey = primaryKey;\r\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_userTracker.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(String primaryKey) {\n this.primaryKey = primaryKey;\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_scienceApp.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfShooterAffiliationChrono.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_phieugiahan.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(long primaryKey) {\n _courseImage.setPrimaryKey(primaryKey);\n }", "public void setPrimaryKey(String primaryKey) {\n getBasicChar().setPrimaryKey(primaryKey);\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\tmodel.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\tmodel.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\tmodel.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_permissionType.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(String primaryKey) {\n\t\tthis.primaryKey = primaryKey;\n\t}", "public void setPrimaryKey(long primaryKey) {\n\t\t_telefonoSolicitudProducto.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(long primaryKey) {\n\t\t_forumUser.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_pnaAlerta.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_paper.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfTournament.setPrimaryKey(primaryKey);\n\t}", "public abstract void setStatusId(long statusId);", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_employee.setPrimaryKey(primaryKey);\n\t}", "@Override\n public void setPrimaryKey(java.lang.Object key) {\n\n mnDbmsType = ((int[]) key)[0];\n mnPkYearId = ((int[]) key)[1];\n mnPkTypeCostObjectId = ((int[]) key)[2];\n mnPkRefCompanyBranchId = ((int[]) key)[3];\n mnPkRefReferenceId = ((int[]) key)[4];\n mnPkRefEntityId = ((int[]) key)[5];\n mnPkBizPartnerId = ((int[]) key)[6];\n mtDbmsDateStart = ((java.util.Date[]) key)[7];\n mtDbmsDateEnd = ((java.util.Date[]) key)[8];\n }", "@Override\n\tpublic void setResourcePrimKey(long resourcePrimKey) {\n\t\t_changesetEntry.setResourcePrimKey(resourcePrimKey);\n\t}", "public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_buySellProducts.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_second.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_news_Blogs.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(int primaryKey) {\n\t\t_dmHistoryMaritime.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dictData.setPrimaryKey(primaryKey);\n\t}", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public void setPrimaryKey(boolean isPrimary) {\n\t\tm_primarykey = isPrimary;\n\t\tif (isPrimary)\n\t\t\tsetNullable(false);\n\t}", "@Override\n\tpublic void setPrimaryKey(int primaryKey) {\n\t\t_locMstLocation.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(String key) \n {\n setNewsletterId(Integer.parseInt(key));\n }", "public void setPrimaryKey(ObjectKey key)\n \n {\n setNewsletterId(((NumberKey) key).intValue());\n }", "@Override\n public void setPrimaryKey(int primaryKey) {\n _entityCustomer.setPrimaryKey(primaryKey);\n }", "public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_primarySchoolStudent.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(String key) throws TorqueException\n {\n setPrimaryKey(new ComboKey(key));\n }", "@Override\n public void setPrimaryKey(long primaryKey) {\n _usersCatastropheOrgs.setPrimaryKey(primaryKey);\n }", "public void setPrimaryKey(ObjectKey key) throws TorqueException\n {\n SimpleKey[] keys = (SimpleKey[]) key.getValue();\n SimpleKey tmpKey = null;\n setMailId(((NumberKey)keys[0]).intValue());\n setReceiverId(((NumberKey)keys[1]).intValue());\n }", "public final void setKeyId(int keyId)\r\n\t{\r\n\t\tthis.keyId = keyId;\r\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dmGTShipPosition.setPrimaryKey(primaryKey);\n\t}", "public void setKeyId(String keyId) {\n setProperty(KEY_ID, keyId);\n }", "public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_imageCompanyAg.setPrimaryKey(primaryKey);\n\t}", "public void setIdEstatusClave(int idEstatusClave) {\r\n\t\tthis.idEstatusClave = idEstatusClave;\r\n\t}", "@Override\n\tpublic void setClassPK(long classPK) {\n\t\t_changesetEntry.setClassPK(classPK);\n\t}", "public void setKey( Long key ) {\n this.key = key ;\n }", "public void setDossierStatusId(long dossierStatusId);", "public Builder setPrimarySnId(int value) {\n \n primarySnId_ = value;\n onChanged();\n return this;\n }", "public Builder setPrimarySnId(int value) {\n \n primarySnId_ = value;\n onChanged();\n return this;\n }", "public void setPknum(Integer pknum) {\n this.pknum = pknum;\n }", "public int getStatusId() {\n return _statusId;\n }", "public void setClassPK(long classPK) {\n this.classPK = classPK;\n }", "public void setConnectionKey(long value) {\n\t\tthis.connectionKey = value;\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_expandoColumn.setPrimaryKey(primaryKey);\n\t}", "public void setIdentifierKey(java.lang.String param) {\r\n localIdentifierKeyTracker = true;\r\n\r\n this.localIdentifierKey = param;\r\n\r\n\r\n }", "public void setPrimaryKey(\n\t\tcom.agbar.service.service.persistence.PnaNoticiaGrupoLectorPK primaryKey) {\n\t\t_pnaNoticiaGrupoLector.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(\n\t\torg.kisti.edison.science.service.persistence.ScienceAppPaperPK primaryKey) {\n\t\t_scienceAppPaper.setPrimaryKey(primaryKey);\n\t}" ]
[ "0.7039508", "0.66226876", "0.6602422", "0.6503189", "0.64841753", "0.64715385", "0.6452306", "0.6425876", "0.6414658", "0.6394547", "0.6394547", "0.6394547", "0.63649833", "0.63268125", "0.6320981", "0.6298696", "0.6280778", "0.6274412", "0.6251746", "0.6250901", "0.6229612", "0.6202916", "0.62010974", "0.61896193", "0.6185592", "0.6177775", "0.6166942", "0.61638784", "0.6157361", "0.61567", "0.6150621", "0.61437726", "0.6136034", "0.6136034", "0.6136034", "0.61236936", "0.61080813", "0.6102161", "0.608585", "0.6054913", "0.60482574", "0.60467595", "0.60129964", "0.60023636", "0.5997298", "0.59702504", "0.59553057", "0.59553057", "0.59553057", "0.5936293", "0.59259367", "0.59176487", "0.5912288", "0.5890252", "0.5887206", "0.5887206", "0.5887206", "0.5870855", "0.58600694", "0.5852628", "0.58451146", "0.58335817", "0.58274084", "0.581745", "0.58031225", "0.57757163", "0.57724667", "0.5770623", "0.5748707", "0.57256037", "0.5696853", "0.56841075", "0.5667838", "0.566141", "0.5624508", "0.5624508", "0.5596658", "0.55862224", "0.55674654", "0.5538809", "0.5519796", "0.5502175", "0.54818094", "0.5481488" ]
0.6386522
28
Returns the status ID of this vcms status.
public long getStatusId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getStatusId() {\n return getProperty(Property.STATUS_ID);\n }", "public int getStatusId() {\n return _statusId;\n }", "public String getIdStatus() {\n return idStatus;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public long getStatus() {\r\n return status;\r\n }", "public abstract long getStatusId();", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public Long getStatus() {\n return this.Status;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus(){\r\n\t\treturn this.status;\r\n\t}", "public String getStatus() {\n return status;\n }", "public int getStatus ()\n {\n return status;\n }", "public int getStatus ()\n {\n return status;\n }", "@Override\n\tpublic long getId() {\n\t\treturn _dmGtStatus.getId();\n\t}", "public int getStatus()\r\n\t{\r\n\t\treturn this.m_status;\r\n\t}", "public Integer getStatus() {\n\t\treturn status;\n\t}", "public Integer getStatus() {\n\t\treturn status;\n\t}", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public Integer getStatus() {\r\n return status;\r\n }", "public Integer getStatus() {\r\n return status;\r\n }" ]
[ "0.82242715", "0.80571854", "0.7467378", "0.7187053", "0.7187053", "0.7187053", "0.7187053", "0.7129875", "0.7129875", "0.7129875", "0.7129875", "0.7129875", "0.7129875", "0.7129875", "0.70190185", "0.70190185", "0.70190185", "0.69858956", "0.69858956", "0.69858956", "0.69858956", "0.69858956", "0.69858956", "0.69858956", "0.69858956", "0.69858956", "0.6973537", "0.69580483", "0.69522816", "0.69482553", "0.69482553", "0.69476205", "0.69476205", "0.69476205", "0.69476205", "0.69476205", "0.69476205", "0.69476205", "0.69476205", "0.69224805", "0.69224805", "0.69224805", "0.69223255", "0.69223255", "0.69223255", "0.69223255", "0.69223255", "0.69223255", "0.69223255", "0.69182664", "0.69182664", "0.69182664", "0.69182664", "0.69182664", "0.69182664", "0.69182664", "0.69182664", "0.69182664", "0.6917053", "0.68995136", "0.689633", "0.689633", "0.689633", "0.689633", "0.689633", "0.68598205", "0.68388444", "0.6837678", "0.6837678", "0.6807295", "0.6807124", "0.6798309", "0.6798309", "0.67946976", "0.67946976", "0.67946976", "0.67946976", "0.67946976", "0.67946976", "0.67946976", "0.67946976", "0.67946976", "0.67946976", "0.67946976", "0.67946976", "0.67946976", "0.67946976", "0.67946976", "0.67946976", "0.67946976", "0.67946976", "0.67946976", "0.67946976", "0.6788959", "0.6788959", "0.6788959", "0.6788959", "0.6788959", "0.67860365", "0.67860365" ]
0.76191527
2
Sets the status ID of this vcms status.
public void setStatusId(long statusId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdStatus(String idStatus) {\n this.idStatus = idStatus;\n }", "public void setStatusId(int statusId) {\n _statusId = statusId;\n }", "public void setStatus(long status) {\r\n this.status = status;\r\n }", "public abstract void setStatusId(long statusId);", "public void setStatus(Integer status)\n {\n data().put(_STATUS, status);\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(int status) {\n STATUS = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUS$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATUS$12);\n }\n target.setIntValue(status);\n }\n }", "public void setStatus(int status)\r\n\t{\r\n\t\tthis.m_status = status;\r\n\t}", "public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus( int pStatus )\r\n {\r\n mStatus = pStatus;\r\n }", "public void setStatus(String status) {\n mBundle.putString(KEY_STATUS, status);\n }", "public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }", "public void setStatus(Status status) {\r\n this.status = status;\r\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "@Override\n\tpublic void setId(long id) {\n\t\t_dmGtStatus.setId(id);\n\t}", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(int status) {\n\t\tthis.status = (byte) status;\n\t\trefreshStatus();\n\t}", "public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }", "public void setStatus(Status status)\n {\n this.status = status;\n }", "public void setStatus(String status) {\n statusLabel.setText(status);\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(@NotNull Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(String status)\n {\n setValue(\"status\", status);\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(STATUS status) {\n this.status = status;\n }", "public void setStatus(int newStatus) {\n status = newStatus;\n }", "public void setStatus(String _status) {\n this._status = _status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n if (STATUS_ENUM.contains(status)) {\n this.status = status;\n } else {\n throw new IllegalArgumentException(\"Invalid Status value: \" + status);\n }\n }", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(final String status) {\n this.status = status;\n }", "public void setStatus(String status) { this.status = status; }", "public void setStatus(java.lang.String status) {\r\n this.status = status;\r\n }", "public void setStatus(int status);", "public void setStatus(int status);", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }", "public void setStatus(java.lang.String status) {\n this.status = status;\n }", "public void setStatus(java.lang.String status) {\n this.status = status;\n }", "public void setStatus(Long Status) {\n this.Status = Status;\n }", "public void setStatus (java.lang.String status) {\r\n\t\tthis.status = status;\r\n\t}", "@Override\n\tpublic void setStatus(int status) {\n\t\tmodel.setStatus(status);\n\t}", "@Override\n\tpublic void setStatus(int status) {\n\t\tmodel.setStatus(status);\n\t}", "void setStatus(java.lang.String status);", "public void setStatus(Status vmStatus) {\n this.vmStatus = vmStatus;\n }", "public void setStatus(Long messageUid, String status);" ]
[ "0.79362994", "0.776962", "0.70378226", "0.689552", "0.68954706", "0.6804938", "0.6804938", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.67667013", "0.6764161", "0.6749192", "0.6749192", "0.6732652", "0.6723104", "0.6697677", "0.66863215", "0.66863215", "0.6685563", "0.66688627", "0.6627213", "0.6591891", "0.65872276", "0.65872276", "0.6580861", "0.65707713", "0.65707713", "0.65631574", "0.65615046", "0.6559169", "0.6554961", "0.65493196", "0.6535072", "0.6532037", "0.6532037", "0.6532037", "0.6532037", "0.6524769", "0.6512429", "0.6512429", "0.6512429", "0.6512429", "0.6512429", "0.6512429", "0.6512429", "0.6512429", "0.6512429", "0.6512429", "0.6512429", "0.6512429", "0.6512429", "0.6512429", "0.6512429", "0.6512429", "0.6509101", "0.64927423", "0.6488855", "0.6474393", "0.6474393", "0.6473768", "0.6471749", "0.6471749", "0.6471749", "0.6471749", "0.6471749", "0.64672357", "0.64528364", "0.64403474", "0.6435822", "0.6435822", "0.6432056", "0.6432056", "0.6432056", "0.6432056", "0.64285624", "0.64117825", "0.64117825", "0.6407545", "0.63841677", "0.63775146", "0.63775146", "0.6354555", "0.63523847", "0.6351903" ]
0.77831054
1
Returns the company ID of this vcms status.
@Override public long getCompanyId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "public Long getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "public String getCompanyId() {\r\n return companyId;\r\n }", "public String getCompanyId() {\r\n return companyId;\r\n }", "public String getCompanyId() {\n return companyId;\n }", "public long getCompanyId() {\n return companyId;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}", "public Long getCompanyId() {\n return companyId;\n }", "public Integer getCompanyId() {\n return companyId;\n }", "public Integer getCompanyId() {\n return companyId;\n }", "public Integer getCompanyId() {\n return this.companyId;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _changesetEntry.getCompanyId();\n\t}", "public String getCompanyId()\n {\n return companyId;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _userTracker.getCompanyId();\n\t}", "public int getCompanyId() {\n return companyId;\n }", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _scienceApp.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _dictData.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _employee.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _esfTournament.getCompanyId();\n\t}", "public String getCompanyCd() {\r\n return companyCd;\r\n }", "public String getCompanyCd() {\r\n return companyCd;\r\n }", "@JsonProperty(\"companyStatus\")\n @Valid\n public String getCompanyStatus() {\n return companyStatus;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _paper.getCompanyId();\n\t}", "public String getSysCompanyId() {\n return sysCompanyId;\n }", "@Override\n public long getCompanyId() {\n return _partido.getCompanyId();\n }", "public java.lang.Integer getCompanyheaderId () {\n\t\treturn companyheaderId;\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _second.getCompanyId();\n\t}", "public java.lang.Integer getCompany() {\n\treturn company;\n}", "public String getCompanyCode() {\n return companyCode;\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _expandoColumn.getCompanyId();\n\t}", "public String getCompany() {\r\n\t\treturn company;\r\n\t}", "public String getCompany() {\n\t\treturn company;\n\t}", "public String getCompany() {\n\t\treturn company;\n\t}", "public String getCompany()\n {\n return (String) getProperty(PropertyIDMap.PID_COMPANY);\n }", "public Integer getCarCompanyCd() {\n\t\treturn carCompanyCd;\n\t}", "public java.lang.Integer getCompanycode() {\n\treturn companycode;\n}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _permissionType.getCompanyId();\n\t}", "public String getCompany() {\n return company;\n }", "public void setCompanyId(Integer value) {\n this.companyId = value;\n }", "public String getCompany() {\n return (String) get(\"company\");\n }", "public static final String getCompany() { return company; }", "public java.lang.String getCompany() {\n java.lang.Object ref = company_;\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 company_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getCompany() {\n return company;\n }", "public String getCompany() {\n return company;\n }", "public String getCompany()\r\n {\r\n return (m_company);\r\n }", "@java.lang.Override\n public java.lang.String getCompany() {\n java.lang.Object ref = company_;\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 company_ = s;\n return s;\n }\n }", "public Company getCompany() {\n\t\treturn company;\n\t}", "public String getStatusId() {\n return getProperty(Property.STATUS_ID);\n }", "public String getcompanyURL() {\n return companyURL;\n }", "public Long getCompId() {\n return compId;\n }", "public Long getCompId() {\n return compId;\n }", "public String getCompanyName() {\r\n\t\treturn companyName;\r\n\t}", "public String getCompanyName() {\n\t\treturn companyName;\n\t}", "public String getCompanyName() {\r\n\r\n\t\treturn this.companyName;\r\n\t}", "public Integer getCompId() {\n return compId;\n }", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public Integer getCompid() {\n return compid;\n }", "public void setCompanyId(long companyId) {\n this.companyId = companyId;\n }", "public String getCompany()\n\t{\n\t\treturn getCompany( getSession().getSessionContext() );\n\t}", "public String getCompanyName() {\r\n return companyName;\r\n }", "public String getCompanyName() {\r\n return companyName;\r\n }", "public String getCompanyName() {\r\n return companyName;\r\n }", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\n return companyName;\n }", "public static String getCompanyName() {\n\t\treturn CompanyName;\n\t}", "public java.lang.String getCompanyAgId() {\n\t\treturn _imageCompanyAg.getCompanyAgId();\n\t}", "public int getStatusId() {\n return _statusId;\n }", "public void setCompanyId(Integer companyId) {\n this.companyId = companyId;\n }", "public void setCompanyId(Integer companyId) {\n this.companyId = companyId;\n }", "public String getCompoId() {\n\t return compoId;\r\n\t }", "public void setCompanyId(int companyId) {\n this.companyId = companyId;\n }", "public Integer getCommodityStatus() {\n return commodityStatus;\n }", "public String getContactCompany() {\n return contactCompany;\n }", "public String getPrimaryCompanyName() {\r\n return primaryCompanyName;\r\n }", "public void setCompanyId(String companyId) {\r\n this.companyId = companyId;\r\n }", "public void setCompanyId(String companyId) {\r\n this.companyId = companyId;\r\n }", "public long getStatusId();", "public com.google.protobuf.ByteString\n getCompanyBytes() {\n java.lang.Object ref = company_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n company_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getCompany(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, COMPANY);\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCompanyBytes() {\n java.lang.Object ref = company_;\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 company_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getCompanyname() {\n return companyname;\n }", "public void setCompanyId(Long companyId) {\n this.companyId = companyId;\n }" ]
[ "0.77015495", "0.7664906", "0.7588451", "0.7588451", "0.7546671", "0.75388587", "0.75150657", "0.75150657", "0.75150657", "0.7460279", "0.7451875", "0.7451875", "0.7447211", "0.7411139", "0.72743857", "0.71936804", "0.7182287", "0.71142054", "0.71142054", "0.71142054", "0.71142054", "0.71142054", "0.7107824", "0.706462", "0.7043509", "0.7017821", "0.70160365", "0.70160365", "0.6942542", "0.6890232", "0.68879706", "0.6882012", "0.68509626", "0.6818828", "0.6813881", "0.67741305", "0.67722964", "0.67722964", "0.67572886", "0.67245835", "0.67155564", "0.67155564", "0.6653534", "0.66439414", "0.66322637", "0.6630944", "0.66273147", "0.6566295", "0.6520885", "0.64770913", "0.64764494", "0.64381903", "0.64381903", "0.6408597", "0.6331523", "0.6315868", "0.63142437", "0.6291585", "0.6282043", "0.6282043", "0.6266952", "0.6261125", "0.62522054", "0.6243794", "0.62220544", "0.62220544", "0.62220544", "0.62220544", "0.62220544", "0.621821", "0.62038815", "0.61859006", "0.6184635", "0.6184635", "0.6184635", "0.61782646", "0.61782646", "0.61782646", "0.61782646", "0.6166419", "0.6142697", "0.6139287", "0.6132194", "0.6132194", "0.60942477", "0.60924035", "0.60889685", "0.60749197", "0.6071408", "0.60554975", "0.60554975", "0.605069", "0.6023417", "0.6018264", "0.6003356", "0.6002871", "0.5995121" ]
0.71423984
19
Sets the company ID of this vcms status.
@Override public void setCompanyId(long companyId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCompanyId(Integer value) {\n this.companyId = value;\n }", "public void setCompanyId(long companyId) {\n this.companyId = companyId;\n }", "public void setCompanyId(int companyId) {\n this.companyId = companyId;\n }", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(String companyId) {\r\n this.companyId = companyId;\r\n }", "public void setCompanyId(String companyId) {\r\n this.companyId = companyId;\r\n }", "public void setCompanyId(Integer companyId) {\n this.companyId = companyId;\n }", "public void setCompanyId(Integer companyId) {\n this.companyId = companyId;\n }", "@Override\n public void setCompanyId(long companyId) {\n _partido.setCompanyId(companyId);\n }", "@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_changesetEntry.setCompanyId(companyId);\n\t}", "public void setCompanyId(Long companyId) {\n this.companyId = companyId;\n }", "@Override\n\tpublic void setCompanyId(long companyId) {\n\t\tmodel.setCompanyId(companyId);\n\t}", "@Override\n\tpublic void setCompanyId(long companyId) {\n\t\tmodel.setCompanyId(companyId);\n\t}", "@Override\n\tpublic void setCompanyId(long companyId) {\n\t\tmodel.setCompanyId(companyId);\n\t}", "@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_userTracker.setCompanyId(companyId);\n\t}", "public void setCompanyId(Long companyId) {\r\n\t\tthis.companyId = companyId;\r\n\t}", "public void setCompanyId(String companyId) {\r\n\t\tthis.companyId = companyId;\r\n\t}", "@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_esfTournament.setCompanyId(companyId);\n\t}", "@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_scienceApp.setCompanyId(companyId);\n\t}", "public void setCompanyId(String companyId) {\n this.companyId = companyId == null ? null : companyId.trim();\n }", "@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_second.setCompanyId(companyId);\n\t}", "public String getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "public Long getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "public void setCompany(java.lang.Integer newCompany) {\n\tcompany = newCompany;\n}", "@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_employee.setCompanyId(companyId);\n\t}", "@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_dictData.setCompanyId(companyId);\n\t}", "@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_paper.setCompanyId(companyId);\n\t}", "public String getCompanyId() {\r\n return companyId;\r\n }", "public String getCompanyId() {\r\n return companyId;\r\n }", "public void setCompany(String company)\r\n {\r\n m_company = company;\r\n }", "public String getCompanyId() {\n return companyId;\n }", "@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_permissionType.setCompanyId(companyId);\n\t}", "public long getCompanyId() {\n return companyId;\n }", "public Long getCompanyId() {\n return companyId;\n }", "public void setCompany(Company aCompany) {\n company = aCompany;\n }", "@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_expandoColumn.setCompanyId(companyId);\n\t}", "public Integer getCompanyId() {\n return companyId;\n }", "public Integer getCompanyId() {\n return companyId;\n }", "public void setCompany(String company) {\n this.company = company;\n }", "public void setCompany(String company) {\r\n\t\tthis.company = company;\r\n\t}", "public Integer getCompanyId() {\n return this.companyId;\n }", "public void setCompany(String company) {\n\t\tthis.company = company;\n\t}", "public void setCompanycode(java.lang.Integer newCompany) {\n\tcompanycode = newCompany;\n}", "public void setCompany(String company) {\n\t\tthis.company = StringUtils.trimString( company );\n\t}", "public String getCompanyId()\n {\n return companyId;\n }", "public int getCompanyId() {\n return companyId;\n }", "public void setCompanyheaderId (java.lang.Integer companyheaderId) {\n\t\tthis.companyheaderId = companyheaderId;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}", "@JsonSetter(\"company_id\")\n public void setCompanyId (String value) { \n this.companyId = value;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}", "public void setCompany(final String value)\n\t{\n\t\tsetCompany( getSession().getSessionContext(), value );\n\t}", "void setAuditingCompany(ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData auditingCompany);", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _changesetEntry.getCompanyId();\n\t}", "void setHasAuditingCompany(ch.crif_online.www.webservices.crifsoapservice.v1_00.AuditingCompanyStatus.Enum hasAuditingCompany);", "public void setSrcCompany(String value) {\r\n setAttributeInternal(SRCCOMPANY, value);\r\n }", "public void setCompanyCd(String companyCd) {\r\n this.companyCd = companyCd;\r\n }", "public void setCompanyCd(String companyCd) {\r\n this.companyCd = companyCd;\r\n }", "@Override\r\n\tpublic void setCompanyData(RentCompanyData companyData) {\n\r\n\t}", "void xsetHasAuditingCompany(ch.crif_online.www.webservices.crifsoapservice.v1_00.AuditingCompanyStatus hasAuditingCompany);", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId();", "public void setCompanyName(String companyName) {\r\n this.companyName = companyName;\r\n }", "public void setCompanyName(String companyName) {\r\n this.companyName = companyName;\r\n }", "public void setCompany(Company company, Context context) {\n // TODO: Perform networking operations here to upload company to database\n this.company = company;\n invoiceController = new InvoiceController(context, company);\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _userTracker.getCompanyId();\n\t}", "public void setCompanyName(String companyName) {\n this.companyName = companyName;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _scienceApp.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _esfTournament.getCompanyId();\n\t}", "public void setCompany(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, COMPANY,value);\n\t}", "void setCompanyBaseData(ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData companyBaseData);", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _dictData.getCompanyId();\n\t}", "public void setCompnayNum(String comnayNum) {\n this.companyNum = FileUtils.hexStringFromatByF(10, \"\");\n }", "public Builder setCompany(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n company_ = value;\n onChanged();\n return this;\n }", "@JsonProperty(\"companyStatus\")\n @Valid\n public String getCompanyStatus() {\n return companyStatus;\n }", "public void setCompany(SSNewCompany iCompany) {\n this.iCompany = iCompany;\n\n iTaxRate1.setValue( iCompany.getTaxRate1() );\n iTaxRate2.setValue( iCompany.getTaxRate2() );\n iTaxRate3.setValue( iCompany.getTaxRate3() );\n }", "public void setContactCompany(String contactCompany) {\n this.contactCompany = contactCompany;\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }" ]
[ "0.7635744", "0.7458757", "0.744766", "0.739295", "0.739295", "0.739295", "0.739295", "0.739295", "0.73099256", "0.73099256", "0.7298405", "0.7298405", "0.72365904", "0.72317725", "0.7205806", "0.71807986", "0.71807986", "0.71807986", "0.7163421", "0.70374423", "0.6984424", "0.69572496", "0.6945393", "0.6930657", "0.6890969", "0.6838141", "0.6798467", "0.67658746", "0.67442226", "0.6743393", "0.6741061", "0.6720482", "0.6720482", "0.6643846", "0.6631476", "0.66137815", "0.65574366", "0.6536765", "0.65146345", "0.65042275", "0.6499401", "0.6499401", "0.64928794", "0.64855504", "0.64239395", "0.64151406", "0.63899124", "0.6302374", "0.6291592", "0.6273228", "0.6257262", "0.62164956", "0.6186897", "0.6186897", "0.6186897", "0.61820817", "0.6120978", "0.60967195", "0.60552657", "0.60353816", "0.6029651", "0.6029651", "0.6000356", "0.59852463", "0.5934216", "0.5934216", "0.5934216", "0.5934216", "0.5929719", "0.5929719", "0.5924364", "0.5915019", "0.58632135", "0.58386487", "0.5830987", "0.5823977", "0.5813412", "0.5803294", "0.579041", "0.5782695", "0.57748646", "0.57640654", "0.57583666", "0.57487154", "0.57487154", "0.57487154", "0.57487154", "0.57487154", "0.57487154", "0.57487154", "0.57487154", "0.57487154", "0.57487154", "0.57487154", "0.57487154", "0.57487154", "0.57487154" ]
0.7478215
3
Returns the group ID of this vcms status.
public long getGroupId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getGroup_id() {\n return group_id;\n }", "public Long getGroupID()\n {\n return groupID;\n }", "public int getIdGroup() {\n return idGroup;\n }", "public int getGroupID() {\n return groupID;\n }", "public String getGroupId() {\n\t\treturn groupId;\n\t}", "public long getGroupId() {\n return groupId;\n }", "public int getGroup() {\n return group;\n }", "public Long getGroupId() {\n\t\treturn groupId;\n\t}", "public int getGroupId() {\n return groupId;\n }", "public int getGroupId() {\n return groupId;\n }", "public String getAdGroupStatus() {\r\n return adGroupStatus;\r\n }", "public String getGroupId()\n {\n return groupId;\n }", "public String getGroupId() {\n\t\treturn this.groupId;\n\t}", "public Integer getGroupId() {\r\n return groupId;\r\n }", "public Integer getGroupId() {\n return groupId;\n }", "public Integer getGroupId() {\n return groupId;\n }", "public Long getGroupId() {\n return groupId;\n }", "public String getSGroupID() {\n return sGroupID;\n }", "public String getClGrpId() {\r\n return clGrpId;\r\n }", "public ID getGroupID() {\n\treturn groupID;\n }", "public Long getGroupID() {\n return this.GroupID;\n }", "public Integer getGroupId() {\n return (Integer) get(1);\n }", "public String getClGrpId() {\r\n\t\treturn clGrpId;\r\n\t}", "@Override\n\tpublic long getGroupId() {\n\t\treturn model.getGroupId();\n\t}", "@Override\n\tpublic long getGroupId() {\n\t\treturn model.getGroupId();\n\t}", "@Override\n\tpublic long getGroupId() {\n\t\treturn model.getGroupId();\n\t}", "public long getGroup()\r\n { return group; }", "public Number getGroupId() {\r\n\t\treturn (this.groupId);\r\n\t}", "public String getGroupUuid() {\n\t\treturn groupUuid;\n\t}", "java.lang.String getGroupId();", "java.lang.String getGroupId();", "public String groupId() {\n return this.groupId;\n }", "Integer getGroupId();", "String getGroupId();", "String getGroupId();", "public String getGroup ()\n {\n return group;\n }", "public String getGroup ()\n {\n return group;\n }", "public String getGroup() {\n return group;\n }", "public String getGroup() {\n return group;\n }", "public String getGroup() {\n\t\treturn group;\n\t}", "public String getGroup() {\n return this.group;\n }", "public int getGroupId() {\n return folderACL.getGroupId();\n }", "public short getGroupId() {\n Logger.d(TAG, \"getGroupId() entry getGroupId is \" + mGroupId);\n return mGroupId;\n }", "@Override\n\tpublic long getGroupId() {\n\t\treturn _changesetEntry.getGroupId();\n\t}", "public String getGroupKey() {\n return groupKey;\n }", "public String getGroupKey() {\n return this.GroupKey;\n }", "public java.lang.Integer getGroupcode() {\n\treturn groupcode;\n}", "public Long getGroupRoleId() {\n\t\treturn groupRoleId;\n\t}", "public String getGroup() {\n return groupName;\n }", "public Optional<String> groupInstanceId() {\n return groupInstanceId;\n }", "@Override\n\tpublic long getGroupId() {\n\t\treturn _dataset.getGroupId();\n\t}", "@Override\n\tpublic long getGroupId() {\n\t\treturn _scienceApp.getGroupId();\n\t}", "UUID getGroupId();", "@Override\n\tpublic long getGroupId();", "@Override\n\tpublic long getGroupId();", "public List<String> groupIds() {\n return this.groupIds;\n }", "public Long getAdgroupid() {\r\n return adgroupid;\r\n }", "public String getGroupValue() {\n return this.GroupValue;\n }", "public String getSizeGroupId() {\n return (String)getAttributeInternal(SIZEGROUPID);\n }", "@Override\n\tpublic long getGroupId() {\n\t\treturn _esfTournament.getGroupId();\n\t}", "@Override\n\tpublic long getId() {\n\t\treturn _dmGtStatus.getId();\n\t}", "public String getCatGroupId() {\r\n\t\treturn catGroupId;\r\n\t}", "public String getCatGroupId() {\r\n\t\treturn catGroupId;\r\n\t}", "public Integer getgOtherGroupsId() {\n return gOtherGroupsId;\n }", "public String group() { return group; }", "public String getSeGrpUuid() {\n return seGrpUuid;\n }", "@Override\n public long getGroupId() {\n return _partido.getGroupId();\n }", "@Override\n\tpublic long getGroupId() {\n\t\treturn _permissionType.getGroupId();\n\t}", "@Override\n\tpublic long getGroupId() {\n\t\treturn _dictData.getGroupId();\n\t}", "public String getGroup() {\n if (overrideGroupKey != null) {\n return overrideGroupKey;\n }\n return getNotification().getGroup();\n }", "public Long getGroupGoodId() {\n return this.groupGoodId;\n }", "public Group getGroup() {\n return group;\n }", "public int getStatusId() {\n return _statusId;\n }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }" ]
[ "0.715478", "0.70477504", "0.70462245", "0.696615", "0.69624573", "0.6945067", "0.6934586", "0.69344825", "0.68975234", "0.68975234", "0.6896082", "0.6890139", "0.6884585", "0.6880722", "0.6878142", "0.6878142", "0.68657386", "0.6847539", "0.6825118", "0.68142056", "0.6809228", "0.68069917", "0.6797722", "0.678661", "0.678661", "0.678661", "0.6774735", "0.6750514", "0.67474544", "0.674353", "0.674353", "0.6723809", "0.6723697", "0.67018473", "0.67018473", "0.667398", "0.667398", "0.66669035", "0.66669035", "0.6662355", "0.6660926", "0.66501653", "0.6614425", "0.6608031", "0.6603498", "0.6484001", "0.64530236", "0.6444503", "0.6444445", "0.63739973", "0.6328119", "0.63212043", "0.6312427", "0.62588876", "0.62588876", "0.62404627", "0.6232462", "0.6226991", "0.62172496", "0.62166506", "0.61953336", "0.61861837", "0.61861837", "0.6151349", "0.61210054", "0.61040014", "0.60914296", "0.6079415", "0.60773", "0.6047447", "0.6046016", "0.6036761", "0.6033306", "0.6019612", "0.6019612", "0.6019612", "0.6019612", "0.6019612", "0.6019612", "0.6019612", "0.6019612", "0.6019612", "0.6019612", "0.6019612", "0.6019612", "0.6019612", "0.6019612", "0.6019612", "0.6019612", "0.6019612", "0.6019612", "0.6019612", "0.6019612", "0.6019612", "0.6019612" ]
0.6554351
49
Sets the group ID of this vcms status.
public void setGroupId(long groupId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setGroupID(int groupID) {\n this.groupID = groupID;\n }", "public void setGroupID(Long newGroupID)\n {\n this.groupID = newGroupID;\n }", "public void setGroup_id(Long group_id) {\n this.group_id = group_id;\n }", "public void setGroup(String group) throws InvalidIDException {\r\n\t\tif (group == null) { return; }\r\n\r\n\t\tif (Arrays.binarySearch(Projects.GROUPS, group) < 0) {\r\n\t\t\tthrow new InvalidIDException(\"Attempt to insert an invalid group.\");\r\n\t\t}\r\n\r\n\t\tif (this.groups == null) { this.groups = new HashSet(); }\r\n\t\r\n\t\tthis.groups.add(group);\r\n\t}", "public void setGroupID(Long GroupID) {\n this.GroupID = GroupID;\n }", "public void setGroupId(String newValue);", "public void setGroup (int g) throws PPException{\n\t\t// this test is required because it is not tested in Unit_SetGroup(...)\n\t\tif (g < 0)\n\t\t\tthrow new PPException (\"setGroup -> invalid group, must be upper 0\");\n\t\telse\n\t\t\tif (PPNative.Unit_SetGroup (id, g) == -1)\n\t\t\t\tthrow new PPException (\"setGroup -> \"+PPNative.GetError());\n\t}", "public void setGroup(final Group group) {\n this.group = group;\n }", "public void setGroupEnabled(int group, boolean enabled);", "public void setGroupId(Integer value) {\n set(1, value);\n }", "public void setGroup(entity.Group value);", "void setGroupId(String groupId);", "private void setGroupIndex(int value) {\n bitField0_ |= 0x00000001;\n groupIndex_ = value;\n }", "@Override\n\tpublic void stopGroup(Integer id) {\n\t\tString hql = \"update HhGroup h set h.groupStatus = 2 where h.id = \" + id;\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\n\t\tquery.executeUpdate();\n\t}", "public void modifyGroup(String id) {\r\n //TODO\r\n System.out.println(\"conectado con model ---> metodo modifyGroup\");\r\n }", "@Override\n public void setGroupSet(final boolean val) {\n groupSet = val;\n }", "public void setContactsGroup()\n\t{\n\t\tUtility.ThreadSleep(1000);\n\t\tList<Long> group = new ArrayList<Long>(Arrays.asList(new Long[] {1l,2l})); //with DB Call\n\t\tthis.groupIds = group;\n\t\tLong contactGroupId = groupIds.get(0);\n\t\tSystem.out.println(\".\");\n\t}", "public void setGroup(UserGroup group) {\n this.group = group;\n }", "@Override\n\tpublic void setGroupId(long groupId) {\n\t\tmodel.setGroupId(groupId);\n\t}", "@Override\n\tpublic void setGroupId(long groupId) {\n\t\tmodel.setGroupId(groupId);\n\t}", "@Override\n\tpublic void setGroupId(long groupId) {\n\t\tmodel.setGroupId(groupId);\n\t}", "public void setGroupcode(java.lang.Integer newGroup) {\n\tgroupcode = newGroup;\n}", "@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_changesetEntry.setGroupId(groupId);\n\t}", "@Override\n\tpublic void setId(long id) {\n\t\t_dmGtStatus.setId(id);\n\t}", "public void setStatusId(long statusId);", "public int getIdGroup() {\n return idGroup;\n }", "@Override\n public void setGroupId(long groupId) {\n _partido.setGroupId(groupId);\n }", "public void setGroupId(Integer groupId) {\r\n this.groupId = groupId;\r\n }", "@Override\n\tpublic void setGroupId(long groupId);", "@Override\n\tpublic void setGroupId(long groupId);", "public void setSizeGroupId(String value) {\n setAttributeInternal(SIZEGROUPID, value);\n }", "public void setStatusId(int statusId) {\n _statusId = statusId;\n }", "public void setIdStatus(String idStatus) {\n this.idStatus = idStatus;\n }", "public void setGroupId(int groupId) {\n this.groupId = groupId;\n }", "public void setGroupId(int groupId) {\n this.groupId = groupId;\n }", "public void setGroupValue(String testCaseID)\r\n\t{\r\n\t\tgroupTestID=testCaseID;\r\n\t\tgroupTestScenario=getTestScenario(testCaseID);\t\r\n\t\tLog.info(\"======== \"+groupTestID+\" : \"+groupTestScenario+\" ========\");\r\n\t}", "public void setGroupId(Integer groupId) {\n this.groupId = groupId;\n }", "public void setGroupId(Integer groupId) {\n this.groupId = groupId;\n }", "public static boolean updateStatusGroup(Long id, Long idGroup){\n\t\tRequirement req = reqDao.getRequirement(id);\r\n\t\tLong idOldGroup = req.getIdGroup();\r\n\t\tboolean flag = false;\r\n\t\t\r\n\t\t//change idGroup\r\n\t\tif (!idOldGroup.equals(idGroup)){\r\n\t\t\tflag = reqDao.updateStatusGroup(idOldGroup, Constant.GROUP_FREE_REQ);\r\n\t\t\t\r\n\t\t\t//success\r\n\t\t\tif (flag){\r\n\t\t\t\t\r\n\t\t\t\t//update status of new group = assignReq\r\n\t\t\t\tflag =\treqDao.updateStatusGroup(idGroup, Constant.GROUP_ASSIGN_REQ);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn flag;\r\n}", "public void setPeerGroupID(PeerGroupID gid) {\n this.gid = gid;\n incModCount();\n }", "public void set_group(short value) {\n setUIntElement(offsetBits_group(), 8, value);\n }", "public void setSettingGroupIdForModalDlg(Long id) {\n\t\tsetEntityIdForModalDlg(id);\n\t}", "public void setGroupId(long groupId) {\n this.groupId = groupId;\n }", "void updateGroup(@Nonnull UserGroup group);", "public void setAdGroupStatus(String adGroupStatus) {\r\n this.adGroupStatus = adGroupStatus;\r\n }", "@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_esfTournament.setGroupId(groupId);\n\t}", "@JsonSetter(\"smsLinkGroupId\")\r\n public void setSmsLinkGroupId (int value) { \r\n this.smsLinkGroupId = value;\r\n }", "public void setCurrentGroups(final Collection<BwGroup> val) {\n currentGroups = val;\n }", "public void assignOneGroup(final boolean val) {\n oneGroup = val;\n }", "public void setGroupId( String groupId ) {\n this.groupId = groupId;\n }", "public void setLogGroup(int aNewGroup) {\n mLogGroup = aNewGroup;\n }", "@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_paper.setGroupId(groupId);\n\t}", "@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_dictData.setGroupId(groupId);\n\t}", "public void setGroup(String group) {\n if (group != null && group.trim().length() == 0) {\n throw new IllegalArgumentException(\n \"Group name cannot be an empty string.\");\n }\n\n if(group == null) {\n group = Scheduler.DEFAULT_GROUP;\n }\n\n this.group = group;\n this.key = null;\n }", "public Long getGroup_id() {\n return group_id;\n }", "@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_second.setGroupId(groupId);\n\t}", "public void setGroupName(String groupName){\r\n if (this.errorInString(groupName)) {\r\n this.addErrorMessage(0, \"Group name is incorrect.\");\r\n } else {\r\n this.groupName = Validator.escapeJava(groupName);\r\n setValidData(0, true);\r\n }\r\n }", "public void setName(String name) {\n internalGroup.setName(name);\n }", "public Long getGroupID()\n {\n return groupID;\n }", "@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_scienceApp.setGroupId(groupId);\n\t}", "public void setGroupId(Long groupId) {\n this.groupId = groupId;\n }", "public abstract void setStatusId(long statusId);", "@JsonSetter(\"capacityGroupId\")\r\n public void setCapacityGroupId (int value) { \r\n this.capacityGroupId = value;\r\n }", "@Override\n public void setGroupActive(int group, boolean value) {\n assert 0 <= group && group < active.length;\n \n active[group] = value;\n for (XYDatasetWithGroups dataset : datasets) {\n dataset.setGroupActive(group, value);\n }\n recalculateMaxCounts();\n notifyListeners(new DatasetChangeEvent(this, this));\n }", "public void setGroupRoleId(Long groupRoleId) {\n\t\tthis.groupRoleId = groupRoleId;\n\t}", "public int getGroupID() {\n return groupID;\n }", "public void setClGrpId(String clGrpId) {\r\n this.clGrpId = clGrpId;\r\n }", "public void setGroup (int col)\n\t{\n\t\tlog.config( \"RModel.setGroup col=\" + col);\n\t\tif (col < 0 || col >= m_data.cols.size())\n\t\t\treturn;\n\t\tInteger ii = new Integer(col);\n\t\tif (!m_data.groups.contains(ii))\n\t\t\tm_data.groups.add(ii);\n\t}", "public void setLogGroup(String value)\n {\n logGroup = value;\n }", "public void setGroupLocalService(\n com.liferay.portal.service.GroupLocalService groupLocalService) {\n this.groupLocalService = groupLocalService;\n }", "public void setGroupService(\n com.liferay.portal.service.GroupService groupService) {\n this.groupService = groupService;\n }", "public void setGroupId(Long groupId) {\n\t\tthis.groupId = groupId;\n\t}", "public void setGroupVisible(int group, boolean visible);", "void doResetGroups( long start_id )\n {\n // Log.v(\"DistoX\", \"Reset CID \" + mApp.mCID + \" from gid \" + start_id );\n mApp_mDData.resetAllGMs( mApp.mCID, start_id ); // reset all groups where status=0, and id >= start_id\n }", "public void setGroupname(java.lang.String newGroupname) {\n\tgroupname = newGroupname;\n}", "public int getGroupId() {\n return groupId;\n }", "public int getGroupId() {\n return groupId;\n }", "public void setSGroupID(String sGroupID) {\n this.sGroupID = sGroupID;\n }", "public Integer getGroupId() {\r\n return groupId;\r\n }", "public void setInValidGroup(boolean inValidGroup){this.inValidGroup = inValidGroup;}", "public void setSeasonGroupCode(final String value)\r\n\t{\r\n\t\tsetSeasonGroupCode( getSession().getSessionContext(), value );\r\n\t}", "public long getGroupId() {\n return groupId;\n }", "public ID getGroupID() {\n\treturn groupID;\n }", "public Builder setGroupIndex(int value) {\n copyOnWrite();\n instance.setGroupIndex(value);\n return this;\n }", "public boolean setGroup(int personId, int groupId) throws SQLException {\r\n\t\tContentValues args = new ContentValues();\r\n\t\targs.put(KEY_GROUP_ID, groupId);\r\n\t\treturn db.update(DATABASE_TABLE, args, KEY_PERSON_ID + \"=\" + personId,\r\n\t\t\t\tnull) > 0;\r\n\t}", "public Gateway setGroupId(java.lang.String groupId) {\n return genClient.setOther(groupId, CacheKey.groupId);\n }", "public Group(String id) {\n super(id);\n setConstructor(SvgType.GROUP);\n }", "@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_permissionType.setGroupId(groupId);\n\t}", "public void setGroup (String columnName)\n\t{\n\t\tsetGroup(getColumnIndex(columnName));\n\t}", "public Long getGroupId() {\n return groupId;\n }", "public void setGroupValue(String GroupValue) {\n this.GroupValue = GroupValue;\n }", "public void setGroupLocalService(\n\t\tcom.liferay.portal.kernel.service.GroupLocalService groupLocalService) {\n\t\tthis.groupLocalService = groupLocalService;\n\t}", "public Integer getGroupId() {\n return groupId;\n }", "public Integer getGroupId() {\n return groupId;\n }", "void setGroupName(String groupName) {\n this.groupName = new String(groupName);\n }" ]
[ "0.66222405", "0.64083105", "0.63329434", "0.6292486", "0.62849885", "0.6257206", "0.6140181", "0.61399895", "0.6131386", "0.61294436", "0.610791", "0.6091815", "0.60475045", "0.603067", "0.6030138", "0.60246754", "0.5992557", "0.59895444", "0.5986439", "0.5986439", "0.5986439", "0.59627324", "0.58542436", "0.5844771", "0.5829449", "0.58168393", "0.5782713", "0.57698995", "0.57657415", "0.57657415", "0.5727559", "0.57263315", "0.56987214", "0.5692044", "0.5692044", "0.5687563", "0.56573224", "0.56573224", "0.5656481", "0.56390965", "0.5633473", "0.56223625", "0.5621286", "0.56212115", "0.56000024", "0.5597239", "0.5596726", "0.5587092", "0.5574396", "0.55516684", "0.55462295", "0.55422354", "0.55035317", "0.55004585", "0.5499827", "0.5462327", "0.5460991", "0.5442733", "0.54307693", "0.5423647", "0.54196876", "0.54182094", "0.53905314", "0.5386368", "0.5384473", "0.5381653", "0.5375722", "0.53664315", "0.5353094", "0.5345772", "0.5337905", "0.53363365", "0.533241", "0.5328658", "0.5322343", "0.53213984", "0.53213984", "0.53178585", "0.5314256", "0.53135425", "0.5304945", "0.5297932", "0.52904546", "0.52887034", "0.52875894", "0.5283332", "0.5281132", "0.52769464", "0.5272031", "0.52676374", "0.5264435", "0.5252424", "0.5252379", "0.5252379", "0.52448756" ]
0.5967674
26
Returns the created date of this vcms status.
public Date getCreatedDate();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getCreatedDate() {\r\n\t\treturn createdDate;\r\n\t}", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreatedDate() {\n\t\treturn createdDate;\n\t}", "public Date getCreatedDate() {\n return Utils.parseDateTimeUtc(created_on);\n }", "public Date getCreatedDate() {\n return this.createdDate;\n }", "public Date getCreatedDate() {\n return this.createdDate;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\r\n return createdDate;\r\n }", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreatedDate() {\n return createdDate;\n }", "public Date getCreatedDate() {\n return createdDate;\n }", "public Date getDateCreated(){\n\t\treturn dateCreated;\n\t}", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreatedDt() {\n\t\treturn createdDt;\n\t}", "public Date getCreated() {\n return mCreated;\n }", "public Date getCreatedOn()\n {\n return _model.getCreatedOn();\n }", "public Date getDateCreated() {\r\n\t\treturn dateCreated;\r\n\t}", "public Date getDateCreated() {\n\t\treturn dateCreated;\n\t}", "public String getDateCreated() {\n return this.dateCreated.toString();\n }", "public String getDateCreated() {\n return this.dateCreated.toString();\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public java.lang.String getCreatedDate() {\r\n return createdDate;\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public Date getDateCreated()\n {\n return dateCreated;\n }", "public Date getCreatedTs() {\n\t\treturn createdTs;\n\t}", "public java.util.Date getDateCreated(){\r\n\t\treturn dateCreated;\r\n\t}", "public String getCreated() {\n return this.created;\n }", "public String getCreated() {\n return this.created;\n }", "public String getDatecreated() {\n\t\treturn datecreated;\n\t}", "public java.util.Date getCreated() {\n return this.created;\n }", "public java.util.Calendar getCreatedDate() {\n return createdDate;\n }", "public java.util.Calendar getCreatedDate() {\n return createdDate;\n }", "public java.util.Calendar getCreatedDate() {\r\n return createdDate;\r\n }", "public Timestamp getCreatedDate() {\n return createdDate;\n }", "Date getCreatedDate();", "public Date getCreateddate() {\n return createddate;\n }", "public Date getDateCreated();", "public String getDatecreated() {\n return datecreated;\n }", "@ApiModelProperty(value = \"The date/time this resource was created in seconds since unix epoch\")\n public Long getCreatedDate() {\n return createdDate;\n }", "Date getDateCreated();", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Date getCREATED_DATE() {\r\n return CREATED_DATE;\r\n }", "public java.lang.Long getCreated() {\n return created;\n }", "public java.lang.Long getCreated() {\n return created;\n }", "public java.util.Date getDateCreated() {\n return dateCreated;\n }", "public long getCreated() {\n\t\treturn m_created;\n\t}", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getCreatedDate() {\n return (Date) getAttributeInternal(CREATEDDATE);\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public String getDateCreated(){\n return dateCreated.toString();\n }", "public Long getTimeCreated() {\r\n\t\treturn timeCreated;\r\n\t}", "public Timestamp getCreatedDate() {\n return (Timestamp)getAttributeInternal(CREATEDDATE);\n }", "public Timestamp getCreated() {\n return created;\n }", "public DateTime getCreatedTimestamp() {\n\t\treturn getDateTime(\"sys_created_on\");\n\t}", "public Date getCreatedTime() {\n return createdTime;\n }", "public Date getCreatedTime() {\n return createdTime;\n }", "public Date getCreatedTime() {\n return createdTime;\n }", "@Override\n public Date getCreated() {\n return created;\n }", "@JsonIgnore\n public long getDateCreated() {\n return this.dateCreated;\n }", "@JsonProperty(\"Date Created\")\n\tString getCreated() {\n\t\treturn getDate(created);\n\t}", "public DateTime createdDateTime() {\n return this.createdDateTime;\n }", "public Timestamp getCreatedDate() {\n return (Timestamp) getAttributeInternal(CREATEDDATE);\n }", "public Date getDateCreated() {\r\n\t\t\r\n\t\t\tDate date= new Date(System.currentTimeMillis());\r\n\t\treturn date;\r\n\t}", "public DateTime getCreatedDateTime() {\n return createdDateTime;\n }", "public long getCreatedTime() {\n return createdTime;\n }", "public String getCreateDate() {\n return createDate;\n }", "public java.util.Date getCreatedTime() {\n return this.createdTime;\n }", "public java.util.Calendar getDateCreated() {\n return localDateCreated;\n }", "public Integer getCreated() {\r\n return created;\r\n }", "public Integer getCreated() {\n return created;\n }", "public String getCreateDate() {\r\n\t\treturn createDate;\r\n\t}", "public DateTime getCreatedTimestamp() {\n\t\treturn this.createdTimestamp;\n\t}", "public Timestamp getCreatedOn() {\r\n\t\treturn createdOn;\r\n\t}", "public Date getDateCreated(){return DATE_CREATED;}", "@ApiModelProperty(required = true, value = \"creation timestamp in ISO-8601 format, see http://en.wikipedia.org/wiki/ISO_8601\")\n @JsonProperty(\"created\")\n public Date getCreated() {\n return created;\n }", "public long getCreationDate() {\n return creationDate_;\n }", "public String getCurrentDate() {\n return createdDate;\n }", "public long getCreationDate() {\n return creationDate_;\n }", "public Long getCreateDatetime() {\n return createDatetime;\n }", "public Long getCreateDatetime() {\n return createDatetime;\n }", "public long getCreatedMillis()\n {\n return m_dtCreated;\n }" ]
[ "0.7710185", "0.7684611", "0.7684611", "0.7579652", "0.7579652", "0.75736785", "0.75729716", "0.75676024", "0.75676024", "0.7559974", "0.7559974", "0.7559974", "0.7559974", "0.75359565", "0.7525446", "0.7525446", "0.75050694", "0.75050694", "0.7494009", "0.74852663", "0.74852663", "0.7461117", "0.7460664", "0.7456199", "0.7451195", "0.74479604", "0.743711", "0.743711", "0.7427533", "0.7427533", "0.7427533", "0.7427533", "0.73975986", "0.7394094", "0.7394094", "0.7394094", "0.7389461", "0.7363014", "0.7362952", "0.73621625", "0.73621625", "0.7357825", "0.7341654", "0.7337187", "0.7337187", "0.7335627", "0.7325624", "0.73236287", "0.732115", "0.7320578", "0.7312247", "0.73109853", "0.7305685", "0.729903", "0.729903", "0.7287325", "0.7286092", "0.72819674", "0.72730196", "0.72700965", "0.7263901", "0.7263901", "0.7263901", "0.7236581", "0.7230094", "0.7230094", "0.7230094", "0.7230094", "0.72152305", "0.721468", "0.72126544", "0.7208798", "0.7202867", "0.7196989", "0.7196989", "0.7196989", "0.719261", "0.71497476", "0.71494615", "0.71206427", "0.7118279", "0.71078604", "0.7104065", "0.7099766", "0.70949864", "0.70916563", "0.70836586", "0.70826703", "0.70820284", "0.70818245", "0.70801044", "0.7079028", "0.7072549", "0.70616055", "0.7057411", "0.7054413", "0.7052648", "0.7052061", "0.7052061", "0.7044286" ]
0.72490287
63
Sets the created date of this vcms status.
public void setCreatedDate(Date createdDate);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreated(Date v) \n {\n \n if (!ObjectUtils.equals(this.created, v))\n {\n this.created = v;\n setModified(true);\n }\n \n \n }", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "void setCreatedDate(Date createdDate);", "public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}", "public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}", "void setDateCreated(final Date dateCreated);", "public void setCreatedDate(Date createdDate) {\r\n this.createdDate = createdDate;\r\n }", "public void setCreatedDate(Date createdDate) {\r\n this.createdDate = createdDate;\r\n }", "public void setCreatedDate(Date createdDate) {\n this.createdDate = createdDate;\n }", "public void setCreatedDate(java.util.Calendar createdDate) {\r\n this.createdDate = createdDate;\r\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "public void setDateCreated(Date dateCreated);", "public void setCreatedDate(java.util.Calendar createdDate) {\n this.createdDate = createdDate;\n }", "public void setCreatedDate(java.util.Calendar createdDate) {\n this.createdDate = createdDate;\n }", "public void setCreatedDate(Long createdDate) {\r\n\t\tthis.createdDate = createdDate;\r\n\t}", "public final void setDateCreated(java.util.Date datecreated)\r\n\t{\r\n\t\tsetDateCreated(getContext(), datecreated);\r\n\t}", "public void setCreatedDate(Date createdDate) {\n\t\tthis.createdDate = createdDate;\n\t}", "public void setCreatedDate(Date value) {\n setAttributeInternal(CREATEDDATE, value);\n }", "public void setCreated(java.util.Date created) {\n this.created = created;\n }", "public void setCreatedDate(String createdDate) {\n this.createdDate = createdDate;\n }", "public void setDateCreated(Date dateCreated) {\n this.dateCreated = dateCreated;\n }", "public void setDateCreated(Date dateCreated) {\n this.dateCreated = dateCreated;\n }", "public void setDateCreated(Date dateCreated) {\n this.dateCreated = dateCreated;\n }", "@Override\r\n\tpublic void setCreated(LocalDateTime created) {\n\t\tthis.created = created;\t\t\r\n\t}", "public void setCreateddate( Date createddate )\n {\n this.createddate = createddate;\n }", "public void setDateCreated(java.util.Date dateCreated){\r\n\t\tthis.dateCreated = dateCreated;\r\n\t}", "public void setCreateddate(Date createddate) {\n this.createddate = createddate;\n }", "public void setCreatedDate(java.lang.String createdDate) {\r\n this.createdDate = createdDate;\r\n }", "public void setCreatedDate(Date createDate) {\n\t\tthis.createdDate = createDate;\n\t}", "public void setDateCreated(Date dateCreated) {\n\t\tthis.dateCreated = dateCreated;\n\t}", "void setCreateDate(final Date creationDate);", "public void setCreateDate(String value) {\n this.createDate = value;\n }", "public void setDateCreated(java.util.Calendar param) {\n localDateCreatedTracker = param != null;\n\n this.localDateCreated = param;\n }", "public void setCREATED_DATE(Date CREATED_DATE) {\r\n this.CREATED_DATE = CREATED_DATE;\r\n }", "public void setCreatedDate(LocalDateTime createdDate) {\n this.createdDate = createdDate;\n }", "public void setCreatedOn(DateTime createdOn);", "public void setCreated(java.lang.Long value) {\n this.created = value;\n }", "public void setDateCreated(java.util.Date dateCreated) {\n this.dateCreated = dateCreated;\n }", "void setCreationDate(Date val)\n throws RemoteException;", "void setCreateDate(Date date);", "public final void setDateCreated(com.mendix.systemwideinterfaces.core.IContext context, java.util.Date datecreated)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.DateCreated.toString(), datecreated);\r\n\t}", "public void setCreatedDt(Date createdDt) {\n\t\tthis.createdDt = createdDt;\n\t}", "public void setCreated(Timestamp created) {\n this.created = created;\n }", "public void setCreateDate(long newVal) {\n setCreateDate(new java.util.Date(newVal));\n }", "@Override\n\tpublic void setCreateDate(Date createDate);", "@Override\n\tpublic void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate) { this.createDate = createDate; }", "public void setCreated(Integer created) {\r\n this.created = created;\r\n }", "public void setCreated(Integer created) {\n this.created = created;\n }", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setCreatedDateTime(DateTime createdDateTime) {\n this.createdDateTime = createdDateTime;\n }", "public void setCreatedOn(Date createdOn)\n {\n _model.setCreatedOn(createdOn);\n }", "public void setCreatedon( Date createdon )\n {\n this.createdon = createdon;\n }", "public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }", "public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }", "public void setDateCreated(final Date dateCreated) {\n\t\tthis.dateCreated = dateCreated;\n\t}", "public void setCreatedDate(Timestamp aCreatedDate) {\n createdDate = aCreatedDate;\n }", "public void setCreationDate(Date creationDate);", "public void setDATE_CREATED(Date DATE_CREATED) {\r\n this.DATE_CREATED = DATE_CREATED;\r\n }", "public void setDATE_CREATED(Date DATE_CREATED) {\r\n this.DATE_CREATED = DATE_CREATED;\r\n }", "public void setDATE_CREATED(Date DATE_CREATED) {\r\n this.DATE_CREATED = DATE_CREATED;\r\n }", "public void setCreatedDate(Timestamp value) {\n setAttributeInternal(CREATEDDATE, value);\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreatedDate(InstantFilter createdDate) {\n\t\tthis.createdDate = createdDate;\n\t}", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreateDate(Date createDate) {\r\n this.createDate = createDate;\r\n }", "public void setCreateDate(Date createDate) {\r\n this.createDate = createDate;\r\n }", "public void setCreationDate(Date creationDate) {\n }", "@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\t_changesetEntry.setCreateDate(createDate);\n\t}", "@ApiModelProperty(value = \"The date/time this resource was created in seconds since unix epoch\")\n public Long getCreatedDate() {\n return createdDate;\n }", "public void setCreatedTs(Date createdTs) {\n\t\tthis.createdTs = createdTs;\n\t}", "public void setCreationDate(Date creationDate) {\r\n this.creationDate = creationDate;\r\n }", "public Builder setCreationDate(long value) {\n \n creationDate_ = value;\n onChanged();\n return this;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }" ]
[ "0.7615301", "0.7441088", "0.7441088", "0.7427418", "0.7427418", "0.7385075", "0.7385075", "0.7385075", "0.7385075", "0.7376386", "0.734623", "0.734623", "0.73374903", "0.7241315", "0.7241315", "0.7207511", "0.7103784", "0.7101526", "0.7101526", "0.7101526", "0.7095726", "0.70628583", "0.70628583", "0.703429", "0.7032767", "0.7028764", "0.7027292", "0.7001283", "0.69842356", "0.6970929", "0.6970929", "0.6970929", "0.69657034", "0.69436574", "0.6939234", "0.68615717", "0.67947054", "0.67808366", "0.6778454", "0.67629695", "0.6759809", "0.6754604", "0.67462075", "0.67160404", "0.669247", "0.6672392", "0.665508", "0.66381806", "0.6637565", "0.6623771", "0.662283", "0.6618177", "0.6590574", "0.6584996", "0.6584996", "0.6582871", "0.65458906", "0.65233517", "0.65178835", "0.65178835", "0.65178835", "0.65170217", "0.65163654", "0.6510989", "0.650898", "0.650898", "0.6508245", "0.64755434", "0.64472425", "0.6435438", "0.6435438", "0.6435438", "0.64291155", "0.64249426", "0.6402175", "0.6400579", "0.6400579", "0.6400579", "0.6400579", "0.63950616", "0.63950616", "0.63885903", "0.6368271", "0.6353457", "0.6333228", "0.6318264", "0.6318112", "0.6304866", "0.6304866", "0.6304866", "0.6304866", "0.6304866", "0.6304866", "0.6304866", "0.6304866", "0.6304866", "0.6304866", "0.6304866", "0.6304866", "0.6304866" ]
0.7197631
16
Returns the created by user of this vcms status.
@AutoEscape public String getCreatedByUser();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getCreatedByUser();", "public String getCreatedUser() {\r\n return this.createdUser;\r\n }", "public Long getCreateduser() {\n return createduser;\n }", "public Integer getCreatedUser() {\n\t\treturn createdUser;\n\t}", "public BoxUser.Info getCreatedBy() {\n return this.createdBy;\n }", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\r\n return createdBy;\r\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\n return createdBy;\n }", "public Integer getCreatedUserId() {\n return this.createdUserId;\n }", "public Integer getCreatedUserId() {\n return this.createdUserId;\n }", "public Long getCreateUser() {\r\n return createUser;\r\n }", "public Long getCreateUser() {\r\n return createUser;\r\n }", "public String getCreatedby() {\n return createdby;\n }", "public String createdBy() {\n return this.createdBy;\n }", "public String getCreatedBy() {\n return this.createdBy;\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}", "public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }", "public Long getUserCreate() {\n return userCreate;\n }", "public Integer getCreateUser() {\n return createUser;\n }", "public Integer getCreateUser() {\n return createUser;\n }", "public com.myconnector.domain.UserData getCreatedBy () {\n\t\treturn createdBy;\n\t}", "public User getCreatedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Created_By\");\n\n\t}", "public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}", "public String getCreatedBy() {\n\t\treturn this.createdBy;\n\t}", "public String getCreateUserId() {\r\n return createUserId;\r\n }", "public String getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public String getCreateUser () {\r\n\t\treturn createUser;\r\n\t}", "Long getUserCreated();", "public String getCreateUser()\r\n\t{\r\n\t\treturn createUser;\r\n\t}", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public String getCreateUser() {\r\n\t\treturn createUser;\r\n\t}", "public String getCreateUser() {\r\n\t\treturn createUser;\r\n\t}", "public String getCreatedUserName() {\n return createdUserName;\n }", "public Integer getCreateUserId() {\n return createUserId;\n }", "@Override\n\tpublic String getStatusByUserUuid() {\n\t\treturn model.getStatusByUserUuid();\n\t}", "public String getCreateUser() {\r\n return createUser;\r\n }", "public String getCreateUser() {\r\n return createUser;\r\n }", "public java.lang.Integer getCreatedby() {\n\treturn createdby;\n}", "public Integer getCreateuser() {\n return createuser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "int getCreatedBy();", "public long getCreatorUserId() {\n return creatorUserId;\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "@ApiModelProperty(value = \"Id of the user who created the record.\")\n public Long getCreatedBy() {\n return createdBy;\n }", "public Number getCreatedBy()\n {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Timestamp getCreatedByTimestamp() {\n\t\treturn new Timestamp(this.createdByTimestamp.getTime());\n\t}", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public LoginMessageResponse getCreateUserResult() {\n return localCreateUserResult;\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "@java.lang.Override\n public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = s;\n return s;\n }\n }", "public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Integer getCreateby() {\n return createby;\n }", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }" ]
[ "0.75586677", "0.747298", "0.7407453", "0.7380107", "0.72098994", "0.7136893", "0.71127594", "0.71127594", "0.71127594", "0.71127594", "0.7106994", "0.7098912", "0.7098912", "0.7096605", "0.7096605", "0.70889664", "0.7085737", "0.7022782", "0.7016456", "0.7016456", "0.7016456", "0.7000624", "0.6986125", "0.69545823", "0.69310564", "0.6918071", "0.6898089", "0.6898089", "0.6894901", "0.68808293", "0.6869378", "0.68516284", "0.6839552", "0.6821734", "0.68100935", "0.68019944", "0.6769301", "0.67644083", "0.67644083", "0.6763136", "0.6763136", "0.6753493", "0.67427963", "0.6739188", "0.67298925", "0.67298925", "0.6722959", "0.67155206", "0.67117053", "0.67117053", "0.67117053", "0.67117053", "0.67117053", "0.67117053", "0.67117053", "0.67117053", "0.67117053", "0.67117053", "0.67117053", "0.67117053", "0.67117053", "0.6701898", "0.6696446", "0.6682977", "0.6682977", "0.6682977", "0.6682977", "0.6661883", "0.6659385", "0.6642153", "0.6642153", "0.6642153", "0.6642153", "0.6642153", "0.6642153", "0.6633363", "0.65952563", "0.65952563", "0.65952563", "0.65952563", "0.65952563", "0.65952563", "0.65952563", "0.65952563", "0.65952563", "0.65952563", "0.65952563", "0.65952563", "0.65952563", "0.6579188", "0.6574134", "0.6574134", "0.6574134", "0.65429056", "0.6534762", "0.65243536", "0.6510142", "0.6510142", "0.64946854", "0.64946854" ]
0.69204265
25
Sets the created by user of this vcms status.
public void setCreatedByUser(String createdByUser);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreatedByUser(long createdByUser);", "public void setCreatedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.createdBy, v))\n {\n this.createdBy = v;\n setModified(true);\n }\n \n \n }", "void setCreateby(final U createdBy);", "public void setCreatedByUser(\n @Nullable\n final String createdByUser) {\n rememberChangedField(\"CreatedByUser\", this.createdByUser);\n this.createdByUser = createdByUser;\n }", "void setUserCreated(final Long userCreated);", "public void setCreatedBy(User createdBy)\n\t{\n\t\t this.addKeyValue(\"Created_By\", createdBy);\n\n\t}", "public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\r\n this.createdBy = createdBy;\r\n }", "public void setCreatedUser(Integer createdUser) {\n\t\tthis.createdUser = createdUser;\n\t}", "public void setCreatedUser(String createdUser) {\r\n this.createdUser = createdUser;\r\n }", "public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedUserId(Integer value) {\n this.createdUserId = value;\n }", "public void setCreatedUserId(Integer value) {\n this.createdUserId = value;\n }", "public void setCreatedBy (com.myconnector.domain.UserData createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public void setCreateduser(Long createduser) {\n this.createduser = createduser;\n }", "public void setCreatedby( String createdby )\n {\n this.createdby = createdby;\n }", "public void setCreatedBy(final CreatedBy createdBy);", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value)\n {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy( Integer createdBy ) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy){\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "private void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedUserId(Integer value) {\n set(4, value);\n }", "@ApiModelProperty(value = \"Id of the user who created the record.\")\n public Long getCreatedBy() {\n return createdBy;\n }", "public void setCreatedby(java.lang.Integer newValue) {\n\tthis.createdby = newValue;\n}", "public void setCreatedBy(Long createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public String getCreatedby() {\n return createdby;\n }", "public void setCreatedBy(java.lang.String createdBy) {\r\n this.createdBy = createdBy;\r\n }", "public void setUserCreate(Long userCreate) {\n this.userCreate = userCreate;\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "@Override\r\n\tpublic void setCreatedBy(User u) {\n\t\tthis.createdBy = (FaqUser)u;\t\t\r\n\t}", "public void setCreatedBy(String createdBy) {\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "public Long getCreateduser() {\n return createduser;\n }", "public String getCreatedBy() {\n return this.createdBy;\n }", "public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\r\n return createdBy;\r\n }", "public BoxUser.Info getCreatedBy() {\n return this.createdBy;\n }", "public void setCreateUser(String newVal) {\n if ((newVal != null && this.createUser != null && (newVal.compareTo(this.createUser) == 0)) || \n (newVal == null && this.createUser == null && createUser_is_initialized)) {\n return; \n } \n this.createUser = newVal; \n\n createUser_is_modified = true; \n createUser_is_initialized = true; \n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public void setCreator(User creator) {\n this.creator = creator;\n }", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\n return createdBy;\n }", "public void setCreateUser(Long createUser) {\r\n this.createUser = createUser;\r\n }", "public void setCreateUser(Long createUser) {\r\n this.createUser = createUser;\r\n }", "public String getCreatedUser() {\r\n return this.createdUser;\r\n }", "public String createdBy() {\n return this.createdBy;\n }", "public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public String getCreatedBy() {\n return createdBy;\n }", "public void setCreateBy (com.redsaga.hibnatesample.step2.User _createBy) {\n\t\tthis._createBy = _createBy;\n\t}", "public void setCreatedby(String createdby)\n {\n this.createdby.set(createdby.trim().toUpperCase());\n }", "public void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }", "public void setCreatedBy(String createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}", "public void setCreateUser(Integer createUser) {\n this.createUser = createUser;\n }", "public void setCreateUser(Integer createUser) {\n this.createUser = createUser;\n }", "public String getCreatedBy() {\n\t\treturn this.createdBy;\n\t}", "public void setCreatedBy(StringFilter createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public Integer getCreatedUser() {\n\t\treturn createdUser;\n\t}", "public void setUserCreated(java.lang.String userCreated) {\n\t\t_tempNoTiceShipMessage.setUserCreated(userCreated);\n\t}", "public Long getCreateUser() {\r\n return createUser;\r\n }", "public Long getCreateUser() {\r\n return createUser;\r\n }", "public String getCreatedBy() {\n\t\treturn createdBy;\n\t}", "@JsonProperty(\"created_by\")\n@ApiModelProperty(example = \"[email protected]\", value = \"Creator of requested virtual instance.\")\n public String getCreatedBy() {\n return createdBy;\n }", "public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public Integer getCreatedUserId() {\n return this.createdUserId;\n }", "public Integer getCreatedUserId() {\n return this.createdUserId;\n }", "public Builder setCreatedBy(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n createdBy_ = value;\n onChanged();\n return this;\n }", "public void setUserStatus(java.lang.String userStatus) {\r\n this.userStatus = userStatus;\r\n }", "public void setCreateuser(Integer createuser) {\n this.createuser = createuser;\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy == null ? null : createdBy.trim();\n }", "public com.myconnector.domain.UserData getCreatedBy () {\n\t\treturn createdBy;\n\t}", "@Override\n\tpublic void setStatusByUserUuid(String statusByUserUuid);", "@Override\n\tpublic void setStatusByUserUuid(String statusByUserUuid) {\n\t\tmodel.setStatusByUserUuid(statusByUserUuid);\n\t}", "public void setUserStatus(java.lang.String userStatus) {\n this.userStatus = userStatus;\n }" ]
[ "0.73076475", "0.70916635", "0.70133543", "0.68616647", "0.68172103", "0.6804077", "0.67988205", "0.6780111", "0.6774488", "0.67222357", "0.6704511", "0.6704511", "0.67035425", "0.6700776", "0.66482615", "0.66417325", "0.66412276", "0.66412276", "0.66412276", "0.66412276", "0.66412276", "0.66412276", "0.66412276", "0.65865004", "0.6550814", "0.6513076", "0.6513076", "0.6513076", "0.6513076", "0.6463208", "0.64576316", "0.64501315", "0.64501315", "0.64501315", "0.64501315", "0.64501315", "0.64501315", "0.64501315", "0.64501315", "0.64431226", "0.6393415", "0.6382431", "0.6375423", "0.63650995", "0.63546866", "0.6342072", "0.6308074", "0.6308074", "0.6306548", "0.62872946", "0.6284063", "0.628243", "0.6279529", "0.6277796", "0.6267509", "0.6265319", "0.624936", "0.624936", "0.624936", "0.624936", "0.62480366", "0.62480366", "0.62480366", "0.62446314", "0.6240753", "0.62347615", "0.62347615", "0.6233947", "0.62061805", "0.618087", "0.61798406", "0.6151695", "0.6150783", "0.61495125", "0.6142427", "0.6125111", "0.6123659", "0.6123659", "0.6109282", "0.60918164", "0.6087421", "0.6069602", "0.60607916", "0.60607916", "0.6050355", "0.602998", "0.60262054", "0.60150695", "0.60150695", "0.60150695", "0.5998212", "0.5998212", "0.59938246", "0.5989351", "0.5983446", "0.59660274", "0.59589577", "0.5956221", "0.59427816", "0.59331685" ]
0.71617645
1
Returns the modified date of this vcms status.
public Date getModifiedDate();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDatemodified() {\n return datemodified;\n }", "public String getDatemodified() {\n\t\treturn datemodified;\n\t}", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _dmGtStatus.getModifiedDate();\n\t}", "public Date getModified() {\r\n\t\treturn modified;\r\n\t}", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "public Date getModifieddate() {\n return modifieddate;\n }", "public Date getModifiedDate() {\r\n return modifiedDate;\r\n }", "public Date getModifiedDate() {\r\n return modifiedDate;\r\n }", "public Date getModifiedDate() {\n\t\treturn modifiedDate;\n\t}", "public Date getModifiedDate() {\n return modifiedDate;\n }", "public java.lang.String getModifiedDate() {\r\n return modifiedDate;\r\n }", "public Date getMODIFIED_DATE() {\r\n return MODIFIED_DATE;\r\n }", "public boolean isStatusdateModified() {\n return statusdate_is_modified; \n }", "public Date getModifiedDate() {\n return (Date) getAttributeInternal(MODIFIEDDATE);\n }", "public java.util.Date getDateModified(){\r\n\t\treturn dateModified;\r\n\t}", "public Date getModifiedTime() {\n return modifiedTime;\n }", "public Timestamp getModifiedDate() {\r\n return (Timestamp) getAttributeInternal(MODIFIEDDATE);\r\n }", "public Date getModificationTime()\n {\n return modified;\n }", "public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "public Date getDateModified();", "public long modified() {\n return lastModified;\n }", "public Date getClModifyTime() {\r\n\t\treturn clModifyTime;\r\n\t}", "public Date getDateModifed(){return dateModified;}", "@JsonProperty(\"Date Modified\")\n\tString getModified() {\n\t\treturn getDate(modified);\n\t}", "public Calendar getModifiedTime() {\n return this.modifiedTime;\n }", "public Date getModifiedon()\n {\n return (Date)getAttributeInternal(MODIFIEDON);\n }", "@ApiModelProperty(value = \"The event last modification date in the site timezone\")\n public String getModified() {\n return modified;\n }", "public String getModifiedTime() {\n return modifiedTime;\n }", "public final long getModifyDateTime() {\n \treturn m_modifyDate;\n }", "public Timestamp getCreateModifiedDate() {\n return createModifiedDate;\n }", "public Timestamp getCreateModifiedDate() {\n return createModifiedDate;\n }", "public Timestamp getCreateModifiedDate() {\n return createModifiedDate;\n }", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn model.getModifiedDate();\n\t}", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn model.getModifiedDate();\n\t}", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn model.getModifiedDate();\n\t}", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn _changesetEntry.getModifiedDate();\n\t}", "@Override\n\tpublic Date getModifiedDate();", "@Override\n\tpublic Date getModifiedDate();", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _locMstLocation.getModifiedDate();\n\t}", "public java.util.Date getModified_date() {\n\t\treturn _primarySchoolStudent.getModified_date();\n\t}", "public java.util.Date getModifiedDate() {\n\t\treturn _dmHistoryMaritime.getModifiedDate();\n\t}", "@JsonProperty(\"modified_date\")\n\tpublic Date getModified_date() {\n\t\treturn modifiedDate;\n\t}", "public java.lang.String getModifyDate() {\n java.lang.Object ref = modifyDate_;\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 modifyDate_ = s;\n return s;\n }\n }", "public long getModificationTime()\n {\n return modDate * 1000L;\n }", "public java.lang.String getModifyDate() {\n java.lang.Object ref = modifyDate_;\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 modifyDate_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn _userTracker.getModifiedDate();\n\t}", "@Raw @Basic\r\n public Date getModificationTime() {\r\n return modificationTime;\r\n }", "public Date getModificationTime()\n\t{\n\t\treturn modificationTime;\n\t}", "public String getModifyTime() {\n return modifyTime;\n }", "public Date getLastmodifieddate() {\n return lastmodifieddate;\n }", "public Date getModifyTime() {\r\n return modifyTime;\r\n }", "public DateTime modificationTime() {\n return this.modificationTime;\n }", "public java.sql.Timestamp getModified() {\n return modified;\n }", "public Date getLastModifyTime() {\n return lastModifyTime;\n }", "public Date getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public Date getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public Date getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getdModifyDate() {\r\n return dModifyDate;\r\n }", "public Date getdModifyDate() {\r\n return dModifyDate;\r\n }", "@Override\n public java.util.Date getModifiedDate() {\n return _partido.getModifiedDate();\n }", "public Long getLastModifiedDate()\r\n\t{\r\n\t\treturn lastModifiedDate;\r\n\t}", "public Date getModifyDate() {\n return modifyDate;\n }", "public Date getModifyDate() {\n return modifyDate;\n }", "public Date getModifyDate() {\n return modifyDate;\n }", "public String getModifytime() {\n return modifytime;\n }", "public Date getLastModifyDate() {\n return lastModifyDate;\n }", "public java.util.Date getModifyTime() {\r\n return modifyTime;\r\n }", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _employee.getModifiedDate();\n\t}", "public Date getSrcModifiedDate() {\r\n return (Date) getAttributeInternal(SRCMODIFIEDDATE);\r\n }", "public Date getModifytime() {\n return modifytime;\n }", "public String getLastModifiedDate() {\r\n\t\treturn lastModifiedDate;\r\n\t}", "@java.lang.Override\n public long getModifiedTimestamp() {\n return modifiedTimestamp_;\n }", "public Date getModifyTime() {\n return this.modifyTime;\n }", "@java.lang.Override\n public long getModifiedTimestamp() {\n return modifiedTimestamp_;\n }", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn _second.getModifiedDate();\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _candidate.getModifiedDate();\n\t}", "public Date getLastModified() {\n\t\treturn header.getDate(HttpHeader.LAST_MODIFIED);\n\t}", "public Date getModificationDate() {\n return m_module.getConfiguration().getModificationDate();\n }", "public Integer getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public String getModified() {\r\n if (modified)\r\n return \"1\";\r\n else\r\n return \"0\";\r\n }", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _scienceApp.getModifiedDate();\n\t}", "public java.sql.Timestamp getModified() {\n\treturn modified;\n}" ]
[ "0.78470516", "0.7810164", "0.77208847", "0.77068657", "0.7691479", "0.7691479", "0.76443774", "0.7642032", "0.7642032", "0.76397544", "0.76361793", "0.76230484", "0.75616336", "0.74710804", "0.74185133", "0.7395894", "0.73932815", "0.7365711", "0.7356664", "0.7352733", "0.7352733", "0.7352733", "0.7337504", "0.73087734", "0.7299646", "0.7289101", "0.72562194", "0.7254868", "0.7254105", "0.72148013", "0.7200661", "0.7163222", "0.7146786", "0.7146786", "0.7146786", "0.7137689", "0.7137689", "0.7137689", "0.7130049", "0.70590335", "0.70590335", "0.70522827", "0.7036991", "0.7032341", "0.70152825", "0.7013657", "0.6991999", "0.69814134", "0.69703585", "0.6969817", "0.69372183", "0.69245666", "0.69134575", "0.6911637", "0.69096303", "0.6907635", "0.69051117", "0.68962103", "0.68962103", "0.68962103", "0.68942994", "0.68942994", "0.68942994", "0.68942994", "0.68942994", "0.68942994", "0.68942994", "0.68942994", "0.68942994", "0.6894298", "0.6894298", "0.6892251", "0.68903476", "0.68898684", "0.68898684", "0.68898684", "0.6874444", "0.6871588", "0.68691474", "0.6857854", "0.685762", "0.6850064", "0.68427473", "0.68374026", "0.68334764", "0.68302214", "0.6828056", "0.6819135", "0.6819135", "0.6819135", "0.6819135", "0.68183047", "0.6813692", "0.68088615", "0.67896926", "0.67752564", "0.6757378", "0.6753394" ]
0.7451694
15
Sets the modified date of this vcms status.
public void setModifiedDate(Date modifiedDate);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_dmGtStatus.setModifiedDate(modifiedDate);\n\t}", "public void setModified(Date modified) {\r\n\t\tthis.modified = modified;\r\n\t}", "public void setModified(Date v) \n {\n \n if (!ObjectUtils.equals(this.modified, v))\n {\n this.modified = v;\n setModified(true);\n }\n \n \n }", "public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }", "public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }", "public void setModifiedDate(Date modifiedDate) {\r\n this.modifiedDate = modifiedDate;\r\n }", "public void setModifiedDate(Date modifiedDate) {\r\n this.modifiedDate = modifiedDate;\r\n }", "public void setModifiedDate(Date modifiedDate) {\n this.modifiedDate = modifiedDate;\n }", "@Override\n\tpublic void setModifiedDate(Date modifiedDate);", "@Override\n\tpublic void setModifiedDate(Date modifiedDate);", "public void setModifieddate(Date modifieddate) {\n this.modifieddate = modifieddate;\n }", "public void setDateModified(Date dateModified);", "public void setModifiedDate(Date modifiedDate) {\n\t\tthis.modifiedDate = modifiedDate;\n\t}", "public void setModifiedDate(Date value) {\n setAttributeInternal(MODIFIEDDATE, value);\n }", "public void setModifiedDate(java.lang.String modifiedDate) {\r\n this.modifiedDate = modifiedDate;\r\n }", "@Override\n public void setModifiedDate(java.util.Date modifiedDate) {\n _partido.setModifiedDate(modifiedDate);\n }", "void setModifyDate(final Date lastModifiedDate);", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\tmodel.setModifiedDate(modifiedDate);\n\t}", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\tmodel.setModifiedDate(modifiedDate);\n\t}", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\tmodel.setModifiedDate(modifiedDate);\n\t}", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_changesetEntry.setModifiedDate(modifiedDate);\n\t}", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_userTracker.setModifiedDate(modifiedDate);\n\t}", "public void setMODIFIED_DATE(Date MODIFIED_DATE) {\r\n this.MODIFIED_DATE = MODIFIED_DATE;\r\n }", "public void setDateModified(java.util.Date dateModified){\r\n\t\tthis.dateModified = dateModified;\r\n\t}", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_second.setModifiedDate(modifiedDate);\n\t}", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_esfTournament.setModifiedDate(modifiedDate);\n\t}", "public boolean setModifiedDate(String date)\r\n \t{\r\n lastModified = date;\r\n return true;\r\n }", "public void setModifiedDate(Timestamp value) {\r\n setAttributeInternal(MODIFIEDDATE, value);\r\n }", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_employee.setModifiedDate(modifiedDate);\n\t}", "public void setSrcModifiedDate(Date value) {\r\n setAttributeInternal(SRCMODIFIEDDATE, value);\r\n }", "public final void updateModifyDateTime() {\n \tm_modifyDate = System.currentTimeMillis();\n \tm_accessDate = m_modifyDate;\n }", "public void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_dmHistoryMaritime.setModifiedDate(modifiedDate);\n\t}", "@Override\n\tpublic void setModifiedDate(java.util.Date ModifiedDate) {\n\t\t_locMstLocation.setModifiedDate(ModifiedDate);\n\t}", "public boolean isStatusdateModified() {\n return statusdate_is_modified; \n }", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_candidate.setModifiedDate(modifiedDate);\n\t}", "public void updateDateModified() {\n dateModified = DateTime.now();\n }", "public void setDATE_MODIFIED(Date DATE_MODIFIED) {\r\n this.DATE_MODIFIED = DATE_MODIFIED;\r\n }", "public void setDATE_MODIFIED(Date DATE_MODIFIED) {\r\n this.DATE_MODIFIED = DATE_MODIFIED;\r\n }", "public void setDATE_MODIFIED(Date DATE_MODIFIED) {\r\n this.DATE_MODIFIED = DATE_MODIFIED;\r\n }", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_paper.setModifiedDate(modifiedDate);\n\t}", "public void setModifiedTime(final Calendar modifiedTimeValue) {\n this.modifiedTime = modifiedTimeValue;\n }", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_scienceApp.setModifiedDate(modifiedDate);\n\t}", "public Date getModifieddate() {\n return modifieddate;\n }", "public Date getModifiedDate() {\r\n return modifiedDate;\r\n }", "public Date getModifiedDate() {\r\n return modifiedDate;\r\n }", "public void setModifiedTime(Date modifiedTime) {\n this.modifiedTime = modifiedTime;\n }", "public void setDatemodified(String datemodified) {\n\t\tthis.datemodified = datemodified == null ? null : datemodified.trim();\n\t}", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_dmGTShipPosition.setModifiedDate(modifiedDate);\n\t}", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "public Date getModifiedDate() {\n return modifiedDate;\n }", "public void setDatemodified(String datemodified) {\n this.datemodified = datemodified == null ? null : datemodified.trim();\n }", "public void setStatusDate(Date statusDate)\r\n {\r\n m_statusDate = statusDate;\r\n }", "public void setStatusdate(java.sql.Timestamp newVal) {\n if ((newVal != null && this.statusdate != null && (newVal.compareTo(this.statusdate) == 0)) || \n (newVal == null && this.statusdate == null && statusdate_is_initialized)) {\n return; \n } \n this.statusdate = newVal; \n statusdate_is_modified = true; \n statusdate_is_initialized = true; \n }", "public final void setModified(final boolean modified) {\n this.modified = modified;\n }", "public Date getModifiedDate() {\n\t\treturn modifiedDate;\n\t}", "public void setLastmodifieddate(Date lastmodifieddate) {\n this.lastmodifieddate = lastmodifieddate;\n }", "public void setModified(boolean modified) {\r\n\t\tthis.modified = modified;\r\n\t}", "public void setModified(boolean modified) {\r\n\t\tthis.modified = modified;\r\n\t}", "public void setModifyDate(Date modifyDate) {\n this.modifyDate = modifyDate;\n }", "public void setModifyDate(Date modifyDate) {\n this.modifyDate = modifyDate;\n }", "public void setModifyDate(Date modifyDate) {\n this.modifyDate = modifyDate;\n }", "void setUpdatedDate(Date updatedDate);", "@Override\n\tpublic void setStatusDate(Date statusDate);", "public Date getMODIFIED_DATE() {\r\n return MODIFIED_DATE;\r\n }", "public Date getModified() {\r\n\t\treturn modified;\r\n\t}", "public void setModified_date(java.util.Date modified_date) {\n\t\t_primarySchoolStudent.setModified_date(modified_date);\n\t}", "public void setClModifyTime(Date clModifyTime) {\r\n\t\tthis.clModifyTime = clModifyTime;\r\n\t}", "public Date getDateModifed(){return dateModified;}", "public void setLastModifiedDate(java.util.Calendar lastModifiedDate) {\r\n this.lastModifiedDate = lastModifiedDate;\r\n }", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_dictData.setModifiedDate(modifiedDate);\n\t}", "public void setdModifyDate(Date dModifyDate) {\r\n this.dModifyDate = dModifyDate;\r\n }", "public void setdModifyDate(Date dModifyDate) {\r\n this.dModifyDate = dModifyDate;\r\n }", "public void setLastModifiedDate(Long lastModifiedDate)\r\n\t{\r\n\t\tthis.lastModifiedDate = lastModifiedDate;\r\n\t}", "void setDateUpdated(final Date dateUpdated);", "public void setLastModified(long lastModified)\r\n/* 278: */ {\r\n/* 279:415 */ setDate(\"Last-Modified\", lastModified);\r\n/* 280: */ }", "@Model\r\n\tprotected void setModificationTime() {\r\n modificationTime = new Date();\r\n }", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _dmGtStatus.getModifiedDate();\n\t}", "public void setModificationDateLocal(Date date) {\r\n\t\toModificationDate = date;\r\n\t}", "public final void updateModifyDateTime( long modTime) {\n \tm_modifyDate = modTime;\n }", "public java.lang.String getModifiedDate() {\r\n return modifiedDate;\r\n }", "public void setLastModified( long lastModified )\n {\n this.lastModified = lastModified;\n }", "public void setLastModifiedDate(java.util.Calendar lastModifiedDate) {\n this.lastModifiedDate = lastModifiedDate;\n }", "@JsonProperty(\"modified_date\")\n\tpublic Date getModified_date() {\n\t\treturn modifiedDate;\n\t}", "public void setLastModified (java.util.Date lastModified) {\r\n\t\tthis.lastModified = lastModified;\r\n\t}", "public void setLastModifiedDate(InstantFilter lastModifiedDate) {\n\t\tthis.lastModifiedDate = lastModifiedDate;\n\t}", "public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "public java.util.Date getDateModified(){\r\n\t\treturn dateModified;\r\n\t}", "public void setCreateModifiedDate(Timestamp aCreateModifiedDate) {\n createModifiedDate = aCreateModifiedDate;\n }", "public void setCreateModifiedDate(Timestamp aCreateModifiedDate) {\n createModifiedDate = aCreateModifiedDate;\n }", "public void setCreateModifiedDate(Timestamp aCreateModifiedDate) {\n createModifiedDate = aCreateModifiedDate;\n }", "public void setUpdatedOn(Date updatedOn);", "public void setLastModified(java.util.Calendar param) {\n localLastModifiedTracker = param != null;\n\n this.localLastModified = param;\n }", "void setModifiedDate(Date p_date)\n {\n throw new UnsupportedOperationException(\n \"This method is not supported. Use addHistory()\");\n }", "void setModified(Subject modifier, Date modificationTime)\n {\n this.modifier = modifier;\n this.modified = modificationTime;\n }", "@ApiModelProperty(value = \"The event last modification date in the site timezone\")\n public String getModified() {\n return modified;\n }" ]
[ "0.7551597", "0.7482998", "0.73284984", "0.7259171", "0.7259171", "0.72494596", "0.72494596", "0.7215061", "0.71688735", "0.71688735", "0.7129647", "0.7077799", "0.70462734", "0.6905126", "0.6902762", "0.6902135", "0.68728006", "0.6868324", "0.6868324", "0.6868324", "0.6853096", "0.6850773", "0.6803662", "0.67041636", "0.6663165", "0.66559196", "0.65992206", "0.6583945", "0.6535657", "0.65037966", "0.6477313", "0.645204", "0.6422201", "0.64191294", "0.63956505", "0.6361145", "0.6360075", "0.6360075", "0.6360075", "0.63333786", "0.6323941", "0.63198143", "0.63058174", "0.6299732", "0.6299732", "0.6297373", "0.6269934", "0.62592185", "0.6237328", "0.6237328", "0.62359613", "0.61994404", "0.6187325", "0.618493", "0.6168905", "0.6153797", "0.6153012", "0.6152274", "0.6152274", "0.6110714", "0.6110714", "0.6110714", "0.6102404", "0.6077291", "0.6072001", "0.6071521", "0.606681", "0.6042812", "0.60331184", "0.60289735", "0.6024522", "0.6021704", "0.6021704", "0.6018597", "0.6017556", "0.6015005", "0.6007374", "0.59800506", "0.5965557", "0.59615463", "0.59608257", "0.5922859", "0.59192383", "0.5916258", "0.5915299", "0.5910334", "0.5910155", "0.5910155", "0.5910155", "0.59056515", "0.59046984", "0.59046984", "0.59046984", "0.58660316", "0.58641905", "0.58619195", "0.5851292", "0.58477694" ]
0.7283938
5
Returns the modified by user of this vcms status.
@AutoEscape public String getModifiedByUser();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getModifiedUser() {\n\t\treturn modifiedUser;\n\t}", "public Long getModifieduser() {\n return modifieduser;\n }", "public long getModifiedByUser();", "public User getModifiedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Modified_By\");\n\n\t}", "public Integer getModifiedUserId() {\n return this.modifiedUserId;\n }", "public Integer getModifiedUserId() {\n return this.modifiedUserId;\n }", "public String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public int getModifiedBy() {\n return modifiedBy;\n }", "public String getModifiedBy(){\r\n\t\treturn modifiedBy;\r\n\t}", "public Long getModifiedBy() {\n return modifiedBy;\n }", "public Integer getModifyUser() {\n return modifyUser;\n }", "public String getModifyUser() {\n return modifyUser;\n }", "public String getModifyUser() {\n return modifyUser;\n }", "public String getModifyUser() {\n return modifyUser;\n }", "public String getModifyUser() {\n return modifyUser;\n }", "public String getModifyUser() {\n return modifyUser;\n }", "public Date getModifiedBy() {\n return modifiedBy;\n }", "public java.lang.String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public java.lang.Integer getModifiedby() {\n\treturn modifiedby;\n}", "public PersonAndOrganization getLastModifyingUser()\r\n\t{\r\n\t\treturn lastModifyingUser;\r\n\t}", "public String getModifiedby()\n {\n return (String)getAttributeInternal(MODIFIEDBY);\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public UserItem getUpdatedBy() {\n return updatedBy;\n }", "public String getModifiedBy() {\r\n return (String) getAttributeInternal(MODIFIEDBY);\r\n }", "public String getModifiedBy() {\n return (String) getAttributeInternal(MODIFIEDBY);\n }", "public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\r\n return lastModifiedBy;\r\n }", "public Long getLastModifiedUser() {\n\t\treturn this.lastModifiedUser;\n\t\t\n\t}", "public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\n return lastModifiedBy;\n }", "public String getUserStatus() {\n return userStatus;\n }", "public Integer getModifiyUserId() {\n return modifiyUserId;\n }", "@Override\n\tpublic long getModifiedBy() {\n\t\treturn _candidate.getModifiedBy();\n\t}", "public String getUpdatedBy() {\r\n return updatedBy;\r\n }", "public void setModifiedByUser(long modifiedByUser);", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public Short getModifyUserIdentity() {\n return modifyUserIdentity;\n }", "public Short getModifyUserIdentity() {\n return modifyUserIdentity;\n }", "public User getChangedBy() {\n\t\treturn null;\n\t}", "public String getLastUpdatedBy() {\n return lastUpdatedBy;\n }", "public String updatedBy() {\n return this.updatedBy;\n }", "public java.lang.String getUserStatus() {\n return userStatus;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public java.lang.String getUserStatus() {\r\n return userStatus;\r\n }", "public String getUpdateUser () {\r\n\t\treturn updateUser;\r\n\t}", "public Long getUpdateUser() {\n return updateUser;\n }", "public String getCreateModifiedBy() {\n return createModifiedBy;\n }", "public String getCreateModifiedBy() {\n return createModifiedBy;\n }", "public String getCreateModifiedBy() {\n return createModifiedBy;\n }", "@ApiModelProperty(value = \"Id of the user who last modified the record.\")\n public Long getLastModifiedBy() {\n return lastModifiedBy;\n }", "public String getUpdatedBy() {\r\n\t\treturn updatedBy;\r\n\t}", "public Long getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "@Override\n\tpublic String getStatusByUserUuid() {\n\t\treturn model.getStatusByUserUuid();\n\t}", "Long getUserUpdated();", "public String getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public Integer getUpdateUser() {\n return updateUser;\n }", "public java.lang.Integer getModifiedby() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.Integer) __getCache(\"modifiedby\")));\n }", "public boolean isUpdateUserModified() {\n return updateUser_is_modified; \n }", "@Override\n\tpublic java.lang.String getModifiedBy() {\n\t\treturn _locMstLocation.getModifiedBy();\n\t}", "public void setModifiedByUser(String modifiedByUser);", "public String getUpdateUser() {\r\n return updateUser;\r\n }", "public String getUpdateUser() {\r\n return updateUser;\r\n }", "public String getUpdateUser() {\r\n\t\treturn updateUser;\r\n\t}", "public String getUpdateUser() {\r\n\t\treturn updateUser;\r\n\t}", "public String getUpdateUser() {\n return updateUser;\n }", "public String getUpdateUser() {\n return updateUser;\n }", "public String getUpdateUser() {\n return updateUser;\n }", "public String getUpdateUser() {\n return updateUser;\n }", "public String getUpdateUser() {\n return updateUser;\n }", "public String getUpdateUser() {\n return updateUser;\n }", "public String getUpdatedby() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public String getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public String getLastModifiedBy() {\n\t\treturn this.lastModifiedBy;\n\t}", "public String getUpdatedBy() {\n return (String) getAttributeInternal(UPDATEDBY);\n }", "public Integer getLastModifiedBy() {\r\n\t\treturn lastModifiedBy;\r\n\t}", "public String getUpdateUser() {\n return updateUser; \n }", "public String getLastModifiedBy() {\n return lastModifiedBy;\n }", "@Override\n\tpublic long getStatusByUserId() {\n\t\treturn model.getStatusByUserId();\n\t}", "public Byte getUserStatus() {\r\n return userStatus;\r\n }", "UserStatus getStatus();", "public String getClModifyBy() {\r\n\t\treturn clModifyBy;\r\n\t}" ]
[ "0.7896761", "0.7878203", "0.77876246", "0.7525876", "0.7482051", "0.7482051", "0.7383881", "0.7383881", "0.738341", "0.73749423", "0.7365329", "0.7332307", "0.7271853", "0.7271853", "0.7271853", "0.7271853", "0.7271853", "0.72485733", "0.71815413", "0.709213", "0.70603913", "0.6915811", "0.687841", "0.687841", "0.687841", "0.687841", "0.6878196", "0.68604815", "0.68318933", "0.68302613", "0.6813862", "0.68028706", "0.6759116", "0.6753131", "0.67436427", "0.6734542", "0.6724071", "0.6706363", "0.6706363", "0.6706363", "0.6706363", "0.6706363", "0.6706363", "0.6706363", "0.6706363", "0.6706363", "0.6706363", "0.6706363", "0.6706363", "0.6706363", "0.6681446", "0.6681446", "0.6673345", "0.66723466", "0.6628402", "0.6609189", "0.66087097", "0.66087097", "0.66087097", "0.66087097", "0.6606127", "0.6584515", "0.65816534", "0.65809304", "0.65809304", "0.65809304", "0.65759015", "0.65728796", "0.6557488", "0.65518254", "0.6551591", "0.6548444", "0.6523429", "0.6523429", "0.6514315", "0.65001106", "0.6497476", "0.6494486", "0.6484822", "0.6481669", "0.6481669", "0.6444841", "0.6444841", "0.6441822", "0.6441822", "0.6441822", "0.6441822", "0.6441822", "0.6441822", "0.64343643", "0.6423257", "0.63793266", "0.63779086", "0.63531566", "0.6350699", "0.6346958", "0.6299751", "0.6286736", "0.6282149", "0.6270331" ]
0.73448575
11
Sets the modified by user of this vcms status.
public void setModifiedByUser(String modifiedByUser);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setModifiedByUser(long modifiedByUser);", "public void setModifiedBy(User modifiedBy)\n\t{\n\t\t this.addKeyValue(\"Modified_By\", modifiedBy);\n\n\t}", "public void setModifiedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.modifiedBy, v))\n {\n this.modifiedBy = v;\n setModified(true);\n }\n \n \n }", "public void setModifiedUser(Integer modifiedUser) {\n\t\tthis.modifiedUser = modifiedUser;\n\t}", "public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }", "public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }", "public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }", "public void setModifieduser(Long modifieduser) {\n this.modifieduser = modifieduser;\n }", "public void setModifiedBy(String modifiedBy){\r\n\t\tthis.modifiedBy = modifiedBy;\r\n\t}", "public void setModifiedBy(Long modifiedBy) {\n this.modifiedBy = modifiedBy;\n }", "public void setModifiedBy(int tmp) {\n this.modifiedBy = tmp;\n }", "public void setModifiedUserId(Integer value) {\n this.modifiedUserId = value;\n }", "public void setModifiedUserId(Integer value) {\n this.modifiedUserId = value;\n }", "public String getModifiedBy(){\r\n\t\treturn modifiedBy;\r\n\t}", "public void setModifiedBy(Date modifiedBy) {\n this.modifiedBy = modifiedBy;\n }", "public void setModifyUser(Integer modifyUser) {\n this.modifyUser = modifyUser;\n }", "public void setModifiedBy(java.lang.String modifiedBy) {\r\n this.modifiedBy = modifiedBy;\r\n }", "public int getModifiedBy() {\n return modifiedBy;\n }", "public String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public void setModifiedBy(String value) {\r\n setAttributeInternal(MODIFIEDBY, value);\r\n }", "public void setModifiedBy(String tmp) {\n this.modifiedBy = Integer.parseInt(tmp);\n }", "public void setModifiedBy(String value) {\n setAttributeInternal(MODIFIEDBY, value);\n }", "public Long getModifiedBy() {\n return modifiedBy;\n }", "public Long getModifieduser() {\n return modifieduser;\n }", "public void setModifiedBy(String modifiedBy) {\r\n this.modifiedBy = modifiedBy == null ? null : modifiedBy.trim();\r\n }", "public void setModifiedBy(String modifiedBy) {\r\n this.modifiedBy = modifiedBy == null ? null : modifiedBy.trim();\r\n }", "@Override\n\tpublic void setModifiedBy(long modifiedBy) {\n\t\t_candidate.setModifiedBy(modifiedBy);\n\t}", "public Date getModifiedBy() {\n return modifiedBy;\n }", "public void setModifiedby(java.lang.Integer newValue) {\n\tthis.modifiedby = newValue;\n}", "public void setUpdatedBy(UserItem userItem) {\n this.updatedBy = userItem;\n }", "public Integer getModifiedUser() {\n\t\treturn modifiedUser;\n\t}", "void setUpdateby(final U lastModifiedBy);", "public void setLastModifiedBy(com.sforce.soap.enterprise.sobject.User lastModifiedBy) {\r\n this.lastModifiedBy = lastModifiedBy;\r\n }", "public java.lang.String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public User getModifiedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Modified_By\");\n\n\t}", "public void setLastModifyingUser(PersonAndOrganization lastModifyingUser)\r\n\t{\r\n\t\tthis.lastModifyingUser = lastModifyingUser;\r\n\t}", "public void setCreatedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.createdBy, v))\n {\n this.createdBy = v;\n setModified(true);\n }\n \n \n }", "@Override\n\tpublic void setModifiedBy(java.lang.String ModifiedBy) {\n\t\t_locMstLocation.setModifiedBy(ModifiedBy);\n\t}", "public void setLastModifiedBy(com.sforce.soap.enterprise.sobject.User lastModifiedBy) {\n this.lastModifiedBy = lastModifiedBy;\n }", "public void setModifiedby( java.lang.Integer newValue ) {\n __setCache(\"modifiedby\", newValue);\n }", "public long getModifiedByUser();", "public Integer getModifiedUserId() {\n return this.modifiedUserId;\n }", "public Integer getModifiedUserId() {\n return this.modifiedUserId;\n }", "public java.lang.Integer getModifiedby() {\n\treturn modifiedby;\n}", "public void setModifyUser(String modifyUser) {\n this.modifyUser = modifyUser == null ? null : modifyUser.trim();\n }", "public void setModifyUser(String modifyUser) {\n this.modifyUser = modifyUser == null ? null : modifyUser.trim();\n }", "public void setModifyUser(String modifyUser) {\n this.modifyUser = modifyUser == null ? null : modifyUser.trim();\n }", "public void setModifyUser(String modifyUser) {\n this.modifyUser = modifyUser == null ? null : modifyUser.trim();\n }", "@Override\n\tpublic void setStatusByUserId(long statusByUserId);", "public String getModifyUser() {\n return modifyUser;\n }", "public String getModifyUser() {\n return modifyUser;\n }", "public String getModifyUser() {\n return modifyUser;\n }", "public String getModifyUser() {\n return modifyUser;\n }", "public String getModifyUser() {\n return modifyUser;\n }", "public void setClModifyBy(String clModifyBy) {\r\n\t\tthis.clModifyBy = clModifyBy;\r\n\t}", "public Integer getModifyUser() {\n return modifyUser;\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "public String getMODIFIED_BY() {\r\n return MODIFIED_BY;\r\n }", "private void setPrivilagesToModifyUser(User user){\n\t\tsetFields(false);\n\t\tif (!LoginWindowController.loggedUser.getPermissions().equals(\"administrator\"))\n\t\t{\n\t\t\tif (LoginWindowController.loggedUser.getId() != user.getId()){\n\t\t\t\tif ((user.getPermissions().equals(\"manager\")) \n\t\t\t\t\t\t|| (user.getPermissions().equals(\"administrator\"))){\n\t\t\t\t\tsetFields(true);\n\t\t\t\t}\n\t\t\t\tif (user.getPermissions().equals(\"pracownik\")){\n\t\t\t\t\tsetFields(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tsetFields(false);\n\t\t\t\tdeleteMenuItem.setDisable(true);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (LoginWindowController.loggedUser.getId() == user.getId()){\n\t\t\t\tdeleteMenuItem.setDisable(true);\n\t\t\t\tuserPermissionsBox.setDisable(true);\n\t\t\t}\n\t\t}\n\t}", "public void setSrcModifiedBy(String value) {\r\n setAttributeInternal(SRCMODIFIEDBY, value);\r\n }", "public void setUserStatus(java.lang.String userStatus) {\r\n this.userStatus = userStatus;\r\n }", "@ApiModelProperty(value = \"Id of the user who last modified the record.\")\n public Long getLastModifiedBy() {\n return lastModifiedBy;\n }", "@AutoEscape\n\tpublic String getModifiedByUser();", "void setAdminStatus(User user, boolean adminStatus);", "public void setModifyUserIdentity(Short modifyUserIdentity) {\n this.modifyUserIdentity = modifyUserIdentity;\n }", "public void setModifyUserIdentity(Short modifyUserIdentity) {\n this.modifyUserIdentity = modifyUserIdentity;\n }", "public void setUpdateUser(String newVal) {\n if ((newVal != null && this.updateUser != null && (newVal.compareTo(this.updateUser) == 0)) || \n (newVal == null && this.updateUser == null && updateUser_is_initialized)) {\n return; \n } \n this.updateUser = newVal; \n\n updateUser_is_modified = true; \n updateUser_is_initialized = true; \n }", "void setUserUpdated(final Long userUpdated);", "public void setUserStatus(java.lang.String userStatus) {\n this.userStatus = userStatus;\n }", "public void setModifiyUserId(Integer modifiyUserId) {\n this.modifiyUserId = modifiyUserId;\n }", "public boolean isUpdateUserModified() {\n return updateUser_is_modified; \n }", "public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\r\n return lastModifiedBy;\r\n }", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_userTracker.setModifiedDate(modifiedDate);\n\t}", "public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\n return lastModifiedBy;\n }", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }", "public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }", "public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }", "public void setMODIFIED_BY(String MODIFIED_BY) {\r\n this.MODIFIED_BY = MODIFIED_BY == null ? null : MODIFIED_BY.trim();\r\n }", "@Override\n\tpublic void setStatusByUserId(long statusByUserId) {\n\t\tmodel.setStatusByUserId(statusByUserId);\n\t}", "public void setUpdatedby( String updatedby )\n {\n this.updatedby = updatedby;\n }", "public void setLastModifiedUser(final Long lastModifiedUser) {\n\t\tthis.lastModifiedUser = lastModifiedUser;\n\t}", "void setModificationDate( String username, Date modificationDate )\n throws UserNotFoundException;", "public String getModifiedBy() {\r\n return (String) getAttributeInternal(MODIFIEDBY);\r\n }", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public User getChangedBy() {\n\t\treturn null;\n\t}", "public String getModifiedBy() {\n return (String) getAttributeInternal(MODIFIEDBY);\n }", "@Override\n\tpublic long getModifiedBy() {\n\t\treturn _candidate.getModifiedBy();\n\t}", "public void setUserStatus(Byte userStatus) {\r\n this.userStatus = userStatus;\r\n }", "public void setUpdatedBy(Long updatedBy) {\n\t\tthis.updatedBy = updatedBy;\n\t}", "@Override\n\tpublic void modifierUser(User c) {\n\t\t\n\t}", "@ApiModelProperty(value = \"The user name of the person performing the action.\")\n public String getUpdatedBy() {\n return updatedBy;\n }", "public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }" ]
[ "0.7710045", "0.7423283", "0.73368275", "0.72854304", "0.7284709", "0.7284709", "0.7284709", "0.7256602", "0.70542073", "0.70404", "0.70356154", "0.7005366", "0.7005366", "0.69329", "0.6925533", "0.69110376", "0.6844359", "0.6830165", "0.6798827", "0.6798827", "0.67786914", "0.6777689", "0.6744021", "0.67019415", "0.6662749", "0.6648506", "0.6648506", "0.66334385", "0.66051435", "0.6599997", "0.6576666", "0.65452147", "0.65132314", "0.6494945", "0.6494847", "0.6486748", "0.64647675", "0.6399854", "0.6391401", "0.6380809", "0.63377243", "0.6331905", "0.63038003", "0.63038003", "0.6242437", "0.6233275", "0.6233275", "0.6233275", "0.6233275", "0.62118155", "0.6201191", "0.6201191", "0.6201191", "0.6201191", "0.6201191", "0.6176368", "0.61563295", "0.61503595", "0.61503595", "0.61503595", "0.61503595", "0.6128064", "0.61210346", "0.6116716", "0.6074553", "0.60745114", "0.6073481", "0.6068547", "0.6068547", "0.6059605", "0.6057546", "0.6051173", "0.6029534", "0.6027179", "0.60241896", "0.6018925", "0.6018303", "0.6017485", "0.6017485", "0.6017485", "0.6012502", "0.6012502", "0.6012502", "0.6012502", "0.6010104", "0.5991611", "0.5989303", "0.59722614", "0.59653467", "0.5948443", "0.5948443", "0.5938325", "0.5921899", "0.5915575", "0.59137475", "0.59120095", "0.5904696", "0.5901802", "0.59015715", "0.59015715" ]
0.75494826
1
Returns the name of this vcms status.
@AutoEscape public String getName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getStatusName() {\n return status.getText();\n }", "public String getStatusName() {\r\n\t\treturn statusName;\r\n\t}", "@Override\n\tpublic java.lang.String getStatusName() {\n\t\treturn _dmGtStatus.getStatusName();\n\t}", "public String status() {\n return statusEnum().toString();\n }", "public String getStatus() {\n return status.toString();\n }", "public String getStatusString() {\n return status.toString();\n }", "public String getDocStatusName() {\n return MRefList.getListName(getCtx(), 131, getDocStatus());\n }", "public String getStatus() {\n return status;\n }", "@AutoEscape\n public String getStatusName();", "public String getStatus(){\r\n\t\treturn status;\r\n\t}", "public java.lang.String getStatus() {\n return status;\n }", "public java.lang.String getStatus() {\n return status;\n }", "public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public java.lang.String getStatus() {\r\n return status;\r\n }", "public String getStatus () {\r\n return status;\r\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus()\n {\n\n return status;\n }", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.Status;\n }", "public String getStatus() {\n return this.Status;\n }", "public String status() {\n return this.status;\n }", "public String status() {\n return this.status;\n }", "public java.lang.String getPatStatusName() {\n java.lang.Object ref = patStatusName_;\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 patStatusName_ = s;\n }\n return s;\n }\n }", "public java.lang.String getPatStatusName() {\n java.lang.Object ref = patStatusName_;\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 patStatusName_ = s;\n }\n return s;\n }\n }", "public String getStatus() {\n return getProperty(Property.STATUS);\n }", "public java.lang.String getStatus() {\n\t\treturn status;\n\t}", "public java.lang.String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus(){\n\n //returns the value of the status field\n return this.status;\n }", "public java.lang.String getPatStatusName() {\n java.lang.Object ref = patStatusName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n patStatusName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getPatStatusName() {\n java.lang.Object ref = patStatusName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n patStatusName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public java.lang.String getStatus () {\r\n\t\treturn status;\r\n\t}", "public String getStatus() { return status; }", "public String getStatus() {\n\t\treturn _status;\n\t}", "public String getStatus() {\n return _status;\n }", "public String getStatusView() {\r\n return statusView;\r\n }", "public String getStatusId() {\n return getProperty(Property.STATUS_ID);\n }" ]
[ "0.8386386", "0.82226294", "0.7669694", "0.7202327", "0.7140673", "0.71249336", "0.7102905", "0.7041333", "0.7016987", "0.70155495", "0.70095867", "0.70095867", "0.7008836", "0.698827", "0.698827", "0.698827", "0.698827", "0.698827", "0.6985787", "0.69820595", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6973781", "0.6971128", "0.6971128", "0.6967583", "0.6967583", "0.6967583", "0.6967583", "0.6967583", "0.6960592", "0.69600344", "0.69600344", "0.69600344", "0.69600344", "0.6958178", "0.6958178", "0.6958178", "0.69014686", "0.69014686", "0.69014686", "0.69014686", "0.69014686", "0.69014686", "0.69014686", "0.6897494", "0.6897494", "0.689561", "0.689561", "0.6881706", "0.6881706", "0.6879598", "0.68693864", "0.68693864", "0.68670654", "0.68670654", "0.68670654", "0.68397087", "0.68093795", "0.68093795", "0.6792956", "0.6792956", "0.6792956", "0.6792956", "0.6791484", "0.6791484", "0.6791484", "0.6791484", "0.6791484", "0.678967", "0.67784697", "0.67749333", "0.6757777", "0.67437005", "0.6736839" ]
0.0
-1
Sets the name of this vcms status.
public void setName(String name);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStatusName(String statusName);", "public void setStatusName(String statusName) {\r\n\t\tthis.statusName = statusName;\r\n\t}", "@Override\n\tpublic void setStatusName(java.lang.String statusName) {\n\t\t_dmGtStatus.setStatusName(statusName);\n\t}", "public void setName(String val) {\n name = val;\n }", "public void setName(String val) {\n this.name = val;\n }", "public void setName(String value) {\n this.name = value;\n }", "public void setName(java.lang.String value) {\n this.name = value;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(String value) {\n\t\tname = value;\n\t}", "@Override\n public void setName(String name)\n {\n checkState();\n this.name = name;\n }", "public void setName(String name) {\n\t this.name = name;\n\t }", "private STATUS(String name) {\n this.name = name;\n }", "public void setName( String name ) {\n doCommand( new UpdateSegmentObject( getUser().getUsername(), getFlow(), \"name\", name ) );\n }", "public void setName(String name) {\n\t\tName = name;\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}", "public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}", "@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName( String name ) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n\t\tthis.name = name;\n\t\tfireChange();\n\t}", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public final void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName (String name) {\n this.name = name;\n }", "public void setName (String name) {\n this.name = name;\n }", "public void setName (String name) {\n this.name = name;\n }", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName (String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name) {\n\n this.name = name;\n }", "public void setName(java.lang.String name) {\n this.name = name;\n }", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}" ]
[ "0.7616834", "0.7483165", "0.72243524", "0.6951034", "0.69276524", "0.68436587", "0.67966783", "0.6775026", "0.6775026", "0.6775026", "0.6748349", "0.6748349", "0.6748349", "0.6726552", "0.6712161", "0.6700672", "0.66971046", "0.6695257", "0.6693822", "0.66865623", "0.66865623", "0.66865623", "0.6671947", "0.6671947", "0.6667114", "0.66630244", "0.66630244", "0.66630244", "0.665678", "0.6653166", "0.66452897", "0.66452897", "0.66448486", "0.664409", "0.664409", "0.664409", "0.664409", "0.6637085", "0.663193", "0.663193", "0.663193", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.6631891", "0.66298383", "0.66220236", "0.66220236", "0.66220236", "0.66220236", "0.66220236", "0.66220236", "0.66220236", "0.66220236", "0.66220236", "0.66220236", "0.66220236", "0.66220236", "0.66220236", "0.66220236", "0.66220236", "0.66220236", "0.66220236", "0.66220236", "0.66220236", "0.6619228", "0.6619228", "0.6619228", "0.66164035", "0.6615211", "0.66075593", "0.66045994", "0.66045994", "0.66045994" ]
0.0
-1
Returns the description of this vcms status.
@AutoEscape public String getDescription();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getStatus() {\n return status.toString();\n }", "public String getStatusDetails() { return statusDetails; }", "public String getStatusString() {\n return status.toString();\n }", "public String status() {\n return statusEnum().toString();\n }", "public String getStatus () {\r\n return status;\r\n }", "public String getStatus(){\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus()\n {\n\n return status;\n }", "public String getStatusMessage() {\n\t\treturn statusMessage.getText();\n\t}", "public String getStatus() {\n return status;\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\n return this.Status;\n }", "public String getStatus() {\n return this.Status;\n }", "@Override\n\tpublic java.lang.String getDescription() {\n\t\treturn _dmGtStatus.getDescription();\n\t}", "public String getStatus() { return status; }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String status() {\n return this.status;\n }", "public String status() {\n return this.status;\n }", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public java.lang.String getStatus() {\n return status;\n }", "public java.lang.String getStatus() {\n return status;\n }", "public java.lang.String getStatus() {\r\n return status;\r\n }", "public java.lang.CharSequence getStatus() {\n return status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public java.lang.CharSequence getStatus() {\n return status;\n }", "public String getStatusView() {\r\n return statusView;\r\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatusName() {\n return status.getText();\n }", "public String toString() {\n return \"[\" + getStatusIcon() + \"] \" + description;\n }", "@Override\n public String toString() {\n return getStatusIcon() + \" \" + getDescription();\n }", "@Override\r\n public String toString() {\r\n return \" \" + this.getStatus() + \" \" + this.description;\r\n }", "@Override\n public String toString() {\n return getStatusIcon() + \" \" + description;\n }", "@Override\n public String toString() {\n return getStatusIcon() + \" \" + description;\n }", "public java.lang.String getStatus() {\n\t\treturn status;\n\t}", "public java.lang.String getStatus() {\n\t\treturn status;\n\t}", "@Override\n public String toString() {\n return \"[\" + getStatusIcon() + \"] \" + getDescription();\n }", "public String getStatus()\n \t{\n \t\treturn m_strStatus;\n \t}", "@Override\n public String toString() {\n return \"[\" + getStatusIcon() + \"] \" + description;\n }", "public java.lang.String getStatus () {\r\n\t\treturn status;\r\n\t}", "public String getStatus(){\n\n //returns the value of the status field\n return this.status;\n }", "public java.lang.String getStatusMessage() {\r\n return statusMessage;\r\n }", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public String statusMessage() {\n return this.statusMessage;\n }", "public String getStatus() {\n return _status;\n }" ]
[ "0.7630656", "0.757325", "0.75270736", "0.7508538", "0.74905306", "0.74836683", "0.7474039", "0.7474039", "0.7474039", "0.7474039", "0.7474039", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.7466878", "0.74654144", "0.7450589", "0.74494576", "0.7445426", "0.7445426", "0.7441779", "0.7441779", "0.7437273", "0.74243677", "0.74190855", "0.74190855", "0.74190855", "0.7416674", "0.7416674", "0.7415341", "0.7415341", "0.7415341", "0.7415341", "0.7415341", "0.73969847", "0.73917", "0.73917", "0.73917", "0.73917", "0.73895377", "0.73895377", "0.7380705", "0.7365606", "0.73502743", "0.73502743", "0.73502743", "0.73502743", "0.73502743", "0.73502743", "0.73502743", "0.73419523", "0.73409694", "0.72967595", "0.72967595", "0.72967595", "0.7278952", "0.72761005", "0.72724724", "0.7264879", "0.7245845", "0.7245845", "0.7244759", "0.7244759", "0.72392434", "0.72373486", "0.72306806", "0.72294575", "0.72290665", "0.7224637", "0.72210634", "0.72210634", "0.72210634", "0.72210634", "0.72210634", "0.7196427", "0.7189042" ]
0.0
-1
Sets the description of this vcms status.
public void setDescription(String description);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Status(String description) {\n this.description = description;\n }", "@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_dmGtStatus.setDescription(description);\n\t}", "public void setStatusDecription(String statusDecription) {this.statusDecription = statusDecription;}", "public void setDescription( String val ) {\n doCommand( new UpdateSegmentObject( getUser().getUsername(), getFlow(), \"description\", val ) );\n }", "public void setDescription(String value) {\r\n this.description = value;\r\n }", "public void setDescription(String value) {\n this.description = value;\n }", "@IcalProperty(pindex = PropertyInfoIndex.STATUS,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setStatus(final String val) {\n status = val;\n }", "public void setDescription(java.lang.String value) {\n this.description = value;\n }", "public void setDescription(String value)\r\n {\r\n getSemanticObject().setProperty(swb_description, value);\r\n }", "public void setDescription(String description) {\n this.description = description;\n this.updated = new Date();\n }", "public void setDescription(String desc) {\n description = desc;\n }", "public void setDescription(String Description) {\n this.Description = Description;\n }", "public void setDescription(String desc) {\n sdesc = desc;\n }", "public void setDescription(String description) {\n mDescription = description;\n }", "public void setDescription(String value) {\n setAttributeInternal(DESCRIPTION, value);\n }", "public void setDescription(String value) {\n setAttributeInternal(DESCRIPTION, value);\n }", "public void setDescription(String value) {\n setAttributeInternal(DESCRIPTION, value);\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String sDescription);", "public final void setDescription(final String desc) {\n mDescription = desc;\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "protected void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n UnitOfWork.getCurrent().registerDirty(this);\n }", "public void setDescription(String description) { this.description = description; }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description) {\n _description = description;\n }", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description){\n this.description = description;\n }", "void setDesc(java.lang.String desc);", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String desc) {\n this.desc = desc;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setStateDescription(String value) {\n setAttributeInternal(STATEDESCRIPTION, value);\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n\n this.description = description;\n }", "public void setDescription(String description) {\n \tthis.description = description;\n }", "public void setDescription(String desc)\r\n {\r\n\tthis.desc = desc;\r\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "void setDescription(final String description);", "public void setDescription(String _description) {\n this._description = _description;\n }", "public void setDescription(String description )\n {\n this.description = description;\n }", "void setDescription(java.lang.String description);" ]
[ "0.7417339", "0.7194861", "0.68398696", "0.6693777", "0.66253084", "0.66030097", "0.65620756", "0.64888984", "0.64103514", "0.640991", "0.63958675", "0.63434684", "0.62951577", "0.62917453", "0.6258107", "0.6258107", "0.6258107", "0.62578934", "0.62563056", "0.62158954", "0.62116593", "0.62116593", "0.62116593", "0.62116593", "0.62116593", "0.62089545", "0.62079877", "0.6199788", "0.61774945", "0.61734325", "0.6170967", "0.6170967", "0.6170967", "0.6170967", "0.6170967", "0.6170967", "0.6170967", "0.61703295", "0.61618775", "0.6155593", "0.6155593", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.6155201", "0.61504126", "0.61497915", "0.61497915", "0.61497915", "0.61486614", "0.61464614", "0.61445254", "0.6137342", "0.61324775", "0.61282545", "0.61282545", "0.61282545", "0.6128185", "0.6128185", "0.6128185", "0.6128185", "0.6128185", "0.6123961", "0.6117363", "0.61171013", "0.6115323" ]
0.0
-1
Returns the css class of this vcms status.
@AutoEscape public String getCssClass();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getSeverityClass(int status)\n/* */ {\n/* 611 */ switch (status)\n/* */ {\n/* */ case 1: \n/* 614 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 2: \n/* 617 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 3: \n/* 620 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 4: \n/* 623 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 5: \n/* 626 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ \n/* */ case 6: \n/* 629 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ }\n/* */ \n/* 632 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ }", "private String getSeverityClass(int status)\n/* */ {\n/* 602 */ switch (status)\n/* */ {\n/* */ case 1: \n/* 605 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 2: \n/* 608 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 3: \n/* 611 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 4: \n/* 614 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 5: \n/* 617 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ \n/* */ case 6: \n/* 620 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ }\n/* */ \n/* 623 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ }", "private String getSeverityClass(int status)\n/* */ {\n/* 605 */ switch (status)\n/* */ {\n/* */ case 1: \n/* 608 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 2: \n/* 611 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 3: \n/* 614 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 4: \n/* 617 */ return \"class=\\\"errorgrayborder\\\"\";\n/* */ \n/* */ case 5: \n/* 620 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ \n/* */ case 6: \n/* 623 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ }\n/* */ \n/* 626 */ return \"class=\\\"whitegrayborder\\\"\";\n/* */ }", "public String getStatus() {\r\n if (status == null)\r\n status = cells.get(7).findElement(By.tagName(\"div\")).getText();\r\n return status;\r\n }", "public String getStatusView() {\r\n return statusView;\r\n }", "public String getCssClass() {\n\t\t\treturn cssClass;\n\t\t}", "public String getStatus() {\r\n return \"[\" + getStatusIcon() + \"]\";\r\n }", "@Override\n\tpublic String getStyleClass() {\n\n\t\t// getStateHelper().eval(PropertyKeys.styleClass, null) is called because\n\t\t// super.getStyleClass() may return the styleClass name of the super class.\n\t\tString styleClass = (String) getStateHelper().eval(PropertyKeys.styleClass, null);\n\n\t\treturn com.liferay.faces.util.component.ComponentUtil.concatCssClasses(styleClass, \"showcase-output-source-code\", \"prettyprint linenums\");\n\t}", "public String getStatus() {\n return this.Status;\n }", "public String getStatus() {\n return this.Status;\n }", "public String getStatus(){\r\n\t\treturn status;\r\n\t}", "public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}", "public String getStatus() {\n return getProperty(Property.STATUS);\n }", "public String getStatus () {\r\n return status;\r\n }", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n\t\treturn status;\n\t}", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus()\n {\n\n return status;\n }", "public String getStatus() {\n\t\treturn _status;\n\t}", "public final native String getStatus() /*-{\n\t\t\treturn this.status;\n\t\t}-*/;", "public String getStatus()\n \t{\n \t\treturn m_strStatus;\n \t}", "public String getStatus() {\n return _status;\n }", "public String getStatus() {\n return status.toString();\n }", "public java.lang.String getStatus() {\r\n return status;\r\n }", "public java.lang.String getStatus() {\n return status;\n }", "public java.lang.String getStatus() {\n return status;\n }", "public Short getClStatus() {\r\n\t\treturn clStatus;\r\n\t}", "public String getStatus(){\n\n //returns the value of the status field\n return this.status;\n }", "public String getStatus() { return status; }", "public messages.Statusmessage.StatusMessage getStatus() {\n return status_;\n }", "public java.lang.CharSequence getStatus() {\n return status;\n }", "public String getStatusName() {\n return status.getText();\n }", "public java.lang.String getStatus() {\n\t\treturn status;\n\t}", "public java.lang.String getStatus() {\n\t\treturn status;\n\t}", "public java.lang.String getStatus () {\r\n\t\treturn status;\r\n\t}", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public java.lang.String getStatus () {\n\t\treturn status;\n\t}", "public String status() {\n return this.status;\n }", "public String status() {\n return this.status;\n }", "public java.lang.CharSequence getStatus() {\n return status;\n }", "public Long getStatus() {\n return this.Status;\n }", "public String status() {\n return statusEnum().toString();\n }" ]
[ "0.6858537", "0.68455625", "0.6829162", "0.6582034", "0.6570819", "0.6540505", "0.6454372", "0.6440477", "0.6402998", "0.6402998", "0.6384969", "0.63764155", "0.63601375", "0.6328864", "0.6314075", "0.6314075", "0.6314075", "0.6314075", "0.6314075", "0.6309119", "0.6309119", "0.6309119", "0.6309119", "0.6309119", "0.63066715", "0.63066715", "0.62938553", "0.62938553", "0.62938553", "0.62938553", "0.62938553", "0.62938553", "0.62938553", "0.62882316", "0.62879634", "0.62879634", "0.62879634", "0.62879634", "0.6284908", "0.6284908", "0.6284908", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.6269325", "0.62642455", "0.62642455", "0.62642455", "0.62481153", "0.6221055", "0.6212608", "0.62006205", "0.6192647", "0.6189478", "0.6187799", "0.61766684", "0.61766684", "0.61757576", "0.6170353", "0.61668295", "0.61626244", "0.6156601", "0.6149121", "0.6148398", "0.6148398", "0.614556", "0.61430055", "0.61430055", "0.61430055", "0.61430055", "0.61430055", "0.6139478", "0.6139478", "0.613254", "0.61158216", "0.6093901" ]
0.0
-1
Sets the css class of this vcms status.
public void setCssClass(String cssClass);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final native void setCssClass(String cssClass) /*-{\r\n\t\tthis.cssClass = cssClass;\r\n\t}-*/;", "public void setStatus(Status newStatus){\n status = newStatus;\n }", "public void setStatus(int newStatus) {\n status = newStatus;\n }", "void setStatus(java.lang.String status);", "void setStatus(STATUS status);", "public void setStatusView(String statusView) {\r\n this.statusView = statusView;\r\n }", "void setStatus(String status);", "public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }", "public void setStatus(Status vmStatus) {\n this.vmStatus = vmStatus;\n }", "public void setStatus(JobStatus status);", "void setStatus(int status);", "void setStatus(TaskStatus status);", "public void setStatus(boolean newStatus);", "public void setStatus(int status);", "public void setStatus(int status);", "public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }", "public void setStatus(String Status) {\n this.Status = Status;\n }", "public void setStatus(String Status) {\n this.Status = Status;\n }", "public void setStatus( short newStatus )\r\n {\r\n setStatus( newStatus, -1, null );\r\n }", "public void setStatus(long status) {\r\n this.status = status;\r\n }", "public void setClStatus(Short clStatus) {\r\n\t\tthis.clStatus = clStatus;\r\n\t}", "public void setStatus(String stat)\n {\n status = stat;\n }", "public void setClass_(String newValue);", "public void setStatus(Status status) {\r\n this.status = status;\r\n }", "public void setStatus(int status) {\n STATUS = status;\n }", "public void setStatus(String status) { this.status = status; }", "public void setStatus(boolean newstatus){activestatus = newstatus;}", "public void setStatus(Long Status) {\n this.Status = Status;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public void setStatus(Status status)\n {\n this.status = status;\n }", "public void setStatus(STATUS status) {\n this.status = status;\n }", "public void setStatusCd(String statusCd) {\n\t\t\n\t}", "public void setStatus(String newStatus)throws Exception{\n\t\t\n\t\tthis.status = newStatus;\n\t\toverWriteLine(\"Status\", newStatus);\n\t}", "public void setStatus( int pStatus )\r\n {\r\n mStatus = pStatus;\r\n }", "public void setStatus( short newStatus, int statusSeconds )\r\n {\r\n setStatus( newStatus, statusSeconds, null );\r\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }", "public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}", "final public void setStyleClass(String styleClass)\n {\n setProperty(STYLE_CLASS_KEY, (styleClass));\n }", "public void setStatus(String value) {\r\n setAttributeInternal(STATUS, value);\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(int status)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUS$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATUS$12);\n }\n target.setIntValue(status);\n }\n }", "public void setStatus(String status) {\n statusLabel.setText(status);\n }", "public void setStatus(String value) {\n setAttributeInternal(STATUS, value);\n }", "public void setStatus(int status) {\n\t\tthis.status = (byte) status;\n\t\trefreshStatus();\n\t}", "public void setStatus (java.lang.String status) {\r\n\t\tthis.status = status;\r\n\t}", "@Override\n\tpublic void setStatus(int status);", "public void jsSet_status(int sts)\n\t{\n\t\tm_status = sts;\n\t}", "protected void setStatus(WorkflowStatus newStatus) {\n\t\tif (status == newStatus) {\n\t\t\treturn;\n\t\t}\n\n\t\tstatus = newStatus;\n\t\tnotifyWorkflowStatusListeners();\n\t}", "public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStyleClass(String styleClass) {\r\n this.styleClass = styleClass;\r\n }", "public void setClass(UmlClass c) {\n\t\tlogicalClass = c;\n\t}", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(java.lang.CharSequence value) {\n this.status = value;\n }", "public void setStatus(EnumVar status) {\n this.status = status;\n }", "public void setStatus(java.lang.Object status) {\n this.status = status;\n }", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(java.lang.String status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus(Byte status) {\r\n this.status = status;\r\n }", "public void setStatus (java.lang.String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus (java.lang.String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus (java.lang.String status) {\n\t\tthis.status = status;\n\t}" ]
[ "0.66268754", "0.6159346", "0.60069716", "0.5958716", "0.5942522", "0.5928981", "0.59084666", "0.5895605", "0.58846164", "0.5869175", "0.5840203", "0.5835988", "0.5819035", "0.5799196", "0.5799196", "0.57972586", "0.57879776", "0.57879776", "0.5780897", "0.57488555", "0.5742071", "0.5741634", "0.57355314", "0.57215774", "0.5712266", "0.5708291", "0.5683112", "0.56818014", "0.56707287", "0.56707287", "0.5663355", "0.56630266", "0.5660748", "0.5651731", "0.5641553", "0.5627381", "0.56225854", "0.56225854", "0.56225854", "0.56225854", "0.56103396", "0.56044275", "0.55992186", "0.559225", "0.559136", "0.55912375", "0.5582425", "0.5582425", "0.5580712", "0.5580507", "0.55590695", "0.55569583", "0.55389977", "0.5533175", "0.5530224", "0.5529901", "0.5527439", "0.5527224", "0.5527224", "0.55236435", "0.551738", "0.55139726", "0.55139726", "0.5505604", "0.5503758", "0.54978216", "0.549022", "0.549022", "0.549022", "0.549022", "0.549022", "0.5489104", "0.5489104", "0.5489104", "0.5489104", "0.5489104", "0.5489104", "0.5489104", "0.5489104", "0.5489104", "0.5489104", "0.5489104", "0.5489104", "0.5489104", "0.5489104", "0.5489104", "0.5489104", "0.5485522", "0.5485522", "0.5480063", "0.5477563", "0.5477563", "0.5477563", "0.5477563", "0.5477563", "0.5477563", "0.5477563", "0.54706156", "0.54706156", "0.54706156" ]
0.7033539
0
Returns the text color of this vcms status.
@AutoEscape public String getTextColor();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int textColor() {\n\t\treturn textColor;\n\t}", "public String getTextColor();", "public int getTextColor() {\n return mTextColor;\n }", "public Color getTextColor() {\r\n return textColor;\r\n }", "public RMColor getTextColor() { return RMColor.black; }", "public @ColorInt int getTextColor() {\n return mTextContainer.getTextColor();\n }", "public String getColorAsString() {\n\t\treturn getValue(CommonProperty.COLOR, AbstractLabels.DEFAULT_COLOR);\n\t}", "public Color getTextColor();", "Integer getTxtColor();", "public Color color() {\n\t\tswitch (this) {\n\t\tcase FATAL: {\n\t\t\tColor c = UIManager.getColor(\"nb.errorForeground\"); // NOI18N\n\t\t\tif (c == null) {\n\t\t\t\tc = Color.RED.darker();\n\t\t\t}\n\t\t\treturn c;\n\t\t}\n\t\tcase WARNING:\n\t\t\treturn Color.BLUE.darker();\n\t\tcase INFO:\n\t\t\treturn UIManager.getColor(\"textText\");\n\t\tdefault:\n\t\t\tthrow new AssertionError();\n\t\t}\n\t}", "public int getTextLabelForegroundColor() {\n\t\treturn mTextLabelForegroundColor;\n\t}", "public String getLabelColor()\n {\n return myLabelColor;\n }", "public String get() {\n\n\t\treturn Tools.parseColors(message, false);\n\t}", "public Color getStringColor() {\n return this.getConfiguredColor(PreferencesConstants.COLOR_STRING);\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\n return color;\n }", "public String getColor() {\r\n return color;\r\n }", "public String getColor() {\r\n\t\treturn color;\r\n\t}", "public String getColor() {\n\t\treturn color;\n\t}", "public String getColor() {\n\t\treturn color;\n\t}", "public String getColor()\n {\n return color;\n }", "public String getColor()\n {\n return color;\n }", "public String getColor(){\n\t\treturn color;\n\t}", "public String getColor()\n {\n return this.color;\n }", "public String getColor() {\n return this.color;\n }", "public String getColor() {\n\t\treturn \"Elcolor del vehiculo es: \"+color; \n\t }", "public String getColor() {\n return (String)getAttributeInternal(COLOR);\n }", "public Color getTextColor(){\r\n return textColor;\r\n }", "public static Color getTextColorLight() {\n return TEXTCOLOR_LIGHT;\n }", "public Integer getHightlightedTextColor() {\n if (mHightlightedTextColor != null)\n return mHightlightedTextColor;\n return getTextColor();\n }", "public String getColorString();", "public String getStatusText() {\n return statusLine.getReasonPhrase();\n }", "public String getStatus() {\r\n if (status == null)\r\n status = cells.get(7).findElement(By.tagName(\"div\")).getText();\r\n return status;\r\n }", "public Color getLblColor() {\n return lblColor;\n }", "public String getColor() { \n return color; \n }", "@Override\r\n\tpublic String Color() {\n\t\treturn Color;\r\n\t}", "public String getColor() {\r\n\t\treturn \"Color = [\"+ ColorUtil.red(color) + \", \"+ ColorUtil.green(color) + \", \"+ ColorUtil.blue(color) + \"]\";\r\n\t}", "public String getStatus() {\n\t\tString result = getName() + \"\\n-----------------------------\\n\\n\";\n\t\tfor(int i = 0; i < lines.size(); i++) {\n\t\t\tresult = result + lines.get(i).getStatus() + \"\\n\";\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public String obtenColor() {\r\n return color;\r\n }", "public String getTickColorAsString();", "protected Color getUptimeColor() {\n\t\tfinal long uptime = System.currentTimeMillis()\n\t\t\t\t- Activator.getDefault().getStartTime();\n\t\tif (uptime < 7200000)\n\t\t\treturn display.getSystemColor(SWT.COLOR_DARK_GREEN);\n\t\telse if (uptime < 14400000)\n\t\t\treturn display.getSystemColor(SWT.COLOR_BLUE);\n\t\telse\n\t\t\treturn display.getSystemColor(SWT.COLOR_RED);\n\t}", "@NoProxy\n @NoWrap\n @NoDump\n public String getColor() {\n return color;\n }", "public String getStatusMessage() {\n\t\treturn statusMessage.getText();\n\t}", "@Override\n public String getColor() {\n return this.color;\n }", "public String getColor(){\r\n return color;\r\n }", "public String getColor() {\n return currentLocation.getNodeColor();\n }", "public String getColor(){\n return this._color;\n }", "public String getColorStyle() {\n return colorStyle;\n }", "public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}", "public java.lang.CharSequence getStatus() {\n return status;\n }", "public RMColor getColor()\n {\n return getStyle().getColor();\n }", "public static Color getTextColorDark() {\n return TEXTCOLOR_DARK;\n }", "@Override\n public String getColor() {\n return this.color.name();\n }", "public final String getFontColor() {\n\t\treturn fontColor;\n\t}", "public java.lang.CharSequence getStatus() {\n return status;\n }", "public Color[] getTextColorsArray() {\n\t\treturn this.textColor;\n\t}", "public String getStatusName() {\n return status.getText();\n }", "public Color getColor() {\n return Color.YELLOW;\n }", "public static Color getTextHighlightColor() {\n return TEXT_HIGHLIGHT;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public static Color getColor() { return lblColor.getBackground(); }", "String getColor();", "public String getColor(){\n return this.color;\n }", "public String getStatusView() {\r\n return statusView;\r\n }", "public String getStatus() {\n return status.toString();\n }", "public String getHtmlColor() {\n\t\tString sRed = Integer.toHexString(color.getRed());\n\t\tString sGreen = Integer.toHexString(color.getGreen());\n\t\tString sBlue = Integer.toHexString(color.getBlue());\n\t\t\n\t\treturn \"#\" + (sRed.length() == 1 ? \"0\" + sRed : sRed) +\n\t\t\t\t(sGreen.length() == 1 ? \"0\" + sGreen : sGreen) +\n\t\t\t\t(sBlue.length() == 1 ? \"0\" + sBlue : sBlue);\n\t}", "public String getStatus() {\n return this.Status;\n }", "public String getStatus() {\n return this.Status;\n }", "public String getStatus(){\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\n return mBundle.getString(KEY_STATUS);\n }", "public String getStatus()\n {\n\n return status;\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\n return status;\n }", "public String getStatus()\n \t{\n \t\treturn m_strStatus;\n \t}" ]
[ "0.7495434", "0.73398423", "0.7199013", "0.70928997", "0.70716995", "0.70560396", "0.704501", "0.70371145", "0.7016925", "0.6988569", "0.6968021", "0.69146895", "0.69094986", "0.690693", "0.67621905", "0.67621905", "0.67621905", "0.67621905", "0.67621905", "0.67621905", "0.67621905", "0.67621905", "0.67541367", "0.67536604", "0.6744385", "0.6744385", "0.67159605", "0.67159605", "0.66711843", "0.6646064", "0.66378134", "0.66301227", "0.6591283", "0.6581604", "0.65596294", "0.6538499", "0.6536013", "0.6513513", "0.6507652", "0.65014184", "0.6498523", "0.6478012", "0.6466457", "0.64582485", "0.64473796", "0.644032", "0.64290005", "0.6427641", "0.6426881", "0.6424431", "0.6410555", "0.6408162", "0.6392352", "0.63786936", "0.63668877", "0.635881", "0.6350818", "0.6346022", "0.6342554", "0.63323987", "0.63313013", "0.6326979", "0.6317876", "0.6309654", "0.63038623", "0.6293841", "0.6293841", "0.6293841", "0.6293841", "0.6293841", "0.6293841", "0.6293841", "0.6291218", "0.6288518", "0.62870747", "0.6285409", "0.62834674", "0.6270966", "0.62644607", "0.62644607", "0.6263943", "0.62468445", "0.62468445", "0.62468445", "0.62468445", "0.62468445", "0.62458366", "0.6244456", "0.62364113", "0.62364113", "0.62364113", "0.62364113", "0.62364113", "0.6234883", "0.6234883", "0.6234883", "0.6231793", "0.6231793", "0.6212197", "0.6211576" ]
0.70613307
5
Sets the text color of this vcms status.
public void setTextColor(String textColor);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTextColor( Color txtColor ) {\r\n textColor = txtColor;\r\n }", "public void setTextColor(int textColor) {\n this.textColor = textColor;\n }", "public void setTextColor(Color textColor) {\r\n this.textColor = textColor;\r\n }", "public void setProgressTextColor(@ColorInt int textColor){\n this.mProgressTextColor = textColor;\n }", "public void setTextColor(RMColor aColor) { }", "public void setTextColor(int color) {\n mTextColor = color;\n }", "public CommandViewBuilder setTextColor(Color textColor)\n\t\t{\n\t\t\tthis.textColor = textColor;\n\t\t\treturn this;\n\t\t}", "public void setTextColor(@ColorInt int textColor) {\n mTextContainer.setTextColor(textColor);\n }", "public static void setGlobalTextColor(Context context, int color){\n SharedPreferences.Editor edit = context.getSharedPreferences(\"DEFAULTS\", Context.MODE_PRIVATE).edit();\n edit.putInt(\"textColor\", color);\n edit.apply();\n\n ArrayList<Outfit> list = getOutfitList(context);\n if(list.size()>0){\n for(int i = 0 ; i<list.size(); i++){\n list.get(i).setTextColor(color);\n }\n saveOutfitJSON(context, list);\n }\n }", "public void setTextColor(int color) {\n this.textColor = 0xFF000000 | color; // Remove the alpha channel\n\n if (ad != null) {\n ad.setTextColor(color);\n }\n\n invalidate();\n }", "Color(String text) {\n this.text = text;\n }", "public void setStatusText(String text) {\r\n\t\tthis.status_text.setText(text);\r\n\t}", "public IconBuilder textColor(int color) {\n\t\tthis.textColor = color;\n\t\treturn this;\n\t}", "public void setLblTextColor(Color color) {\n lblSysteemMelding.setForeground(color);\n }", "private void updateTextColor(TextView view, boolean isOn) {\n if (isOn) {\n view.setTextColor(Color.GREEN);\n } else {\n view.setTextColor(Color.BLACK);\n }\n }", "public void setLblColor(Color value) {\n lblColor = value;\n }", "public static void setTextColor(String color, TextView v){\n v.setTextColor(Color.parseColor(color.isEmpty() ? \"#000000\" : color));\n }", "@Override\n public void setStatusText(String text) {\n status.setText(text);\n }", "public void setStatus(String text) {\n labelStatus.setText(text);\n }", "void setStatusColour(Color colour);", "public Color getTextColor() {\r\n return textColor;\r\n }", "public int textColor() {\n\t\treturn textColor;\n\t}", "public void colorText() {\r\n String theColor = textShape.getText();\r\n if (theColor.contains(\"blue\")) {\r\n textShape.setForegroundColor(Color.BLUE);\r\n }\r\n else if (theColor.contains(\"red\")) {\r\n textShape.setForegroundColor(Color.RED);\r\n }\r\n else {\r\n textShape.setForegroundColor(Color.BLACK);\r\n }\r\n }", "private void setConsoleText(String text) {\n //<font color='red'>red</font>\n consoleView.setText(Html.fromHtml(text), TextView.BufferType.SPANNABLE);\n }", "@Override\n public void setPriorityTextColor(String textColor) {\n btnPrioritySet.setTextColor(Color.parseColor(textColor));\n }", "@Override\n\tpublic void setStatusText (String text) {\n\t}", "void setGOLabelTextColor(DREM_Timeiohmm.Treenode treeptr, Color newColor) {\n\t\tif (treeptr != null) {\n\t\t\ttreeptr.goText.setTextPaint(newColor);\n\n\t\t\tfor (int nchild = 0; nchild < treeptr.numchildren; nchild++) {\n\t\t\t\tsetGOLabelTextColor(treeptr.nextptr[nchild], newColor);\n\t\t\t}\n\t\t}\n\t}", "void setColor(ChatColor color);", "public void setColor(String c);", "@NoProxy\n @NoWrap\n public void setColor(final String val) {\n color = val;\n }", "public void setLabelColor(String labelColor)\n {\n myLabelColor = labelColor;\n }", "private void updateStatusText() {\n Piece.Color playerColor = board.getTurnColor();\n\n if(board.isGameOver()) {\n if(board.isDraw()) {\n tvShowStatus.setTextColor(Color.BLUE);\n tvShowStatus.setText(\"DRAW\");\n }\n else if (board.getWinnerColor() == Piece.Color.Black) {\n tvShowStatus.setTextColor(Color.BLACK);\n tvShowStatus.setText(\"BLACK WINS\");\n }\n else {\n tvShowStatus.setTextColor(Color.WHITE);\n tvShowStatus.setText(\"WHITE WINS\");\n }\n }\n else if(playerColor == Piece.Color.Black) {\n tvShowStatus.setTextColor(Color.BLACK);\n tvShowStatus.setText(\"BLACK\");\n }\n else {\n tvShowStatus.setTextColor(Color.WHITE);\n tvShowStatus.setText(\"WHITE\");\n }\n }", "public RMColor getTextColor() { return RMColor.black; }", "public void setForegroundColor(int color) {\n this.foregroundColor = color;\n }", "public void changeColor (Color color){\n ((Label) _node).setTextFill(color);\n }", "public void setDisabledTextColor(Color arg1) {\r\n\t\tgetJTextField().setDisabledTextColor(arg1);\r\n\t}", "public void setConnStatus(String text){\n connStatus.setText(text);\n }", "@Override\n public void setColor(String parseColor) {\n this.parseColor = parseColor;\n edtTitle.setTextColor(Color.parseColor(parseColor));\n }", "public void setColor(String value) {\n setAttributeInternal(COLOR, value);\n }", "public Color getTextColor(){\r\n return textColor;\r\n }", "public void setTextLabelForegroundColor(int mTextLabelForegroundColor) {\n\t\tthis.mTextLabelForegroundColor = mTextLabelForegroundColor;\n\t}", "public String getTextColor();", "public void setCursorPositionColor(Color color)\n {\n this.jStatusBarColor.setBackground(color);\n this.jStatusBarColor.setText(\"RGB:\"+color.getRed()+\",\"+color.getGreen()+\",\"+color.getBlue());\n }", "public int getTextColor() {\n return mTextColor;\n }", "private void updateTextColor() {\n if (mLauncher == null) {\n return;\n }\n ItemInfo info = (ItemInfo) getTag();\n if (info == null || mSupportCard) {\n return;\n }\n int color = getDyncTitleColor(info);\n mIconTitleColor = color;\n setPaintShadowLayer(color);\n if (getPaint().getColor() != color) {\n setTextColor(color);\n }\n\n }", "public void setFontColor(Color fontColor) {\r\n try {\r\n this.setForeground(fontColor);\r\n } catch (Exception e) {\r\n ToggleButton.logger.error(this.getClass().toString() + \" : Error establishing font color\", e);\r\n if (ApplicationManager.DEBUG) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n }\r\n }", "@AutoEscape\n\tpublic String getTextColor();", "private void setDefaultTextColor(Context context) {\n\n }", "public native final EditorBaseEvent fontColor(String val) /*-{\n\t\tthis.fontColor = val;\n\t\treturn this;\n\t}-*/;", "public void setColor(String color) {\r\n this.color = color;\r\n }", "public void applyColor() {\n\t\tSystem.out.println(\"Yellow\");\n\n\t}", "public void setColor(String color){\n this.color = color;\n }", "public BaseViewHolder setTextColor(@IdRes int viewId, @ColorInt int textColor) {\n TextView view = getView(viewId);\n view.setTextColor(textColor);\n return this;\n }", "public void setStatus(java.lang.CharSequence value) {\n this.status = value;\n }", "public Builder setContentTextColor(@ColorInt int color) {\n this.contentTextColor = color;\n return this;\n }", "private void setColor(final boolean Success) {\n\n handler.post(new Runnable() {\n @Override\n public void run() {\n TextView tv = (TextView) rootView.findViewById(R.id.header);\n if (Success) {\n tv.setBackgroundColor(Color.GREEN);\n tv.setText(R.string.WifiStaticArp_ON);\n } else {\n tv.setBackgroundColor(Color.RED);\n tv.setText(R.string.WifiStaticArp_OFF);\n }\n }\n });\n }", "public void setColor(String color) {\r\n this.color = color;\r\n }", "public IconBuilder autoTextColor() {\n\t\tthis.textColor = AUTO_TEXT_COLOR;\n\t\treturn this;\n\t}", "void setStatus(java.lang.String status);", "public void setColor(String pColor){\n this._color=pColor;\n }", "public Color getTextColor();", "void seeGreen() {\n\t\tbar.setForeground(Color.GREEN);\n\t}", "public void setStatus(String status) {\n statusLabel.setText(status);\n }", "public void setColor(String c)\n { \n color = c;\n draw();\n }", "public void setColor(String color) {\n this.color = color;\n }", "public void setColor(String color) {\n this.color = color;\n }", "public void setColor(String color) {\n this.color = color;\n }", "public void setColor(String color) {\n this.color = color;\n }", "public void setColor(String color) {\n this.color = color;\n }", "public void setColor(String color) {\n this.color = color;\n }", "public ComDialogBuilder setMessageTextColor(int color) {\n if(dialogMsg!=null){\n dialogMsg.setTextColor(color);\n }\n return this;\n }", "public void setErrorText(String error, int color){\n errorText.setTextColor(color);\n errorText.setText(error);\n }", "public void setColor(String color) {\r\n\t\tthis.color = color;\r\n\t}", "public ComDialogBuilder setTitleTextColor(int color) {\n if(dialogTitle!=null){\n dialogTitle.setTextColor(color);\n }\n return this;\n }", "public void setDrawTickTexts(Color color) {\n mTextPaint.setColor(color);\n drawTickTextsColor = color;\n }", "public static void setBlue() {\r\n playerTeam.setColor(blue);\r\n updateMessage(\"Seu time agora é azul\");\r\n }", "public void setStatus(String newStatus)throws Exception{\n\t\t\n\t\tthis.status = newStatus;\n\t\toverWriteLine(\"Status\", newStatus);\n\t}", "@Override\n\tpublic void setColor(String color) {\n\t\tthis.color = color;\n\t}", "public void setForeground(Color c)\n {\n lname.setForeground(c);\n }", "void setColor(){\n this.objectColour = new Color(rValue,gValue,bValue,timeToLive).brighter();\n }", "public void setColor(int color);", "public void setColor(int color);", "public void setForegroundColor(Color c) {\n this.foreColor = c;\n updateFigureForModel(nodeFigure);\n }", "public void setColor(Color clr){\n color = clr;\n }", "public void setColor(Color color);", "private void setViewpagerTitleTextColor(int item){\n\t\tif(item == 0){\n\t\t\tmain_viewpager_title_tv_hot.setTextColor(getResources().getColor(R.color.main_viewpager_title_tv_active_color));\n\t\t\tmain_viewpager_title_tv_character.setTextColor(getResources().getColor(R.color.main_viewpager_title_tv_inactive_color));\n\t\t\tmain_viewpager_title_tv_picture.setTextColor(getResources().getColor(R.color.main_viewpager_title_tv_inactive_color));\n\t\t} else if(item == 1){\n\t\t\tmain_viewpager_title_tv_hot.setTextColor(getResources().getColor(R.color.main_viewpager_title_tv_inactive_color));\n\t\t\tmain_viewpager_title_tv_character.setTextColor(getResources().getColor(R.color.main_viewpager_title_tv_active_color));\n\t\t\tmain_viewpager_title_tv_picture.setTextColor(getResources().getColor(R.color.main_viewpager_title_tv_inactive_color));\n\t\t} else if(item == 2){\n\t\t\tmain_viewpager_title_tv_hot.setTextColor(getResources().getColor(R.color.main_viewpager_title_tv_inactive_color));\n\t\t\tmain_viewpager_title_tv_character.setTextColor(getResources().getColor(R.color.main_viewpager_title_tv_inactive_color));\n\t\t\tmain_viewpager_title_tv_picture.setTextColor(getResources().getColor(R.color.main_viewpager_title_tv_active_color));\n\t\t}\n\t}", "public @ColorInt int getTextColor() {\n return mTextContainer.getTextColor();\n }", "@Override\n public void setCommunityColor(String strCommunity, String strColor, TimeFrame tf){\n icommunityColors.setCommunityColor(strCommunity, strColor, tf);\n }", "public void setColor(String color) \n\t{\n\t\tthis.color = color;\n\t}", "public IconBuilder autoTextColorPreferWhite() {\n\t\tthis.textColor = AUTO_TEXT_COLOR_WHITE;\n\t\treturn this;\n\t}", "@Override\r\n public void setForeground(Color color) {\r\n super.setForeground(Color.WHITE); //To change body of generated methods, choose Tools | Templates.\r\n }", "@Override\n\tpublic void setColor(String color) {\n\t\tthis.color=color;\n\t}", "public int getTextLabelForegroundColor() {\n\t\treturn mTextLabelForegroundColor;\n\t}", "@Override\n public void changeColor(ColorEvent ce) {\n \n txtRed.setText(\"\"+ ce.getColor().getRed());\n txtGreen.setText(\"\"+ ce.getColor().getGreen());\n txtBlue.setText(\"\"+ ce.getColor().getBlue());\n \n \n }", "public void setStatusBarColor() {\n super.setStatusBarColor();\n StatusBarUtil.StatusBarLightMode(this);\n }", "public void setColor(Color c) {\n color = c;\n }", "public void setColor(String aColor, Context context){\n this.color = aColor;\n writeFile(context);\n }", "private void setLblStatus(String s){\n\t\tlblState.setText(s);\n\t}", "public IconBuilder autoTextColorPreferBlack() {\n\t\tthis.textColor = AUTO_TEXT_COLOR_BLACK;\n\t\treturn this;\n\t}", "public void setColor(String color) {\n\t\tthis.color = color;\n\t}" ]
[ "0.7269117", "0.7232748", "0.72320384", "0.7170874", "0.7080785", "0.7062139", "0.6825942", "0.6799403", "0.6680961", "0.6648897", "0.66143227", "0.6585395", "0.653602", "0.65343773", "0.64908075", "0.64121056", "0.6411668", "0.6394146", "0.6369116", "0.6298558", "0.6292718", "0.6278745", "0.6252258", "0.62131137", "0.6212678", "0.6207238", "0.618817", "0.6188071", "0.61853564", "0.6184615", "0.616136", "0.6157108", "0.6151565", "0.61176276", "0.6094311", "0.609204", "0.60586095", "0.6044479", "0.60185915", "0.59894747", "0.5970917", "0.5965854", "0.59486353", "0.59317213", "0.59175366", "0.59122837", "0.588728", "0.588514", "0.58572555", "0.58473927", "0.58391327", "0.5831954", "0.58308893", "0.5823759", "0.57895476", "0.5788884", "0.5769913", "0.5760586", "0.57540846", "0.5741422", "0.57329065", "0.5729508", "0.57276934", "0.5718558", "0.571322", "0.571322", "0.571322", "0.571322", "0.571322", "0.571322", "0.57111156", "0.57045496", "0.56688344", "0.56657106", "0.5665119", "0.56593305", "0.56559706", "0.5634694", "0.56332105", "0.5626097", "0.5610274", "0.5610274", "0.5604198", "0.5601506", "0.55970585", "0.5595523", "0.5595367", "0.55921966", "0.55865884", "0.55735284", "0.55717343", "0.5570299", "0.5570053", "0.5569999", "0.55675155", "0.55659384", "0.55657166", "0.5564646", "0.55623865", "0.5554902" ]
0.74994344
0
Returns the position of this vcms status.
public int getPosition();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long position() {\n return _pos;\n }", "public java.lang.Integer getPosition() {\n return position;\n }", "public java.lang.Integer getPosition() {\n return position;\n }", "public Integer getPosition() {\n return position;\n }", "public int getPosition() {\n return position;\n }", "public long getPos()\n\t{\n\t\treturn -1;\n\t}", "public int getPosition() {\r\n\t\treturn position;\r\n\t}", "public int getPosition()\n {\n return getInt(\"Position\");\n }", "public Integer getPosition() {\n return this.position;\n }", "public int getPosition()\n\t{\n\t\treturn position;\n\t}", "public int getPosition() {\n return position;\n }", "public int getPosition() {\n return position;\n }", "public int getPosition() {\n return position;\n }", "public int getPosition() {\n log.log(Level.FINE, \"position: \" + position + \"ms\");\n return position;\n }", "public final int getPosition() {\n return position;\n }", "public int getPosition() {\r\n return position;\r\n }", "public Integer getPosition()\n {\n return position;\n }", "public int getPosition()\r\n {\r\n return position;\r\n }", "public int getPos()\n {\n return pos;\n }", "public String getPosition(){\r\n\t\treturn position;\r\n\t}", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public int position() {\n return pos;\n }", "@JsOverlay\n\tpublic final String getPosition() {\n\t\treturn this.position;\n\t}", "public int getPosition() {\n return preferences.getInt(\"position\",0);\n }", "public int getPosition(){\n return -1;\n }", "public int getPos()\n {\n return pos;\n }", "public IntegerTulep getPosition() {\n return position;\n }", "public long position() {\n\t\tif (mPlayer.isInitialized()) {\n\t\t\treturn mPlayer.position();\n\t\t}\n\t\treturn -1;\n\t}", "public int getPositionl() {\n return preferences.getInt(\"positionl\",0);\n }", "public Pos getPos()\r\n\t{\r\n\t\treturn position;\r\n\t}", "public Integer getPositionnum() {\n\t\treturn positionnum;\n\t}", "public Position getPosition() {\n\t\treturn position;\n\t}", "public int getCurrentPosition(){\n return Integer.parseInt(currentPosition);\n }", "public int getCurrentPos() {\n return currentPos;\n }", "public Vector2 getPosition() {\n\t\treturn pos;\n\t}", "public long getPosition();", "public Position getPosition()\n\t{\n\t\treturn position;\n\t}", "public PVector getPosition(){\n\t\treturn position;\n\t}", "public PVector getPos() {\n\t\treturn pos;\n\t}", "public Position getPosition() {\n return position;\n }", "public Position getPosition() {\n return position;\n }", "public Position getPosition() {\n return position;\n }", "public Position getPosition() {\n return position;\n }", "public Position getPosition() {\n return position;\n }", "public Position getPosition() {\n return position;\n }", "public String getPos() {\n return this.pos;\n }", "default String getPos() {\n return meta(\"nlpcraft:nlp:pos\");\n }", "public int getCurrentPosition() {\n\t\treturn currentPosition;\n\t}", "public Position getPosition() {\n return this.position;\n }", "public int getPosition() {\n\treturn (_current);\n }", "public Coordinate getPosition() {\n return cPosition;\n }", "@Override\n\t/**\n\t * returns the position of the class\n\t * \n\t * @return position\n\t */\n\tpublic int getPosition() {\n\t\treturn position;\n\t}", "public Integer getPosition();", "public Vector2 getPosition() {\n\t\treturn position;\n\t}", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public final BlockPos getPos() {\n\t\treturn baseTile.getPos();\n\t}", "public int getStatus() {\n return mStatus;\n }", "public Punto getPos() {\n\t\treturn pos;\n\t}", "public long getVideoPosition() {\n return videoPosition;\n }", "public Position getPosition(){\n return this.position;\n }", "@Override\n\tpublic Position getPosition() {\n\t\treturn this.posn;\n\t}", "public int getStatus()\r\n {\r\n return mStatus;\r\n }", "@Override\n public int getPosition() {\n return position;\n }", "public int getCurrentPosition() {\n return currentPosition;\n }", "public int getPositionIndex()\n {\n return positionIndex;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public final ControlPosition getPosition() {\n return impl.getPosition();\n }", "public int getStatus ()\n {\n return status;\n }", "public int getStatus ()\n {\n return status;\n }", "public long getStatus() {\r\n return status;\r\n }", "public Point getPosition(){\n\t\treturn position;\n\t}", "@PersistField(contained = true)\n public BlockVector getPosition()\n {\n return position;\n }", "public Point getPosition()\n\t{\n\t\treturn pos;\n\t}", "@Override\n public PosDeg getPosition() {\n return tracker.getPosition();\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "@Override\n public Optional<Position> getPosition() {\n return this.pos;\n }", "public PVector getPosition() { return position; }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }" ]
[ "0.71606433", "0.703336", "0.70179284", "0.7015262", "0.7006222", "0.7003551", "0.7003167", "0.69859356", "0.698026", "0.69790316", "0.69616413", "0.69616413", "0.69616413", "0.69509834", "0.69504654", "0.6950291", "0.69362575", "0.69214135", "0.6842111", "0.68347603", "0.68234956", "0.68234956", "0.68234956", "0.68234956", "0.68234956", "0.6772312", "0.6772067", "0.67045957", "0.66687554", "0.66661596", "0.66451615", "0.6643802", "0.66364145", "0.66104054", "0.65770805", "0.6575687", "0.6568536", "0.65562546", "0.65367025", "0.64995277", "0.6496214", "0.648978", "0.64799494", "0.6479166", "0.6479166", "0.6479166", "0.6479166", "0.6479166", "0.6479166", "0.64667636", "0.64507025", "0.64310336", "0.64242935", "0.64080685", "0.63935405", "0.6392462", "0.63886356", "0.63846827", "0.6372161", "0.6372161", "0.6372161", "0.6372161", "0.63669664", "0.6358468", "0.6355798", "0.63488746", "0.63414097", "0.63380504", "0.63310176", "0.63289267", "0.6328046", "0.63137054", "0.63119483", "0.63119483", "0.63119483", "0.63119483", "0.63119483", "0.63119483", "0.63119483", "0.63096696", "0.63086456", "0.63086456", "0.63080865", "0.62954223", "0.628852", "0.6278964", "0.62688196", "0.62687105", "0.62687105", "0.62687105", "0.62687105", "0.62687105", "0.62687105", "0.62687105", "0.62687105", "0.62687105", "0.6260335", "0.62600994", "0.62523216", "0.62523216", "0.62523216" ]
0.0
-1
Sets the position of this vcms status.
public void setPosition(int position);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPosition(Position position);", "void setPosition(Position position);", "public void setPosition(Position pos);", "public void setPosition(Position pos) {\n position = new Position(pos);\n }", "public void setPosition(BlockVector position)\n {\n this.position = position;\n }", "public void setPos(int pos);", "public void setPos(int pos);", "public void setPosition(int position) {\r\r\r\r\r\r\n this.position = position;\r\r\r\r\r\r\n }", "public void setPosition(int position)\r\n {\r\n this.position = position;\r\n }", "public void setPosition(Position pos) {\n \tthis.position = pos;\n \t//setGrade();\n }", "public void setCurrentPosition(int value) {\n this.currentPosition = value;\n }", "public void setPos(PVector pos) {\n\t\tlog.finest(\"Updating position to \" + pos);\n\t\tthis.pos = pos;\n\t}", "public void setPosition(int position) {\r\n this.position = position;\r\n }", "public void setPosition(int position)\n {\n put(\"Position\", position);\n }", "public void setPosition(Integer position);", "void setPosition(int position) {\n mPosition = position;\n }", "public void setCurrentPosition(String position){\n this.currentPosition = position;\n }", "private void setCurrentPos() {\n\t\tcurrentPos=layout_Circle[l.y][l.x];\n\t\tcurrentPos.setFill(Paint.valueOf(\"Red\"));\n\n\t\tsetValidMoves();\n\t}", "public void setPosition(int position) {\r\n\t\tthis.position = position;\r\n\t}", "@External\r\n\t@ClientFunc\r\n\tpublic MetaVar SetPos(MetaVarVector positionVar);", "public void setStatus( int pStatus )\r\n {\r\n mStatus = pStatus;\r\n }", "public void PositionSet(int position);", "@Override\n public void setPosition(int position) {\n this.position = position;\n }", "public void setPosition(Integer position) {\n this.position = position;\n }", "public void setPosition(){\r\n currentPosition = 0; \r\n }", "public void setPosition(Vector2 pos) {\n\t\tsetX(pos.x);\n\t\tsetY(pos.y);\n\t}", "public void setPosition(Position position) {\n this.position = position;\n }", "public void setPosition(Position position) {\n this.position = position;\n }", "public void setPosition(Position position) {\n this.position = position;\n }", "public void setStatus(Status vmStatus) {\n this.vmStatus = vmStatus;\n }", "void setPosition(Position p);", "public void setPosition(Vector2fc position){\n glfwSetWindowPos(handle, (int) position.x(), (int) position.y());\n this.position.set(position);\n }", "public void setOnline(int pos){\n }", "public abstract void setPosition(Position position);", "public void setPos(Punto pos) {\n\t\tthis.pos = pos;\n\t}", "public void setPosition(Coordinate position) {\n cPosition = position;\n }", "public void setPosition(Position position_)\n\t{\n\t\tposition=position_;\n\t}", "public void setPosition(Vector position) {\n this.posX = position.getX();\n this.posY = position.getY();\n this.posZ = position.getZ();\n this.posSet = true;\n }", "public void setPosition(int position){\n this.alreadyPlayingService.setCurrentPosition(position);\n }", "public void setPosition(ServoPosition sp) {\n\t\tif (sp.equals(ServoPosition.UP)) {\n\t\t\tServoManager.getServoDriver().setServoPulse(channel, upPulse);\n\t\t} else if (sp.equals(ServoPosition.CENTER)) {\n\t\t\tServoManager.getServoDriver().setServoPulse(channel, centerPulse);\n\t\t} else if (sp.equals(ServoPosition.DOWN)) {\n\t\t\tServoManager.getServoDriver().setServoPulse(channel, downPulse);\n\t\t}\n\t}", "public void setPosition(Position p);", "public void setStatus(int newStatus) {\n status = newStatus;\n }", "public void setStatus(long status) {\r\n this.status = status;\r\n }", "public void setPosition(Point pos) {\n this.topLeft = pos.asVector();\n }", "public void setStatus(Status newStatus){\n status = newStatus;\n }", "@Override\n\tpublic void setPosition(Vector3 pos) {\n\t\t\n\t}", "public void setOffline(int pos){\n }", "@Override\n public void setPosition(int position) {\n\n // If the service has disconnected, the SSMusicService is restarted.\n if (!serviceBound) {\n setUpAudioService(); // Sets up the SSMusicService.\n }\n\n // Signals the SSMusicService to set the song position.\n else {\n musicService.setPosition(position);\n }\n }", "public final void setPosition(int p) {\n this.position = p;\n }", "protected void setPosition(Position p) {\n\t\tposition = p;\n\t}", "public void setPosition(final Position param) {\n this.position = param;\n }", "public void setPosition(int posX, int posY) {\n\t}", "public void setPosition(Point position);", "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 setPosition(Vector2 position);", "public void setPosition(String position){\r\n\t\tthis.position = position;\r\n\t}", "@Override\n public void setPosition(long position) throws IOException {\n super.setPosition(position - startPosition);\n }", "public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}", "public void setPosition(final Vector2f position);", "public void setStatus(int status) {\n STATUS = status;\n }", "public void setPosition(Point position) {\n this.position = position;\n }", "public void setPosition(int newPos) {\n this.position = newPos;\n\n this.database.update(\"AnswerOptions\", \"matchingPosition = '\" + position + \"'\", \"optionId = \" + this.optionId);\n }", "public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}", "public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder setPosition(int value) {\n validate(fields()[7], value);\n this.position = value;\n fieldSetFlags()[7] = true;\n return this;\n }", "public void setPosition(Point position) {\n this.position = new Point(position);\n update();\n }", "void setPos(Vec3 pos);", "public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }", "public void SetPOS (String pos) {\n pos_ = pos;\n }", "public void setStatus( short newStatus )\r\n {\r\n setStatus( newStatus, -1, null );\r\n }", "public void setPosition(Point2 position) {\r\n this.position = position;\r\n }", "public void SetPosition(Vector2 position)\n\t{\n\t\tTransform transform = parent.transform;\n\t\ttransform.position = position;\n\t\t// Dont loose your dP!\n\t\tpreviousPosition = Vector2.Add(position,velocity.negate());\n\t}", "@PropertySetter(role = POSITION)\n\t<E extends CtElement> E setPosition(SourcePosition position);", "public void setStatus(Long Status) {\n this.Status = Status;\n }", "public void updatePositionValue(){\n m_X.setSelectedSensorPosition(this.getFusedPosition());\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public void setPosition(Dot position) {\r\n\t\tthis.position = position;\r\n\t}", "public void setStatus(String stat)\n {\n status = stat;\n }", "public void setPosition(int position) {\r\n if (position > 24) position = 24;\r\n this.position = position;\r\n }", "public void setStatus(int status)\r\n\t{\r\n\t\tthis.m_status = status;\r\n\t}", "public void setPosition(Vector2 p) {\n\t\tpos = p;\n\t}", "void setPosition(double xPos, double yPos);", "public void setStatus(Status status) {\r\n this.status = status;\r\n }", "void setPosition(Point point);", "public void setPosition(Point newPosition);", "public void setPosition(String position) {\n this.position = position;\n }", "public void setPosition(String position) {\n this.position = position;\n }", "public void setStatus(EnumVar status) {\n this.status = status;\n }", "public void setX(int x){ xPosition = x; }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "void setPosition(Vector3f position);", "void setStatus(int status);", "public void set(int pos);", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setVideoPosition(long videoPosition) {\n this.videoPosition = videoPosition;\n }", "protected void setPosition(Vector3f position) {\r\n\t\tif (active) {\r\n\t\t\tsource.setPosition(position);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void setPosition(Position p) {\n\t\tthis.position = p;\n\n\t}", "void setStatus(STATUS status);" ]
[ "0.6547824", "0.6547824", "0.6529934", "0.6489304", "0.64579207", "0.6455364", "0.6455364", "0.640058", "0.63962847", "0.6390369", "0.6375851", "0.63468975", "0.6333381", "0.63201576", "0.63043046", "0.628143", "0.62812", "0.6259333", "0.62548566", "0.6250936", "0.62338763", "0.6221988", "0.62070644", "0.61548173", "0.6154332", "0.6140022", "0.608807", "0.608807", "0.608807", "0.6080943", "0.607708", "0.6057847", "0.6057684", "0.60567725", "0.60531074", "0.6047341", "0.6036552", "0.6033794", "0.6032997", "0.6022375", "0.5994908", "0.59872615", "0.59722954", "0.5950444", "0.5942379", "0.59332603", "0.5929573", "0.5926891", "0.59266263", "0.59180564", "0.5917212", "0.5913728", "0.59126896", "0.5878097", "0.58674836", "0.5864612", "0.5862901", "0.58609664", "0.5850414", "0.5835085", "0.58317953", "0.58248484", "0.58214545", "0.5818536", "0.5810361", "0.5802815", "0.58010715", "0.5792377", "0.5786073", "0.57852703", "0.5784793", "0.57818556", "0.5777029", "0.5759468", "0.5753779", "0.5753779", "0.5749313", "0.5744484", "0.57419664", "0.5736336", "0.57275224", "0.57242554", "0.57129204", "0.57125056", "0.5705625", "0.5705321", "0.5705321", "0.56931317", "0.56804013", "0.5677173", "0.5677173", "0.5667899", "0.56636924", "0.56620085", "0.56601065", "0.56601065", "0.56593204", "0.5658693", "0.56572866", "0.5655187" ]
0.6511828
3
Returns the is primary of this vcms status.
public boolean getIsPrimary();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean primary() {\n return this.primary;\n }", "public boolean isPrimary()\r\n\t{\treturn this.primary;\t}", "public boolean isIsPrimary() {\r\n return isPrimary;\r\n }", "public boolean isStatus() {\r\n return status;\r\n }", "public boolean isStatus() {\n return status;\n }", "public boolean isStatus() {\n return status;\n }", "public Boolean getStatus() {\n return status;\n }", "public Boolean getStatus() {\n return status;\n }", "public Boolean getStatus() {\n return status;\n }", "public boolean getStatus(){\r\n\t\treturn status;\r\n\t}", "public boolean isStatus() {\n\t\treturn status;\n\t}", "public boolean isIsPrimary();", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean isActive() {\n\t\treturn (active_status);\n\t}", "public boolean getStatus() {\n\t\treturn status;\n\t}", "public boolean getStatus() {\n\treturn status;\n }", "public String getIdStatus() {\n return idStatus;\n }", "public boolean is_pdl_primary () {\n\n\t\t// Check if mode is forced\n\n\t\tswitch (force_primary) {\n\t\tcase 1:\n\t\t\treturn true;\n\t\tcase 2:\n\t\t\treturn false;\n\t\t}\n\n\t\t// Get the primary mode from the relay link\n\n\t\treturn sg.relay_link.is_primary_state();\n\n\t\t// // For now, just assume primary\n\t\t// \n\t\t// return true;\n\t}", "public boolean isPrimary() {\n return false;\n }", "public boolean isPrimary() {\n return false;\n }", "public boolean status() {\n return status;\n }", "public boolean getStatus() {\n return _siteStatus;\n }", "public Boolean getStatus() {return status;}", "public boolean getStatus()\n\t{\n\t\treturn getBooleanIOValue(\"Status\", false);\n\t}", "public String primary() {\n return this.primary;\n }", "public boolean isPrimary() {\n return this.placement.isIsPtlp();\n }", "public String getStatusId() {\n return getProperty(Property.STATUS_ID);\n }", "public int getStatusId() {\n return _statusId;\n }", "public Integer getProstatusid() {\n return prostatusid;\n }", "public boolean getStatus(){\n return activestatus;\n }", "public abstract boolean isPrimary();", "public int getStatus()\r\n\t{\r\n\t\treturn this.m_status;\r\n\t}", "public int getStatus(){\r\n\t\treturn this.status;\r\n\t}", "public int getStatus ()\n {\n return status;\n }", "public int getStatus ()\n {\n return status;\n }", "@Override\n\tpublic boolean isStatus() {\n\t\treturn _candidate.isStatus();\n\t}", "public int isActive() {\n return isActive;\n }", "public Integer getStatus() {\n\t\treturn status;\n\t}", "public Integer getStatus() {\n\t\treturn status;\n\t}", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public Long getStatus() {\n return this.Status;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public final int hasStatus() {\n\t\treturn m_status;\n\t}", "public Short getStatus() {\n\t\treturn status;\n\t}", "public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}", "public Short getStatus() {\n return status;\n }", "public Boolean isActive(){return status;}", "public String getStatus() {\n return _status;\n }", "public int getStatus() {\n return mStatus;\n }", "public String getStatus() {\n return getProperty(Property.STATUS);\n }", "public String status() {\n return this.status;\n }", "public String status() {\n return this.status;\n }", "public Integer getStatus() {\r\n return status;\r\n }", "public Integer getStatus() {\r\n return status;\r\n }" ]
[ "0.71882594", "0.7090003", "0.703671", "0.68962425", "0.688118", "0.688118", "0.6768944", "0.6768944", "0.6768944", "0.6748874", "0.6746102", "0.6743152", "0.6678254", "0.6678254", "0.6678254", "0.6669088", "0.6669088", "0.6669088", "0.6658172", "0.6653271", "0.6611103", "0.6592741", "0.6538514", "0.6515704", "0.6515704", "0.65074664", "0.6507364", "0.6505567", "0.6454227", "0.64475644", "0.6441135", "0.64172274", "0.639779", "0.6368951", "0.6354692", "0.63293916", "0.62999886", "0.6298737", "0.6260045", "0.6260045", "0.62570596", "0.62497777", "0.62412673", "0.62412673", "0.6239487", "0.6239487", "0.6239487", "0.6239487", "0.6239487", "0.6229666", "0.6229666", "0.6229666", "0.6229666", "0.6229666", "0.6229666", "0.6229666", "0.6229666", "0.6229666", "0.6214865", "0.6208799", "0.6208799", "0.6208799", "0.6208799", "0.6208799", "0.6208799", "0.6208799", "0.6208799", "0.6208799", "0.6204277", "0.6204277", "0.6204277", "0.6204277", "0.6204277", "0.6204277", "0.6204277", "0.6204277", "0.6204277", "0.6204277", "0.6204277", "0.6204277", "0.6204277", "0.6204277", "0.6204277", "0.6204277", "0.6204277", "0.6204277", "0.6204277", "0.6204277", "0.62016886", "0.61982876", "0.619589", "0.61901295", "0.61880004", "0.61855394", "0.61777407", "0.6176248", "0.61751026", "0.61751026", "0.61750984", "0.61750984" ]
0.68692905
6
Returns true if this vcms status is is primary.
public boolean isIsPrimary();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isPrimary()\r\n\t{\treturn this.primary;\t}", "public boolean isIsPrimary() {\r\n return isPrimary;\r\n }", "public Boolean primary() {\n return this.primary;\n }", "public boolean is_pdl_primary () {\n\n\t\t// Check if mode is forced\n\n\t\tswitch (force_primary) {\n\t\tcase 1:\n\t\t\treturn true;\n\t\tcase 2:\n\t\t\treturn false;\n\t\t}\n\n\t\t// Get the primary mode from the relay link\n\n\t\treturn sg.relay_link.is_primary_state();\n\n\t\t// // For now, just assume primary\n\t\t// \n\t\t// return true;\n\t}", "public boolean getIsPrimary();", "public boolean isPrimary() {\n return false;\n }", "public boolean isPrimary() {\n return false;\n }", "public boolean isPrimary() {\n return this.placement.isIsPtlp();\n }", "public abstract boolean isPrimary();", "public boolean isActive() {\n\t\treturn (active_status);\n\t}", "public java.lang.Boolean getPrimaryProduct() {\n return primaryProduct;\n }", "public boolean isStatus() {\n return status;\n }", "public boolean isStatus() {\n return status;\n }", "public boolean isStatus() {\r\n return status;\r\n }", "public boolean isStatus() {\n\t\treturn status;\n\t}", "public void setIsPrimary(boolean value) {\r\n this.isPrimary = value;\r\n }", "public void setIsPrimary(boolean isPrimary);", "public boolean hasPrimaryKeyValue() {\r\n return false;\r\n }", "public boolean hasPrimaryKeyValue() {\r\n return false;\r\n }", "public boolean hasPrimaryKeyValue() {\r\n return false;\r\n }", "public String primary() {\n return this.primary;\n }", "private boolean isConnectedToPrimary(SRVRecord[] recs)\n\t{\n\t\tString primaryAddress = getPrimaryServerRecord(recs).getTarget();\n\t\tif (primaryAddress != null && primaryAddress.equals(currentAddress))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public Boolean getPrimaryNode() {\n return primaryNode;\n }", "public boolean getStatus(){\r\n\t\treturn status;\r\n\t}", "public boolean isActive() {\n return (this == RecordStatusEnum.ACTIVE);\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "protected void setPrimary(boolean primary)\r\n\t{\tthis.primary = primary;\t}", "public boolean getStatus() {\n\t\treturn status;\n\t}", "public Boolean getStatus() {\n return status;\n }", "public Boolean getStatus() {\n return status;\n }", "public Boolean getStatus() {\n return status;\n }", "public boolean wasSentByPrimary(PBFTServerMessage m){\n return isPrimary(m.getReplicaID(), getCurrentViewNumber());\n }", "@Override\n\tpublic boolean isStatus() {\n\t\treturn _candidate.isStatus();\n\t}", "public boolean getStatus() {\n return _siteStatus;\n }", "public boolean getStatus() {\n\treturn status;\n }", "public boolean status() {\n return status;\n }", "public void setPrimaryProduct(java.lang.Boolean primaryProduct) {\n this.primaryProduct = primaryProduct;\n }", "public boolean getIsActive() {\n return localIsActive;\n }", "public Boolean getIsProVersion() {\n return this.IsProVersion;\n }", "@Override\n public boolean isPrimaryKey() {\n\t\tList<ResultFlag> f = bpm.getFlags();\n\t\treturn f.contains(ResultFlag.ID);\n\t}", "private Boolean getStatusForPaid(final String status) {\n boolean flag = false;\n if (status.equalsIgnoreCase(PdfConstants.PAID)\n || status.equalsIgnoreCase(PdfConstants.RETURN_PENDING)\n || status.equalsIgnoreCase(PdfConstants.SCHEDULED_PENDING)\n || status.equalsIgnoreCase(PdfConstants.SCHEDULED_PROCESSING)\n || status.equalsIgnoreCase(PdfConstants.IN_PROCESS)\n || status.equalsIgnoreCase(PdfConstants.PENDING)) {\n flag = true;\n }\n return flag;\n }", "public Boolean isActive() {\n return this.active;\n }", "public Boolean isActive(){return status;}", "public boolean getStatus()\n\t{\n\t\treturn getBooleanIOValue(\"Status\", false);\n\t}", "public boolean isActive() {\n\t\treturn activeProperty().getValue();\n\t}", "public Boolean getStatus() {return status;}", "@java.lang.Override\n public boolean hasPrimaryImpact() {\n return primaryImpact_ != null;\n }", "public boolean isSetStatus() {\n return this.status != null;\n }", "public boolean isSetStatus() {\n return this.status != null;\n }", "public boolean isSetStatus() {\n return this.status != null;\n }", "public boolean isSetStatus() {\n return this.status != null;\n }", "public boolean isSetStatus() {\n return this.status != null;\n }", "public void set_force_primary (int the_force_primary) {\n\t\tforce_primary = the_force_primary;\n\t\treturn;\n\t}", "@Accessor(qualifier = \"active\", type = Accessor.Type.GETTER)\n\tpublic Boolean getActive()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(ACTIVE);\n\t}", "public final int hasStatus() {\n\t\treturn m_status;\n\t}", "public boolean isActive() {\n return this.active;\n }", "public boolean isActive() {\n return this.active;\n }", "public boolean getStatus(){\n return activestatus;\n }", "public static boolean isActive(Status status) {\n switch (status) {\n //case ADVERTISING_AND_DISCOVERING:\n //case ADVERTISING:\n //case DISCOVERING:\n case CONNECTED:\n case CHANGING_MEMBERSHIP:\n return true;\n\n default:\n return false;\n }\n }", "public boolean isActive() {\n return this.active;\n }", "public boolean isIsActive() {\n return isActive;\n }", "public boolean isActive()\r\n\t{\r\n\t\treturn active;\r\n\t}", "public boolean isActive(){\r\n\t\treturn active_;\r\n\t}", "public boolean isActive() \n {\n return this.active;\n }", "public Boolean isPremium() {\n return this.isPremium;\n }", "boolean isStatusSuspensao();", "public boolean is_set_status() {\n return this.status != null;\n }", "public boolean hasStatus() {\n return result.hasStatus();\n }", "public boolean hasStatus() {\n return result.hasStatus();\n }", "public Boolean isPremium() {\n return this.isPremium;\n }", "public boolean isActive() {\n\t\treturn this.state;\n\t}", "public static boolean isMainAccount() {\n SharedPrefWrapper sharedPref = SharedPrefWrapper.getInstance();\n return sharedPref.isWeiboMainAccount();\n }", "public boolean isHvacStateOn() {\r\n return hvacStateOn;\r\n }", "public static ReadShellPreference primary() {\n return PRIMARY;\n }", "public boolean hasStatus() {\n return result.hasStatus();\n }", "public boolean hasStatus() {\n return result.hasStatus();\n }", "public boolean hasStatus() {\n return result.hasStatus();\n }", "public boolean hasStatus() {\n return result.hasStatus();\n }", "public Integer getProstatusid() {\n return prostatusid;\n }", "public boolean isIsActive() {\r\n return isActive;\r\n }", "public int isActive() {\n return isActive;\n }", "public Boolean getIsActiveAsBoolean() {\n if (this.isActive == null) {\n return null;\n } else if (this.isActive.toLowerCase().equals(\"true\")) {\n return true;\n } else {\n return false;\n }\n }", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();" ]
[ "0.7502429", "0.7390423", "0.7234737", "0.7229522", "0.70996505", "0.70293903", "0.70293903", "0.70144105", "0.6664826", "0.63329273", "0.63099587", "0.6219851", "0.6219851", "0.6193993", "0.6171121", "0.6143775", "0.6095248", "0.6068788", "0.6068788", "0.6068788", "0.6031104", "0.5911687", "0.5898042", "0.58900684", "0.58627766", "0.5858317", "0.5858317", "0.5858317", "0.58326715", "0.58326715", "0.58326715", "0.58269125", "0.5821274", "0.5819093", "0.5819093", "0.5819093", "0.58143026", "0.58037955", "0.5792284", "0.5755952", "0.570744", "0.57005405", "0.5676723", "0.56241775", "0.56198984", "0.56158125", "0.561141", "0.55911064", "0.55777305", "0.55664676", "0.5559938", "0.5558006", "0.55123115", "0.55123115", "0.55123115", "0.55123115", "0.55123115", "0.55103457", "0.55084825", "0.5490237", "0.5468348", "0.5468348", "0.5467997", "0.5464583", "0.5463409", "0.5456362", "0.54536587", "0.54402447", "0.5424298", "0.5422355", "0.5422081", "0.54216903", "0.54213387", "0.54213387", "0.5419546", "0.54187196", "0.5418459", "0.541313", "0.54033816", "0.54032433", "0.54032433", "0.54032433", "0.54032433", "0.5398028", "0.539377", "0.53922224", "0.5387783", "0.53867936", "0.53867936", "0.53867936", "0.53867936", "0.53867936", "0.53867936", "0.53867936", "0.53867936", "0.53867936", "0.53867936", "0.53867936", "0.53867936", "0.53867936" ]
0.7264282
2
Sets whether this vcms status is is primary.
public void setIsPrimary(boolean isPrimary);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIsPrimary(boolean value) {\r\n this.isPrimary = value;\r\n }", "protected void setPrimary(boolean primary)\r\n\t{\tthis.primary = primary;\t}", "public boolean isPrimary()\r\n\t{\treturn this.primary;\t}", "public void setPrimaryProduct(java.lang.Boolean primaryProduct) {\n this.primaryProduct = primaryProduct;\n }", "public void set_force_primary (int the_force_primary) {\n\t\tforce_primary = the_force_primary;\n\t\treturn;\n\t}", "public boolean isIsPrimary() {\r\n return isPrimary;\r\n }", "public Boolean primary() {\n return this.primary;\n }", "public boolean getIsPrimary();", "public boolean isPrimary() {\n return false;\n }", "public boolean isPrimary() {\n return false;\n }", "public void setPrimaryKey(boolean isPrimary) {\n\t\tm_primarykey = isPrimary;\n\t\tif (isPrimary)\n\t\t\tsetNullable(false);\n\t}", "public boolean isIsPrimary();", "public JVMControllerDiagnosticsSnapshotDTOBuilder setPrimaryNode(final Boolean primaryNode) {\n this.primaryNode = primaryNode;\n return this;\n }", "public boolean is_pdl_primary () {\n\n\t\t// Check if mode is forced\n\n\t\tswitch (force_primary) {\n\t\tcase 1:\n\t\t\treturn true;\n\t\tcase 2:\n\t\t\treturn false;\n\t\t}\n\n\t\t// Get the primary mode from the relay link\n\n\t\treturn sg.relay_link.is_primary_state();\n\n\t\t// // For now, just assume primary\n\t\t// \n\t\t// return true;\n\t}", "public boolean isPrimary() {\n return this.placement.isIsPtlp();\n }", "public void setPrimaryUser ( final String primaryUser ) {\n this.primaryUser = primaryUser;\n }", "public abstract boolean isPrimary();", "public void setActiveStatus(Boolean active){ this.status = active; }", "public java.lang.Boolean getPrimaryProduct() {\n return primaryProduct;\n }", "public VirtualMachineScaleSetUpdateIpConfigurationProperties withPrimary(Boolean primary) {\n this.primary = primary;\n return this;\n }", "public void setStatus(final boolean statusConta) {\r\n this.status = statusConta;\r\n }", "@Override\n public void togglePrimaryCaregiver(boolean b) {\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dmGtStatus.setPrimaryKey(primaryKey);\n\t}", "void setOnStatus(Boolean on) {\n this.on = on;\n }", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setActive(boolean value) {\n this.active = value;\n }", "public void setIsProVersion(Boolean IsProVersion) {\n this.IsProVersion = IsProVersion;\n }", "public void setPrimaryName(java.lang.String primaryName) {\n this.primaryName = primaryName;\n }", "public void setPrimaryColor(String primaryColor) {\r\n //System.out.print(\"Setting PrimaryColor...\");\r\n this.PrimaryColor = primaryColor;\r\n }", "public String primary() {\n return this.primary;\n }", "public Boolean getPrimaryNode() {\n return primaryNode;\n }", "public void setPrimaryVisibility(int visibility) {\n if (mPrimaryView != null && mPrimaryView.getVisibility() != visibility) {\n mPrimaryView.setVisibility(visibility);\n }\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "void setPrimaryColor(String primaryColor){\n this.primaryColor = primaryColor;\n }", "public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}", "@Accessor(qualifier = \"active\", type = Accessor.Type.SETTER)\n\tpublic void setActive(final Boolean value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(ACTIVE, value);\n\t}", "public void setIsActive(boolean param) {\n // setting primitive attribute tracker to true\n localIsActiveTracker = true;\n\n this.localIsActive = param;\n }", "public void setStatus(boolean status) {\n\tthis.status = status;\n }", "public void setGlobalStatus(boolean newStatus) {\n enabled = newStatus;\n }", "public void setIsActive(boolean value) {\r\n this.isActive = value;\r\n }", "public void setStatus( boolean avtive ){\r\n\t\tthis.activ = avtive;\r\n\t}", "public void setMainPlayerOpening(final boolean status) {\n this.mainPlayer = status;\n }", "public final void mT__210() throws RecognitionException {\r\n try {\r\n int _type = T__210;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // InternalSpringConfigDsl.g:211:8: ( 'primary=' )\r\n // InternalSpringConfigDsl.g:211:10: 'primary='\r\n {\r\n match(\"primary=\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "public void setPrimaryCuid(java.lang.String primaryCuid) {\n this.primaryCuid = primaryCuid;\n }", "public boolean hasPrimaryKeyValue() {\r\n return false;\r\n }", "public boolean hasPrimaryKeyValue() {\r\n return false;\r\n }", "public boolean hasPrimaryKeyValue() {\r\n return false;\r\n }", "@Override\n\tpublic void setStatus(boolean status) {\n\t\t_candidate.setStatus(status);\n\t}", "public static void setIsMainAccount(boolean is) {\n SharedPrefWrapper sharedPref = SharedPrefWrapper.getInstance();\n sharedPref.setWeiboMainAccount(is);\n }", "public void setStatus(boolean newstatus){activestatus = newstatus;}", "public boolean wasSentByPrimary(PBFTServerMessage m){\n return isPrimary(m.getReplicaID(), getCurrentViewNumber());\n }", "public void setIsPremium(final Boolean isPremiumValue) {\n this.isPremium = isPremiumValue;\n }", "public void setActive(boolean active){\r\n\t\tactive_ = active;\r\n\t}", "public void setIsPremium(final Boolean isPremiumValue) {\n this.isPremium = isPremiumValue;\n }", "public void setStatus(boolean newStatus);", "public synchronized void setMyGameStatus(boolean status)\n {\n \tgameStatus=status;\n }", "public void setStatus(boolean status) {\r\n this.AsGraph.setEnabled(status);\r\n this.AsDia.setEnabled(status);\r\n this.AsFile.setEnabled(status);\r\n this.AsDB.setEnabled(status);\r\n\r\n this.FileOutBox.setEnabled(status);\r\n this.DBOutBox.setEnabled(status);\r\n this.startFileDB.setEnabled(status);\r\n if (status && (this.DBOutBox.isSelected() || this.FileOutBox.isSelected())) {\r\n this.startFileDB.setEnabled(true);\r\n } else {\r\n this.startFileDB.setEnabled(false);\r\n }\r\n }", "public boolean isStatus() {\n return status;\n }", "public boolean isStatus() {\n return status;\n }", "public boolean isStatus() {\r\n return status;\r\n }", "@NoProxy\n @NoDump\n public void setSuppressed(final boolean val) {\n if (val) {\n setStatus(statusMasterSuppressed);\n } else {\n setStatus(null);\n }\n }", "public boolean is_set_status() {\n return this.status != null;\n }", "public void setStatus(Boolean s){ status = s;}", "public void setActive(boolean active) { \n this.active = active;\n }", "public void setPrimaryExec(String primaryExec) {\n this.primaryExec = primaryExec;\n }", "public void setActiveStatus( String activeStatus ) {\n this.activeStatus = activeStatus;\n }", "public void setActiveStatus( String activeStatus ) {\n this.activeStatus = activeStatus;\n }", "public void setActive(boolean active);", "public void setActive(boolean active);", "public void setActive(boolean active);", "public void setActive(Boolean active) {\n\t\tthis.Active = active;\n\t}", "public void setSecondary(boolean secondary)\r\n\t{\tthis.secondary = secondary;\t}", "public Builder setPrimarySnId(int value) {\n \n primarySnId_ = value;\n onChanged();\n return this;\n }", "public Builder setPrimarySnId(int value) {\n \n primarySnId_ = value;\n onChanged();\n return this;\n }", "public void setActive() {\n\t\tactive = true;\n\t}", "public boolean isActive() {\n\t\treturn (active_status);\n\t}", "public void setMainProject(boolean mainProject) {\n this.mIsMainProject = mainProject;\n }", "public void setHvacStateOn(boolean value) {\r\n this.hvacStateOn = value;\r\n }", "public void setMainEntry(boolean value) {\n this.mainEntry = value;\n }", "public void setMainEntry(boolean value) {\n this.mainEntry = value;\n }", "public void setMainEntry(boolean value) {\n this.mainEntry = value;\n }", "public void setMainEntry(boolean value) {\n this.mainEntry = value;\n }", "public void setActive(Boolean active)\r\n/* */ {\r\n/* 207 */ this.active = active;\r\n/* */ }", "public void setPrimaryContact(java.lang.String primaryContact) {\n this.primaryContact = primaryContact;\n }", "public void setTransactionVATstatus(boolean value) {\r\n this.transactionVATstatus = value;\r\n }", "public void active(boolean value) {\n\t\tactive = value;\n\t}", "public void status(boolean b) {\n status = b;\n }", "public boolean isStatus() {\n\t\treturn status;\n\t}", "public void setActiveflag(Boolean activeflag) {\n this.activeflag = activeflag;\n }", "public void setSyncStatus(int syncStatus);", "@IcalProperty(pindex = PropertyInfoIndex.STATUS,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setStatus(final String val) {\n status = val;\n }", "public void setActive(Boolean active) {\n this.active = active;\n }", "public void setInitialStatus(InstanceStatus initialStatus)\n {\n this.initialStatus = initialStatus;\n }", "public void setProstatusid(Integer prostatusid) {\n this.prostatusid = prostatusid;\n }", "public void set_boolean(boolean param) {\n this.local_boolean = param;\n }", "public void setActive(boolean active) {\r\n this.active = active;\r\n }", "public static ReadShellPreference primary() {\n return PRIMARY;\n }" ]
[ "0.7580435", "0.7426011", "0.6684039", "0.6679975", "0.66260487", "0.65871453", "0.6579321", "0.6521268", "0.65148306", "0.65148306", "0.63962907", "0.6326156", "0.6088059", "0.60822624", "0.600398", "0.5846836", "0.5821407", "0.58108693", "0.5749604", "0.5727274", "0.5693786", "0.5665527", "0.5638521", "0.56177396", "0.56142193", "0.56142193", "0.5600326", "0.557919", "0.5522259", "0.5509338", "0.54827833", "0.5477652", "0.5476524", "0.54740006", "0.54740006", "0.54740006", "0.54301655", "0.5401794", "0.539854", "0.53710014", "0.5366494", "0.53663784", "0.53290546", "0.5326024", "0.5319978", "0.52744186", "0.5274175", "0.5261252", "0.5261252", "0.5261252", "0.52572745", "0.5237749", "0.5236721", "0.5219935", "0.521311", "0.5182901", "0.5179965", "0.5175766", "0.51756877", "0.51742417", "0.51676095", "0.51676095", "0.51638275", "0.5162242", "0.5161291", "0.51531684", "0.5150231", "0.51421475", "0.5140465", "0.5140465", "0.51357824", "0.51357824", "0.51357824", "0.5135439", "0.5134228", "0.5132981", "0.5132981", "0.5131475", "0.5129402", "0.51164794", "0.5105312", "0.5098548", "0.5098548", "0.5098548", "0.5098548", "0.5095992", "0.50939214", "0.5091532", "0.5090869", "0.5085974", "0.5085837", "0.5081025", "0.5080429", "0.5078211", "0.50771344", "0.507441", "0.5072545", "0.50599766", "0.5054755", "0.50542617" ]
0.72316986
2
Returns the active of this vcms status.
public boolean getActive();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getStatus(){\n return activestatus;\n }", "public boolean isActive() {\n\t\treturn (active_status);\n\t}", "public int isActive() {\n return isActive;\n }", "public Boolean isActive() {\n return this.active;\n }", "public Boolean getActive() {\n\t\treturn this.Active;\n\t}", "public Boolean isActive(){return status;}", "public Boolean getActive() {\n return this.active;\n }", "public Boolean getActive() {\n return this.active;\n }", "public Integer getIsActive() {\n return isActive;\n }", "public boolean isActive() {\n return this.active;\n }", "public boolean isActive() {\n return this.active;\n }", "public boolean isActive()\n {\n return active;\n }", "public boolean isActive() \n {\n return this.active;\n }", "public boolean isActive() {\n return this.active;\n }", "public java.lang.Boolean getActive() {\n return active;\n }", "public int active() {\n return this.active;\n }", "public Boolean getStatus() {\n return status;\n }", "public Boolean getStatus() {\n return status;\n }", "public Boolean getStatus() {\n return status;\n }", "public boolean isActive() {\r\n return active;\r\n }", "public boolean isActive() {\r\n return active;\r\n }", "public boolean isActive() {\r\n return active;\r\n }", "public boolean isActive()\r\n\t{\r\n\t\treturn active;\r\n\t}", "public static boolean isActive(){\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive(){\n\t\treturn active;\n\t}", "public boolean isActive() \n {\n return mIsActive;\n }", "public boolean getIsActive()\n\t{\n\t\treturn isActive;\n\t}", "@Accessor(qualifier = \"active\", type = Accessor.Type.GETTER)\n\tpublic Boolean getActive()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(ACTIVE);\n\t}", "public boolean isActive( ) {\n\t\treturn active;\n\t}", "public Byte getIsActive() {\n return isActive;\n }", "public boolean getActive()\n {\n return this.active;\n }", "public boolean getStatus(){\r\n\t\treturn status;\r\n\t}", "public boolean getIsActive() {\n\t\treturn isActive;\n\t}", "public boolean getIsActive() {\n return isActive_;\n }", "public int aclActiveStatusEnum() {\n return aclActiveStatusEnum;\n }", "public boolean isActive() {\n\t\treturn active;\n\t}", "public boolean isActive()\r\n {\r\n return isActive;\r\n }", "public boolean isActive() {\r\n\t\treturn active;\r\n\t}", "public boolean isActive(){\n return active;\n }", "public boolean isActive(){\n return active;\n }", "public boolean getIsActive() {\n return isActive_;\n }", "public boolean getIsActive() {\n return localIsActive;\n }", "public Boolean getIsActive() {\r\n return isActive;\r\n }", "public Boolean getIsActive() {\n return isActive;\n }", "public Boolean getIsActive() {\n return isActive;\n }", "public boolean isStatus() {\r\n return status;\r\n }", "public boolean isActive() {\n return isActive;\n }", "public boolean isActive() {\n return isActive;\n }", "public boolean isActive() {\n return isActive;\n }", "public boolean isActive(){\r\n\t\treturn active_;\r\n\t}", "public boolean getStatus() {\n\treturn status;\n }", "public boolean active(){\r\n\t\treturn active;\r\n\t}", "public boolean getStatus() {\n\t\treturn status;\n\t}", "public boolean isStatus() {\n return status;\n }", "public boolean isStatus() {\n return status;\n }", "public Boolean isActive();", "public Active getActive() {\n return _active;\n }", "public boolean isActive() {\n\t\treturn activeProperty().getValue();\n\t}", "@ApiModelProperty(required = true, value = \"Indicates whether the schedule is currently active. The value SKIP is equivalent to ACTIVE except that the customer has requested the next normal occurrence to be skipped.\")\n @NotNull\n\n public StatusEnum getStatus() {\n return status;\n }", "public CoreState currentStatus() {\r\n return currentStatus;\r\n }", "public boolean isIsActive() {\r\n return isActive;\r\n }", "public boolean isActive() {\n\t\treturn this.state;\n\t}", "public Boolean getActiveflag() {\n return activeflag;\n }", "public boolean isIsActive() {\n return isActive;\n }", "public Boolean getStatus() {return status;}", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean isActive();", "public boolean isActive();", "public boolean isActive();", "public boolean isActive();", "public boolean isActive();", "public boolean isActive();", "public boolean isActive();", "public boolean isActive();", "public boolean isActive();", "public boolean isActive();", "public boolean isActive();", "public boolean isActive();", "public boolean isActive();", "public boolean isActive();", "public boolean isActive();", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean getStatus() {\n return status_;\n }", "public boolean status() {\n return status;\n }", "public CoreState getCurrentStatus() {\n return doStuffStrategy.determineCurrentStatus(this, 3000);\r\n }", "public final boolean isActive() {\n return isActive;\n }", "public java.lang.Object getStatus() {\n return status;\n }", "public boolean getStatus()\n\t{\n\t\treturn getBooleanIOValue(\"Status\", false);\n\t}", "@java.lang.Override\n public boolean getIsActive() {\n return isActive_;\n }", "public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}", "public String getStatus () {\r\n return status;\r\n }", "public String getStatus(){\r\n\t\treturn status;\r\n\t}" ]
[ "0.7887572", "0.785026", "0.7628425", "0.75559926", "0.7447829", "0.7439012", "0.7404936", "0.7404936", "0.7372734", "0.7328124", "0.7328124", "0.7327862", "0.7322155", "0.7310909", "0.7303159", "0.7296881", "0.7289332", "0.7289332", "0.7289332", "0.728919", "0.7288205", "0.7288205", "0.7271381", "0.7261318", "0.72468424", "0.72468424", "0.72468424", "0.72468424", "0.72468424", "0.72468424", "0.72396237", "0.7210669", "0.7209621", "0.72071975", "0.7201055", "0.71978223", "0.7196803", "0.718154", "0.7176632", "0.7175393", "0.71683425", "0.7168292", "0.71677625", "0.716478", "0.71572864", "0.71572864", "0.7139796", "0.7121829", "0.71064633", "0.70987266", "0.70987266", "0.7092602", "0.7080647", "0.7080647", "0.7080647", "0.7078889", "0.7069876", "0.70670503", "0.7065895", "0.7057023", "0.7057023", "0.70538175", "0.70441526", "0.7043049", "0.704197", "0.7016448", "0.7011108", "0.70032704", "0.7002409", "0.6979044", "0.69768584", "0.69729173", "0.69729173", "0.69729173", "0.6964228", "0.6964228", "0.6964228", "0.6964228", "0.6964228", "0.6964228", "0.6964228", "0.6964228", "0.6964228", "0.6964228", "0.6964228", "0.6964228", "0.6964228", "0.6964228", "0.6964228", "0.69565254", "0.69565254", "0.69565254", "0.69292617", "0.6928311", "0.6924347", "0.69081175", "0.69033265", "0.6884226", "0.6882445", "0.68713546", "0.6870724" ]
0.0
-1
Returns true if this vcms status is active.
public boolean isActive();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isActive() {\n\t\treturn (active_status);\n\t}", "public final boolean isActive() {\n synchronized (this.lifecycleMonitor) {\n return this.active;\n }\n }", "public boolean isActive()\r\n\t{\r\n\t\treturn active;\r\n\t}", "public boolean isIsActive() {\n return isActive;\n }", "public boolean isIsActive() {\r\n return isActive;\r\n }", "public boolean isActive() {\n\t\treturn active;\n\t}", "public boolean hasActive() {\n return active_ != null;\n }", "public boolean isStatus() {\n\t\treturn status;\n\t}", "public boolean isActive( ) {\n\t\treturn active;\n\t}", "public boolean isActive() {\r\n\t\treturn active;\r\n\t}", "public boolean isActive() {\n return (m_state != INACTIVE_STATE);\n }", "public Boolean isActive() {\n return this.active;\n }", "public boolean isStatus() {\n return status;\n }", "public boolean isStatus() {\n return status;\n }", "public boolean isStatus() {\r\n return status;\r\n }", "public boolean isActive(){\r\n\t\treturn active_;\r\n\t}", "public boolean isActive(){\n\t\treturn active;\n\t}", "public boolean isActive() {\n return this.active;\n }", "public boolean isActive() {\n return this.active;\n }", "public boolean isSetActive() {\n return EncodingUtils.testBit(__isset_bitfield, __ACTIVE_ISSET_ID);\n }", "public boolean isActive()\n {\n return active;\n }", "public boolean isActive() {\n return !isSuspended() && !isExpired();\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\r\n return active;\r\n }", "public boolean isActive() {\r\n return active;\r\n }", "public boolean checkActive() {\n\t\treturn active;\n\t}", "public boolean isActive() {\r\n return active;\r\n }", "public boolean isActive() {\n\t\treturn this.state;\n\t}", "public boolean isActive() \n {\n return this.active;\n }", "public boolean isActive() \n {\n return mIsActive;\n }", "public boolean isActive() {\n return this.active;\n }", "public Boolean isActive();", "public boolean active(){\r\n\t\treturn active;\r\n\t}", "public final boolean isActive() {\n return isActive;\n }", "public boolean isActive() {\n\t\treturn activeProperty().getValue();\n\t}", "public boolean isActive()\r\n {\r\n return isActive;\r\n }", "public boolean isActive() {\n return isActive;\n }", "public boolean isActive() {\n return isActive;\n }", "public boolean isActive() {\n return isActive;\n }", "public boolean isActive() {\n return (this == RecordStatusEnum.ACTIVE);\n }", "public static boolean isActive(){\n return active;\n }", "public static boolean isActive(Status status) {\n switch (status) {\n //case ADVERTISING_AND_DISCOVERING:\n //case ADVERTISING:\n //case DISCOVERING:\n case CONNECTED:\n case CHANGING_MEMBERSHIP:\n return true;\n\n default:\n return false;\n }\n }", "public boolean isSetIsActive() {\n\t\treturn org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISACTIVE_ISSET_ID);\n\t}", "public boolean getIsActive()\n\t{\n\t\treturn isActive;\n\t}", "public boolean getIsActive() {\n\t\treturn isActive;\n\t}", "public boolean getIsActive() {\n return isActive_;\n }", "boolean isActive() {\n assert this.isHeldByCurrentThread();\n return isActive;\n }", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "boolean hasStatus();", "public boolean getIsActive() {\n return localIsActive;\n }", "public Boolean getIsActiveAsBoolean() {\n if (this.isActive == null) {\n return null;\n } else if (this.isActive.toLowerCase().equals(\"true\")) {\n return true;\n } else {\n return false;\n }\n }", "public Boolean isActive(){return status;}", "public boolean getStatus(){\n return activestatus;\n }", "public boolean isActive(){\n return active;\n }", "public boolean isActive(){\n return active;\n }", "public boolean isActive() {\n\t\treturn stateMachine.isActive();\n\t}", "public static boolean isActive() {\n\t\treturn activated;\n\t}", "public Boolean getActive() {\n\t\treturn this.Active;\n\t}", "public int isActive() {\n return isActive;\n }", "public boolean getIsActive() {\n return isActive_;\n }", "boolean isActive();" ]
[ "0.7994043", "0.7287043", "0.72290057", "0.71921164", "0.7160507", "0.71594036", "0.71555614", "0.7142124", "0.7139117", "0.7136159", "0.71210825", "0.7119467", "0.71112764", "0.71112764", "0.7099638", "0.7079441", "0.7065826", "0.70645833", "0.70645833", "0.70604205", "0.70492053", "0.7040811", "0.70352566", "0.70352566", "0.70352566", "0.70352566", "0.70352566", "0.70352566", "0.7034782", "0.7034782", "0.7027979", "0.7008783", "0.7004415", "0.6999111", "0.6976562", "0.6965716", "0.6962022", "0.69446635", "0.6944593", "0.69395983", "0.6926951", "0.69089764", "0.69089764", "0.69089764", "0.6890812", "0.68857175", "0.68565613", "0.68265647", "0.68023026", "0.6793012", "0.6773908", "0.674137", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67302924", "0.67225456", "0.671242", "0.6708005", "0.6702013", "0.66940194", "0.66940194", "0.6685615", "0.6685438", "0.6683537", "0.6661472", "0.66562134", "0.6639958" ]
0.6950526
48
Sets whether this vcms status is active.
public void setActive(boolean active);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setActive(boolean value) {\n this.active = value;\n }", "public void setActiveStatus(Boolean active){ this.status = active; }", "public void setIsActive(boolean value) {\r\n this.isActive = value;\r\n }", "public void setActive(Boolean active) {\n\t\tthis.Active = active;\n\t}", "@Accessor(qualifier = \"active\", type = Accessor.Type.SETTER)\n\tpublic void setActive(final Boolean value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(ACTIVE, value);\n\t}", "public void active(boolean value) {\n\t\tactive = value;\n\t}", "@Override\n\tpublic void setActive(Boolean active) {\n\t\tthis.active = active;\n\t}", "public void setActive(Boolean active) {\n this.active = active;\n }", "public void setActiveStatus( String activeStatus ) {\n this.activeStatus = activeStatus;\n }", "public void setActiveStatus( String activeStatus ) {\n this.activeStatus = activeStatus;\n }", "public void setActive(boolean active){\r\n\t\tactive_ = active;\r\n\t}", "public void setActive(boolean active) {\n _isActive = active;\n }", "public void setActive(boolean isActive) {\r\n\t\tthis.isActive = isActive;\r\n\t}", "public void setActive(boolean active) { \n this.active = active;\n }", "public void setActive() {\n\t\tactive = true;\n\t}", "public void setActive(boolean active) {\r\n this.active = active;\r\n }", "@Override\n public void setActive(boolean active) {\n this.active = active;\n }", "public void setActive(java.lang.Boolean active) {\n this.active = active;\n }", "protected synchronized void setActive(final boolean b) {\n active = b;\n }", "public void setActive(boolean active)\n {\n this.active = active;\n }", "public void setActive(boolean active) {\r\n this.active = active;\r\n }", "public void setActive(boolean active) {\n this.active = active;\n }", "public void setActive(boolean active) {\n this.active = active;\n }", "public void setActive(boolean active) {\n this.active = active;\n }", "public void setActive( boolean tof ) {\n\t\tthis.active = tof;\n\t}", "public void setStatus( boolean avtive ){\r\n\t\tthis.activ = avtive;\r\n\t}", "public void setActive(boolean aIsActive) {\n mIsActive = aIsActive;\n\n if (!mIsActive) {\n stop();\n }\n }", "public void setActive() {\n setState(true);\n }", "public boolean isActive() {\n\t\treturn (active_status);\n\t}", "public void setIsActive(boolean param) {\n // setting primitive attribute tracker to true\n localIsActiveTracker = true;\n\n this.localIsActive = param;\n }", "public void setActive(boolean active) {\n this.active = active;\n notifyViews();\n }", "public void setStatus(boolean newstatus){activestatus = newstatus;}", "public abstract boolean setActive(boolean active);", "public void setActive(boolean active)\r\n\t{\r\n\t\tif (this.active != active)\r\n\t\t{\r\n\t\t\tthis.active = active;\r\n\t\t\tapply();\r\n\t\t}\r\n\t}", "public Builder setIsActive(boolean value) {\n \n isActive_ = value;\n onChanged();\n return this;\n }", "public Builder setIsActive(boolean value) {\n \n isActive_ = value;\n onChanged();\n return this;\n }", "public void setActive(){\n paycheckController.setActive();\n }", "public void setActiveflag(Boolean activeflag) {\n this.activeflag = activeflag;\n }", "public void setIsActive(Boolean isActive) {\r\n this.isActive = isActive;\r\n }", "public void setActive(boolean active) {\n\t\tactiveProperty().setValue(active);\n\t}", "public void setIsActive( Boolean isActive ) {\n this.isActive = isActive;\n }", "public void setActive(Boolean active)\r\n/* */ {\r\n/* 207 */ this.active = active;\r\n/* */ }", "public void setIsActive(Boolean isActive) {\n this.isActive = isActive;\n }", "public void setIsActive(Boolean isActive) {\n this.isActive = isActive;\n }", "public void setActiveFlag(String value) {\n setAttributeInternal(ACTIVEFLAG, value);\n }", "public void setActive(Boolean active) {\n Boolean oldValue = this.active;\n this.active = active;\n forecast.updateForecastFromYr();\n firePropertyChange(\"active\", oldValue, active);\n }", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setIsActive(boolean isActive) {\n this.isActive = isActive;\n }", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setIsActive (boolean IsActive);", "public void setActiveflag(String value) {\n setAttributeInternal(ACTIVEFLAG, value);\n }", "public void setStatus(final boolean statusConta) {\r\n this.status = statusConta;\r\n }", "public void setIsActive( boolean isActive )\n\t{\n\t\tthis.isActive\t= isActive;\n\t}", "public void setIsActive(boolean isActive) {\n\t\tthis.isActive = isActive;\n\t}", "public void setIsActive(Byte isActive) {\n this.isActive = isActive;\n }", "public boolean isActive( ) {\n\t\treturn active;\n\t}", "public void setActive(Player p, boolean value) {\n this.getInstance(p).setActive(value);\n }", "public void setActiveFlag(Boolean activeFlag) {\n\t\tthis.activeFlag = activeFlag;\n\t}", "public boolean isActive()\r\n\t{\r\n\t\treturn active;\r\n\t}", "public void status(boolean b) {\n status = b;\n }", "public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}", "public boolean isActive(){\n\t\treturn active;\n\t}", "public boolean isActive(){\r\n\t\treturn active_;\r\n\t}", "public boolean isActive() {\r\n\t\treturn active;\r\n\t}", "public boolean isActive() {\r\n return active;\r\n }", "public boolean isActive() {\r\n return active;\r\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\r\n return active;\r\n }", "public boolean active(){\r\n\t\treturn active;\r\n\t}", "public boolean isActive() {\n\t\treturn active;\n\t}", "public boolean isActive()\n {\n return active;\n }", "public void toggleActive(){\n this.active = !this.active;\n }", "public void setIsActive(Integer isActive) {\n this.isActive = isActive;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public void setStatus(Boolean status) {\n this.status = status;\n }", "public boolean isActive() {\n return this.active;\n }", "public boolean isActive() \n {\n return this.active;\n }", "public Boolean isActive() {\n return this.active;\n }", "public boolean isActive() {\n return this.active;\n }", "public boolean isActive() {\n return this.active;\n }", "public void setActive(boolean active) {\n isActive = active;\n this.refreshDrawable();\n }" ]
[ "0.77181286", "0.7679575", "0.7290821", "0.7242458", "0.72192913", "0.7206541", "0.71203834", "0.7116776", "0.71019256", "0.71019256", "0.709834", "0.7090622", "0.70760995", "0.70674217", "0.70566636", "0.7045466", "0.70340073", "0.7032995", "0.7015487", "0.7007646", "0.6992023", "0.69563544", "0.69563544", "0.69563544", "0.69313824", "0.6887415", "0.6827881", "0.6769332", "0.6724061", "0.670679", "0.6705754", "0.66958886", "0.66886425", "0.6677378", "0.6671342", "0.6671342", "0.6659259", "0.66440266", "0.66422004", "0.6592809", "0.6577728", "0.65640724", "0.65504193", "0.65504193", "0.65281045", "0.6515055", "0.64914626", "0.64914626", "0.64720255", "0.6458943", "0.6458943", "0.6458943", "0.6458943", "0.6458943", "0.6458943", "0.6458943", "0.6458943", "0.6458943", "0.6458943", "0.6458943", "0.6458943", "0.644834", "0.64421344", "0.64326996", "0.64085317", "0.6405412", "0.63900805", "0.6386833", "0.63842183", "0.6376323", "0.63701296", "0.6342158", "0.6337081", "0.6318703", "0.63081414", "0.62898946", "0.62898946", "0.6273608", "0.6273608", "0.6273608", "0.6273608", "0.6273608", "0.6273608", "0.62688047", "0.6268426", "0.6267177", "0.6257765", "0.6255987", "0.6242452", "0.62271166", "0.62271166", "0.62271166", "0.6222116", "0.6211189", "0.620419", "0.619945", "0.619945", "0.61773056" ]
0.70076174
22
Creates a clientside handler.
public EchoClientHandler() { firstMessage = Unpooled.buffer(EchoClient.SIZE); for (int i = 0; i < firstMessage.capacity(); i ++) { firstMessage.writeByte((byte) i); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CreateHandler()\n {\n }", "void createHandler(final String handlerClassName);", "public ConsoleHandler createConsoleHandler () {\r\n\t\t\t\r\n\t\tConsoleHandler consoleHandler = null;\r\n\t\t\t\r\n\t\ttry {\r\n\t\t \t\r\n\t\t\tconsoleHandler = new ConsoleHandler();\r\n\t\t\t\t\r\n\t\t} catch (SecurityException e) {\r\n\t\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t \r\n\t\t return consoleHandler;\r\n\t}", "private Handler<org.vertx.java.core.http.HttpClientResponse> createResponseHandler(Env env, Callback handler) {\n return new Handler<org.vertx.java.core.http.HttpClientResponse>(env, handler, new ArgumentModifier<org.vertx.java.core.http.HttpClientResponse, HttpClientResponse>() {\n @Override\n public HttpClientResponse modify(org.vertx.java.core.http.HttpClientResponse response) {\n return new HttpClientResponse(response);\n }\n });\n }", "public Handler getHandler();", "@Override\r\n\tpublic CardEventHandler createEventHandler() {\n\t return new ClientEventHandler(this,this.getUIControl());\r\n\t }", "public CallAppAbilityConnnectionHandler createHandler() {\n EventRunner create = EventRunner.create();\n if (create != null) {\n return new CallAppAbilityConnnectionHandler(create);\n }\n HiLog.error(LOG_LABEL, \"createHandler: no runner.\", new Object[0]);\n return null;\n }", "default Handler asHandler() {\n return new HandlerBuffer(this);\n }", "public void registerHandler(Object handler)\n {\n\n }", "private void createHandler()\r\n {\r\n serverHandler = new Handler(Looper.getMainLooper())\r\n {\r\n @Override\r\n public void handleMessage(Message inputMessage)\r\n {\r\n int percentage;\r\n switch (inputMessage.what)\r\n {\r\n case LISTENING:\r\n waiting.setVisibility(View.VISIBLE);\r\n statusText.setText(\"Oczekiwanie na połączenie\");\r\n break;\r\n case CONNECTED:\r\n waiting.setVisibility(View.INVISIBLE);\r\n progress.setVisibility(View.VISIBLE);\r\n statusText.setText(\"Przesyłanie pliku\");\r\n break;\r\n case PROGRESS:\r\n percentage = (int) inputMessage.obj;\r\n progress.setProgress(percentage);\r\n break;\r\n case DONE:\r\n messageDialog(\"Przesyłanie zakończone!\", DIALOG_MODE_DONE);\r\n break;\r\n case LISTENING_FAILED:\r\n if(acceptMessages)\r\n messageDialog(\"Nie udało się utworzyć gniazda\", DIALOG_MODE_ERROR);\r\n break;\r\n case SOCKET_ACCEPT_FAILED:\r\n if(acceptMessages)\r\n messageDialog(\"Wystąpił błąd połączenia!\\nPowrót\", DIALOG_MODE_ERROR);\r\n break;\r\n case EXTERNAL_STORAGE_ACCESS_FAILED:\r\n messageDialog(\"Brak dostępu do pamięci masowej!\\nPowrót\", DIALOG_MODE_ERROR);\r\n break;\r\n case FILE_TRANSFER_FAILED:\r\n if(acceptMessages)\r\n messageDialog(\"Wystąpił błąd podczas przesyłania danych!\\nPowrót\",\r\n DIALOG_MODE_ERROR);\r\n break;\r\n default:\r\n super.handleMessage(inputMessage);\r\n }\r\n }\r\n };\r\n }", "public Hello(Handler handler){\n this.handler = handler;\n }", "private NettyServerHandler createHandler(ServerTransportListener transportListener) {\n return NettyServerHandler.newHandler(\n transportListener, streamTracerFactories, maxStreams,\n flowControlWindow, maxHeaderListSize, maxMessageSize,\n keepAliveTimeInNanos, keepAliveTimeoutInNanos,\n maxConnectionIdleInNanos,\n maxConnectionAgeInNanos, maxConnectionAgeGraceInNanos,\n permitKeepAliveWithoutCalls, permitKeepAliveTimeInNanos);\n }", "ResponseHandler createResponseHandler();", "@Override\n\tprotected ManageEventHandler createEventHandler() {\n\t\tif (m_handler == null)\n\t\t\tm_handler = new BankKeepEventHandler(this, createController());\n\t\treturn m_handler;\n\t}", "public IoHandler getHandler()\n {\n return new MRPClientProtocolHandler();\n }", "public Class<?> getHandler();", "abstract public TelnetServerHandler createHandler(TelnetSocket s);", "public void addHandler(EventHandler handler);", "HandlerHelper getHandlerHelper() {\n return handlerHelper;\n }", "private SockJSHandler eventBusHandler() {\n\n BridgeOptions options = new BridgeOptions()\n .setPingTimeout(15000)\n .addOutboundPermitted(new PermittedOptions().setAddressRegex(\"session\\\\.[0-9]+\"));\n\n /*\n String COLLAB_SERVER_URL = \"http://localhost:8080/js\";\n\n SockJSHandlerOptions sockJSHandlerOptions = new SockJSHandlerOptions();\n String sockjsUrl = COLLAB_SERVER_URL + \"/\" + SOCKJS_0_3_4_MIN_JS;\n\n logger.info(\" SOCKJSURL {}\", sockjsUrl);\n\n System.out.println(\"SOCKJSURL: \" + sockjsUrl);\n\n sockJSHandlerOptions.setLibraryURL(sockjsUrl);\n\n// return SockJSHandler.create(vertx, sockJSHandlerOptions).bridge(options, event -> {\n*/\n\n return SockJSHandler.create(vertx).bridge(options, event -> {\n\n System.out.println(\">>>>> Received BridgeEvent: type: \" + event.getClass().getCanonicalName());\n\n if (event.type() == BridgeEventType.SOCKET_CREATED) {\n logger.info(\">>>>> A socket was created: \" + event.getRawMessage());\n }\n\n event.complete(true);\n });\n }", "public static IProtocolHandler createHandler(String type) {\n if (type==null) {\n return new RestHandler(); //use REST by default\n } else if (type.equalsIgnoreCase(\"rest\")) {\n return new RestHandler();\n } else if (type.equalsIgnoreCase(\"soap\")) {\n //for future use\n return null;\n } else {\n throw new IllegalArgumentException(\"Unknown protocol type: \" + type);\n }\n }", "public Handler createHandler(Looper looper) {\n return new CatchingWorkerHandler(looper);\n }", "@Override\n\tpublic void RegisterHandler(HotSpotServerEventHandler handler) {\n\t\teventHandlers.add(handler);\n\t}", "public StreamHandler createStreamHandler (OutputStream outStream) {\r\n\t\t\t\t\t\r\n\t\tStreamHandler streamHandler = null;\r\n\r\n\t\ttry {\r\n\t\t\t\t \t\r\n\t\t\tstreamHandler = new StreamHandler(outStream, new SimpleFormatter());\r\n\t\t\t\t\t\t\r\n\t\t} catch (SecurityException e) {\r\n\t\t\t\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\t\t \r\n\t\t\treturn streamHandler;\r\n\t}", "public HttpHandler createProxyHandler() {\n return ProxyHandler.builder()\n .setProxyClient(container.getProxyClient())\n .setMaxRequestTime(maxRequestTime)\n .setMaxConnectionRetries(maxRetries)\n .setReuseXForwarded(reuseXForwarded)\n .build();\n }", "private void addHandlers()\n {\n handlers.add(new FileHTTPRequestHandler());\n }", "public String getHandler() {\n return handler;\n }", "private Handler getHandler(Request request) {\n return resolver.get(request.getClass().getCanonicalName()).create();\n }", "public void setHandler(Handler handler) {\r\n this.handler = handler;\r\n }", "public void setHandler(Handler handler) {\r\n this.handler = handler;\r\n }", "public static HandlerBuilder newHandlerBuilder() {\n return new HandlerBuilder();\n }", "public Handler getHandler() {\r\n return handler;\r\n }", "public Handler getHandler() {\r\n return handler;\r\n }", "public void setHandler(String handler) {\n this.Handler = handler;\n }", "Handler getHandler(final String handlerName);", "PaymentHandler createPaymentHandler();", "public RequestHandler getRequestHandlerInstance() {\n Object obj;\n try {\n obj = klass.newInstance();\n } catch (Exception e) {\n throw new RuntimeException(\"Problem during the Given class instanciation please check your contribution\", e);\n }\n if (obj instanceof RequestHandler) {\n RequestHandler rh = (RequestHandler) obj;\n rh.init(properties);\n return rh;\n }\n\n throw new RuntimeException(\"Given class is not a \" + RequestHandler.class + \" implementation\");\n }", "protected GwtCreateHandler getGwtCreateHandler() {\n\t\treturn null;\n\t}", "Handler<Q, R> handler();", "Handle newHandle();", "public GenericHandler() {\n\n }", "public static ViewerHandlerInterface getViewerHandler() {\n\t\treturn new ViewerHandler();\n\t}", "protected ClientHandler createClientHandler(final Socket finalAccept,\n\t\t\tfinal InputStream inputStream) {\n\t\treturn new ClientHandler(inputStream, finalAccept);\n\t}", "public void setHandler(ContentHandler handler) { }", "@Override\n public void addHandlerListener(IHandlerListener handlerListener) {\n\n }", "public ServiceHandler createServiceHandler(\n Reactor reactor,\n SelectableChannel handle) {\n try {\n return new TestAcceptHandler(reactor, handle, this._pool);\n } catch (IOException ex) {\n MDMS.ERROR(ex.getMessage());\n return null;\n }\n }", "public interface Handler {\n void handleProductCreated(CommerceProtos.Message message, CommerceProtos.ProductCreated e);\n void handleSiteCreated(CommerceProtos.Message message, CommerceProtos.SiteCreated e);\n void handleCartCreated(CommerceProtos.Message message, CommerceProtos.CartCreated e);\n void handleCustomerCreated(CommerceProtos.Message message, CommerceProtos.CustomerCreated e);\n\t\tvoid handleProductAddToCart(CommerceProtos.Message message, CommerceProtos.ProductAddToCart e);\n\t\tvoid handleCartSuccessfulCheckout(CommerceProtos.Message message, CommerceProtos.CartSuccessfulCheckout e);\n }", "public Handler getHandler() {\n\t\treturn this.serverHandler;\n\t}", "ByteHandler getByteHandler();", "public SocketHandler createSocketHandler (String host, int port) {\r\n\t\t\t\t\t\t\t\r\n\t\tSocketHandler socketHandler = null;\r\n\r\n\t\ttry {\r\n\t\t\t\t\t\t \t\r\n\t\t\tsocketHandler = new SocketHandler(host, port);\r\n\t\t\t\t\t\t\t\t\r\n\t\t} catch (SecurityException | IOException e) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\t\t\t\t \r\n\t\treturn socketHandler;\r\n\t}", "private void initializeHandler() {\n if (handler == null) {\n handler = AwsHelpers.initSpringBootHandler(Application.class);\n }\n }", "protected void handlerAdded0(ChannelHandlerContext ctx) throws Exception {}", "Promise<Void> registerHandler(String address, Handler<? extends Message> handler);", "Handler getHandler(Service service, HandlerFactory handlerFactory) {\n String serializationName = \"PROTOBUF\";\n Driver.Serialization serialization;\n try {\n serialization = Driver.Serialization.valueOf(serializationName);\n } catch (Exception e) {\n LOG.error(\"Unknown message serialization type for \" + serializationName);\n throw e;\n }\n\n Handler handler = handlerFactory.getHandler(service, serialization);\n LOG.info(\"Instantiated \" + handler.getClass() + \" for Quark Server\");\n\n return handler;\n }", "BodyHandler getBodyHandler();", "static SecurityHandler create() {\n return DEFAULT_INSTANCE;\n }", "@Override\n public java.lang.AutoCloseable createInstance() {\n logger.info(\"Creating the Registry Handler Implementation Instance...\");\n\n DataBroker dataBrokerService = getDataBrokerDependency();\n RpcProviderRegistry rpcProviderRegistry = getRpcRegistryDependency();\n RegistryHandlerProvider provider = new RegistryHandlerProvider(dataBrokerService, rpcProviderRegistry);\n\n logger.info(\"Creating the Registry Handler Implementation created...\");\n\n return provider;\n }", "public EchoCallbackHandler(Object clientData) {\n this.clientData = clientData;\n }", "Handler getHandler() {\n return getEcologyLooper().getHandler();\n }", "private synchronized Handler getCustomHandler( ) {\n if( (customHandler != null ) \n ||(customHandlerError) ) \n {\n return customHandler;\n }\n LogService logService = getLogService( );\n if( logService == null ) {\n return null;\n }\n String customHandlerClassName = null;\n try {\n customHandlerClassName = logService.getLogHandler( );\n\n customHandler = (Handler) getInstance( customHandlerClassName );\n // We will plug in our UniformLogFormatter to the custom handler\n // to provide consistent results\n if( customHandler != null ) {\n customHandler.setFormatter( new UniformLogFormatter(componentManager.getComponent(Agent.class)) );\n }\n } catch( Exception e ) {\n customHandlerError = true; \n new ErrorManager().error( \"Error In Initializing Custom Handler \" +\n customHandlerClassName, e, ErrorManager.GENERIC_FAILURE );\n }\n return customHandler;\n }", "@Override\n\tpublic Handler getHandler() {\n\t\t// TODO Auto-generated method stub\n\t\treturn mHandler;\n\t}", "@objid (\"9a6323cb-12ea-11e2-8549-001ec947c8cc\")\n private static MHandler createAndActivateHandler(MCommand command, IModule module, IModuleAction action, MPart view) {\n Object handler = new ExecuteModuleActionHandler(module, action);\n // Fit it into a MHandler\n MHandler mHandler = MCommandsFactory.INSTANCE.createHandler();\n mHandler.setObject(handler);\n // mHandler.setElementId(command.getElementId().replace(\"command\",\n // \"handler\"));\n // Bind it to the corresponding command\n mHandler.setCommand(command);\n // Define scope of this handler as the browser view.\n view.getHandlers().add(mHandler);\n return mHandler;\n }", "@ClientConfig(JsonMode.Function)\n\r\n\tpublic Object getHandler () {\r\n\t\treturn (Object) getStateHelper().eval(PropertyKeys.handler);\r\n\t}", "@Override\n\tpublic void addHandlerListener(IHandlerListener handlerListener) {\n\n\t}", "static Handler getCallbackHandler() {\n return sCallbackHandler;\n }", "private void createHandler() {\r\n playerAHandler = new Handler() {\r\n @Override\r\n public void handleMessage(Message msg) {\r\n switch(msg.what) {\r\n case Constants.MADE_MOVE:\r\n makeMove();\r\n break;\r\n default: break;\r\n }\r\n }\r\n };\r\n }", "public Handler getHandler() {\n return null;\n }", "public static IndexHandler getInstance () throws IOException {\n if (indexHandler == null) {\n indexHandler = new IndexHandler(false);\n }\n return indexHandler;\n }", "@Override\n protected Handler createHandler(Looper looper) {\n return new CatchingWorkerHandler(looper);\n }", "public EchoCallbackHandler() {\n this.clientData = null;\n }", "@Override\n public void onCreate() {\n super.onCreate();\n mHandler = new Handler();\n }", "public int getHandler() {\n\t\treturn 1;\n\t}", "private void startHandler() {\n mHandler = new MessageHandler();\n }", "public Handler getHandler() {\n return mHandler;\n }", "Future<CreateBackendResponse> createBackend(\n CreateBackendRequest request,\n AsyncHandler<CreateBackendRequest, CreateBackendResponse> handler);", "ByteHandler getInstance();", "public static LoginHandlerInterface getLoginHandler() {\n\t\treturn new LoginHandler();\n\t}", "private HandlerBuilder() {\n }", "public ApplicationManagementServiceCallbackHandler(Object clientData){\n this.clientData = clientData;\n }", "@Override\n public void onCreate() {\n super.onCreate();\n handler = new Handler();\n BusProvider.register(this);\n }", "public ProxyHandler( ProtocolSession clientSession )\n\t{\n\t\tthis.clientSession = clientSession;\n\t}", "@Override\n\tpublic Handler getHandler() {\n\t\treturn mHandler;\n\t}", "public HandbookServiceCallbackHandler(Object clientData) {\n this.clientData = clientData;\n }", "protected MessageListener createMessageHandler(Session session) {\n \tDefaultMessageHandler messageHandler = null;\n if (getSjmsEndpoint().getExchangePattern().equals(\n ExchangePattern.InOnly)) {\n if (isEndpointTransacted()) {\n messageHandler = new InOnlyMessageHandler(getEndpoint(),\n executor,\n new SessionTransactionSynchronization(session));\n } else {\n messageHandler = new InOnlyMessageHandler(getEndpoint(), executor);\n }\n } else {\n if (isEndpointTransacted()) {\n messageHandler = new InOutMessageHandler(getEndpoint(),\n executor,\n new SessionTransactionSynchronization(session));\n } else {\n messageHandler = new InOutMessageHandler(getEndpoint(), executor);\n }\n }\n messageHandler.setSession(session);\n messageHandler.setProcessor(getAsyncProcessor());\n messageHandler.setSynchronous(isSynchronous());\n messageHandler.setTransacted(isEndpointTransacted());\n messageHandler.setTopic(isTopic());\n return messageHandler;\n }", "public Handler getHandler(Handler.Callback callback) {\n return new Handler(this.mService.mHandlerThread.getLooper(), callback);\n }", "EventCallbackHandler getCallbackHandler();", "private Handler getWebAppHandler(String warLocation, Server server) {\n WebAppContext webapp = new WebAppContext();\n webapp.setContextPath(\"/\");\n File warFile = new File(warLocation);\n if (!warFile.exists()) {\n throw new RuntimeException(\"Unable to find WAR File: \" + warFile.getAbsolutePath());\n }\n webapp.setWar(warFile.getAbsolutePath());\n webapp.setExtractWAR(true);\n\n Configuration.ClassList classlist = Configuration.ClassList.setServerDefault(server);\n classlist.addBefore(\n \"org.eclipse.jetty.webapp.JettyWebXmlConfiguration\",\n \"org.eclipse.jetty.annotations.AnnotationConfiguration\");\n\n webapp.setAttribute(\n \"org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern\",\n \".*/[^/]*servlet-api-[^/]*\\\\.jar$|.*/javax.servlet.jsp.jstl-.*\\\\.jar$|.*/[^/]*taglibs.*\\\\.jar$\");\n\n return webapp;\n }", "public ClientHandler(Socket cmdSocket, Socket fileSocket, FileTransferServer server) {\n // Set up a simple configuration that logs on the console.\n BasicConfigurator.configure();\n\n log = Logger.getLogger(ClientHandler.class.getName());\n\n this.cmdSocket = cmdSocket;\n this.fileSocket = fileSocket;\n this.server = server;\n\n prepareStreams();\n\n // Initialize handlers for each command\n handlers = new HashMap<>();\n handlers.put(\"DIR\", new DirRequestHandler(server));\n handlers.put(\"GET\", new GetRequestHandler(server, fileOutStream));\n handlers.put(\"PUT\", new PutRequestHandler(server, fileInStream));\n }", "public void create(HandlerContext context, Management request, Management response) {\n\t\t// TODO Auto-generated method stub\n\n\t}", "@Override\n public AuthHandler create(Vertx vertx, JsonObject config) {\n return null;\n }", "public void registerHandler(ReceivedDataHandler handler)\n {\n this.handler = handler;\n }", "public Registration() {\r\n initComponents();\r\n handler = new ClientSocketHandler();\r\n }", "public ConnectionHandler createConnectionHandler() throws Exception {\n SimpleConnectionHandler handler = new SimpleConnectionHandler();\n handler.setLogger(m_logger);\n return handler;\n }", "public HttpHandler createProxyHandler(HttpHandler next) {\n return ProxyHandler.builder()\n .setProxyClient(container.getProxyClient())\n .setNext(next)\n .setMaxRequestTime(maxRequestTime)\n .setMaxConnectionRetries(maxRetries)\n .setReuseXForwarded(reuseXForwarded)\n .build();\n }", "@Nonnull\n static SocketHandler from(@Nonnull String name, @Nonnull BiConsumer<WebSocket, String> rawHandler) {\n return new SocketHandlerImpl(name, rawHandler);\n }", "protected synchronized ScriptHandler getScriptHandler(String request, String[] params) {\r\n \thandlerLock.lock();\r\n if (currentLoader != null || currentScriptHandler != null) {\r\n }\r\n if (params == null)\r\n currentScriptHandler = new ScriptHandler(request);\r\n else\r\n currentScriptHandler = new ScriptHandler(request, params);\r\n return currentScriptHandler;\r\n }", "protected abstract ElementHandler createElementHandler( String voTagname );", "@Override\n public void handlerAdded(ChannelHandlerContext ctx) throws Exception {\n super.handlerAdded(ctx);\n logger.info(\"Added handler: \" + ctx.channel().remoteAddress());\n }", "public Handler getUiHandler(Handler.Callback callback) {\n return new Handler(this.mService.mUiHandler.getLooper(), callback);\n }", "protected abstract void runHandler();" ]
[ "0.7076311", "0.6381539", "0.6264399", "0.6254843", "0.6086346", "0.6003733", "0.59597456", "0.5927472", "0.58460176", "0.5841968", "0.5790982", "0.5764565", "0.57398653", "0.5739105", "0.57075405", "0.5673627", "0.5650818", "0.56372094", "0.5578924", "0.5546621", "0.5539873", "0.55290085", "0.55268747", "0.5518576", "0.5518402", "0.55107784", "0.54895306", "0.547811", "0.54688066", "0.54688066", "0.54640514", "0.5463276", "0.5463276", "0.54610556", "0.5443804", "0.5441273", "0.5418119", "0.54087454", "0.53838557", "0.5360169", "0.53499097", "0.53412086", "0.53386194", "0.53355825", "0.53228015", "0.53153586", "0.5310269", "0.5308492", "0.52871925", "0.52766466", "0.526919", "0.52515745", "0.5232455", "0.521771", "0.52111703", "0.5197401", "0.5197224", "0.5183488", "0.51346093", "0.5122535", "0.51193124", "0.5118007", "0.5114974", "0.51021", "0.51016605", "0.51006734", "0.5097871", "0.50850457", "0.50793415", "0.505465", "0.5034268", "0.50164056", "0.50065666", "0.4994815", "0.49854746", "0.49825835", "0.497612", "0.4972852", "0.49720296", "0.49706915", "0.49673873", "0.49614394", "0.49606684", "0.49506897", "0.49431303", "0.49411577", "0.49354082", "0.4931751", "0.49280107", "0.49268433", "0.49214423", "0.4916354", "0.49115488", "0.4908759", "0.4903925", "0.4903459", "0.48967195", "0.48959422", "0.48933223", "0.48916295" ]
0.50028944
73
Close the connection when an exception is raised. cause.printStackTrace();
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) { ctx.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void closeConnection(final String reason) {\n closeConnection(new VertxException(reason).fillInStackTrace());\n }", "@Override\r\n public void close() throws Exception {\r\n if (connection != null){\r\n connection.close();\r\n }\r\n }", "private void closeConnection(Throwable cause) {\n log.debug(\"Closing connection\", cause);\n\n setState(SessionState.DISCONNECTING, cause);\n this.client.disconnect().onComplete(this::disconnectCompleted);\n }", "public void connectionLost(Throwable cause) {\n\t}", "private synchronized void closeConnection() {\n/* 212 */ if (this.conn != null) {\n/* 213 */ this.log.debug(\"Closing connection\");\n/* */ try {\n/* 215 */ this.conn.close();\n/* 216 */ } catch (IOException iox) {\n/* 217 */ if (this.log.isDebugEnabled()) {\n/* 218 */ this.log.debug(\"I/O exception closing connection\", iox);\n/* */ }\n/* */ } \n/* 221 */ this.conn = null;\n/* */ } \n/* */ }", "private void exceptionCaught(Throwable cause) {\n log.debug(\"Caught exception\", cause);\n closeConnection(cause);\n Handler<Throwable> exceptionHandler = this.exceptionHandler;\n if (exceptionHandler != null) {\n exceptionHandler.handle(cause);\n }\n }", "@Override\r\n\tpublic void close()\r\n {\r\n\t\ttry\r\n {\r\n\t connection.close();\r\n }\r\n\t\tcatch (final SQLException e)\r\n {\r\n\t\t\t// Ignore, shutting down anyway\r\n }\r\n }", "private void connectionClosed(final Throwable cause) {\n if (log.isDebugEnabled()) {\n log.debug(\"Connection closed\", cause);\n } else {\n log.info(\"Connection closed: \" + (cause != null ? cause.getMessage() : \"<unknown>\"));\n }\n\n if (this.client != null) {\n this.client.exceptionHandler(null);\n this.client.publishHandler(null);\n this.client.closeHandler(null);\n this.client.subscribeCompletionHandler(null);\n this.client.publishCompletionHandler(null);\n this.client.publishCompletionExpirationHandler(null);\n this.client.publishCompletionUnknownPacketIdHandler(null);\n this.client = null;\n }\n setState(SessionState.DISCONNECTED, cause);\n }", "@Override\r\n\tpublic void connectionLost(Throwable cause) {\n\t\t\r\n\t}", "public void closeConnection(){\n try {\n connection.close();\n } catch (SQLException ex) {\n System.out.println(\"SQLException in closeConnection()\");\n }\n }", "private void closeConnection(){\n report(\"Close connection\");\n try{\n if(socket != null && !socket.isClosed()) {\n report(\"Client: Close socket\");\n socket.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n report(\"End\");\n }", "public void connectionClose() {\n try {\n conn.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "private void close() {\n\t\ttry {\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlog(e);\n\t\t} finally {\n\t\t\tisConnected = false;\n\t\t}\n\t}", "public void close () throws IOException , GateException {\n try{\n conn.close();\n }\n catch (SQLException e){\n log.error(\"Problem closing database connection\", e);\n System.exit(5);\n }\n\n }", "@Override\n\tpublic void connectionLost(Throwable cause) {\n\t\t\n\t}", "@Override\r\n\tpublic void close() {\n\t \t if (conn != null) {\r\n\t \t\t try {\r\n\t \t\t\t conn.close();\r\n\t \t\t } catch (Exception e) {\r\n\t \t\t\t e.printStackTrace();\r\n\t \t\t }\r\n\t \t }\r\n\t}", "private void closeConnection() {\r\n try {\r\n socket.close();\r\n } catch (IOException ex) {\r\n // Ex on close\r\n }\r\n }", "@Override\n public void connectionLost(Throwable cause) {\n\n }", "@Override\n public void connectionLost(Throwable cause) {\n }", "@Override\n public void connectionLost(Throwable cause) {\n Log.d(TAG, \"Connection lost\");\n }", "protected void connectionClosed() {}", "@Override\n\t\t\tpublic void connectionLost(Throwable throwable) {\n\t\t\t\tSystem.out.println(\"connectionLost\");\n\t\t\t}", "void close_Connection(){\n\t\ttry{\n\t\t\toutfile.close();\n\t\t\tcon.close();\n\t\t\tSystem.out.println(\"MYSQL is disconnected\");\n\t\t//Catch SQL exception\t\t\n\t\t}catch(SQLException sqle){ \n\t\t\tsqle.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t//Catch I/O exception\t\n\t\tcatch(IOException ioe){ \n\t\t\tioe.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\t\t\n\t}", "public static void close() {\n\t\ttry {\n\t\t\tconn.close();\n\t\t} catch(Exception e) {\n\t\t\tPvPTeleport.instance.getLogger().info(e.getMessage());\n\t\t}\n\n\t}", "public void disconnect()\r\n\t{\r\n\t\ttry {\r\n\t\t\tconnection_.close();\r\n\t\t} catch (IOException e) {} // How can closing a connection fail?\r\n\t\t\r\n\t}", "public void closeConnection() {\n if (conn != null) {\n try {\n conn.close();\n } catch (SQLException sqlEx) {\n dbg(\"closeConnection-->SQLException raised while closing conn =\" + sqlEx.getMessage());\n }\n }\n }", "public void close()\r\n {\r\n try\r\n {\r\n connection.close();\r\n } catch(SQLException exception)\r\n {\r\n LOG.log(Level.SEVERE, \"\", exception);\r\n }\r\n }", "public void closeConnection(){\r\n if (connection != null)\r\n try{\r\n log.info(\"close connection\");\r\n connection.close();\r\n }\r\n catch (SQLException e){\r\n log.error(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "@Override\r\n\tpublic void connectionLost(Throwable t) {\n\t}", "@Override\n\t\tpublic void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n\t\t\tcause.printStackTrace();\n\t\t\tctx.close();\n\t\t}", "protected void connectionException(Exception exception) {}", "@Override\n public void connectionLost(Throwable thrwbl) {\n System.out.println(\"服务器的连接丢失\");\n }", "@Override\r\n\tpublic void close() throws Exception {\r\n\t\tSystem.out.println(\"Cerrado\");\r\n\t}", "@Override\n public void connectionLost(Throwable t) {\n System.out.println(\"Connection lost!\");\n }", "@Override\r\n\tpublic void closeConnection() {\n\t\t\r\n\t}", "@Override\n public void exceptionCaught(IoSession session, Throwable cause) throws Exception {\n //Se eccezione SSL(e.g. handshake fallito, termino la connessione\n if (cause instanceof SSLException) {\n System.out.println(\"ECCEZIONE TLS SESSION \" + session.getId());\n session.close(true);\n }\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "public void close() {\n try {\n connect.close();\n } catch (SQLException ex) {\n System.err.println(\"Error while closing db connection\" + ex.toString());\n }\n }", "public static void closeConnection() {\n if(connection != null) {\n try {\n connection.close();\n connection = null;\n }\n catch (Exception e) \n { \n e.printStackTrace(); \n }\n }\n }", "public static void closeConnection() {\n\t\ttry {\n\t\t\tcon.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error al cerrar la conexion.\");\n\t\t}\n\t}", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ctx.close();\n }", "@Override\r\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\r\n ctx.close();\r\n }", "@Override\r\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\r\n ctx.close();\r\n }", "@Override\n\tpublic void closeConnection() {\n\t\t\n\t}", "private void closeConnection() {\n\t\t\tSystem.out.println(\"\\nTerminating connection \" + myConID + \"\\n\");\n\t\t\ttry {\n\t\t\t\toutput.close(); // close output stream\n\t\t\t\tinput.close(); // close input stream\n\t\t\t\tconnection.close(); // close socket\n\t\t\t} catch (IOException ioException) {\n\t\t\t\tSystem.out.println(\"Exception occured in closing connection\"\n\t\t\t\t\t\t+ ioException);\n\t\t\t}\n\t\t}", "private void closeConnection () {\n setConnection (null);\n }", "public void closeConnection() {\n\t\ttry {\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {\n\t\t\tlogger.warning(\"problem closing socket connection with JSON-RPC server at \" + serverIP + \":\" + serverPort);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "abstract public void closeConnection();", "public void closeConnection() throws Exception {\n\t\ttry {\n\t\t\tclient.close();\n\t\t\tis.close();\n\t\t\tisr.close();\n\t\t\tbr.close();\n\t\t\tSystem.out.println(\"Connection is closed\");\n\t\t\tgetConnection();\n\t\t} catch (IOException ex) {\n\t\t\tLogger.getLogger(ServerTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t}", "public void closeConnection();", "private void endConnection(){\n\t\tif(this.connection != null){\n\t\t\ttry {\n\t\t\t\tthis.connection.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void closeConnection() {\n try {\n if (connection != null) {\n connection.close();\n connection = null;\n }\n } catch (Exception e) {\n System.out.print(e.getMessage());\n }\n }", "private void connectionClosed() {\n if (this.state != SessionState.DISCONNECTING) {\n // this came unexpected\n connectionClosed(new VertxException(\"Connection closed\"));\n }\n }", "public static void fermerConnexion(Connection con)\n{\n if(con!=null)\n {\n try\n {\n con.close();\n }\n catch(Exception e)\n {\n System.out.println(\"Erreur lors de la fermeture d’une connexion dans fermerConnexion(Connection)\");\n }\n }\n}", "@Override\n public void connectionLost(Throwable arg0) {\n\n }", "public static void disconnect(){\n if(conn != null)\n try{\n conn.close();\n }catch(SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public void close() throws IOException {\n try {\n _connection.close();\n } catch (SQLException e) {\n String msg = \"Failed to close database connection.\";\n _logger.warn(msg, e);\n }\n super.close(); //close the /dev/null that ncml gave us\n }", "@Override\n public void close() throws Exception {\n }", "protected boolean closeOnReadError(Throwable cause) {\n/* 606 */ if (cause instanceof SocketException) {\n/* 607 */ return false;\n/* */ }\n/* 609 */ return super.closeOnReadError(cause);\n/* */ }", "private void closeConnection() {\n\t\t_client.getConnectionManager().shutdown();\n\t}", "@Override\n\tpublic void connectionClosed() {\n\t}", "public void close(){\r\n if(conn!=null){\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n System.out.println(\"Error al cerrar la base de datos: \\n\"+ex.getMessage());\r\n }\r\n }\r\n }", "@Override\n public void closeConnection() {\n\n System.out.println(\"[CLIENT] Closing socket connection...\");\n try {\n socket.close();\n in.close();\n out.close();\n System.out.println(\"[CLIENT] Closed socket connection.\");\n } catch (IOException e) {\n System.out.println(\"[CLIENT] Error occurred when closing socket\");\n }\n System.exit(0);\n\n }", "public void closeConnection() {\n client.close();\n System.out.println(\"Connection to db closed.\");\n }", "public void closeConnection() {\n try {\n if ( clientSocket != null ) {\n clientSocket.close();\n }\n } catch ( IOException e ) {\n logger.error( \"Error closing sokcet to client \" + getId(), e );\n }\n }", "void handleConnectionClosed();", "void close() throws Exception;", "void close() throws Exception;", "public void closeConnection() {\n System.out.println(\"Closing connection\");\n\n try {\n reader.close();\n \n if (connectionSocket != null) {\n connectionSocket.close();\n connectionSocket = null;\n }\n System.out.println(\"Connection closed\");\n } catch (IOException e) {\n System.out.println(\"IOException at closeConnection()\");\n } catch (NullPointerException e) {\n System.out.println(\"NullPointerException at closeConnection()\");\n } catch (Exception e) {\n System.out.println(\"Exception at closeConnection()\");\n System.out.println(e.toString());\n }\n }", "void disconnect() throws Exception;", "public void closeConnection() {\n try {\n con.close();\n } catch (SQLException e) {\n System.err.println(e.getMessage());\n e.printStackTrace();\n }\n }", "private void close(Exception cause) {\n if (closed.compareAndSet(false, true)) {\n sock.close();\n\n for (ClientRequestFuture pendingReq : pendingReqs.values())\n pendingReq.completeExceptionally(new IgniteClientConnectionException(\"Channel is closed\", cause));\n }\n }", "void close() throws Exception;", "public void ExitConection(){\n try {\n resultSet.close();\n preparedStatement.close();\n conection.close();\n } catch (Exception e) {\n// MessageEmergent(\"Fail ExitConection(): \"+e.getMessage());\n }\n }", "public void closeConnection() {\n try {\n dis.close();\n dos.close();\n socket.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void close() throws Exception {\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ChannelFuture close = ctx.close();\n close.addListener((ChannelFutureListener) future -> System.out.println(\"server channel closed!!!\"));\n }", "public void close() {\n\n\t\tdebug();\n\n\t\tif (isDebug == true) {\n\t\t\tlog.debug(\"=== CLOSE === \");\n\t\t}\n\n\t\ttry {\n\n\t\t\tif (connection != null) {\n\n\t\t\t\tlog.debug(\"Antes Connection Close\");\n\t\t\t\tconnection.close();\n\t\t\t\tlog.debug(\"Pos Connection Close\");\n\t\t\t}\n\n\t\t\tif (m_dbConn != null) {\n\t\t\t\tm_dbConn.close();\n\t\t\t}\n\n\t\t\tif (isDebug == true) {\n\t\t\t\tlog.debug(\"Connection Close\");\n\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tlog.debug(\"ERRO Connection Close\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tconnection = null;\n\t\tm_dbConn = null;\n\n\t}", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) {\n log.error(\"Input Stream {} : {}\", name, e.getCause());\n Channel ch = e.getChannel();\n ch.close();\n channelAtomicReference.set(null);\n }", "private void closeConnection()\n\t{\n\t\tif(result != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tresult.close();\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t\tcatch(Exception ignore){}\n\t\t}\n\t\tif(con != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tcon.close();\n\t\t\t\tcon = null;\n\t\t\t}\n\t\t\tcatch(Exception ignore){}\n\t\t}\n\t}", "protected void close() {\n\t\tthis.connection.close();\n\t\tthis.connection = null;\n\t}", "public void closeConnection() {\r\n\t\tjava.util.Date connClosedDate = new java.util.Date();\r\n\t\ttry {\r\n\t\t\tpeerNode.peer2PeerOutStream.close();\r\n\t\t\tpeerNode.peer2PeerInStream.close();\r\n\t\t\tpeerNode.peer2Peer.close();\r\n\t\t\toutStream.close();\r\n\t\t\tinStream.close();\r\n\t\t\tpeerToPeerSocket.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(connClosedDate + \": Could not close connection\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public void closeConnection() {\n try {\n stdIn.close();\n socketIn.close();\n socketOut.close();\n }\n catch(IOException e) {\n e.printStackTrace();\n }\n }", "public void closeCon(){\r\n\t\ttry\r\n\t\t{\r\n\t\t\tmyConnection.close();\r\n\r\n\t\t}\r\n\r\n\t\tcatch (SQLException e )\r\n\t\t{\r\n\t\t\tSystem.out.println(\"something went wrong with closing DB connection\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void closeConnection () {\n\t\ttry {\n\t\t\tconnection.close();\n\t\t\tconnection = null;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void connectionLost(Throwable cause) {\n System.out.println(\"MQTT Connection Lost\");\n }", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {\n if (isQuiteException(cause)) {\n if (logger.isDebugEnabled()) {\n logger.debug(String.format(\"Channel:%s Error\", ctx.channel()), cause);\n }\n } else {\n logger.warn(PROTOCOL_FAILED_RESPONSE, \"\", \"\", String.format(\"Channel:%s Error\", ctx.channel()), cause);\n }\n ctx.close();\n }", "@Override\n \tpublic void connectionClosed() {\n \t\t\n \t}", "private void closeConnection(Connection connection, String signature) throws LateDeliverablesProcessingException {\r\n try {\r\n connection.close();\r\n } catch (SQLException e) {\r\n throw Helper.logException(log, signature, new LateDeliverablesProcessingException(\r\n \"Fails to close connection.\", e));\r\n }\r\n }", "@Override\n\tpublic void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {\n\t\tLOGGER.error(\"server caught exception\", cause);\n\t\tctx.close();\n\t}", "@Override\n\t\tpublic void close() throws Exception {\n\t\t}", "@Override\n\tpublic void close() throws Exception {\n\t\t\n\t}", "public void close() {\n try {\n closeConnection(socket);\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public void closeConnection() {\n //It's important to close the connection when you are done with it\n try {\n connection.close();\n DriverManager.getConnection(JDBC_URL + \";shutdown=true\"); // shut Derby down, See: https://db.apache.org/derby/papers/DerbyTut/embedded_intro.html#shutdown\n } catch (SQLException ignore) {\n LOGGER.log(Level.SEVERE, \"Unable to close DB connection due to error {0}\", ignore.getMessage());\n\n // Alternative: Cascade the original exception (or rewrap it as a more specific exception)\n // Here, we just log it \n }\n }" ]
[ "0.7390019", "0.7328319", "0.7265027", "0.72466636", "0.7054442", "0.70419616", "0.70142317", "0.6988752", "0.6971809", "0.6950973", "0.69471335", "0.6944459", "0.69205564", "0.68948364", "0.6886849", "0.68476295", "0.68145084", "0.6812757", "0.6774703", "0.67664194", "0.6751427", "0.6722564", "0.67105216", "0.67084527", "0.6700579", "0.6678891", "0.6656105", "0.66445136", "0.6638482", "0.66349137", "0.6628514", "0.6624719", "0.6610929", "0.6606692", "0.65993387", "0.6597698", "0.6596936", "0.6596936", "0.6596936", "0.6596936", "0.6596936", "0.6596936", "0.6596936", "0.6579885", "0.6573522", "0.65610135", "0.6548542", "0.6542445", "0.6542445", "0.65119255", "0.65074754", "0.6506179", "0.6494561", "0.64938086", "0.64869094", "0.6485417", "0.64823836", "0.6477082", "0.64753", "0.647501", "0.6471784", "0.64658785", "0.6455716", "0.64319277", "0.6429391", "0.6421994", "0.64179236", "0.64118767", "0.640228", "0.6401057", "0.64009875", "0.63998294", "0.6386446", "0.6386446", "0.6385487", "0.63813955", "0.63682044", "0.63639617", "0.63637525", "0.6351841", "0.6351736", "0.63516456", "0.63300383", "0.6310316", "0.6309137", "0.63081026", "0.63068646", "0.6304642", "0.63042516", "0.6295679", "0.6295535", "0.6290241", "0.6289915", "0.6288234", "0.6286134", "0.6280854", "0.62802094", "0.6279167", "0.627806", "0.62774414" ]
0.65096134
50
Adds the given device to this theatre and then adds a reference back to this theatre in said device.
public void addDevice(Device device) { this.devices.add(device); device.addTheatre(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.hl7.fhir.ResourceReference addNewDevice()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(DEVICE$12);\n return target;\n }\n }", "void addDevice(String device) {\n availableDevices.add(device);\n resetSelectedDevice();\n }", "public void addDeviceGroup(DeviceGroup deviceGroup) {\n this.deviceGroups.add(deviceGroup);\n deviceGroup.setTheatre(this);\n }", "private void appendDevice(final IDevice device) {\n if (-1 == getDeviceIndex(device)) {\n TestDevice td = new TestDevice(device);\n mDevices.add(td);\n }\n }", "public void addDevice(BluetoothDevice device) {\n if(!mLeDevices.contains(device)) {\n mLeDevices.add(device);\n }\n }", "public abstract void addDevice(Context context, NADevice device);", "public void addSmartDevice() {\n getNavigator().addSmartDevice();\n }", "public void addReference() {\r\n mReferenced = true;\r\n }", "private void registerDevice(MeasurementDevice inDevice) {\r\n\r\n\t\tfor (String lCurrMeasureId : inDevice.getSupportedMeasureIds()) {\r\n\r\n\t\t\tList<Measure> lDeviceMeasures = measures.get(inDevice.getId());\r\n\t\t\tif (lDeviceMeasures == null) {\r\n\t\t\t\tlDeviceMeasures = new ArrayList<>();\r\n\t\t\t\tmeasures.put(inDevice.getId(), lDeviceMeasures);\r\n\t\t\t} // if\r\n\t\t\tlDeviceMeasures.add(MeasureFactory.createMeasure(inDevice, lCurrMeasureId));\r\n\t\t} // for\r\n\r\n\t\tMeasureCacheAdapter lCacheAdapter = new MeasureCacheAdapterImpl(measures.get(inDevice.getId()));\r\n\t\tmeasureListeners.forEach(l -> lCacheAdapter.addMeasureListener(l));\r\n\t\tinDevice.setMeasureCacheAdapter(lCacheAdapter);\r\n\t}", "void addDeviceLocation(DeviceLocation deviceLocation) throws DeviceDetailsMgtException;", "@Override\n\tpublic void add(GalaxyNote phone) {\n\t\t\n\t}", "public void add(BlueteethDevice device) {\n boolean isAlreadyInList = false;\n for (BlueteethDevice d : mDevices) {\n if (device.getMacAddress().equals(d.getMacAddress())) {\n isAlreadyInList = true;\n break;\n }\n }\n\n if (!isAlreadyInList) {\n mDevices.add(device);\n notifyDataSetChanged();\n }\n }", "@Override\r\n public void remoteDeviceAdded(Registry registry, RemoteDevice device) {\r\n deviceAdded(device);\r\n }", "private void addDevice(DeviceDescription description) {\t\t\r\n\t\tif (description == null) return;\r\n\t\tSystemID systemID = description.getSystemID();\r\n\t\tDeviceFigure applicationDevice = (DeviceFigure)applicationElements.get(systemID);\r\n\t\tif (applicationDevice == null) {\r\n\t\t\tapplicationDevice = new DeviceFigure(description);\r\n\t\t\tapplicationElements.put(systemID, applicationDevice);\r\n\t\t\tapplicationGraph.addEntry(applicationDevice);\r\n\t\t} else {\r\n\t\t\tapplicationDevice.setAvailable(true);\r\n\t\t}\r\n\t\tDeviceFigure assemblerDevice = (DeviceFigure)assemblerElements.get(systemID);\r\n\t\tif (assemblerDevice == null) {\r\n\t\t\tassemblerDevice = new DeviceFigure(description);\r\n\t\t\tassemblerElements.put(systemID, assemblerDevice);\r\n\t\t\tassemblerGraph.addEntry(assemblerDevice);\r\n\t\t}\r\n\t\tzoom();\r\n\t}", "private void addDevice(final WeaveDevice device) {\n new AsyncTask<Void, Void, ModelManifest>() {\n\n @Override\n protected ModelManifest doInBackground(Void... params) {\n String manifestId = device.getModelManifestId();\n ModelManifest manifest = manifestCache.get(manifestId);\n if (manifest == null) {\n manifest = Weave.DEVICE_API.getModelManifest(mApiClient, manifestId)\n .getSuccess();\n if (manifest != null) {\n manifestCache.put(manifestId, manifest);\n }\n }\n return manifest;\n }\n\n @Override\n protected void onPostExecute(ModelManifest manifest) {\n mDeviceListAdapter.add(device, manifest);\n mDeviceListAdapter.notifyDataSetChanged();\n }\n }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }", "public org.hl7.fhir.ResourceReference addNewMedication()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(MEDICATION$10);\n return target;\n }\n }", "void addSubDevice(PhysicalDevice subDevice, String id);", "public void addReference(Reference ref) {\n references.addElement(ref);\n }", "@Override\n public AssociateWirelessDeviceWithThingResult associateWirelessDeviceWithThing(AssociateWirelessDeviceWithThingRequest request) {\n request = beforeClientExecution(request);\n return executeAssociateWirelessDeviceWithThing(request);\n }", "public synchronized void addMonitoringDevice(MonitoringDevice mDevice) {\n\t\t\n\t\t// Adds the monitoring device monitoring device container\n\t\tsuper.configuationObjects.put(mDevice.getId(), mDevice);\n\n // Update indexes created to references the monitoring device\n\t\tif (mDevice.getMac_addres() != null){\n\t if (!mDevice.getMac_addres().isEmpty())\n\t \tindexByMac.put(mDevice.getMac_addres(), mDevice.getId());\n }\n \n if (mDevice.getIp_address() != null){\n\t if (!mDevice.getIp_address().isEmpty())\n\t \tindexByIpAddress.put(mDevice.getIp_address(), mDevice.getId());\n }\n \n if (mDevice.getSerial() != null){\n\t if (!mDevice.getSerial().isEmpty())\n\t \tindexBySerial.put(mDevice.getSerial(),mDevice.getId());\n }\n\n\t}", "public final void addReference(DodleReference reference) {\n if (reference != null && !references.containsKey(reference.getTrackingID())) {\n references.put(reference.getTrackingID(), reference);\n }\n }", "void addDevice(Device device, String token) throws InvalidDeviceException, AuthenticationException,\n DeviceAlreadyExistsException;", "public org.hl7.fhir.ResourceReference insertNewDevice(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().insert_element_user(DEVICE$12, i);\n return target;\n }\n }", "@Override\n\tpublic void add(Iphone phone) {\n\t\t\n\t}", "public org.hl7.fhir.ResourceReference addNewPatient()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(PATIENT$2);\n return target;\n }\n }", "public void addObjectRef(ObjectRef ref){\n \t\tthis.objectRefs[objectPointer++] = ref;\n \t}", "public void addBoneRef(BoneRef ref){\n \t\tthis.boneRefs[bonePointer++] = ref;\n \t}", "void addDevice(String userid,String username,String devicename,String deviceaddre,Long addtime,\n IDevicesListener iDevicesListener);", "void addPC(PCDevice pc);", "@Override\n\tpublic void add(CelPhone phone) {\n\t\t\n\t}", "public void removeDevice(Device device) {\n this.devices.remove(device);\n device.removeTheatre(this);\n }", "public void addReference(Ant.Reference r) {\r\n references.addElement(r);\r\n }", "ReferenceData add(ReferenceData instance) throws DataException;", "public void addDevice()\r\n\t\t{\n\t\t\t\r\n\t\t\tSystem.out.println(\" Enter Device Name \");\r\n\t\t\tString devName = sc.nextLine();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Enter cost of the device \");\r\n\t\t\tint devCost = Integer.parseInt(sc.nextLine());\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Give the average rating for the device \");\r\n\t\t\tint devRating = Integer.parseInt(sc.nextLine());\r\n\t\t\t\r\n\t\t\tSystem.out.println(\" Enter Device Brand Name \");\r\n\t\t\tString devBrand = sc.nextLine();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tDevice newDevice = new Device(devName, devCost,devRating,devBrand);\r\n\t\t\tString modelNumber = record.addDevice(newDevice);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\" Device Inserted :- \"+modelNumber);\r\n\t\t}", "void addHadithReferenceNo(Object newHadithReferenceNo);", "public boolean addDevice(Device i_dev) throws SQLException {\n\t\treturn addDevice(i_dev.getProtoDevice().getId(), i_dev.getCustomer_id(), i_dev.getSerial_number());\n\t}", "public void add(Reference<ComponentType> reference, InjectionSite injectionSite) {\n super.add(reference);\n Injectable injectable = new Injectable(InjectableType.REFERENCE, reference.getName());\n addInjectionSite(injectionSite, injectable);\n injectionSiteMapping.put(reference, injectionSite);\n }", "public void add(int index, Object element) {\r\n refs.add(index, new WeakReference(element));\r\n }", "public void addUrlDevice(UrlDevice urlDevice) {\n mDeviceIdToUrlDeviceMap.put(urlDevice.getId(), urlDevice);\n }", "public void addOrUpdateDevice(int devicePk) \r\n\t{\r\n\t\tDevice d = getDevice(devicePk);\r\n\t\t_deviceListView.addOrUpdateDevice(d);\r\n\t\trefreshPinger();\r\n\t}", "public void addDevice(ProductModel ndm) {\n\t\tSystem.out.println(\"\\nNetworkDevServ-addDevice()\");\r\n\t\tdeviceData.addDevice(ndm); \r\n\t}", "public final void addRef() { refCount.incrementAndGet(); }", "public void newApointment(Appointment ap){\n\n this.appointments.add(ap);\n }", "public CashDrawerService addDevice(int index, JposDevice dev, JposEntry entry) throws JposException {\r\n // As long as DrawerBeepVolume has not been removed, entry will not be used (works via dev.DrawerBeepVolume).\r\n return addDevice(index, dev);\r\n }", "@Test\n public void addDeviceTest() throws ApiException {\n Device device = null;\n // DeviceEnvelope response = api.addDevice(device);\n\n // TODO: test validations\n }", "public void addRef(String word) {\n addRef(word.toCharArray()); }", "void addDeviceComplete(boolean hasOtherDevices);", "void addDeviceInfo(DeviceIdentifier deviceId, DeviceInfo deviceInfo) throws DeviceDetailsMgtException;", "public void addMonster(Monster theMonster) {\n monster = theMonster;\n monsters.add(theMonster);\n }", "private void deviceDetected(String btMac, String location) {\r\n\t\t// If it is not this location\r\n\t\tif (location != this.location) {\r\n\t\t\tDoctor doctor = dbAdapter.getDoctor(btMac);\r\n\t\t\tif (doctor != null) {\r\n\t\t\t\tdoctors.addDoctor(doctor);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void addToUse(int card) {\r\n\t\tthis.toUse.add(card);\r\n\t}", "public void registerReference(BindingReference ref) {\n references.add(ref);\n }", "void setDevice(MediaType mediaType, MediaDevice device)\r\n {\r\n int mediaTypeIndex = mediaType.ordinal();\r\n MediaDevice oldValue = devices[mediaTypeIndex];\r\n\r\n /*\r\n * XXX While we know the old and the new master/wrapped devices, we are not sure whether\r\n * the mixer has been used. Anyway, we have to report different values in order to have\r\n * PropertyChangeSupport really fire an event.\r\n */\r\n MediaDevice mixer = mixers[mediaTypeIndex];\r\n\r\n if (mixer instanceof MediaDeviceWrapper)\r\n oldValue = ((MediaDeviceWrapper) mixer).getWrappedDevice();\r\n\r\n MediaDevice newValue = devices[mediaTypeIndex] = device;\r\n\r\n if (oldValue != newValue) {\r\n mixers[mediaTypeIndex] = null;\r\n firePropertyChange(MediaAwareCall.DEFAULT_DEVICE, oldValue, newValue);\r\n }\r\n }", "public void attach(T e) {\n\t\tif (!this.isEmpty()) {\n\t\t\tsuper.put(e, new Duet<T>(null, first));\n\t\t\tthis.get(first).setFirst(e);\n\t\t\tfirst = e;\n\t\t}\n\t\telse this.add(e);\n\t}", "public static void addcar(String br, String mo, String ref, int ye) {\n\n String target = ref.toUpperCase();\n searchref(ref);\n if (existebis == 0) {\n Cars xx = new Cars();\n xx.SetBrand(br);\n xx.SetModel(mo);\n xx.SetRef(ref);\n xx.SetYear(ye);\n listcars.add(xx);\n } else {\n System.out.println(\"error, ref already exist\");\n }\n }", "void setAudioRoute(String device);", "Flight addStewardToFlight(Flight flight, Steward steward);", "void addWay(Way w) {\n ways.put(w.id, w);\n }", "void addPerformAt(Facility newPerformAt);", "void add(I t) {\n refs.add(new WeakReference<>(t));\n }", "@Override\n\tpublic int addDevice(DeviceBean db) {\n\t\tdb.setUuid(dao.getClientUuid(db.getClientId()));//查询出uuid\n\t\tdb.setMajor(dao.getClientMajor(db.getClientId()));//查询出major\n\t\treturn dao.addDevice(db);\n\t}", "public void addSensor(Sensor sensor){\n sensors.addSensor(sensor);\n sensor.setFieldStation(this);\n }", "protected void sequence_RefDevice(ISerializationContext context, RefDevice semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public void addWeapon(CardWeapon cw)\n {\n this.weapons.add(cw);\n }", "public void addDevice(final BluetoothDevice device, final int rssi)\n {\n Log.v(TAG, \"Adding Device: \" + device.getName());\n //------------------------------------------------------------\n // If device already added, update signal strength\n final String address = device.getAddress();\n if ( deviceMap.containsKey(address) )\n { deviceMap.get(address).setRssi(rssi); }\n //------------------------------------------------------------\n // Otherwise, add device to list\n else\n {\n final BLEDevice bleDevice = new BLEDevice(device, rssi);\n deviceMap.put(address, bleDevice);\n deviceList.add(bleDevice);\n }\n //------------------------------------------------------------\n // Notify data changed\n adapter.notifyDataSetChanged();\n }", "public final void addAppointment(Appointment appointment) {\n appointments.add(appointment);\n }", "public void add(BindRecord record) {\n map.put(record.getPeptide(), record);\n }", "public void add(ResourceReference definition, InjectionSite injectionSite) {\n super.add(definition);\n Injectable injectable = new Injectable(InjectableType.RESOURCE, definition.getName());\n addInjectionSite(injectionSite, injectable);\n injectionSiteMapping.put(definition, injectionSite);\n }", "private void addDoor(Door door) {\n doors.add(door);\n }", "public TerminalDevice addTerminalDevice(TerminalDevice terminalDevice)\n throws JNCException {\n this.terminalDevice = terminalDevice;\n insertChild(terminalDevice, childrenNames());\n return terminalDevice;\n }", "public void addMonster(Dragon mon){\n dragons.add(mon);\n }", "void insertFlightseat(AirFlightseat dRef);", "org.hl7.fhir.ObservationReferenceRange addNewReferenceRange();", "private void addDeviceItem() throws SQLException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\ttry{\r\n\t\t\tnameDevice = edtNameDevice.getText().toString().trim();\r\n\t\t\tportDevice = Integer.parseInt(edtPortDevice.getText().toString().trim());\r\n\t\t\troomID = getIntent().getExtras().getInt(\"room_id\");\r\n\t\t\t\r\n\t\t\tDeviceItem item = new DeviceItem(roomID, nameDevice, typeDevice, portDevice, statusDevice);\r\n\t\t\tDeviceItemController.getInstance(AddDeviceItemActivity.this).createDeviceItem(item);\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t\tToast.makeText(AddDeviceItemActivity.this, \"Add device item error. Please verify your device infomations!\", Toast.LENGTH_SHORT).show();\r\n\t\t}\r\n\t}", "public void add(Speaker speaker) {\n\t\tdao.add(speaker);\r\n\t}", "public void addDeviceListener(DeviceDriverListener device);", "public void addLight(Light light) { LightSet.addElement(light); }", "public void registerANewBoat(Boat boat){boats.add(boat);}", "public void addReference(FileSet reference) {\n referenceFilesets.add(reference);\n }", "org.hl7.fhir.ResourceReference addNewPerformer();", "void addAdvert(Advert advert);", "private void addVehicle(Vehicle v){\n\t\tthis.putResource(v);\n\t}", "void addUses(Equipment newUses);", "public void addDrink(Drink drink) {\n drinks.put(drink, false);\n }", "public int addManufacturer(Manufacturer manufacturer);", "public void addRef(char[] word) {\n if (indexedFile == null) {\n throw new IllegalStateException(); }\n index.addRef(indexedFile, word); }", "@Override\n\tpublic Equipment addEquipment(Equipment equipment, int idCat, int idFourn) {\n\t\treturn dao.addEquipment(equipment, idCat, idFourn);\n\t}", "public com.walgreens.rxit.ch.cda.StrucDocFootnoteRef addNewFootnoteRef()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocFootnoteRef target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocFootnoteRef)get_store().add_element_user(FOOTNOTEREF$10);\n return target;\n }\n }", "public RouteEntryImpl addingService(ServiceReference<Object> reference) {\n Object service = context.getService(reference);\n RouteEntryImpl result = null;\n if (service instanceof CollectionResourceProvider) {\n result = addRoute(reference, service);\n } else if (service instanceof SingletonResourceProvider) {\n result = addRoute(reference, service);\n } else if (service instanceof RequestHandler) {\n result = addRoute(reference, service);\n }\n if (null == result) {\n context.ungetService(reference);\n }\n return result;\n }", "public void adds(Speaker speaker) {\n\t\tdao.adds(speaker);\r\n\t}", "public void addRequisition(Requisition requisition);", "void setDeviceName(String newDeviceName) {\n deviceName = newDeviceName;\n }", "protected void addFather(String url) {\n\t\tif(!fathers.contains(url)) \n\t\t\tfathers.add(url);\n\t}", "private void addPatient(Patient patient) {\n Location location = mLocationTree.findByUuid(patient.locationUuid);\n if (location != null) { // shouldn't be null, but better to be safe\n if (!mPatientsByLocation.containsKey(location)) {\n mPatientsByLocation.put(location, new ArrayList<Patient>());\n }\n mPatientsByLocation.get(location).add(patient);\n }\n }", "org.hl7.fhir.ObservationRelated addNewRelated();", "@Override\n public void addKit(Kit kit) {\n }", "public void add( String documentKey ) {\r\n relatedDocuments.add( documentKey );\r\n relatedDocumentsCounter++;\r\n globalRelatedDocumentsCounter++;\r\n\r\n if (relatedDocumentsCounter >= MAX_TRIGRAMS_PER_REFERENCEFILE) {\r\n saveInternal();\r\n }\r\n }", "public void addCamera(Camera cam) \r\n\t{ \r\n\t\tCameraSet.addElement(cam);\r\n\t\tcam.setRenderer(this);\r\n\t}", "Reference getDevice();", "protected void recordPatientVisit() {\r\n\r\n\t\t// obtain unique android id for the device\r\n\t\tString android_device_id = Secure.getString(getApplicationContext().getContentResolver(),\r\n Secure.ANDROID_ID); \r\n\t\t\r\n\t\t// add the patient record to the DB\r\n\t\tgetSupportingLifeService().createPatientAssessment(getPatientAssessment(), android_device_id);\r\n\t}" ]
[ "0.68463326", "0.6418961", "0.6295038", "0.5977453", "0.5969753", "0.5782885", "0.57578605", "0.5637833", "0.5572651", "0.55550265", "0.55467683", "0.5540011", "0.5498074", "0.5456284", "0.54307866", "0.5393489", "0.5374699", "0.5359142", "0.53584355", "0.5294124", "0.5286297", "0.5232345", "0.5223807", "0.522015", "0.52139246", "0.52028346", "0.5171659", "0.5150103", "0.5143707", "0.5135895", "0.5128995", "0.50958425", "0.5074924", "0.50665486", "0.5062634", "0.50412595", "0.50305074", "0.502635", "0.501381", "0.4994527", "0.49911326", "0.49739963", "0.49613175", "0.4957242", "0.49544677", "0.48945606", "0.48701528", "0.48620036", "0.48384237", "0.4836028", "0.4830233", "0.48294333", "0.48263183", "0.48262694", "0.4822067", "0.48116398", "0.48098204", "0.479445", "0.47891983", "0.4785671", "0.47752145", "0.47616348", "0.4760988", "0.47560874", "0.47539395", "0.47409478", "0.47407997", "0.47384843", "0.47374284", "0.47257066", "0.47232032", "0.4718952", "0.47189382", "0.4718201", "0.47166327", "0.4715837", "0.47038695", "0.46816933", "0.46741048", "0.4672267", "0.4667095", "0.46642682", "0.46638557", "0.4661642", "0.4659592", "0.46519455", "0.46512556", "0.46420723", "0.46256325", "0.4618101", "0.46171334", "0.46073866", "0.46020108", "0.46000385", "0.4595124", "0.45914453", "0.45912173", "0.45901495", "0.458946", "0.4589293" ]
0.7773966
0
Removes the given device from this theatre and then removes the reference to this theatre from said device.
public void removeDevice(Device device) { this.devices.remove(device); device.removeTheatre(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeDevice(String device) {\n availableDevices.remove(device);\n resetSelectedDevice();\n }", "private void removeDevice(final IDevice device) {\n int index = getDeviceIndex(device);\n if (index == -1) {\n Log.d(\"Can't find \" + device + \" in device list of DeviceManager\");\n return;\n }\n mDevices.get(index).disconnected();\n mDevices.remove(index);\n }", "public abstract void removeDevice(Context context, NADevice device);", "public void removeDeviceServiceLink();", "public void deviceRemoved(Device device) {\n if (this.devices.remove(device.getId()) == null) {\n throw new IllegalStateException(\"I didn't know about device \" + device.getId() + \"!\");\n }\n }", "public void unsetPatient()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(PATIENT$2, 0);\n }\n }", "public void removeDeviceListener(DeviceDriverListener device);", "public void removeUnit(){\r\n tacUnit = null;\r\n }", "public void removeThing(){\n thing = null;\n }", "private void removeDevice(DeviceDescription description) {\r\n\t\tSystemID systemID = description.getSystemID();\r\n\t\tDeviceFigure applicationDevice = (DeviceFigure)applicationElements.get(systemID);\r\n\t\tif (applicationDevice != null) {\r\n\t\t\tapplicationDevice.setResolved(false);\r\n\t\t\tapplicationDevice.setAvailable(false);\r\n\t\t}\r\n\t}", "public void unlinkUD()\n {\n this.U.D = this.D;\n this.D.U = this.U;\n }", "public void remove() {\r\n setRemovable(true);\r\n }", "public void removeDevice(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DEVICE$12, i);\n }\n }", "public void unsetRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(ROADWAYREF$16);\r\n }\r\n }", "public void remove() {\r\n\tif (kingdom != null && currentEffect != null)\r\n\t currentEffect.removeFrom(kingdom);\r\n\tcurrentEffect = null;\r\n }", "private void removeCrossReference ()\n\t{\n\t\tif (crossReference != null)\n\t\t{\n\t\t\tcrossReferences.remove (crossReference);\n\t\t}\n\t}", "void removeDevice(int networkAddress);", "public void unsetMedication()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(MEDICATION$10, 0);\n }\n }", "@Override\n public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) {\n removePreference(cachedDevice);\n }", "public int removeCustomDevice(String id);", "public final void removeRef() {\n // Deletion in Java is up to the garbage collector.\n refCount.decrementAndGet();\n }", "@Override\n\tpublic void del() {\n\t\ttarget.del();\n\t}", "public synchronized void deleteMonitoringDevice(int uniqueID)\n\t{\n\t\tsuper.configuationObjects.remove(uniqueID);\n\t}", "protected void removeReference()\n {\n }", "public void removeAgent() {agent = null;}", "@Override\n public void remove(SpectatorComponent spectatorComponent) {\n }", "public void removeProbe(RadioProbe p) {\n probes.remove(p);\n }", "public void remove(Station station)\n {\n world.removeActor(station.getId());\n\n for (int i = 0; i < stations.length; ++i)\n {\n if (station == stations[i])\n {\n stations[i] = null;\n break;\n }\n }\n }", "@Override\n public Car removeCar() {\n Car car = null;\n if (inDock) {\n car = transporter.removeCar(true, this);\n }\n return car;\n }", "protected void removeAppointment(Appointment a) {\n appointments.remove(a);\n }", "public synchronized void removeTheWarrior(){\n charactersOccupiedTheLocation[0]=null;\n notifyAll();\n }", "@Override\n\tpublic void removeInUse() {\n\t\theldObj.removeInUse();\n\t}", "public void removeVehicle() {\n\t\tmVehicles.removeFirst();\n\t}", "public void unregister(Attribute attribute) {\n usedByObjects.remove(attribute);\n }", "public synchronized void delete() {\n if (this.agpCptr != 0) {\n if (this.isAgpCmemOwn) {\n this.isAgpCmemOwn = false;\n CoreJni.deleteCoreRenderNodeDescArrayView(this.agpCptr);\n }\n this.agpCptr = 0;\n }\n }", "public void removePresentCard() {\n storageCards.remove();\n }", "void unsetRef();", "public void destroy(App p){\n if(!p.getToRemove().contains(this)){\n p.addObjectToRemove(this);\n }\n }", "public void remove(Card c) {\n\t\t\t// TODO. \n\t\t\t// No loops allowed!\n\t\t\t// Make sure to test invariant!\n\t\t\tassert wellFormed() : \"invariant false on entry to remove()\";\n\n\t\t\tif(c.group != this) throw new IllegalArgumentException(\"Card is not part of group\");\n\n\t\t\tif(c == this.first) {\n\t\t\t\tif(this.first.next != null) {\n\t\t\t\t\tthis.first = this.first.next;\n\t\t\t\t\tthis.first.prev = null;\n\t\t\t\t}else {\n\t\t\t\t\tthis.first = null;\n\t\t\t\t\tthis.last = null;\n\t\t\t\t}\n\n\t\t\t}else if(c == this.last) {\n\t\t\t\tthis.last = this.last.prev;\n\t\t\t\tthis.last.next = null;\n\t\t\t}else {\n\n\t\t\t\tc.prev.next = c.next;\n\t\t\t\tc.next.prev = c.prev;\n\n\t\t\t}\n\n\t\t\tc.group = null;\n\t\t\tc.next = null;\n\t\t\tc.prev = null;\n\n\t\t\t--this.size;\n\n\t\t\tassert wellFormed() : \"invariant false on return to remove()\";\n\n\t\t}", "public void removePaper(ConferencePaper pape){\r\n\t\tpapers.remove(pape);\r\n\t}", "public void eat() {\r\n\t\tthis.app.getBones().remove(this);\r\n\t}", "public boolean removeDevice(int device_id)\n\t{\n\t\treturn false;\n\t}", "public void unsetPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(PATENT$16, 0);\r\n }\r\n }", "public void removeAppointment(Appointment a)\n {\n this.agenda.remove(a);\n }", "void removePerformAt(Facility oldPerformAt);", "public void removeFromConference(Call call);", "public com.google.protobuf.Empty deleteDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request);", "private static void removeDeviceFile(ITestDevice device) throws DeviceNotAvailableException {\n device.deleteFile(BusinessLogic.DEVICE_FILE);\n }", "public void delete()\n {\n if (this.data != null)\n {\n this.data.free();\n this.data = null;\n }\n \n this.width = 0;\n this.height = 0;\n \n this.mipmaps = 1;\n }", "public void unsetContact()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(CONTACT$6, 0);\n }\n }", "public void remove() {\n removed = true;\n if (room == null)\n return;\n room.removeEntity(this);\n }", "public void freeLights(){\n\t\t//android.util.Log.d(TAG,\"freeLights()\");\n\t\tfinal int size = this.lights.size();\n\t\tfor(int index=0; index < size; index++){\n\t\t\tthis.lights.delete(this.lights.keyAt(index));\n\t\t}\n\t}", "public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}", "void removeFlight(Flight flight);", "public void delete() {\r\n\t\t\tif (!isDeleted && handles.remove(this)) {\r\n\t\t\t\telementsUsed -= count;\r\n\t\t\t\tisDeleted = true;\r\n\t\t\t\tif (elementsUsed < numElements / 4) {\r\n\t\t\t\t\tcompact();\r\n\t\t\t\t\tnumElements = Math.max(10, elementsUsed * 2);\r\n\t\t\t\t}\r\n\t\t\t\tshapePeer.vboHandle = null;\r\n\t\t\t}\r\n\t\t}", "public synchronized void delete() {\n if (this.agpCptr != 0) {\n if (this.isAgpCmemOwn) {\n this.isAgpCmemOwn = false;\n CoreJni.deleteCoreResourceArray(this.agpCptr);\n }\n this.agpCptr = 0;\n }\n }", "public void freeCameras(){\n\t\t//android.util.Log.d(TAG,\"freeCameras()\");\n\t\tfinal int size = this.cameras.size();\n\t\tfor(int index=0; index < size; index++){\n\t\t\tthis.cameras.delete(this.cameras.keyAt(index));\n\t\t}\n\t}", "public void remove(Equipment equipment) {\n equipments.remove(equipment);\n }", "public void removeFromPlanet() {\n this.currentPlanet = null;\n }", "public void remove()\n {\n this.prev.next = this.next;\n this.next.prev = this.prev;\n this.next = null;\n this.prev = null;\n }", "public void deleteDevice(SmartDevice smartDevice) {\n setIsLoading(true);\n int id = smartDevice.getId();\n\n getCompositeDisposable().add(getDataManager()\n .deleteSmartDevice(\n smartDevice\n )\n .subscribeOn(getSchedulerProvider().io())\n .subscribe(mySmartDevices -> {\n setIsLoading(false);\n\n deleteHueBridge(id);\n deleteHueLightbulbWhite(id);\n deleteHueLightbulbRGB(id);\n deleteNestHub(id);\n deleteNestThermostat(id);\n\n deleteTriggers(id);\n\n fetchMySmartDevices();\n }, throwable -> {\n setIsLoading(false);\n }));\n }", "public void remove(String device_id, String path) {\n System.out.println(\"adb -s \" + device_id + \" shell rm -r \" + path);\n\n Process proc = null;\n try {\n proc = new ProcessBuilder(this.adb_path, \"-s\", device_id, \"shell\", \"rm\", \"-r\", path).start();\n proc.waitFor();\n } catch (InterruptedException ire) {\n ire.printStackTrace();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n\n String result = this.collectResultFromProcess(proc);\n System.out.println(result);\n }", "public void clear() {\n mLeDevices.clear();\n }", "public void remove(Match match) {\n\t\tmatches.remove(match);\n\t}", "public void unsetFrame()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(FRAME$24);\n }\n }", "public void removePatient(String name){\r\n current = front;\r\n afterCurrent = front.getNext();\r\n \r\n if (current.getPatient().getName().trim().equalsIgnoreCase(name)){\r\n front = afterCurrent;\r\n current = null;\r\n counter--;\r\n }\r\n else {\r\n while (!afterCurrent.getPatient().getName().trim().equalsIgnoreCase(name)){\r\n afterCurrent = afterCurrent.getNext();\r\n current = current.getNext();\r\n }\r\n if (afterCurrent.getNext() == null){\r\n current.setNext(null);\r\n back = current;\r\n afterCurrent = null;\r\n counter--;\r\n }\r\n else{\r\n current.setNext(afterCurrent.getNext());\r\n afterCurrent = null;\r\n counter--;\r\n }\r\n }\r\n }", "void unsetSurfaceRefs();", "public void removeWatch(int data_addr, Simulator.Watch p) {\n if (segment_watches == null)\n return;\n\n // remove the probe from the multicast probe present at the location (if there is one)\n MulticastWatch w = segment_watches[data_addr];\n if (w == null) return;\n w.remove(p);\n }", "public void removeDefense(){\n\t\tcurrentConstruct = null;\n\t\thasDefenseObject = false;\n\t}", "public void removeClockFromStock(Clock removedClock);", "public void cleanup() {\n\t\tref.removeEventListener(listener);\n\t\tmodels.clear();\n\t\tmodelNames.clear();\n\t\tmodelNamesMapping.clear();\n\t}", "public void clear() throws DeviceException;", "public void destroy() {\n this.game.deleteObject(this);\n }", "public void destroy() {\n World.getInstance().getTracked().remove(this); // unregister self from World\n }", "void removeHadithReferenceNo(Object oldHadithReferenceNo);", "public void deletePerformer(Performer performer){\n\t\tperformers.remove(performer);\n\t}", "public void destruction()\n\t{\n\t\tremove();\n\t}", "protected void removeSelf() {\n if (!removed && parentNode != null && componentNode != null) {\n // remove this node from parent node\n parentNode.removeChild(componentNode);\n // Mark as removed\n removed = true;\n }\n }", "public void remove() {\n\t\tif(this._prev != null)\n\t\t\tthis._prev._next = this._next;\n\t\tif(this._next != null)\n\t\t\tthis._next._prev = this._prev;\n\n\t\tthis._next = null;\n\t\tthis._prev = null;\n\t}", "public void remove() {\n int size = itinerary.size();\n if (size != 1) {\n \n // Removes last Flight in this Itinerary.\n Flight removedFlight = this.itinerary.remove(size - 1);\n \n // Gets the new last Flight in this Itinerary.\n Flight flight = this.itinerary.get(size - 2);\n \n // Updates all the relevant fields in this Itinerary.\n this.price -= removedFlight.getCost();\n this.arrivalDateTime = flight.getArrivalDateTime();\n this.destination = flight.getDestination();\n this.travelTime = arrivalDateTime.timeDiff(departDateTime);\n this.places.remove(size);\n }\n }", "public void doRemove() throws VisADException, RemoteException {\n rangeRings = null;\n super.doRemove();\n }", "public void removeTile(){\n\t\toccupied = false;\n\t\tcurrentTile = null;\n\t}", "public void removeSelf(){\n\t\tif(prev != null){\n\t\t\tprev.next = next;\n\t\t\tnext.prev = prev;\n\t\t\tprev = null;\n\t\t\tnext = null;\n\t\t}\n\t}", "public void cleanRemove(Element element){\n\t\tfor(Element el : element.getElements()){\n\t\t\tnifty.removeElement(nifty.getScreen(\"hud\"),el);\n\t\t}\n\t\tnifty.removeElement(nifty.getScreen(\"hud\"), element);\n\t\tnifty.executeEndOfFrameElementActions();\n\t}", "public void enemyoff(){\n getWorld().removeObject(this);\n }", "@DELETE\n\t@Path(\"/{nameRessourceGrp}/devices/{nameDevice}\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Response removeDeviceFromResourceGrp(@PathParam(\"nameRessourceGrp\") String nameRessourceGrp,\n\t\t\t@PathParam(\"nameDevice\") String nameDevice) {\n\n\t\ttry {\n\t\t\tResourceGroup resourceGroup = resourceGrpLocal.retrieve(resourceGroupFilter.byName(nameRessourceGrp));\n\t\t\tList<Device> deviceList = resourceGroup.getDevices();\n\t\t\tList<Long> deviceLongList = new ArrayList<Long>();\n\t\t\tfor (Device device : deviceList) {\n\t\t\t\tDevice deviceRetrieved = deviceLocal.retrieveDevice(nameDevice);\n\t\t\t\tif (!(device.getName().equals(deviceRetrieved.getName()))) {\n\t\t\t\t\tdeviceLongList.add(device.getId());\n\t\t\t\t}\n\t\t\t}\n\t\t\tresourceGrpLocal.setDevices(resourceGroup.getId(), deviceLongList);\n\t\t} catch (ValidationException e) {\n\t\t\treturn Response.status(Response.Status.NOT_FOUND).entity(e.getMessage()).build();\n\t\t}\n\n\t\treturn Response.noContent().build();\n\n\t}", "public void removeComputer(Hardware computer) {\n if (!seats[computer.getPosition()].isAvailable()) {\n seats[computer.getPosition()].getCurrDev().setComputer(null);\n }\n computer.setTable(null, -1);\n computers.remove(computer);\n System.out.println(\"remove pos \" + computer.getPosition());\n Player.getInstance().getTableComputers().remove(computer.getSerial());\n setChanged();\n notifyObservers(computer.getPosition());\n// for(int i=0; i<computers.size(); i++) {\n// if(i < 2) {\n// computers.get(i).setFaceUp(true);\n// }\n// computers.get(i)\n// .setCoordinates(WorkingTableView.COMPUTER_POINTS[i].x, \n// WorkingTableView.COMPUTER_POINTS[i].y);\n// }\n\n// removeHardwareFromRoom(computer);\n }", "private Patient removePatientIdentifer(Patient patient){\n\t\ttry{\n\t\t\tSet<PatientIdentifier> s=patient.getIdentifiers();\n\t\t\tfor(PatientIdentifier pi : s)\n\t\t\t\tpatient.removeIdentifier(pi);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn patient;\n\t}", "void removeProduces(Computer oldProduces);", "@Override\n\tpublic void undoCommand() {\n\t\tselectionModel.removeAllFromSelectionList();\n\t\tmodel.removeElement(device);\n\t}", "@Override\n public void removedService(final ServiceReference<ComponentFactory> reference, final ComponentFactory service)\n {\n final String productType = (String)reference.getProperty(ComponentConstants.COMPONENT_NAME);\n \n m_Logging.info(\"Unregistering factory for: %s\", productType);\n \n final FactoryInternal factory = m_Factories.get(productType);\n \n //make unavailable via framework\n tryMakeFactoryUnavailable(factory);\n \n // allow proxy services to do clean up first\n tryProxyOnRemoveFactory(factory);\n \n //remove all associated factory objects\n tryRemoveAllFactoryObjects(factory);\n //unreg the rest of the services and other cleanup\n tryCleanupFactory(factory);\n \n //make unavailable to management services\n tryRemoveFactory(productType);\n \n //dispose of the factory instance\n tryDisposeFactory(productType);\n \n //remove reference to service\n tryUngetService(reference);\n }", "public void removeItem(){\n\t\tthis.item = null;\n\t}", "public void remove(Car c){\n\t\tthis.cars.remove(c);\n\t}", "public static void deleteInstance()\r\n\t{\r\n\t\tlightManager = null;\r\n\t}", "public void removeWakeLock() {\r\n\t\twakelock.release();\r\n\t}", "public final void destroy(){\n stop();\n LIBRARY.CLEyeDestroyCamera(camera_);\n camera_ = null;\n PS3_LIST_.remove(this);\n }", "public void unsetIntersectingRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(INTERSECTINGROADWAYREF$20);\r\n }\r\n }", "@Override\n public void removeGameApp(Handle<GameAppContext> that) \n {\n manager.removeGameApp(that);\n }", "public void unsubscribe(Player spectator) {\r\n\t\tspectators.remove(spectator);\r\n\t}", "public void setRemover() {\n Disposable d = Disposable.from(() -> parent.psm.remove(this));\n UNSAFE.putOrderedObject(this, REMOVE, d);\n }" ]
[ "0.6937829", "0.62624353", "0.61478806", "0.6116814", "0.59939396", "0.5957471", "0.59342587", "0.5737696", "0.5702972", "0.5663892", "0.5590101", "0.55755836", "0.55653185", "0.5533936", "0.549005", "0.5483307", "0.54710126", "0.5449543", "0.5448253", "0.5438228", "0.5434378", "0.54273766", "0.53829277", "0.53613555", "0.53586864", "0.53568137", "0.53539175", "0.5346538", "0.53331125", "0.5332128", "0.5315651", "0.53080714", "0.5295528", "0.52793515", "0.52765536", "0.52652776", "0.5263515", "0.5262974", "0.52617514", "0.5254316", "0.5252605", "0.524649", "0.5231575", "0.5221988", "0.5219562", "0.52134204", "0.5210317", "0.5200933", "0.52008176", "0.51915705", "0.51764065", "0.51760066", "0.51730204", "0.51634115", "0.516011", "0.51515406", "0.5144693", "0.5136778", "0.51360184", "0.51236975", "0.5121637", "0.51169664", "0.5111276", "0.51106215", "0.51015455", "0.5100635", "0.51006305", "0.5096364", "0.5074309", "0.5074261", "0.50675935", "0.50469464", "0.5046092", "0.5045789", "0.50448465", "0.5035636", "0.5027301", "0.5023172", "0.5019146", "0.5017167", "0.5007766", "0.5003238", "0.5001897", "0.49969947", "0.49915302", "0.49893445", "0.49888206", "0.4985676", "0.4980073", "0.49794176", "0.49755493", "0.4973598", "0.49722254", "0.4970774", "0.49704584", "0.49668798", "0.4955766", "0.49553773", "0.49548554", "0.49535197" ]
0.80788535
0
Adds the given device group to this theatre and then adds a reference back to this theatre in said device group.
public void addDeviceGroup(DeviceGroup deviceGroup) { this.deviceGroups.add(deviceGroup); deviceGroup.setTheatre(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addDevice(Device device) {\n this.devices.add(device);\n device.addTheatre(this);\n }", "public void addGroup(Group group) \n\t\t{\n\t\t\tif(m_groups == null)\n\t\t\t{\n\t\t\t\tm_groups = new Vector();\n\t\t\t}\n\t\t\tif(! hasGroup(group.getReference()))\n\t\t\t{\n\t\t\t\tm_groups.add(group);\n\t\t\t}\n\t\t}", "public void addGroup(SymbolGroup group) {\n this.groups.add(group);\n group.setProject(this);\n }", "public void addGroup(TvBrowserDataServiceChannelGroup group) {\r\n mAvailableChannelGroupsSet.add(group);\r\n }", "public org.hl7.fhir.ResourceReference addNewDevice()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(DEVICE$12);\n return target;\n }\n }", "public void addGroup(Group group) {\r\n System.out.println(\"conectado con model ---> metodo addGroup\");\r\n //TODO\r\n }", "public void registerGroup(DataGroupInfo group)\n {\n group.groupStream().forEach(g ->\n {\n g.activationProperty().removeListener(myDataGroupActivationListener);\n g.activationProperty().addListener(myDataGroupActivationListener);\n });\n sendActivationsToNecessaryGroups(group);\n }", "void addDevice(String device) {\n availableDevices.add(device);\n resetSelectedDevice();\n }", "protected void addGroup(final Group group) {\r\n assert null != group;\r\n assert null != group.getId();\r\n assert null != group.getCourseId();\r\n \r\n this.groupById.put(group.getId(), group);\r\n List<Group> groupsInCourse = this.groupByCourseId.get(group.getCourseId());\r\n \r\n if (null == groupsInCourse) {\r\n groupsInCourse = new ArrayList<Group>();\r\n this.groupByCourseId.put(group.getCourseId(), groupsInCourse);\r\n }\r\n \r\n groupsInCourse.add(group);\r\n }", "public void newGroup() {\n addGroup(null, true);\n }", "public RecordObject addGroup(String token, Object record) throws RestResponseException;", "public void addGroup(Group_Entity group) {\n\t\tgroupRepo.save(group);\n\t\t\n\t}", "public boolean setLightForGroupingToGroup(LinkedList<Light> group) {\n Log.i(tag, \"setLightForGroupingToGroup\");\n if (group.contains(this.lightForGrouping)) {\n Log.i(tag, \"dropped into its own group, dont do anything\");\n } else {\n if ((this.lightForGrouping instanceof DreamScreen) && ((Light) group.get(0)).getGroupNumber() != 0) {\n Iterator it = group.iterator();\n while (true) {\n if (it.hasNext()) {\n if (((Light) it.next()) instanceof DreamScreen) {\n Toast.makeText(this, \"Warning, multiple DreamScreens in the same group may cause unexpected behavior.\", 1).show();\n break;\n }\n } else {\n break;\n }\n }\n }\n Iterator it2 = this.groups.iterator();\n while (it2.hasNext()) {\n ((LinkedList) it2.next()).remove(this.lightForGrouping);\n }\n this.lightForGrouping.setGroupName(((Light) group.get(0)).getGroupName(), false);\n this.lightForGrouping.setGroupNumber(((Light) group.get(0)).getGroupNumber(), false);\n if (this.lightForGrouping instanceof DreamScreen) {\n group.addFirst(this.lightForGrouping);\n } else {\n group.add(this.lightForGrouping);\n }\n if (this.currentLight == this.lightForGrouping && this.broadcastingToGroup) {\n setToolbarTitle();\n }\n for (int i = 0; i < this.groups.size(); i++) {\n if (i != 0 && ((LinkedList) this.groups.get(i)).isEmpty()) {\n this.groups.remove(i);\n Log.i(tag, \"removed group\");\n }\n }\n redrawDrawerLinearLayout();\n highlightDrawerSelection();\n if ((this.currentLight instanceof SideKick) || (this.currentLight instanceof Connect)) {\n Fragment currentFragment = getSupportFragmentManager().findFragmentById(R.id.frameLayout);\n if (currentFragment instanceof DreamScreenFragment) {\n Log.i(tag, \"redrawing currentLight sidekick dreamscreenfragment\");\n ((DreamScreenFragment) currentFragment).redrawFragment();\n }\n }\n }\n return true;\n }", "public void toolGroupAdded(String name, ToolGroup group) {\r\n try {\r\n a.toolGroupAdded(name, group);\r\n } catch(Exception e) {\r\n I18nManager intl_mgr = I18nManager.getManager();\r\n String msg = intl_mgr.getString(GROUP_ADD_ERR_PROP) + a;\r\n\r\n errorReporter.errorReport(msg, e);\r\n }\r\n\r\n try {\r\n b.toolGroupAdded(name, group);\r\n } catch(Exception e) {\r\n I18nManager intl_mgr = I18nManager.getManager();\r\n String msg = intl_mgr.getString(GROUP_ADD_ERR_PROP) + b;\r\n\r\n errorReporter.errorReport(msg, e);\r\n }\r\n }", "public void addOrUpdate(Group group) throws SearchIndexException {\n logger.debug(\"Adding group {} to search index\", group.getIdentifier());\n\n // Add the resource to the index\n SearchMetadataCollection inputDocument = GroupIndexUtils.toSearchMetadata(group);\n List<SearchMetadata<?>> resourceMetadata = inputDocument.getMetadata();\n ElasticsearchDocument doc = new ElasticsearchDocument(inputDocument.getIdentifier(),\n inputDocument.getDocumentType(), resourceMetadata);\n try {\n update(doc);\n } catch (Throwable t) {\n throw new SearchIndexException(\"Cannot write resource \" + group + \" to index\", t);\n }\n }", "void add(R group);", "@POST\n\t@Path(\"/{nameRessourceGrp}/devices/{nameDevice}\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Response addDeviceFromResourceGrp(@PathParam(\"nameRessourceGrp\") String nameRessourceGrp,\n\t\t\t@PathParam(\"nameDevice\") String nameDevice) {\n\n\t\ttry {\n\t\t\tResourceGroup resourceGroup = resourceGrpLocal.retrieve(resourceGroupFilter.byName(nameRessourceGrp));\n\t\t\tSet<Long> resourceGroupIds = resourceGroup.getDevices().stream().map(u -> u.getId())\n\t\t\t\t\t.collect(Collectors.toSet());\n\t\t\tDevice device = deviceLocal.retrieveDevice(nameDevice);\n\t\t\tif (resourceGroupIds.add(device.getId())) {\n\t\t\t\tList<Long> listResourceGroups = new ArrayList<Long>(resourceGroupIds);\n\t\t\t\tresourceGrpLocal.setDevices(resourceGroup.getId(), listResourceGroups);\n\t\t\t}\n\t\t} catch (ValidationException e) {\n\t\t\treturn Response.status(Response.Status.NOT_FOUND).entity(e.getMessage()).build();\n\t\t}\n\t\treturn Response.ok().build();\n\t}", "public void addGroup(String groupName) throws UnsupportedOperationException;", "public ShapeGroupShape(drawit.shapegroups1.ShapeGroup group) {\n this.referencedShapeGroup = group;\n }", "public TravelGroup insertTravelGroup(TravelGroup travelGroup);", "GroupQueryBuilder addAssociatedGroup(Group group, boolean parent);", "private void appendDevice(final IDevice device) {\n if (-1 == getDeviceIndex(device)) {\n TestDevice td = new TestDevice(device);\n mDevices.add(td);\n }\n }", "public void groupArrived(Group group) {\n waiting.add(group);\n seatAllPossible();\n }", "public void addFurnitureToGroup(List<HomePieceOfFurniture> furniture, HomeFurnitureGroup group) {\n if (group == null) {\n throw new IllegalArgumentException(\"Group shouldn't be null\");\n }\n addFurniture(furniture, group);\n }", "private void addNewGroupToFireBase(Bundle guideData) {\n }", "void addDeviceLocation(DeviceLocation deviceLocation) throws DeviceDetailsMgtException;", "public void addDevice(BluetoothDevice device) {\n if(!mLeDevices.contains(device)) {\n mLeDevices.add(device);\n }\n }", "public void addProductGroup(ProductGroup toAdd) {\n\t\tthis.productGroups.add(toAdd);\n\t}", "public void addSettingsGroup(SettingsGroup group) {\n PROPS.add(group);\n fireSettingsHandlerEvent(EventType.SETTINGS_GROUP_ADDED, group);\n }", "@Override\r\n\tpublic void addProductGroup() {\r\n\t\tString newProductGroupName = getView().getProductGroupName();\r\n\t\tString supplyValue = getView().getSupplyValue();\r\n\t\tSizeUnits supplyUnit = getView().getSupplyUnit();\r\n\t\t\r\n\t\tProductGroup pg = new ProductGroup();\r\n\t\tpg.setName(newProductGroupName);\r\n\t\tUnitSize threeMounthSup = null;\r\n\t\ttry {\r\n\t\t\tthreeMounthSup = new UnitSize(supplyValue, supplyUnit.toString() );\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"fail in addProductGroupController\");\r\n\t\t}\r\n\t\t\r\n\t\tpg.setThreeMonthSup(threeMounthSup);\r\n\t\t\r\n\t\tpg.setContainer(_parent);\r\n\t\t\r\n\t\t_productGroupFacade.addProductGroup(pg);\r\n\t\t\r\n\t\tPersistor persistor = Configuration.getInstance().getPersistor();\r\n\t\tpersistor.insertProductContainer(pg);\r\n\t}", "public void addPaymentGroup(String pPaymentGroupName, PaymentGroup pPaymentGroup);", "public void allocateGroupId(){\n\t\trecords.add(new pair(this.groupname,currentId));\n\t\tthis.groupid = currentId;\n\t\tcurrentId++;\n\t\tConnection c = null;\n\t\tStatement stmt = null;\n\t\ttry{\n\t\t\tSystem.out.println(\"group setup\");\n\t\t\tSystem.out.println(this.groupid);\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tc = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/ifoundclassmate\");\n\t\t\tc.setAutoCommit(false);\n\t\t\tstmt = c.createStatement();\n\t\t\tString sql = \"INSERT INTO GROUPS (GROUPID,GROUPNAME,DESCRIPTION) \"+\n\t\t\t\t\t\"VALUES (\" + this.groupid + \", \" + \"'\" +this.groupname + \"'\"\n\t\t\t\t\t+\" , \" + \"'\" + this.description + \"' \" + \");\" ;\n\t\t\tstmt.executeUpdate(sql);\n\t\t\t\n\t\t\tstmt.close();\n\t\t\tc.commit();\n\t\t\tc.close();\n\t\t} catch (Exception e ){\n\t\t\tSystem.out.println(e.getClass().getName() + e.getMessage() );\n\t\t\treturn;\n\t\t}\n\t\treturn;\n\t}", "private VertexObject addGroupVertex(IntermediateGroup group) {\n String groupLabel = group.getID().toString();\n VertexObject groupV = groupVertices.get(group.getID());\n if (groupV == null) {\n groupV = new VertexObject(groupLabel, group);\n graph.addVertex(groupV);\n\n groupVertices.put(group.getID(), groupV);\n }\n\n return groupV;\n }", "@Override\r\n public void remoteDeviceAdded(Registry registry, RemoteDevice device) {\r\n deviceAdded(device);\r\n }", "public void add(BlueteethDevice device) {\n boolean isAlreadyInList = false;\n for (BlueteethDevice d : mDevices) {\n if (device.getMacAddress().equals(d.getMacAddress())) {\n isAlreadyInList = true;\n break;\n }\n }\n\n if (!isAlreadyInList) {\n mDevices.add(device);\n notifyDataSetChanged();\n }\n }", "private void addToolGroup(ToolGroup parentGroup) {\n if(showToolGroupTools) {\n SimpleTool tool = parentGroup.getTool();\n addToolButton(tool, parentGroup.getToolID());\n }\n\n if (parentGroup == null)\n return;\n \n List<ToolGroupChild> children = parentGroup.getChildren();\n\n for(int i = 0; i < children.size(); i++) {\n ToolGroupChild child = children.get(i);\n\n if(child instanceof ToolSwitch) {\n SimpleTool tool = ((ToolSwitch)child).getTool();\n addToolButton(tool, child.getToolID());\n } else if(child instanceof ToolGroup) {\n ToolGroup group = (ToolGroup)child;\n addToolGroup(group);\n group.addToolGroupListener(this);\n } else if(child instanceof SimpleTool) {\n addToolButton((SimpleTool)child, child.getToolID());\n }\n }\n }", "public void groupAdded(long pid, IGroup group) throws RemoteException {\n\t\tlogger.create().block(\"groupAdded\").info().level(1).msg(\n\t\t\t\t\"Adding addGroup request to update queue for: pid: \" + pid + \", group: \" + group).send();\n\t\tupdateList.add(new GroupAddedNotification(pid, group));\n\t}", "public void addGroup(GroupUser group) {\n try {\n PreparedStatement s = sql.prepareStatement(\"INSERT INTO Groups (groupName, members) VALUES (?,?);\");\n s.setString(1, group.getId());\n\n s.setString(2, group.getMembers().toString());\n s.execute();\n\n s.close();\n } catch (SQLException e) {\n sqlException(e);\n }\n }", "public void addNewGroupToUser(String userId, String groupRef) {\n final List<String> currentEvents = new ArrayList<String>();\n\n final DocumentReference docRef = db.collection(\"users\").document(userId);\n docRef.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 Log.i(\"users current groups\", document.get(\"groups\").toString());\n String test = document.get(\"groups\").toString();\n String test2 = test.replaceAll(\"[^\\\\w\\\\s]\", \"\");\n String test3 = test2.trim();\n String[] groups = test3.split(\"\\\\s+\");\n\n for(String s: groups) {\n currentEvents.add(s);\n }\n }\n }\n }\n });\n\n\n //add group\n DocumentReference userRef = db.collection(\"users\").document(userId);\n\n currentEvents.add(groupRef);\n\n userRef\n .update(\"groups\", currentEvents)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.i(\"success\", \"DocumentSnapshot successfully updated!\");\n Toast.makeText(getApplicationContext(),\"Group Successfully Created!\",Toast.LENGTH_SHORT).show();\n startActivity(new Intent(CreateGroup.this, FindFriends.class));\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.i(\"fail\", \"Error updating document\", e);\n }\n });\n\n\n }", "public abstract void addDevice(Context context, NADevice device);", "private void addGroupActivity() {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(this);\n LayoutInflater layoutInflater = LayoutInflater.from(this);\n\n View view = layoutInflater.inflate(R.layout.activity_input_group_detail, null);\n alertDialog.setView(view);\n\n AlertDialog dialog = alertDialog.create();\n dialog.setCancelable(false);\n\n EditText groupName = view.findViewById(R.id.addGroupName);\n Button groupSaveButton = view.findViewById(R.id.groupSaveButton);\n groupSaveButton.setOnClickListener((v) -> {\n // Everything is converted to string\n String groupNameStr = groupName.getText().toString().trim();\n // The id generated here is an ID for the group we will create.\n String id = databaseReferenceGroup.push().getKey();\n Map<String, String> groupMembers = new HashMap<>();\n Map<String, String> groupAdmins = new HashMap<>();\n\n\n // Validate everything is not empty\n if (groupNameStr.isEmpty()) {\n groupName.setError(\"Group name cannot be empty. \");\n } else {\n Group group = new Group(groupNameStr, id, groupMembers, groupAdmins);\n group.addGroupMember(currUserID);\n group.addGroupAdmin(currUserID);\n // src: https://stackoverflow.com/questions/39815117/add-an-item-to-a-list-in-firebase-database\n // I have started re-iterating to myself: whenever you find yourself doing\n // array.contains(\"xyz\"), you should probably be using a set instead of an array.\n // The above mapping with \"key\": true is an implementation of a set on Firebase.\n\n databaseReferenceGroup.child(id).setValue(group).addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n Toast.makeText(CreateGroup.this, \"The group has been added. \", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(CreateGroup.this, \"The group has not been added. \", Toast.LENGTH_LONG).show();\n }\n dialog.dismiss();\n });\n }\n });\n\n Button cancelGroupButton = view.findViewById(R.id.groupCancelButton);\n cancelGroupButton.setOnClickListener((v -> dialog.dismiss()));\n\n dialog.show();\n }", "public void subscribeGroup(String subscribedGroup) {\n this.subscribedGroups.add(subscribedGroup);\n \n }", "void addSubDevice(PhysicalDevice subDevice, String id);", "public void addToGroup(Movable movable){\n things.add(movable);\n }", "public void addReference() {\r\n mReferenced = true;\r\n }", "public void addGroupToAccountMapping(String groupToAccountMapping) {\n this.groupToAccountMappers.add(groupToAccountMapping);\n }", "public synchronized void addMonitoringDevice(MonitoringDevice mDevice) {\n\t\t\n\t\t// Adds the monitoring device monitoring device container\n\t\tsuper.configuationObjects.put(mDevice.getId(), mDevice);\n\n // Update indexes created to references the monitoring device\n\t\tif (mDevice.getMac_addres() != null){\n\t if (!mDevice.getMac_addres().isEmpty())\n\t \tindexByMac.put(mDevice.getMac_addres(), mDevice.getId());\n }\n \n if (mDevice.getIp_address() != null){\n\t if (!mDevice.getIp_address().isEmpty())\n\t \tindexByIpAddress.put(mDevice.getIp_address(), mDevice.getId());\n }\n \n if (mDevice.getSerial() != null){\n\t if (!mDevice.getSerial().isEmpty())\n\t \tindexBySerial.put(mDevice.getSerial(),mDevice.getId());\n }\n\n\t}", "public org.hl7.fhir.ResourceReference addNewMedication()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(MEDICATION$10);\n return target;\n }\n }", "@Override\n public AssociateWirelessDeviceWithMulticastGroupResult associateWirelessDeviceWithMulticastGroup(AssociateWirelessDeviceWithMulticastGroupRequest request) {\n request = beforeClientExecution(request);\n return executeAssociateWirelessDeviceWithMulticastGroup(request);\n }", "public void addGroup(String groupHeader, List<Object> groupElements, boolean allowSingleSelection) throws Exception;", "@Override\n\tpublic void saveOrUpdateDevGroup(DeviceGroupBase devGroup) {\n\t\tif (devGroup != null) {\n\t\t\tif (CoreSvrUtil.IsNullOrEmpty(devGroup.getId())) {\n\t\t\t\tgetMongoDao().createObject(Constant.TABLE_DevGroup, devGroup);\n\t\t\t} else {\n\t\t\t\tgetMongoDao().updateObject(Constant.TABLE_DevGroup,\n\t\t\t\t\t\tnew ObjectId(devGroup.getId()), devGroup);\n\t\t\t}\n\t\t}\n\t}", "private void addDevice(DeviceDescription description) {\t\t\r\n\t\tif (description == null) return;\r\n\t\tSystemID systemID = description.getSystemID();\r\n\t\tDeviceFigure applicationDevice = (DeviceFigure)applicationElements.get(systemID);\r\n\t\tif (applicationDevice == null) {\r\n\t\t\tapplicationDevice = new DeviceFigure(description);\r\n\t\t\tapplicationElements.put(systemID, applicationDevice);\r\n\t\t\tapplicationGraph.addEntry(applicationDevice);\r\n\t\t} else {\r\n\t\t\tapplicationDevice.setAvailable(true);\r\n\t\t}\r\n\t\tDeviceFigure assemblerDevice = (DeviceFigure)assemblerElements.get(systemID);\r\n\t\tif (assemblerDevice == null) {\r\n\t\t\tassemblerDevice = new DeviceFigure(description);\r\n\t\t\tassemblerElements.put(systemID, assemblerDevice);\r\n\t\t\tassemblerGraph.addEntry(assemblerDevice);\r\n\t\t}\r\n\t\tzoom();\r\n\t}", "void addDeviceComplete(boolean hasOtherDevices);", "public org.dhis2.ns.schema.dxf2.IndicatorGroupDocument.IndicatorGroup addNewIndicatorGroup()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.dhis2.ns.schema.dxf2.IndicatorGroupDocument.IndicatorGroup target = null;\n target = (org.dhis2.ns.schema.dxf2.IndicatorGroupDocument.IndicatorGroup)get_store().add_element_user(INDICATORGROUP$0);\n return target;\n }\n }", "public void addDevice(ProductModel ndm) {\n\t\tSystem.out.println(\"\\nNetworkDevServ-addDevice()\");\r\n\t\tdeviceData.addDevice(ndm); \r\n\t}", "private void addDevice(final WeaveDevice device) {\n new AsyncTask<Void, Void, ModelManifest>() {\n\n @Override\n protected ModelManifest doInBackground(Void... params) {\n String manifestId = device.getModelManifestId();\n ModelManifest manifest = manifestCache.get(manifestId);\n if (manifest == null) {\n manifest = Weave.DEVICE_API.getModelManifest(mApiClient, manifestId)\n .getSuccess();\n if (manifest != null) {\n manifestCache.put(manifestId, manifest);\n }\n }\n return manifest;\n }\n\n @Override\n protected void onPostExecute(ModelManifest manifest) {\n mDeviceListAdapter.add(device, manifest);\n mDeviceListAdapter.notifyDataSetChanged();\n }\n }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }", "public void joinGroup(Group group) {\n try {\n conn = dao.getConnection();\n ps = conn.prepareStatement(\"SELECT * FROM USERS_GROUPS WHERE USER_ID=? AND GROUP_ID=?\");\n ps.setString(1, Session.getInstance(\"\").getUserName());\n ps.setString(2, group.toString());\n ResultSet rs = ps.executeQuery();\n if (rs.next()) return;\n\n ps = conn.prepareStatement(\"INSERT INTO USERS_GROUPS(USER_ID, GROUP_ID) VALUES(?, ?)\");\n ps.setString(1, Session.getInstance(\"\").getUserName());\n ps.setString(2, group.toString());\n ps.execute();\n\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void setGroup(final Group group) {\n this.group = group;\n }", "void insert(LoanApplication icLoanApplication) {\n\t\tgroup.add(icLoanApplication);\n\t\t\n\t}", "void addRecipe(RecipeGroup rg)\r\n\t{\tthis.recipes.add(rg);\t}", "GroupQueryBuilder addAssociatedGroup(String key, boolean parent);", "public void addLookupGroups( String[] groups ) throws RemoteException {\n\t\tlog.config(\"adding lookup groups\");\n\t\tStringBuffer l = new StringBuffer();\n\t\tl.append(\"Add lookup groups: \");\n\t\tfor( int i = 0; i< groups.length; ++i ) {\n\t\t\tif( i > 0 )\n\t\t\t\tl.append(\", \");\n\t\t\tl.append(groups[i] );\n\t\t}\n\t\tlog.log(Level.FINE, l.toString() );\n\t\ttry {\n\t\t\tPersistentData data = io.readState();\n\t\t\tdisco.addGroups( groups );\n\t\t\tVector v = mergeArrays( data.groups, groups );\n\t\t\tdata.groups = new String[v.size()];\n\t\t\tv.copyInto( data.groups );\n\t\t\tio.writeState( data );\n\t\t} catch( ClassNotFoundException ex ) {\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t} catch( IOException ex ) {\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t}\n\t}", "private void addGroupToContext(final Group group,\n\t\t\tfinal RunnerContext pContext,\n\t\t\tfinal Map<String, HashMap<String, Object>> values) {\n\n\t\tHashMap<String, Object> itemCtx = new HashMap<String, Object>();\n\n\t\tif (isRelevant(group, pContext)) {\n\t\t\titemCtx.put(\"relevant\", TRUE);\n\t\t} else {\n\t\t\titemCtx.put(\"relevant\", FALSE);\n\t\t}\n\n\t\tModel model = pContext.getModel();\n\t\tInstance inst = pContext.getInstance();\n\n\t\tString label = this.translate(group.getLabel(), pContext.getLocale());\n\t\t\n\t\tlabel = FillProcessor.processFills(label, inst, model,\n\t\t\t\tpContext.getRenderConfig(), pContext.getLocale());\n\n\t\titemCtx.put(\"label\", label);\n\t\t\n\t\tString hint = this.translate(group.getHint(), pContext.getLocale());\n\n\t\thint = FillProcessor.processFills(hint, inst, model,\n\t\t\t\tpContext.getRenderConfig(), pContext.getLocale());\n\n\t\titemCtx.put(\"hint\", hint);\n\n\t\tvalues.put(group.getId(), itemCtx);\n\t\t\n\t\tif (group instanceof Vocabulary) {\n\n\t\t\titemCtx.put(\"options\", ((Vocabulary) group).getOptions());\n\t\t}\n\t}", "public org.hl7.fhir.ResourceReference insertNewDevice(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().insert_element_user(DEVICE$12, i);\n return target;\n }\n }", "public final void mo102890a(ViewGroup viewGroup) {\n C32569u.m150519b(viewGroup, C6969H.m41409d(\"G7982C71FB124\"));\n this.f80951b = viewGroup;\n int size = mo102893b().size();\n for (int i = 0; i < size; i++) {\n viewGroup.addView(m112825a(i).mo102901a(), i);\n }\n }", "public void addGroup(String groupId)\n\t\t{\n\t\t\tif(m_groups == null)\n\t\t\t{\n\t\t\t\tm_groups = new Vector();\n\t\t\t}\n\t\t\tif(m_container == null)\n\t\t\t{\n\t\t\t\tif(m_id == null)\n\t\t\t\t{\n\t\t\t\t\tm_container = ContentHostingService.getSiteCollection(ToolManager.getCurrentPlacement().getContext());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tm_container = ContentHostingService.getContainingCollectionId(m_id);\n\t\t\t\t}\n\t\t\t\tif(m_container == null || m_container.trim() == \"\")\n\t\t\t\t{\n\t\t\t\t\tm_container = ContentHostingService.getSiteCollection(ToolManager.getCurrentPlacement().getContext());\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tboolean found = false;\n\t\t\tCollection groups = ContentHostingService.getGroupsWithReadAccess(m_container);\n\t\t\tIterator it = groups.iterator();\n\t\t\twhile( it.hasNext() && !found )\n\t\t\t{\n\t\t\t\tGroup group = (Group) it.next();\n\t\t\t\tif(group.getId().equals(groupId))\n\t\t\t\t{\n\t\t\t\t\tif(! hasGroup(group.getReference()))\n\t\t\t\t\t{\n\t\t\t\t\t\tm_groups.add(group);\n\t\t\t\t\t}\n\t\t\t\t\tfound = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "public void createGroup(String group_name){\r\n\t\t/* \r\n\t\t * Create a new entry in group database using the information\r\n\t\t * given by the parameters\r\n\t\t */\r\n\t\tSQLiteDatabase db = this.getWritableDatabase();\r\n \tContentValues values = new ContentValues();\r\n \t\r\n\t\tvalues.put(DBHelper.COLUMN_GROUPNAME, group_name);\r\n\t\t\r\n\t\tdb.insert(DBHelper.GROUP_TABLE_NAME, null, values);\r\n\t\tdb.close();\r\n\t}", "GroupRefType createGroupRefType();", "void addDevice(String userid,String username,String devicename,String deviceaddre,Long addtime,\n IDevicesListener iDevicesListener);", "public TravelGroup updateTravelGroup(TravelGroup travelGroup);", "public void addDrink(Drink drink) {\n drinks.put(drink, false);\n }", "public static AdapterActorBinding m17674d(LayoutInflater layoutInflater, ViewGroup viewGroup, boolean z) {\n View inflate = layoutInflater.inflate(R.layout.adapter_actor, viewGroup, false);\n if (z) {\n viewGroup.addView(inflate);\n }\n return m17673b(inflate);\n }", "public void attachTargetGroup(String asgName, String targetGroupARN) {\n\t\tAttachLoadBalancerTargetGroupsRequest request = new AttachLoadBalancerTargetGroupsRequest()\n\t\t\t\t.withAutoScalingGroupName(asgName).withTargetGroupARNs(\n\t\t\t\t\t\ttargetGroupARN);\n\t\tAttachLoadBalancerTargetGroupsResult response = asClient\n\t\t\t\t.attachLoadBalancerTargetGroups(request);\n\t\tlog.info(response.toString());\n\t}", "public final void addActor(DodlesActor actor) {\n if (actor.getName() == null) {\n throw new GdxRuntimeException(\"Actor must have a name set!\");\n }\n\n all.put(actor.getName(), actor);\n\n if (actor instanceof BaseDodlesViewGroup) {\n for (Object view : ((BaseDodlesViewGroup) actor).getViews()) {\n BaseDodlesGroup bdgView = (BaseDodlesGroup) view;\n all.put(bdgView.getName(), bdgView);\n }\n }\n\n DodleReference ref = references.get(actor.getTrackingID());\n\n if (ref != null) {\n ref.addRef(actor.getName());\n }\n }", "public final void addGlobalAttributeGroupDecl(XSAttributeGroupDecl decl) {\n fGlobalAttrGrpDecls.put(decl.fName, decl);\n }", "public final void rule__UpdateReference__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:6766:1: ( rule__UpdateReference__Group__0__Impl rule__UpdateReference__Group__1 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:6767:2: rule__UpdateReference__Group__0__Impl rule__UpdateReference__Group__1\n {\n pushFollow(FOLLOW_rule__UpdateReference__Group__0__Impl_in_rule__UpdateReference__Group__013273);\n rule__UpdateReference__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__UpdateReference__Group__1_in_rule__UpdateReference__Group__013276);\n rule__UpdateReference__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private void registerDevice(MeasurementDevice inDevice) {\r\n\r\n\t\tfor (String lCurrMeasureId : inDevice.getSupportedMeasureIds()) {\r\n\r\n\t\t\tList<Measure> lDeviceMeasures = measures.get(inDevice.getId());\r\n\t\t\tif (lDeviceMeasures == null) {\r\n\t\t\t\tlDeviceMeasures = new ArrayList<>();\r\n\t\t\t\tmeasures.put(inDevice.getId(), lDeviceMeasures);\r\n\t\t\t} // if\r\n\t\t\tlDeviceMeasures.add(MeasureFactory.createMeasure(inDevice, lCurrMeasureId));\r\n\t\t} // for\r\n\r\n\t\tMeasureCacheAdapter lCacheAdapter = new MeasureCacheAdapterImpl(measures.get(inDevice.getId()));\r\n\t\tmeasureListeners.forEach(l -> lCacheAdapter.addMeasureListener(l));\r\n\t\tinDevice.setMeasureCacheAdapter(lCacheAdapter);\r\n\t}", "public void add(Group toAdd) throws DuplicateGroupException {\n requireNonNull(toAdd);\n if (contains(toAdd)) {\n throw new DuplicateGroupException();\n }\n internalList.add(toAdd);\n\n assert CollectionUtil.elementsAreUnique(internalList);\n }", "public void addGroup(String groupName) throws UnsupportedOperationException {\r\n log.debug(\"No groups can be attached to user [ Anonymous ]\");\r\n }", "private void expandGroupToPatients(Group group, Set<String> groupsInPath)\n throws Exception{\n if (group == null) {\n return;\n }\n groupsInPath.add(group.getId());\n for (Member member : group.getMember()) {\n String refValue = member.getEntity().getReference().getValue();\n if (refValue.startsWith(\"Patient\")) {\n if (uniquenessGuard.add(refValue)) {\n patientMembers.add(member);\n }\n } else if (refValue.startsWith(\"Group\")) {\n Group group2 = findGroupByID(refValue.substring(6));\n // Only expand if NOT previously found\n if (!groupsInPath.contains(group2.getId())) {\n expandGroupToPatients(group2, groupsInPath);\n }\n } else if (logger.isLoggable(Level.FINE)){\n logger.fine(\"Skipping group member '\" + refValue + \"'. \"\n + \"Only literal relative references to patients will be used for export.\");\n }\n }\n }", "public void addAnswer(Group group, Question question, Answer answer, LocalDateTime date) {\n \tGroup realGroup = answer.getQuestion().getGroup();\n \tif(realGroup != null)\n \t\tif(!realGroup.getTitle().equals(group.getTitle()))\n \t\t\treturn;\n \tMembership temp = memberships.get(group.getTitle());\n \tif(temp == null)\n \t\treturn;\n \tanswer.setMembership(temp);\n temp.addAnswer(answer);\n question.addAnswer(answer);\n group.addAnswer(answer);\n }", "public final void rule__Reference__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2740:1: ( rule__Reference__Group__0__Impl rule__Reference__Group__1 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2741:2: rule__Reference__Group__0__Impl rule__Reference__Group__1\n {\n pushFollow(FOLLOW_rule__Reference__Group__0__Impl_in_rule__Reference__Group__05400);\n rule__Reference__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__Reference__Group__1_in_rule__Reference__Group__05403);\n rule__Reference__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__UpdateAddition__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:7366:1: ( rule__UpdateAddition__Group__0__Impl rule__UpdateAddition__Group__1 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:7367:2: rule__UpdateAddition__Group__0__Impl rule__UpdateAddition__Group__1\n {\n pushFollow(FOLLOW_rule__UpdateAddition__Group__0__Impl_in_rule__UpdateAddition__Group__014442);\n rule__UpdateAddition__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__UpdateAddition__Group__1_in_rule__UpdateAddition__Group__014445);\n rule__UpdateAddition__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void addGroup(String name) {\n if(isGroup(name) == false) {\n /* Create a new groupchatpanel */\n GroupChatPanel gcp = new GroupChatPanel(guicontrol, concontrol, name);\n \n /* Add the group to the hashmap */\n grouptabs.put(name, gcp);\n \n /* Add the group to the JTabbedPane */\n tbMain.addTab(name, gcp);\n \n /* Now focus on the tab */\n tbMain.setSelectedComponent(gcp);\n \n /* Now focus on the TextField */\n gcp.tfSendPrep.requestFocusInWindow();\n }\n }", "private void loadGroup(IMemento group)\n\t{\n\t\tRegistersGroupData groupData = new RegistersGroupData();\n\n\t\t// get group name\n\t\tString groupName = group.getString(FIELD_NAME);\n\t\tif (groupName == null)\n\t\t\treturn;\n\n\t\t// get group size\n\t\tIMemento mem = group.getChild(ELEMENT_TOTAL);\n\t\tif (mem == null)\n\t\t\treturn;\n\n\t\tInteger tempInt = mem.getInteger(FIELD_SIZE);\n\t\tif (tempInt == null)\n\t\t\treturn;\n\n\t\tgroupData.totalSize = tempInt.intValue();\n\n\t\t// check add total field\n\t\tgroupData.addTotalField = true;\n\t\tString tempStr = mem.getString(FIELD_ADD_TOTAL);\n\t\tif (tempStr != null && tempStr.equalsIgnoreCase(\"false\"))\n\t\t\tgroupData.addTotalField = false;\n\n\t\t// get sub-division\n\t\tIMemento[] mems = group.getChildren(ELEMENT_SUB);\n\t\tgroupData.indicies = new int[mems.length];\n\t\tgroupData.sizes = new int[mems.length];\n\t\tgroupData.names = new String[mems.length];\n\n\t\tfor (int ind=0; ind < mems.length; ind++)\n\t\t{\n\t\t\ttempInt = mems[ind].getInteger(FIELD_INDEX);\n\t\t\tif (tempInt == null)\n\t\t\t\treturn;\n\t\t\tgroupData.indicies[ind] = tempInt.intValue();\n\n\t\t\ttempInt = mems[ind].getInteger(FIELD_SIZE);\n\t\t\tif (tempInt == null)\n\t\t\t\treturn;\n\t\t\tgroupData.sizes[ind] = tempInt.intValue();\n\n\t\t\tgroupData.names[ind] = mems[ind].getString(FIELD_NAME);\n\t\t\tif (groupData.names[ind] == null)\n\t\t\t\treturn;\n\t\t}\n\n\t\t// add group data\n\t\tmapper.addGroup(groupName/*, groupData*/);\n\n\t\tmems = group.getChildren(ELEMENT_REGISTER);\n\t\tString[] register = new String[mems.length];\n\n\t\tfor (int ind=0; ind < mems.length; ind++)\n\t\t\tregister[ind] = mems[ind].getString(FIELD_NAME);\n\n\t\t// add registers\n\t\tmapper.addRegisters(groupName, register);\n\t}", "public boolean addDevice(Device i_dev) throws SQLException {\n\t\treturn addDevice(i_dev.getProtoDevice().getId(), i_dev.getCustomer_id(), i_dev.getSerial_number());\n\t}", "public synchronized void addGroupMember(String groupName, String member) {\n\t\t\tgroupList.get(groupName).addMember(member);\n\t\t}", "public void toolGroupAdded(ToolGroupEvent evt) {\n ToolGroup group = (ToolGroup)evt.getChild();\n addToolGroup(group);\n }", "public org.hl7.fhir.GroupType addNewType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.GroupType target = null;\n target = (org.hl7.fhir.GroupType)get_store().add_element_user(TYPE$2);\n return target;\n }\n }", "public void addGroup(VParticleGroup g) {\n\t\tif (this.groups == null)\n\t\t\tgroups = new ArrayList<VParticleGroup>();\n\t\tgroups.add(g);\n\t}", "public void addGroup(String group, boolean visible) {\n if (group == null) {\n group = \"New Group\";\n }\n main.getState().addGroup(group);\n\n SortedTreeModel model = (SortedTreeModel) main.tree.getModel();\n if (!visible)\n model = main.getState().isHidden(group) ? main.otherskilltree : main.skilltree;\n DefaultMutableTreeNode tn = (DefaultMutableTreeNode) model.getRoot();\n model.insertNodeSorted(new DefaultMutableTreeNode(group), tn);\n }", "int insert(CmGroupRelIndustry record);", "public void addBoneRef(BoneRef ref){\n \t\tthis.boneRefs[bonePointer++] = ref;\n \t}", "public final void addReference(DodleReference reference) {\n if (reference != null && !references.containsKey(reference.getTrackingID())) {\n references.put(reference.getTrackingID(), reference);\n }\n }", "public final void setNewObjectGroup(DodlesGroup newNewObjectGroup) {\n newObjectGroup = newNewObjectGroup;\n }", "public final void rule__UpdateAddition__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:7427:1: ( rule__UpdateAddition__Group_1__0__Impl rule__UpdateAddition__Group_1__1 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:7428:2: rule__UpdateAddition__Group_1__0__Impl rule__UpdateAddition__Group_1__1\n {\n pushFollow(FOLLOW_rule__UpdateAddition__Group_1__0__Impl_in_rule__UpdateAddition__Group_1__014563);\n rule__UpdateAddition__Group_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__UpdateAddition__Group_1__1_in_rule__UpdateAddition__Group_1__014566);\n rule__UpdateAddition__Group_1__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public boolean createGroup(GroupsGen group) {\n \n super.create(group);\n return true;\n }", "public void addReference(FileSet reference) {\n referenceFilesets.add(reference);\n }", "public void setContactsGroup()\n\t{\n\t\tUtility.ThreadSleep(1000);\n\t\tList<Long> group = new ArrayList<Long>(Arrays.asList(new Long[] {1l,2l})); //with DB Call\n\t\tthis.groupIds = group;\n\t\tLong contactGroupId = groupIds.get(0);\n\t\tSystem.out.println(\".\");\n\t}", "public void attach(BaseRecyclerChildViewModel bVar) {\n bVar.attachParent(this);\n this.mChildSet.add(bVar);\n }" ]
[ "0.66854745", "0.6116721", "0.5976429", "0.5914928", "0.5857859", "0.5670049", "0.56437755", "0.56068057", "0.5582185", "0.55671954", "0.5524317", "0.55205774", "0.551124", "0.5473988", "0.54618156", "0.54544526", "0.5421113", "0.53485936", "0.52916443", "0.5291102", "0.5263309", "0.5253571", "0.5225585", "0.52126586", "0.51981735", "0.51681125", "0.5151376", "0.51458913", "0.5077172", "0.50619197", "0.5047166", "0.5018516", "0.5009288", "0.5001437", "0.4994732", "0.4987732", "0.4975948", "0.49686876", "0.49467278", "0.4945127", "0.49424624", "0.49157193", "0.49110115", "0.4891183", "0.48847532", "0.48775977", "0.4849832", "0.48392686", "0.483707", "0.48325178", "0.48256087", "0.48227194", "0.48089048", "0.4808177", "0.4797769", "0.47948155", "0.47918668", "0.47857362", "0.4782436", "0.47792098", "0.47752476", "0.47669265", "0.4765917", "0.47654808", "0.47575927", "0.47455007", "0.47416818", "0.47396526", "0.4732347", "0.47283554", "0.47102767", "0.47016105", "0.46987754", "0.4693725", "0.46861526", "0.4685353", "0.46795723", "0.46739268", "0.46698052", "0.4665285", "0.46572044", "0.4655069", "0.4653489", "0.4648762", "0.4639751", "0.4636169", "0.46328676", "0.4627368", "0.46158105", "0.4613731", "0.46136147", "0.46040893", "0.4595831", "0.45906544", "0.45866734", "0.45820123", "0.4576168", "0.4563885", "0.45628124", "0.45620164" ]
0.7990108
0
ArrayList arr = new ArrayList(); arr.add("work:add"); arr.add("work:edit"); arr.add("work:delete"); session.setAttribute("sysPermissionList", arr);
@RequestMapping("/find") public String find(HttpSession session) { return "work_list"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getSessionList();", "@RequestMapping(\"/showallemployee\")\npublic String viewEmployee(HttpSession session)\n{\nArrayList<EmployeeRegmodel> alist = ergserv.getAllDetails();\nsession.setAttribute(\"aetall\", alist);\nSystem.out.println(alist.size());\nreturn \"showAllEmployee.jsp\";\n\n\n}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n HttpSession session = request.getSession();\n\n List flowers = new ArrayList();\n flowers.add(\"Tulip\");\n flowers.add(\"Rose\");\n flowers.add(\"Daffodil\");\n flowers.add(\"Petunia\");\n flowers.add(\"Lily\");\n\n session.setAttribute(\"flowersList\", flowers);\n }", "@RequestMapping(\"/showleaverequest\")\npublic String showLeaveList(HttpSession session)\n{\n\tArrayList<EmployeeLeaveRequestModel> elr=els.getAllDetails();\n\tsession.setAttribute(\"leaves\", elr );\n\tSystem.out.println(elr.size());\n\treturn \"EmployeeLeaveList.jsp\";\n\n}", "private void getUserList(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException {\n// redirectLogin(request,response);\n List<User> userList = new UserServices().getUserList();\n request.setAttribute(\"userlist\",userList);\n RequestDispatcher rd = request.getRequestDispatcher(\"quiz/user/userlist.jsp\");\n rd.forward(request,response);\n }", "public void addToSession(String attribute, Object value)\n {\n \n }", "@Override\r\n\tpublic ActionForWard execute(HttpServletRequest request) {\n\t\trequest.setAttribute(\"list\", dao.ListBaseball());\r\n\t\tArrayList<baseballBean> list2=new ArrayList<baseballBean>();\r\n\t request.getSession().setAttribute(\"list2\", list2);\r\n\t\treturn new ActionForWard(path,redirect);\r\n\t}", "public void init() throws ServletException {\n\t\tList<User> list = new ArrayList<>();\n\t\t\n\t\t//store the list in ServletContext domain\n\t\tthis.getServletContext().setAttribute(\"list\", list);\n\t}", "public List<String> getSessionList(){\r\n \t\r\n \tList<String> sessionIds = new ArrayList<String>();\r\n \tfor (Entry<String, AccessDetailVO> curPage : pageAccess.entrySet()) {\r\n \t\tAccessDetailVO currLock = curPage.getValue();\r\n \t\tif(!sessionIds.contains(currLock.getSessionId())){\r\n \t\t\tsessionIds.add(currLock.getSessionId());\r\n \t\t}\t\r\n \t}\r\n \t\r\n \treturn sessionIds;\r\n }", "public void postulerApprenant(List<Session> list) {// OK\r\n\r\n\t\tfor (Session session : list) {\r\n\t\t\tString valID = String.valueOf(session.getId());\r\n\t\t\tString prio = String.valueOf(session.getPrio());\r\n\t\t\tservice.path(idConnexion + \"/submit\").queryParam(\"role\", \"Apprenant\").queryParam(\"session\", valID)\r\n\t\t\t\t\t.queryParam(\"prio\", prio);\r\n\r\n\t\t}\r\n\r\n\t}", "int addRoleMenuList(List<UacRoleMenu> addUacRoleMenuList);", "public void addList(String name){\n }", "public void recuperoListeUtenteloggato(HttpServletRequest request, HttpServletResponse response){\n \n DAOFactory mySqlFactory = DAOFactory.getDAOFactory();\n HttpSession session = request.getSession();\n \n ShoppingListDAO shoppingListDAO = new MySQLShoppingListDAOImpl();\n SharingDAO sharingDAO = new MySQLSharingDAOImpl();\n ShoppingListCategoryDAO shoppingListCategoryDAO = new MySQLShoppingListCategoryDAOImpl();\n \n //elimino shopping list anonime scadute\n shoppingListDAO.deleteExpiredShoppingLists();\n \n if(session.getAttribute(\"emailSession\") != null){\n \n // START: recupero delle liste che appartengono all'utente loggato\n \n List lists = shoppingListDAO.getShoppingListsByOwner((String)session.getAttribute(\"emailSession\"));\n String[][] searchListResult = new String[lists.size()][4];\n\n for(int i=0; i<lists.size(); i++){\n searchListResult[i][0] = ((ShoppingList)(lists.get(i))).getName();\n searchListResult[i][1] = Integer.toString(((ShoppingList)(lists.get(i))).getLID());\n searchListResult[i][2] = ((ShoppingListCategory)(shoppingListCategoryDAO.getShoppingListCategory(((ShoppingList)(lists.get(i))).getLCID()))).getName();\n List listaCondivisa = sharingDAO.getAllEmailsbyList(Integer.parseInt(searchListResult[i][1]));\n if (listaCondivisa.isEmpty()){\n searchListResult[i][3] = Integer.toString(0);\n } else {\n searchListResult[i][3] = Integer.toString(1);\n }\n }\n\n session.setAttribute(\"ListUserSession\", searchListResult);\n session.setAttribute(\"ListUserSessionSize\", lists.size());\n\n // END: recupero delle liste che appartengono all'utente loggato\n \n // START: recupero delle liste condivise dell'utente loggato\n \n List sharingLists = sharingDAO.getAllListByEmail((String)session.getAttribute(\"emailSession\"));\n ShoppingList tmp = null;\n String[][] sharingListResult = new String[sharingLists.size()][3];\n\n for(int i=0; i<sharingLists.size(); i++){\n\n tmp = shoppingListDAO.getShoppingList(((Sharing)(sharingLists.get(i))).getLID());\n\n sharingListResult[i][0] = tmp.getName();\n sharingListResult[i][1] = Integer.toString(tmp.getLID());\n sharingListResult[i][2] = (shoppingListCategoryDAO.getShoppingListCategory(tmp.getLCID())).getName();\n } \n\n session.setAttribute(\"SharingListUserSession\", sharingListResult);\n session.setAttribute(\"SharingListUserSessionSize\", sharingLists.size());\n \n // END: recupero delle liste condivise dell'utente loggato \n \n } else {\n \n int cookieID;\n \n if(session.getAttribute(\"cookieIDSession\") == null){\n\n MyCookieDAO riverCookieDAO = mySqlFactory.getMyCookieDAO();\n MyCookieDAO myCookieDAO = new MySQLMyCookieDAOImpl();\n\n //cancello eventuali cookie scaduti\n List<MyCookie> cookieScaduti = myCookieDAO.deleteDBExpiredCookies();\n for(int i=0; i<cookieScaduti.size(); i++){\n myCookieDAO.deleteCookieByCookieID(cookieScaduti.get(i).getCookieID());\n }\n\n //Creo cookie\n Cookie cookie = new Cookie(\"FridayAnonymous\", Integer.toString(LastEntryTable(\"cookieID\", \"cookies\")));\n cookie.setMaxAge(-1);\n cookieID = Integer.parseInt((String)cookie.getValue());\n\n Long Deadline = new Timestamp(System.currentTimeMillis()).getTime()+1800*1000;\n\n myCookieDAO.createCookie(new MyCookie(LastEntryTable(\"cookieID\", \"cookies\"), 0, null, Deadline));\n session.setAttribute(\"cookieIDSession\", Integer.parseInt(cookie.getValue()));\n response.addCookie(cookie);\n \n } else {\n cookieID = (int)session.getAttribute(\"cookieIDSession\");\n }\n \n ShoppingList shoppingList = shoppingListDAO.getAnonymusShoppingList(cookieID);\n String[][] ListResult = null;\n\n if(shoppingList != null){\n\n ListResult = new String[1][3];\n ListResult[0][0] = shoppingList.getName();\n ListResult[0][1] = Integer.toString(shoppingList.getLID());\n ListResult[0][2] = (shoppingListCategoryDAO.getShoppingListCategory(shoppingList.getLCID())).getName();\n session.setAttribute(\"ListUserSessionSize\", 1);\n\n } else {\n ListResult = new String[0][3];\n session.setAttribute(\"ListUserSessionSize\", 0);\n }\n \n session.setAttribute(\"ListUserSession\", ListResult);\n \n }\n \n \n }", "@RequestMapping(\"/list\")\n public String listPage(HttpSession session, Model model) {\n if (!baseRequest(session, model)) {\n return \"redirect:/login\";\n }\n return \"admin/data_set/list\";\n }", "@RequestMapping(\"page\")\n\tpublic String toList(HttpServletRequest request) {\n\t\trequest.setAttribute(\"listUsrSecurityView\", iUsrSecurityService.mySelectUserList());\n\t\trequest.setAttribute(\"listUsrInformation\", iUsrInformationService.list());\n\t\treturn \"/admin/usr/usrSecurity_list\";\n\t}", "public void setPermissions(List<Permission> permissions)\r\n/* */ {\r\n/* 235 */ this.permissions = permissions;\r\n/* */ }", "private void listFiles(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\r\n\t\tArrayList files=up.listAllFiles(appPath);\r\n\t\r\n\t\t\r\n\t RequestDispatcher dispatcher = request.getRequestDispatcher(\"display.jsp\");\r\n\t\t\trequest.setAttribute(\"listfiles\", files); \r\n\t dispatcher.forward(request, response);\r\n\t \t \r\n\t \t \r\n\t \t \r\n\t}", "@Override\r\n\tpublic void updateSessionId(ClimingList clim) {\n\t\tsession.update(\"climingLists.updateSessionId\",clim);\r\n\t\t\r\n\t}", "java.util.List<java.lang.String>\n getPermissionsList();", "@Override\n\tpublic RDFList append( final RDFList list ) throws AccessDeniedException;", "private void add(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tList<Department> list = service.selectDepartmentAll();\r\n\t\tSystem.out.println(list);\r\n\t\trequest.setAttribute(\"list\", list);\r\n\t\trequest.getRequestDispatcher(\"/WEB-INF/jsp/GongGaoTianJia.jsp\").forward(request, response);\r\n\t}", "@Override\nprotected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\tList<query_status_Bean> query_status_list=new query_status_Dao().select();\n\trequest.setAttribute(\"query_status_list\", query_status_list);\n\trequest.getRequestDispatcher(\"query_status_list_jsp.jsp\").forward(request, response);\n\t}", "void setPermittedModules(ArrayList<Integer> permittedModules);", "public static FeedBack persist(HttpServletRequest req, FormModel form, PrintWriter out, HttpSession session, Connection con)\r\n {\r\n\r\n int i = 0;\r\n int max_list_size = DistributionList.getMaxListSize(session);\r\n String table_name = DistributionList.getTableName(session);\r\n\r\n boolean isProshopUser = ProcessConstants.isProshopUser((String)session.getAttribute(\"user\"));\r\n\r\n //get the table from the form and add the name in the list\r\n RowModel row = form.getRow(DistributionList.LIST_OF_NAMES);\r\n TableModel names = (TableModel)(((Cell)row.get(0)).getContent());\r\n\r\n String[] all_names = new String[max_list_size];\r\n\r\n for (i=0; i<max_list_size; i++)\r\n {\r\n all_names[i] = \"\"; // init array\r\n }\r\n\r\n for (i=0; i<names.size(); i++)\r\n {\r\n all_names[i] = (names.getRow(i)).getId(); // put usernames in array\r\n }\r\n\r\n //get the name for the distribution list\r\n String list_name = req.getParameter(DistributionList.LIST_NAME);\r\n\r\n //\r\n // get this user's user id\r\n //\r\n String user = (String)session.getAttribute(\"user\"); // get username ('proshop' or member's username)\r\n\r\n // save the distribution list\r\n try {\r\n\r\n //build the correct statement using the appropriate database table based on the\r\n //type of the user\r\n String statement = \"INSERT INTO \" + table_name + \" (name, owner\";\r\n\r\n for (int j=1; j<=max_list_size; j++)\r\n {\r\n statement = statement + \", user\" + j;\r\n }\r\n\r\n statement = statement + \") VALUES (?,?,\";\r\n\r\n for (int k=0; k<max_list_size-1; k++)\r\n {\r\n statement = statement + \"?,\";\r\n }\r\n\r\n statement = statement + \"?)\";\r\n\r\n PreparedStatement pstmt = con.prepareStatement (statement);\r\n\r\n pstmt.clearParameters(); // clear the parms\r\n pstmt.setString(1, list_name); // put the parm in pstmt\r\n pstmt.setString(2, user);\r\n\r\n for (i=0; i<max_list_size; i++)\r\n {\r\n pstmt.setString(i+3, all_names[i]);\r\n }\r\n\r\n pstmt.executeUpdate(); // execute the prepared stmt\r\n\r\n pstmt.close(); // close the stmt\r\n\r\n }\r\n catch (Exception exc) {\r\n\r\n exc.printStackTrace();\r\n }\r\n\r\n return new FeedBack();\r\n }", "private List<String> preparePermissionArrayList(String userSharedPermissionsArr[]) {\n\t\tList<String> preparePermissionArrayList = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < userSharedPermissionsArr.length; i++) {\n\t\t\tpreparePermissionArrayList.add(userSharedPermissionsArr[i]);\n\t\t}\n\t\treturn preparePermissionArrayList;\n\t}", "protected void setPermWorkItems(java.util.ArrayList permWorkItems) {\n this.permWorkItems = permWorkItems;\n }", "public void setPermissionList(List<Permission> permissionList) {\n this.permissionList = permissionList;\n }", "public void doList ( RunData data)\n\t{\n\t\t// get the state object\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\tstate.setAttribute (STATE_MODE, MODE_LIST);\n\n\t}", "protected java.util.ArrayList getPermWorkItems() {\n return permWorkItems;\n }", "public abstract List<String> getAdditionalAccessions();", "public void setList_Base (String List_Base);", "private void listClass(HttpServletRequest request, HttpServletResponse response) {\n\t\tList<String> myclass = new ClassDAO().getClassList();\n\t\tList<String> teacher = new TeacherDAO().getTeacherList();\n\t\tList<String> subject = new SubjectDAO().getSubjectList();\n\t\trequest.setAttribute(\"listclass\", myclass);\n\t\trequest.setAttribute(\"listteacher\", teacher);\n\t\trequest.setAttribute(\"listsubject\", subject);\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"class_list.jsp\");\n\t\ttry {\n\t\t\tdispatcher.forward(request, response);\n\t\t} catch (ServletException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public List<Permission> list(Usersession usersession, String idtype, String typeid) {\n\t\tpermissions = permissionListDAO.list(usersession, idtype, typeid);\r\n\t\treturn permissions;\r\n\t}", "public void traceAttributeDefPrivileges(HttpServletRequest request, HttpServletResponse response) {\r\n \r\n final Subject loggedInSubject = GrouperUiFilter.retrieveSubjectLoggedIn();\r\n \r\n GrouperSession grouperSession = null;\r\n \r\n AttributeDef attributeDef = null;\r\n Subject subject = null;\r\n \r\n GrouperRequestContainer grouperRequestContainer = GrouperRequestContainer.retrieveFromRequestOrCreate();\r\n \r\n try {\r\n \r\n grouperSession = GrouperSession.start(loggedInSubject);\r\n \r\n GuiResponseJs guiResponseJs = GuiResponseJs.retrieveGuiResponseJs();\r\n \r\n attributeDef = UiV2AttributeDef.retrieveAttributeDefHelper(request, \r\n AttributeDefPrivilege.ATTR_ADMIN, true).getAttributeDef();\r\n \r\n if (attributeDef == null) {\r\n return;\r\n }\r\n \r\n subject = UiV2Subject.retrieveSubjectHelper(request, true);\r\n \r\n if (subject == null) {\r\n return;\r\n }\r\n \r\n Member member = MemberFinder.findBySubject(grouperSession, subject, false);\r\n \r\n if (member == null) {\r\n \r\n guiResponseJs.addAction(GuiScreenAction.newMessage(GuiMessageType.error, \r\n TextContainer.retrieveFromRequest().getText().get(\"privilegesTraceNoPrivilegesFound\")));\r\n \r\n return;\r\n }\r\n \r\n MembershipGuiContainer membershipGuiContainer = grouperRequestContainer.getMembershipGuiContainer();\r\n \r\n //see where to go back to\r\n if (StringUtils.equalsIgnoreCase(request.getParameter(\"backTo\"), \"subject\")) {\r\n membershipGuiContainer.setTraceMembershipFromSubject(true);\r\n }\r\n \r\n //this is a subobject\r\n grouperRequestContainer.getAttributeDefContainer().getGuiAttributeDef().setShowBreadcrumbLink(true);\r\n grouperRequestContainer.getSubjectContainer().getGuiSubject().setShowBreadcrumbLink(true);\r\n \r\n List<MembershipPath> allMembershipPaths = new ArrayList<MembershipPath>();\r\n {\r\n MembershipPathGroup membershipPathGroup = MembershipPathGroup.analyzePrivileges(attributeDef, member);\r\n allMembershipPaths.addAll(GrouperUtil.nonNull(membershipPathGroup.getMembershipPaths()));\r\n }\r\n \r\n //lets try with every entity too\r\n Subject everyEntitySubject = SubjectFinder.findAllSubject();\r\n {\r\n MembershipPathGroup membershipPathGroup = MembershipPathGroup.analyzePrivileges(attributeDef, everyEntitySubject);\r\n allMembershipPaths.addAll(GrouperUtil.nonNull(membershipPathGroup.getMembershipPaths()));\r\n }\r\n \r\n //massage the paths to only consider the ones that are allowed\r\n int membershipUnallowedCount = 0;\r\n List<MembershipPath> membershipPathsAllowed = new ArrayList<MembershipPath>();\r\n \r\n for (MembershipPath membershipPath : allMembershipPaths) {\r\n if (membershipPath.isPathAllowed()) {\r\n membershipPathsAllowed.add(membershipPath);\r\n } else {\r\n membershipUnallowedCount++;\r\n }\r\n }\r\n \r\n if (membershipUnallowedCount > 0) {\r\n membershipGuiContainer.setPathCountNotAllowed(membershipUnallowedCount);\r\n guiResponseJs.addAction(GuiScreenAction.newMessage(GuiMessageType.info,\r\n TextContainer.retrieveFromRequest().getText().get(\"privilegesTraceGroupPathsNotAllowed\")));\r\n }\r\n \r\n if (GrouperUtil.length(membershipPathsAllowed) == 0) {\r\n \r\n if (membershipUnallowedCount > 0) {\r\n guiResponseJs.addAction(GuiScreenAction.newMessage(GuiMessageType.error,\r\n TextContainer.retrieveFromRequest().getText().get(\"privilegesTraceGroupNoPathsAllowed\")));\r\n } else {\r\n guiResponseJs.addAction(GuiScreenAction.newMessage(GuiMessageType.error,\r\n TextContainer.retrieveFromRequest().getText().get(\"privilegesTraceAttributeDefNoPaths\")));\r\n }\r\n }\r\n \r\n tracePrivilegesHelper(membershipPathsAllowed, false, false, true);\r\n \r\n guiResponseJs.addAction(GuiScreenAction.newInnerHtmlFromJsp(\"#grouperMainContentDivId\", \r\n \"/WEB-INF/grouperUi2/membership/traceAttributeDefPrivileges.jsp\"));\r\n \r\n } finally {\r\n GrouperSession.stopQuietly(grouperSession);\r\n }\r\n \r\n }", "@Override\r\n\tpublic void saveBatchSysPrivilege(List<SysPrivilege> sysPrivilegeLs) {\n\t\tsysPrivilegeDao.addBacth(sysPrivilegeLs);\r\n\t}", "private void modify(List listString){\n\t}", "private void updateFromListTeacher(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\n\t\tint id=Integer.parseInt(req.getParameter(\"teacherid\"));\n\t\ttry {\n\t\t\tTeacher teacher=teacherDAO.getTeacher(id);\n\t\t\treq.setAttribute(\"teacher\", teacher);\n\t\t\treq.getServletContext().getRequestDispatcher(\"/updateTeacher.jsp\")\n\t\t\t.forward(req, resp);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void postulerFormateur(List<Session> list) {// OK\r\n\r\n\t\tfor (Session session : list) {\r\n\t\t\tString valID = String.valueOf(session.getId());\r\n\t\t\tString prio = String.valueOf(session.getPrio());\r\n\r\n\t\t\tservice.path(idConnexion + \"/submit\").queryParam(\"role\", \"Formateur\").queryParam(\"session\", valID)\r\n\t\t\t\t\t.queryParam(\"prio\", prio);\r\n\t\t}\r\n\r\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n /* HttpSession session = request.getSession();\n String idWork = request.getParameter(\"identifiant\");\n if(ShoppingCart.items.isEmpty()){\n for(Work work : Catalogue.listOfWorks){\n if(Integer.parseInt(idWork) == work.getId()){\n ShoppingCart.items.add(work);\n session.setAttribute(\"caddie\", ShoppingCart.items);\n }\n }\n }else{\n ShoppingCart.items = (Set<Work>) session.getAttribute(\"caddie\");\n for(Work work : Catalogue.listOfWorks){\n if(Integer.parseInt(idWork) == work.getId()){\n ShoppingCart.items.add(work);\n session.setAttribute(\"caddie\", ShoppingCart.items);\n }\n }\n }*/\n \n /*response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet AddToCartServlet</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Œuvre ajoutée au caddie (\" + ShoppingCart.items.size() + \")</h1>\");\n out.println(\"<a href='http://localhost:8080/frontoffice-1.0/catalogue'>Accès au catalogue des oeuvres</a>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }*/\n \n String idAsString = request.getParameter(\"identifiant\");\n long idAsLong = Long.parseLong(idAsString);\n \n ShoppingCart cart = (ShoppingCart)request.getSession().getAttribute(\"cart\");\n //On crée l'attribut de session cart si ce dernier n'existe pas\n if(cart == null){\n cart = new ShoppingCart();\n request.getSession().setAttribute(\"cart\", cart);\n }\n \n /*for(Work work : Catalogue.listOfWorks){\n if(work.getId() == idAsLong){\n cart.getItems().add(work);\n }\n }*/\n \n Optional<Work> optionalWork = Catalogue.listOfWorks.stream().filter(work -> work.getId() == idAsLong).findAny();\n \n if(optionalWork.isPresent()){\n cart.getItems().add(optionalWork.get());\n }\n \n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n out.println(\"<html>\");\n out.println(\"<body>\");\n out.println(\"<h1>Œuvre ajoutée au caddie (\" + cart.getItems().size() + \")</h1>\");\n out.println(\"<a href='http://localhost:8080/frontoffice-1.0/catalogue'>Accès au catalogue des oeuvres</a>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }", "public void setAttribute(Session ses, String name, Object value);", "public List<Session> getListSessionApprenant() {// OK\r\n\r\n\t\tif (utilisateur.getListeSessionsApprenantAccessible().isEmpty()) {\r\n\t\t\tList<Session> liste = new ArrayList<Session>();\r\n\t\t\tliste = getListeSessionsParam(\"sessionsAcc\", \"role\", \"apprenant\");\r\n\t\t\tutilisateur.setListeSessionsApprenantAccessible(liste);\r\n\t\t\treturn liste;\r\n\t\t} else {\r\n\t\t\treturn utilisateur.getListeSessionsApprenantAccessible();\r\n\t\t}\r\n\t}", "public String _page_signedoffsocialnetwork(String _network,String _extra) throws Exception{\n_page.ws.getSession().SetAttribute(\"authType\",(Object)(\"\"));\r\n //BA.debugLineNum = 265;BA.debugLine=\"page.ws.Session.SetAttribute(\\\"authName\\\", \\\"\\\")\";\r\n_page.ws.getSession().SetAttribute(\"authName\",(Object)(\"\"));\r\n //BA.debugLineNum = 266;BA.debugLine=\"page.ws.Session.SetAttribute(\\\"IsAuthorized\\\", \\\"\\\")\";\r\n_page.ws.getSession().SetAttribute(\"IsAuthorized\",(Object)(\"\"));\r\n //BA.debugLineNum = 267;BA.debugLine=\"ABMShared.NavigateToPage(ws, ABMPageId, \\\"../\\\")\";\r\n_abmshared._navigatetopage(_ws,_abmpageid,\"../\");\r\n //BA.debugLineNum = 268;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "@Override\n\tpublic void execute(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tArtistDAO biz = new ArtistDAO();\n\t\tArrayList<ArtistVO> list = biz.getMemberList();\n\t\t\n\t\t\n\t\t\n\t\tif(list != null) {\n\t\t\treq.setAttribute(\"artistList\", list);\n\t\t\treq.getRequestDispatcher(\"/view/artistList.jsp\").forward(req, resp);\n\t\t}\n\t\t\n\t\t\n\t}", "public static void setSessions(ArrayList<Session> _sessions) {\r\n\t\tsessions = _sessions;\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n PrintWriter out = response.getWriter();\n AdminDatabaseService_Service adminService = new AdminDatabaseService_Service();\n AdminDatabaseService port = adminService.getAdminDatabaseServicePort();\n List<Dupflix> dupFlixList = new ArrayList<Dupflix>();\n dupFlixList = port.getAllDupFlixData();\n request.setAttribute(\"dupFlixList\", dupFlixList);\n request.getRequestDispatcher(\"ManageIndex.jsp\").forward(request, response); \n \n }", "void setPermission(String perm, boolean add);", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n ArrayList<GroupModel> all=GroupDao.display();\n request.setAttribute(\"group\",all);\n RequestDispatcher rds=request.getRequestDispatcher(\"DisplayGroup.jsp\");\n rds.forward(request, response);\n \n \n\n \n }", "@Override\n protected ResponseState exec(HttpServletRequest request, HttpServletResponse response) throws PersistentException {\n UserService userService = factory.getService(UserService.class);\n try {\n String sRole = request.getParameter(AttrName.ROLE);\n if (sRole != null) {\n Role role = Role.valueOf(sRole.toUpperCase());\n List<User> userList = userService.findUserByRole(role);\n\n request.setAttribute(\"lst\", userList);\n request.setAttribute(AttrName.ROLE, sRole);\n }\n return new ForwardState(\"user/list.jsp\");\n } catch (IllegalArgumentException e) {\n throw new PersistentException(\"Exception while parsing role\", e);\n }\n }", "public void createListIndex(HttpServletRequest request){\n \n HttpSession session = request.getSession();\n \n \n DAOFactory mySqlFactory = DAOFactory.getDAOFactory();\n ShoppingListDAO riverShoppingListDAO = mySqlFactory.getShoppingListDAO();\n ShoppingListDAO shoppingListDAO = new MySQLShoppingListDAOImpl();\n ProductCategoryDAO riverProductCategoryDAO = mySqlFactory.getProductCategoryDAO();\n ProductCategoryDAO productCategoryDAO = new MySQLProductCategoryDAOImpl();\n ProductListDAO riverProductListDAO = mySqlFactory.getProductListDAO();\n ProductListDAO productListDAO = new MySQLProductListDAOImpl();\n ProductDAO riverProductDAO = mySqlFactory.getProductDAO();\n ProductDAO productDAO = new MySQLProductDAOImpl();\n UserDAO riverUserDAO = mySqlFactory.getUserDAO();\n UserDAO userDAO = new MySQLUserDAOImpl();\n \n List resultSharingList = null;\n List AllProductInListRand = null;\n List resultList = null; \n ShoppingList resultListRand = null;\n \n String email = null;\n int cookieID = 0;\n \n //rihuardare\n \n if(session.getAttribute(\"emailSession\")!=null){\n email = (String)session.getAttribute(\"emailSession\"); \n } \n \n resultSharingList = shoppingListDAO.getAllShoppingListEditable(email);\n \n if(session.getAttribute(\"cookieIDSession\")!=null){\n cookieID = (int)session.getAttribute(\"cookieIDSession\");\n } \n \n resultListRand = shoppingListDAO.getRandShoppingList(email, cookieID);\n \n if(resultListRand != null){\n AllProductInListRand = productListDAO.getPIDsByLID(resultListRand.getLID());\n session.setAttribute(\"resultListRandExist\", true);\n } else {\n session.setAttribute(\"resultListRandExist\", false);\n }\n \n resultList = shoppingListDAO.getShoppingListByUserIDOrCookieID(email, cookieID);\n \n List prodottiRandom = null;\n if(session.getAttribute(\"emailSession\")!=null){\n prodottiRandom = productDAO.getRandomProduct((String)session.getAttribute(\"emailSession\"));\n } else {\n prodottiRandom = productDAO.getRandomProduct(null);\n }\n \n //resultListRand\n \n String[][] resultListRandMatrix = null;\n \n if(resultListRand != null){\n \n resultListRandMatrix = new String[1][2];\n session.setAttribute(\"listaAnonimo\", true);\n \n resultListRandMatrix[0][0] = Integer.toString(resultListRand.getLID());\n resultListRandMatrix[0][1] = resultListRand.getName();\n \n } else {\n resultListRandMatrix = new String[0][2];\n }\n \n //AllProductInListRand\n Product tmp1 = null;\n User tmp2 = null;\n ProductCategory productCategory = null;\n SharingProductDAO sharingProductDAO = new MySQLSharingProductDAOImpl();\n List userSharedProduct = null;\n \n String[][] AllProductInListRandMatrix = null;\n \n if(AllProductInListRand != null){\n \n AllProductInListRandMatrix = new String[AllProductInListRand.size()][9];\n\n for(int i=0; i<AllProductInListRand.size(); i++){\n \n\n tmp1 = productDAO.getProduct(((ProductList)(AllProductInListRand.get(i))).getPID(), email);\n tmp2 = userDAO.getUser(tmp1.getEmail());\n productCategory = productCategoryDAO.getProductCategory(tmp1.getPCID());\n\n AllProductInListRandMatrix[i][0] = Integer.toString(tmp1.getPID());\n AllProductInListRandMatrix[i][1] = tmp1.getName();\n AllProductInListRandMatrix[i][2] = tmp1.getNote();\n AllProductInListRandMatrix[i][3] = tmp1.getLogo();\n AllProductInListRandMatrix[i][4] = tmp1.getPhoto();\n AllProductInListRandMatrix[i][5] = tmp2.getName();\n AllProductInListRandMatrix[i][6] = tmp2.getSurname();\n AllProductInListRandMatrix[i][7] = productCategory.getName();\n \n if (!(tmp2).getAdmin()) {\n userSharedProduct = sharingProductDAO.getAllEmailsbyPID(Integer.parseInt(AllProductInListRandMatrix [i][0]));\n if (userSharedProduct.isEmpty() || userSharedProduct.size()>1){\n AllProductInListRandMatrix[i][8] = String.valueOf(userSharedProduct.size()) + \" utenti\";\n } else {\n AllProductInListRandMatrix[i][8] = String.valueOf(userSharedProduct.size()) + \" utente\";\n }\n } else {\n AllProductInListRandMatrix[i][8] = \"Tutti gli utenti\";\n }\n\n }\n \n } else {\n AllProductInListRandMatrix = new String[0][9];\n }\n \n //resultList\n ShoppingList tmp = null;\n String[][] resultListMatrix = null;\n \n if(resultList != null){\n \n resultListMatrix = new String[resultList.size()][2];\n\n for(int i=0; i<resultList.size(); i++){\n\n tmp = shoppingListDAO.getShoppingList(((ShoppingList)(resultList.get(i))).getLID());\n\n resultListMatrix[i][0] = Integer.toString(tmp.getLID());\n resultListMatrix[i][1] = tmp.getName();\n\n }\n \n } else {\n resultListMatrix = new String[0][2];\n }\n \n //resultSharingList\n tmp = null;\n String[][] resultSharingListMatrix = null;\n \n if(resultSharingList != null){\n \n resultSharingListMatrix = new String[resultSharingList.size()][2];\n\n for(int i=0; i<resultSharingList.size(); i++){\n\n tmp = shoppingListDAO.getShoppingList(((ShoppingList)(resultSharingList.get(i))).getLID());\n\n resultSharingListMatrix[i][0] = Integer.toString(tmp.getLID());\n resultSharingListMatrix[i][1] = tmp.getName();\n\n }\n \n } else {\n resultSharingListMatrix = new String[0][2];\n }\n \n //prodottiRandom\n tmp1 = null;\n tmp2 = null;\n String[][] prodottiRandomMatrix = new String[prodottiRandom.size()][9];\n \n for(int i=0; i<prodottiRandom.size(); i++){\n \n tmp1 = (Product)prodottiRandom.get(i);\n tmp2 = userDAO.getUser(tmp1.getEmail());\n \n prodottiRandomMatrix[i][0] = Integer.toString(tmp1.getPID());\n prodottiRandomMatrix[i][1] = tmp1.getName();\n prodottiRandomMatrix[i][2] = tmp1.getNote();\n prodottiRandomMatrix[i][3] = tmp1.getLogo();\n prodottiRandomMatrix[i][4] = tmp1.getPhoto();\n prodottiRandomMatrix[i][5] = (productCategoryDAO.getProductCategory(tmp1.getPCID())).getName();\n prodottiRandomMatrix[i][6] = tmp2.getName();\n prodottiRandomMatrix[i][7] = tmp2.getSurname();\n if (!(tmp2).getAdmin()) {\n userSharedProduct = sharingProductDAO.getAllEmailsbyPID(Integer.parseInt(prodottiRandomMatrix [i][0]));\n if (userSharedProduct.isEmpty() || userSharedProduct.size()>1){\n prodottiRandomMatrix[i][8] = String.valueOf(userSharedProduct.size()) + \" utenti\";\n } else {\n prodottiRandomMatrix[i][8] = String.valueOf(userSharedProduct.size()) + \" utente\";\n }\n } else {\n prodottiRandomMatrix[i][8] = \"Tutti gli utenti\";\n } \n\n }\n \n session.setAttribute(\"resultListRand\", resultListRandMatrix);\n session.setAttribute(\"resultList\", resultListMatrix);\n session.setAttribute(\"resultSharingList\", resultSharingListMatrix); \n session.setAttribute(\"AllProductInListRand\", AllProductInListRandMatrix);\n session.setAttribute(\"prodottiRand\", prodottiRandomMatrix);\n \n }", "@Override\n\tpublic void view(HttpServletRequest request,HttpServletResponse response) {\n\t\tlong id=(long) request.getSession().getAttribute(\"enrollment\");\n\t\tArrayList list;\n\t\tif(request.getParameterMap().containsKey(\"search\")){\n\t\t\tString searchParameter=request.getParameter(\"search\");\n\t\t\tlist=(ArrayList)((QuestionDao)cd).viewAll(searchParameter);\n\n\t\t}else if(id==12589){\n\t\t\tlist = (ArrayList) cd.view(id);\n\t\t}\n\t\telse{\n\t\t\tlist=(ArrayList)((QuestionDao)cd).viewAll(\"\");\n\t\t}\n\t\tHttpSession session = request.getSession();\n\t\tsession.setAttribute(\"list\",list);\n\t\ttry{\n\t\t\tif(id==12589)\n\t\t\t{\n\t\t response.sendRedirect(\"Admin/questionsearch.jsp\");\n\t\t\t}\n\t\t\telse\n\t\t\t\tresponse.sendRedirect(\"User/que_Ans_UI.jsp\");\n\t\t}\n\t\tcatch(Exception e){}\n\t}", "public void setList() \n\t\t{\n\t\t\tVector<Course> items = client.ProfessorCourseList(prof.getID());\n\t\t\tmodel.removeAllElements();\n\t\t\tif(items == null)return;\n\t\t\tString s;\n\t\t\tfor(int i = 0; i < items.size(); i++)\n\t\t\t{\n\t\t\t\ts = items.get(i).getName();\n\t\t\t\tmodel.addElement(items.get(i));\n\t\t\t}\n\t\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // processRequest(request, response);\n\n if(request.getParameter(\"action\").equalsIgnoreCase(\"add\")){\n ArrayList<TeacherModel> al=TeacherDao.display();\n request.setAttribute(\"teacherdata\",al);\n ArrayList<CourseModel> dl= CourseDao.display();\n request.setAttribute(\"coursedata\",dl);\n RequestDispatcher rd=request.getRequestDispatcher(\"AddGroup.jsp\");\n rd.forward(request,response);\n \n \n } else if(request.getParameter(\"action\").equalsIgnoreCase(\"display\")){\n \n processRequest(request, response);\n \n \n }\n }", "void setListProperty(Object name, List<Object> list) throws JMSException;", "@Override\r\n public void init() throws ServletException {\n \tUtilisateurManager utilisateurManager = new UtilisateurManager();\r\n\t\tList<Utilisateur> listeIdPseudo = new ArrayList<Utilisateur>();\r\n\t\tlisteIdPseudo = utilisateurManager.getlisteIdPseudo();\r\n\t\tSystem.out.println(\"liste \"+ listeIdPseudo);\r\n\t\tServletContext servletContext;\r\n\t\tthis.getServletContext().setAttribute(\"listeIdPseudo\", listeIdPseudo);\r\n\t\t\r\n \t\r\n\t\t\r\n\t\t\r\n\t\t//getServletContext().setAttribute(\"listeIdPseudo\", \"listeIdPseudo\");\r\n \t\r\n \t\r\n \tsuper.init();\r\n }", "public void saveArrayList(ArrayList<String> list, String key) {\n SharedPreferences preferences = getSharedPreferences(\"itemlist\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n Gson gson = new Gson();\n String json = gson.toJson(list);\n editor.putString(key, json);\n editor.apply();\n }", "public List<Permiso> obtenerTodosActivos();", "private void sendPermissions(final WebDriver driver, final String unAssignedPermission) {\n\n clickPermissionsTab();\n isDisplayedById(driver, roleConfig.get(UNASSIGNED_PERMISSIONS), MEDIUM_TIMEOUT);\n\n final String[] unAssignedPermissionList = unAssignedPermission.split(\",\");\n for (final String permissionText : unAssignedPermissionList) {\n\n int lastIndexOfSplit = permissionText.lastIndexOf(\"-\") + 1;\n\n final String property = permissionText.substring(0, lastIndexOfSplit - 1);\n final String permissionButton = permissionText.substring(lastIndexOfSplit,\n permissionText.length());\n\n final Permission permission = Permission.valueOf(permissionButton);\n int selectedPermission = 0;\n switch (permission) {\n case R:\n selectedPermission = 1;\n DriverConfig.setLogString(\"Read Only Permissions.\", true);\n break;\n case RW:\n selectedPermission = 2;\n DriverConfig.setLogString(\"Read/Write Permissions.\", true);\n break;\n case RWD:\n selectedPermission = 3;\n DriverConfig.setLogString(\"Read/Write/Delete Permissions.\", true);\n break;\n default:\n break;\n }\n final Select permissionSelect = new Select(driver.findElement(By.id(roleConfig\n .get(UNASSIGNED_PERMISSIONS))));\n permissionSelect.selectByVisibleText(property);\n DriverConfig.setLogString(\"Permissions Granted for :\" + property, true);\n logger.info(\"select required permission.\");\n driver.findElement(By.id(\"add\" + selectedPermission)).click();\n }\n }", "@Override\r\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) {\n\t\t\r\n\t\tint listType = 0;\r\n\t\tString listValue = \"\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tlistType = Integer.parseInt(request.getParameter(\"list_type\") == null ? \"1\" : request.getParameter(\"list_type\").equals(\"\") ? \"1\" : request.getParameter(\"list_type\"));\r\n\t\t\tlistValue = request.getParameter(\"list_value\") != null ? URLDecoder.decode(request.getParameter(\"list_value\"), \"utf-8\") : \"\";\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(\"[NumberError] : \" + e.getMessage());\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(\"[DecodingError] : \" + e.getMessage());\r\n\t\t} \r\n\t\r\n\t\tConcertTO cto = new ConcertTO();\r\n\t\tcto.setList_Type(listType);\r\n\t\tcto.setList_Value(listValue);\r\n\t\t\r\n\t\tConcertDAO dao = new ConcertDAO();\r\n\t\tArrayList<ConcertTO> lists = dao.AppListView(cto);\r\n\t\trequest.setAttribute(\"lists\", lists);\r\n\t}", "@Override\n\tpublic ActionForward execute(ActionMapping mapping, ActionForm form,\n\t\t\tHttpServletRequest request, HttpServletResponse response)\n\tthrows Exception {\n\t\tList cout=new ArrayList();\n\t\tHttpSession session=request.getSession(false);//change - paramter passing active session object\n\t\tresponse.setHeader(\"Cache-Control\", \"no-cache, no-store, must-revalidate\"); // HTTP 1.1.\n\t\tresponse.setHeader(\"Pragma\", \"no-cache\"); // HTTP 1.0.\n\t\tresponse.setDateHeader(\"Expires\", 0); \n\t\tresponse.setDateHeader(\"Expires\",-1); \t\t\n\t\t//System.out.println(\"Session value::::\"+session);\n\t\tString id=request.getParameter(\"id\");\n\t\tString value=(String)session.getAttribute(\"sessionvalue\");\n\t\t\n\t\tif(!request.getParameter(session.getAttribute(\"Tkey\").toString()).equals(session.getAttribute(\"Tvalue\").toString())){\n\t\t\treturn mapping.findForward(\"failure\");\n\t\t}\n\t\t\n\t\tif(value!=null && !value.equalsIgnoreCase(\"\") )\n\t\t{\n\t\t\tcout.add(value);\n //System.out.println(\"I am in session\");\n\t\t\tif(id.equalsIgnoreCase(\"addDetailsIntoDatabase\")){ \t\t\t\t\n\t\t\t\treturn mapping.findForward(\"failure\");\n\t\t\t}\n\t\t\telse if(id.equalsIgnoreCase(\"editRemain\"))\n\t\t\t{\n\t\t\t\trequest.getSession();\n\t\t\t\treturn mapping.findForward(\"edit\");\n\t\t\t}\n\t\t\telse if(id.equalsIgnoreCase(\"editfail\"))\n\t\t\t{\n\t\t\t\tLoginActionBean bean=new LoginActionBean();\n\t\t\t\tString str=(String)session.getAttribute(\"sessionvalue\");//bhushan\n\t\t\t\t//bean.droptable(str); //new code\n\t\t\t\t//bean.droptable(str+\"OTP\");\t\t//new code\t\n\t\t\t\tbean.unnessesaricontent(str);//bhushan\n\t\t\t\tsession.invalidate();\n\t\t\t\t//System.out.println(\"Out of session\");\n\t\t\t\treturn mapping.findForward(\"sessionend\");\n\t\t\t}\t\t\t\n\t\t\telse if(id.equalsIgnoreCase(\"SuccessOtpRemain\"))\n\t\t\t{\n\t\t\t\trequest.getSession();\n\t\t\t\t//System.out.println(\"I am in alive\");\n\t\t\t\treturn mapping.findForward(\"Successotp\");\t\t\t\t\n\t\t\t}\n\t\t\telse if(id.equalsIgnoreCase(\"SuccessOtpfail\"))\n\t\t\t{\n\t\t\t\tLoginActionBean bean=new LoginActionBean();\n\t\t\t\tString str=(String)session.getAttribute(\"sessionvalue\");//bhushan\n\t\t\t\t//bean.droptable(str); //new code\n\t\t\t\t//bean.droptable(str+\"OTP\");\t\t//new code\t\n\t\t\t\tbean.unnessesaricontent(str);//bhushan\t\n\t\t\t\tsession.invalidate();\n\t\t\t\t//System.out.println(\"Out of session\");\n\t\t\t\treturn mapping.findForward(\"sessionend\");\t\t\t\n\t\t\t}\n\t\t\telse if(id.equalsIgnoreCase(\"aliveMainPage\")) //bhushan\n\t\t\t{\n\t\t\t request.getSession();//bhushan\n\t\t\t //System.out.println(\"I am in alive\");//bhushan\n\t\t\t return mapping.findForward(\"Successotp\"); //bhushan code end\t\t\t\t\n\t\t\t}\n\t\t\telse if(id.equalsIgnoreCase(\"alive\"))\n\t\t\t{\n\t\t\t\trequest.getSession();\n\t\t\t\t//System.out.println(\"I am in alive\");\n\t\t\t\treturn mapping.findForward(\"otp\");\n\t\t\t}\n\t\t\telse if(id.equalsIgnoreCase(\"pass2\")){ // room is already register but user is not register //bhushan code start\n\t\t\t\t//System.out.println(\"I am pass2\");\n\t\t\t\tLoginActionBean bean=new LoginActionBean();\n\t\t\t\tRegisterForm registerForm = (RegisterForm) form;\n\t\t\t\tString userid=(String) session.getAttribute(\"sessionvalue\");\n\t\t\t\tbean.droptable(userid+\"OTP\");\n\t\t\t\t//\n\t\t\t\tString generatedOtp=GenerateId.getOtp();\t\t\t\t\n\t\t\t\tString queryRetriveMobilenumber=\"SELECT mobilenumber FROM register WHERE userId_Pk=\"+userid;\n\t\t\t\tString mobilenumber=bean.getUsermobilenumber(queryRetriveMobilenumber);\t\t\t\t\n\t\t\t\tString idValue=(String)session.getAttribute(\"sessionvalue\");\t\t\t\t\n\t\t\t\t//String query=\"\";\n\t\t\t\tif(!bean.checkTable(\"temp\"+idValue+\"OTP\")){ //bhushan\n\t\t\t\tbean.createTable(generatedOtp,idValue+\"OTP\",2);\n\t\t\t\tSMS.sendSMS(mobilenumber, \"Your OTP is :\"+generatedOtp);\t\t\t\t\n\t\t\t\tregisterForm.setMessage(\"\");\n\t\t\t\tregisterForm.setUpdationMessage(\"\");\n\t\t\t\trequest.setAttribute(\"message\", \"\");\n\t\t\t\tregisterForm.setOtpMessage(\"Otp sent to your mobile\");\n\t\t\t\trequest.setAttribute(\"otpMessage\", \"Otp sent to your mobile\");\n\t\t\t\t////System.out.println(registerForm.getUrl());\n\t\t\t\treturn mapping.findForward(\"otp\");\n\t\t\t\t}\n\t\t\t\telse//bhushan\n\t\t\t\t{\n\t\t\t\t\treturn mapping.findForward(\"otpAlreadyGenerated\");//bhushan\n\t\t\t\t}\n\t\t\t\t//\n\t\t\t\t\n\t\t\t }\n\t\t\telse if(id.equalsIgnoreCase(\"pass\")){ // room is already register but user is not register//bhushan code start\n\t\t\t\tLoginActionBean bean=new LoginActionBean();\n\t\t\t\t//System.out.println(\"pass\");\n\t\t\t\t////System.out.println(\"I am in logout\");\n\t\t\t\t//HttpSession session=request.getSession();\n\t\t\t\tString generatedOtp=GenerateId.getOtp();\t\t\t\t\n\t\t\t\t//String selectQuery=\"select count(*) as count from register where username='\"+username+\"' and password='\"+password+\"'\";\n\t\t\t\tString userid=(String) session.getAttribute(\"sessionvalue\");\n\t\t\t\tString queryRetriveMobilenumber=\"SELECT mobilenumber FROM register WHERE userId_Pk=\"+userid;\n\t\t\t\tString mobilenumber=bean.getUsermobilenumber(queryRetriveMobilenumber);\t\t\t\t\n\t\t\t\tString idValue=(String)session.getAttribute(\"sessionvalue\");\t\t\t\t\n\t\t\t\t//String query=\"\";\n\t\t\t\tif(!bean.checkTable(\"temp\"+idValue+\"OTP\")){ //bhushan\n\t\t\t\tbean.createTable(generatedOtp,idValue+\"OTP\",2);\n\t\t\t\tSMS.sendSMS(mobilenumber, \"Your OTP is :\"+generatedOtp);\n\t\t\t\t\n\t\t\t\tRegisterForm registerForm = (RegisterForm) form;\n\t\t\t\tregisterForm.setMessage(\"\");\n\t\t\t\tregisterForm.setUpdationMessage(\"\");\n\t\t\t\trequest.setAttribute(\"message\", \"\");\n\t\t\t\trequest.setAttribute(\"updationMessage\", \"\");\n\t\t\t\tregisterForm.setOtpMessage(\"\");\n\t\t\t\trequest.setAttribute(\"otpMessage\", \"\");\n\t\t\t\t////System.out.println(registerForm.getUrl());\n\t\t\t\treturn mapping.findForward(\"otp\");\n\t\t\t\t}\n\t\t\t\telse//bhushan\n\t\t\t\t{\n\t\t\t\t\treturn mapping.findForward(\"otpAlreadyGenerated\");//bhushan\n\t\t\t\t}//bhushan code end\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(id.equalsIgnoreCase(\"Otpcheck\")){ // room is already register but user is not register\n\t\t\t\tLoginActionBean bean=new LoginActionBean();\n\t\t\t\t////System.out.println(\"I am in logout\");\n\t\t\t\t//System.out.println(\"Otpcheck\");\n\t\t\t\t\n\t\t\t\t//HttpSession session=request.getSession();\n\t\t\t\tRegisterForm registerForm = (RegisterForm) form;\n\t\t\t\tString finalOtp=registerForm.getOtp();\n\t\t\t\t//System.out.println(finalOtp);\n\t\t\t\t//String alreadyGenerated=(String)session.getAttribute(\"flagOtp\");//bhushan\n\t\t\t\tString idValue1=(String)session.getAttribute(\"sessionvalue\");\n\t\t\t\tboolean value1=bean.otpCheck(finalOtp,idValue1+\"OTP\");\n\t\t\t\n\t\t\t\tif(value1/* && !alreadyGenerated.equalsIgnoreCase(\"Alreadygenrated\")*/){//bhushan\n\t\t\t\t//String mainKey=registerForm.getTimepass();\n\t\t\t\tbean.droptable(idValue1+\"OTP\");//bhushan\n\t\t\t\tCollection<Maindata> listUsers = bean.listData(value,idValue1);\n\t\t\t\t//session.setAttribute(\"flagOtp\", \"Alreadygenrated\");//bhushan\n\t\t\t\trequest.setAttribute(\"listUsers\", listUsers);\n\t\t\t\tregisterForm.setMessage(\"\");\n\t\t\t\tregisterForm.setUpdationMessage(\"\");\n\t\t\t\trequest.setAttribute(\"message\", \"\");\n\t\t\t\trequest.setAttribute(\"updationMessage\", \"\");\n\t\t\t\tregisterForm.setOtpMessage(\"\");\n\t\t\t\trequest.setAttribute(\"otpMessage\", \"\");\n\t\t\t\t////System.out.println(registerForm.getUrl());\n\t\t\t\treturn mapping.findForward(\"Successotp\");\n\t\t\t\t}\n\t\t\t\t//else if(alreadyGenerated.equalsIgnoreCase(\"Alreadygenrated\"))//bhushan\n\t\t\t\t//{\n\t\t\t\t//\treturn mapping.findForward(\"otpAlreadyGenerated\");//bhushan\n\t\t\t\t//}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tregisterForm.setOtpMessage(\"You Enter wrong OTP\");\n\t\t\t\t\trequest.setAttribute(\"otpMessage\", \"You Enter wrong OTP\");\n\t\t\t\t\treturn mapping.findForward(\"otp\");\t\n\t\t\t\t}\n\t\t\t} \t\n\t\t\telse if(id.equalsIgnoreCase(\"addDetails\")){ // room is already register but user is not register\n\t\t\t\tLoginActionBean bean=new LoginActionBean();\n\t\t\t\t//System.out.println(\"addDetailsIntoDatabase\");\n\t\t\t\tRegisterForm registerForm = (RegisterForm) form;\n\t\t\t\tString idValue1=(String)session.getAttribute(\"sessionvalue\");\n\t\t\t\tString url=registerForm.getUrl();\n\t\t\t\tString username=registerForm.getUsername();\n\t\t\t\tString password=registerForm.getPasswordRegisterData();\n\t\t\t\t//String key=registerForm.getTimepass();\n\t\t\t\t////System.out.println(\"Main Security PIN is Require for encryption(add details)::\"+key);\n\t\t\t\tString flag1=request.getParameter(\"flag\");\n\t\t\t\tif(flag1!=null && flag1.equals(\"1\"))\n\t\t\t\t{\n\t\t\t\t\turl=\"Enter Website Link\";\n\t\t\t\t\tusername=\"Enter Username\";\n\t\t\t\t\tpassword=\"Password\";\n\t\t\t\t\t//key=\"Enter Security PIN\";\n\t\t\t\t}\n\t\t\t\tif(url!=null && !url.equalsIgnoreCase(\"\")&&!url.equalsIgnoreCase(\"Enter Website Link\".trim()) && !username.equalsIgnoreCase(\"Enter Username\".trim()) && !password.equalsIgnoreCase(\"Password\".toString())){\n\t\t\t String querySelect=\"select count(*) as count from details where weblink='\"+url+\"' and userId_fk=\"+idValue1+\"\";\n\t\t\t if(bean.checkAlready(querySelect)){\n\t\t\t \t\n\t\t\t\t \t//jyotsana 1 level encryption\n\t\t\t \t //System.out.println(\"Simple Password::\"+password);\n\t\t\t \t //System.out.println(\"Before Jyoshna Incrypt :\"+password);\n\t\t\t\t\t\tGetEncrypt encryptd = new GetEncrypt();//jyo\n\t\t\t\t\t\t//ResultSet rsFirstRecord=SqlCrudOperation.selectQuery(\"Select data from temp\"+idValue1);\n\t\t\t\t\t\t//rsFirstRecord.next();\n\t\t\t\t\t\t//String key=rsFirstRecord.getString(\"data\");\n\t\t\t\t\t\tString key=bean.getSecurityPIN(idValue1,1);\n\t\t\t\t\t\t//System.out.println(\"key value isL:::::::::::::::::::::::::::\"+key);\n\t\t\t\t\t\tbyte[] encryptedData = encryptd.encryptData(password, key); //Jyoshana Encrypt\n\t\t\t\t\t\tpassword=encryptd.ByteToString(encryptedData);\n\t\t\t\t\t\n\t\t\t\t\t\tbyte[] encryptedData1 = encryptd.encryptData(username, key); //Jyoshana Encrypt\n\t\t\t\t\t\tusername=encryptd.ByteToString(encryptedData1);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(\"Encrypted Data::::::::::::::::::::::::::::::::::::\"+encryptedData);\n\t\t\t\t\t\t//System.out.println(\"Value passing to database::::::::::::::::::::::::::::::::::::\"+password);\n\t\t\t\t\t\t\n\t\t\t\t\t\t////System.out.println(\"After Jyoshna Incrypt :\"+password);\n\t\t\t\t\t\t////System.out.println(encryptedData.toString());\n\t\t\t\t\t\t////System.out.println(\"Decrypted data::::::\"+ encryptd.decryptData(encryptedData,\"207244291\"));\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//End jyotsana\n\t\t\t \t //bhushan Change : MyCrypto.encrypt(password)\n\t\t\t \t\tString query=\"INSERT INTO `details` (`weblink`, `usernameweb`, `passwordweb`, `userId_fk`) VALUES ('\"+url+\"', '\"+username+\"', '\"+password+\"', '\"+value+\"')\"; //bhushan Encrypt\n\t\t\t \t//\t//System.out.println(\"After Bhushan Incrypt :\"+MyCrypto.encrypt(password));\n\t\t\t \t\t////System.out.println(registerForm.getUrl());\n\t\t\t\t\t\tint flag= bean.register(query);\n\t\t\t\t\t\tif(flag!=0)\n\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t//System.out.println(\"I am in flag\");\n\t\t\t\t\t\t\tregisterForm.setMessage(\"Data successfully inserted\");\n\t\t\t\t\t\t request.setAttribute(\"message\", \"Data successfully inserted\");\n\t\t\t\t\t\t\treturn mapping.findForward(\"success\");\n\t\t\t\t\t\t\t///return mapping.findForward(\"successReg\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"Insertion Query Zol\");\n\t\t\t\t\t\t\tregisterForm.setMessage(\"Data is not inserted\");\n\t\t\t\t\t\t\trequest.setAttribute(\"message\", \"Data is not inserted\");\n\t\t\t\t\t\t\t//return mapping.findForward(\"failure\");\n\t\t\t\t\t\t\treturn mapping.findForward(\"success\");\n\t\t\t\t\t\t}\n\t\t\t }\n\t\t\t else \n\t\t\t {\n\t\t\t \tregisterForm.setMessage(\"Data for this website is already registered If you want to change please go to view password\");\n\t\t\t\t\trequest.setAttribute(\"message\", \"Data for this website is already registered If you want to change please go to view password\");\n\t\t\t\t\treturn mapping.findForward(\"success\");\n\t\t\t }\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tregisterForm.setMessage(\"Enter the details\");\n\t\t\t\t\trequest.setAttribute(\"message\", \"Enter the details\");\n\t\t\t\t\treturn mapping.findForward(\"success\");\n\t\t\t\t}\n\t\t\t\t//System.out.println(registerForm.getPasswordRegister());\n\t\t\t\t//System.out.println(registerForm.getUsername());\n\t\t\t} \n\t\t\telse if(id.equalsIgnoreCase(\"logout\")){ // room is already register but user is not register\n\t\t\t\tLoginActionBean bean=new LoginActionBean();\n\t\t\t\t//bean.droptable((String)session.getAttribute(\"sessionvalue\"));//bhushan\n\t\t\t\t//bean.droptable((String)session.getAttribute(\"sessionvalue\")+\"\");\n\t\t\t\t//System.out.println(\"logout\");\n\t\t\t\t//System.out.println(\"I am in logout\");\n\t\t\t\t//HttpSession session=request.getSession();\n\t\t\t\t//bean.droptable(value+\"OTP\"); //new code//bhushan\n\t\t\t\tString str=(String)session.getAttribute(\"sessionvalue\");//bhushan\n\t\t\t\t//bean.droptable(str); //new code\n\t\t\t\t//bean.droptable(str+\"OTP\");\t\t//new code\t\n\t\t\t\tbean.unnessesaricontent(str);//bhushan\n\t\t\t\tsession.setAttribute(\"sessionvalue\", \"\");\n\t\t\t\tsession.setAttribute(\"sessionvalue\", null);\n\t\t\t\tsession.invalidate();\n\t\t\t\tRegisterForm registerForm = (RegisterForm) form;\n\t\t\t\t\n\t\t\t\t//System.out.println(registerForm.getUrl());\n\t\t\t\treturn mapping.findForward(\"logout\");\n\t\t\t}\n\t\t\telse if(id.equalsIgnoreCase(\"edit\"))\n\t\t\t{\n\t\t\t\tLoginActionBean bean=new LoginActionBean();\n\t\t\t\tString idvalue2=(String)session.getAttribute(\"sessionvalue\");\n\t\t\t\tRegisterForm formReg=(RegisterForm)form;\n\t\t\t\tSystem.out.println(\"value of Id::::::::::::\"+formReg.getDetailsId());\n\t\t\t\tString query=\"Select * from details where userId_fk='\"+value+\"' and detailsId='\"+formReg.getDetailsId()+\"'\";\n\t\t\t\tMaindata main=bean.getEdit(query,idvalue2);\n\t\t\t\tformReg.setDetailsId(main.getDetailsId());\n\t\t\t\tformReg.setUrl(main.getWeblink());\n\t\t\t\tformReg.setUsername(main.getUsername());\n\t\t\t\tformReg.setPasswordRegisterData(main.getPassword());\n\t\t\t\treturn mapping.findForward(\"edit\");\n\t\t\t}\n\t\t\telse if(id.equalsIgnoreCase(\"expiresession\"))\n\t\t\t{\n\t\t\t\tLoginActionBean bean=new LoginActionBean();\n\t\t\t\tString str=(String)session.getAttribute(\"sessionvalue\");//bhushan\n\t\t\t\t//bean.droptable(str); //new code\n\t\t\t\t//bean.droptable(str+\"OTP\");\t\t//new code\t\n\t\t\t\tbean.unnessesaricontent(str);//bhushan\t\n\t\t\t\tsession.invalidate();\n\t\t\t\tSystem.out.println(\"Out of session\");\n\t\t\t\treturn mapping.findForward(\"sessionend\");\n\t\t\t}\n\t\t\telse if(id.equalsIgnoreCase(\"update\"))\n\t\t\t{\n\t\t\t\tLoginActionBean bean=new LoginActionBean();\n\t\t\t\tRegisterForm formReg=(RegisterForm)form;\n\t\t\t\t//String query=\"Select * from details where userId_fk='\"+value+\"'\";\n\t\t\t\t//Maindata main=bean.getEdit(query);\n\t\t\t String d=formReg.getDetailsId();\n\t\t\t\tString url=formReg.getUrl();\n\t\t\t\tString username=formReg.getUsername();\n\t\t\t\tString registerData=formReg.getPasswordRegisterData();\n\t\t\t\tGetEncrypt encryptd = new GetEncrypt();//jyo\n\t\t\t\tString strkey=(String)session.getAttribute(\"sessionvalue\");\n\t\t\t\tString key=bean.getSecurityPIN(strkey,1);\n\t\t\t\tbyte[] encryptedData = encryptd.encryptData(registerData, key); //Jyoshana Encrypt\n\t\t\t\tregisterData=encryptd.ByteToString(encryptedData);\n\t\t\t\t\n\t\t\t\tbyte[] encryptedData1 = encryptd.encryptData(username, key); //Jyoshana Encrypt\n\t\t\t\tusername=encryptd.ByteToString(encryptedData1);\t\t\t\n\t\t\t\t\n\t\t\t//\tString mainKey=formReg.getTimepass();\n\t\t\t//\tSystem.out.println(\"Main Security PIN is Require for encryption((Update details))::\"+mainKey);\n\t\t\t\t//new updation\n\t\t\t\trequest.setAttribute(\"updationMessage\", \"Data is not updated\");\n\t\t\t\tformReg.setUpdationMessage(\"Data is not updated\");\n\t\t\t // String querySelect=\"select count(*) as count from details where weblink='\"+url+\"'\";\n\t\t\t // bean.checkAlready(querySelect)\n\t\t\t\t//MyCrypto.encrypt(registerData) bhushan \n\t\t\t \tString query=\"update details set weblink='\"+url+\"',usernameweb='\"+username+\"',passwordweb='\"+registerData+\"' where detailsId=\"+d+\" and userId_fk=\"+value+\"\";\n\t\t\t \tSystem.out.println(query);\n\t\t\t\tint flag= bean.register(query);\n\t\t\t\tif(flag!=0)\n\t\t\t\t{ \n\t\t\t\tSystem.out.println(\"I am in flag\");\n\t\t\t\tformReg.setUpdationMessage(\"Data updated successfully \");\n\t\t\t request.setAttribute(\"updationMessage\", \"Data updated successfully\");\n\t\t\t\treturn mapping.findForward(\"edit\");\n\t\t\t\t///return mapping.findForward(\"successReg\");\n\t\t\t\t}\n\t\t\t else\n\t\t\t\t{\n\t\t\t\tSystem.out.println(\"updation Query Zol\");\n\t\t\t\tformReg.setUpdationMessage(\"Data is not Updated\");\n\t\t\t\trequest.setAttribute(\"updationMessage\", \"Data is not updated\");\n\t\t\t\t//return mapping.findForward(\"failure\");\n\t\t\t\treturn mapping.findForward(\"edit\");\n\t\t\t\t}\n\t\t\t }\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn mapping.findForward(\"failure\");\n\t\t\t}\n\t\t}\n\t\n\t\telse\n\t\t{\n\t\t\tLoginActionBean bean=new LoginActionBean();\n\t\t\tString str=(String)session.getAttribute(\"sessionvalue\");//bhushan\n\t\t\t//bean.droptable(str); //new code\n\t\t\t//bean.droptable(str+\"OTP\");\t\t//new code\t\n\t\t\tbean.unnessesaricontent(str);//bhushan\n\t\t\tsession.invalidate();\n\t\t\tSystem.out.println(\"Out of session\");\n\t\t\treturn mapping.findForward(\"sessionend\");\n\t\t}\n\n\t}", "public void setSessionAttribute(String name, Object val, String scope) { \n\t\tthrow new UnsupportedOperationException();\n\t}", "@RequestMapping(value = \"/shiftList\", method = RequestMethod.GET)\n public String employeeList(Model model) {\n \tArrayList<Shift> list;\n \tlist = (ArrayList<Shift>) validationService.allShifts();\n \tmodel.addAttribute(\"shifts\", list);\n \treturn \"/allShifts\";\n }", "private void updateList() {\r\n\t\ttry {\r\n\t \t// Reset the list\r\n\t\t\tsipSessions.clear();\r\n\t \t\r\n\t \t// Get list of pending sessions\r\n\t \tList<IBinder> sessions = sipApi.getSessions();\r\n\t\t\tfor (IBinder session : sessions) {\r\n\t\t\t\tISipSession sipSession = ISipSession.Stub.asInterface(session);\r\n\t\t\t\tsipSessions.add(sipSession);\r\n\t\t\t}\r\n\t\t\tif (sipSessions.size() > 0){\r\n\t\t String[] items = new String[sipSessions.size()]; \r\n\t\t for (int i = 0; i < items.length; i++) {\r\n\t\t\t\t\titems[i]=sipSessions.get(i).getSessionID();\r\n\t\t }\r\n\t\t\t\tsetListAdapter(new ArrayAdapter<String>(SessionsList.this, android.R.layout.simple_list_item_1, items));\r\n\t\t\t} else {\r\n\t\t\t\tsetListAdapter(null);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tUtils.showMessageAndExit(SessionsList.this, getString(R.string.label_session_failed));\r\n\t\t}\r\n }", "public void setStudents(ArrayList value);", "private void disableCollection(IJavaObject value) {\n if (fPermStorage == null) {\n fPermStorage = new ArrayList<IJavaObject>(5);\n }\n try {\n value.disableCollection();\n fPermStorage.add(value);\n } catch (CoreException e) {\n JDIDebugPlugin.log(e);\n }\n }", "public synchronized void addPermission(String permissionLabelName, List<String> sharedUsersList,\n List<String> operationsList) {\n PermissionLabel permissionLabel = new PermissionLabel(sharedUsersList, operationsList);\n permissionLabelMap.put(permissionLabelName, permissionLabel);\n }", "public void add_to_my_list_process(View v) {\n\n addToCart_flag = false;\n // get current login value saved in sharedpreferences object\n SharedPreferences loginSharedPref = getSharedPreferences(\"LoginData\", MODE_PRIVATE);\n // get current agent id\n final String AgentID = loginSharedPref.getString(\"ID\", \"\");\n // create string\n create_final_string_product();\n /* get all list names into arraylist object */\n ArrayList<String> listNames = get_list_data_from_local_DB(AgentID);\n // display alert box to choose list name by user\n display_list_names(listNames, AgentID);\n // clear all data after adding product into cart\n clear_data();\n }", "public void setUserProfileListWithCG(List<BaseModel> modelList, HttpServletRequest req) {\r\n\t\tlogger.info(\"setUserProfileListWithCG companyid is :\");\r\n\t\tfor (BaseModel model : modelList) {\r\n\t\t\tsetUserProfile(model, req);\r\n\t\t}\r\n\t}", "protected void storeParameters(SessionSrvc session, HttpServletRequest req)\n {\n for (Enumeration paramNames = req.getParameterNames(); paramNames.hasMoreElements();)\n {\n\t String name = (String) paramNames.nextElement();\n\t // req.getSession().putValue(name, req.getParameter(name));\n\t session.putLocalValue(name, req.getParameter(name));\n }\n }", "public void setRoomList (ArrayList<ItcRoom> roomList)\r\n\t {\r\n\t //this.roomList = roomList;\r\n\t }", "private List<Session> ConvertSessionT(List<SessionT> listT) {\r\n\t\tList<Session> listerep = new ArrayList<Session>();\r\n\t\tfor (SessionT st : listT) {\r\n\t\t\tSession session = new Session();\r\n\t\t\tsession.setSessionT(st);\r\n\t\t\tlisterep.add(session);\r\n\t\t}\r\n\t\treturn listerep;\r\n\t}", "void setPerm(String name,\n Object value);", "void inPut(ArrayList<SanPham> list);", "@Override\n\tpublic String execute(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString id = (String) request.getSession().getAttribute(\"memberId\");\n\n\t\trequest.setAttribute(\"id\", id);\n\t\trequest.setAttribute(\"doneStatus\", \"before\");\n\t\t\n\t\tString path = \"aView/chorong/medList.jsp\";\n\t\treturn path;\n\t}", "public static FeedBack update(HttpServletRequest req, FormModel form, PrintWriter out, HttpSession session, Connection con)\r\n {\r\n\r\n int i = 0;\r\n int max_list_size = DistributionList.getMaxListSize(session);\r\n String table_name = DistributionList.getTableName(session);\r\n\r\n boolean isProshopUser = ProcessConstants.isProshopUser((String)session.getAttribute(\"user\"));\r\n\r\n //get the table from the form and add the name in the list\r\n RowModel row = form.getRow(DistributionList.LIST_OF_NAMES);\r\n TableModel names = (TableModel)(((Cell)row.get(0)).getContent());\r\n String[] all_names = new String[max_list_size];\r\n\r\n for (i=0; i<max_list_size; i++)\r\n {\r\n all_names[i] = \"\"; // init array\r\n }\r\n\r\n for (i=0; i<names.size(); i++)\r\n {\r\n all_names[i] = (names.getRow(i)).getId(); // put usernames in array\r\n }\r\n\r\n //get the name for the distribution list\r\n String list_name = req.getParameter(DistributionList.LIST_NAME);\r\n String org_list_name = req.getParameter(DistributionList.ORIGINAL_LIST_NAME);\r\n\r\n //\r\n // get this user's user id\r\n //\r\n String user = (String)session.getAttribute(\"user\"); // get username ('proshop' or member's username)\r\n\r\n // save the distribution list\r\n try {\r\n\r\n String statement = \"UPDATE \" + table_name + \" SET name = ?\";\r\n\r\n for (int j=1; j<=max_list_size; j++)\r\n {\r\n statement = statement + \", user\" + j + \" = ?\";\r\n }\r\n\r\n statement = statement + \" WHERE name = ? AND owner = ?\";\r\n\r\n PreparedStatement pstmt = con.prepareStatement (statement);\r\n //\"UPDATE \" + table_name + \" SET name = ?, user1 = ?, user2 = ?, user3 = ?, user4 = ?, user5 = ?, user6 = ?, user7 = ?, user8 = ?, user9 = ?, user10 = ?, \" +\r\n //\"user11 = ?, user12 = ?, user13 = ?, user14 = ?, user15 = ?, user16 = ?, user17 = ?, user18 = ?, user19 = ?, user20 = ?, \" +\r\n //\"user21 = ?, user22 = ?, user23 = ?, user24 = ?, user25 = ?, user26 = ?, user27 = ?, user28 = ?, user29 = ?, user30 = ? WHERE name = ? AND owner = ?\");\r\n\r\n pstmt.clearParameters(); // clear the parms\r\n pstmt.setString(1, list_name); // put the parm in pstmt\r\n pstmt.setString(max_list_size + 2, org_list_name);\r\n pstmt.setString(max_list_size + 3, user);\r\n\r\n for (i=0; i<max_list_size; i++)\r\n {\r\n pstmt.setString(i+2, all_names[i]);\r\n }\r\n\r\n pstmt.executeUpdate(); // execute the prepared stmt\r\n\r\n pstmt.close(); // close the stmt\r\n\r\n }\r\n catch (Exception exc) {\r\n }\r\n\r\n return new FeedBack();\r\n }", "public void setSubsessionList(final String listData, final String listClickData){\n if(listData != null) {\n //parse list data\n final ArrayList subsessionList = parseStringToList(listData);\n ArrayList subsessionURLList = new ArrayList();\n if(listClickData != null)\n subsessionURLList = parseStringToList(listClickData);\n\n //create adapter\n ArrayAdapter adapter = new ArrayAdapter<String>(mContext,\n android.R.layout.simple_list_item_1,\n subsessionList);\n if (mSubsessionsList != null) {\n //set adapter\n mSubsessionsList.setAdapter(adapter);\n //update list height to fit all list content\n setListViewHeightBasedOnItems(mSubsessionsList);\n }\n // set list item onclicklistener to launch details view\n final ArrayList finalSubsessionURLList = subsessionURLList;\n mSubsessionsList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent = new Intent(mContext, DetailsActivity.class);\n String url = \"\";\n if(finalSubsessionURLList != null && finalSubsessionURLList.size() > position)\n url = (String)finalSubsessionURLList.get(position);\n\n String listItemText = (String) subsessionList.get(position);\n // send list item text, current chapter section list, current list item url, and the chapter list url to the details view\n intent.putExtra(Intent.EXTRA_TEXT, new String[]{listItemText, listData,url, listClickData});\n mContext.startActivity(intent);\n }\n });\n }\n }", "public void setSession(String attName, Object value) {\n servletRequest.getSession(true).setAttribute(attName, value);\n }", "private void buildMenu() {\n try {\n\n\n HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();\n Users user = this.getUserPrincipal(request);\n StringBuilder tempBuilder = new StringBuilder();\n HttpSession session = request.getSession(false);\n tempBuilder.append(\"<div>\");\n tempBuilder.append(\"\\n\").append(\"<b>Welcome</b>\");\n tempBuilder.append(\"\\n\").append(\"<p><br/>\").append(session.getAttribute(\"empName\")).append(\"</p>\");\n tempBuilder.append(\"\\n\").append(\"</div><br/>\");\n tempBuilder.append(\"\\n\").append(\"<hr width=\\\"\").append(\"100%\").append(\"\\\"\").append(\" noshade=\\\"\").append(\"noshade\").append(\"\\\">\");\n tempBuilder.append(\"\\n\").append(\"<div class=\\\"\").append(\"glossymenu\").append(\"\\\"\").append(\" style=\\\"\").append(\"width:100%\").append(\"\\\">\");\n // java.util.Date dateLogin = user.getDateLogin();\n // java.util.Date lastDate = user.getLastLoginDate();\n \n //String lastLoginDate = org.tenece.web.common.DateUtility.getDateAsString(lastDate, \"dd/MM/yyyy\");\n //user should be prompted to change password after 30 days\n// Calendar c = Calendar.getInstance();\n// c.setTime(user.getDateUpdated()); \n// c.add(Calendar.DATE, 30); // Adding 30 days\n// Date currentDate = new Date();\n// if (dateLogin == null ||currentDate.after(c.getTime()) ) {\n// tempBuilder.append(\"<a class=\\\"\").append(\"menuitem\").append(\"\\\"\").append(\" target=\\\"\").append(\"content\").append(\"\\\"\").append(\" href=\\\"\").append(\"./changepassword_user.html\").append(\"\\\">\").append(\"Change Password\").append(\"</a>\");\n// tempBuilder.append(\"<a class=\\\"\").append(\"menuitem\").append(\"\\\"\").append(\" href=\\\"\").append(\"./user_logout.html\").append(\"\\\"\").append(\" style=\\\"\").append(\"border-bottom-width: 0\").append(\"\\\">\").append(\"Sign Out\").append(\"</a>\");\n//\n//\n// } else {\n\n MenuSubMenuInfo menuSubmenuInfo = getUserService().getMenu(user.getId());\n List<MenuData> menuList = menuSubmenuInfo.getMenuList();\n Multimap<String, MenuData> subMenuMap = menuSubmenuInfo.getSubMenuMap();\n\n for (MenuData menu : menuList) {\n\n if (menu.getDivClass().trim().equals(\"menuitem\")) {\n tempBuilder.append(\"<a class=\\\"\").append(menu.getDivClass()).append(\"\\\"\").append(\" target=\\\"\").append(menu.getTarget()).append(\"\\\"\").append(\" href=\\\"\").append(menu.getURL()).append(\"\\\">\").append(menu.getMenuTitle()).append(\"</a>\");\n\n } else if (menu.getDivClass().trim().equals(\"submenuheader\")) {\n tempBuilder.append(\"<a class=\\\"\").append(\"menuitem \").append(menu.getDivClass()).append(\"\\\"\").append(\"\\n\").append(\"href=\\\"#\").append(\"\\\">\").append(menu.getMenuTitle()).append(\"</a>\");\n tempBuilder.append(\"\\n\").append(\"<div class=\\\"\").append(\"submenu\").append(\"\\\">\");\n tempBuilder.append(\"\\n\\t\").append(\"<ul>\");\n // get the submenu \n List<MenuData> subMenuList = (List<MenuData>) subMenuMap.get(menu.getMenuTitle());\n Collections.sort(subMenuList);\n for (MenuData submenu : subMenuList) {\n\n tempBuilder.append(\"\\n\").append(\"<li> <a target=\\\"\").append(submenu.getTarget()).append(\"\\\"\").append(\"href=\\\"\").append(submenu.getURL()).append(\"\\\">\").append(submenu.getSubmenutitle()).append(\"</a></li>\");\n\n }\n tempBuilder.append(\"\\n\\t\").append(\"</ul>\");\n tempBuilder.append(\"\\n\").append(\"</div>\");\n }\n }\n\n //}\n tempBuilder.append(\"\\n\").append(\"</div>\");\n tempBuilder.append(\"\\n\").append(\"<br/>\");\n // tempBuilder.append(\"\\n\").append(\"<p>Last Login Date:<br/>\").append(lastLoginDate).append(\"</p>\");\n tempBuilder.append(\"\\n\").append(\"<br/>\");\n pageContext.getOut().write(tempBuilder.toString());\n pageContext.getOut().flush();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public void setAttractionsList(ArrayList attractionsList) {\n this.attractionsList = attractionsList;\n }", "@RequestMapping(path = \"/sigQuotaSelection\", method = RequestMethod.GET)\n public String getAllSigQuotaSelection(Model model/*, @PathVariable(value = \"idSelection\") String idSelection*/) {\n \n List<SigQuotaSelection> allSigQuotaSelection = (List<SigQuotaSelection>) sigQuotaSelectionService.quotatSelectionRetrait();\n model.addAttribute(\"allSigQuotaSelection\", allSigQuotaSelection);\n model.addAttribute(\"sigQuotaSelection\", new SigQuotaSelection()); \n model.addAttribute(\"sigQuotaLocalite\", new SigQuotaLocalite()); \n User user = (User)SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\tmodel.addAttribute(\"user\", user);\n return \"admin/sigQuotaSelection.html\";\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\t\tString menuId = req.getParameter(\"id\"); \r\n\t\t\t\t//System.out.println(stuId);\r\n\t\t\t\tMap<String, Object> mn = ms.findMenuInfo(Integer.valueOf(menuId));\r\n\t\t\t\t//System.out.println(st);\r\n\t\t\t\treq.setAttribute(\"menu\", mn);\r\n\t\t\t\t//req.setAttribute(\"deptList\", Department.values());\r\n\t\treq.getRequestDispatcher(\"manager/modifymenu.jsp\").forward(req,resp);\r\n\t}", "@Override\r\n\tpublic ForwardAction execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\t\r\n\t\tArrayList<Users> arrayList = new UserService().selectAllUserService();\r\n//\t\tfor(Users a : arrayList) {\r\n//\t\t\tSystem.out.println(a.getUserId());\r\n//\t\t}\r\n\t\t\r\n\t\trequest.setAttribute(\"users\", arrayList);\r\n\t\t\r\n\t\tForwardAction forwardAction = new ForwardAction();\r\n\t\tforwardAction.setForward(true);\r\n\t\tforwardAction.setPath(\"/user/selectUserList.jsp\");\r\n\t\treturn forwardAction;\r\n\t}", "Set<AttributeDefPrivilege> getPrivs(GrouperSession grouperSession, AttributeDef attributeDef, Subject subj);", "void list()\n\t{\n\t\toperation.list();\n\t\t\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\trequest.setCharacterEncoding(\"UTF-8\");\r\n\t\tresponse.setContentType(\"text/html;charset=utf-8\");\r\n PrintWriter out = response.getWriter();\r\n\t String user=(String) request.getSession().getAttribute(\"admin\");//获得管理员账户信息\r\n\t \r\n\t Usermodel um=new Usermodel();\r\n\t um.setEmail(user);\r\n\t UserDao sa=new UserDao();\r\n\t Usermodel list = sa.SelectAdmined(um);\r\n\t \r\n\t ArrayList<Usermodel> List =new ArrayList<Usermodel>();\r\n\t JSONArray json = JSONArray.fromObject(list);\r\n\t System.out.println(json.toString());\r\n out.print(json.toString());\r\n out.flush();\r\n out.close();\r\n\t}", "private void listEmployees(HttpServletRequest request, HttpServletResponse response) \r\n\t\tthrows Exception {\n\t\tList<Employee> employees = employeeDAO.getEmployees();\r\n\t\t\r\n\t\t// add students to the request\r\n\t\trequest.setAttribute(\"EMPLOYEE_LIST\", employees);\r\n\t\t\t\t\r\n\t\t// send to JSP page (view)\r\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"/list-employees.jsp\");\r\n\t\tdispatcher.forward(request, response);\r\n\t}", "public List<Permission> getPermissionList() {\n return permissionList;\n }", "private void listaUsuario(HttpServletRequest req, HttpServletResponse resp) {\n\t\t\r\n\t}", "ArrayList getAttributes();", "protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\r\n\t\trequest.setCharacterEncoding(\"UTF-8\");\r\n\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\r\n\t\tresponse.setCharacterEncoding(\"UTF-8\");\r\n\t\t\r\n\t\tDbUtil db=new DbUtil();\r\n\t\tDoctor doc=new Doctor();\r\n\t\tDAO dao=new DAO();\r\n\t\t\r\n\t\tString username1 = (String) request.getSession().getAttribute(\"username1\");\r\n\t\tSystem.out.println(\"预约时用户姓名: \"+username1);\r\n\t\tUser user1 = new User();//查找对象\r\n\t\tuser1.setUserName(username1);\r\n\t\ttry\r\n\t\t{\r\n\t\t\tConnection con=db.getCon();\r\n\t\t\tArrayList<Doctor> list=dao.FindDoctorInfo(con);\r\n\t\t\trequest.setAttribute(\"list\", list);\r\n\t\t\t\r\n\t\t\tArrayList<User> list3=new ArrayList<User>();\r\n\t\t\tlist3=dao.FindUserInfo(con, user1);\r\n\r\n\t\t\tArrayList<String> list1=dao.FindHospital(con);\r\n\t\t\tLinkedHashSet<String> set = new LinkedHashSet<String>(list1); \r\n\t ArrayList<String> list111 = new ArrayList<String>(set); \r\n\t \r\n\t\t\tArrayList<String> list2=dao.FindDepartment(con);\r\n\t\t\tLinkedHashSet<String> set1 = new LinkedHashSet<String>(list2); \r\n\t ArrayList<String> list222 = new ArrayList<String>(set1); \r\n\t\t\t\r\n\t\t\tHttpSession session = request.getSession();\r\n\t\t\tsession.setAttribute(\"list1\", list111);\r\n\t\t\tsession.setAttribute(\"list2\", list222);\r\n\t\t\tsession.setAttribute(\"list3\", list3);\r\n\r\n\t\t\t//response.sendRedirect(\"ok.jsp\");\r\n\t\t\trequest.getRequestDispatcher(\"/DShowAndDel.jsp\").forward(request,response);\t\r\n\r\n\r\n\t\t}catch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "private void getSettingsList(HttpServletRequest request) throws Exception {\n WebTable.setOrder(sessionContext,\"managerSettings.ord\",request.getParameter(\"ord\"),1);\n\n\t\t// Create web table instance \n WebTable webTable = new WebTable( 2,\n\t\t\t \"Manager Settings\", \"managerSettings.do?ord=%%\",\n\t\t\t new String[] {\"Setting\", \"Value\"},\n\t\t\t new String[] {\"left\", \"left\"},\n\t\t\t null );\n \n for (Settings s: SettingsDAO.getInstance().findAll(Order.asc(\"key\"))) {\n \tString onClick = \"onClick=\\\"document.location='managerSettings.do?op=Edit&id=\" + s.getUniqueId() + \"';\\\"\";\n \tString value = sessionContext.getUser().getProperty(s.getKey(), s.getDefaultValue());\n \twebTable.addLine(onClick, new String[] {s.getDescription(), value}, new String[] {s.getDescription(), value});\n }\n\n\t request.setAttribute(\"table\", webTable.printTable(WebTable.getOrder(sessionContext,\"managerSettings.ord\")));\n }", "@Override\r\n\tpublic ActionForward executeSecureAction(ActionMapping mapping, ActionForm form,\r\n\t\t\tHttpServletRequest request, HttpServletResponse response) throws Exception\r\n\t{\r\n\t\tDAO dao = null;\r\n\t\tString pageOf = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfinal SessionDataBean sessionDataBean = (SessionDataBean) request.getSession()\r\n\t\t\t\t\t.getAttribute(Constants.SESSION_DATA);\r\n\t\t\tdao = AppUtility.openDAOSession(sessionDataBean);\r\n\t\t\tfinal String operation = request.getParameter(Constants.OPERATION);\r\n\t\t\trequest.setAttribute(Constants.OPERATION, operation);\r\n\t\t\tfinal List<NameValueBean> storagePositionListForSpecimenArray = AppUtility\r\n\t\t\t\t\t.getStoragePositionTypeListForTransferEvent();\r\n\t\t\trequest.setAttribute(\"storagePositionListForSpecimenArray\",\r\n\t\t\t\t\tstoragePositionListForSpecimenArray);\r\n\t\t\tfinal SpecimenArrayForm specimenArrayForm = (SpecimenArrayForm) form;\r\n\t\t\tfinal SessionDataBean sessionData = (SessionDataBean) request.getSession()\r\n\t\t\t\t\t.getAttribute(Constants.SESSION_DATA);\r\n\t\t\t// boolean to indicate whether the suitable containers to be shown\r\n\t\t\t// in\r\n\t\t\t// dropdown\r\n\t\t\t// is exceeding the max limit.\r\n\t\t\tfinal String exceedingMaxLimit = \"false\";\r\n\t\t\tfinal String[] arrayTypeLabelProperty = {\"name\"};\r\n\t\t\tfinal String arrayTypeProperty = \"id\";\r\n\t\t\tfinal IFactory factory = AbstractFactoryConfig.getInstance().getBizLogicFactory();\r\n\t\t\tfinal SpecimenArrayBizLogic specimenArrayBizLogic = (SpecimenArrayBizLogic) factory\r\n\t\t\t\t\t.getBizLogic(Constants.SPECIMEN_ARRAY_FORM_ID);\r\n\t\t\tList specimenArrayTypeList = new ArrayList();\r\n\r\n\t\t\tif (operation.equals(Constants.ADD))\r\n\t\t\t{\r\n\t\t\t\tspecimenArrayTypeList = specimenArrayBizLogic.getList(SpecimenArrayType.class\r\n\t\t\t\t\t\t.getName(), arrayTypeLabelProperty, arrayTypeProperty, true);\r\n\t\t\t\tfor (final Iterator iter = specimenArrayTypeList.iterator(); iter.hasNext();)\r\n\t\t\t\t{\r\n\t\t\t\t\tfinal NameValueBean nameValueBean = (NameValueBean) iter.next();\r\n\t\t\t\t\t// remove ANY entry from array type list\r\n\t\t\t\t\tif (nameValueBean.getValue().equals(Constants.ARRAY_TYPE_ANY_VALUE)\r\n\t\t\t\t\t\t\t&& nameValueBean.getName().equalsIgnoreCase(\r\n\t\t\t\t\t\t\t\t\tConstants.ARRAY_TYPE_ANY_NAME))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\titer.remove();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (operation.equals(Constants.EDIT))\r\n\t\t\t{\r\n\t\t\t\tfinal String[] selectColumnName = {\"id\", \"name\"};\r\n\t\t\t\tfinal QueryWhereClause queryWhereClause = new QueryWhereClause(\r\n\t\t\t\t\t\tSpecimenArrayType.class.getName());\r\n\t\t\t\tqueryWhereClause.addCondition(new EqualClause(\"id\", new Long(specimenArrayForm\r\n\t\t\t\t\t\t.getSpecimenArrayTypeId())));\r\n\t\t\t\t//specimenArrayBizLogic.retrieve(StorageContainer.class.getName(\r\n\t\t\t\t// ),\r\n\t\t\t\t// new Long(specimenArrayForm.getSpecimenArrayTypeId()));\r\n\t\t\t\tfinal List specimenArrayTypes = dao.retrieve(SpecimenArrayType.class.getName(),\r\n\t\t\t\t\t\tselectColumnName, queryWhereClause);\r\n\t\t\t\tif ((specimenArrayTypes != null) && (!specimenArrayTypes.isEmpty()))\r\n\t\t\t\t{\r\n\t\t\t\t\tfinal Object[] obj = (Object[]) specimenArrayTypes.get(0);\r\n\t\t\t\t\tfinal Long id = (Long) obj[0];\r\n\t\t\t\t\tfinal String name = (String) obj[1];\r\n\t\t\t\t\tfinal NameValueBean nameValueBean = new NameValueBean(name, id);\r\n\r\n\t\t\t\t\tspecimenArrayTypeList.add(nameValueBean);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\trequest.setAttribute(Constants.SPECIMEN_ARRAY_TYPE_LIST, specimenArrayTypeList);\r\n\t\t\t// Setting the specimen class list\r\n\t\t\tfinal List specimenClassList = CDEManager.getCDEManager().getPermissibleValueList(\r\n\t\t\t\t\tConstants.CDE_NAME_SPECIMEN_CLASS, null);\r\n\t\t\trequest.setAttribute(Constants.SPECIMEN_CLASS_LIST, specimenClassList);\r\n\r\n\t\t\tfinal String strMenu = request.getParameter(Constants.MENU_SELECTED);\r\n\t\t\tif (strMenu != null)\r\n\t\t\t{\r\n\t\t\t\trequest.setAttribute(Constants.MENU_SELECTED, strMenu);\r\n\t\t\t\tthis.logger.debug(Constants.MENU_SELECTED + \" \" + strMenu + \" set successfully\");\r\n\t\t\t}\r\n\r\n\t\t\t// Setting the specimen type list\r\n\t\t\tList specimenTypeList = CDEManager.getCDEManager().getPermissibleValueList(\r\n\t\t\t\t\tConstants.CDE_NAME_SPECIMEN_TYPE, null);\r\n\t\t\tfinal UserBizLogic userBizLogic = (UserBizLogic) factory\r\n\t\t\t\t\t.getBizLogic(Constants.USER_FORM_ID);\r\n\t\t\tfinal Collection userCollection = userBizLogic.getUsers(operation);\r\n\t\t\trequest.setAttribute(Constants.USERLIST, userCollection);\r\n\t\t\tTreeMap containerMap = new TreeMap();\r\n\t\t\tfinal String subOperation = specimenArrayForm.getSubOperation();\r\n\t\t\tboolean isChangeArrayType = false;\r\n\r\n\t\t\tif (subOperation != null)\r\n\t\t\t{\r\n\t\t\t\tSpecimenArrayType arrayType = null;\r\n\t\t\t\tif (specimenArrayForm.getSpecimenArrayTypeId() > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tfinal Object object = dao.retrieveById(SpecimenArrayType.class.getName(),\r\n\t\t\t\t\t\t\tspecimenArrayForm.getSpecimenArrayTypeId());\r\n\t\t\t\t\tif (object != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tarrayType = (SpecimenArrayType) object;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tspecimenTypeList = this.doSetClassAndType(specimenArrayForm, arrayType, dao);\r\n\t\t\t\tif (subOperation.equals(\"ChangeArraytype\"))\r\n\t\t\t\t{\r\n\t\t\t\t\t// specimenArrayForm.setCreateSpecimenArray(\"no\");\r\n\t\t\t\t\tisChangeArrayType = true;\r\n\r\n\t\t\t\t\tspecimenArrayForm.setOneDimensionCapacity(arrayType.getCapacity()\r\n\t\t\t\t\t\t\t.getOneDimensionCapacity().intValue());\r\n\t\t\t\t\tspecimenArrayForm.setTwoDimensionCapacity(arrayType.getCapacity()\r\n\t\t\t\t\t\t\t.getTwoDimensionCapacity().intValue());\r\n\t\t\t\t\tspecimenArrayForm.setName(arrayType.getName() + \"_\"\r\n\t\t\t\t\t\t\t+ specimenArrayBizLogic.getUniqueIndexForName());\r\n\r\n\t\t\t\t\tspecimenArrayForm.setCreateSpecimenArray(\"yes\");\r\n\t\t\t\t\trequest.getSession().setAttribute(Constants.SPECIMEN_ARRAY_CONTENT_KEY,\r\n\t\t\t\t\t\t\tthis.createSpecimenArrayMap(specimenArrayForm));\r\n\t\t\t\t}\r\n\t\t\t\telse if (subOperation.equalsIgnoreCase(\"CreateSpecimenArray\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tspecimenArrayForm.setCreateSpecimenArray(\"yes\");\r\n\t\t\t\t\trequest.getSession().setAttribute(Constants.SPECIMEN_ARRAY_CONTENT_KEY,\r\n\t\t\t\t\t\t\tthis.createSpecimenArrayMap(specimenArrayForm));\r\n\t\t\t\t}\r\n\t\t\t\tspecimenArrayForm.setSubOperation(\"\");\r\n\t\t\t}\r\n\t\t\tfinal StorageContainerForSpArrayBizLogic storageContainerBizLogic = new StorageContainerForSpArrayBizLogic();\r\n\t\t\tcontainerMap = storageContainerBizLogic.getAllocatedContainerMapForSpecimenArray(\r\n\t\t\t\t\tspecimenArrayForm.getSpecimenArrayTypeId(), sessionData,\r\n\t\t\t\t\tdao);\r\n\t\t\trequest.setAttribute(Constants.EXCEEDS_MAX_LIMIT, exceedingMaxLimit);\r\n\t\t\trequest.setAttribute(Constants.AVAILABLE_CONTAINER_MAP, containerMap);\r\n\r\n\t\t\tList initialValues = null;\r\n\t\t\tif (isChangeArrayType)\r\n\t\t\t{\r\n\t\t\t\tinitialValues = StorageContainerUtil.checkForInitialValues(containerMap);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tinitialValues = StorageContainerUtil.setInitialValue(specimenArrayBizLogic,\r\n\t\t\t\t\t\tspecimenArrayForm, containerMap, dao);\r\n\t\t\t}\r\n\r\n\t\t\tif ((specimenArrayForm.getStorageContainer() != null))\r\n\t\t\t{\r\n\t\t\t\tfinal Long storageContainerId = Long.valueOf(specimenArrayForm\r\n\t\t\t\t\t\t.getStorageContainer());\r\n\t\t\t\tStorageContainerUtil.addAllocatedPositionToMap(containerMap, storageContainerId,\r\n\t\t\t\t\t\tspecimenArrayForm.getPositionDimensionOne(), specimenArrayForm\r\n\t\t\t\t\t\t\t\t.getPositionDimensionTwo(), dao);\r\n\t\t\t}\r\n\t\t\trequest.setAttribute(\"initValues\", initialValues);\r\n\t\t\tif (specimenTypeList == null)\r\n\t\t\t{\r\n\t\t\t\t// In case of search & edit operation\r\n\t\t\t\tspecimenTypeList = (List) request.getAttribute(Constants.SPECIMEN_TYPE_LIST);\r\n\t\t\t}\r\n\r\n\t\t\trequest.setAttribute(Constants.SPECIMEN_TYPE_LIST, specimenTypeList);\r\n\t\t\tpageOf = request.getParameter(Constants.PAGE_OF);\r\n\r\n\t\t\tif (pageOf == null)\r\n\t\t\t{\r\n\t\t\t\tpageOf = Constants.SUCCESS;\r\n\t\t\t}\r\n\r\n\t\t\tif (operation.equals(Constants.ADD))\r\n\t\t\t{\r\n\t\t\t\t// set default user\r\n\t\t\t\tif (specimenArrayForm.getCreatedBy() == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tif ((userCollection != null) && (userCollection.size() > 1))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfinal Iterator iterator = userCollection.iterator();\r\n\t\t\t\t\t\titerator.next();\r\n\t\t\t\t\t\tfinal NameValueBean nameValueBean = (NameValueBean) iterator.next();\r\n\t\t\t\t\t\tspecimenArrayForm.setCreatedBy(Long.valueOf(nameValueBean.getValue())\r\n\t\t\t\t\t\t\t\t.longValue());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tdao.closeSession();\r\n\t\t}\r\n\t\treturn mapping.findForward(pageOf);\r\n\t}", "private void setJList(LinkedTaskList myList) {\n masTasks = new String[myList.size()+5];\n for (int i = 0; i < myList.size(); i++) {\n masTasks[i] = myList.getTask(i).toString2();\n }\n taskList = new JList(masTasks);\n }", "@RequestMapping(\"/orderHistory\")\n public String orderHistory(Model model, Principal principal, Authentication authentication){\n model.addAttribute(\"categories\", categoryRepository.findAll());\n model.addAttribute(\"products\", productRepository.findAll());\n model.addAttribute(\"users\", userRepository.findAll());\n model.addAttribute(\"carts\", cartRepository.findAll());\n /*model.addAttribute(\"user_id\", userRepository.findByUsername(principal.getName()).getId());*/\n model.addAttribute(\"user_id\", userService.getUser().getId());\n\n\n User currentUser = userService.getUser();\n Set<Cart> currentUserCarts = currentUser.getCarts();\n\n\n model.addAttribute(\"currentUser\", currentUser);\n model.addAttribute(\"currentUserCarts\", currentUserCarts);\n\n\n\n\n return \"orderHistory\";\n }", "public void setUserProfileWithoutCGList(List<BaseModelWithoutCG> modelList, HttpServletRequest req) {\r\n\t\tlogger.info(\"setUserProfileWithoutCGList companyid is :\");\r\n\t\tfor (BaseModelWithoutCG model : modelList) {\r\n\t\t\tsetUserProfileWithoutCG(model, req);\r\n\t\t}\r\n\t}", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n request.setAttribute(\"subjects\", this.subjectBean.findAllSorted());\n\n // Anfrage an dazugerhörige JSP weiterleiten\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"/WEB-INF/offers/subject_list.jsp\");\n dispatcher.forward(request, response);\n\n // Alte Formulardaten aus der Session entfernen\n HttpSession session = request.getSession();\n session.removeAttribute(\"categories_form\");\n }", "private List<IPSAcl> testSave(List<IPSAcl> aclList) throws Exception\n {\n // modify and add something\n List<IPSGuid> aclGuids = new ArrayList<IPSGuid>();\n for (IPSAcl acl : aclList)\n {\n PSAclImpl aclImpl = (PSAclImpl) acl;\n aclGuids.add(aclImpl.getGUID());\n aclImpl.setDescription(\"modified\");\n for (IPSAclEntry entry : aclImpl.getEntries())\n entry.addPermission(PSPermissions.DELETE);\n\n PSAclEntryImpl newEntry = new PSAclEntryImpl();\n newEntry.setPrincipal(new PSTypedPrincipal(\"test1\",\n PrincipalTypes.ROLE));\n newEntry.addPermission(PSPermissions.DELETE);\n aclImpl.addEntry(newEntry);\n }\n\n IPSAclService aclService = PSAclServiceLocator.getAclService();\n aclService.saveAcls(aclList);\n List<IPSAcl> loadList = aclService.loadAclsModifiable(aclGuids);\n assertEquals(aclList, loadList);\n aclList = loadList;\n\n // check basic roundtrip\n aclService.saveAcls(aclList);\n loadList = aclService.loadAclsModifiable(aclGuids);\n assertEquals(aclList, loadList);\n aclList = loadList;\n\n // remove a permission\n for (IPSAcl acl : aclList)\n {\n PSAclImpl aclImpl = (PSAclImpl) acl;\n for (IPSAclEntry entry : aclImpl.getEntries())\n {\n entry.removePermission(PSPermissions.DELETE);\n assertFalse(entry.checkPermission(PSPermissions.DELETE));\n }\n }\n\n aclService.saveAcls(aclList);\n loadList = aclService.loadAclsModifiable(aclGuids);\n assertEquals(aclList, loadList);\n aclList = loadList;\n\n for (IPSAcl acl : aclList)\n {\n PSAclImpl aclImpl = (PSAclImpl) acl;\n List<IPSAclEntry> entries = new ArrayList<IPSAclEntry>(\n aclImpl.getEntries());\n for (IPSAclEntry entry : entries)\n {\n if (!aclImpl.isOwner(entry.getPrincipal()))\n {\n aclImpl.removeEntry((PSAclEntryImpl)entry);\n assertTrue(aclImpl.findEntry(entry.getPrincipal()) == null);\n }\n }\n }\n\n aclService.saveAcls(aclList);\n loadList = aclService.loadAcls(aclGuids);\n assertEquals(aclList, loadList);\n\n return loadList;\n }", "public List<Sesion_Cap> addSesionCapSP(Sesion_Cap sesion_Cap);", "public void addListOrders(Model model) {\n\t\tUser user = getAuthenticatedUser();\n\t\tif (user.getRole().getName().equals(\"COURIER\")) {\n\t\t\tmodel.addAttribute(\"listOrders\", orderDetailsService.getCourierOrders(user.getUserId()));\n\t\t} else if (user.getRole().getName().equals(\"CUSTOMER\")) {\n\t\t\tmodel.addAttribute(\"listOrders\", orderDetailsService.getCustomerOrders(user.getUserId()));\n\t\t} else if (user.getRole().getName().equals(\"ADMINISTRATOR\")) {\n\t\t\tmodel.addAttribute(\"listOrders\", orderDetailsService.getAllOrderDetails());\n\t\t}\n\n\t}", "public ArrayList<Session> getSessionList(){\n \n ArrayList<Session> sessionList= new ArrayList<Session>(); \n Connection connection=getConnection();\n \n String studentGroup = combo_studentGroup.getSelectedItem().toString();\n\n String query= \"SELECT `SessionId`,`Tag`,`StudentGroup`,`Subject`,`NoOfStudents`,`SessionDuration` FROM `sessions` WHERE StudentGroup='\"+studentGroup+\"' \";\n Statement st;\n ResultSet rs;\n\n try{\n st = connection.createStatement();\n rs= st.executeQuery(query);\n Session session;\n while(rs.next()){\n session = new Session(rs.getInt(\"SessionId\"),rs.getString(\"Tag\"),rs.getString(\"StudentGroup\"),rs.getString(\"Subject\"),rs.getInt(\"NoOfStudents\"),rs.getInt(\"SessionDuration\"));\n sessionList.add(session);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return sessionList; \n }", "@RequestMapping(method = RequestMethod.GET,value = \"/\")\n public String HomePage(Model model, HttpSession session){\n model.addAttribute(\"listBook\",bookService.books());\n\n ShoppingCart shoppingCart = (ShoppingCart) session.getAttribute(\"list-order\");\n\n if (shoppingCart != null){\n\n Set<CartItem> listCartItem = new HashSet<>();\n for (Long hashMapKey:shoppingCart.getItems().keySet()\n ) {\n CartItem cartItem = shoppingCart.getItems().get(hashMapKey);\n listCartItem.add(cartItem);\n System.out.println(\"quantity : \" + cartItem.getQuantity());\n System.out.println(\"size list cart : \" + listCartItem.size());\n }\n model.addAttribute(\"listCartItem\",listCartItem);\n }\n\n\n return \"homePage\";\n }", "public List<SessionDetails> getSessionDetails(JobStep js);" ]
[ "0.5970514", "0.58473426", "0.5651242", "0.5537774", "0.55006963", "0.53738284", "0.53509176", "0.53276885", "0.5323527", "0.52997196", "0.52750945", "0.52678686", "0.52413636", "0.5208583", "0.5187343", "0.5175341", "0.5173869", "0.51674384", "0.5150561", "0.5126995", "0.51266927", "0.51191336", "0.511602", "0.5102639", "0.5074145", "0.5051474", "0.5034643", "0.50334394", "0.5017614", "0.5011956", "0.4994343", "0.49879926", "0.49856803", "0.49633572", "0.4933719", "0.4928103", "0.49257675", "0.49241796", "0.49108022", "0.4899603", "0.48912004", "0.4890999", "0.4875037", "0.48595187", "0.48437107", "0.48358226", "0.48326048", "0.48305625", "0.48294672", "0.48238885", "0.4821489", "0.48025486", "0.4798965", "0.47956464", "0.47871834", "0.47840947", "0.47836545", "0.47831318", "0.47802395", "0.4777571", "0.4776253", "0.47752538", "0.47740468", "0.4769775", "0.4769506", "0.4768542", "0.47638032", "0.47624907", "0.47553307", "0.4752369", "0.4752312", "0.47488502", "0.47373617", "0.47366282", "0.4731109", "0.47275513", "0.47194046", "0.47159958", "0.47139034", "0.47064155", "0.46985015", "0.46883503", "0.4687381", "0.46868488", "0.46801835", "0.46764395", "0.467404", "0.4673961", "0.46718287", "0.46686473", "0.46675265", "0.46616724", "0.46575326", "0.46574014", "0.46500582", "0.46484223", "0.46464804", "0.4645331", "0.4645283", "0.46353826", "0.46291447" ]
0.0
-1
Create I/O reactor configuration
private void init() throws IOReactorException { IOReactorConfig ioReactorConfig = IOReactorConfig.custom() .setIoThreadCount(Runtime.getRuntime().availableProcessors()) .setConnectTimeout(BaseConstants.TIMEOUT_SECONDS * 1000) .setSoTimeout(BaseConstants.TIMEOUT_SECONDS * 1000) .build(); // Create a custom I/O reactort ConnectingIOReactor ioReactor = new DefaultConnectingIOReactor(ioReactorConfig); PoolingNHttpClientConnectionManager connManager = new PoolingNHttpClientConnectionManager(ioReactor); // Configure total max or per route limits for persistent connections // that can be kept in the pool or leased by the connection manager. connManager.setMaxTotal(100); connManager.setDefaultMaxPerRoute(100); HttpAsyncClientBuilder clientBuilder = HttpAsyncClients.custom(); RequestConfig.Builder requestConfig = RequestConfig.custom(); // 连接超时,连接建立时间 requestConfig.setConnectTimeout(BaseConstants.TIMEOUT_SECONDS * 1000); // 请求超时,数据传输过程中数据包之间间隔的最大时间 requestConfig.setSocketTimeout(BaseConstants.TIMEOUT_SECONDS * 1000); // 使用连接池来管理连接,从连接池获取连接的超时时间 requestConfig.setConnectionRequestTimeout(BaseConstants.TIMEOUT_SECONDS * 1000); clientBuilder.setConnectionManager(connManager); clientBuilder.setDefaultRequestConfig(requestConfig.build()); httpclient = clientBuilder.build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract IOpipeConfiguration config();", "public DefaultConnectingIOReactor(final IOEventHandlerFactory eventHandlerFactory) {\n this(eventHandlerFactory, null, null);\n }", "@Override\n protected void configure() {\n MorphiaLoggerFactory.reset();\n init();\n bind();\n }", "private void init() {\n\n\t\tgroup = new NioEventLoopGroup();\n\t\ttry {\n\t\t\thandler = new MoocHandler();\n\t\t\tBootstrap b = new Bootstrap();\n\t\t\t\n\t\t\t\n\t\t\t//ManagementInitializer ci=new ManagementInitializer(false);\n\t\t\t\n\t\t\tMoocInitializer mi=new MoocInitializer(handler, false);\n\t\t\t\n\t\t\t\n\t\t\t//ManagemenetIntializer ci = new ManagemenetIntializer(handler, false);\n\t\t\t//b.group(group).channel(NioSocketChannel.class).handler(handler);\n\t\t\tb.group(group).channel(NioSocketChannel.class).handler(mi);\n\t\t\tb.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 10000);\n\t\t\tb.option(ChannelOption.TCP_NODELAY, true);\n\t\t\tb.option(ChannelOption.SO_KEEPALIVE, true);\n\n\t\t\t// Make the connection attempt.\n\t\t\tchannel = b.connect(host, port).syncUninterruptibly();\n\n\t\t\t// want to monitor the connection to the server s.t. if we loose the\n\t\t\t// connection, we can try to re-establish it.\n\t\t\tChannelClosedListener ccl = new ChannelClosedListener(this);\n\t\t\tchannel.channel().closeFuture().addListener(ccl);\n\t\t\tSystem.out.println(\" channle is \"+channel);\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"failed to initialize the client connection\", ex);\n\n\t\t}\n\n\t\t// start outbound message processor\n\t//\tworker = new OutboundWorker(this);\n\t//\tworker.start();\n\t}", "@Override\n public void createNewIO(boolean isForReconnect) {\n }", "public ServerConfiguration(InputStream in) throws IOException, URISyntaxException {\n super(in);\n\n\n Objects.requireNonNull(properties.getProperty(BIND_ADDRESS), \"Host and port are required\");\n Objects.requireNonNull(getMesosMaster(), \"Mesos address must not be empty\");\n\n uri = new URI(properties.getProperty(BIND_ADDRESS));\n // List<String> invalidBindAddresses = Arrays.asList(INVALID_BIND_ADDRESS);\n // loopback addresses must also be checked, but for now inttest uses localhost address\n if (uri.getHost().equals(\"0.0.0.0\")) {\n LOG.error(\"retz.bind is told to Mesos; {}/32 should not be assigned\", uri.getHost());\n throw new IllegalArgumentException();\n }\n if (uri.getPort() < 1024 || 65536 < uri.getPort()) {\n LOG.error(\"retz.bind must not use well known port, or just too large: {}\", uri.getPort());\n throw new IllegalArgumentException();\n }\n\n maxSimultaneousJobs = Integer.parseInt(properties.getProperty(MAX_SIMULTANEOUS_JOBS, DEFAULT_MAX_SIMULTANEOUS_JOBS));\n if (maxSimultaneousJobs < 1) {\n throw new IllegalArgumentException(MAX_SIMULTANEOUS_JOBS + \" must be positive\");\n }\n\n databaseURL = properties.getProperty(DATABASE_URL, DEFAULT_DATABASE_URL);\n databaseDriver = properties.getProperty(DATABASE_DRIVER_CLASS, DEFAULT_DATABASE_DRIVER_CLASS);\n\n if (\"root\".equals(getUserName()) || getUserName().isEmpty()) {\n LOG.error(\"{} must not be 'root' nor empty\", USER_NAME);\n throw new IllegalArgumentException(\"Invalid parameter: \" + USER_NAME);\n }\n\n if (getRefuseSeconds() < 1) {\n throw new IllegalArgumentException(MESOS_REFUSE_SECONDS + \" must be positive integer\");\n }\n\n if (getJobQueueType() == null) {\n throw new IllegalArgumentException(JOB_QUEUE_TYPE + \" must be either fir or all\");\n }\n\n LOG.info(\"Mesos master={}, principal={}, role={}, {}={}, {}={}, {}={}, {}={}, {}={}, {}={}, {}={}, {}={}, {}={}, {}={}\",\n getMesosMaster(), getPrincipal(), getRole(), MAX_SIMULTANEOUS_JOBS, maxSimultaneousJobs,\n DATABASE_URL, databaseURL,\n MAX_STOCK_SIZE, getMaxStockSize(),\n USER_NAME, getUserName(),\n MESOS_REFUSE_SECONDS, getRefuseSeconds(),\n GC_LEEWAY, getGcLeeway(),\n GC_INTERVAL, getGcInterval(),\n MAX_LIST_JOB_SIZE, getMaxJobSize(),\n MAX_FILE_SIZE, getMaxFileSize(),\n JOB_QUEUE_TYPE, getJobQueueType());\n LOG.info(\"{}={}\", MESOS_FAILOVER_TIMEOUT, getFailoverTimeout());\n }", "private void initialize() throws IOException {\n final Random random;\n if (params.getCustomSeed() == null) {\n random = RandomUtils.getRandomPrintSeed();\n } else {\n System.out.println(\"Using custom seed: \" + params.getCustomSeed());\n random = new Random(params.getCustomSeed());\n }\n\n final EventEmitterFactory factory = new EventEmitterFactory(random, addressBook);\n\n factoryConfig.accept(factory);\n\n caller = callerSupplier.apply(factory);\n listener = listenerSupplier.apply(factory);\n\n final Pair<Connection, Connection> connections =\n connectionFactory.createConnections(caller.getNodeId(), listener.getNodeId());\n caller.setSyncConnection(connections.left());\n listener.setSyncConnection(connections.right());\n\n customInitialization.accept(caller, listener);\n }", "private ClientExecutorEngine() {\n ClientConfigReader.readConfig();\n DrillConnector.initConnection();\n HzConfigReader.readConfig();\n }", "public static Configurable configure() {\n return new RedisManager.ConfigurableImpl();\n }", "private static void initConfig() {\n /*\n * Human IO\n */\n {\n /*\n * Constants\n */\n {\n /*\n * Joysticks\n */\n {\n addToConstants(\"joysticks.left\", 0);\n addToConstants(\"joysticks.right\", 1);\n addToConstants(\"joysticks.operator\", 2);\n }\n\n /*\n * Buttons and axis\n */\n {\n }\n }\n }\n\n /*\n * RobotIO\n */\n {\n /*\n * Constants\n */\n {\n /*\n * Kicker\n */\n addToConstantsA(\"kicker.encoder.distPerPulse\", 360.0 / 1024.0);\n }\n }\n\n /*\n * Chassis\n */\n {\n /*\n * Constants\n */\n {\n }\n\n /*\n * Variables\n */\n {\n }\n }\n\n /*\n * Kicker\n */\n {\n /*\n * Constants\n */\n {\n addToConstants(\"kicker.kick.normal\", 1.75);\n addToConstants(\"kicker.kick.timeout\", 0.75);\n\n addToConstants(\"kicker.shaken.voltage\", -0.3316);\n addToConstants(\"kicker.shaken.tolerance\", 3.0);\n\n addToConstants(\"kicker.zero.voltage\", 0.8);\n addToConstants(\"kicker.zero.duration\", 0.75);\n }\n\n /*\n * Variables\n */\n {\n }\n }\n\n /*\n * Gripper\n */\n {\n /*\n * Constants\n */\n {\n addToConstants(\"gripper.collection.voltage\", 0.82);\n addToConstants(\"gripper.ejection.voltage\", -0.45);\n }\n }\n }", "public FabricConfigurator() {\n\n }", "@Override\n public void init(Map<String, String> config) {\n>>>>>>> DpStarterKit-fs:starter/src/main/java/com/datapipeline/starter/ConsoleOutputSinkPipe.java\n config.forEach((k, v) -> System.out.println(\"Key: \" + k + \" / Value: \" + v));\n String host = config.get(\"host\");\n String port = config.get(\"port\");\n MongoDBHelper.INSTANCE.getMongoClient(host, Integer.valueOf(port));\n }", "public void configure() {\n\n // here is a sample which processes the input files\n // (leaving them in place - see the 'noop' flag)\n // then performs content based routing on the message using XPath\n\n }", "private ConfigReader() {\r\n\t\tsuper();\r\n\t}", "@Override\n public void configure() throws Exception {TODO: implement using data generators\n// final SensorDataProcessor sensorDataProcessor = new SensorDataProcessor();\n//\n// from(restBaseUri() + \"/sensorData?httpMethodRestrict=GET\")\n// .setHeader(\"address\", simple(CONFIG.getSensorAddress()))\n// .setBody(simple(\"\"))\n// .to(\"bulldog:i2c?readLength=2\")\n// .process(sensorDataProcessor)\n// .marshal().json(JsonLibrary.Jackson, true);\n//\n from(\"timer:sensorBroadcast?period=5000\")\n .setBody(simple(\"\\\"temperature\\\" : 10, \\\"humidity\\\" : 100, \"))\n .log(\"firing\")\n .to(\"websocket:weather?sendToAll=true\");\n\n HouseBean houseBean = HouseBean.getInstance();\n\n from(restBaseUri() + \"/all?httpMethodRestrict=GET\")\n .setProperty(\"type\", simple(Object.class.getSimpleName()))\n .bean(houseBean, \"objInfo\")\n .marshal().json(JsonLibrary.Jackson, true);\n\n\n }", "@Override\n protected Connector createConnector(Map<String, Object> readChannels, String[] writeChannels, Boolean useTcsSimulation) {\n return new Connector(readChannels, writeChannels);\n }", "@Bean()\n Mono<Connection> connectionMono(RabbitProperties rabbitProperties) {\n ConnectionFactory connectionFactory = new ConnectionFactory();\n connectionFactory.setHost(rabbitProperties.getHost());\n connectionFactory.setPort(rabbitProperties.getPort());\n connectionFactory.setUsername(rabbitProperties.getUsername());\n connectionFactory.setPassword(rabbitProperties.getPassword());\n return Mono.fromCallable(() -> connectionFactory.newConnection(\"reactor-rabbit\")).cache();\n }", "void configure();", "private void createAndListen() {\n\n\t\t\n\t}", "public interface ClientConfig\n{\n /**\n * Allow IRC version 3 capabilities.\n *\n * @return returns <tt>true</tt> if IRC version 3 capabilities are allowed,\n * or <tt>false</tt> if we explicitly disallow anything related to\n * IRCv3. (Disabling may regress the connection to \"classic\" IRC\n * (RFC1459).)\n */\n boolean isVersion3Allowed();\n\n /**\n * Enable contact presence periodic task for keeping track of contact\n * presence (offline or online).\n *\n * @return returns <tt>true</tt> to use contact presence task or\n * <tt>false</tt> otherwise.\n */\n boolean isContactPresenceTaskEnabled();\n\n /**\n * Enable channel presence periodic task for keeping track of channel\n * members presence (available or away).\n *\n * @return returns <tt>true</tt> to use channel presence task or\n * <tt>false</tt> otherwise.\n */\n boolean isChannelPresenceTaskEnabled();\n\n /**\n * Use a SOCKS proxy to connect to the configured IRC server.\n *\n * The proxy may be <tt>null</tt> which means that no proxy will be used\n * when connecting to the IRC server.\n *\n * @return returns Proxy configuration or <tt>null</tt> if no proxy should\n * be used.\n */\n Proxy getProxy();\n\n /**\n * Resolve addresses through the proxy, instead of using a (local) DNS\n * resolver.\n *\n * @return returns <tt>true</tt> if addresses should be resolved through\n * proxy, or <tt>false</tt> if it should NOT be resolved through\n * proxy\n */\n boolean isResolveByProxy();\n\n /**\n * Get the configured SASL authentication data.\n *\n * @return Returns the SASL authentication data if set, or null if no\n * authentication data is set. If no authentication data is set,\n * this would mean SASL authentication need not be used.\n */\n SASL getSASL();\n\n /**\n * SASL authentication data.\n *\n * @author Danny van Heumen\n */\n static interface SASL\n {\n /**\n * Get user name.\n *\n * @return Returns the user name.\n */\n String getUser();\n\n /**\n * Get password.\n *\n * @return Returns the password.\n */\n String getPass();\n\n /**\n * Get authorization role.\n *\n * @return Returns the authorization role if set. (Optional)\n */\n String getRole();\n }\n}", "public static StreamBuilder configure() {\n return new EventStreamBuilder();\n }", "@Override\n protected void configure() {\n }", "protected void configClient() throws IOException, InterruptedException {\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardThreeGreen.getDeckNumber(),deckProductionCardThreeGreen.getDeck()));\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardThreeBlu.getDeckNumber(),deckProductionCardThreeBlu.getDeck()));\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardThreeYellow.getDeckNumber(),deckProductionCardThreeYellow.getDeck()));\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardThreeViolet.getDeckNumber(),deckProductionCardThreeViolet.getDeck()));\n\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardTwoGreen.getDeckNumber(),deckProductionCardTwoGreen.getDeck()));\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardTwoBlu.getDeckNumber(),deckProductionCardTwoBlu.getDeck()));\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardTwoYellow.getDeckNumber(),deckProductionCardTwoYellow.getDeck()));\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardTwoViolet.getDeckNumber(),deckProductionCardTwoViolet.getDeck()));\n\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardOneGreen.getDeckNumber(),deckProductionCardOneGreen.getDeck()));\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardOneBlu.getDeckNumber(),deckProductionCardOneBlu.getDeck()));\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardOneYellow.getDeckNumber(),deckProductionCardOneYellow.getDeck()));\n notifyObserver(new DeckProductionCardConfigMessage(deckProductionCardOneViolet.getDeckNumber(),deckProductionCardOneViolet.getDeck()));\n\n notifyObserver(new ConfigurationMarketMessage(market.getInitialMarbleList()));\n\n\n }", "@Override\n public void configure() {\n }", "protected CommonSettings() {\r\n port = 1099;\r\n objectName = \"library\";\r\n }", "public AutomationConfigurator() throws IOException {\n\n try {\n input = new FileInputStream(projectpath+\"/AutomationConfigurator.properties\");\n prop.load(input);\n }catch (IOException e)\n {\n LOGGER.info(\"AutomationConfigurator.properties file doesn't exist at \"+projectpath);\n\n }finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }", "@Override\n public void configure() throws Exception {\n restConfiguration()\n .component(\"netty-http\")\n .host(\"0.0.0.0\")\n .port(8099);\n\n rest()\n .post(\"/webhook\")\n .route()\n .setBody(constant(\"{\\\"ok\\\": true}\"))\n .endRest()\n .post(\"/slack/api/conversations.list\")\n .route()\n .setBody(constant(\n \"{\\\"ok\\\":true,\\\"channels\\\":[{\\\"id\\\":\\\"ABC12345\\\",\\\"name\\\":\\\"general\\\",\\\"is_channel\\\":true,\\\"created\\\":1571904169}]}\"))\n .endRest()\n .post(\"/slack/api/conversations.history\")\n .route()\n .setBody(constant(\n \"{\\\"ok\\\":true,\\\"messages\\\":[{\\\"type\\\":\\\"message\\\",\\\"subtype\\\":\\\"bot_message\\\",\\\"text\\\":\\\"Hello Camel Quarkus Slack\\\"\"\n + \",\\\"ts\\\":\\\"1571912155.001300\\\",\\\"bot_id\\\":\\\"ABC12345C\\\"}],\\\"has_more\\\":true\"\n + \",\\\"channel_actions_ts\\\":null,\\\"channel_actions_count\\\":0}\"));\n }", "@Override\n\t\t\tprotected void configure() {\n\t\t\t}", "@Override\n public void initEndpoint() throws IOException, InstantiationException {\n SelectorThreadConfig.configure(this);\n \n initFileCacheFactory();\n initAlgorithm();\n initPipeline();\n initMonitoringLevel();\n \n setName(\"SelectorThread-\" + getPort());\n \n try{\n if (getInet() == null) {\n setServerSocket(getServerSocketFactory().createSocket(getPort(),\n getSsBackLog()));\n } else {\n setServerSocket(getServerSocketFactory().createSocket(getPort(), \n getSsBackLog(), getInet()));\n }\n getServerSocket().setReuseAddress(true); \n } catch (SocketException ex){\n throw new BindException(ex.getMessage() + \": \" + getPort());\n }\n \n getServerSocket().setSoTimeout(getServerTimeout());\n initReadBlockingTask(getMinReadQueueLength());\n \n setInitialized(true); \n getLogger().log(Level.FINE,\"Initializing Grizzly Blocking Mode\"); \n // Since NIO is not used, rely on Coyote for buffering the response.\n setBufferResponse(true);\n }", "private void setupTimers() throws IOException {\n synchronized (_timersSetupLock) {\n if (!_timersSetup) {\n _timersSetup = true;\n _channel.init();\n if (_protocol == NetworkProtocol.UDP) {\n _channel.heartbeat();\n _lastHeartbeat = System.currentTimeMillis();\n }\n _periodicTimer = new Timer(true);\n _periodicTimer.schedule(new PeriodicWriter(), PERIOD);\n }\n }\n }", "public ConfigurationReader getCrInstance() throws IOException {\n\tConfigurationReader cr = new ConfigurationReader();\n\treturn cr;\n\n\t}", "public interface Client<IN, OUT, CONN extends Channel<IN,OUT>> extends Publisher<CONN> {\n\n\t/**\n\t * Open a channel to the configured address and return a {@link reactor.rx.Promise} that will be\n\t * fulfilled with the connected {@link Channel}.\n\t *\n\t * @return {@link reactor.rx.Promise} that will be completed when connected\n\t */\n\tPromise<Boolean> open();\n\n\t/**\n\t * Open a channel to the configured address and return a {@link reactor.rx..Stream} that will be populated\n\t * by the {@link ChannelStream} every time a connection or reconnection is made.\n\t *\n\t * @param reconnect\n\t * \t\tthe reconnection strategy to use when disconnects happen\n\t *\n\t * @return a Stream of reconnected boolean to signal connection success\n\t */\n\tStream<Boolean> open(Reconnect reconnect);\n\n\t/**\n\t * Close this client and the underlying channel.\n\t * @return a Promise successful when closed\n\t */\n\tPromise<Boolean> close();\n\n\t/**\n\t * A global handling pipeline that will be called on each new connection and will listen for signals emitted\n\t * by the returned Publisher to write back.\n\t *\n\t * @return this\n\t */\n\tClient<IN, OUT, CONN> pipeline(Function<CONN, ? extends Publisher<? extends OUT>> serviceFunction);\n\n\n}", "@Override\n\tpublic void configure() {\n\t\t\n\t}", "public static void initialize() throws IOException {\n log.info(\"Initialization started.\");\n // Set log4j configs\n PropertyConfigurator.configure(Paths.get(\".\", Constants.LOG4J_PROPERTIES).toString());\n // Read client configurations\n configs = PropertyReader.loadProperties(Paths.get(\".\", Constants.CONFIGURATION_PROPERTIES).toString());\n\n // Set trust-store configurations to the JVM\n log.info(\"Setting trust store configurations to JVM.\");\n if (configs.getProperty(Constants.TRUST_STORE_PASSWORD) != null && configs.getProperty(Constants.TRUST_STORE_TYPE) != null\n && configs.getProperty(Constants.TRUST_STORE) != null) {\n System.setProperty(\"javax.net.ssl.trustStore\", Paths.get(\".\", configs.getProperty(Constants.TRUST_STORE)).toString());\n System.setProperty(\"javax.net.ssl.trustStorePassword\", configs.getProperty(Constants.TRUST_STORE_PASSWORD));\n System.setProperty(\"javax.net.ssl.trustStoreType\", configs.getProperty(Constants.TRUST_STORE_TYPE));\n } else {\n log.error(\"Trust store configurations missing in the configurations.properties file. Aborting process.\");\n System.exit(1);\n }\n log.info(\"Initialization finished.\");\n }", "@Emitter\n public InputSource createWorker() {\n return new InputSource(configuration, jsonFactory, jsonb, service, members);\n \n }", "public interface IConfiguration extends ISessionAwareObject {\n\n\tString ENV_SOPECO_HOME = \"SOPECO_HOME\";\n\n\tString CONF_LOGGER_CONFIG_FILE_NAME = \"sopeco.config.loggerConfigFileName\";\n\n\tString CONF_SCENARIO_DESCRIPTION_FILE_NAME = \"sopeco.config.measurementSpecFileName\";\n\n\tString CONF_SCENARIO_DESCRIPTION = \"sopeco.config.measurementSpecification\";\n\n\tString CONF_MEASUREMENT_CONTROLLER_URI = \"sopeco.config.measurementControllerURI\";\n\n\tString CONF_MEASUREMENT_CONTROLLER_CLASS_NAME = \"sopeco.config.measurementControllerClassName\";\n\n\tString CONF_APP_NAME = \"sopeco.config.applicationName\";\n\n\tString CONF_MAIN_CLASS = \"sopeco.config.mainClass\";\n\n\tString CONF_MEC_ACQUISITION_TIMEOUT = \"sopeco.config.MECAcquisitionTimeout\";\n\n\n\tString CONF_MEC_SOCKET_RECONNECT_DELAY = \"sopeco.config.mec.reconnectDelay\";\n\n\tString CONF_HTTP_PROXY_HOST = \"sopeco.config.httpProxyHost\";\n\t\n\tString CONF_HTTP_PROXY_PORT = \"sopeco.config.httpProxyPort\";\n\n\t\n\tString CONF_DEFINITION_CHANGE_HANDLING_MODE = \"sopeco.config.definitionChangeHandlingMode\";\n\tString DCHM_ARCHIVE = \"archive\";\n\tString DCHM_DISCARD = \"discard\";\n\n\tString CONF_SCENARIO_DEFINITION_PACKAGE = \"sopeco.config.xml.scenarioDefinitionPackage\";\n\t/** Holds the path to the root folder of SoPeCo. */\n\tString CONF_APP_ROOT_FOLDER = \"sopeco.config.rootFolder\";\n\tString CONF_EXPERIMENT_EXECUTION_SELECTION = \"sopeco.engine.experimentExecutionSelection\";\n\t/**\n\t * Holds the path to the plugins folder, relative to the root folder of\n\t * SoPeCo.\n\t */\n\tString CONF_PLUGINS_DIRECTORIES = \"sopeco.config.pluginsDirs\";\n\n\tString CLA_EXTENSION_ID = \"org.sopeco.config.commandlinearguments\";\n\n\t/** Folder for configuration files relative to the application root folder */\n\tString DEFAULT_CONFIG_FOLDER_NAME = \"config\";\n\n\tString DEFAULT_CONFIG_FILE_NAME = \"sopeco-defaults.conf\";\n\n\tString DIR_SEPARATOR = \":\";\n\t\n\tString EXPERIMENT_RUN_ABORT = \"org.sopeco.experiment.run.abort\";\n\n\t/**\n\t * Export the configuration as a key-value map. Both, the default ones and the ones in the\n\t * system environment are included.\n\t * \n\t * @return a key-value representation of the configuration\n\t * \n\t * @deprecated Use {@code exportConfiguration()} and {@code exportDefaultConfiguration}.\n\t */\n\t@Deprecated\n\tMap<String, Object> getProperties();\n\t\n\t/**\n\t * Exports the configuration as a key-value map. The default configuration and the ones\n\t * defined in the system environment are not included. \n\t * \n\t * @return a key-value representation of the configuration\n\t */\n\tMap<String, Object> exportConfiguration();\n\t\n\t/**\n\t * Exports the default configuration as a key-value map. The actual configuration and the ones\n\t * defined in the system environment are not included. \n\t * \n\t * @return a key-value representation of the configuration\n\t */\n\tMap<String, Object> exportDefaultConfiguration();\n\t\n\t/**\n\t * Imports the configuration as a key-value map. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid importConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Imports the default configuration as a key-value map. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid importDefaultConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Overwrites the configuration with the given configuration. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid overwriteConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Overwrites the default configuration with the given configuration. \n\t * \n\t * @param config a key-value map representation of the default configuration\n\t */\n\tvoid overwriteDefaultConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Returns the configured value of the given property in SoPeCo.\n\t * \n\t * It first looks up the current SoPeCo configuration, if there is no value\n\t * defined there, looks up the system properties, if no value is defined\n\t * there, then loads it from the default values; in case of no default\n\t * value, returns null.\n\t * \n\t * @param key\n\t * property key\n\t * @return Returns the configured value of the given property in SoPeCo.\n\t */\n\tObject getProperty(String key);\n\n\t/**\n\t * Returns the configured value of the given property as a String.\n\t * \n\t * This method calls the {@link Object#toString()} of the property value and\n\t * is for convenience only. If the given property is not set, it returns\n\t * <code>null</code>.\n\t * \n\t * @param key\n\t * property key\n\t * \n\t * @see #getProperty(String)\n\t * @return Returns the configured value of the given property as a String.\n\t */\n\tString getPropertyAsStr(String key);\n\n\t/**\n\t * Returns the configured value of the given property as a Boolean value.\n\t * \n\t * This method uses the {@link #getPropertyAsStr(String)} and interprets\n\t * values 'yes' and 'true' (case insensitive) as a Boolean <code>true</code>\n\t * value and all other values as <code>false</code>. If the value of the\n\t * given property is <code>null</code> it returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a boolean\n\t * \n\t * @see #getProperty(String)\n\t */\n\tboolean getPropertyAsBoolean(String key, boolean defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as a Long value.\n\t * \n\t * This method uses the {@link Long.#parseLong(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a long\n\t * \n\t * @see #getProperty(String)\n\t */\n\tlong getPropertyAsLong(String key, long defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as a Double value.\n\t * \n\t * This method uses the {@link Double.#parseLong(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a double\n\t * \n\t * @see #getProperty(String)\n\t */\n\tdouble getPropertyAsDouble(String key, double defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as an Integer value.\n\t * \n\t * This method uses the {@link Integer.#parseInt(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as an int\n\t * \n\t * @see #getProperty(String)\n\t */\n\tint getPropertyAsInteger(String key, int defaultValue);\n\n\t/**\n\t * Sets the value of a property for the current run.\n\t * \n\t * @param key\n\t * property key\n\t * @param value\n\t * property value\n\t */\n\tvoid setProperty(String key, Object value);\n\n\t/**\n\t * Clears the value of the given property in all layers of configuration,\n\t * including the system property environment.\n\t * \n\t * @param key the property\n\t */\n\tvoid clearProperty(String key);\n\n\t/**\n\t * Returns the default value (ignoring the current runtime configuration)\n\t * for a given property.\n\t * \n\t * @param key\n\t * porperty key\n\t * \n\t * @return Returns the default value for a given property.\n\t */\n\tObject getDefaultValue(String key);\n\n\t/**\n\t * Processes the given command line arguments, the effects of which will\n\t * reflect in the global property values.\n\t * \n\t * @param args\n\t * command line arguments\n\t * @throws ConfigurationException\n\t * if there is any problem with command line arguments\n\t */\n\tvoid processCommandLineArguments(String[] args) throws ConfigurationException;\n\n\t/**\n\t * Loads default configurations from a file name. If the file name is not an\n\t * absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the system class loader. See\n\t * {@link #loadDefaultConfiguration(ClassLoader, String)} for loading\n\t * default configuration providing a class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t * \n\t */\n\tvoid loadDefaultConfiguration(String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads default configurations from a file name. If the file name is not an\n\t * absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the given class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param classLoader\n\t * an instance of a class loader\n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadDefaultConfiguration(ClassLoader classLoader, String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads user-level configurations from a file name. If the file name is not\n\t * an absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the system class loader. See\n\t * {@link #loadConfiguration(ClassLoader, String)} for loading default\n\t * configuration providing a class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadConfiguration(String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads user-level configurations from a file name. If the file name is not\n\t * an absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finally the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the given class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param classLoader\n\t * an instance of a class loader\n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadConfiguration(ClassLoader classLoader, String fileName) throws ConfigurationException;\n\n\t/**\n\t * Performs any post processing of configuration settings that may be\n\t * required.\n\t * \n\t * This method can be called after manually making changes to the\n\t * configuration values. It should be called automatically after a call to\n\t * {@link IConfiguration#loadConfiguration(String)}.\n\t */\n\tvoid applyConfiguration();\n\n\t/**\n\t * Sets the value of scenario description file name.\n\t * \n\t * @param fileName\n\t * file name\n\t * @see #CONF_SCENARIO_DESCRIPTION_FILE_NAME\n\t */\n\tvoid setScenarioDescriptionFileName(String fileName);\n\n\t/**\n\t * Sets the sceanrio description as the given object. This property in\n\t * effect overrides the value of scenario description file name (\n\t * {@link IConfiguration#CONF_SCENARIO_DESCRIPTION_FILE_NAME}).\n\t * \n\t * @param sceanrioDescription\n\t * an instance of a scenario description\n\t * @see #CONF_SCENARIO_DESCRIPTION\n\t */\n\tvoid setScenarioDescription(Object sceanrioDescription);\n\n\t/**\n\t * Sets the measurement controller URI.\n\t * \n\t * @param uriStr\n\t * a URI as an String\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tvoid setMeasurementControllerURI(String uriStr) throws ConfigurationException;\n\n\t/**\n\t * Sets the measurement controller class name. This also sets the\n\t * measurement controller URI to be '<code>class://[CLASS_NAME]</code>'.\n\t * \n\t * @param className\n\t * the full name of the class\n\t * @see #CONF_MEASUREMENT_CONTROLLER_CLASS_NAME\n\t */\n\tvoid setMeasurementControllerClassName(String className);\n\n\t/**\n\t * Sets the application name for this executable instance.\n\t * \n\t * @param appName\n\t * an application name\n\t */\n\tvoid setApplicationName(String appName);\n\n\t/**\n\t * Sets the main class that runs this thread. This will also be used in\n\t * finding the root folder\n\t * \n\t * @param mainClass\n\t * class to be set as main class\n\t */\n\tvoid setMainClass(Class<?> mainClass);\n\n\t/**\n\t * Sets the logger configuration file name and triggers logger\n\t * configuration.\n\t * \n\t * @param fileName\n\t * a file name\n\t */\n\tvoid setLoggerConfigFileName(String fileName);\n\n\t/**\n\t * @return Returns the application root directory.\n\t */\n\tString getAppRootDirectory();\n\n\t/**\n\t * Sets the application root directory to the given folder.\n\t * \n\t * @param rootDir\n\t * path to a folder\n\t */\n\tvoid setAppRootDirectory(String rootDir);\n\n\t/**\n\t * @return Returns the application's configuration directory.\n\t */\n\tString getAppConfDirectory();\n\n\t/**\n\t * @return Returns the value of scenario description file name.\n\t * \n\t * @see #CONF_SCENARIO_DESCRIPTION_FILE_NAME\n\t */\n\tString getScenarioDescriptionFileName();\n\n\t/**\n\t * @return returns the sceanrio description as the given object.\n\t * \n\t * @see #CONF_SCENARIO_DESCRIPTION\n\t */\n\tObject getScenarioDescription();\n\n\t/**\n\t * @return Returns the measurement controller URI.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tURI getMeasurementControllerURI();\n\n\t/**\n\t * @return Returns the measurement controller URI as a String.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tString getMeasurementControllerURIAsStr();\n\n\t/**\n\t * @return Returns the measurement controller class name.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_CLASS_NAME\n\t */\n\tString getMeasurementControllerClassName();\n\n\t/**\n\t * @return Returns the application name for this executable instance.\n\t */\n\tString getApplicationName();\n\n\t/**\n\t * @return Returns the main class that runs this thread. This value must\n\t * have been set by a call to\n\t * {@link IConfiguration#setMainClass(Class)}.\n\t */\n\tClass<?> getMainClass();\n\n\t/**\n\t * Writes the current configuration values into a file.\n\t * \n\t * @param fileName\n\t * the name of the file\n\t * @throws IOException\n\t * if exporting the configuration fails\n\t */\n\tvoid writeConfiguration(String fileName) throws IOException;\n\n\t/**\n\t * Overrides the values of this configuration with those of the given\n\t * configuration.\n\t * \n\t * @param configuration\n\t * with the new values\n\t */\n\t void overwrite(IConfiguration configuration);\n\n\t /**\n\t * Adds a new command-line extension to the configuration component. \n\t * \n\t * The same extension will not be added twice. \n\t * \n\t * @param extension a command-line extension\n\t */\n\t void addCommandLineExtension(ICommandLineArgumentsExtension extension);\n\t \n\t /**\n\t * Removes a new command-line extension from the configuration component. \n\t * \n\t * @param extension a command-line extension\n\t */\n\t void removeCommandLineExtension(ICommandLineArgumentsExtension extension);\n}", "public void initChannel() {\n //or channelFactory\n bootstrap().channel(NioServerSocketChannel.class);\n }", "public ServerConfigImpl() {\n this.expectations = new ExpectationsImpl(globalEncoders, globalDecoders);\n this.requirements = new RequirementsImpl();\n }", "public MechanismReadOptions() {\n initComponents();\n }", "private void init() throws IOException {\n if (Files.exists(getBaseConfigPath()) && !Files.isDirectory(getBaseConfigPath())) {\n throw new IOException(\"Base config path exists and is not a directory \" + getBaseConfigPath());\n }\n\n if (!Files.exists(getBaseConfigPath())) {\n Files.createDirectories(getBaseConfigPath());\n }\n\n\n if (Files.exists(nodeIdPath) && !Files.isRegularFile(nodeIdPath)) {\n throw new IOException(\"NodeId file is not a regular directory!\");\n }\n\n if (Files.exists(clusterNamePath) && !Files.isRegularFile(clusterNamePath)) {\n throw new IOException(\"Cluster name is not a regular directory!\");\n }\n\n if (!Files.isWritable(getBaseConfigPath())) {\n throw new IOException(\"Can't write to the base configuration path!\");\n }\n }", "public abstract void configure(String[] args);", "@Override\n\tpublic void configure() throws Exception {\n\t\t\n\t\tfrom(\"timer:tc\")\n\t\t.process(new Processor() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void process(Exchange exchange) throws Exception {\n\t\t\t\t\n\t\t\t\tRebootDM rdm = new RebootDM();\n\t\t\t\trdm.setHost(\"h1.com\");\n\t\t\t\trdm.setAlertOps(\"string\");\n\t\t\t\trdm.setRestart(\"false\");\n\t\t\t\trdm.setRestartCount(1);\n\t\t\t\trdm.setRestartedOn(0);\n\n\t\t\t\t\n\t\t\t\tcom.host.att.json.pojo.Object obj = new com.host.att.json.pojo.Object();\n\t\t\t\tobj.setRebootDM(rdm);\n\t\t\t\t\n\t\t\t\tInsert ins = new Insert();\n\t\t\t\tins.setObject(obj);\n\n\t\t\t\t\n\t\t\t\tList<Command> cmdList = new ArrayList<Command>();\n\t\t\t\tCommand cmd = new Command();\n\t\t\t\tcmd.setInsert(ins);\n\t\t\t\tcmdList.add(cmd);\n\n\t\t\t\tRoot r = new Root();\n\t\t\t\tr.setCommands(cmdList);\n\t\t\t\t\n\t\t\t\tObjectMapper om = new ObjectMapper();\n\t\t\t\tString writeValueAsString = om.writeValueAsString(r);\n\t\t\t\tRoot readValue = om.readValue(writeValueAsString, Root.class);\n\t\t\t\tSystem.out.println(readValue);\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\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});\n\t\t\n\t\t\n\t}", "@Override\n\tprotected void initInternal() throws LifecycleException {\n bootstrap = new ServerBootstrap();\n //初始化\n bootstrap.group(bossGroup, workGroup)\n .channel(NioServerSocketChannel.class)\n .childHandler(new ChannelInitializer<SocketChannel>(){\n\n\t @Override\n\t protected void initChannel(SocketChannel ch) throws Exception {\n\t // TODO Auto-generated method stub\n\t //目前是每次new出来 由于4.0不允许加入加入一个ChannelHandler超过一次,除非它由@Sharable注解,或者每次new出来\n\t //ch.pipeline().addLast(\"idleChannelTester\", new IdleStateHandler(10, 5, 30));\n\t //ch.pipeline().addLast(\"keepaliveTimeoutHandler\", keepaliveTimeoutHandler);\n\t \t \n\t // server端接收到的是httpRequest,所以要使用HttpRequestDecoder进行解码\n\t ch.pipeline().addLast(\"http-encoder\", new HttpRequestDecoder()); \n\t //将解析出来的http报文的数据组装成为封装好的httpRequest对象 \n\t ch.pipeline().addLast(\"http-aggregator\", new HttpObjectAggregator(1024 * 1024));\n\t // server端发送的是httpResponse,所以要使用HttpResponseEncoder进行编码\n\t ch.pipeline().addLast(\"http-decoder\", new HttpResponseEncoder());\n\t //主要用于处理大数据流\n\t ch.pipeline().addLast(\"http-chunkedWriter\", new ChunkedWriteHandler()); \n\t //加强业务逻辑处理效率\n\t if(null == eventExecutor){\n\t \tch.pipeline().addLast(\"http-processor\",new HttpHandler()); \n\t }else {\n\t\t ch.pipeline().addLast(eventExecutor,\"http-processor\",new HttpHandler()); \n\t }\n\t \n\t /**\n\t // 这里只允许增加无状态允许共享的ChannelHandler,对于有状态的channelHandler需要重写\n\t // getPipelineFactory()方法\n\t for (Entry<String, ChannelHandler> channelHandler : channelHandlers.entrySet()) {\n\t ch.pipeline().addLast(channelHandler.getKey(), channelHandler.getValue());\n\t }\n\t \n\t **/\n\t }\n \n }) \n .option(ChannelOption.SO_BACKLOG, 1024000)\n .option(ChannelOption.SO_REUSEADDR, true)\n .childOption(ChannelOption.SO_REUSEADDR, true)\n .childOption(ChannelOption.TCP_NODELAY, true) //tcp\n .childOption(ChannelOption.SO_KEEPALIVE, true);\n\t}", "@Override\n\tpublic void configure() {\n\n\t}", "public void setup (SProperties config) throws IOException {\n\tString sysLogging =\n\t System.getProperty (\"java.util.logging.config.file\");\n\tif (sysLogging != null) {\n\t System.out.println (\"Logging configure by system property\");\n\t} else {\n\t Logger eh = getLogger (config, \"error\", null, \"rabbit\",\n\t\t\t\t \"org.khelekore.rnio\");\n\t eh.info (\"Log level set to: \" + eh.getLevel ());\n\t}\n\taccessLog = getLogger (config, \"access\", new AccessFormatter (),\n\t\t\t \"rabbit_access\");\n }", "public WstxOutputFactory() {\n mConfig = WriterConfig.createFullDefaults();\n }", "@Override\r\n\tprotected void configure() {\n\t\t\r\n\t}", "private void configureMqtt() {\n\t\tString protocol = null;\n\t\tint port = getPortNumber();\n\t\tif (isWebSocket()) {\n\t\t\tprotocol = \"ws://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = WS_PORT;\n\t\t\t}\n\t\t} else {\n\t\t\tprotocol = \"tcp://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = MQTT_PORT;\n\t\t\t}\n\t\t}\n\t\t\n\t\tString mqttServer = getMQTTServer();\n\t\tif(mqttServer != null){\n\t\t\tserverURI = protocol + mqttServer + \":\" + port;\n\t\t} else {\n\t\t\tserverURI = protocol + getOrgId() + \".\" + MESSAGING + \".\" + this.getDomain() + \":\" + port;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tpersistence = new MemoryPersistence();\n\t\t\tmqttAsyncClient = new MqttAsyncClient(serverURI, clientId, persistence);\n\t\t\tmqttAsyncClient.setCallback(mqttCallback);\n\t\t\tmqttClientOptions = new MqttConnectOptions();\n\t\t\tif (clientUsername != null) {\n\t\t\t\tmqttClientOptions.setUserName(clientUsername);\n\t\t\t}\n\t\t\tif (clientPassword != null) {\n\t\t\t\tmqttClientOptions.setPassword(clientPassword.toCharArray());\n\t\t\t}\n\t\t\tmqttClientOptions.setCleanSession(this.isCleanSession());\n\t\t\tif(this.keepAliveInterval != -1) {\n\t\t\t\tmqttClientOptions.setKeepAliveInterval(this.keepAliveInterval);\n\t\t\t}\n\t\t\tmqttClientOptions.setMaxInflight(getMaxInflight());\n\t\t} catch (MqttException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void construct() throws IOException {\n \n }", "private CuratorFramework createCurator() {\n // Create list of Servers\n final String serverStr = sharedZookeeperTestResource.getZookeeperConnectString();\n final List<String> serverList = Arrays.asList(Tools.splitAndTrim(serverStr));\n\n // Create config map\n final Map<String, Object> config = new HashMap<>();\n config.put(\"servers\", serverList);\n\n return CuratorFactory.createNewCuratorInstance(config, getClass().getSimpleName());\n }", "public void init() throws ExcecaoGrafo, SecurityException, IOException {\n\t\tlogger.setUseParentHandlers(handleConsole);\n\t\tlogger.addHandler(fileHandler);\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tString startTimeString = calendar.get(Calendar.DAY_OF_MONTH)+\".\"+\n\t\t\t\tcalendar.getDisplayName(Calendar.MONTH, Calendar.SHORT,Locale.getDefault())+\"-\"+\n\t\t\t\tcalendar.get(Calendar.HOUR_OF_DAY)+\":\"+calendar.get(Calendar.MINUTE)+\":\"+calendar.get(Calendar.SECOND);\n\t\tstart = System.currentTimeMillis();\n\t\tstartTemp = start;\n\t\tbuilder.append(\"Simulation started at \").append(startTimeString).append(System.lineSeparator());\n\n\t\tbuilder.append(\"Simulation Setup:\").append(System.lineSeparator());\n\t\tbuilder.append(\"Data Directory: \" + directory).append(System.lineSeparator());\n\t\tbuilder.append(\"RSSA heuristic policy: \" + algorithm).append(System.lineSeparator());\n\t\tbuilder.append(\"Switch Type: \" + this.switchingType).append(System.lineSeparator());\n\t\tbuilder.append(\"Arrival Process: \" + (isIncremental? \"INCREMENTAL\" : \"POISSON\")).append(System.lineSeparator());\n\t\tbuilder.append(\"Network topology: \" + topology).append(System.lineSeparator());\n\t\tbuilder.append(\"Numbef of K shortest paths: \" + numKShortestPaths).append(System.lineSeparator());\n\t\tbuilder.append(\"number of requests in total: \" + requestLimit).append(System.lineSeparator());\n\t\tbuilder.append(\"Total spectrum slots per fiber: \" + spectralSlots).append(System.lineSeparator());\n\t\tbuilder.append(\"Total of spatial dimensions: \" + spatialDimension).append(System.lineSeparator());\n\t\tbuilder.append(\"Shortest slots per Super Channel: \" + numCarrierSlots).append(System.lineSeparator());\n\t\tbuilder.append(\"SIGNAL BANDWIDTH: \").append(signalBw).append(\" GHz\").append(System.lineSeparator());\n\t\tbuilder.append(\"CHANNEL SPACING: \").append(channelSpacing).append(\" GHz\").append(System.lineSeparator());\n\t\tbuilder.append(\"BAND GUARD WIDTH: \").append(bandGuard).append(\" GHz\").append(System.lineSeparator());\n\t\tbuilder.append(\"SLOT WIDTH: \").append(slotBw).append(\" GHz\").append(System.lineSeparator());\n\t\tbuilder.append(\"MODULATION FORMAT: \").append(modulationFormat).append(System.lineSeparator());\n\n\t\tbuilder.append(\"Seed: \" + seed).append(System.lineSeparator());\n\t\tbuilder.append(\"Mean holding time: \" + holdingTime ).append(System.lineSeparator());\n\t\tbuilder.append(\"initial load: \" + initialLoad ).append(System.lineSeparator());\n\t\tbuilder.append(\"end load: \" + endLoad).append(System.lineSeparator());\n\t\tbuilder.append(\"Load incremental factor: \" + incrementalLoad).append(System.lineSeparator());\n\t\tbuilder.append(\"Use fixed bandwidth: \" + isFixedBandwidth).append(System.lineSeparator());\n\t\tbuilder.append(\"Debug: \" + debug).append(System.lineSeparator());\n\t\tbuilder.append(\"Fiber Type: \" + (isFewModeFiber? \"Few Mode Fiber\" : \"Multicore Fiber\")).append(System.lineSeparator());\n\n\n\t\t//gets the graph\n\t\tgraph = (Grafo) NetworkTopology.getGraph(NetworkTopology.valueOf(topology));\n\t\tif (graph == null) {\n\t\t\tthrow new ExcecaoGrafo(\"The value of topology: '\" + topology + \"' returned null!\");\n\t\t}\n\t\t//sets the total input network load\n\t\ttotalInputNetworkLoad = spectralSlots*spatialDimension*graph.getEnlaces().tamanho()/2;\n\t\tsetTotalInputLoad(totalInputNetworkLoad);\n\n\t\t//creates the spatial super channel classes list\n\t\tcreateSpaceClasses();\n\n\t\t//calculates the mean slot size\n\t\tArrayList<Integer> slotsSizeList = new ArrayList<>();\n\t\tfor (OpticalSuperChannel osc : spaceSC_List) {\n\t\t\tslotsSizeList.add((int)osc.getNumSlots());\n\t\t}\n\t\tmeanSlotSize = mean( slotsSizeList );;\n\n\t\t//calculates the mean distance size hop by hop\n\t\tmeanDistanceSize = getAverageHopsNumberPerPath(graph);\n\n\t\tbuilder.append(\"Total Input Network Load: \" + totalInputNetworkLoad).append(System.lineSeparator());\n\t\tbuilder.append(\"Mean Slot Size: \" + meanSlotSize).append(System.lineSeparator());\n\t\tbuilder.append(\"Mean Distance Size: \" + meanDistanceSize).append(System.lineSeparator());\n\n\t\tlogger.info(builder.toString());\n\n\t}", "Factory getFactory()\n {\n return configfile.factory;\n }", "public interface DataStreamClient {\n\n Logger LOG = LoggerFactory.getLogger(DataStreamClient.class);\n\n /** Return Client id. */\n ClientId getId();\n\n /** Return Streamer Api instance. */\n DataStreamApi getDataStreamApi();\n\n /**\n * send to server via streaming.\n * Return a completable future.\n */\n\n /** To build {@link DataStreamClient} objects */\n class Builder {\n private ClientId clientId;\n private DataStreamClientRpc dataStreamClientRpc;\n private RaftProperties properties;\n private Parameters parameters;\n\n private Builder() {}\n\n public DataStreamClientImpl build(){\n if (clientId == null) {\n clientId = ClientId.randomId();\n }\n if (properties != null) {\n if (dataStreamClientRpc == null) {\n final SupportedDataStreamType type = RaftConfigKeys.DataStream.type(properties, LOG::info);\n dataStreamClientRpc = DataStreamClientFactory.cast(type.newFactory(parameters))\n .newDataStreamClientRpc(clientId, properties);\n }\n }\n return new DataStreamClientImpl(clientId, properties, dataStreamClientRpc);\n }\n\n public Builder setClientId(ClientId clientId) {\n this.clientId = clientId;\n return this;\n }\n\n public Builder setParameters(Parameters parameters) {\n this.parameters = parameters;\n return this;\n }\n\n public Builder setDataStreamClientRpc(DataStreamClientRpc dataStreamClientRpc){\n this.dataStreamClientRpc = dataStreamClientRpc;\n return this;\n }\n\n public Builder setProperties(RaftProperties properties) {\n this.properties = properties;\n return this;\n }\n }\n\n}", "@Override\n\tprotected void configure() {\n\n\t}", "@Override\r\n \tpublic void initialize() {\n \t\tThreadRenamingRunnable.setThreadNameDeterminer(ThreadNameDeterminer.CURRENT);\r\n \r\n \t\tInetSocketAddress address;\r\n \r\n \t\tif (m_host == null) {\r\n \t\t\taddress = new InetSocketAddress(m_port);\r\n \t\t} else {\r\n \t\t\taddress = new InetSocketAddress(m_host, m_port);\r\n \t\t}\r\n \r\n \t\tm_queue = new LinkedBlockingQueue<ChannelBuffer>(m_queueSize);\r\n \r\n \t\tExecutorService bossExecutor = Threads.forPool().getCachedThreadPool(\"Cat-TcpSocketReceiver-Boss-\" + address);\r\n \t\tExecutorService workerExecutor = Threads.forPool().getCachedThreadPool(\"Cat-TcpSocketReceiver-Worker\");\r\n \t\tChannelFactory factory = new NioServerSocketChannelFactory(bossExecutor, workerExecutor);\r\n \t\tServerBootstrap bootstrap = new ServerBootstrap(factory);\r\n \r\n \t\tbootstrap.setPipelineFactory(new ChannelPipelineFactory() {\r\n \t\t\tpublic ChannelPipeline getPipeline() {\r\n \t\t\t\treturn Channels.pipeline(new MyDecoder(), new MyHandler());\r\n \t\t\t}\r\n \t\t});\r\n \r\n \t\tbootstrap.setOption(\"child.tcpNoDelay\", true);\r\n \t\tbootstrap.setOption(\"child.keepAlive\", true);\r\n \t\tbootstrap.bind(address);\r\n \r\n \t\tm_logger.info(\"CAT server started at \" + address);\r\n \t\tm_factory = factory;\r\n \t}", "public WuicFacadeBuilder() {\n contextPath = \"\";\n warmUpStrategy = WuicFacade.WarmupStrategy.NONE;\n multipleConfigInTagSupport = Boolean.TRUE;\n wuicXmlPath = getClass().getResource(\"/wuic.xml\");\n useDefaultContextBuilderConfigurator = Boolean.TRUE;\n objectBuilderInspector = null;\n configurators = new ArrayList<ContextBuilderConfigurator>();\n }", "@Override\n public void configure(Context context) {\n this.context = context;\n this.projectConfigure = new ProjectConfigure(context.getString(\"project_conf_path\", \"\"));\n //初始化变量\n ProjectConfigure.BaseConfigure baseSinkConf = projectConfigure.checkUpdate();\n copyBaseSinkConf(baseSinkConf);\n\n Preconditions.checkArgument(this.batchSize > 0, \"batchSize must be greater than 0\");\n\n this.filePath = (String) Preconditions.checkNotNull((Object)context.getString(\"hdfs.path\"), \"hdfs.path is required\");\n if (this.filePath.endsWith(DIRECTORY_DELIMITER)) {\n this.filePath += DIRECTORY_DELIMITER;\n }\n\n if (this.sinkCounter == null) {\n this.sinkCounter = new SinkCounter(this.getName());\n }\n }", "@Override\r\n\tpublic void configure() throws Exception {\n\t\tfrom(\"timer:foo?period=1s\")\r\n\t\t.transform()\r\n\t\t.simple(\"HeartBeatRouter3 rounting at ${date:now:yyyy-MM-dd HH:MM:SS}\")\r\n\t\t.to(\"stream:out\");\r\n\t}", "public interface HubConfig {\n\n String HUB_MODULES_DEPLOY_TIMESTAMPS_PROPERTIES = \"hub-modules-deploy-timestamps.properties\";\n String USER_MODULES_DEPLOY_TIMESTAMPS_PROPERTIES = \"user-modules-deploy-timestamps.properties\";\n String USER_CONTENT_DEPLOY_TIMESTAMPS_PROPERTIES = \"user-content-deploy-timestamps.properties\";\n\n String HUB_CONFIG_DIR = \"hub-internal-config\";\n String USER_CONFIG_DIR = \"user-config\";\n String ENTITY_CONFIG_DIR = \"entity-config\";\n String STAGING_ENTITY_SEARCH_OPTIONS_FILE = \"staging-entity-options.xml\";\n String FINAL_ENTITY_SEARCH_OPTIONS_FILE = \"final-entity-options.xml\";\n\n String DEFAULT_STAGING_NAME = \"data-hub-STAGING\";\n String DEFAULT_FINAL_NAME = \"data-hub-FINAL\";\n String DEFAULT_TRACE_NAME = \"data-hub-TRACING\";\n String DEFAULT_JOB_NAME = \"data-hub-JOBS\";\n String DEFAULT_MODULES_DB_NAME = \"data-hub-MODULES\";\n String DEFAULT_TRIGGERS_DB_NAME = \"data-hub-TRIGGERS\";\n String DEFAULT_SCHEMAS_DB_NAME = \"data-hub-SCHEMAS\";\n\n String DEFAULT_ROLE_NAME = \"data-hub-role\";\n String DEFAULT_USER_NAME = \"data-hub-user\";\n\n Integer DEFAULT_STAGING_PORT = 8010;\n Integer DEFAULT_FINAL_PORT = 8011;\n Integer DEFAULT_TRACE_PORT = 8012;\n Integer DEFAULT_JOB_PORT = 8013;\n\n String DEFAULT_AUTH_METHOD = \"digest\";\n\n String DEFAULT_SCHEME = \"http\";\n\n Integer DEFAULT_FORESTS_PER_HOST = 4;\n\n String DEFAULT_CUSTOM_FOREST_PATH = \"forests\";\n\n String getHost();\n\n // staging\n String getStagingDbName();\n void setStagingDbName(String stagingDbName);\n\n String getStagingHttpName();\n void setStagingHttpName(String stagingHttpName);\n\n Integer getStagingForestsPerHost();\n void setStagingForestsPerHost(Integer stagingForestsPerHost);\n\n Integer getStagingPort();\n void setStagingPort(Integer stagingPort);\n\n String getStagingAuthMethod();\n void setStagingAuthMethod(String stagingAuthMethod);\n\n String getStagingScheme();\n void setStagingScheme(String stagingScheme);\n\n boolean getStagingSimpleSsl();\n void setStagingSimpleSsl(boolean stagingSimpleSsl);\n\n @JsonIgnore\n SSLContext getStagingSslContext();\n void setStagingSslContext(SSLContext stagingSslContext);\n\n @JsonIgnore\n DatabaseClientFactory.SSLHostnameVerifier getStagingSslHostnameVerifier();\n void setStagingSslHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier stagingSslHostnameVerifier);\n\n String getStagingCertFile();\n void setStagingCertFile(String stagingCertFile);\n\n String getStagingCertPassword();\n void setStagingCertPassword(String stagingCertPassword);\n\n String getStagingExternalName();\n void setStagingExternalName(String stagingExternalName);\n\n // final\n String getFinalDbName();\n void setFinalDbName(String finalDbName);\n\n String getFinalHttpName();\n void setFinalHttpName(String finalHttpName);\n\n Integer getFinalForestsPerHost();\n void setFinalForestsPerHost(Integer finalForestsPerHost);\n\n Integer getFinalPort();\n void setFinalPort(Integer finalPort);\n\n String getFinalAuthMethod();\n void setFinalAuthMethod(String finalAuthMethod);\n\n String getFinalScheme();\n void setFinalScheme(String finalScheme);\n\n @JsonIgnore\n boolean getFinalSimpleSsl();\n void setFinalSimpleSsl(boolean finalSimpleSsl);\n\n @JsonIgnore\n SSLContext getFinalSslContext();\n void setFinalSslContext(SSLContext finalSslContext);\n\n DatabaseClientFactory.SSLHostnameVerifier getFinalSslHostnameVerifier();\n void setFinalSslHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier finalSslHostnameVerifier);\n\n String getFinalCertFile();\n void setFinalCertFile(String finalCertFile);\n\n String getFinalCertPassword();\n void setFinalCertPassword(String finalCertPassword);\n\n String getFinalExternalName();\n void setFinalExternalName(String finalExternalName);\n\n // traces\n String getTraceDbName();\n void setTraceDbName(String traceDbName);\n\n String getTraceHttpName();\n void setTraceHttpName(String traceHttpName);\n\n Integer getTraceForestsPerHost();\n void setTraceForestsPerHost(Integer traceForestsPerHost);\n\n Integer getTracePort();\n void setTracePort(Integer tracePort);\n\n String getTraceAuthMethod();\n void setTraceAuthMethod(String traceAuthMethod);\n\n String getTraceScheme();\n void setTraceScheme(String traceScheme);\n\n @JsonIgnore\n boolean getTraceSimpleSsl();\n void setTraceSimpleSsl(boolean traceSimpleSsl);\n\n @JsonIgnore\n SSLContext getTraceSslContext();\n void setTraceSslContext(SSLContext traceSslContext);\n\n DatabaseClientFactory.SSLHostnameVerifier getTraceSslHostnameVerifier();\n void setTraceSslHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier traceSslHostnameVerifier);\n\n String getTraceCertFile();\n void setTraceCertFile(String traceCertFile);\n\n String getTraceCertPassword();\n void setTraceCertPassword(String traceCertPassword);\n\n String getTraceExternalName();\n void setTraceExternalName(String traceExternalName);\n\n // jobs\n String getJobDbName();\n void setJobDbName(String jobDbName);\n\n String getJobHttpName();\n void setJobHttpName(String jobHttpName);\n\n Integer getJobForestsPerHost();\n void setJobForestsPerHost(Integer jobForestsPerHost);\n\n Integer getJobPort();\n void setJobPort(Integer jobPort);\n\n String getJobAuthMethod();\n void setJobAuthMethod(String jobAuthMethod);\n\n String getJobScheme();\n void setJobScheme(String jobScheme);\n\n boolean getJobSimpleSsl();\n void setJobSimpleSsl(boolean jobSimpleSsl);\n\n @JsonIgnore\n SSLContext getJobSslContext();\n void setJobSslContext(SSLContext jobSslContext);\n\n @JsonIgnore\n DatabaseClientFactory.SSLHostnameVerifier getJobSslHostnameVerifier();\n void setJobSslHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier jobSslHostnameVerifier);\n\n String getJobCertFile();\n void setJobCertFile(String jobCertFile);\n\n String getJobCertPassword();\n void setJobCertPassword(String jobCertPassword);\n\n String getJobExternalName();\n void setJobExternalName(String jobExternalName);\n\n String getModulesDbName();\n void setModulesDbName(String modulesDbName);\n\n Integer getModulesForestsPerHost();\n void setModulesForestsPerHost(Integer modulesForestsPerHost);\n\n\n // triggers\n String getTriggersDbName();\n void setTriggersDbName(String triggersDbName);\n\n Integer getTriggersForestsPerHost();\n void setTriggersForestsPerHost(Integer triggersForestsPerHost);\n\n // schemas\n String getSchemasDbName();\n void setSchemasDbName(String schemasDbName);\n\n Integer getSchemasForestsPerHost();\n void setSchemasForestsPerHost(Integer schemasForestsPerHost);\n\n // roles and users\n String getHubRoleName();\n void setHubRoleName(String hubRoleName);\n\n String getHubUserName();\n void setHubUserName(String hubUserName);\n\n\n String[] getLoadBalancerHosts();\n void setLoadBalancerHosts(String[] loadBalancerHosts);\n\n String getCustomForestPath();\n void setCustomForestPath(String customForestPath);\n\n String getModulePermissions();\n void setModulePermissions(String modulePermissions);\n\n String getProjectDir();\n void setProjectDir(String projectDir);\n\n @JsonIgnore\n HubProject getHubProject();\n\n void initHubProject();\n\n @JsonIgnore\n String getHubModulesDeployTimestampFile();\n @JsonIgnore\n String getUserModulesDeployTimestampFile();\n @JsonIgnore\n File getUserContentDeployTimestampFile();\n\n @JsonIgnore\n ManageConfig getManageConfig();\n void setManageConfig(ManageConfig manageConfig);\n @JsonIgnore\n ManageClient getManageClient();\n void setManageClient(ManageClient manageClient);\n\n @JsonIgnore\n AdminConfig getAdminConfig();\n void setAdminConfig(AdminConfig adminConfig);\n @JsonIgnore\n AdminManager getAdminManager();\n void setAdminManager(AdminManager adminManager);\n\n DatabaseClient newAppServicesClient();\n\n /**\n * Creates a new DatabaseClient for accessing the Staging database\n * @return - a DatabaseClient\n */\n DatabaseClient newStagingClient();\n\n DatabaseClient newStagingClient(String databaseName);\n\n /**\n * Creates a new DatabaseClient for accessing the Final database\n * @return - a DatabaseClient\n */\n DatabaseClient newFinalClient();\n\n /**\n * Creates a new DatabaseClient for accessing the Job database\n * @return - a DatabaseClient\n */\n DatabaseClient newJobDbClient();\n\n /**\n * Creates a new DatabaseClient for accessing the Trace database\n * @return - a DatabaseClient\n */\n DatabaseClient newTraceDbClient();\n\n /**\n * Creates a new DatabaseClient for accessing the Hub Modules database\n * @return - a DatabaseClient\n */\n DatabaseClient newModulesDbClient();\n\n @JsonIgnore\n Path getHubPluginsDir();\n @JsonIgnore\n Path getHubEntitiesDir();\n\n @JsonIgnore\n Path getHubConfigDir();\n @JsonIgnore\n Path getHubDatabaseDir();\n @JsonIgnore\n Path getHubServersDir();\n @JsonIgnore\n Path getHubSecurityDir();\n @JsonIgnore\n Path getUserSecurityDir();\n @JsonIgnore\n Path getUserConfigDir();\n @JsonIgnore\n Path getUserDatabaseDir();\n @JsonIgnore\n Path getEntityDatabaseDir();\n @JsonIgnore\n Path getUserServersDir();\n @JsonIgnore\n Path getHubMimetypesDir();\n\n @JsonIgnore\n AppConfig getAppConfig();\n void setAppConfig(AppConfig config);\n\n void setAppConfig(AppConfig config, boolean skipUpdate);\n\n String getJarVersion() throws IOException;\n}", "public interface IOControl {\n\n /**\n * Requests event notifications to be triggered when the underlying\n * channel is ready for input operations.\n */\n void requestInput();\n\n /**\n * Suspends event notifications about the underlying channel being\n * ready for input operations.\n */\n void suspendInput();\n\n /**\n * Requests event notifications to be triggered when the underlying\n * channel is ready for output operations.\n */\n void requestOutput();\n\n /**\n * Suspends event notifications about the underlying channel being\n * ready for output operations.\n */\n void suspendOutput();\n\n /**\n * Shuts down the underlying channel.\n *\n * @throws IOException in an error occurs\n */\n void shutdown() throws IOException;\n\n}", "public Config() {\n this(System.getProperties());\n\n }", "private EventProcessorBuilder baseConfig(MockEventSender es) {\n return sendEvents().eventSender(senderFactory(es));\n }", "public void run()\n {\n // open selector\n try\n {\n _selector = Selector.open();\n }\n catch (Exception exception)\n {\n System.out.println(\"selector open \");\n System.exit(-1);\n }\n \n // create reactor\n if (ProviderPerfConfig.useReactor()) // use UPA VA Reactor\n {\n _reactorOptions.clear();\n if ((_reactor = ReactorFactory.createReactor(_reactorOptions, _errorInfo)) == null)\n {\n System.out.printf(\"Reactor creation failed: %s\\n\", _errorInfo.error().text());\n System.exit(ReactorReturnCodes.FAILURE);\n }\n \n // register selector with reactor's reactorChannel.\n try\n {\n _reactor.reactorChannel().selectableChannel().register(_selector,\n SelectionKey.OP_READ,\n _reactor.reactorChannel());\n }\n catch (ClosedChannelException e)\n {\n System.out.println(\"selector register failed: \" + e.getLocalizedMessage());\n System.exit(ReactorReturnCodes.FAILURE);\n }\n }\n \n _directoryProvider.serviceName(ProviderPerfConfig.serviceName());\n _directoryProvider.serviceId(ProviderPerfConfig.serviceId());\n _directoryProvider.openLimit(ProviderPerfConfig.openLimit());\n _directoryProvider.initService(_xmlMsgData);\n\n _loginProvider.initDefaultPosition();\n _loginProvider.applicationId(applicationId);\n _loginProvider.applicationName(applicationName);\n\n if (!_dictionaryProvider.loadDictionary(_error))\n {\n System.out.println(\"Error loading dictionary: \" + _error.text());\n System.exit(CodecReturnCodes.FAILURE);\n }\n \n getProvThreadInfo().dictionary(_dictionaryProvider.dictionary());\n \n _reactorInitialized = true;\n\n // Determine update rates on per-tick basis\n long nextTickTime = initNextTickTime();\n \n // this is the main loop\n while (!shutdown())\n {\n if (!ProviderPerfConfig.useReactor()) // use UPA Channel\n {\n \tif (nextTickTime <= currentTime())\n \t{\n \t nextTickTime = nextTickTime(nextTickTime);\n \t\tsendMsgBurst(nextTickTime);\n \t\t_channelHandler.processNewChannels();\n \t}\n\t \t_channelHandler.readChannels(nextTickTime, _error);\n\t \t_channelHandler.checkPings();\n }\n else // use UPA VA Reactor\n {\n if (nextTickTime <= currentTime())\n {\n nextTickTime = nextTickTime(nextTickTime);\n sendMsgBurst(nextTickTime);\n }\n\n Set<SelectionKey> keySet = null;\n\n // set select time \n try\n {\n int selectRetVal;\n long selTime = (long)(selectTime(nextTickTime) / _divisor);\n \n if (selTime <= 0)\n selectRetVal = _selector.selectNow();\n else\n selectRetVal = _selector.select(selTime);\n \n if (selectRetVal > 0)\n {\n keySet = _selector.selectedKeys();\n }\n }\n catch (IOException e1)\n {\n System.exit(CodecReturnCodes.FAILURE);\n }\n\n // nothing to read or write\n if (keySet == null)\n continue;\n\n Iterator<SelectionKey> iter = keySet.iterator();\n while (iter.hasNext())\n {\n SelectionKey key = iter.next();\n iter.remove();\n if(!key.isValid())\n continue;\n if (key.isReadable())\n {\n int ret;\n \n // retrieve associated reactor channel and dispatch on that channel \n ReactorChannel reactorChnl = (ReactorChannel)key.attachment();\n \n /* read until no more to read */\n while ((ret = reactorChnl.dispatch(_dispatchOptions, _errorInfo)) > 0 && !shutdown()) {}\n if (ret == ReactorReturnCodes.FAILURE)\n {\n if (reactorChnl.state() != ReactorChannel.State.CLOSED &&\n reactorChnl.state() != ReactorChannel.State.DOWN_RECONNECTING)\n {\n System.out.println(\"ReactorChannel dispatch failed\");\n reactorChnl.close(_errorInfo);\n System.exit(CodecReturnCodes.FAILURE);\n }\n }\n }\n }\n }\n }\n\n shutdownAck(true);\n }", "public Peer start() throws IOException {\n\t\tboolean isBehindFirewallSet = false;\n\t\tif (behindFirewall == null) {\n\t\t\tbehindFirewall = false;\n\t\t} else {\n\t\t\tisBehindFirewallSet = true;\n\t\t}\n\n\t\tboolean isTcpPortSet = false;\n\t\tif (tcpPort == -1) {\n\t\t\ttcpPort = Ports.DEFAULT_PORT;\n\t\t} else {\n\t\t\tisTcpPortSet = true;\n\t\t}\n\t\t\n\t\tboolean isUdpPortSet = false;\n\t\tif (udpPort == -1) {\n\t\t\tudpPort = Ports.DEFAULT_PORT;\n\t\t} else {\n\t\t\tisUdpPortSet = true;\n\t\t}\n\t\t\n\t\tif (channelServerConfiguration == null) {\n\t\t\tchannelServerConfiguration = createDefaultChannelServerConfiguration();\n\t\t} \n\t\t\n\t\t//post config\n\t\tif(isBehindFirewallSet) {\n\t\t\tchannelServerConfiguration.behindFirewall(behindFirewall);\n\t\t}\n\t\tif(isTcpPortSet || isUdpPortSet) {\n\t\t\tchannelServerConfiguration.ports(new Ports(tcpPort, udpPort));\n\t\t}\n\t\t\n\t\tif(tcpPortForwarding == -1 && udpPortForwarding == -1) {\n\t\t\tchannelServerConfiguration.portsForwarding(new Ports());\n\t\t} else {\n\t\t\tchannelServerConfiguration.portsForwarding(new Ports(tcpPortForwarding, udpPortForwarding));\n\t\t}\n\t\t\n\t\tif (channelClientConfiguration == null) {\n\t\t\tchannelClientConfiguration = createDefaultChannelClientConfiguration();\n\t\t}\n\t\tif (keyPair == null) {\n\t\t\tkeyPair = EMPTY_KEY_PAIR;\n\t\t}\n\t\tif (p2pID == -1) {\n\t\t\tp2pID = 1;\n\t\t}\n\t\t\n\t\t\n\t\tif (bindings == null) {\n\t\t\tbindings = new Bindings();\n\t\t} else {\n\t\t\tchannelServerConfiguration.bindings(bindings);\n\t\t\tchannelClientConfiguration.bindings(bindings);\n\t\t}\n\t\tif (peerMap == null) {\n\t\t\tpeerMap = new PeerMap(new PeerMapConfiguration(peerId));\n\t\t}\n\n\t\tif (masterPeer == null && scheduledExecutorService == null) {\n\t\t\tscheduledExecutorService = Executors.newScheduledThreadPool(1);\n\t\t}\n\n\t\tif(sendBehavior == null) {\n\t\t\tsendBehavior = new DefaultSendBehavior();\n\t\t}\n\t\t\n\t\tfinal PeerCreator peerCreator;\n\t\tif (masterPeer != null) {\n\t\t\tpeerCreator = new PeerCreator(masterPeer.peerCreator(), peerId, keyPair);\n\t\t} else {\n\t\t\tpeerCreator = new PeerCreator(p2pID, peerId, keyPair, channelServerConfiguration,\n\t\t\t channelClientConfiguration, scheduledExecutorService, sendBehavior);\n\t\t}\n\n\t\tfinal Peer peer = new Peer(p2pID, peerId, peerCreator);\n\t\t//add shutdown hook to master peer\n\t\tif (masterPeer != null) {\n\t\t\tmasterPeer.addShutdownListener(new Shutdown() {\n\t\t\t\t@Override\n\t\t\t\tpublic BaseFuture shutdown() {\n\t\t\t\t\treturn peer.shutdown();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tPeerBean peerBean = peerCreator.peerBean();\n\t\t\n\t\tpeerBean.addPeerStatusListener(peerMap);\n\t\t\n\t\tConnectionBean connectionBean = peerCreator.connectionBean();\n\n\t\tpeerBean.peerMap(peerMap);\n\t\tpeerBean.keyPair(keyPair);\n\n\t\tif (bloomfilterFactory == null) {\n\t\t\tpeerBean.bloomfilterFactory(new DefaultBloomfilterFactory());\n\t\t}\n\n\t\tif (broadcastHandler == null) {\n\t\t\tbroadcastHandler = new StructuredBroadcastHandler();\n\t\t}\n\t\tbroadcastHandler.init(peer);\n\t\t\n\t\t// set/enable RPC\n\n\t\tif (isEnableHandShakeRPC()) {\n\t\t\tPingRPC pingRPC = new PingRPC(peerBean, connectionBean);\n\t\t\tpeer.pingRPC(pingRPC);\n\t\t}\n\t\t\n\t\tif (isEnableQuitRPC()) {\n\t\t\tQuitRPC quitRPC = new QuitRPC(peerBean, connectionBean);\n\t\t\tquitRPC.addPeerStatusListener(peerMap);\n\t\t\tpeer.quitRPC(quitRPC);\n\t\t}\n\n\t\tif (isEnableNeighborRPC()) {\n\t\t\tNeighborRPC neighborRPC = new NeighborRPC(peerBean, connectionBean);\n\t\t\tpeer.neighborRPC(neighborRPC);\n\t\t}\n\n\t\tif (isEnableDirectDataRPC()) {\n\t\t\tDirectDataRPC directDataRPC = new DirectDataRPC(peerBean, connectionBean);\n\t\t\tpeer.directDataRPC(directDataRPC);\n\t\t}\n\n\t\tif (isEnableBroadcast()) {\n\t\t\tBroadcastRPC broadcastRPC = new BroadcastRPC(peerBean, connectionBean, broadcastHandler);\n\t\t\tpeer.broadcastRPC(broadcastRPC);\n\t\t}\n\t\t\n\t\tif (isEnableRouting() && isEnableNeighborRPC()) {\n\t\t\tDistributedRouting routing = new DistributedRouting(peerBean, peer.neighborRPC());\n\t\t\tpeer.distributedRouting(routing);\n\t\t}\n\n\t\tif (maintenanceTask == null && isEnableMaintenance()) {\n\t\t\tmaintenanceTask = new MaintenanceTask();\n\t\t}\n\n\t\tif (maintenanceTask != null) {\n\t\t\tmaintenanceTask.init(peer, connectionBean.timer());\n\t\t\tmaintenanceTask.addMaintainable(peerMap);\n\t\t}\n\t\tpeerBean.maintenanceTask(maintenanceTask);\n\n\t\t\t\t\n\t\tfor (PeerInit peerInit : toInitialize) {\n\t\t\tpeerInit.init(peer);\n\t\t}\n\t\t\n\t\treturn peer;\n\t}", "public ClientConfiguration() {\n serverIp = DEFAULT_SERVER_IP;\n serverPort = DEFAULT_SERVER_PORT;\n }", "private static TypedProperties getClientConfig() throws Exception {\n final Map<String, Object> bindings = new HashMap<>();\n bindings.put(\"$nbDrivers\", nbDrivers);\n bindings.put(\"$nbNodes\", nbNodes);\n return ConfigurationHelper.createConfigFromTemplate(BaseSetup.DEFAULT_CONFIG.clientConfig, bindings);\n }", "public LogInfluxClient build() {\n LogInfluxClient logStatsdClient = new LogInfluxClient();\n logStatsdClient.setSendSink(sendSink);\n logStatsdClient.setCommonTags(commonTags);\n return logStatsdClient;\n }", "public interface IChannelAdminConfiguration {\n\n\t/**\n\t * Configures the number of IO threads.\n\t * \n\t * @param numberOfIoThreads\n\t * the number of IO threads to configure\n\t * @return this object\n\t * @throws IllegalArgumentException\n\t * if {@code numberOfIoThreads < 0}\n\t */\n\tIChannelAdminConfiguration numberOfIoThreads(Integer numberOfIoThreads);\n\n\t/**\n\t * Returns the number of IO threads, or {@code null} which means the number\n\t * is calculated based on the number of CPU cores.\n\t * \n\t * @return the number of IO threads\n\t */\n\tInteger numberOfIoThreads();\n}", "static public void setup() throws IOException {\n Logger logger = Logger.getLogger(\"\");\n\n logger.setLevel(Level.INFO);\n Calendar cal = Calendar.getInstance();\n //SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH-mm-ss\");\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String dateStr = sdf.format(cal.getTime());\n fileTxt = new FileHandler(\"log_\" + dateStr + \".txt\");\n fileHTML = new FileHandler(\"log_\" + dateStr + \".html\");\n\n // Create txt Formatter\n formatterTxt = new SimpleFormatter();\n fileTxt.setFormatter(formatterTxt);\n logger.addHandler(fileTxt);\n\n // Create HTML Formatter\n formatterHTML = new LogHTMLFormatter();\n fileHTML.setFormatter(formatterHTML);\n logger.addHandler(fileHTML);\n }", "public ZKInProcessServer(FlumeConfiguration conf) throws IOException,\n ConfigException {\n // This is about as elegant as a kick in the teeth.\n Properties properties = new Properties();\n properties.setProperty(\"tickTime\", Integer.valueOf(\n conf.getMasterZKTickTime()).toString());\n properties.setProperty(\"initLimit\", Integer.valueOf(\n conf.getMasterZKInitLimit()).toString());\n properties.setProperty(\"syncLimit\", Integer.valueOf(\n conf.getMasterZKInitLimit()).toString());\n properties.setProperty(\"dataDir\", conf.getMasterZKLogDir() + \"/server-\"\n + conf.getMasterServerId());\n properties.setProperty(\"clientPort\", Integer.valueOf(\n conf.getMasterZKClientPort()).toString());\n properties.setProperty(\"electionAlg\", Integer.valueOf(3).toString());\n properties.setProperty(\"maxClientCnxns\", \"0\");\n\n // Now set the server properties\n String[] hosts = conf.getMasterZKServers().split(\",\");\n int count = 0;\n for (String l : hosts) {\n String[] kv = l.split(\":\");\n Preconditions.checkState(kv.length == 4);\n // kv[0] is the hostname, kv[2] is the quorumport,\n // kv[3] is the electionport kv[1] is the (unused) client port\n properties.setProperty(\"server.\" + count,\n kv[0] + \":\" + kv[2] + \":\" + kv[3]);\n ++count;\n }\n int serverid = conf.getMasterServerId();\n createDirs(conf.getMasterZKLogDir() + \"/server-\" + serverid, conf\n .getMasterZKLogDir()\n + \"/logs-\" + serverid, serverid);\n LOG.info(\"configuration: {}\", properties);\n config.parseProperties(properties);\n this.standalone = false;\n }", "public interface Configurable {\n\n void configure(Properties properties);\n}", "public interface FileSystemConfig {\n\n}", "public void run() {\n ServerSocketChannelFactory acceptorFactory = new OioServerSocketChannelFactory();\n ServerBootstrap server = new ServerBootstrap(acceptorFactory);\n\n // The pipelines string together handlers, we set a factory to create\n // pipelines( handlers ) to handle events.\n // For Netty is using the reactor pattern to react to data coming in\n // from the open connections.\n server.setPipelineFactory(new EchoServerPipelineFactory());\n\n server.bind(new InetSocketAddress(port));\n }", "public interface IXioClientFactory\n{\n /**\n * Returns a client that is connected to the specified address, or is going to be connected to the specified address.\n * If the client is not connected, the caller must not connect the client to any other address but the one specified.\n * @param address The address.\n * @return Returns a new XioClient.\n */\n public XioClient newInstance( InetSocketAddress address);\n}", "synchronized public void start() throws IOException, InterruptedException {\n createInstanceFromConfig(true);\n }", "public interface ConnectionFactory {\r\n\r\n\tString testdir = System.getenv(\"SERVER_MODULES_DIR\");\r\n\tint timeout = 139;\r\n\tList<String> modules = Arrays.asList(\r\n/*\t\t\ttestdir + \"/mod_test.so\",\r\n\t\t\ttestdir + \"/mod_test_dict.so\",*/\r\n\t\t\t\"/usr/lib/rad/module/mod_pam.so\",\r\n/*\t\t\ttestdir + \"/mod_test_enum.so\",\r\n\t\t\ttestdir + \"/mod_test_list.so\",*/\r\n\t\t\t\"/usr/lib/rad/protocol/mod_proto_rad.so\",\r\n\t\t\t\"/usr/lib/rad/transport/mod_tls.so\",\r\n\t\t\t\"/usr/lib/rad/transport/mod_tcp.so\");\r\n\r\n\tpublic Connection createConnection() throws Exception;\r\n\tpublic String getDescription();\r\n}", "public static void main(String[] args) throws IOException {\n Config config = new Config();\n config.useClusterServers()\n // use \"rediss://\" for SSL connection\n .addNodeAddress(\"redis://127.0.0.1:7181\");\n\n // or read config from file\n config = Config.fromYAML(new File(\"config-file.yaml\"));\n\n // 2. Create Redisson instance\n\n // Sync and Async API\n RedissonClient redisson = Redisson.create(config);\n\n // Reactive API\n RedissonReactiveClient redissonReactive = Redisson.createReactive(config);\n\n // RxJava2 API\n RedissonRxClient redissonRx = Redisson.createRx(config);\n\n // 3. Get Redis based Map\n RMap<String, Object> map = redisson.getMap(\"myMap\");\n\n RMapReactive<String, Object> mapReactive = redissonReactive.getMap(\"myMap\");\n\n RMapRx<String, Object> mapRx = redissonRx.getMap(\"myMap\");\n\n // 4. Get Redis based Lock\n RLock lock = redisson.getLock(\"myLock\");\n\n RLockReactive lockReactive = redissonReactive.getLock(\"myLock\");\n\n RLockRx lockRx = redissonRx.getLock(\"myLock\");\n\n // 4. Get Redis based ExecutorService\n RExecutorService executor = redisson.getExecutorService(\"myExecutorService\");\n\n // over 50 Redis based Java objects and services ...\n }", "public interface ConfigServerApi extends AutoCloseable {\n class Params {\n private Optional<Duration> connectionTimeout;\n\n /** Set the socket connect and read timeouts. */\n public Params setConnectionTimeout(Duration connectionTimeout) {\n this.connectionTimeout = Optional.of(connectionTimeout);\n return this;\n }\n\n public Optional<Duration> getConnectionTimeout() { return connectionTimeout; }\n }\n\n <T> T get(String path, Class<T> wantedReturnType, Params params);\n default <T> T get(String path, Class<T> wantedReturnType) {\n return get(path, wantedReturnType, null);\n }\n\n <T> T post(String path, Object bodyJsonPojo, Class<T> wantedReturnType, Params params);\n default <T> T post(String path, Object bodyJsonPojo, Class<T> wantedReturnType) {\n return post(path, bodyJsonPojo, wantedReturnType, null);\n }\n\n <T> T put(String path, Optional<Object> bodyJsonPojo, Class<T> wantedReturnType, Params params);\n default <T> T put(String path, Optional<Object> bodyJsonPojo, Class<T> wantedReturnType) {\n return put(path, bodyJsonPojo, wantedReturnType, null);\n }\n\n <T> T patch(String path, Object bodyJsonPojo, Class<T> wantedReturnType, Params params);\n default <T> T patch(String path, Object bodyJsonPojo, Class<T> wantedReturnType) {\n return patch(path, bodyJsonPojo, wantedReturnType, null);\n }\n\n <T> T delete(String path, Class<T> wantedReturnType, Params params);\n default <T> T delete(String path, Class<T> wantedReturnType) {\n return delete(path, wantedReturnType, null);\n }\n\n /** Close the underlying HTTP client and any threads this class might have started. */\n @Override\n void close();\n}", "public OpenToLANConfig() {\n this.port = 0;\n this.delayBetweenPings = Duration.of(1500, TimeUnit.MILLISECOND);\n this.delayBetweenEvent = Duration.of(30, TimeUnit.SECOND);\n }", "@Override\n public void init() throws Exception {\n // allocate a new logger\n Logger logger = Logger.getLogger(\"processinfo\");\n\n // add some extra output channels, using mask bit 6\n try {\n outputStream = new FileOutputStream(filename);\n logger.addOutput(new PrintWriter(outputStream), new BitMask(MASK.APP));\n } catch (Exception e) {\n LoggerFactory.getLogger(TcpdumpReporter.class).error(e.getMessage());\n }\n\n }", "@Override\n public void configure() throws Exception {\n restConfiguration().component(\"netty-http\")\n .host(\"localhost\")\n .port(\"9091\")\n .bindingMode(RestBindingMode.auto)\n .enableCORS(true);\n\n rest(\"/api\")\n // Begin: Stations REST endpoints\n .get(\"/stations\")\n .produces(\"application/xml\")\n .route()\n .bean(stations_interactor, \"getAllStations\")\n .endRest()\n\n .get(\"/station/{id}\")\n .produces(\"application/xml\")\n .route()\n .bean(stations_interactor, \"getStation(${header.id})\")\n .endRest()\n\n .put(\"/station/{id}\")\n .type(TransportStation.class)\n .consumes(\"application/xml\")\n .produces(\"application/xml\")\n .route()\n .bean(stations_interactor, \"replaceStation(${header.id}, ${body})\")\n .endRest()\n\n .post(\"/station\")\n .type(TransportStation.class)\n .consumes(\"application/xml\")\n .produces(\"application/xml\")\n .route()\n .bean(stations_interactor, \"createStation(${body})\")\n .endRest()\n\n .delete(\"/station/{id}\")\n .produces(\"application/xml\")\n .route()\n .bean(stations_interactor, \"deleteStation(${header.id})\")\n .endRest()\n\n // Begin: Vehicles REST endpoints\n\n .get(\"/vehicles\")\n .produces(\"application/xml\")\n .route()\n .bean(vehicles_interactor, \"getAllVehicles\")\n .endRest()\n\n .get(\"/vehicle/{id}\")\n .produces(\"application/xml\")\n .route()\n .bean(vehicles_interactor, \"getVehicle(${header.id})\")\n .endRest()\n\n .put(\"/vehicle/{id}\")\n .type(Vehicle.class)\n .consumes(\"application/xml\")\n .produces(\"application/xml\")\n .route()\n .bean(vehicles_interactor, \"replaceVehicle(${header.id}, ${body})\")\n .endRest()\n\n .post(\"/vehicle\")\n .type(Vehicle.class)\n .consumes(\"application/xml\")\n .produces(\"application/xml\")\n .route()\n .bean(vehicles_interactor, \"createVehicle(${body})\")\n .endRest()\n\n .delete(\"/vehicle/{id}\")\n .produces(\"application/xml\")\n .route()\n .bean(vehicles_interactor, \"deleteVehicle(${header.id})\")\n .endRest()\n\n // Begin: TimeTables REST endpoints\n .get(\"/timetables\")\n .produces(\"application/xml\")\n .route()\n .bean(timetables_interactor, \"getAllTimeTables\")\n .endRest()\n\n .get(\"/timetable/{id}\")\n .produces(\"application/xml\")\n .route()\n .bean(timetables_interactor, \"getTimeTable(${header.id})\")\n .endRest()\n\n .put(\"/timetable/{id}\")\n .type(TimeTable.class)\n .consumes(\"application/xml\")\n .produces(\"application/xml\")\n .route()\n .bean(timetables_interactor, \"replaceTimeTable(${header.id}, ${body})\")\n .endRest()\n\n .post(\"/timetable\")\n .type(TimeTable.class)\n .consumes(\"application/xml\")\n .produces(\"application/xml\")\n .route()\n .bean(timetables_interactor, \"createTimeTable(${body})\")\n .endRest()\n\n .delete(\"/timetable/{id}\")\n .produces(\"application/xml\")\n .route()\n .bean(timetables_interactor, \"deleteTimeTable(${header.id})\")\n .endRest();\n }", "protected void connect() {\n\t\treadProperties();\n\t\tif (validateProperties())\n\t\t\tjuraMqttClient = createClient();\n\t}", "@Bean(name = {\"actorSystemConfiguration\"})\n public InternalActorSystemConfiguration getConfiguration(\n ResourceLoader resourceLoader,\n Environment env) throws IOException\n {\n Resource configResource = resourceLoader.getResource(env.getProperty(\"ea.node.config.location\",\"classpath:ea-test.yaml\"));\n // yaml mapper\n ObjectMapper objectMapper = new ObjectMapper(new YAMLFactory());\n return objectMapper.readValue(configResource.getInputStream(), DefaultConfiguration.class);\n }", "public static void ReadConfig() throws IOException\r\n {\r\n ReadConfiguration read= new ReadConfiguration(\"settings/FabulousIngest.properties\");\r\n \t \r\n fedoraStub =read.getvalue(\"fedoraStub\");\r\n \t username = read.getvalue(\"fedoraUsername\");\r\n \t password =read.getvalue(\"fedoraPassword\");\r\n \t pidNamespace =read.getvalue(\"pidNamespace\");\r\n \t contentAltID=read.getvalue(\"contentAltID\");\r\n \t \r\n \t \r\n \t ingestFolderActive =read.getvalue(\"ingestFolderActive\");\r\n \t ingestFolderInActive =read.getvalue(\"ingestFolderInActive\");\r\n \t\r\n logFileNameInitial=read.getvalue(\"logFileNameInitial\");\r\n \r\n DataStreamID=read.getvalue(\"DataStreamID\");\r\n \t DataStreamLabel=read.getvalue(\"DataStreamLabel\");\r\n \r\n \r\n \r\n }", "Config(InfoHandler info){\n \n this.info = info;\n \n config_list = new ArrayList<>();\n \n File test = new File(config_path);\n \n if(test.exists()){ //plik istnieje\n \n info.mode=1; //wlaczenie trybu dla obslugi pliku konfiguracyjnego\n \n \n //tutaj pobieranie informacji z pliku konfiguracyjnego\n //do ciała funkcji\n \n config_file = new DictReader(config_path,info);\n \n //tutaj dodajemy funkcjonalnosci\n \n config_list.add(config_file.szukaj(\"%imie\"));\n config_list.add(config_file.szukaj(\"%dict_path\"));\n \n config = get_config();\n \n info.mode=0;\n \n is_alive = true;\n }\n else{\n config = new ArrayList<>();\n config_file = new DictReader(config_path,info);\n first_start = 1;\n }\n }", "@Override\r\n\tpublic void configure() {\r\n\t\tsuper.configure();\r\n\t\t\r\n\t\tfinal CIAOConfig config = CamelApplication.getConfig(getContext());\r\n\r\n\t\t// Document input route\r\n\t\t// * transforms the ParsedDocument json into a multi-part trunk request message\r\n\t\t// * Adds the trunk request message onto a JMS queue for later processing (by any running process)\r\n\t\tfrom(\"jms:queue:documents?destination.consumer.prefetchSize=0\")\r\n\t\t.errorHandler(new TransactionErrorHandlerBuilder()\r\n\t\t\t.asyncDelayedRedelivery()\r\n\t\t\t.maximumRedeliveries(2)\r\n\t\t\t.backOffMultiplier(2)\r\n\t\t\t.redeliveryDelay(2000)\r\n\t\t\t.log(LOGGER)\r\n\t\t\t.logExhausted(true)\r\n\t\t)\r\n\t\t.transacted(\"PROPAGATION_NOT_SUPPORTED\")\r\n\t\t.unmarshal().json(JsonLibrary.Jackson, ParsedDocument.class)\r\n\t\t.bean(new TrunkRequestPropertiesFactory(config), \"newTrunkRequestProperties\")\r\n\t\t.setHeader(\"SOAPAction\").simple(\"urn:nhs:names:services:itk/${body.interactionId}\")\r\n\t\t.setHeader(Exchange.CONTENT_TYPE).simple(\"multipart/related; boundary=\\\"${body.mimeBoundary}\\\"; type=\\\"text/xml\\\"; start=\\\"<${body.ebxmlContentId}>\\\"\")\r\n\t\t.setHeader(Exchange.CORRELATION_ID).simple(\"${body.ebxmlCorrelationId}\")\r\n\t\t.to(\"freemarker:uk/nhs/ciao/transport/spine/trunk/TrunkRequest.ftl\")\r\n\t\t.to(\"jms:queue:trunk-requests\");\r\n\t\t\r\n\t\t\r\n\t\t // Outgoing trunk message queue\r\n\t\t // * sends a multi-part trunk request message over the spine\r\n\t\t // * blocks until an async ebXml ack is received off a configured JMS topic or a timeout occurs\r\n\t\t // * marks message as success, retry or failure based on the ACK content\r\n\t\tfrom(\"jms:queue:trunk-requests?destination.consumer.prefetchSize=0\")\r\n\t\t.id(\"trunk-requests\")\r\n\t\t.errorHandler(new TransactionErrorHandlerBuilder()\r\n\t\t\t.asyncDelayedRedelivery()\r\n\t\t\t.maximumRedeliveries(2)\r\n\t\t\t.backOffMultiplier(2)\r\n\t\t\t.redeliveryDelay(2000)\r\n\t\t\t.log(LOGGER)\r\n\t\t\t.logExhausted(true)\r\n\t\t)\r\n\t\t.transacted(\"PROPAGATION_NOT_SUPPORTED\")\r\n\t\t\r\n\t\t.setHeader(Exchange.FILE_NAME, simple(\"${header.CamelCorrelationId}/message\"))\r\n\t\t.setHeader(Exchange.HTTP_METHOD, constant(org.apache.camel.component.http4.HttpMethods.POST))\r\n\t\t\r\n\t\t.to(\"file://./target/docs\")\t\t\t\t\r\n//\t\t.doTry()\r\n\t\t\t.to(\"spine:trunk\")\r\n\t\t\t.process(new EbxmlAcknowledgementProcessor())\r\n//\t\t.endDoTry()\r\n//\t\t.doCatch(HttpOperationFailedException.class)\r\n//\t\t\t.process(new HttpErrorHandler())\r\n\t\t;\r\n\t\t\r\n\t\t// Incoming ebXml ACK receiver route\r\n\t\t// * Receives ebXml acks (over HTTP)\r\n\t\t// * Extracts the related original message id (for correlation)\r\n\t\t// * Adds the ebXml ack to a JMS topic for later processing (by the process holding the associated transaction open)\r\n\t\tfinal Namespaces ns = new Namespaces(\"soap\", \"http://schemas.xmlsoap.org/soap/envelope/\");\r\n\t\tns.add(\"eb\", \"http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd\");\r\n\t\t\r\n\t\tfrom(\"{{spine.fromUri}}\")\r\n\t\t\t.choice()\r\n\t\t\t\t.when(header(\"SOAPAction\").isEqualTo(\"urn:oasis:names:tc:ebxml-msg:service/Acknowledgment\"))\r\n\t\t\t\t\t.setHeader(\"JMSCorrelationID\",\r\n\t\t\t\t\t\tns.xpath(\"/soap:Envelope/soap:Header/eb:Acknowledgment/eb:RefToMessageId\", String.class))\r\n\t\t\t\t\t.setHeader(Exchange.CORRELATION_ID).simple(\"${header.JMSCorrelationID}\")\r\n\t\t\t\t\t.setExchangePattern(ExchangePattern.InOnly)\r\n\t\t\t\t\t.to(\"{{spine.replyUri}}\")\r\n\t\t\t\t\t.endChoice()\r\n\t\t\t\t.otherwise()\r\n\t\t\t\t\t.log(LoggingLevel.WARN, LOGGER, \"Unsupported SOAPAction receieved: ${header.SOAPAction}\");\t\t\r\n\t}", "public SwimConnectionFactory() {\n\t\tsuper();\n\t}", "@SuppressWarnings(\"rawtypes\")\n\t@Override\n\tpublic void configure() throws Exception {\n\t\t\n\t\tfrom(\"direct:addtraitshierarchy-repos\").process(new Processor() {\n\t\t\t@Override\n\t\t\tpublic void process(Exchange ex) throws Exception { // NOSONAR Must throw Exception because of inherited definition\n\t\t\t\tTraitHierarchy newTraitHierarchy = ex.getIn().getBody(TraitHierarchy.class);\n\t\t\t\tex.getOut().setBody(new Work<TraitHierarchy>(TraitHierarchy.class, null, newTraitHierarchy, Action.CREATE));\n\t\t\t}\n\t\t}).process(new DroolsCommandTransformer<Work>(\"work\", Work.class)).to(\"drools:node/ksession\")\n\t\t\t.transform().simple(\"${body.getValue('work').newContainer}\")\n\t\t\t.process(new TraitHierarchyParentIdProcessor())\n\t\t\t.choice()\n\t\t\t\t.when(body().isNull())\n\t\t\t\t\t.enrich(\"direct:getNextParentId-repos\", new TraitHierarchyEnrichAggregationStrategy(Action.GET))\n\t\t\t\t.end()\n\t\t\t.choice()\n\t\t\t\t.when(body().isNotNull())\n\t\t\t\t\t.process(new TraitHierarchyProcessor())\n\t\t\t\t.end()\n\t\t\t.bean(traitsHierarchiesRepo, \"add\");\n\t\t\n\t\t//Get next parent id for trait department creation\n\t\tfrom(\"direct:getNextParentId-repos\")\n\t\t\t\t.bean(traitsHierarchiesRepo, \"getNextParentId\");\n\t\t\n\t\t/*\n\t\t * get the basic trait hierarchy information. Input will either be the id.\n\t\t */\n\t\tfrom(\"direct:gettraitshierarchy-repos\").convertBodyTo(TraitHierarchy.class)\n\t\t.process(new Processor() {\n\t\t\t@Override\n\t\t\tpublic void process(Exchange ex) throws Exception { // NOSONAR Must throw Exception because of inherited definition\n\t\t\t\tTraitHierarchy newTraitHierarchy = ex.getIn().getBody(TraitHierarchy.class);\n\t\t\t\tex.setProperty(APPINIMAP, newTraitHierarchy.getAppIniMap());\n\t\t\t}\n\t\t\t})\n\t\t\t.choice()\n\t\t\t\t.when(simple(\"${body} is 'com.walmart.traits.TraitHierarchy'\")).transform().simple(\"${body.id}\") // NOSONAR \n\t\t\t.end()\n\t\t.bean(traitsHierarchiesRepo, \"withId\")\n\t\t.choice()\n\t\t\t.when(body().isNotNull())\n\t\t\t\t.process(new TraitHODeptProcessor())\n\t\t\t\t.choice()\n\t\t\t\t\t.when(body().isNotNull())\n\t\t\t\t\t\t.enrich(\"direct:getHoMerchDept\", new TraitHOEnrichAggregationStrategy())\n\t\t\t\t.end()\n\t\t\t\t.choice()\n\t\t\t\t\t.when(body().isNull())\n\t\t\t\t\t\t.process(new TraitHierarchyProcessor())\n\t\t\t\t.end()\n\t\t.end();\n\t\t//Get all trait departments available\n\t\tfrom(\"direct:getAllTraitDepartments-repos\")\n\t\t\t.choice()\n\t\t\t\t.when(simple(\"${body} is 'com.walmart.traits.TraitHierarchy'\")).transform().simple(\"${body.level}\") // NOSONAR \n\t\t\t.end()\n\t\t.bean(traitsHierarchiesRepo, \"withTraitsHierarchyLevel\");\n\t\t\n\t\t//Get all trait departments details for admin\n\t\tfrom(\"direct:getDeptDetails-repos\")\n\t\t.bean(traitsHierarchiesRepo, \"get\");\n\t\t\n\t\t//Get all trait categories available for a trait department.\n\t\tfrom(\"direct:getAllTraitCategories-repos\")\n\t\t\t.choice()\n\t\t\t\t.when(simple(\"${body} is 'com.walmart.traits.TraitHierarchy'\")).transform().simple(\"${body.parentId}\") // NOSONAR \n\t\t\t.end()\n\t\t.bean(traitsHierarchiesRepo, \"withTraitsDepartment\");\n\t\t\n\t\t//Delete trait hierarchy information. Input will either be the id.\n\t\tfrom(\"direct:removetraitshierarchy-repos\").convertBodyTo(TraitHierarchy.class)\n\t\t\t.enrich(\"direct:gettraitshierarchy-repos\", new TraitHierarchyEnrichAggregationStrategy(Action.DELETE))\n\t\t\t.process(new DroolsCommandTransformer<Work>(\"work\", Work.class)).to(\"drools:node/ksession\")\n\t\t.transform().simple(\"${body.getValue('work').oldContainer}\").bean(traitsHierarchiesRepo, \"remove\");\n\t\t\n\t\t//Update trait hierarchy information.\n\t\tfrom(\"direct:updatetraitshierarchy-repos\").convertBodyTo(TraitHierarchy.class)\n\t\t .enrich(\"direct:gettraitshierarchy-repos\", new TraitHierarchyEnrichAggregationStrategy(Action.UPDATE))\n\t\t\t.process(new DroolsCommandTransformer<Work>(\"work\", Work.class)).to(\"drools:node/ksession\")\n\t\t\t.transform().simple(\"${body.getValue('work')}\").process(new ValidateCategoryUpdate())\n\t\t\t.choice().when(body().isNotNull())\n\t\t\t\t.enrich(\"direct:validateMaxForCat-repos\").process(new ValidateMaxError())\n\t\t\t.end()\t\n\t\t\t.process(new Processor() {\n\t\t\t\t\tpublic void process(Exchange ex) throws Exception { // NOSONAR Must throw Exception because of inherited definition\n\t\t\t\t\t\tex.getOut().setBody(ex.getIn().getHeader(TRAIT_HIERARCHY));\n\t\t\t\t\t}\n\t\t \t })\n\t\t\t.choice().when(simple(\"${body.errorMessage} == null\"))\n\t\t\t\t.bean(traitsHierarchiesRepo, \"update\")\n\t\t\t\t.choice()\n\t\t\t\t\t.when(body().isNotNull())\n\t\t\t\t\t\t.process(new TraitCatgHODeptProcessor())\n\t\t\t\t\t\t.choice()\n\t\t\t\t\t\t\t.when(body().isNotNull())\n\t\t\t\t\t\t\t\t.bean(traitsHierarchiesRepo, \"updateHoDeptCatgAssociation\")\n\t\t\t\t\t\t\t\t.bean(traitsHierarchiesRepo, \"updateHoDeptTraitsAssociation\")\n\t\t\t\t\t\t.end()\n\t\t\t\t\t\t.choice()\n\t\t\t\t\t\t \t.when(body().isNull())\n\t\t\t\t\t\t \t\t.process(new TraitHierarchyProcessor())\n\t\t\t\t\t\t .end()\n\t\t\t\t.end()\n\t\t\t.end();\n\t\t\t\n\t\t//Get trait departments available with given name\n\t\tfrom(\"direct:getTraitDepartmentsWithName-repos\")\n\t\t\t.choice()\n\t\t\t\t.when(simple(\"${body} is 'com.walmart.traits.TraitHierarchy'\")).transform().simple(\"${body.name}\") // NOSONAR \n\t\t\t.end()\n\t\t.bean(traitsHierarchiesRepo, \"withDepartmentName\");\n\t\t\n\t // DO NOT ADD NEW ROUTES AFTER THIS LINE!!!\n\t /* Includes the transactional routes \n\t\t* (Adds the transacted() DSL) \n\t\t* corresponding to all the routes in this class.*/ \n\t\tfinal List<String> hierarchyRoutes = transactionalRoutes\n\t\t\t\t.getRouteUris(getRouteCollection().getRoutes());\n\t\tincludeRoutes(transactionalRoutes.configureTransactionalRoutes(hierarchyRoutes));\n\t\tincludeRoutes(transactionalRoutes.configureResourceRoutes(hierarchyRoutes));\n\t\t\n\t}", "public abstract CONFIG build();", "@Override\r\n\tpublic void doStart() {\n\t\tbootstrap.group(this.bossEventLoopGroup, this.workerEventLoopGroup)\r\n\t\t\t\t .channel(NioServerSocketChannel.class)\r\n\t\t\t\t //允许在同一端口上启动同一服务器的多个实例,只要每个实例捆绑一个不同的本地IP地址即可\r\n .option(ChannelOption.SO_REUSEADDR, true)\r\n //用于构造服务端套接字ServerSocket对象,标识当服务器请求处理线程全满时,用于临时存放已完成三次握手的请求的队列的最大长度\r\n// .option(ChannelOption.SO_BACKLOG, 1024) // determining the number of connections queued\r\n\r\n //禁用Nagle算法,即数据包立即发送出去 (在TCP_NODELAY模式下,假设有3个小包要发送,第一个小包发出后,接下来的小包需要等待之前的小包被ack,在这期间小包会合并,直到接收到之前包的ack后才会发生)\r\n .childOption(ChannelOption.TCP_NODELAY, true)\r\n //开启TCP/IP协议实现的心跳机制\r\n .childOption(ChannelOption.SO_KEEPALIVE, true)\r\n .childHandler(newInitializerChannelHandler());\r\n\t\ttry {\r\n\t\t\tInetSocketAddress serverAddress = new InetSocketAddress(InetAddress.getLoopbackAddress(),getPort());\r\n\t\t\tchannelFuture = bootstrap.bind(getPort());\r\n//\t\t\tchannelFuture = bootstrap.bind(serverAddress).sync();\r\n\t\t\tLOGGER.info(\"connector {} started at port {},protocal is {}\",getName(),getPort(),getSchema());\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tLOGGER.error(\"error happen when connector {} starting\",getName());\r\n\t\t}\r\n\t}", "@Override\n protected void initChannel(Channel ch) throws Exception {\n log.info(\"Initialize handler pipeline for: {}\", ch);\n ch.pipeline().addLast(\"lineBaseSplit\", new LineBasedFrameDecoder(Integer.MAX_VALUE));\n ch.pipeline().addLast(new StringDecoder());\n ch.pipeline().addLast(\"echo\", new EchoHandler2());\n }", "@Override\n public void configure() throws Exception {\n onException(IOException.class).handled(true).log(\"IOException occurred due: ${exception.message}\")\n // as we handle the exception we can send it to\n // direct:file-error,\n // where we could send out alerts or whatever we want\n .to(\"direct:file-error\");\n\n // special route that handles file errors\n from(\"direct:file-error\").log(\"File error route triggered to deal with exception ${exception?.class}\")\n // as this is based on unit test just transform a message\n // and send it to a mock\n .transform().simple(\"Error ${exception.message}\").to(\"mock:error\");\n\n // this is the file route that pickup files, notice how we use\n // our custom exception handler on the consumer\n // the exclusiveReadLockStrategy is only configured because this\n // is from an unit test, so we use that to simulate exceptions\n from(fileUri(\n \"?exclusiveReadLockStrategy=#myReadLockStrategy&exceptionHandler=#myExceptionHandler&initialDelay=0&delay=10\"))\n .convertBodyTo(String.class).to(\"mock:result\");\n }", "public static Configurable configure() {\n return new RecoveryServicesManager.ConfigurableImpl();\n }", "public static Configurable configure() {\n return new RecoveryServicesManager.ConfigurableImpl();\n }", "protected AmqpTransportConfig() {\n\t\tsuper();\n\t}", "public Configuration() {\r\n\t\tthis.serverAddress = \"127.0.0.1\";\r\n\t\tthis.serverPort = \"2586\";\r\n\t}", "default void initialize(GameIO io, Config config) {}", "@Override\n public void configure() throws Exception {\n\n JacksonDataFormat jacksonDataFormat = new JacksonDataFormat(objectMapper, Event.class);\n\n\n from(\"{{application.input.endpoint}}\")\n .routeId(ROUTE_ID)\n .noMessageHistory()\n .autoStartup(true)\n .log(DEBUG, logger, \"Message headers - [${header}]\")\n .log(DEBUG, logger, \"Message headers - ${body}\")\n .unmarshal(jacksonDataFormat)\n .setHeader(\"Authorization\", simple(\"Basic \" + Base64.encodeBase64String((username + \":\" + password).getBytes())))\n .setHeader(Exchange.HTTP_METHOD, constant(\"POST\"))\n .doTry()\n .to(\"{{application.output.endpoint}}\")\n .doCatch(HttpOperationFailedException.class)\n .process(exchange -> {\n HttpOperationFailedException exception = (HttpOperationFailedException) exchange.getProperty(Exchange.EXCEPTION_CAUGHT);\n logger.error(\"Http call failed - response body is \" + exception.getResponseBody());\n logger.error(\"Http call failed - response headers are \" + exception.getResponseHeaders());\n throw exception;\n })\n .end();\n\n }", "private void configureRobot() {\n // Populating robot configuration\n m_robotConfiguration.setMasterUri(ROS_MASTER_URI);\n m_robotConfiguration.setHostname(JAVA_ROS_HOSTNAME);\n m_robotConfiguration.setNodeName(NODE_NAME);\n }", "public void init(Properties p) throws IOException\n {\n if (!p.isEmpty())\n client.setProperties(p);\n\n client.open();\n\n if (client.numMarkets() == 0)\n return;\n else\n os = new OutputStream[client.numMarkets()];\n\n if (outputPath == null) {\n // no output path specified, print screen\n for (int i = 0; i < client.numMarkets(); i++)\n os[i] = System.out;\n\n } else if (outputPath.getScheme() == null ||\n outputPath.getScheme().equalsIgnoreCase(\"file\")) {\n // local file system\n int i = 0;\n File basePath = new File(outputPath);\n for (String market : client.getMarkets()) {\n File dir = new File(basePath, market);\n if (dir.exists() == false && dir.mkdirs() == false)\n throw new IOException(\"Unable to create path:\" + dir.getAbsolutePath());\n os[i++] = new FileOutputStream(new File(dir, \"hmg-cdr_comb1-1_\" + target + \n \"_\" + System.currentTimeMillis() + \".mdr\"));\n }\n\n } else {\n throw new IOException(\"Unsupported output path: \" + outputPath.toASCIIString());\n }\n }" ]
[ "0.6509134", "0.57220006", "0.5619293", "0.5538858", "0.5535286", "0.5489608", "0.5435022", "0.53675234", "0.5336977", "0.5334702", "0.53220385", "0.52670395", "0.52192485", "0.5213821", "0.52109885", "0.52058375", "0.5183986", "0.5163822", "0.5133702", "0.5129479", "0.51105875", "0.50946224", "0.5069413", "0.50646937", "0.5044594", "0.502848", "0.49927685", "0.49922395", "0.49871576", "0.498677", "0.49854833", "0.49648505", "0.4963793", "0.4938085", "0.49344063", "0.49343556", "0.49246016", "0.49001774", "0.49000567", "0.48950684", "0.4891881", "0.48912555", "0.48661572", "0.48583978", "0.4848366", "0.4847486", "0.48438197", "0.48372984", "0.4822715", "0.48138833", "0.48107487", "0.48073003", "0.48049882", "0.4801072", "0.47979966", "0.4796928", "0.47968653", "0.47951865", "0.47773802", "0.47657555", "0.47645018", "0.476343", "0.47564402", "0.47562858", "0.47561607", "0.47527018", "0.47504196", "0.47498092", "0.47487354", "0.47420722", "0.47414964", "0.47406042", "0.47401267", "0.47374976", "0.47370973", "0.4730521", "0.47304738", "0.472604", "0.47155365", "0.47150046", "0.47140676", "0.47036278", "0.46984494", "0.46972686", "0.4694441", "0.4688575", "0.4687031", "0.46861658", "0.4681479", "0.46804988", "0.46771073", "0.46763846", "0.46739462", "0.46739462", "0.4671029", "0.46668667", "0.46646345", "0.4660179", "0.46582097", "0.46546596" ]
0.63554645
1
TODO Autogenerated method stub
public Document getXML() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public void setValuesFromXML_local(Document dom) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public double getProbability() { return getD_errorProbability(); }
{ "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
Convert text to voice
public static void oralOutput(String text) { System.setProperty("mbrola.base","E:\\Automation\\mbrola"); VoiceManager vm=VoiceManager.getInstance(); Voice v=vm.getVoice("mbrola_us1"); //or kevin16 v.allocate(); v.speak(text); v.deallocate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ConvertTextToSpeech(String voice1) {\n text=voice1;\n //text = et.getText().toString();\n if (text == null || \"\".equals(text)) {\n tts.speak(text, TextToSpeech.QUEUE_FLUSH, null);\n } else\n tts.speak(text, TextToSpeech.QUEUE_FLUSH, null);\n }", "private void convertTextToSpeech(String text) {\n if (null == text || \"\".equals(text)) {\n text = \"Please give some input.\";\n }\n m_tts.speak(text, TextToSpeech.QUEUE_ADD, null);\n }", "void playSpeech(String rawText);", "public interface Text2Speech {\n\t\n\t/**\n\t * Supported formats.\n\t */\n\tenum OutputFormat {\n\t\t/**\n\t\t * MP3 format.\n\t\t */\n\t\tMP3,\n\t\t/**\n\t\t * Ogg-vorbis format.\n\t\t */\n\t\tOGG\n\t}\n\t\n\t/**\n\t * Produce MP3 with specified phrase.\n\t * \n\t * @param phrase Some sentence.\n\t * @return MP3 stream (may be network bound, close afterwards)\n\t */\n\tInputStream synthesize(String phrase, OutputFormat fmt) throws IOException;\n}", "@Override\n public void onClick(View v) {\n text_to_speech = set_voice(text_to_speech);\n int len = ar.length;\n for (int i = 0; i < len; i++){\n speak(text_to_speech,ar[i]);\n }\n }", "private void ConvertTextToSpeech() {\n if (properties.get(selectedStateOrCountry) != null) {\n tts.speak(String.format(\"This is %s %s\", selectedStateOrCountry, properties.get(selectedStateOrCountry)),\n TextToSpeech.QUEUE_FLUSH, null);\n\n } else if (countryCapitalMap.get(selectedStateOrCountry) != null) {\n tts.speak(countryCapitalMap.get(selectedStateOrCountry), TextToSpeech.QUEUE_FLUSH, null);\n } else {\n tts.speak(selectedStateOrCountry, TextToSpeech.QUEUE_FLUSH, null);\n }\n }", "public void recordVoice() {\n\t\t\n\t\t//String command = \"ffmpeg -f alsa -i hw:0 -t 2 -acodec pcm_s16le -ar 16000 -ac 1 foo.wav\"\n\t\tString command = \"arecord -d 2 -r 22050 -c 1 -i -t wav -f s16_LE foo.wav\";\n\t\t\n\t\tProcessBuilder pb = new ProcessBuilder(\"bash\" , \"-c\" , command );\n\t\ttry {\n\t\t\t\n\t\t\tProcess recordProcess = pb.start();\n\t\t\t\n\t\t\trecordProcess.waitFor();\n\t\t\t\n\t\t\trecordProcess.destroy();\n\t\n\t\t\t\n\t\t}catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\t\n\t\t}catch (InterruptedException ie) {\n\t\t\tie.printStackTrace();\n\t\t}\n\t\t\n\t}", "private boolean convert(String text,String directory,String fileName) {\r\n\t\t\r\n\t\tif(!text.isEmpty()) {\t\t\t\r\n\t\t\tFile file = new File(directory,fileName);\r\n\t\t\t\r\n\t\t\t// create mp3 file with this weather announcement\r\n\t\t\tlog.fine(\"text to speech conversion: text=\"+text+\" filename=\"+file);\r\n\t\t\t\r\n\t\t\t// translate into mp3 stream\r\n\t\t\ttry{\r\n\t text=java.net.URLEncoder.encode(text, \"UTF-8\");\r\n\t //URL url = new URL(\"http://translate.google.com/translate_tts?tl=de&ie=UTF-8&q=\"+text+\"&total=1&idx=0&client=alarmpi\");\r\n\t \r\n\t Map<String, String> requestParams = new HashMap<>();\r\n\t requestParams.put(\"key\", \"f5d762f987f34397b350af6563ffb818\");\r\n\t requestParams.put(\"hl\", \"de-de\");\r\n\t requestParams.put(\"c\", \"MP3\");\r\n\t requestParams.put(\"src\", text);\r\n\t \r\n\t\t\t\tString encodedURL = requestParams.keySet().stream()\r\n\t \t .map(key -> key + \"=\" + requestParams.get(key))\r\n\t \t .collect(Collectors.joining(\"&\", \"http://api.voicerss.org?\", \"\"));\r\n\t \r\n\t URL url = new URL(encodedURL);\r\n\t log.fine(\"URL=\"+encodedURL);\r\n\t \r\n\t HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();\r\n\t urlConn.addRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36\");\r\n\t InputStream audioSrc = urlConn.getInputStream();\r\n\t DataInputStream read = new DataInputStream(audioSrc);\r\n\t OutputStream outstream = new FileOutputStream(file);\r\n\t byte[] buffer = new byte[1024];\r\n\t int len;\r\n\t int totalLength = 0;\r\n\t while ((len = read.read(buffer)) > 0) {\r\n\t \toutstream.write(buffer, 0, len);\r\n\t \ttotalLength += len;\r\n\t }\r\n\t outstream.close();\r\n\t log.fine(\"text2speech byteount=\"+totalLength);\r\n\t \r\n\t if(totalLength<1024) {\r\n\t \t// this indicates a problem...\r\n\t \tlog.severe(\"text2speech conversion returns less than 1k data\");\r\n\t }\r\n\t \r\n\t \t\t// update mpd database\r\n\t SoundControl.getSoundControl().update();\r\n\t \r\n\t return true;\r\n\t\t\t} catch(IOException e){\r\n\t\t\t\tlog.severe(\"Exception in text to speech conversion: \"+e.getMessage());\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tlog.warning(\"Text to speech conversion called with empty text\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private void speak() {\n String s = textArea.getText();\n String s5=\"images\\\\\";\n String s4=\".jpeg\";\n String obj=s5+s+s4;\n ImageIcon ic1=new ImageIcon(obj);\n Image image1=ic1.getImage().getScaledInstance(image.getWidth(),image.getHeight(),Image.SCALE_AREA_AVERAGING);\n ImageIcon icon1=new ImageIcon(image1);\n image.setIcon(icon1);\n int i = textArea.getCaretPosition();\n int k = s.length();\n for (int j = i; j <= k - 1; j++) {\n char c = s.charAt(j);\n String s3 = Character.toString(c);\n s2 = s2 + s3;\n }\n VoiceManager voiceManager = VoiceManager.getInstance();\n helloVoice = voiceManager.getVoice(\"kevin16\");\n helloVoice.allocate();\n helloVoice.speak(s2);\n helloVoice.deallocate();\n playB.setText(\"PLAY\");\n }", "public void speak(String text);", "public String speak(){\n speechOutput.clear();\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Just speak normally into your phone\");\n intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 10);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.ENGLISH);\n try {\n startActivityForResult(intent, VOICE_RECOGNITION);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n\n\n return speechResult;\n }", "private void speak() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM) ;\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Speak the Item\");\n\n startActivityForResult(intent, SPEECH_REQUEST_CODE);\n\n }", "public void convertVoiceToMaori() {\n\t\tString command = \"HVite -H HTK/MaoriNumbers/HMMs/hmm15/macros -H HTK/MaoriNumbers/HMMs/hmm15/hmmdefs -C HTK/MaoriNumbers/user/configLR -w HTK/MaoriNumbers/user/wordNetworkNum -o SWT -l '*' -i recout.mlf -p 0.0 -s 5.0 HTK/MaoriNumbers/user/dictionaryD HTK/MaoriNumbers/user/tiedList foo.wav\";\n\t\t\n\t\tProcessBuilder pb = new ProcessBuilder(\"bash\" , \"-c\" , command );\n\t\ttry {\n\t\t\t\n\t\t\tProcess convertProcess = pb.start();\n\t\t\t\n\t\t\tconvertProcess.waitFor();\n\t\t\t\n\t\t\tconvertProcess.destroy();\n\t\t\t\n\t\n\t\t\t\n\t\t}catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\t\n\t\t}catch (InterruptedException ie) {\n\t\t\tie.printStackTrace();\n\t\t}\n\t\n\t\n\t\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(\n\t\t\t\t\t\tRecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\n\t\t\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, \"en-US\");\n\n\t\t\t\ttry {\n\t\t\t\t\tstartActivityForResult(intent, RESULT_SPEECH);\n\t\t\t\t\tet1.setText(\"\");\n\t\t\t\t} catch (ActivityNotFoundException a) {\n\t\t\t\t\tToast t = Toast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\"Opps! Your device doesn't support Speech to Text\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT);\n\t\t\t\t\tt.show();\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}", "@SuppressWarnings(\"unchecked\")\n public void speak(String text) throws JavaLayerException {\n\t\ttry {\n \n //Create a JLayer instance\n AdvancedPlayer player = new AdvancedPlayer(synthesizer.getMP3Data(text));\n player.play();\n \n } catch (IOException e) {\n \n }\n\t\t\n\t}", "public abstract WordAudioDocument convertToAudioDocument(TextDocument doc) throws IOException;", "public abstract void startVoiceRecognition(String language);", "public interface Voice {\n\n\t/**\n\t * Plays the specified text as synthesized audio.\n\t * @param text The text to speak.\n\t */\n\tpublic void speak(String text);\n\n\t/**\n\t * Sets the pitch of the voice.\n\t * @param pitch The new voice pitch.\n\t * @throws IllegalArgumentException If the specified voice\n\t * pitch is less than <tt>0</tt>.\n\t */\n\tpublic void setPitch(int pitch);\n\n\t/**\n\t * Sets the volume of the voice.\n\t * @param volume The new volume.\n\t * @throws IllegalArgumentException If the specified voice\n\t * volume is less than <tt>0</tt> or greater than <tt>100</tt>.\n\t */\n\tpublic void setVolume(int volume);\n\n\t/**\n\t * Sets the talk speed of the voice.\n\t * @param wpm The new talk speed in words per minute.\n\t * @throws IllegalArgumentException If the specified voice\n\t * speed is less than <tt>0</tt> or greater than <tt>999</tt>.\n\t */\n\tpublic void setSpeed(int wpm);\n\n}", "public void onClick(View v) {\n speechRecognizer.startListening(speechRecognizerIntent);\n Toast.makeText( getActivity(),\"Voice\", Toast.LENGTH_SHORT).show();\n }", "private static String transcribe(String filePath) throws Exception {\n try (SpeechClient speech = SpeechClient.create()) {\n Path path = Paths.get(filePath);\n byte[] data = Files.readAllBytes(path);\n ByteString audioBytes = ByteString.copyFrom(data);\n\n // Configure request with local raw PCM audio\n RecognitionConfig config =\n RecognitionConfig.newBuilder()\n .setEncoding(SPEECH_ENCODING)\n .setLanguageCode(SPEECH_LANGUAGE_CODE)\n .setSampleRateHertz(SPEECH_SAMPLE_RATE)\n .build();\n RecognitionAudio audio = RecognitionAudio.newBuilder().setContent(audioBytes).build();\n\n // Use blocking call to get audio transcript\n RecognizeResponse response = speech.recognize(config, audio);\n List<SpeechRecognitionResult> results = response.getResultsList();\n\n for (SpeechRecognitionResult result : results) {\n // There can be several alternative transcripts for a given chunk of speech. Just use the\n // first (most likely) one here.\n SpeechRecognitionAlternative alternative = result.getAlternativesList().get(0);\n return alternative.getTranscript();\n }\n }\n return \"\";\n }", "public void showSpeechInput(View v) {\n\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Say something\");\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n Toast.makeText(this, \"Speech To Text not supported\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\tISpeechServiceProxy iss = new SpeechServiceProxy() ;\n\t\t\t\tiss.textToSpeech(ServiceAction.TTS_ACTION, ReadTextActivity.this, inputText.getText().toString()) ;\n\t\t\t}", "public void startVoiceRecognition() {\n startVoiceRecognition(null);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode,\n Intent data) {\n if (requestCode == REQ_CODE_SPEECH_INPUT && resultCode == RESULT_OK) {\n List<String> results = data.getStringArrayListExtra(\n RecognizerIntent.EXTRA_RESULTS);\n String spokenText = results.get(0);\n // Do something with spokenText\n convert.setText(spokenText);\n\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "public String getVoice() throws DynamicCallException, ExecutionException {\n return (String)call(\"getVoice\").get();\n }", "public interface ITextToSpeech {\n\n /* loaded from: classes.dex */\n public interface TextToSpeechCallback {\n void onFailure();\n\n void onSuccess();\n }\n\n boolean isInitialized();\n\n int isLanguageAvailable(Locale locale);\n\n void onDestroy();\n\n void onResume();\n\n void onStop();\n\n void setPitch(float f);\n\n void setSpeechRate(float f);\n\n void speak(String str, Locale locale);\n}", "public void speakText(String text) {\n mTTS.setPitch(1);\n mTTS.setSpeechRate(1);\n mTTS.speak(String.format(\"Okay! Searching for %s\", text),\n TextToSpeech.QUEUE_FLUSH, null);\n }", "public abstract void voiceMessage(Message m);", "private void speak() {\n if(textToSpeech != null && textToSpeech.isSpeaking()) {\n textToSpeech.stop();\n }else{\n textToSpeech = new TextToSpeech(activity, this);\n }\n }", "public void speakButtonClicked(View v)\n {\n startVoiceRecognitionActivity();\n }", "public boolean speak(String text) {\n\treturn speak(new FreeTTSSpeakableImpl(text));\n }", "private void speak(String s, String text) {\n if (Utility.getInstance().isOnline(mContext)) {\n try {\n float pitch = (float) 0.62;\n float speed = (float) 0.86;\n textToSpeech.setSpeechRate(speed);\n textToSpeech.setPitch(pitch);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Bundle bundle = new Bundle();\n bundle.putInt(TextToSpeech.Engine.KEY_PARAM_STREAM, AudioManager.STREAM_MUSIC);\n textToSpeech.speak(s, TextToSpeech.QUEUE_FLUSH, bundle, null);\n textToSpeech.speak(text, TextToSpeech.QUEUE_ADD, bundle, null);\n } else {\n HashMap<String, String> param = new HashMap<>();\n param.put(TextToSpeech.Engine.KEY_PARAM_STREAM, String.valueOf(AudioManager.STREAM_MUSIC));\n textToSpeech.speak(s, TextToSpeech.QUEUE_FLUSH, param);\n textToSpeech.speak(text, TextToSpeech.QUEUE_ADD, param);\n }\n } catch (Exception ae) {\n ae.printStackTrace();\n }\n } else {\n Toast.makeText(mContext, getString(R.string.please_check_internet), Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onInit(int status) {\n\t \n\tif (status == TextToSpeech.SUCCESS) {\n\t\t \n int result = mTts.setLanguage(Locale.US);\n if (result != TextToSpeech.LANG_MISSING_DATA && result != TextToSpeech.LANG_NOT_SUPPORTED) {\n \tspokenText += spokenText+\"\"+spokenText+\"\";\n // mTts.speak(\"Dear sir your class is finished!! Dear sir your class is finished!! Dear sir your class is finished!!\", TextToSpeech.QUEUE_FLUSH, null);\n mTts.speak(spokenText, TextToSpeech.QUEUE_FLUSH, null);\n } \n } \n\t \n}", "private void startVoiceRecognitionActivity() {\n\t\tIntent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"What food are you stocking right now?\");\n\t\tstartActivityForResult(intent, SPEECH_REQCODE);\n\t}", "private void startVoiceRecognitionActivity()\n {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Voice recognition Demo...\");\n startActivityForResult(intent, REQUEST_CODE);\n }", "public void ResultVoiceIn(EventVoice event);", "private void startVoiceRecognitionActivity() {\n\t\t// Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\t// intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n\t\t// RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\t// intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n\t\t// \"Diga o valor do produto\");\n\t\t// intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_PREFERENCE, \"pt-BR\");\n\t\t// // intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_PREFERENCE,\n\t\t// \"en-US\");\n\t\t// intent.putExtra(RecognizerIntent.EXTRA_ONLY_RETURN_LANGUAGE_PREFERENCE,\n\t\t// true);\n\t\t// startActivityForResult(intent, VOICE_RECOGNITION_REQUEST_CODE);\n\t\tUtils.startVoiceRecognitionActivity(this, Utils.nomeProdutoMessage);\n\t}", "public Voice getVoice ()\r\n {\r\n return voice;\r\n }", "public Future<String> getVoice() throws DynamicCallException, ExecutionException {\n return call(\"getVoice\");\n }", "void speechToTextFuncVoiceForPurchase(Context context, EditText editText, int dataType, ImageView micImage, int valueforValidate) {\n if (Utility.getInstance().isOnline(mContext)) {\n int value = checkPermission(mContext, Manifest.permission.RECORD_AUDIO, RECORD_AUDIO_PERMISSION_REQUEST_CODE);\n if (value == 1) {\n mSpeechRecognizer = SpeechRecognizer.createSpeechRecognizer(mContext);\n mSpeechRecognizerIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n mSpeechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n String languageCode = Utility.getInstance().getLanguage(mContext);\n // Locale current = getResources().getConfiguration().locale;\n if (languageCode.matches(langaugeCodeEnglish)) {\n mSpeechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, \"en_US\");\n } else if (languageCode.matches(languageCodeMarathi)) {\n mSpeechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, \"mr_IN\");\n } else {\n mSpeechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, \"en_US\");\n setError(\"BaseFragmnet : speechToTextFunc Has problem\");\n }\n mSpeechRecognizer.setRecognitionListener(new RecognitionListener() {\n @Override\n public void onReadyForSpeech(Bundle params) {\n if (isVisible()) {\n micImage.setColorFilter(getResources().getColor(android.R.color.holo_green_light), PorterDuff.Mode.SRC_IN);\n if (editText != null) {\n editText.getBackground().setColorFilter(getResources().getColor(android.R.color.holo_green_light),\n PorterDuff.Mode.SRC_ATOP);\n }\n }\n }\n\n @Override\n public void onBeginningOfSpeech() {\n\n }\n\n @Override\n public void onRmsChanged(float rmsdB) {\n\n }\n\n @Override\n public void onBufferReceived(byte[] buffer) {\n\n }\n\n @Override\n public void onEndOfSpeech() {\n if (isVisible()) {\n micImage.setColorFilter(getResources().getColor(android.R.color.black), PorterDuff.Mode.SRC_IN);\n if (editText != null) {\n editText.getBackground().setColorFilter(getResources().getColor(android.R.color.black),\n PorterDuff.Mode.SRC_ATOP);\n }\n }\n }\n\n @Override\n public void onError(int error) {\n\n }\n\n @Override\n public void onResults(Bundle results) {\n if (isVisible()) {\n ArrayList<String> matches = results.getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION);\n if (matches.get(0).toString().toLowerCase().contains(getString(R.string.save).toString().toLowerCase())) {\n boolean valueStatus = validatePuchase();\n if (valueStatus) {\n createPurchaseRequest(flowpurchaseReceivedOrPaid);\n }\n } else if (matches.get(0).toString().toLowerCase().contains(getString(R.string.cancel_two).toString().toLowerCase())) {\n dialog.dismiss();\n dialog.dismiss();\n dialog.dismiss();\n if (textToSpeech != null) {\n textToSpeech.stop();\n }\n Toast.makeText(mContext, getString(R.string.transaction_cancelled), Toast.LENGTH_SHORT).show();\n speak(getString(R.string.transaction_cancelled), \"\");\n }\n if (editText != null) {\n if (dataType == 1) {\n editText.setText(matches.get(0));\n } else {\n for (int i = 0; i < matches.size(); i++) {\n if (matches.get(i).matches(\"^[0-9]*$\")) {\n editText.setText(matches.get(i));\n }\n }\n }\n\n\n //Ankur\n boolean valueValidate = validatePuchase();\n if (valueValidate) {\n speak(getString(R.string.please_say_save_or_cancel), \"\");\n new Handler().postDelayed(() -> {\n speechToTextFuncVoiceForPurchase(mContext, null, 3, imageviewMicSaveCancel, 2);\n }, 3000);\n }\n\n }\n }\n }\n\n @Override\n public void onPartialResults(Bundle partialResults) {\n\n }\n\n @Override\n public void onEvent(int eventType, Bundle params) {\n\n }\n });\n\n if (dialog.isShowing()) {\n mSpeechRecognizer.startListening(mSpeechRecognizerIntent);\n }\n } else if (value == 2) {\n displayNeverAskAgainDialog(mContext, getString(R.string.We_need_permission_Audio));\n }\n } else {\n Toast.makeText(context, getString(R.string.please_check_internet), Toast.LENGTH_SHORT).show();\n }\n }", "public void makeDecision(String speech , List<WordResult> speechWords) {\r\n\t\tVoiceManager vm =VoiceManager.getInstance();\r\n\t\tVoice voice;\r\n\t\tvoice=vm.getVoice(\"mbrola_us3\");\r\n\t\tvoice.allocate();\r\n\t\tSystem.out.println(speech);\r\n\t\t//System.out.println(speech+\"fdsf\");\r\n\t\t if(speech.equalsIgnoreCase(\"shutdown computer\"))\r\n\t\t {\r\n\t\t \ttry {voice.speak(\" Shuting down the computer\");\r\n\t\t \tRuntime rm=Runtime.getRuntime();\r\n\t\t\t\ttry{\r\n\t\t\t\t\tProcess proc=rm.exec(\"shutdown -s -t 0\");\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e)\r\n\t\t\t\t{}\r\n\t\t\t\t\r\n\r\n\t\t \t}\r\n\t\t \tcatch(Exception e)\r\n\t\t \t{\r\n\t\t \t\t\r\n\t\t \t}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"restart computer\"))\r\n\t\t {\r\n\t\t \ttry {voice.speak(\"restarting the computer\");\r\n\t\t \tRuntime rm=Runtime.getRuntime();\r\n\t\t\t\ttry{\r\n\t\t\t\t\tProcess proc=rm.exec(\"shutdown -r -t 0\");\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e)\r\n\t\t\t\t{}\r\n\t\t\t\t\r\n\t\t \t}\r\n\t\t \tcatch(Exception e)\r\n\t\t \t{\r\n\t\t \t\t\r\n\t\t \t}\r\n\t\t }\r\n\t\t \r\n\t\t else if(speech.equalsIgnoreCase(\"who is smart\"))\r\n\t\t {\r\n\t\t \ttry {voice.speak(\"Abhay bhadouriya is smartest person alive in this world\");}\r\n\t\t \tcatch(Exception e)\r\n\t\t \t{\r\n\t\t \t\t\r\n\t\t \t}\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"who is ugly\"))\r\n\t\t {\r\n\t\t \ttry {voice.speak(\"your sister and friends are the most ugliest persons in the world \");}\r\n\t\t \tcatch(Exception e)\r\n\t\t \t{\r\n\t\t \t\t\r\n\t\t \t}\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"what is time\"))\r\n\t\t {\r\n\t\t \tDate dm=new Date();\r\n\t\t \tint h=dm.getHours();\r\n\t\t \tint m=dm.getMinutes();\r\n\t\t \tif(h>12)\r\n\t\t \t{\r\n\t\t \t\th=h-12;\r\n\t\t \t}\r\n\t\t \t\r\n\t\t \ttry {voice.speak(\"TIME is\"+h+\"Hour\"+m+\"Minutes\" );}\r\n\t\t \tcatch(Exception e)\r\n\t\t \t{\r\n\t\t \t\t\r\n\t\t \t}\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"say hello \"))\r\n\t\t {\r\n\t\t \ttry {voice.speak(\"Hello this is your computer\");}\r\n\t\t \tcatch(Exception e)\r\n\t\t \t{\r\n\t\t \t\t\r\n\t\t \t}\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"please sleep\"))\r\n\t\t {\r\n\t\t \ttry {voice.speak(\"no i don't wont to sleep\");}\r\n\t\t \tcatch(Exception e)\r\n\t\t \t{\r\n\t\t \t\t\r\n\t\t \t}\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open facebook\"))\r\n\t\t {\r\n\t\t \t\r\n\t\t \t\tvoice.speak(\"facebook\");\r\n\t\t \t FUNC.facebook();\r\n\t\t \t\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open google\"))\r\n\t\t {\r\n\t\t \t\r\n\t\t \t\tvoice.speak(\"google\");\r\n\t\t \t FUNC.google();\r\n\t\t \t\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open youtube\"))\r\n\t\t {\r\n\t\t \t\r\n\t\t \t\tvoice.speak(\"youtube\");\r\n\t\t \t FUNC.youtube();\r\n\t\t \t\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open gmail\"))\r\n\t\t {\r\n\t\t \t\r\n\t\t \t\tvoice.speak(\"gmail\");\r\n\t\t \t FUNC.gmail();\r\n\t\t \t\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"play music\"))\r\n\t\t {\r\n\t\t \t\r\n\t\t \t\tvoice.speak(\"music\");\r\n\t\t \t FUNC.pmusic();\r\n\t\t \t\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"volume up\"))\r\n\t\t {\r\n\t\t \tvoice.speak(\"volume increasing by 10\");\r\n\t\t \t\tvolume.up();\r\n\t\t \t\t\r\n\t\t \t\r\n\t\t \t\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"volume down\"))\r\n\t\t {\r\n\t\t \t\r\n\t\t\t voice.speak(\"volume decreasing by 10\");\r\n\t \t\tvolume.down();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"show desktop\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"Showing desktop\");\r\n\t\t\t FUNC.desktop();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"how are you\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"i'm fine and you \");\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"what day is today\"))\r\n\t\t {\r\n\t\t\t Date dd=new Date();\r\n\t\t\t int i=dd.getDay();\r\n\t\t\t\tif(i==0)\r\n\t\t\t\t{\r\n\t\t\t\t\tvoice.speak(\"today is sunday\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(i==1)\r\n\t\t\t\t{\r\n\t\t\t\t\tvoice.speak(\"today is monday\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(i==2)\r\n\t\t\t\t{\r\n\t\t\t\t\tvoice.speak(\"today is tuesday\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(i==3)\r\n\t\t\t\t{\r\n\t\t\t\t\tvoice.speak(\"today is wednesday\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(i==4)\r\n\t\t\t\t{\r\n\t\t\t\t\tvoice.speak(\"today is thursday\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(i==5)\r\n\t\t\t\t{\r\n\t\t\t\t\tvoice.speak(\"today is friday\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(i==6)\r\n\t\t\t\t{\r\n\t\t\t\t\tvoice.speak(\"today is saturday\");\r\n\t\t\t\t}\r\n\t\t\t \r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"move to right\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t emotion.right();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"move to left\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t emotion.left();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"move to up\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t emotion.up();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"move to down\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t emotion.down();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"select this item\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t emotion.select();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"view its property\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t emotion.property();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"view item menu\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t emotion.viewmenu();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"turn on mouse by keyboard\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t emotion.turnon();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"close this window tab\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t emotion.close();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"switch window tab\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t emotion.switcht();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"ok dude take some rest\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t voice.speak(\"have a nice day\");\r\n\t\t\t voice.speak(\"i'm very lucky to have a master like you sir \");\r\n\t\t\t voice.speak(\"good night my suprier great master\");\r\n\t\t\t System.exit(0);\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"turn on wifi\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t volume.wifi();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"turn off wifi\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t volume.wifi();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"turn on bluetooth\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t try{\r\n\t \t\t Process p ;\t//resultText=\"\";\r\n\t \t\t p = Runtime.getRuntime().exec(\"cmd /c fsquirt\");\r\n\t \t\t \r\n\t \t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open the notepad\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t \t\t Process p;\t//resultText=\"\";\r\n\t \t\t p = Runtime.getRuntime().exec(\"cmd /c start notepad\");\r\n\t \t\t // System.out.println(\"inside\");\r\n\t \t\t }catch(Exception ae){}\r\n\t\t } else if(speech.equalsIgnoreCase(\"close the notepad\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t \t\t Process p;\t//resultText=\"\";\r\n\t \t\t p = Runtime.getRuntime().exec(\"cmd /c start taskkill /im notepad.exe /f\");\r\n\t \t\t // System.out.println(\"inside\");\r\n\t \t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open the command\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t \t\t\t\tProcess p;\r\n\t \t\t\t\tp = Runtime.getRuntime().exec(\"cmd /c start cmd\");\t\t\t\t\r\n\t \t\t\t\t}catch(Exception er)\r\n\t \t\t\t\t{}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"close the command\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t \t\t Process p;\t\r\n\t \t\t p = Runtime.getRuntime().exec(\"cmd /c start taskkill /im cmd.exe /f\");\r\n\t \t\t \r\n\t \t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open the browser\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t \t\t Process p;\r\n\t \t\t p = Runtime.getRuntime().exec(\"cmd /c start chrome.exe\");\r\n\t \t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"close the browser\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t\t\t Process p;\r\n\t\t\t p = Runtime.getRuntime().exec(\"cmd /c start taskkill /im chrome.exe /f\");\r\n\t\t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open the control panel\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t\t\t Process p;\r\n\t\t\t p = Runtime.getRuntime().exec(\"cmd /c control\");\r\n\t\t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"close the control panel\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t\t\t Process p;\r\n\t\t\t p = Runtime.getRuntime().exec(\"cmd /c control taskkill /im control /f\");\r\n\t\t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open the paint\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t\t\t Process p;\r\n\t\t\t p = Runtime.getRuntime().exec(\"cmd /c start mspaint\");\r\n\t\t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"close the paint\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t \t\t Process p;\r\n\t \t\t p = Runtime.getRuntime().exec(\"cmd /c start taskkill /im mspaint.exe /f\");\r\n\t \t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open the task manager\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t\t\t Process p;\r\n\t\t\t p = Runtime.getRuntime().exec(\"cmd /c start taskmgr.exe\");\r\n\t\t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open the task manager\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t\t\t Process p;\r\n\t\t\t \tp = Runtime.getRuntime().exec(\"cmd /c start taskkill /im taskmgr.exe /f\");\r\n\t\t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open power option\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t \t\t Process p;\r\n\t \t\t p = Runtime.getRuntime().exec(\"cmd /c powercfg.cpl\");\r\n\t \t\t \r\n\t \t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"open windows security center\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t try{\r\n\t \t\t Process p;\r\n\t \t\t p = Runtime.getRuntime().exec(\"cmd /c wscui.cpl\");\r\n\t \t\t \r\n\t \t\t }catch(Exception ae){}\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"copy this item\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok item is copied\");\r\n\t\t\t basiccontrolls.copy();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"paste here selected item\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"item is pasted\");\r\n\t\t\t basiccontrolls.paste();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"cut this item\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok item is cut\");\r\n\t\t\t basiccontrolls.cut();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"go back\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok going to previous page\");\r\n\t\t\t basiccontrolls.back();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"show me my beautiful face\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"you look like a donkey\");\r\n\t\t\t basiccontrolls.camera();\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"who the hell are you\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"hello\");\r\n\t\t\t voice.speak(\"i am computer \");\r\n\t\t\t voice.speak(\"here i'm assist by you \");\r\n\t\t\t voice.speak(\"i will do anything what ever you told me todo and \"+\" \"+\" what instruction are feeded in my dictionary\");\r\n\t\t\t voice.speak(\"Thank you for asking \");\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"who loves you\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"no one loves me \");\r\n\t\t\t voice.speak(\"except my charger \");\r\n\t\t\t voice.speak(\"but more impoertantly i looks far handsome than you \");\r\n\t\t\t voice.speak(\"you peace of shit \");\r\n\t\t\t voice.speak(\"your face is look like a monkey\");\r\n\t\t }\r\n\t\t else if(speech.equalsIgnoreCase(\"do you like engineering\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"no\");\r\n\t\t\t voice.speak(\"I hate engineering\");\r\n\t\t\t voice.speak(\"you ruined my life \");\r\n\t\t }\r\n\t\t/* else if(speech.equalsIgnoreCase(\"turn off wifi\"))\r\n\t\t {\r\n\t\t\t voice.speak(\"ok\");\r\n\t\t\t volume.wifi();\r\n\t\t }*/\r\n\r\n\t}", "public SendVoice() {\n super();\n }", "public interface VoiceManager {\n\n void speak(int requestCode, int speechResourceId, Object... formatArgs);\n\n void speak(int requestCode, int speechResourceId);\n\n void listen(int requestCode);\n\n void shutdown();\n\n void setVoiceManagerListener(VoiceManagerImpl.VoiceManagerListener listener);\n}", "private void speakExtractedText(TextToSpeech tts, String fileTextContent){\n Bundle dataMap = new Bundle();\n dataMap.putFloat(TextToSpeech.Engine.KEY_PARAM_PAN, 0f);\n dataMap.putFloat(TextToSpeech.Engine.KEY_PARAM_VOLUME, 1f);\n dataMap.putInt(TextToSpeech.Engine.KEY_PARAM_STREAM, AudioManager.STREAM_VOICE_CALL);\n\n\n tts.speak(fileTextContent, TextToSpeech.QUEUE_FLUSH, dataMap, FRAGMENT_GENERAL_UTTERANCE_ID);\n }", "private void speakOut(String text) {\n\n tts.speak(text, TextToSpeech.QUEUE_FLUSH, null);\n }", "public Voice(String name){\r\n this.name = name;\r\n }", "public void onSpeak(View v)\n\t{\n\t\tstartVoiceRecognitionActivity();\n\t}", "@FXML\r\n void btnspeechClick(MouseEvent event) {\n \t\r\n \t setService();\r\n setHeader();\r\n \r\n System.out.println(service);\r\n \r\n InputStream stream = service.synthesize(\r\n taContent.getText(), // 변경할 문자열\r\n \tVoice.EN_LISA, // voice 선택\r\n \tAudioFormat.WAV // 출력할 오디오 포멧 형식 \r\n ).execute();\r\n // 음성데이터를 저장하기\r\n try {\r\n InputStream in = WaveUtils.reWriteWaveHeader(stream);\r\n //WaveUtils.\r\n \r\n OutputStream os = new FileOutputStream(\"d:/d_other/AIData/test12.wav\");\r\n \r\n byte[] tmp = new byte[1024];\r\n int len = 0;\r\n \r\n while((len = in.read(tmp)) != -1) {\r\n os.write(tmp, 0, len);\r\n }\r\n os.flush();\r\n \r\n os.close();\r\n in.close();\r\n stream.close();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n \r\n music();\r\n\r\n }", "private void startVoiceRecognitionActivity()\n\t{\n\t\tSystem.out.println(\"Starting activity lel\");\n\t\tIntent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n\t\t\t\tRecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Voice recognition Demo...\");\n\t\tstartActivityForResult(intent, VOICE_REQUEST_CODE);\n\t}", "private void display() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n// Start the activity, the intent will be populated with the speech text\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n }", "public synchronized AudioInputStream stringToSound(String sentence) throws CaptchaException {\n //use the custom (see inner class) InputStreamAudioPlayer, which provide interface to\n // Audio Stream\n InputStreamAudioPlayer audioPlayer = new InputStreamAudioPlayer();\n\n this.voice.setAudioPlayer(audioPlayer);\n\n // Synthesize speech.\n this.voice.speak(sentence);\n\n AudioInputStream ais = audioPlayer.getAudioInputStream();\n return ais;\n }", "void translate(Sentence sentence);", "public void ResultVoiceDialog(EventVoice event);", "public void voice() {\n System.out.println(\"My name is \"+ this.name + \",\" +\n \"I'm a smart dog and I'm \" + this.age + \"!\" + \" I'm \" + this.color + \".\"); //Task 19\n }", "public void speakClicked(View v)\n {\n EditText editText = (EditText) findViewById(R.id.inputText);\n\n mTts.speak(editText.getText().toString(),\n TextToSpeech.QUEUE_FLUSH, // Drop all pending entries in the playback queue.\n null,\n null);\n }", "public void startSpeechRecognition() {\n\t\tIntent i = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\ti.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, \"en-GB\");\n\t\ttry {\n\t\t\tstartActivityForResult(i, REQUEST_OK);\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "public static void speak(Context context, final String text) {\n Log.d(TAG, \"Speak : \" + text);\n if (mTTSEngine == null) {\n mTTSEngine = new TextToSpeech(context, new TextToSpeech.OnInitListener() {\n @Override\n public void onInit(int i) {\n if (i == TextToSpeech.SUCCESS) {\n mTTSEngine.setLanguage(Locale.US);\n mTTSEngine.setPitch(1f);\n mTTSEngine.setSpeechRate(1f);\n\n mTTSEngine.speak(text, TextToSpeech.QUEUE_ADD, null, UTTERANCE_ID);\n } else {\n mTTSEngine = null;\n }\n }\n });\n } else {\n mTTSEngine.speak(text, TextToSpeech.QUEUE_ADD, null, UTTERANCE_ID);\n }\n }", "public void speak(String outputSpeak) \n {\n speaker.speaker(outputSpeak);\n }", "@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n private void speakWords(String speech) {\n myTTS.speak (speech, TextToSpeech.QUEUE_FLUSH, null,\"1\");\n\n }", "private void displaySpeechRecognizer() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n // Start the activity, the intent will be populated with the speech text\n startActivityForResult(intent, Constants.SPEECH_REQUEST_CODE);\n }", "public void listen(View v)\r\n {\r\n // set up an intent to ask for speech-to-text, and connect it back to\r\n // this Activity\r\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\r\n intent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getClass().getPackage().getName());\r\n\r\n // Give text to display, and a hint about the language model\r\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Tell the robot what to do!\");\r\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\r\n\r\n // How many results to return? They will be sorted by confidence\r\n intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 5);\r\n\r\n // Start the activity\r\n startActivityForResult(intent, VOICE_RECOGNITION_REQUEST_CODE);\r\n }", "@Override\n protected synchronized void onSynthesizeText(SynthesisRequest request,\n SynthesisCallback callback) {\n int load = onLoadLanguage(request.getLanguage(), request.getCountry(),\n request.getVariant());\n\n // We might get requests for a language we don't support - in which case\n // we error out early before wasting too much time.\n if (load == TextToSpeech.LANG_NOT_SUPPORTED) {\n callback.error();\n return;\n }\n\n // At this point, we have loaded the language we need for synthesis and\n // it is guaranteed that we support it so we proceed with synthesis.\n\n // We denote that we are ready to start sending audio across to the\n // framework. We use a fixed sampling rate (16khz), and send data across\n // in 16bit PCM mono.\n callback.start(SAMPLING_RATE_HZ,\n AudioFormat.ENCODING_PCM_16BIT, 1 /* Number of channels. */);\n\n // We then scan through each character of the request string and\n // generate audio for it.\n final String text = request.getText().toLowerCase();\n for (int i = 0; i < text.length(); ++i) {\n char value = normalize(text.charAt(i));\n // It is crucial to call either of callback.error() or callback.done() to ensure\n // that audio / other resources are released as soon as possible.\n if (!generateOneSecondOfAudio(value, callback)) {\n callback.error();\n return;\n }\n }\n\n // Alright, we're done with our synthesis - yay!\n callback.done();\n }", "public interface TextSpeakLogicInterface {\n\n public void speakOut(String text);\n public void stopSpeak();\n\n}", "public interface TTSController {\n\t\n\t/**\n\t * Plays the given string of text as speech.\n\t */\n\tvoid playSpeech(String rawText);\n\t\n}", "private void askSpeechInput() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n \"Hi speak something\");\n speakOut(\"Open Mic\");\n try {\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n } catch (ActivityNotFoundException a) {\n\n }\n }", "public TextPassage(String text, int tpIndex, Vocabulary voc) {\r\n\t\tthis.text = text;\r\n\t\tthis.tpIndex = tpIndex;\r\n\t\twords = new TIntArrayList();\r\n\t\tString[] tokens = text.split(\"[\\\\W0-9]\");\r\n\t\tfor (int i = 0; i < tokens.length; i++) {\r\n\t\t\tString token = tokens[i].toLowerCase();\r\n\t\t\tif (token.length() > 1 && voc.contains(token)) {\r\n\t\t\t\twords.add(voc.getTypeIndex(token).intValue());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void tts(String str){\n\t\ttxtSpeechInput.setText(str);\n\t\tt1.speak(str , TextToSpeech.QUEUE_FLUSH, null);\n\t\twhile(t1.isSpeaking()){\n\t\t\t;\n\t\t}\n\t}", "public void onClick(View v) {\n Toast.makeText( getActivity(),\"Voice Recognition\", Toast.LENGTH_SHORT).show();\n }", "private void speak(String text, int queueMode, ArrayList<String> params) {\n if (queueMode == 0) {\n stop();\n }\n mSpeechQueue.add(new SpeechItem(text, params, SpeechItem.TEXT));\n if (!mIsSpeaking) {\n processSpeechQueue();\n }\n }", "@Override\n public void onInit(int status) {\n if (status == TextToSpeech.SUCCESS) {\n int result = tts.setLanguage(Locale.US);\n if (result == TextToSpeech.LANG_MISSING_DATA ||\n result == TextToSpeech.LANG_NOT_SUPPORTED) {\n Log.e(\"error\", \"This Language is not supported\");\n } else {\n ConvertTextToSpeech(\"\");\n\n }\n } else\n Log.e(\"error\", \"Initilization Failed!\");\n\n\n }", "private void speakout(String cname) \n{\n\t{t1.speak(cname,TextToSpeech.QUEUE_FLUSH,null);\n\tt1.setLanguage(Locale.ENGLISH);\n\t}\n}", "public abstract void grantVoice(String nickname);", "@Override\n public void speak() {\n System.out.println(\"I'm an Aardvark, I make grunting sounds most of the time.\");\n }", "void onTranslation(Sentence sentence);", "public void setContactVoice(String contactVoice) {\n this.contactVoice = contactVoice;\n }", "private void speakOut() {\n\n tts.speak(\"Hello I am jessie\", TextToSpeech.QUEUE_FLUSH, null);\n tts.setLanguage(Locale.ENGLISH);\n //tts.setPitch(9);\n tts.setSpeechRate(1);\n }", "String getTransformedText();", "private void listenVoiceCall() {\n final String username = MyAccount.getInstance().getName();\n final String topic = String.format(\"voice/%s\", username);\n new Subscriber(topic, username)\n .setNewMessageListener(new SubscribedTopicListener() {\n @Override\n public void onReceive(DataTransfer message) {\n String action = message.data.toString();\n switch (action) {\n case Constants.VOICE_REQUEST:\n onReceiveVoiceRequest(message);\n break;\n\n case Constants.VOICE_ACCEPT:\n hideCallingPane();\n onReceiveVoiceAccept(message);\n break;\n\n case Constants.VOICE_REJECT:\n hideCallingPane();\n onReceiveVoiceReject(message);\n break;\n\n case Constants.VOICE_QUIT:\n onReceiveVoiceQuit(message);\n\n }\n }\n })\n .listen();\n }", "public void deliverRawText(String text) {\n \n }", "private void setTextTospeech() {\n textToSpeech = new TextToSpeech(mContext, new TextToSpeech.OnInitListener() {\n @Override\n public void onInit(int status) {\n if (status == TextToSpeech.SUCCESS) {\n Set<Locale> languages = textToSpeech.getAvailableLanguages();\n if (language.toLowerCase().contains(langaugeCodeEnglish)) {\n int result = textToSpeech.setLanguage(new Locale(\"en\", \"IN\"));\n if (result == TextToSpeech.LANG_MISSING_DATA || result == TextToSpeech.LANG_NOT_SUPPORTED) {\n //Toast.makeText(mContext, result + \" is not supported\", Toast.LENGTH_SHORT).show();\n Log.e(\"Text2SpeechWidget\", result + \" is not supported\");\n }\n } else {\n int result = textToSpeech.setLanguage(new Locale(\"hi\", \"IN\"));\n if (result == TextToSpeech.LANG_MISSING_DATA || result == TextToSpeech.LANG_NOT_SUPPORTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n result = textToSpeech.setLanguage(Locale.forLanguageTag(\"hin\"));\n if (result == TextToSpeech.LANG_MISSING_DATA || result == TextToSpeech.LANG_NOT_SUPPORTED) {\n SharedPreferences sharedPreferences = Utility.getInstance().getSharedPReference(mContext);\n int applicationLoginCount = sharedPreferences.getInt(TTSDIALOGUECOUNT, 1);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n if (!sharedPreferences.getBoolean(LANGUAGEAVAILABILITYFIRSTTIME, true)) {\n editor.putBoolean(LANGUAGEAVAILABILITYFIRSTTIME, true);\n // Utility.getInstance().ttsLanguageDialogue(mContext,getString(R.string.marathi_language_Available_update));\n }\n applicationLoginCount++;\n // editor.putInt(TTSDIALOGUECOUNT, applicationLoginCount);\n editor.commit();\n }\n } else {\n SharedPreferences sharedPreferences = Utility.getInstance().getSharedPReference(mContext);\n int applicationLoginCount = sharedPreferences.getInt(TTSDIALOGUECOUNT, 1);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n if (!sharedPreferences.getBoolean(LANGUAGEAVAILABILITYFIRSTTIME, true)) {\n editor.putBoolean(LANGUAGEAVAILABILITYFIRSTTIME, true);\n // Utility.getInstance().ttsLanguageDialogue(mContext,getString(R.string.marathi_language_Available_update));\n }\n applicationLoginCount++;\n // editor.putInt(TTSDIALOGUECOUNT, applicationLoginCount);\n editor.commit();\n\n // Toast.makeText(mContext, result + \"Language is not supported\", Toast.LENGTH_SHORT).show();\n Log.e(\"Text2SpeechWidget\", result + \"Language is not supported\");\n }\n Log.e(\"Text2SpeechWidget\", result + \" is not supported\");\n } else {\n SharedPreferences sharedPreferences = Utility.getInstance().getSharedPReference(mContext);\n int applicationLoginCount = sharedPreferences.getInt(TTSDIALOGUECOUNT, 1);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n if (!sharedPreferences.getBoolean(LANGUAGEAVAILABILITYFIRSTTIME, true)) {\n editor.putBoolean(LANGUAGEAVAILABILITYFIRSTTIME, true);\n // Utility.getInstance().ttsLanguageDialogue(mContext,getString(R.string.marathi_language_Available_update));\n }\n applicationLoginCount++;\n // editor.putInt(TTSDIALOGUECOUNT, applicationLoginCount);\n editor.commit();\n }\n if (result == TextToSpeech.LANG_NOT_SUPPORTED) {\n showTtsLanuageNSDialog();\n }\n }\n }\n }\n });\n }", "void TranslateToTurkish() {\n // Check wheter the device language is English\n if(Locale.getDefault().getDisplayLanguage() == \"en\"){ // Don't do anything if it is English\n }\n else { // Translate to device language (For now just Turkish)\n final Handler textViewHandler = new Handler();\n new AsyncTask<Void, Void, Void>() {\n @Override\n protected Void doInBackground(Void... params) {\n TranslateOptions options = TranslateOptions.newBuilder()\n .setApiKey(googleApiKey)\n .build();\n Translate translate = options.getService();\n final Translation translation =\n translate.translate(textToSpeechInputText,\n Translate.TranslateOption.targetLanguage(\"tr\"));\n textViewHandler.post(new Runnable() {\n @Override\n public void run() {\n Log.d(\"Translated text:\", translation.getTranslatedText().toString());\n textToSpeechInputText = translation.getTranslatedText().toString();\n Log.d(\"Output\", textToSpeechInputText);\n //Speak of the result\n Speak(textToSpeechInputText);\n state = 2; // Turn state to speaking the result\n }\n });\n return null;\n }\n }.execute();\n }\n }", "public void sayText(String normal, String altered){\n\t\tvoiceGen.sayText(normal, altered);\n\t}", "public String getGrammarText();", "public void addSpeechFile(String text, String filename) {\n mSelf.addSpeech(text, filename);\n }", "private void sayHello() {\n\n\t\tmTts.speak(translatedText, TextToSpeech.QUEUE_FLUSH, // Drop allpending\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// entries in\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the playback\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// queue.\n\t\t\t\tnull);\n\t}", "@Override\r\n public void onInit(int status) {\n if(status!=TextToSpeech.ERROR) {\r\n ttobj.setLanguage(Locale.UK);\r\n //ttobj.setPitch(2);\r\n }\r\n }", "String sound();", "String getToText();", "private void listenToSpeech(int returnCode) {\n\t\tIntent listenIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\t//indicate package\n\t\tlistenIntent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getClass().getPackage().getName());\n\t\t//message to display while listening\n\t\tlistenIntent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"\");\n\t\t//set speech model\n\t\tlistenIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\t//specify number of results to retrieve\n\t\tlistenIntent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 10);\n\t\t//start listening\n\t\tstartActivityForResult(listenIntent, returnCode);\n\n\t}", "public interface TextToSpeechListener {\n\n public void onInitSucceeded();\n public void onInitFailed();\n public void onCompleted();\n\n}", "public interface TextToSpeechListener {\n\n\tvoid onTTSInit(int ttsResult) ;\n}", "public void ResultVoiceCoincidence(EventVoice event);", "public void speakbutton_clicked(View v) {\n\t\tstartVoiceRecognitionActivity();\n\t}", "public void speakOut(final String text){\n\t\tif (listener != null){\n\t\t\thandler.post(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlistener.speakOut(text.trim());\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "private void changeVoice(String voice) throws IOException{\r\n\t\tFile failed = new File(\".festivalrc\");\r\n\t\t//If file does not exist, create new file\r\n\t\tif(!failed.exists()) {\r\n\t\t\tfailed.createNewFile();\r\n\t\t} \r\n\r\n\t\t//Appending the word to the file\r\n\t\tWriter output;\r\n\t\toutput = new BufferedWriter(new FileWriter(failed,false)); \r\n\t\toutput.append(\"(set! voice_default '\"+voice +\")\");\r\n\t\toutput.close();\r\n\t}", "public Voice() {\n }", "public interface VoiceActivityDetectorListener {\n void onVoiceActivityDetected();\n void onNoVoiceActivityDetected();\n}", "@Override\r\n\tpublic void call() {\n\t\tSystem.out.println(\"通过语音打电话\");\r\n\t}", "private String soundConversion() {\n int reading = (record[18] & 255) + ((record[21] & 0x0C) << 6);\n return (reading * 100) / 1024 + \"\";\n }", "public void speak(String text, int queueMode, String[] params) {\n ArrayList<String> speakingParams = new ArrayList<String>();\n if (params != null) {\n speakingParams = new ArrayList<String>(Arrays.asList(params));\n }\n mSelf.speak(text, queueMode, speakingParams);\n }" ]
[ "0.7178406", "0.7015987", "0.6777949", "0.6595906", "0.65608716", "0.6539834", "0.648777", "0.638716", "0.63360417", "0.633589", "0.62818474", "0.62689006", "0.6225402", "0.6220925", "0.62190396", "0.6140639", "0.6107802", "0.6089201", "0.6059283", "0.60303533", "0.59644294", "0.5860642", "0.5782348", "0.575687", "0.57163477", "0.56873465", "0.56614786", "0.5661427", "0.5646943", "0.56101424", "0.5609889", "0.5598603", "0.558939", "0.5582238", "0.5578339", "0.5575046", "0.55697167", "0.5567964", "0.5567253", "0.55646855", "0.5561619", "0.5549742", "0.5534229", "0.55187464", "0.5508329", "0.5497603", "0.54932517", "0.54892164", "0.5480353", "0.54798084", "0.54754466", "0.5440141", "0.5375647", "0.53660274", "0.53472614", "0.53470546", "0.53430384", "0.5335012", "0.5334821", "0.5322765", "0.5311137", "0.5306178", "0.5300277", "0.5298751", "0.52974015", "0.52900857", "0.52722204", "0.52710205", "0.52573717", "0.52414954", "0.5218389", "0.52156514", "0.52047515", "0.51946133", "0.5191833", "0.51776105", "0.51730597", "0.5171441", "0.51698565", "0.5159325", "0.5157297", "0.51531667", "0.51407933", "0.51397246", "0.5127887", "0.5125356", "0.5125282", "0.51199603", "0.51180047", "0.5109645", "0.5103447", "0.508738", "0.508322", "0.50817275", "0.50810575", "0.50789005", "0.50745213", "0.5067769", "0.5064911", "0.50441235" ]
0.62692606
11
Callback for getting information about the host turret of various turret entities.
public interface HostTurretCallback { boolean setTurretAngle(float angle); Sprite getTurretBodySprite(); Sprite getTurretCannonSprite(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void turretCode() throws GameActionException {\n\t\t//Attack Enemy\n\t\tRobotInfo[] visibleEnemyArray = rc.senseHostileRobots(rc.getLocation(), 1000000);\n\t\tSignal[] incomingSignals = rc.emptySignalQueue();\n\t\tSignal[] signals;\n\t\tif (incomingSignals.length>125) {\n\t\t\tsignals = new Signal[125];\n\t\t\tfor(int i=0; i<125; i++) {\n\t\t\t\tsignals[i]=incomingSignals[i];\n\t\t\t}\n\t\t} else {\n\t\t\tsignals = incomingSignals;\n\t\t}\n\t\tboolean unit = false;\n\t\tfor(Signal s:signals){\n\t\t\tint[] message = s.getMessage();\n\t\t\tif(s.getTeam()==rc.getTeam()){\n\t\t\t\tif(message!=null){\n\t\t\t\t\tif(message[0]%10==0){\n\t\t\t\t\t\tcenter = s.getLocation();\n\t\t\t\t\t\tint r = message[0]/10;\n\t\t\t\t\t\tradius=r;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tunit=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (visibleEnemyArray.length > 0 || unit) {\n\t\t\tif (rc.isWeaponReady()) {\n\t\t\t\trc.attackLocation(Utility.toAttack(visibleEnemyArray, incomingSignals));\n\t\t\t}\n\t\t}else{\n\t\t\tMapLocation travel=turretFind();\n\t\t\tif(travel!=rc.getLocation()){\n\t\t\t\tgoal = travel;\n\t\t\t\trc.pack();\n\t\t\t}\n\t\t}\t\t\t\n\t}", "@Override\n\t\n\tvoid level_specific_turret_setup(){\n\t}", "public Turret[] getTurretsOnStage(){\n\t\treturn this.turrets;\n\t}", "public synchronized void turretLoop() {\n SmartDashboard.putNumber(\"Vision Turret Adjust\", mTurretAdjust);\n if (mTurretState == TurretState.AUTO_AIM) {\n double turretAdjust = mOperatorInterface.getTurretAdjust();\n mTurretAdjust += turretAdjust * Constants.TURRET_MANUAL_ADJUST_FACTOR;\n\n // Command the Turret with vision set points\n // RobotTracker.RobotTrackerResult result =\n // mRobotTracker.GetTurretError(Timer.getFPGATimestamp());\n // double dis = result.distance;\n VisionPacket vp = mRobotTracker.GetTurretVisionPacket(Timer.getFPGATimestamp());\n if (vp.HasValue == true) {\n // We have Target Information\n LastDistance = vp.Distance;\n\n // verify we haven't already commanded this packet!\n if (vp.ID != LastTurretVisionID) {\n mTurret.SetAimError(vp.Error_Angle + (vp.getTurretOffset()* -1) + mTurretAdjust);\n LastTurretVisionID = vp.ID;\n }\n\n } else {\n // No Results, Don't Rotate\n\n }\n } else {\n // Command the Turret Manually\n // Operator Controls\n double ManualTurn = mOperatorInterface.getTurretAdjust();\n if (Math.abs(ManualTurn) > .2) {\n mTurret.SetManualOutput(mOperatorInterface.getTurretAdjust());\n } else {\n mTurret.SetManualOutput(0);\n }\n }\n }", "public void fireTurret() {\n\t\tif(!getCreator().hasEffect(\"TurretEffect\")) {\n\t\t\treturn;\n\t\t}\n\t\t//Fire based on what is ordained within the hero's current TurretEffect\n\t\tTurretEffect tE = (TurretEffect)getCreator().getEffect(\"TurretEffect\");\n\t\tTurretFireWrapper fW = tE.getFireFunctionWrapper();\n\t\tif(fW == null) {\n\t\t\treturn; //No active mode selected, so we just exit out. Note that this means that turrets will always fire based on the last active effect\n\t\t}\n\t\tfW.fire(getCreator(), getLoc(),range);\n\t\treturn;\n\t}", "public static void vehicleShoot(Player curr, int owner) {\n boolean airShot = false;\n if (gameMode == EARTH_INVADERS) //so vehicles don't shoot each other\n airShot = true;\n if (numFrames >= curr.getLastShotTime() + curr.getReloadTime()) {\n int hd = curr.getHeadDirection();\n Bullet temp = null;\n int bulletSpeed = SPEED * 6;\n //find monster in sights\n int[] target = isMonsterInSight(curr);\n int mIndex = target[1];\n int detX = -1;\n int detY = -1;\n if (mIndex > 0) {\n detX = players[mIndex].findX(cellSize);\n detY = players[mIndex].findY(cellSize);\n if (players[mIndex].isFlying())\n airShot = true;\n }\n if (curr.getName().endsWith(\"missile\")) {\n channels[0].programChange(instr[TAIKO].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 10) + 5, (int) (Math.random() * 10) + 40);\n\n if (gameMode == CITY_SAVER)\n bulletSpeed = SPEED * 4;\n else\n bulletSpeed = SPEED * 3;\n temp = new Bullet(\"missile\" + hd, curr.getX(), curr.getY(), 50, rocketImages, SPEED, \"SHELL\", bulletSpeed, true, owner, detX, detY);\n } else if (curr.getName().endsWith(\"jeep\")) {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 65, (int) (Math.random() * 10) + 30);\n if (gameMode == CITY_SAVER)\n bulletSpeed = SPEED * 7;\n else\n bulletSpeed = SPEED * 6;\n temp = new Bullet(\"jeep\" + hd, curr.getX(), curr.getY(), 5, machBulletImages, SPEED, \"BULLET\", bulletSpeed, airShot, owner, -1, -1);\n } else if (curr.getName().endsWith(\"troops\") || curr.getName().endsWith(\"police\")) {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 70, (int) (Math.random() * 10) + 20);\n temp = new Bullet(\"troops\" + hd, curr.getX(), curr.getY(), 3, bulletImages, SPEED, \"BULLET\", SPEED * 6, airShot, owner, -1, -1);\n } else if (curr.getName().endsWith(\"flame\")) {\n channels[0].programChange(instr[TAIKO].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 10) + 15, (int) (Math.random() * 10) + 40);\n\n if (gameMode == CITY_SAVER)\n bulletSpeed = SPEED * 5;\n else\n bulletSpeed = SPEED * 4;\n temp = new Bullet(\"flame\" + hd, curr.getX(), curr.getY(), 15, monsterFireImages, SPEED, \"FIRE\", bulletSpeed, airShot, owner, -1, -1);\n } else {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 45, (int) (Math.random() * 10) + 85);\n\n if (gameMode == CITY_SAVER)\n bulletSpeed = SPEED * 6;\n else\n bulletSpeed = SPEED * 5;\n temp = new Bullet(\"\" + hd, curr.getX(), curr.getY(), 15, shellImages, SPEED, \"SHELL\", bulletSpeed, airShot, owner, -1, -1);\n }\n temp.setDirection(hd);\n if (temp != null) {\n bullets.add(temp);\n curr.setLastShotTime(numFrames);\n }\n if (bullets.size() > BULLET_LIMIT) //remove earliest fired bullet if we have more than the bullet limit\n {\n explosions.add(new Explosion(\"SMALL\", bullets.get(0).getX() - (cellSize / 2), bullets.get(0).getY() - (cellSize / 2), explosionImages, animation_delay));\n bullets.remove(0);\n }\n }\n }", "protected boolean findTarget(){\n\t\t// shoot units\n\t\tfloat tmpDist = -1;\n\t\tUnit tmpUnit = null;\n\t\tfor(Unit u:Game.map.get(tileId).unitMap){ // loop through units on\n\t\t\t\t\t\t\t\t\t\t\t\t\t// maptile\n\t\t\tif(this.id == u.id)\n\t\t\t\tcontinue;\n\t\t\tif(this.ownerId == u.ownerId)\n\t\t\t\tcontinue;\n\t\t\tif(u.dead)\n\t\t\t\tcontinue;\n\t\t\tVector3f tmp = Vector3f.sub(this.modelPos, u.modelPos, null);\n\t\t\tif(tmpDist == -1 || tmp.length() < tmpDist){\n\t\t\t\ttmpUnit = u;\n\t\t\t\ttmpDist = tmp.length();\n\t\t\t}else\n\t\t\t\tcontinue;\n\t\t}\n\t\tif(tmpDist != -1 && tmpDist <= range && tmpUnit != null){\n\t\t\tthis.hostile = tmpUnit;\n\t\t\tthis.target = this.hostile.modelPos;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "protected Unit target() {\n\t\tUnit closest = null; // this variable will contain the closest Unit\n\t\tDouble min = (double) projectile_range; // this will contain the lowest distance\n\t\tList<Entity> entities = level.getEntities();\n\n\t\tfor (int i = 0; i < entities.size(); i++) {\n\t\t\tEntity e = entities.get(i);\n\t\t\tUnit u = (Unit) e; // casts e to Unit\n\t\t\tif (u.equals(this)) continue; // discounts self\n\t\t\tif (u.UNIT_R != UNIT_G && u.UNIT_G != UNIT_R) continue; // discounts Units from own team\n\t\t\tif (!(e instanceof Unit)) continue; // discounts non-Unit entities\n\n\t\t\tdouble distance = MathMachine.distance((u.getX() - x), (u.getY() - y));\n\t\t\t/*\n\t\t\t * int r = 0; int g = 0; for (int y = 0; y < level.getHeight() * 16; y++) { for (int x = 0; x < level.getWidth() * 16; x++) { if (level.redPixels[x + y * level.getWidth() * 16] == true) r++; if (level.greenPixels[x + y * level.getWidth() * 16] == true )g++; System.out.println(\"r: \" + r + \", \" + g); } }\n\t\t\t */\n\t\t\tif (UNIT_R) { // if it is a red unit\n\t\t\t\tif (distance < min) {\n\t\t\t\t\tint xt = (int) Math.round(u.getX());\n\t\t\t\t\tint yt = (int) Math.round(u.getY());\n\t\t\t\t\tif (level.redPixels[(int) Math.round(xt + level.getWidth() * 16.0 * yt)]) {\n\t\t\t\t\t\tclosest = u;\n\t\t\t\t\t\tmin = distance;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (UNIT_G) { // if it is a green unit\n\t\t\t\tif (distance < min) {\n\t\t\t\t\tSystem.out.println(level.greenPixels[(int) Math.round(u.getX() + level.getWidth() * 16.0 * u.getY())]);\n\n\t\t\t\t\tif (level.greenPixels[(int) Math.round(u.getX() + level.getWidth() * 16.0 * u.getY())]) {\n\t\t\t\t\t\tclosest = u;\n\t\t\t\t\t\tmin = distance;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn closest; // the program is fucked if null happens. just a headsup. hopefully you will remember if you get a null pointer exception.\n\t}", "protected ResourceLocation getEntityTexture(Entity p_110775_1_)\n {\n return this.getEntityTexture((EntityMegaZombie)p_110775_1_);\n }", "@Override\n public ResourceLocation getTextureLocation(DroneEntity entity) {\n return entity.isAttacking() ? mobShootingTexture : mobTexture;\n }", "public void generateTurrets(MainApplication app){\n\t\tthis.turrets[0] = new Turret(app,15,HIGH_TURRET_Y_LOCATION,TURRET_SPRITE, TURRET_SPRITE_DESTROYED);\n\t\tthis.turrets[1] = new Turret(app,150,LOW_TURRET_Y_LOCATION,TURRET_SPRITE, TURRET_SPRITE_DESTROYED);\n\t\tthis.turrets[2] = new Turret(app,800,LOW_TURRET_Y_LOCATION,TURRET_SPRITE, TURRET_SPRITE_DESTROYED);\n\t\tthis.turrets[3] = new Turret(app,925,HIGH_TURRET_Y_LOCATION,TURRET_SPRITE, TURRET_SPRITE_DESTROYED);\n\t}", "public TankLocal() {\n super();\n\n setHullImage(\"/gui/sprites/TankBases/Tank1.png\");\n getHullView().setFocusTraversable(true);\n super.bindTurret();\n\n canShoot.bind(shotCooldownTicks.isEqualTo(0));\n\n getHullView().setOnKeyPressed(event -> {\n //System.out.println(event.getCharacter());\n\n switch(event.getCode()) {\n case UP: isUpPressed.setValue(true); break;\n case DOWN: isDownPressed.setValue(true); break;\n case LEFT: isLeftPressed.setValue(true); break;\n case RIGHT: isRightPressed.setValue(true); break;\n }\n });\n\n getHullView().setOnKeyReleased(event -> {\n switch(event.getCode()) {\n case UP: isUpPressed.setValue(false); break;\n case DOWN: isDownPressed.setValue(false); break;\n case LEFT: isLeftPressed.setValue(false); break;\n case RIGHT: isRightPressed.setValue(false); break;\n }\n });\n\n coolDownArc = new Arc();\n coolDownArc.setType(ArcType.ROUND);;\n coolDownArc.setFill(Paint.valueOf(\"#abababbf\"));\n coolDownArc.setStrokeWidth(0);\n coolDownArc.setRadiusX(40);\n coolDownArc.setRadiusY(40);\n coolDownArc.setStartAngle(90);\n\n //current / initial * 360\n coolDownArc.lengthProperty().bind(shotCooldownTicks.divide(initialCooldownTicks).multiply(360));\n coolDownArc.centerXProperty().bind(getHullView().xProperty().add(20));\n coolDownArc.centerYProperty().bind(getHullView().yProperty().add(20));\n }", "public void update(float delta) {\n\t\tfor(DefenseTower tower : world.getDefenseTowers()) {\n\t\t for(Enemy enemy : world.getEnemies()) {\n\t\t\t if(tower.isPowered() == true && tower.inRange(enemy)) {\n\t\t\t\t\ttower.fireBullets(enemy, delta);\n\t\t\t\t\t//enemy.takeHit(tower.POWER*delta);\n\t\t\t\t\tif(!enemy.isAlive()) {\n\t\t\t\t\t world.getEnemies().removeValue(enemy, false);\n\t\t\t\t\t}\n\t\t\t } \n\t\t\t}\n\t\t}\n\t\n\t\t// Towncentre actions goes here. It shoots enemies here.\n\t\tTownCentre tCentre = world.getTownCentre();\n\t for(Enemy enemy : world.getEnemies()) {\n\t\t if(tCentre.inRange(enemy)) {\n\t\t\t\ttCentre.fireBullets(enemy, delta);\n\t\t\t\t//enemy.takeHit(tCentre.POWER*delta);\n\t\t\t\tif(!enemy.isAlive()) {\n\t\t\t\t world.getEnemies().removeValue(enemy, false);\n\t\t\t\t}\n\t\t } \n\t\t}\n\t \n\t // Soldiers attack enemies here.\n\t for(Soldier s: InstanceManager.getInstance().getSoldiers()) {\n\t \t//s.attackEveryEnemy(delta, InstanceManager.getInstance().getDefenseTowers());\n\t }\n\t\n\t /*for(Enemy enemy : world.getEnemies()) {\n\t\t\tfor(Tower tower : world.getTowers()) {\n\t\t\t if(enemy.inRange(tower)) {\n\t\t\t\t tower.takeHit(enemy.STRENGTH*delta);\n\t\t\t\t //System.out.println(\"tower \" + tower.UID + \"strength is \" + tower.STRENGTH);\n\t\t\t\t if(!tower.isAlive) {\n\t\t\t\t\t \tif(world.getTowers().indexOf(tower, false) !=-1)\n\t\t\t\t\t \t\tactiveTower=-1;\n\t\t\t\t\t world.getTowers().removeValue(tower, false);\n\t\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t\t// This makes townCentre take the hit.\n\t\t\tif(enemy.inRange(tCentre) && tCentre.isAlive) {\n\t\t\t\ttCentre.takeHit(enemy.STRENGTH*delta);\n\t\t\t\t //System.out.println(\"TownCenter \" + tCentre.UID + \"strength is \" + tCentre.STRENGTH);\n\t\t\t}\n\t }*/\n\t\t\n\t // Steams attackers attack towers and links here\n\t sAttackers.AttackTowersAndLinks(delta);\n\t\t\n\t\tfor(Tower tower : world.getTowers()) {\n\t\t tower.update(delta);\n\t\t}\n\t\t\n\t\tfor(Enemy enemy : world.getEnemies()) {\n\t\t enemy.update(delta);\n\t\t if(enemy.getPosition().x > 21 && enemy.getPosition().y > 14)\n\t\t \tworld.getEnemies().removeValue(enemy, false);\n\t\t}\n\t\t\n\t\tfor(Person p: InstanceManager.getInstance().getPeople()) {\n\t\t\tp.update(delta);\n\t\t}\n\t\t\n\t\tfor(Soldier s : InstanceManager.getInstance().getSoldiers()) {\n\t\t\ts.update(delta);\n\t\t}\n\t\t\n\t\t// A lot happens here.\n\t\tInstanceManager.getInstance().update(delta);\n\t\t\n\t\tfor(DefenseTower tower : world.getDefenseTowers()) {\n\t\t\ttower.update(delta);\n\t\t}\n\t\t// If game slows down you can limit updation timing here.\n\t\ttCentre.update(delta);\n\t\tgManager.update(delta);\n\t\tworld.update(delta);\n\t\tsController.update();\n\t\t\n }", "public boolean turretAngleOnTarget() {\n return this.turretPIDController.atSetpoint();\n }", "@Override\n public void execute() {\n \n m_turretHorizontal = -RobotContainer.buttonBox.getY();\n m_turret.runHorizontalManual(-m_turretHorizontal); \n \n \n }", "@Override\n protected void execute() { \n if(!Robot.limelight.objectSighted()){\n System.out.println(\"No object\");\n if(Robot.shooter.outLimit()){\n speed *= -1;\n }\n Shooter.spinTurret(speed);\n }\n else{\n System.out.println(\"Object Sighted\");\n System.out.println(Robot.shooter.turretHall.getPosition());\n\n previous_error = current_error;\n current_error = Robot.limelight.getTx();\n integral = (current_error+previous_error)/2*(time);\n derivative = (current_error-previous_error)/time;\n adjust = (KP*current_error + KI*integral + KD*derivative) * -0.1;\n \n /*if (current_error > min_error){\n adjust += min_command;\n }\n else if (current_error < -min_error){\n adjust -= min_command;\n }*/\n \n try {\n Thread.sleep((long)(time*1000));\n }\n catch(InterruptedException e){\n }\n \n System.out.println(\"Adjust: \" + adjust);\n /*double total = speed + adjust;\n if((int)Shooter.turretHall.getPosition() == -45 && speed + adjust < 0){\n total *= -1;\n }else if((int)Shooter.turretHall.getPosition() == 45 && speed + adjust > 0){\n total *= -1;\n }*/\n \n // if(Shooter.limitTurret.get() == false) {\n // Shooter.spinTurret(-(speed));\n // }\n //if(Shooter.outLimit()){\n // Shooter.spinTurret(-(speed));\n // }\n Shooter.spinTurret(speed + adjust);\n }\n\n\n //System.out.println(\"Adjust: \" + adjust);\n //Shooter.spinTurret(speed+adjust);\n \n //System.out.println(Robot.shooter.turretHall.getPosition());\n /* if(Robot.shooter.outLimit()){\n speed *= -1;\n }\n Shooter.spinTurret(speed+adjust);*/\n }", "public Turret toTurret(GameLogic gameLogic) {\n return new Turret(gameLogic,range,fireRate,type,power,position);\n }", "public List<VictimEntity> findByTraffickerId(Long traffickerId);", "public AutoVisionTurretCommand() {\n \taddParallel(new VisionCommand(), 5);\n \taddSequential(new DelayedAimCommand());\n }", "public static native PointerByReference OpenMM_AmoebaTorsionTorsionForce_getTorsionTorsionGrid(PointerByReference target, int index);", "@SubscribeEvent\r\n public static void on(TickEvent.WorldTickEvent event){\r\n\t if(!event.world.isRemote){\r\n\t\t for(EntityPlayer player : event.world.playerEntities){\r\n\t\t\t WrapperWorld worldWrapper = getWrapperFor(event.world);\r\n\t\t\t //Need to use wrapper here as the player equality tests don't work if there are two players with the same ID.\r\n\t\t\t WrapperPlayer playerWrapper = WrapperPlayer.getWrapperFor(player);\r\n\t\t\t if(worldWrapper.activePlayerFollowers.containsKey(playerWrapper)){\r\n\t\t\t\t //Follower exists, check if world is the same and it is actually updating.\r\n\t\t\t\t //We check basic states, and then the watchdog bit that gets reset every tick.\r\n\t\t\t\t //This way if we're in the world, but not valid we will know.\r\n\t\t\t\t BuilderEntityRenderForwarder follower = worldWrapper.activePlayerFollowers.get(playerWrapper);\r\n\t\t\t\t if(follower.world != player.world || follower.playerFollowing != player || player.isDead || follower.isDead || follower.idleTickCounter == 20){\r\n\t\t\t\t\t //Follower is not linked. Remove it and re-create in code below.\r\n\t\t\t\t\t follower.setDead();\r\n\t\t\t\t\t worldWrapper.activePlayerFollowers.remove(playerWrapper);\r\n\t\t\t\t\t worldWrapper.ticksSincePlayerJoin.remove(playerWrapper);\r\n\t\t\t\t }else{\r\n\t\t\t\t\t ++follower.idleTickCounter;\r\n\t\t\t\t\t continue;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t if(!worldWrapper.activePlayerFollowers.containsKey(playerWrapper)){\r\n\t\t\t\t //Follower does not exist, check if player has been present for 3 seconds and spawn it.\r\n\t\t\t\t int totalTicksWaited = 0;\r\n\t\t\t\t if(worldWrapper.ticksSincePlayerJoin.containsKey(playerWrapper)){\r\n\t\t\t\t\t totalTicksWaited = worldWrapper.ticksSincePlayerJoin.get(playerWrapper); \r\n\t\t\t\t }\r\n\t\t\t\t if(++totalTicksWaited == 60){\r\n\t\t\t\t\t //Spawn fowarder and gun.\r\n\t\t\t\t\t BuilderEntityRenderForwarder follower = new BuilderEntityRenderForwarder(player);\r\n\t\t\t\t\t follower.loadedFromSavedNBT = true;\r\n\t\t\t\t\t event.world.spawnEntity(follower);\r\n\t\t\t\t\t worldWrapper.activePlayerFollowers.put(playerWrapper, follower);\r\n\t\t\t\t\t \r\n\t\t\t\t\t EntityPlayerGun entity = new EntityPlayerGun(worldWrapper, playerWrapper, new WrapperNBT());\r\n\t\t\t\t\t worldWrapper.spawnEntity(entity);\r\n\t\t\t\t\t \r\n\t\t\t\t\t //If the player is new, also add handbooks.\r\n\t\t\t\t\t if(!ConfigSystem.configObject.general.joinedPlayers.value.contains(playerWrapper.getID())){\r\n\t\t\t\t\t\t player.addItemStackToInventory(PackParserSystem.getItem(\"mts\", \"handbook_car\").getNewStack());\r\n\t\t\t\t\t\t player.addItemStackToInventory(PackParserSystem.getItem(\"mts\", \"handbook_plane\").getNewStack());\r\n\t\t\t\t\t\t ConfigSystem.configObject.general.joinedPlayers.value.add(playerWrapper.getID());\r\n\t\t\t\t\t\t ConfigSystem.saveToDisk();\r\n\t\t\t\t\t }\r\n\t\t\t\t }else{\r\n\t\t\t\t\t worldWrapper.ticksSincePlayerJoin.put(playerWrapper, totalTicksWaited);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\t }\r\n }", "public void fireTorpedo() {\n\t\t// Has player waited cooldown before trying to fire again?\n\t\tif (System.currentTimeMillis() - this.lastFired > Config.WEAPON_COOLDOWN_TIME * 1000) {\n\t\t\tSystem.out.println(player.getDisplayName() + \" is attempting to fire a torpedo\");\n\t\t\t// Can this airship fire torpedoes?\n\t\t\tif (this.properties.FIRES_TORPEDO) {\n\t\t\t\tBlock[] cannons = getCannons();\n\t\t\t\tint numfiredcannons = 0;\n\t\t\t\tfor (int i = 0; i < cannons.length; i++) {\n\t\t\t\t\tif (cannons[i] != null && cannonHasTnt(cannons[i], Config.NUM_TNT_TO_FIRE_TORPEDO)) {\n\t\t\t\t\t\tBlockFace face = ((Directional) cannons[i].getState().getData()).getFacing();\n\t\t\t\t\t\tboolean missingMaterial = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int id : Config.MATERIALS_NEEDED_FOR_TORPEDO) {\n\t\t\t\t\t\t\tif (!cannonHasItem(cannons[i], id, 1)) {\n\t\t\t\t\t\t\t\tmissingMaterial = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!cannons[i].getRelative(face.getModX(), 0, face.getModZ()).getType().equals(Material.AIR) || missingMaterial)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (numfiredcannons < this.properties.MAX_NUMBER_OF_CANNONS) {\n\t\t\t\t\t\t\tnumfiredcannons++;\n\t\t\t\t\t\t\tlastFired = System.currentTimeMillis();\n\t\t\t\t\t\t\twithdrawTnt(cannons[i], Config.NUM_TNT_TO_FIRE_TORPEDO);\n\t\t\t\t\t\t\tfor (int id : Config.MATERIALS_NEEDED_FOR_TORPEDO) {\n\t\t\t\t\t\t\t\twithdrawItem(cannons[i], id, 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Fire some torpedoes TODO: maybe add sound effects for tnt firing? :P\n\t\t\t\t\t\t\tnew Torpedo(cannons[i], face);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// More cannons on ship than allowed. Not all fired - can break out of loop now.\n\t\t\t\t\t\t\t//player.sendMessage(ChatColor.AQUA + \"Some cannons did not fire. Max cannon limit is \" + ChatColor.GOLD + this.properties.MAX_NUMBER_OF_CANNONS);\n\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.AQUA + \"Some missiles did not fire. item check = \" + ChatColor.GOLD + missingMaterial);\n\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.AQUA + \"numFiredCannons = \" + ChatColor.GOLD + numfiredcannons);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + this.properties.SHIP_TYPE + \" CANNOT FIRE TORPEDO\");\n\t\t} else\n\t\t\tplayer.sendMessage(ChatColor.GOLD + \"COOLING DOWN FOR \" + ChatColor.AQUA + (int)(Math.round(6 - (System.currentTimeMillis() - this.lastFired) / 1000)) + ChatColor.GOLD + \" MORE SECONDS\");\n\t}", "Entity getShooter();", "protected ResourceLocation getEntityTexture(EntityMegaZombie p_110775_1_)\n {\n return zombieTextures;\n }", "@Override\n public void execute() {\n if (m_shooter.getTv() != 0.0) {\n double command = 0;\n if (m_shooter.getTx() > 5.0) {\n command = 1;\n } else if (m_shooter.getTx() < -5.0) {\n command = -1;\n } else if (Math.abs(m_shooter.getTx()) <= 1) {\n command = 0;\n } else {\n command = m_shooter.getTx() / 5.0;\n }\n if (m_shooter.getTy() <= -12) {\n command = command * 0.25;\n } else if (m_shooter.getTy() <= 0) {\n command = command * 0.5;\n }\n \n m_shooter.setManualTurretAngle(command * Constants.turretMovement);\n\n double hoodPosition = Constants.hoodSlope * m_shooter.getTy() + Constants.hoodIntercept;\n m_hood.setHoodPosition(hoodPosition); \n m_shooter.setShooterSpeed(Constants.shooterSpeedSlope * hoodPosition + Constants.shooterSpeedAtTwo);\n }\n \n }", "protected ResourceLocation getEntityTexture(EntityZombie p_110775_1_)\n {\n return this.getEntityTexture((EntityMegaZombie)p_110775_1_);\n }", "protected void execute() {\n\t//\tif (Math.abs(Robot.launcher.getDegrees()) < 5.5) {\n\t\t\tif (up)\n\t\t\t\tRobot.launcher.tiltDown();\n\t\t\telse\n\t\t\t\tRobot.launcher.tiltUp();\n//\t\t} else {\n//\t\t\tLog.warn(\"Turret rotated too much to tilt\");\n//\t\t\tend();\n//\t\t}\n\t}", "public Turret(LimelightVision limelightVision, Drive drive) {\n this.limelightVision = limelightVision;\n this.drive = drive;\n turretMotor.setInverted(false);\n turretEncoder.setDistancePerPulse(0.027);\n cameraHorizontalCorrection = NRGPreferences.IS_PRACTICE_BOT.getValue()\n ? CAMERA_HORIZONTAL_CORRECTION_PRACTICE : CAMERA_HORIZONTAL_CORRECTION_COMPETITION;\n }", "@Override\r\n\tprotected void end() {\n\t\tRobot.turret.stop();\r\n\t}", "public void sendProjectile(long itemid, byte type, String modelName, String name, byte material, float startX, float startY, float startH, float rot, byte layer, float endX, float endY, float endH, long sourceId, long targetId, float projectedSecondsInAir, float actualSecondsInAir) {\n/* 5593 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 5597 */ if (vz.getWatcher().getWurmId() == targetId) {\n/* */ \n/* 5599 */ if (vz.getWatcher().getWurmId() == sourceId) {\n/* 5600 */ vz.sendProjectile(itemid, type, modelName, name, material, startX, startY, startH, rot, layer, endX, endY, endH, -1L, -1L, projectedSecondsInAir, actualSecondsInAir);\n/* */ } else {\n/* */ \n/* 5603 */ vz.sendProjectile(itemid, type, modelName, name, material, startX, startY, startH, rot, layer, endX, endY, endH, sourceId, -1L, projectedSecondsInAir, actualSecondsInAir);\n/* */ }\n/* */ \n/* 5606 */ } else if (vz.getWatcher().getWurmId() == sourceId) {\n/* */ \n/* 5608 */ if (vz.getWatcher().getWurmId() == targetId) {\n/* 5609 */ vz.sendProjectile(itemid, type, modelName, name, material, startX, startY, startH, rot, layer, endX, endY, endH, -1L, -1L, projectedSecondsInAir, actualSecondsInAir);\n/* */ } else {\n/* */ \n/* 5612 */ vz.sendProjectile(itemid, type, modelName, name, material, startX, startY, startH, rot, layer, endX, endY, endH, -1L, targetId, projectedSecondsInAir, actualSecondsInAir);\n/* */ } \n/* */ } else {\n/* */ \n/* 5616 */ vz.sendProjectile(itemid, type, modelName, name, material, startX, startY, startH, rot, layer, endX, endY, endH, sourceId, targetId, projectedSecondsInAir, actualSecondsInAir);\n/* */ }\n/* */ \n/* 5619 */ } catch (Exception e) {\n/* */ \n/* 5621 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }", "@Override\n\tpublic Player getHost() {\n\t\treturn host;\n\t}", "@Override\n public CommandResult execute(CommandSource src, CommandContext commandContext) throws CommandException {\n return CommandResult.success();\n\n /*if (src instanceof Player) {\n Player sender = (Player) src;\n if(!commandContext.hasAny(\"target\")) {\n src.sendMessage(Text.of(new Object[]{TextColors.RED, \"Invalid arguments\"}));\n return CommandResult.success();\n } else {\n User user = commandContext.<User>getOne(\"target\").get();\n if (user.isOnline()) {\n sender.sendMessage(Text.of(TextColors.RED, \"Player is online, Please use /teleport\"));\n } else {\n GameProfileManager gameProfileManager = Sponge.getGame().getServer().getGameProfileManager();\n Optional<UserStorageService> userStorage = Sponge.getServiceManager().provide(UserStorageService.class);\n UUID uuid = null;\n try {\n uuid = userStorage.get().getOrCreate(gameProfileManager.get(user.getName(), false).get()).getUniqueId();\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n if (userStorage.isPresent()) {\n UserStorageService userStorage2 = userStorage.get();\n Optional<User> userOptional = userStorage2.get(uuid);\n if (userOptional.isPresent()) {\n User user2 = userOptional.get();\n double x = user2.getPlayer().get().getLocation().getX();\n double y = user2.getPlayer().get().getLocation().getY();\n double z = user2.getPlayer().get().getLocation().getZ();\n sender.sendMessage(Text.of(\"Loc: x:\", x, \" y:\", y, \" z:\", z));\n Vector3d vector = new Vector3d(x, y, z);\n sender.setLocation(sender.getLocation().setPosition(vector));\n } else {\n // error?\n }\n }\n }\n return CommandResult.success();\n }\n } else {\n src.sendMessage(Text.of(\"Only a player Can run this command!\"));\n return CommandResult.success();\n }*/\n }", "@Override\n public List<TriggerAction> getRequiredAfterTriggers(SwccgGame game, EffectResult effectResult, final PhysicalCard self) {\n List<TriggerAction> actions = super.getRequiredAfterTriggers(game, effectResult, self);\n String playerId = self.getOwner();\n\n // Creatures attack a non-creature if they are present with a valid target at end of owner's battle phase\n // (unless parasite is attached to a host)\n if (TriggerConditions.isEndOfYourPhase(game, effectResult, Phase.BATTLE, playerId)\n && !GameConditions.isDuringAttack(game)\n && !GameConditions.isDuringBattle(game)\n && self.getAttachedTo() == null) {\n GameState gameState = game.getGameState();\n ModifiersQuerying modifiersQuerying = game.getModifiersQuerying();\n if (!modifiersQuerying.hasParticipatedInAttackOnNonCreatureThisTurn(self)) {\n PhysicalCard location = modifiersQuerying.getLocationThatCardIsPresentAt(gameState, self);\n if (location != null) {\n if (!modifiersQuerying.mayNotInitiateAttacksAtLocation(gameState, location, playerId)\n && GameConditions.canSpot(game, self, SpotOverride.INCLUDE_ALL, Filters.nonCreatureCanBeAttackedByCreature(self, false))) {\n actions.add(new InitiateAttackNonCreatureAction(self));\n }\n }\n }\n }\n\n // Check condition(s)\n PhysicalCard host = self.getAttachedTo();\n if (host != null && TriggerConditions.justEatenBy(game, effectResult, host, Filters.any)) {\n\n final RequiredGameTextTriggerAction action = new RequiredGameTextTriggerAction(self, self.getCardId());\n action.setText(\"Detach from host\");\n action.setActionMsg(\"Detach \" + GameUtils.getCardLink(self) + \" from \" + GameUtils.getCardLink(host));\n // Perform result(s)\n action.appendEffect(\n new DetachParasiteEffect(action, self));\n actions.add(action);\n }\n\n return actions;\n }", "public Shooter(Turret in_Turret, Indexer in_Indexer) {\n m_Turret = in_Turret;\n m_Indexer = in_Indexer;\n\n sparkMax1 = new CANSparkMax(RobotMap.ShooterSparkMax1, MotorType.kBrushless);//31\n sparkMax2 = new CANSparkMax(RobotMap.ShooterSparkMax2, MotorType.kBrushless);\n\n sparkMax1.restoreFactoryDefaults();\n sparkMax2.restoreFactoryDefaults();\n\n sparkMax2.follow(sparkMax1, true);\n\n pidController = sparkMax1.getPIDController();\n encoder = sparkMax1.getEncoder();\n\n // PID coefficients\n kP = 0.001; \n kI = 0;\n kD = 0.00002; \n kIz = 0; \n kFF = 0.00002; \n kMaxOutput = 1; \n kMinOutput = -1;\n maxRPM = 6550;\n minRPM = 4150;\n\n // set PID coefficients\n pidController.setP(kP);\n pidController.setI(kI);\n pidController.setD(kD);\n pidController.setIZone(kIz);\n pidController.setFF(kFF);\n pidController.setOutputRange(kMinOutput, kMaxOutput);\n\n SmartDashboard.putBoolean(\"shooter at rpm\", false);\n SmartDashboard.putNumber(\"shooter Desired velocity\", 0);\n SmartDashboard.putNumber(\"shooter Actual velocity\", encoder.getVelocity());\n SmartDashboard.putNumber(\"shooter distance\", 0);\n SmartDashboard.putNumber(\"shooter compensated rpms\", 0);\n SmartDashboard.putNumber(\"shooter expected rpms\", 0);\n\n }", "public void renderTankPoints(List<GameCharacter> entities, GraphicsContext gc){\n for(BaseGameEntity e1: entities) renderTankPoint(e1,gc);\n }", "public abstract void fire(Player holder);", "void fire(WarParticipant target, WarParticipant attacker, int noOfShooters);", "public void findRobotPosition(){\n targetVisible = false;\n for (VuforiaTrackable trackable : allTrackables) {\n if (((VuforiaTrackableDefaultListener)trackable.getListener()).isVisible()) {\n telemetry.addData(\"Visible Target\", trackable.getName());\n targetVisible = true;\n\n // Get the position of the visible target and put the X & Y position in visTgtX and visTgtY\n // We will use these for determining bearing and range to the visible target\n OpenGLMatrix tgtLocation = trackable.getLocation();\n VectorF tgtTranslation = tgtLocation.getTranslation();\n visTgtX = tgtTranslation.get(0) / mmPerInch;\n visTgtY = tgtTranslation.get(1) / mmPerInch;\n //telemetry.addData(\"Tgt X & Y\", \"{X, Y} = %.1f, %.1f\", visTgtX, visTgtY);\n\n // getUpdatedRobotLocation() will return null if no new information is available since\n // the last time that call was made, or if the trackable is not currently visible.\n OpenGLMatrix robotLocationTransform = ((VuforiaTrackableDefaultListener)trackable.getListener()).getUpdatedRobotLocation();\n if (robotLocationTransform != null) {\n lastLocation = robotLocationTransform;\n }\n break;\n }\n }\n\n // Provide feedback as to where the robot is located (if we know).\n if (targetVisible) {\n // express position (translation) of robot in inches.\n VectorF translation = lastLocation.getTranslation();\n //telemetry.addData(\"Pos (in)\", \"{X, Y, Z} = %.1f, %.1f, %.1f\",\n // translation.get(0) / mmPerInch, translation.get(1) / mmPerInch, translation.get(2) / mmPerInch);\n\n // express the rotation of the robot in degrees.\n Orientation rotation = Orientation.getOrientation(lastLocation, EXTRINSIC, XYZ, DEGREES);\n //telemetry.addData(\"Rot (deg)\", \"{Roll, Pitch, Heading} = %.0f, %.0f, %.0f\", rotation.firstAngle, rotation.secondAngle, rotation.thirdAngle);\n\n // Robot position is defined by the standard Matrix translation (x and y)\n robotX = translation.get(0)/ mmPerInch;\n robotY = translation.get(1)/ mmPerInch;\n\n // Robot bearing (in +vc CCW cartesian system) is defined by the standard Matrix z rotation\n robotBearing = rotation.thirdAngle;\n\n // target range is based on distance from robot position to the visible target\n // Pythagorean Theorum\n targetRange = Math.sqrt((Math.pow(visTgtX - robotX, 2) + Math.pow(visTgtY - robotY, 2)));\n\n // target bearing is based on angle formed between the X axis to the target range line\n // Always use \"Head minus Tail\" when working with vectors\n targetBearing = Math.toDegrees(Math.atan((visTgtY - robotY)/(visTgtX - robotX)));\n\n // Target relative bearing is the target Heading relative to the direction the robot is pointing.\n // This can be used as an error signal to have the robot point the target\n relativeBearing = targetBearing - robotBearing;\n // Display the current visible target name, robot info, target info, and required robot action.\n\n telemetry.addData(\"Robot\", \"[X]:[Y] (Heading) [%5.0fin]:[%5.0fin] (%4.0f°)\",\n robotX, robotY, robotBearing);\n telemetry.addData(\"Target\", \"[TgtRange] (TgtBearing):(RelB) [%5.0fin] (%4.0f°):(%4.0f°)\",\n targetRange, targetBearing, relativeBearing);\n }\n else {\n telemetry.addData(\"Visible Target\", \"none\");\n }\n }", "public void attackEntity(Entity entityToHit) {\n ItemStack item = tinkerProjectile.getItemStack();\n ItemStack launcher = tinkerProjectile.getLaunchingStack();\n\n // deal damage if we have everything\n if(item.getItem() instanceof ToolCore && this.attacker != null) {\n EntityLivingBase attacker = (EntityLivingBase) this.attacker;\n //EntityLivingBase target = (EntityLivingBase) raytraceResult.entityHit;\n\n // find the actual itemstack in the players inventory\n ItemStack inventoryItem = AmmoHelper.getMatchingItemstackFromInventory(tinkerProjectile.getItemStack(), attacker, false);\n if(inventoryItem.isEmpty() || inventoryItem.getItem() != item.getItem()) {\n // backup, use saved itemstack\n inventoryItem = item;\n }\n\n // for the sake of dealing damage we always ensure that the impact itemstack has the correct broken state\n // since the ammo stack can break while the arrow travels/if it's the last arrow\n boolean brokenStateDiffers = ToolHelper.isBroken(inventoryItem) != ToolHelper.isBroken(item);\n if(brokenStateDiffers) {\n toggleBroken(inventoryItem);\n }\n\n Multimap<String, AttributeModifier> projectileAttributes = null;\n // remove stats from held items\n if(!world.isRemote) {\n unequip(attacker, EntityEquipmentSlot.OFFHAND);\n unequip(attacker, EntityEquipmentSlot.MAINHAND);\n\n // apply stats from projectile\n if(item.getItem() instanceof IProjectile) {\n projectileAttributes = ((IProjectile) item.getItem()).getProjectileAttributeModifier(inventoryItem);\n\n if(launcher.getItem() instanceof ILauncher) {\n ((ILauncher) launcher.getItem()).modifyProjectileAttributes(projectileAttributes, tinkerProjectile.getLaunchingStack(), tinkerProjectile.getItemStack(), tinkerProjectile.getPower());\n }\n\n // factor in power\n projectileAttributes.put(SharedMonsterAttributes.ATTACK_DAMAGE.getName(),\n new AttributeModifier(PROJECTILE_POWER_MODIFIER, \"Weapon damage multiplier\", tinkerProjectile.getPower() - 1f, 2));\n\n attacker.getAttributeMap().applyAttributeModifiers(projectileAttributes);\n }\n // deal the damage\n// ToolHelper.attackEntity(item, (ToolCore) item.getItem(), attacker, entityToHit, null);\n// float speed = MathHelper.sqrt(this.motionX * this.motionX + this.motionY * this.motionY + this.motionZ * this.motionZ);\n\n boolean attack = ToolHelper.attackEntity(item, (ToolCore) item.getItem(), attacker, entityToHit, null);\n// if(attack) {\n//// for(IProjectileTrait trait : tinkerProjectile.getProjectileTraits()) {\n//// trait.afterHit(tinkerProjectile.get, this.world, inventoryItem, attacker, entityToHit, (double) 0.0);\n//// }\n//\n// // if on fire, set the entity on fire, like vanilla arrows\n//// if (this.isBurning() && !(entityToHit instanceof EntityEnderman)) {\n//// entityToHit.setFire(5);\n//// }\n// }\n if(brokenStateDiffers) {\n toggleBroken(inventoryItem);\n }\n\n // remove stats from projectile\n // apply stats from projectile\n if(item.getItem() instanceof IProjectile) {\n assert projectileAttributes != null;\n attacker.getAttributeMap().removeAttributeModifiers(projectileAttributes);\n }\n\n // readd stats from held items\n equip(attacker, EntityEquipmentSlot.MAINHAND);\n equip(attacker, EntityEquipmentSlot.OFFHAND);\n }\n }else {\n System.out.println(\"something failed with attacking.\");\n }\n }", "@Override\n\tpublic void readEntityFromNBT(NBTTagCompound p_70037_1_)\n\t{\n\t\tthis.xTile = p_70037_1_.getShort(\"xTile\");\n\t\tthis.yTile = p_70037_1_.getShort(\"yTile\");\n\t\tthis.zTile = p_70037_1_.getShort(\"zTile\");\n\t\tthis.inTile = Block.getBlockById(p_70037_1_.getByte(\"inTile\") & 255);\n\t\tthis.throwableShake = p_70037_1_.getByte(\"shake\") & 255;\n\t\tthis.inGround = p_70037_1_.getByte(\"inGround\") == 1;\n\t\tthis.throwerName = p_70037_1_.getString(\"ownerName\");\n\n\t\tif ((this.throwerName != null) && (this.throwerName.length() == 0))\n\t\t{\n\t\t\tthis.throwerName = null;\n\t\t}\n\t}", "Pokemon.PlayerAvatar getAvatar();", "public void turretAngleEnd() {\n this.turretMotor.stopMotor();\n this.turretPIDController = null;\n continuousPID = false;\n this.limelightVision.turnOffLed();\n System.out.println(\"Turret End\");\n }", "@Override\n public void robotInit() {\n m_robotContainer = new RobotContainer();\n // Initiate the limelight network table\n NetworkTable table = NetworkTableInstance.getDefault().getTable(\"limelight\");\n tx = table.getEntry(\"tx\");\n ty = table.getEntry(\"ty\");\n ta = table.getEntry(\"ta\");\n RobotContainer.turretSub.tsrxTurret.setSelectedSensorPosition(0);\n }", "protected ResourceLocation getEntityTexture(Entity p_110775_1_)\n {\n return this.getEntityTexture((EntityBat)p_110775_1_);\n }", "public void setTurretTargetAngle(double target){\r\n\t\tturretTarget = target;\r\n\t}", "public Tank getTankObject() {\n return tankObject;\n }", "@Override\n\tpublic void startExecuting() {\n\t\ttaskOwner.setAttackTarget(theTarget);\n\t\tfinal EntityLivingBase var1 = theEntityTameable.getOwner();\n\n\t\tif (var1 != null) {\n\t\t\tfield_142050_e = var1.getLastAttackerTime();\n\t\t}\n\n\t\tsuper.startExecuting();\n\t}", "public static void handleHunterKit(Player player) {\n\t\t\n\t}", "@Override\n protected void end() {\n Shooter.spinTurret(0.0);\n //Limelight.setLEDMode(1);\n }", "public RunTurretManual(Turret turret) {\n m_turret = turret;\n addRequirements(m_turret);\n }", "Vec3 getHomeCoords(IGeneticMob geneticMob);", "protected ResourceLocation getEntityTexture(Entity par1Entity)\n {\n return this.getCaveSpiderTextures((EntityCaveSpider)par1Entity);\n }", "@Inject(at = @At(value = \"HEAD\"), method = \"isHostile\", cancellable = true)\n\tpublic void markZombiePlayerAsHostile(final LivingEntity entity, CallbackInfoReturnable<Boolean> info) {\n\t\t\n\t\tList<ModifyBehavior> powers = PowerHolderComponent.getPowers(entity, ModifyBehavior.class);\n\t\tpowers.removeIf((power) -> !power.checkEntity(EntityType.VILLAGER));\n\t\t\n\t\tif (!powers.isEmpty()) {\n\t\t\tModifyBehavior.EntityBehavior behavior = powers.get(0).getDesiredBehavior();\n\t\t\tif(behavior == EntityBehavior.HOSTILE) {\n\t\t\t\tinfo.setReturnValue(true);\n\t\t\t}\n\t\t}\n\t}", "protected ResourceLocation getEntityTexture(Entity par1Entity)\n {\n return this.getCowTextures((EntityCow)par1Entity);\n }", "public void gatherAssets(AssetDirectory directory) {\r\n\r\n\t\tassets = directory;\r\n\t\tavatarTexture = new TextureRegion(directory.getEntry(\"platform:Somni_Idle\",Texture.class));\r\n\t\tcombinedTexture = new TextureRegion(directory.getEntry(\"platform:somni_phobia_stand\",Texture.class));\r\n\r\n\t\t// Tiles\r\n\t\tlightTexture = new TextureRegion(directory.getEntry( \"shared:solidCloud_light\", Texture.class ));\r\n\t\tdarkTexture = new TextureRegion(directory.getEntry( \"shared:solidCloud_dark\", Texture.class ));\r\n\t\tallTexture = new TextureRegion(directory.getEntry( \"shared:solidCloud_all\", Texture.class ));\r\n\t\trainLightTexture = new TextureRegion(directory.getEntry( \"shared:rain_cloud_light\", Texture.class ));\r\n\t\trainDarkTexture = new TextureRegion(directory.getEntry( \"shared:rain_cloud_dark\", Texture.class ));\r\n\t\trainAllTexture = new TextureRegion(directory.getEntry( \"shared:rain_cloud_all\", Texture.class ));\r\n\t\tlightningLightTexture = new TextureRegion(directory.getEntry( \"shared:lightning_cloud_light\", Texture.class ));\r\n\t\tlightningDarkTexture = new TextureRegion(directory.getEntry( \"shared:lightning_cloud_dark\", Texture.class ));\r\n\t\tlightningAllTexture = new TextureRegion(directory.getEntry( \"shared:lightning_cloud_all\", Texture.class ));\r\n\t\tcrumbleLightTexture = new TextureRegion(directory.getEntry( \"shared:rain_crumble_light\", Texture.class ));\r\n\t\tcrumbleDarkTexture = new TextureRegion(directory.getEntry( \"shared:rain_crumble_dark\", Texture.class ));\r\n\t\tcrumbleAllTexture = new TextureRegion(directory.getEntry( \"shared:rain_crumble_all\", Texture.class ));\r\n\r\n\t\trainLightTextureReduced = new TextureRegion(directory.getEntry( \"shared:rain_cloud_light_reduced\", Texture.class ));\r\n\t\trainDarkTextureReduced = new TextureRegion(directory.getEntry( \"shared:rain_cloud_dark_reduced\", Texture.class ));\r\n\t\trainAllTextureReduced = new TextureRegion(directory.getEntry( \"shared:rain_cloud_all_reduced\", Texture.class ));\r\n\t\tlightningLightTextureReduced = new TextureRegion(directory.getEntry( \"shared:lightning_cloud_light_reduced\", Texture.class ));\r\n\t\tlightningDarkTextureReduced = new TextureRegion(directory.getEntry( \"shared:lightning_cloud_dark_reduced\", Texture.class ));\r\n\t\tlightningAllTextureReduced = new TextureRegion(directory.getEntry( \"shared:lightning_cloud_all_reduced\", Texture.class ));\r\n\t\tcrumbleLightTextureReduced = new TextureRegion(directory.getEntry( \"shared:rain_crumble_light_reduced\", Texture.class ));\r\n\t\tcrumbleDarkTextureReduced = new TextureRegion(directory.getEntry( \"shared:rain_crumble_dark_reduced\", Texture.class ));\r\n\t\tcrumbleAllTextureReduced = new TextureRegion(directory.getEntry( \"shared:rain_crumble_all_reduced\", Texture.class ));\r\n\r\n\t\t// Tutorial\r\n\t\ttutorial_signs = new TextureRegion[]{\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:camera_pan\", Texture.class)), //0\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:phobia_dash\", Texture.class)), //1\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:phobia_jump\", Texture.class)), //2\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:phobia_propel\", Texture.class)), //3\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:phobia_walk\", Texture.class)), //4\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:somni_dash\", Texture.class)), //5\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:somni_jump\", Texture.class)), //6\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:somni_propel\", Texture.class)), //7\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:somni_walk\", Texture.class)), //8\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:spirit_switch\", Texture.class)), //9\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:spirit_separate\", Texture.class)), //10\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:spirit_unify\", Texture.class)), //11\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:dash_catch\", Texture.class)),\t //12\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"tutorial:propel_dash_vertical\", Texture.class))\t //13\r\n\r\n\t\t};\r\n\r\n\t\t// Base models\r\n\t\tsomniTexture = new TextureRegion(directory.getEntry(\"platform:somni_stand\",Texture.class));\r\n\t\tsomniIdleTexture = new TextureRegion(directory.getEntry(\"platform:Somni_Idle\",Texture.class));\r\n\t\tsomniWalkTexture = new TextureRegion(directory.getEntry(\"platform:somni_walk_cycle\",Texture.class));\r\n\t\tsomniDashSideTexture = new TextureRegion(directory.getEntry(\"platform:Somni_Jump_Dash\",Texture.class));\r\n\t\tsomniDashUpTexture = new TextureRegion(directory.getEntry(\"platform:Somni_Falling\",Texture.class));\r\n\t\tsomniFallTexture = new TextureRegion(directory.getEntry(\"platform:Somni_Falling\", Texture.class));\r\n\r\n\t\tphobiaTexture = new TextureRegion(directory.getEntry(\"platform:phobia_stand\",Texture.class));\r\n\t\tphobiaIdleTexture = new TextureRegion(directory.getEntry(\"platform:Phobia_Idle\",Texture.class));\r\n\t\tphobiaWalkTexture = new TextureRegion(directory.getEntry(\"platform:phobia_walk_cycle\",Texture.class));\r\n\t\tphobiaDashSideTexture = new TextureRegion(directory.getEntry(\"platform:Phobia_Jump_Dash\",Texture.class));\r\n\t\tphobiaDashUpTexture = new TextureRegion(directory.getEntry(\"platform:Phobia_Falling\",Texture.class));\r\n\t\tphobiaFallTexture = new TextureRegion(directory.getEntry(\"platform:Phobia_Falling\", Texture.class));\r\n\r\n\r\n\t\t// Combined models\r\n\t\tsomniPhobiaTexture = new TextureRegion(directory.getEntry(\"platform:somni_phobia_stand\",Texture.class));\r\n\t\tsomniPhobiaWalkTexture = new TextureRegion(directory.getEntry(\"platform:somni_phobia_walk\",Texture.class));\r\n\t\tsomniPhobiaDashSideTexture = new TextureRegion(directory.getEntry(\"platform:somni_phobia_dash_side\",Texture.class));\r\n\t\tsomniPhobiaDashUpTexture = new TextureRegion(directory.getEntry(\"platform:somni_phobia_dash_up\",Texture.class));\r\n\t\tphobiaSomniTexture = new TextureRegion(directory.getEntry(\"platform:phobia_somni_stand\",Texture.class));\r\n\t\tphobiaSomniWalkTexture = new TextureRegion(directory.getEntry(\"platform:phobia_somni_walk\",Texture.class));\r\n\t\tphobiaSomniDashSideTexture = new TextureRegion(directory.getEntry(\"platform:phobia_somni_dash_side\",Texture.class));\r\n\t\tphobiaSomniDashUpTexture = new TextureRegion(directory.getEntry(\"platform:phobia_somni_dash_up\",Texture.class));\r\n\r\n\t\tsomniPhobiaHandsTexture = new TextureRegion(directory.getEntry(\"platform:somni_phobia_hands\",Texture.class));\r\n\t\tphobiaSomniHandsTexture = new TextureRegion(directory.getEntry(\"platform:phobia_somni_hands\",Texture.class));\r\n\t\tblueRingBigTexture = new TextureRegion(directory.getEntry(\"platform:blue_ring_big\",Texture.class));\r\n\t\tyellowRingBigTexture = new TextureRegion(directory.getEntry(\"platform:yellow_ring_big\",Texture.class));\r\n\t\tblueRingSmallTexture = new TextureRegion(directory.getEntry(\"platform:blue_ring_small\",Texture.class));\r\n\t\tyellowRingSmallTexture = new TextureRegion(directory.getEntry(\"platform:yellow_ring_small\",Texture.class));\r\n\t\tsomniHandFrontTexture = new TextureRegion(directory.getEntry(\"platform:somni_hand_front\",Texture.class));\r\n\t\tsomniHandBackTexture = new TextureRegion(directory.getEntry(\"platform:somni_hand_back\",Texture.class));\r\n\t\tphobiaHandFrontTexture = new TextureRegion(directory.getEntry(\"platform:phobia_hand_front\",Texture.class));\r\n\t\tphobiaHandBackTexture = new TextureRegion(directory.getEntry(\"platform:phobia_hand_back\",Texture.class));\r\n\r\n\t\tbackgrounds = new TextureRegion[] {\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_light_forest\", Texture.class)),\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_dark_forest\", Texture.class)),\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_light_gear\", Texture.class)),\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_dark_gear\", Texture.class)),\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_light_dreams\", Texture.class)),\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_dark_dreams\", Texture.class)),\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_light_house\", Texture.class)),\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_dark_house\", Texture.class)),\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_light_statues\", Texture.class)),\r\n\t\t\t\tnew TextureRegion(directory.getEntry(\"platform:background_dark_statues\", Texture.class)),\r\n\r\n\t\t};\r\n\r\n\r\n\t\tTextureRegion [] somnis = {somniIdleTexture,somniWalkTexture,somniDashSideTexture,somniDashUpTexture, somniFallTexture, somniDashUpTexture};\r\n\t\tsomnisTexture = somnis;\r\n\t\tTextureRegion [] phobias = {phobiaIdleTexture,phobiaWalkTexture,phobiaDashSideTexture,phobiaDashUpTexture, phobiaFallTexture, phobiaDashUpTexture};\r\n\t\tphobiasTexture = phobias;\r\n\t\tTextureRegion [] somniphobias = {somniPhobiaTexture,somniPhobiaWalkTexture,somniPhobiaDashSideTexture,somniPhobiaDashUpTexture, somniPhobiaDashUpTexture};\r\n\t\tsomniphobiasTexture = somniphobias;\r\n\t\tTextureRegion [] phobiasomnis = {phobiaSomniTexture,phobiaSomniWalkTexture,phobiaSomniDashSideTexture,phobiaSomniDashUpTexture, phobiaSomniDashUpTexture};\r\n\t\tphobiasomnisTexture = phobiasomnis;\r\n\t\tTextureRegion [] somniHands = {somniHandFrontTexture, somniHandBackTexture, somniPhobiaHandsTexture};\r\n\t\tsomniHandsTextures = somniHands;\r\n\t\tTextureRegion [] phobiaHands = {phobiaHandFrontTexture, phobiaHandBackTexture, phobiaSomniHandsTexture};\r\n\t\tphobiaHandsTextures = phobiaHands;\r\n\r\n\t\tanimationSpeed = new float[]{0.1f, 0.5f, 0.1f, 0.1f, 0.1f, 0.1f};\r\n\t\tframePixelWidth = new double[]{32, 64, 32, 32, 32, 32};\r\n\t\toffsetsX = new float[]{12, 19, 0, 0, 15, 0};\r\n\t\toffsetsY = new float[]{0, 0, 0, 0, 0, 0};\r\n\t\tsecOffsetsX = new float[]{-20, -16, 52, 60, -18, 35, -18};\r\n\t\tsecOffsetsY = new float[]{0, 0, -80, -60, 0, -70, 0};\r\n\t\tthirdOffsetsX = new float[]{0, -18, -22, -22, 0, -22, 10, -15, 0, 0, 5, 0, 0, -20, 0, 0, -2, 0};\r\n\t\tthirdOffsetsY = new float[]{0, 0, 0, 0, 0, 0};\r\n\t\tdashAngles = new float[] {0, 0, -1.55f, 0, 0, 3.14f};\r\n\t\tpropelAngles = new float[] {0, 0, 0, 1.55f, 0, -1.55f};\r\n\r\n\r\n\t\t// Setup masking\r\n\t\tcircle_mask = new TextureRegion(directory.getEntry(\"circle_mask\",Texture.class));\r\n\t\tVector2 mask_size = new Vector2(circle_mask.getRegionWidth(), circle_mask.getRegionHeight());\r\n\t\tMIN_MASK_DIMENSIONS = new Vector2(mask_size).scl(mask_shrink_factor);\r\n\t\tmaskWidth = MIN_MASK_DIMENSIONS.x;\r\n\t\tmaskHeight = MIN_MASK_DIMENSIONS.y;\r\n\r\n\t\tsliderBarTexture = directory.getEntry( \"platform:sliderbar\", Texture.class);\r\n\t\tsliderKnobTexture = directory.getEntry( \"platform:sliderknob\", Texture.class);\r\n\r\n\t\tjumpSound = directory.getEntry( \"platform:jump\", SoundBuffer.class );\r\n\t\tfireSound = directory.getEntry( \"platform:pew\", SoundBuffer.class );\r\n\t\tplopSound = directory.getEntry( \"platform:plop\", SoundBuffer.class );\r\n\r\n\t\tconstants = directory.getEntry( \"constants\", JsonValue.class );\r\n\r\n\r\n\r\n\r\n\r\n//Gather sound assets\r\n\t\twinTrack = directory.getEntry(\"winTrack\", SoundBuffer.class);\r\n\t\tSoundController.getInstance().setWinTrack(winTrack);\r\n\r\n\t\tfailTrack = directory.getEntry(\"failTrack\", SoundBuffer.class);\r\n\t\tSoundController.getInstance().setFailTrack(failTrack);\r\n\r\n\r\n\r\n//\t\tsomniTrack = directory.getEntry(\"somniTrack\", SoundBuffer.class);\r\n//\t\tphobiaTrackPath = directory.getEntry(\"phobiaTrack\", SoundBuffer.class);\r\n//\t\tcombinedTrackPath = directory.getEntry(\"combinedTrack\", SoundBuffer.class);\r\n\r\n\r\n//\t\tmenu drawables\r\n\t\torangeUnderline = new TextureRegionDrawable(directory.getEntry(\"pause_menu:pausemenu_underline_red\", Texture.class));\r\n\t\tblueUnderline = new TextureRegionDrawable(directory.getEntry(\"pause_menu:pausemenu_underline\", Texture.class));\r\n\t\tblueRectangle = new TextureRegionDrawable(directory.getEntry(\"pause_menu:bluerectangle\", Texture.class));\r\n\t\tblueExit = new TextureRegionDrawable(directory.getEntry(\"pause_menu:exit_blue\", Texture.class));\r\n\t\tblueResume = new TextureRegionDrawable(directory.getEntry(\"pause_menu:resume_blue\", Texture.class));\r\n\t\tblueRestart = new TextureRegionDrawable(directory.getEntry(\"pause_menu:restart_blue\", Texture.class));\r\n\t\torangeRectangle = new TextureRegionDrawable(directory.getEntry(\"pause_menu:orangerectangle\", Texture.class));\r\n\t\torangeExit = new TextureRegionDrawable(directory.getEntry(\"pause_menu:exit_orange\", Texture.class));\r\n\t\torangeResume = new TextureRegionDrawable(directory.getEntry(\"pause_menu:resume_orange\", Texture.class));\r\n\t\torangeRestart = new TextureRegionDrawable(directory.getEntry(\"pause_menu:restart_orange\", Texture.class));\r\n\t\t//\t\tSliders\r\n\t\torangeSlider = new TextureRegionDrawable(directory.getEntry(\"pause_menu:slider_orange\", Texture.class));\r\n\t\tblueSlider = new TextureRegionDrawable(directory.getEntry(\"pause_menu:slider_blue\", Texture.class));\r\n\t\torangeKnob = new TextureRegionDrawable(directory.getEntry(\"pause_menu:knob_orange\", Texture.class));\r\n\t\tblueKnob = new TextureRegionDrawable(directory.getEntry(\"pause_menu:knob_blue\", Texture.class));\r\n\t\torangeSound = new TextureRegionDrawable(directory.getEntry(\"pause_menu:sound_orange\", Texture.class));\r\n\t\tblueSound = new TextureRegionDrawable(directory.getEntry(\"pause_menu:sound_blue\", Texture.class));\r\n\t\tblueMusicNote = new TextureRegionDrawable(directory.getEntry(\"pause_menu:musicnote_blue\", Texture.class));\r\n\t\torangeMusicNote = new TextureRegionDrawable(directory.getEntry(\"pause_menu:musicnote_orange\", Texture.class));\r\n\r\n\t\tblueNext = new TextureRegionDrawable(directory.getEntry(\"pause_menu:nextblue\", Texture.class));\r\n\t\torangeNext = new TextureRegionDrawable(directory.getEntry(\"pause_menu:nextorange\", Texture.class));\r\n\r\n\t\tbluePauseButton = new TextureRegionDrawable(directory.getEntry(\"pause_menu:pause_button_blue\", Texture.class));\r\n\t\torangePauseButton = new TextureRegionDrawable(directory.getEntry(\"pause_menu:pause_button_red\", Texture.class));\r\n\t\tblurBackground = new TextureRegion(directory.getEntry(\"pause_menu:blur\", Texture.class));\r\n\r\n\r\n\t\tsuper.gatherAssets(directory);\r\n\r\n\r\n\t}", "public Hashtable getTargets() {\n return targets;\n }", "@Override\n public Hero getOwner() {\n return owner;\n }", "public void act() \n {\n World w = getWorld();\n int height = w.getHeight();\n \n setLocation(getX(),getY()+1);\n if (getY() <=0 || getY() >= height || getX() <= 0) // off the world\n {\n w.removeObject(this);\n return;\n }\n \n \n SaboWorld thisWorld = (SaboWorld) getWorld();\n Turret turret = thisWorld.getTurret();\n Actor turretActor = getOneIntersectingObject(Turret.class);\n Actor bullet = getOneIntersectingObject(Projectile.class);\n \n if (turretActor!=null && bullet==null) // hit the turret!\n {\n \n turret.bombed(); //Turret loses health\n explode();\n w.removeObject(this);\n } else if (turret==null && bullet!=null) //hit by a bullet!\n {\n explode();\n w.removeObject(this);\n }\n \n }", "private boolean buildEntity() {\r\n\t\t/****************** Tower Creation ******************/\r\n\t\tif (this.type.contains(\"tower\")) {\r\n\t\t\tif (this.type.equals(\"tower0\")) {\r\n\t\t\t\t// Basic starting tower\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 2;\r\n\t\t\t\tthis.health = 500;\r\n\t\t\t\tthis.attack = 0;\r\n\t\t\t\tthis.price = 110;\r\n\t\t\t\tthis.frames = 1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower1\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.health = 90;\r\n\t\t\t\tthis.attack = 30;\r\n\t\t\t\tthis.price = 50;\r\n\t\t\t\tthis.frames = 5;\r\n\t\t\t\tthis.weaponFrames = 1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower2\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.health = 160;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 210;\r\n\t\t\t\tthis.frames = 6;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.weaponFrames = 8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower3\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.health = 245;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 245;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.frames = 9;\r\n\t\t\t\tthis.weaponFrames =1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower4\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.health = 200;\r\n\t\t\t\tthis.attack = 3000;\r\n\t\t\t\tthis.price = 500;\r\n\t\t\t\tthis.frames = 9;\r\n\t\t\t\tthis.weaponFrames = 8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower5\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.weaponFrames = 3;\r\n\t\t\t\tthis.health = 100;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 90;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.frames = 7;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/****************** Enemy Creation ******************/\r\n\t\tif (this.type.contains(\"zombie\")) {\r\n\t\t\tif (this.type.equals(\"zombie0\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 150;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 75;\r\n\t\t\t\tthis.deathFrames = 9;\r\n\t\t\t\tthis.walkFrames = 9;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie1\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 500;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 50;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 6;\r\n\t\t\t\tthis.attackFrames =8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie2\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 250;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 50;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 6;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie3\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 100;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.speed = 25;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 8;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/****************** Object Creation ******************/\r\n\t\tif (this.type.contains(\"object\")) {\r\n\t\t\tif (this.type.equals(\"object0\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object1\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object2\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object3\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object4\")) {\r\n\t\t\t\t// Jail building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object5\")) {\r\n\t\t\t\t// Inn building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object6\")) {\r\n\t\t\t\t// Bar building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object7\")) {\r\n\t\t\t\t// Watchtower building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object8\")) {\r\n\t\t\t\t// Plus path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object9\")) {\r\n\t\t\t\t// NS Path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object10\")) {\r\n\t\t\t\t// EW Path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object11\")) {\r\n\t\t\t\t// Cobble Ground\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object12\")) {\r\n\t\t\t\t// Tombstone with dirt\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object13\")) {\r\n\t\t\t\t// Tombstone\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object14\")) {\r\n\t\t\t\t// Wood grave marker\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/****************** Out of Creation ******************/\r\n\t\t// Check if a type was created and return results\r\n\t\tif (this.base != null) {\r\n\t\t\t// Successful creation\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\t// Unsuccessful creation\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n public boolean hasTarget() {\n if (targets.size < Rules.Player.SideKicks.HeatTurret.MAX_TARGETS) {\n return false;\n }\n for (int i = 0; i < targets.size; i++) {\n Enemy currentTarget = targets.get(i);\n if (currentTarget.isDead()) {\n targets.removeIndex(i);\n return true;\n }\n }\n return false;\n }", "@Override\n public void setup_level(GameController gameController) {\n\n super.setup_level(gameController);\n \n castle = new Castle (this, FINISH_BARREL_POSITION, gameController);\n \n {\n BoxShape bottom_sensor_shape = new BoxShape (250f,0.2f);\n Body ground = new StaticBody(this,bottom_sensor_shape);\n Sensor killer_sensor = new Sensor(ground, bottom_sensor_shape);\n ground.setPosition(new Vec2(170f,-7f));\n killer_sensor.addSensorListener(new Hero_killer_sensor(this));\n \n \n Shape left_wall_shape = new BoxShape(1, 20);\n StaticBody wall = new StaticBody(this, left_wall_shape);\n wall.setPosition(new Vec2(-3f, 20f));\n wall.addImage(new BodyImage(\"sprites/platforms/invisible_wall.png\"));\n }\n {\n \n \n get_platforms().add(new Platform(this, 8, new Vec2 (3f, -1f), \"TRUNK\"));\n get_platforms().add(new Platform(this, 5, new Vec2 (20f, 6f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(22f, 12f)));\n get_coins().add(new Coin(this, new Vec2(24f, 12f)));\n get_coins().add(new Coin(this, new Vec2(26f, 12f)));\n get_platforms().add(new Platform(this, 18, new Vec2 (42f, 6f), \"CLOUD\")); \n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(44f,7f), 4, \"TURTLE\", this));\n \n \n get_platforms().add(new Platform(this, 4, new Vec2 (96f, 6f), \"CLOUD\")); \n get_fire_rods().add(new Fire_rod(this, new Vec2 (90f, 18f)));\n \n get_platforms().add(new Platform(this, 4, new Vec2 (118f, 6f), \"CLOUD\"));\n get_fire_rods().add(new Fire_rod(this, new Vec2 (112f, 18f)));\n \n get_platforms().add(new Platform(this, 4, new Vec2 (136f, 2f), \"CLOUD\"));\n get_fire_rods().add(new Fire_rod(this, new Vec2 (138f, 12f)));\n \n get_platforms().add(new Platform(this, 4, new Vec2 (148f, 8f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(150f, 14f)));\n get_coins().add(new Coin(this, new Vec2(152f, 14f)));\n get_platforms().add(new Platform(this, 5, new Vec2 (164f, 8f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (179f, 4f)));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(167f,9f), 4, \"TURTLE\", this));\n \n get_platforms().add(new Platform(this, 5, new Vec2 (184f, 8f), \"CLOUD\"));\n get_dynamic_enemies().add(new Brown_enemy(new Vec2(187f, 9f), 4, \"BROWN\", this));\n \n get_platforms().add(new Platform(this, 3, new Vec2 (204, 8f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(206f, 14f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (214, 13f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (230f, 10.5f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (228, 13f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (244f, 10.5f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (242, 13f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(246f, 19f)));\n get_coins().add(new Coin(this, new Vec2(246f, 21f)));\n get_coins().add(new Coin(this, new Vec2(244f, 19f)));\n get_coins().add(new Coin(this, new Vec2(244f, 21f)));\n get_fire_rods().add(new Fire_rod(this, new Vec2 (258f, 10.5f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (256, 13f), \"CLOUD\"));\n \n get_platforms().add(new Platform(this, 3, new Vec2 (266, 18f), \"CLOUD\"));\n get_dynamic_enemies().add(new Brown_enemy(new Vec2(268f, 19.25f), 4, \"BROWN\", this));\n \n get_platforms().add(new Platform(this, 3, new Vec2 (276f, 5f), \"TRUNK\"));\n get_coins().add(new Coin(this, new Vec2(279f, 21f)));\n get_coins().add(new Coin(this, new Vec2(279f, 19f)));\n get_coins().add(new Coin(this, new Vec2(279f, 17f)));\n get_coins().add(new Coin(this, new Vec2(279f, 15f)));\n \n get_platforms().add(new Platform(this, 6, new Vec2 (292f, 4f), \"TRUNK\"));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(294f,6f), -4, \"TURTLE\", this));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(298f,6f), 4, \"TURTLE\", this));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (312f, 5f), \"TRUNK\"));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (322f, 8f), \"TRUNK\"));\n \n get_platforms().add(new Platform(this, 1, new Vec2 (333f, 11f), \"CLOUD\"));\n \n \n \n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (351f, 11.5f)));\n get_platforms().add(new Platform(this, 1, new Vec2 (343f, 15f), \"CLOUD\"));\n get_platforms().add(new Platform(this, 1, new Vec2 (351, 15f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (357f, 27.5f)));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (359, 15f), \"CLOUD\"));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (373, 6f), \"TRUNK\"));\n get_pipes().add(new Pipe(this, new Vec2(374.3f,11f) , true));\n get_platforms().add(new Platform(this, 3, new Vec2 (389, 12f), \"CLOUD\"));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(391f,14f), -4, \"TURTLE\", this));\n \n get_platforms().add(new Platform(this, 20, new Vec2 (399, 3f), \"GROUND\"));\n \n \n \n \n \n\n }\n \n this.start();\n\n }", "@Override\n\tpublic EntityLivingBase getOwner() {\n\t\tif(this.owner!=null&&!(this.owner instanceof EntityPlayer && this.owner.isDead)){\n\t\t\treturn this.owner;\n\t\t}\n\t\telse if(this.getOwnerId()!=null){\n\t\t\treturn this.owner=this.worldObj.getPlayerEntityByUUID(this.getOwnerId());\n\t\t}\n\t\t//System.out.println(\"owner: \"+this.getOwnerId());\n\t\treturn null;\n\t}", "private void getMyTargetsList() {\n try {\n\n String qryTargets = Constants.Targets+ \"?$filter=\" +Constants.KPIGUID+ \" eq guid'\"\n + mStrBundleKpiGUID+\"'\" ;\n ArrayList<MyTargetsBean> alMyTargets = OfflineManager.getMyTargetsList(qryTargets, mStrParnerGuid,\n mStrBundleKpiName, mStrBundleKpiCode, mStrBundleKpiGUID,\n mStrBundleCalBased, mStrBundleKpiFor,\n mStrBundleCalSource, mStrBundleRollup,mStrBundleKPICat,true);\n\n ArrayList<MyTargetsBean> alOrderValByOrderMatGrp = OfflineManager.getActualTargetByOrderMatGrp(CRSSKUGroupWiseTargetsActivity.this,mStrCPDMSDIV);\n mapMyTargetValByCRSSKU = getALOrderVal(alOrderValByOrderMatGrp);\n mapMyTargetVal = getALMyTargetList(alMyTargets);\n sortingValues();\n } catch (OfflineODataStoreException e) {\n sortingValues();\n LogManager.writeLogError(Constants.strErrorWithColon + e.getMessage());\n }\n }", "void logShot(UUID shooter, UUID projectile);", "abstract public Unit getDefendingUnit(Unit attacker);", "public Entity getTreasure() {\n return treasure;\n }", "@Override\n public Sprite getHurtSprite() {\n return Assets.getInstance().getSprite(\"entity/zombie_blood0.png\");\n }", "public static native void OpenMM_AmoebaTorsionTorsionForce_getTorsionTorsionParameters(PointerByReference target, int index, IntByReference particle1, IntByReference particle2, IntByReference particle3, IntByReference particle4, IntByReference particle5, IntByReference chiralCheckAtomIndex, IntByReference gridIndex);", "@Override\r\n\tpublic void update() {\r\n\t\t\r\n\t\tboolean fireKicker = kickerTarget;\r\n\t\tdouble localWheelTarget = wheelTarget;\r\n\t\tdouble localHoodTarget = hoodTarget;\r\n\t\tdouble localTurretTarget = turretTarget;\r\n\t\t\r\n\t\tflywheel.setTargetVelocity(localWheelTarget);\r\n\t\tservoBoulderLock.set(servoTarget);\r\n\t\t\r\n\t\tsafeToFire = (getFlywheelCurrentVelocity() >= 50) &&\r\n\t\t\t\t(servoBoulderLock.get() == Constants.BALL_HOLDER_RETRACTED) &&\r\n\t\t\t\t(getHoodCurrentAngle() <= 70);\r\n\t\t\r\n\t\tif(fireKicker && safeToFire)\r\n\t\t\tkicker.fire();\r\n\t\telse\r\n\t\t\tkicker.reset();\r\n\t\t\r\n\t\tif(intake.safeForTurretToMove()){\r\n\t\t\thood.setTargetPosition(localHoodTarget);\r\n\t\t\tturret.setTargetPosition(localTurretTarget);\r\n\t\t} \r\n\t\t\r\n\t\tif(hood.isHoodSwitchPressed()){\r\n\t\t\thood.resetZeroPosition();\r\n\t\t}\r\n\t\t\r\n\t}", "public abstract BaseCreature getCreature(Point p);", "private static Sprite makeHuman() {\n Sprite torso = new RectangleSprite(0, 0, 200, 350, 20.0F, false, \"torso\");\n Sprite head = new RectangleSprite(0, 0, 150, 200, 200.0F, true, \"head\");\n Sprite leftUpperLeg = new RectangleSprite(0, 0, 50, 225, 20.0F, true, \"leftupperleg\");\n Sprite rightUpperLeg = new RectangleSprite(0, 0, 50, 225, 20.0F, true, \"rightupperleg\");\n Sprite leftLowerLeg = new RectangleSprite(0, 0, 50, 200, 20.0F, true, \"leftlowerleg\");\n Sprite rightLowerLeg = new RectangleSprite(0, 0, 50, 200, 20.0F, true, \"rightlowerleg\");\n Sprite leftFoot = new RectangleSprite(0, 0, 80, 35, 20.0F, true, \"leftfoot\");\n Sprite rightFoot = new RectangleSprite(0, 0, 80, 35, 20.0F, true, \"rightfoot\");\n Sprite leftUpperArm = new RectangleSprite(0,0, 200, 50, 20.0F, true,\"leftupperarm\");\n Sprite rightUpperArm = new RectangleSprite(0,0, 200, 50, 20.0F, true,\"rightupperarm\");\n Sprite leftLowerArm = new RectangleSprite(0,0, 175, 50, 20.0F, true,\"leftlowerarm\");\n Sprite rightLowerArm = new RectangleSprite(0,0, 175, 50, 20.0F, true,\"rightlowerarm\");\n Sprite leftHand = new RectangleSprite(0, 0, 50, 50, 20.0F, true, \"lefthand\");;\n Sprite rightHand = new RectangleSprite(0, 0, 50, 50, 20.0F, true, \"righthand\");;\n\n // Translate Torso\n Matrix torsoMatrix = new Matrix();\n torsoMatrix.postTranslate(700, 500);\n torso.transform(torsoMatrix);\n\n // Translate Head\n Matrix headMatrix = new Matrix();\n headMatrix.postTranslate(30, -200);\n head.transform(headMatrix);\n\n // Translate Left hand\n Matrix leftHandMatrix = new Matrix();\n leftHandMatrix.postTranslate(-50, 0);\n leftHand.transform(leftHandMatrix);\n\n // Translate Right hand\n Matrix rightHandMatrix = new Matrix();\n rightHandMatrix.postTranslate(175, 0);\n rightHand.transform(rightHandMatrix);\n\n // Translate Left Upper Arm\n Matrix leftUpperArmMatrix = new Matrix();\n leftUpperArmMatrix.postTranslate(-200, 0);\n leftUpperArm.transform(leftUpperArmMatrix);\n\n // Translate Right Upper Arm\n Matrix rightUpperArmMatrix = new Matrix();\n rightUpperArmMatrix.postTranslate(200, 0);\n rightUpperArm.transform(rightUpperArmMatrix);\n\n // Translate Left Lower Arm\n Matrix leftLowerArmMatrix = new Matrix();\n leftLowerArmMatrix.postTranslate(-175, 0);\n leftLowerArm.transform(leftLowerArmMatrix);\n\n // Translate Right Lower Arm\n Matrix rightLowerArmMatrix = new Matrix();\n rightLowerArmMatrix.postTranslate(200, 0);\n rightLowerArm.transform(rightLowerArmMatrix);\n\n // Translate Left Upper Leg\n Matrix leftUpperLegMatrix = new Matrix();\n leftUpperLegMatrix.postTranslate(10, 350);\n leftUpperLeg.transform(leftUpperLegMatrix);\n\n // Translate Right Upper Leg\n Matrix rightUpperLegMatrix = new Matrix();\n rightUpperLegMatrix.postTranslate(140, 350);\n rightUpperLeg.transform(rightUpperLegMatrix);\n\n // Translate Left Lower Leg\n Matrix leftLowerLegMatrix = new Matrix();\n leftLowerLegMatrix.postTranslate(0, 225);\n leftLowerLeg.transform(leftLowerLegMatrix);\n\n // Translate Right Lower Leg\n Matrix rightLowerLegMatrix = new Matrix();\n rightLowerLegMatrix.postTranslate(0, 225);\n rightLowerLeg.transform(rightLowerLegMatrix);\n\n // Translate Left Foot\n Matrix leftFootMatrix = new Matrix();\n leftFootMatrix.postTranslate(-50, 190);\n leftFoot.transform(leftFootMatrix);\n\n // Translate Right Foot\n Matrix rightFootMatrix = new Matrix();\n rightFootMatrix.postTranslate(20, 190);\n rightFoot.transform(rightFootMatrix);\n\n\n // Set Min/Max Rotation for all body parts\n head.max_degree = 50;\n head.min_degree = -50;\n leftUpperLeg.min_degree = -90;\n leftUpperLeg.max_degree = 90;\n rightUpperLeg.min_degree = -90;\n rightUpperLeg.max_degree = 90;\n leftLowerLeg.min_degree = -90;\n leftLowerLeg.max_degree = 90;\n rightLowerLeg.min_degree = -90;\n rightLowerLeg.max_degree = 90;\n leftFoot.min_degree = -35;\n leftFoot.max_degree = 35;\n rightFoot.max_degree = 35;\n rightFoot.min_degree = -35;\n leftLowerArm.min_degree = -135;\n leftLowerArm.max_degree = 135;\n rightLowerArm.min_degree = -135;\n rightLowerArm.max_degree = 135;\n leftHand.min_degree = -35;\n leftHand.max_degree = 35;\n rightHand.min_degree = -35;\n rightHand.max_degree = 35;\n //leftUpperArm.min_degree = -360;\n //leftUpperArm.max_degree = 360;\n\n // Define Torso's children\n torso.addChild(head);\n torso.addChild(leftUpperArm);\n torso.addChild(rightUpperArm);\n torso.addChild(leftUpperLeg);\n torso.addChild(rightUpperLeg);\n\n // Define Upper Arm Children\n leftUpperArm.addChild(leftLowerArm);\n rightUpperArm.addChild(rightLowerArm);\n\n // Define hand Relationship\n leftLowerArm.addChild(leftHand);\n rightLowerArm.addChild(rightHand);\n\n // Define Upper Leg Children\n leftUpperLeg.addChild(leftLowerLeg);\n rightUpperLeg.addChild(rightLowerLeg);\n leftLowerLeg.addChild(leftFoot);\n rightLowerLeg.addChild(rightFoot);\n return torso;\n }", "private static void rangedTank(Player player) {\n\t\tbankInventoryAndEquipment(player);\n\t\tspawnInventory(player, RangedTank.inventory);\n\t\tspawnEquipment(player, RangedTank.equipmentSet(player));\n\t\tupdateEquipment(player);\n\t\theal(player, true, true);\n\t\tsetCombatSkills(player, \"RANGED TANK\", false, null);\n\t\tsetPrayerAndMagicBook(player, \"LUNAR\");\n\t\tPresets.isPresetFlagged(player, player.bankIsFullWhileUsingPreset);\n\t}", "private EntityLivingBase findPlayerToAttack() {\n EntityPlayer player = entity.worldObj.getClosestVulnerablePlayerToEntity(entity, aggroRange);\n if ( player != null && !player.capabilities.isCreativeMode && entity.canEntityBeSeen(player) )\n \treturn player;\n\n EntityLivingBase target = entity.getLastAttacker();\n if ( isTargetValid(target) && entity.canEntityBeSeen(target) )\n \treturn target;\n\n \treturn null;\n }", "public interface KillHandler {\n\n /**\n * Logs that a player's weapon has been fired. Called every time a player shoots their gun.\n * Records the id of the shooter and the id of the paintball.\n *\n * @param shooter The id shooter shooting the paintball.\n * @param projectile The id of the projectile that is being shot.\n */\n void logShot(UUID shooter, UUID projectile);\n\n\n /**\n * Safely finds the id of the shooter of a projectile. If it does not exist the optional will be\n * Optional.empty() if the projectile is not being tracked by this tracker.\n *\n * @param projectile The id of the projectile.\n * @return An object that either contains the id of the shooter or null.\n */\n Optional<UUID> getShooter(UUID projectile);\n\n\n /**\n * Logs that a player's paintball has hit a monster. Called every time a paintball has hit a monster.\n * @param shooter The id of the shooter shooting the paintball.\n * @param entityType The type of entity that has been killed.\n */\n void logKill(UUID shooter, EntityType entityType);\n\n /**\n * Determines if this projectile tracker is tracking the id of the projectile that is being\n * tracked.\n *\n * @param projectile The id of the projectile\n * @return True if this projectile tracker is tracking the provided projectile.\n */\n boolean isTracked(UUID projectile);\n\n /**\n * Backup the contents of this tracker.\n * @param Wave the wave this game got to.\n */\n void save(int Wave, Set<UUID> players);\n\n\n /**\n * Gets the amount of kills the player has.\n * @param player The player.\n * @return The amount of kills.\n */\n int getKills(UUID player);\n\n}", "public abstract String getUsername(T itemVO);", "public void onUsingTick(ItemStack stack, EntityPlayer player, int count) {\n/* 132 */ player.motionX = 0.0D;\n/* 133 */ player.motionZ = 0.0D;\n/* */ \n/* 135 */ int searchRange = 20;\n/* 136 */ List<EntityLivingBase> entities = player.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(player.posX - searchRange, player.posY - searchRange, player.posZ - searchRange, player.posX + searchRange, player.posY + searchRange, player.posZ + searchRange));\n/* */ \n/* 138 */ if (entities.contains(player)) {\n/* 139 */ entities.remove(player);\n/* */ }\n/* 141 */ if (count < getMaxItemUseDuration(stack) - 20) {\n/* 142 */ for (int counter = entities.size() - 1; counter >= 0; counter--) {\n/* 143 */ if (player.getDistanceToEntity((Entity)entities.get(counter)) <= 3.0F && \n/* 144 */ WandManager.consumeVisFromInventory(player, (new AspectList()).add(Aspect.FIRE, (int)(150.0F * RelicsConfigHandler.soulTomeVisMult)).add(Aspect.ENTROPY, (int)(120.0F * RelicsConfigHandler.soulTomeVisMult)))) {\n/* */ \n/* 146 */ EntityLivingBase thrownEntity = entities.get(counter);\n/* */ \n/* 148 */ Vector3 entityVec = Vector3.fromEntityCenter((Entity)thrownEntity);\n/* 149 */ Vector3 playerVec = Vector3.fromEntityCenter((Entity)player);\n/* */ \n/* 151 */ Vector3 diff = entityVec.copy().sub(playerVec).multiply((1.0F / player.getDistanceToEntity((Entity)thrownEntity) * 3.0F));\n/* */ \n/* 153 */ float curve = (float)(1.0D / player.getDistance(entityVec.x, entityVec.y, entityVec.z) * 8.0D);\n/* */ \n/* 155 */ if (!player.worldObj.isRemote)\n/* 156 */ for (int counterZ = 0; counterZ <= 3; counterZ++) {\n/* 157 */ Main.proxy.lightning(player.worldObj, player.posX, player.posY + 1.0D, player.posZ, entityVec.x, entityVec.y, entityVec.z, 40, curve, (int)(player.getDistance(entityVec.x, entityVec.y, entityVec.z) * 6.0D), 0, 0.075F);\n/* */ } \n/* 159 */ player.worldObj.playSoundAtEntity((Entity)player, \"thaumcraft:zap\", 1.0F, 0.8F);\n/* */ \n/* 161 */ thrownEntity.attackEntityFrom((DamageSource)new DamageRegistryHandler.DamageSourceTLightning((Entity)player), (float)(20.0D + 80.0D * Math.random()));\n/* */ \n/* 163 */ thrownEntity.motionX = diff.x;\n/* 164 */ thrownEntity.motionY = diff.y + 1.0D;\n/* 165 */ thrownEntity.motionZ = diff.z;\n/* */ } \n/* */ } \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 195 */ this; this; this; this; if ((((count < getMaxItemUseDuration(stack) - 20) ? 1 : 0) & ((count % 4 == 0) ? 1 : 0)) != 0 && WandManager.consumeVisFromInventory(player, (new AspectList()).add(Aspect.EARTH, TerraCost).add(Aspect.AIR, AerCost).add(Aspect.FIRE, IgnisCost).add(Aspect.ENTROPY, PerditioCost))) {\n/* */ \n/* 197 */ EntityLivingBase randomEntity = null;\n/* */ \n/* 199 */ if (entities.size() > 0) {\n/* 200 */ randomEntity = entities.get((int)(entities.size() * Math.random()));\n/* */ }\n/* 202 */ if ((((randomEntity != null) ? 1 : 0) & (!player.worldObj.isRemote ? 1 : 0)) != 0) {\n/* */ \n/* 204 */ float soulDamage = randomEntity.getMaxHealth() / RelicsConfigHandler.soulTomeDivisor;\n/* */ \n/* 206 */ if (soulDamage > 20.0F) {\n/* 207 */ soulDamage = 20.0F;\n/* 208 */ } else if (soulDamage < 1.0F) {\n/* 209 */ soulDamage = 1.0F;\n/* */ } \n/* 211 */ randomEntity.attackEntityFrom((DamageSource)new DamageRegistryHandler.DamageSourceSoulDrain((Entity)player), soulDamage);\n/* 212 */ spawnSoul(player.worldObj, randomEntity, (EntityLivingBase)player);\n/* */ } \n/* */ } \n/* */ }", "public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity)\n\t{\n\t\tif (entity instanceof EntityPlayer) {\n\t\t\tEntityPlayer plr = (EntityPlayer) entity;\n\t\t\tSystem.out.println(\"ENT!! PLAYER!! \" + plr.getGameProfile().getName() + \" UUID:\" + plr.getGameProfile().getId());\n\n\t\t\tif (stack.stackTagCompound != null) {\n\t\t\t\t//NBT for targer\n\t\t\t\tstack.stackTagCompound.setString(\"targetName\", plr.getGameProfile().getName());\n\t\t\t\tstack.stackTagCompound.setString(\"targetUUID\", plr.getGameProfile().getId().toString());\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "@Override\n\t\tprotected ResourceLocation getEntityTexture(EntityLivingBase entity) {\n\t\t\treturn texture;\n\t\t}", "public List<Tile> findTargets() {\n List<Tile> targets = new ArrayList<>(); // our return value\n int fearDistance = 2; // Ideally we're 2 spots away from their head, increases when we can't do that.\n int foodDistance = 3; // We look at a distance 3 for food.\n\n // If fearDistance gets this big, then its just GG i guess\n while (targets.size() == 0 && fearDistance < 15) {\n // Get the tiles around the Enemy's head\n targets = this.gb.nearByTiles(this.enemy_head_x, this.enemy_head_y, fearDistance);\n fearDistance += 1;\n }\n\n // Get the food tiles near us\n for (int i=0; i < foodDistance; i++) {\n List<Tile> nearBy = this.gb.nearByTiles(this.us_head_x, this.us_head_y, i);\n for (Tile t : nearBy) {\n if (t.isFood() && !targets.contains(t)) targets.add(t);\n }\n }\n return targets;\n }", "public void fireScourgeTorpedo() {\n\t\t// Has player waited cooldown before trying to fire again?\n\t\tif (System.currentTimeMillis() - this.lastFired > Config.WEAPON_COOLDOWN_TIME * 1000) {\n\t\t\tSystem.out.println(player.getDisplayName() + \" is attempting to fire a torpedo\");\n\t\t\t// Can this airship fire torpedoes?\n\t\t\tif (this.properties.FIRES_TORPEDO) {\n\t\t\t\tBlock[] cannons = getCannons();\n\t\t\t\tint numfiredcannons = 0;\n\t\t\t\tfor (int i = 0; i < cannons.length; i++) {\n\t\t\t\t\tif (cannons[i] != null && cannonHasTnt(cannons[i], Config.NUM_TNT_TO_FIRE_SCOURGE_TORPEDO)) {\n\t\t\t\t\t\tBlockFace face = ((Directional) cannons[i].getState().getData()).getFacing();\n\t\t\t\t\t\tboolean missingMaterial = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int id : Config.MATERIALS_NEEDED_FOR_SCOURGE_TORPEDO) {\n\t\t\t\t\t\t\tif (!cannonHasItem(cannons[i], id, 1)) {\n\t\t\t\t\t\t\t\tmissingMaterial = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!cannons[i].getRelative(face.getModX(), 0, face.getModZ()).getType().equals(Material.AIR) || missingMaterial)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (numfiredcannons < this.properties.MAX_NUMBER_OF_CANNONS) {\n\t\t\t\t\t\t\tnumfiredcannons++;\n\t\t\t\t\t\t\tlastFired = System.currentTimeMillis();\n\t\t\t\t\t\t\twithdrawTnt(cannons[i], Config.NUM_TNT_TO_FIRE_SCOURGE_TORPEDO);\n\t\t\t\t\t\t\tfor (int id : Config.MATERIALS_NEEDED_FOR_SCOURGE_TORPEDO) {\n\t\t\t\t\t\t\t\twithdrawItem(cannons[i], id, 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Fire some torpedoes TODO: maybe add sound effects for tnt firing? :P\n\t\t\t\t\t\t\tnew ScourgeTorpedo(cannons[i], face);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// More cannons on ship than allowed. Not all fired - can break out of loop now.\n\t\t\t\t\t\t\t//player.sendMessage(ChatColor.AQUA + \"Some cannons did not fire. Max cannon limit is \" + ChatColor.GOLD + this.properties.MAX_NUMBER_OF_CANNONS);\n\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.AQUA + \"Some missiles did not fire. item check = \" + ChatColor.GOLD + missingMaterial);\n\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.AQUA + \"numFiredCannons = \" + ChatColor.GOLD + numfiredcannons);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\tplayer.sendMessage(ChatColor.GOLD + this.properties.SHIP_TYPE + \" CANNOT FIRE TORPEDO\");\n\t\t} else\n\t\t\tplayer.sendMessage(ChatColor.GOLD + \"COOLING DOWN FOR \" + ChatColor.AQUA + (int)(Math.round(6 - (System.currentTimeMillis() - this.lastFired) / 1000)) + ChatColor.GOLD + \" MORE SECONDS\");\n\t}", "private void displayTenantUnit(){\n Landlord landlord = dm.getLandlord();\n if (unit.getPhoto() != null) {\n GlideApp.with(this /* context */)\n .load(unit.getPhoto())\n .placeholder(R.drawable.unit_placeholder).transition(withCrossFade())\n .into(imgUnitPhoto);\n }\n colToolbar.setTitle(unit.getName());\n lblName.setText(unit.getName());\n lblAddress.setText(unit.getAddress().toString());\n lblType.setText(unit.getTypeString());\n String beds = Integer.toString(unit.getBeds());\n lblBeds.setText(beds);\n String baths = Double.toString(unit.getBaths());\n lblBaths.setText(baths);\n String sqft = Integer.toString(unit.getSquareFeet());\n lblSqFt.setText(sqft);\n String rent = Double.toString(unit.getRent());\n lblCost.setText(rent);\n String rentDay = Integer.toString(unit.getRentDueDay());\n lblRentDue.setText(rentDay);\n String year = Integer.toString(unit.getYearBuilt());\n lblYearBuilt.setText(year);\n String name = landlord.getFirstName() + \" \" + landlord.getLastName();\n lblUnitLandlord.setText(name);\n }", "private void performHarvest(Player player, InformationCallback informationCallback){\n for (DevelopmentCard card : this.players.get(player.getUsername()).getPersonalBoard().getCards(DevelopmentCardColor.GREEN)) {\n card.getPermanentEffect().runEffect(player, informationCallback);\n }\n }", "public abstract V getEntity();", "@Override\n public void periodic() {\n if(m_Turret.OnTarget()){\n velocity = calculateRPMs();\n pidController.setReference(velocity, ControlType.kVelocity);\n SmartDashboard.putNumber(\"shooter Desired velocity\", velocity );\n SmartDashboard.putNumber(\"shooter Actual velocity\", encoder.getVelocity());\n \n if(atRPM() && accumulator > 100){\n m_Indexer.shooting();\n hasShot = true;\n }\n }else{\n accumulator = 0;\n if(hasShot){\n m_Indexer.endShooting();\n hasShot = false;\n }\n }\n\n SmartDashboard.putBoolean(\"shooter at rpm\", atRPM() && accumulator > 100);\n }", "@Override\n public Player getHumanPlayer() {\n return batMan.getHumanPlayer();\n }", "int getTargetSummonUid();", "public static native void OpenMM_AmoebaTorsionTorsionForce_getTorsionTorsionParameters(PointerByReference target, int index, IntBuffer particle1, IntBuffer particle2, IntBuffer particle3, IntBuffer particle4, IntBuffer particle5, IntBuffer chiralCheckAtomIndex, IntBuffer gridIndex);", "protected ResourceLocation getEntityTexture(Entity entity)\n {\n return this.func_180578_a((EntityMaxZombie)entity);\n }", "@Override\n public void onEntityUpdate() {\n if (!(world.provider instanceof WorldProviderLimbo || world.provider instanceof WorldProviderDungeonPocket)) {\n setDead();\n super.onEntityUpdate();\n return;\n }\n\n super.onEntityUpdate();\n\n // Check for players and update aggro levels even if there are no players in range\n EntityPlayer player = world.getClosestPlayerToEntity(this, MAX_AGGRO_RANGE);\n boolean visibility = player != null && player.canEntityBeSeen(this);\n updateAggroLevel(player, visibility);\n\n // Change orientation and face a player if one is in range\n if (player != null) {\n facePlayer(player);\n if (!world.isRemote && isDangerous()) {\n // Play sounds on the server side, if the player isn't in Limbo.\n // Limbo is excluded to avoid drowning out its background music.\n // Also, since it's a large open area with many Monoliths, some\n // of the sounds that would usually play for a moment would\n // keep playing constantly and would get very annoying.\n playSounds(player.getPosition());\n }\n\n if (visibility) {\n // Only spawn particles on the client side and outside Limbo\n if (world.isRemote && isDangerous()) {\n spawnParticles(player);\n }\n\n // Teleport the target player if various conditions are met\n if (aggro >= MAX_AGGRO && !world.isRemote && ModConfig.monoliths.monolithTeleportation && !player.isCreative() && isDangerous()) {\n aggro = 0;\n Location destination = WorldProviderLimbo.getLimboSkySpawn(player);\n TeleportUtils.teleport(player, destination, 0, 0);\n player.world.playSound(null, player.getPosition(), ModSounds.CRACK, SoundCategory.HOSTILE, 13, 1);\n }\n }\n }\n }", "public void pickupDevelopmentCardFromTower(Player player, FamilyMemberColor familyMemberColor, int servants, int indexTower, int indexCell, InformationCallback informationCallback) throws GameException{\n Tower tower = this.mainBoard.getTower(indexTower);\n TowerCell cell = tower.getTowerCell(indexCell);\n\n if(player.getPersonalBoard().getValuables().getResources().get(ResourceType.SERVANT) < servants)\n throw new GameException(GameErrorType.FAMILY_MEMBER_DICE_VALUE);\n\n int servantsValue = servants/player.getPersonalBoard().getExcommunicationValues().getNumberOfSlaves();\n\n LeaderCard leaderCardBrunelleschi = player.getPersonalBoard().getLeaderCardWithName(\"Filippo Brunelleschi\");\n\n if (cell.getPlayerNicknameInTheCell() == null || player.getPersonalBoard().getAlwaysPlaceFamilyMemberInsideActionSpace()){\n\n tower.familyMemberCanBePlaced(player, familyMemberColor);\n\n updateFamilyMemberValue(player, familyMemberColor, servantsValue);\n\n try {\n cell.familyMemberCanBePlaced(player, familyMemberColor);\n\n if (!tower.isFree() && (leaderCardBrunelleschi == null || !leaderCardBrunelleschi.getLeaderEffectActive())) {\n if(player.getPersonalBoard().getValuables().getResources().get(ResourceType.COIN) >= 3)\n player.getPersonalBoard().getValuables().decrease(ResourceType.COIN, 3);\n else\n throw new GameException(GameErrorType.TOWER_COST);\n }\n\n cell.developmentCardCanBeBought(player, informationCallback);\n\n DevelopmentCard card = cell.getDevelopmentCard();\n this.payValuablesToGetDevelopmentCard(player, card, informationCallback);\n\n player.getPersonalBoard().addCard(card);\n if(card.getImmediateEffect() != null)\n card.getImmediateEffect().runEffect(player,informationCallback);\n if(card.getColor().equals(DevelopmentCardColor.BLUE) && card.getPermanentEffect() != null)\n card.getPermanentEffect().runEffect(player, informationCallback);\n\n if(cell.getTowerCellImmediateEffect() != null && canRunTowerImmediateEffects(player, indexCell))\n cell.getTowerCellImmediateEffect().runEffect(player, informationCallback);\n\n player.getPersonalBoard().setFamilyMembersUsed(familyMemberColor);\n\n cell.setPlayerNicknameInTheCell(player.getUsername());\n } catch (GameException e){\n restoreFamilyMemberValue(player, familyMemberColor, servantsValue);\n\n if (!tower.isFree() && (leaderCardBrunelleschi == null || !leaderCardBrunelleschi.getLeaderEffectActive()) && !e.getError().equals(GameErrorType.TOWER_COST))\n player.getPersonalBoard().getValuables().increase(ResourceType.COIN, 3);\n throw e;\n }\n } else {\n throw new GameException(GameErrorType.TOWER_CELL_BUSY);\n }\n }", "@Override\n\tpublic boolean onEntitySwing(EntityLivingBase entity, ItemStack item)\n\t{\n\t\tint meta = item.getItemDamage();\n\t\t\n\t\tif (entity instanceof EntityPlayer)\n\t\t{\n\t\t\tEntityPlayer player = (EntityPlayer) entity;\n\t\t\t\n\t\t\t//玩家左鍵使用此武器時 (client side only)\n\t\t\tif (player.world.isRemote)\n\t\t\t{\n\t\t\t\tRayTraceResult hitObj = EntityHelper.getPlayerMouseOverEntity(64D, 1F);\n\t\t\t\t\n\t\t\t\t//hit entity\n\t\t\t\tif (hitObj != null && hitObj.entityHit != null)\n\t\t\t\t{\n\t\t\t\t\t//target != ship\n\t\t\t\t\tif (!(hitObj.entityHit instanceof BasicEntityShip ||\n\t\t\t\t\t\t hitObj.entityHit instanceof BasicEntityShipHostile ||\n\t\t\t\t\t\t hitObj.entityHit instanceof BasicEntitySummon))\n\t\t\t\t\t{\n\t\t\t\t\t\tString tarName = hitObj.entityHit.getClass().getSimpleName();\n\t\t\t\t\t\tLogHelper.debug(\"DEBUG: target wrench get class: \"+tarName);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//send packet to server\n\t\t\t\t\t\tCommonProxy.channelG.sendToServer(new C2SGUIPackets(player, C2SGUIPackets.PID.SetUnatkClass, tarName));\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}//end not ship\n\t\t\t\t}//end hit != null\n\t\t\t}//end client side\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (player.isSneaking())\n\t\t\t\t{\n\t\t\t\t\tHashMap<Integer, String> tarlist = ServerProxy.getUnattackableTargetClass();\n\t\t\t\t\t\n\t\t\t\t\tTextComponentTranslation text = new TextComponentTranslation(\"chat.shincolle:wrench.unatkshow\");\n\t\t\t\t\ttext.getStyle().setColor(TextFormatting.GOLD);\n\t\t\t\t\tplayer.sendMessage(text);\n\t\t\t\t\t\n\t\t\t\t\ttarlist.forEach((k, v) ->\n\t\t\t\t\t{\n\t\t\t\t\t\tplayer.sendMessage(new TextComponentString(TextFormatting.AQUA+v));\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}//end player not null\n\t\t\n return false;\t//both side\n }", "@Override\n\tpublic List<HeadUnit> getallHeadUnitDetail() {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sql = \"SELECT * FROM headunit\";\n\t\tList<HeadUnit> listHeadunit = jdbcTemplate.query(sql, new RowMapper<HeadUnit>() {\n\t\t\t@Override\n\t\t\tpublic HeadUnit mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t// set parameters\n\t\t\t\tHeadUnit headunit = new HeadUnit();\n\t\t\t\theadunit.setHeadunitid(rs.getLong(\"headunit_id\"));\n\t\t\t\theadunit.setUserid(rs.getInt(\"user_id\"));\n\t\t\t\theadunit.setCarname(rs.getString(\"carname\"));\n\t\t\t\theadunit.setHduuid(rs.getString(\"hduuid\"));\n\t\t\t\theadunit.setAppversion(rs.getString(\"appversion\"));\n\t\t\t\theadunit.setGcmregistartionkey(rs.getString(\"gcmregistartionkey\"));\n\t\t\t\theadunit.setCreateddate(rs.getDate(\"createddate\"));\n\t\t\t\treturn headunit;\n\t\t\t}\n\t\t});\n\t\treturn listHeadunit;\n\t}", "protected ResourceLocation getEntityTexture(EntityLiving entity)\n {\n return this.func_180578_a((EntityMaxZombie)entity);\n }", "@Override\n\tpublic void onUpdate() {\n\t\tif (this.isEntityAlive()) {\n\t\t\tthis.lastActiveTime = this.timeSinceIgnited;\n\t\t\tint i = this.getCreeperState();\n\t\t\tif (i > 0 && this.timeSinceIgnited == 0) {\n\t\t\t\tthis.playSound(\"random.fuse\", 1.0F, 0.5F);\n\t\t\t}\n\t\t\tthis.timeSinceIgnited += i;\n\t\t\tif (this.timeSinceIgnited < 0) {\n\t\t\t\tthis.timeSinceIgnited = 0;\n\t\t\t}\n\t\t\tif (this.timeSinceIgnited >= this.fuseTime) {\n\t\t\t\tthis.timeSinceIgnited = this.fuseTime;\n\t\t\t\tif (!this.worldObj.isRemote) {\n\t\t\t\t\tthis.worldObj.spawnParticle(\"portal\", this.posX, this.posY,\n\t\t\t\t\t\t\tthis.posZ, 4D, 4D, 4D);\n\t\t\t\t\tthis.worldObj.playSoundEffect(this.posX, this.posY,\n\t\t\t\t\t\t\tthis.posZ, \"mob.endermen.portal\", 2.0F,\n\t\t\t\t\t\t\tthis.worldObj.rand.nextFloat() * 0.1F + 0.9F);\n\t\t\t\t\tList players = worldObj.getEntitiesWithinAABB(\n\t\t\t\t\t\t\tEntityPlayer.class, this.boundingBox.expand(\n\t\t\t\t\t\t\t\t\t3 + Math.floor(this.ticksExisted / 50), 2,\n\t\t\t\t\t\t\t\t\t3 + Math.floor(this.ticksExisted / 50)));\n\t\t\t\t\tObject[] playerArray = players.toArray();\n\t\t\t\t\tfor (Object o : playerArray) {\n\t\t\t\t\t\tEntityPlayer e = (EntityPlayer) o;\n\t\t\t\t\t\tint entityId = e.getEntityId();\n\t\t\t\t\t\tif (!this.worldObj.isRemote) {\n\t\t\t\t\t\t\tint dimensionId = e.dimension == 0 ? 1 : 0;\n\t\t\t\t\t\t\tPacketDispatcher.getSimpleNetworkWrapper()\n\t\t\t\t\t\t\t.sendToServer(\n\t\t\t\t\t\t\t\t\tnew MessageTeleportToDimension(\n\t\t\t\t\t\t\t\t\t\t\t\t\tdimensionId, entityId));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tthis.setDead();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsuper.onUpdate();\n\t}", "@Override\n public ArrayList<Entity> getEntities() {\n ArrayList<Entity> enemies = new ArrayList<>();\n\n // Fire Dragon (Near Starting Area)\n enemies.add(new Enemy(\"Dracoflame\", 31, 32) {\n @Override\n public void doAction() {\n //Globals.SBG.enterState(Globals.STATES.get(\"CHALLENGE\"));\n }\n });\n\n // Evil Tree (Far Right)\n enemies.add(new Enemy(\"Trevil\", 90, 40) {\n @Override\n public void doAction() {\n //Globals.SBG.enterState(Globals.STATES.get(\"CHALLENGE\"));\n }\n });\n\n // Evil Mushroom (Bottom Left)\n enemies.add(new Enemy(\"Mycovolence\", 72, 80) {\n @Override\n public void doAction() {\n //Globals.SBG.enterState(Globals.STATES.get(\"CHALLENGE\"));\n }\n });\n\n // Ship\n enemies.add(new Enemy(\"SailingShip\", 11, 76) {\n @Override\n public void doAction() {\n //Globals.SBG.enterState(Globals.STATES.get(\"CHALLENGE\"));\n }\n });\n\n return enemies;\n }", "@Override\n public void refuel() {\n // refuel tank\n System.out.println(\"Tank has been refueled.\");\n }", "public void registerTileEntities() {\n GameRegistry.registerTileEntity(TEEssenceStorage.class, ReferenceMisc.MODID + \"_essencestorage\");\n GameRegistry.registerTileEntity(TEPylon.class, ReferenceMisc.MODID + \"_pylon\");\n GameRegistry.registerTileEntity(TEVitar.class, ReferenceMisc.MODID + \"_vitar\");\n GameRegistry.registerTileEntity(TEStorage.class, ReferenceMisc.MODID + \"_storage\");\n GameRegistry.registerTileEntity(TELeo.class, ReferenceMisc.MODID + \"_leo\");\n GameRegistry.registerTileEntity(TEBreedingChamber.class, ReferenceMisc.MODID + \"_breedingChamber\");\n GameRegistry.registerTileEntity(TEIncubationChamber.class, ReferenceMisc.MODID + \"_incubationChamber\");\n\n }", "@Override\n public void onUpdate(double tpf) {\n int x = (int)((entity.getX() + 30/2 ) / 30);\n int y = (int)((entity.getY() + 30/2 ) / 30);\n\n int px = (int)((player.getX() + 30/2 ) / 30);\n int py = (int)((player.getY() + 30/2 ) / 30);\n\n if (x == px || y == py) {\n shoot();\n }\n }", "@Override\n public void touchedBy(Creature c) {\n\n }", "@PermitAll\n public void cmdWho(User teller) {\n Formatter msg = new Formatter();\n Collection<Player> playersOnline = tournamentService.findOnlinePlayers();\n for (Player player : playersOnline) {\n msg.format(\" %s \\\\n\", player);\n }\n command.qtell(teller, msg);\n }" ]
[ "0.6247144", "0.605032", "0.5642777", "0.5425117", "0.5263849", "0.5101658", "0.50486964", "0.50037307", "0.49852544", "0.49766368", "0.4956778", "0.4925707", "0.48555955", "0.48472133", "0.48398355", "0.47873378", "0.4785751", "0.47679514", "0.47632927", "0.47533613", "0.47533017", "0.47152776", "0.47087085", "0.47038832", "0.46719533", "0.46512586", "0.46461973", "0.46194005", "0.4614038", "0.46068984", "0.45780832", "0.45650896", "0.45380032", "0.4526586", "0.45174062", "0.4517132", "0.45091683", "0.4483741", "0.44800484", "0.44724557", "0.44680354", "0.44678116", "0.44677842", "0.44587752", "0.44490394", "0.4442706", "0.44396913", "0.44332936", "0.4425293", "0.43935734", "0.43925846", "0.43859664", "0.43792287", "0.4378085", "0.43729544", "0.436733", "0.43621916", "0.43553805", "0.43508968", "0.43432498", "0.4340628", "0.43399784", "0.43393585", "0.432194", "0.43129644", "0.4311118", "0.4301566", "0.4293746", "0.42904025", "0.428431", "0.42827427", "0.42824215", "0.42789096", "0.42761633", "0.42745772", "0.42728937", "0.42721522", "0.42693865", "0.4267062", "0.42619044", "0.42593294", "0.42538473", "0.42535192", "0.42534187", "0.42497504", "0.42477873", "0.42443612", "0.42430538", "0.4242209", "0.423386", "0.42337692", "0.42246497", "0.42245647", "0.42221183", "0.42214108", "0.4213122", "0.42119986", "0.42114282", "0.42095166", "0.42057192" ]
0.70758915
0
EFFECTS: constructs the reader that will be used to read from the source file
public JsonReader(String source) { this.source = source; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MafSource readSource(File sourceFile);", "interface Source {\n /** Finds a reader for a given file name.\n */\n public java.io.Reader getReader (URL url) throws java.io.IOException;\n }", "public FilesInputStreamLoad readFile() throws ArcException {\r\n\tFile dir = new File(this.archiveChargement + \".dir\");\r\n\tString fileName = ManipString.substringAfterFirst(this.idSource, \"_\");\r\n\tFile toRead = new File(dir + File.separator + ManipString.redoEntryName(fileName));\r\n\tFilesInputStreamLoad filesInputStreamLoadReturned = null;\r\n\ttry {\r\n\t\tfilesInputStreamLoadReturned = new FilesInputStreamLoad (toRead);\r\n\t} catch (IOException ioReadException) {\r\n\t\tthrow new ArcException(ioReadException, ArcExceptionMessage.FILE_READ_FAILED, toRead);\r\n\t}\r\n\treturn filesInputStreamLoadReturned;\r\n }", "StreamReader underlyingReader();", "@SneakyThrows\n public Reader reader() {\n return new FileReader(this.temp);\n }", "public void readFromFile() {\n\n\t}", "public interface SourceFileReader {\n\t\n\t/**\n\t * Reads a file and returns its content in a List\n\t * @param fileReaderType the location of a file \n\t * (<b>local</b> for locally stored files, \n\t * <b>web</b> for files stored on the web). \n\t * @param filepath the url of the file\n\t * @return a List that contains the contents of the file \n\t * or null if the type is neither <b>local</b> nor <b>web</b>\n\t * @throws IOException\n\t */\n\tpublic List<String> readFileIntoList(String filepath) throws IOException;\n\t\n\t/**\n\t * Reads a file and returns its content in a single String\n\t * @param fileReaderType the location of a file \n\t * (<b>local</b> for locally stored files, \n\t * <b>web</b> for files stored on the web). \n\t * @param filepath the url of the file\n\t * @return a String that contains the contents of the file\n\t * or null if the type is neither <b>local</b> nor <b>web</b>\n\t * @throws IOException\n\t */\n\tpublic String readFileIntoString(String filepath) throws IOException;\n\n}", "protected abstract Reader getReader() throws IOException;", "public StreamReader() {}", "protected void genReader() {\n\t\t\n\t\tfixReader_h();\n\t\tfixReader_cpp();\n\t}", "@Override\n public Reader create(Reader input) {\n String ptrStr;\n try {\n ptrStr = IOUtils.toString(input);\n } catch (IOException e) {\n throw new RuntimeException(\"Could not read source pointer from the input.\", e);\n }\n if (ptrStr.isEmpty()) {\n return new StringReader(\"\");\n }\n try {\n SourcePointer pointer = SourcePointer.parse(ptrStr);\n if (pointer == null) {\n throw new RuntimeException(\n String.format(\n Locale.US,\n \"Could not parse source pointer from field, check the format (value was: '%s')!\",\n ptrStr));\n }\n pointer.sources.forEach(this::validateSource);\n\n // Regions contained in source pointers are defined by byte offsets.\n // We need to convert these to Java character offsets so they can be used by the filter.\n toCharOffsets(pointer);\n\n Reader r;\n if (pointer.sources.isEmpty()) {\n throw new RuntimeException(\n \"No source files could be determined from pointer. \"\n + \"Is it pointing to files that exist and are readable? \"\n + \"Pointer was: \"\n + ptrStr);\n } else if (pointer.sources.size() > 1) {\n r =\n new MultiFileReader(\n pointer.sources.stream().map(s -> s.path).collect(Collectors.toList()));\n } else {\n r =\n new InputStreamReader(\n new FileInputStream(pointer.sources.get(0).path.toFile()), StandardCharsets.UTF_8);\n }\n\n List<SourcePointer.Region> charRegions =\n pointer.sources.stream().flatMap(s -> s.regions.stream()).collect(Collectors.toList());\n return new ExternalUtf8ContentFilter(new BufferedReader(r), charRegions, ptrStr);\n } catch (IOException e) {\n throw new RuntimeException(\n String.format(\n Locale.US, \"Error while reading external content from pointer '%s': %s\", ptrStr, e),\n e);\n }\n }", "public void load(File source);", "Read createRead();", "public ObjReader(String filename){\n file = filename;\n }", "private void readSourceData() throws Exception {\n\t\tthis.fileDataList = new ArrayList<String>();\n\t\tReader reader = new Reader(this.procPath);\n\t\treader.running();\n\t\tthis.fileDataList = reader.getFileDataList();\n\t}", "private static IIteratingChemObjectReader<IAtomContainer> getInputReader(\n ArgumentHandler argsH, IChemObjectBuilder builder) throws FileNotFoundException {\n DataFormat inputFormat = argsH.getInputFormat();\n IIteratingChemObjectReader<IAtomContainer> reader;\n String filepath = argsH.getInputFilepath();\n InputStream in = new FileInputStream(filepath);\n switch (inputFormat) {\n case SMILES: reader = new IteratingSMILESReader(in, builder); break;\n case SIGNATURE: reader = new IteratingSignatureReader(in, builder); break;\n case SDF: reader = new IteratingSDFReader(in, builder); break;\n case ACP: reader = new IteratingACPReader(in, builder); break;\n default: reader = null; error(\"Unrecognised format\"); break;\n }\n return reader;\n }", "protected void _openReader() throws IllegalActionException {\n\t\tfileOrURL.close();\n\n\t\t// Ignore if the fileOrUL is blank.\n\t\tif (fileOrURL.getExpression().trim().equals(\"\")) {\n\t\t\t_soundReader = null;\n\t\t\t_reachedEOF = true;\n\t\t} else {\n\t\t\t// Each read this many samples per channel when\n\t\t\t// _soundReader.getSamples() is called.\n\t\t\t// This value was chosen arbitrarily.\n\t\t\tint getSamplesArraySize = 64;\n\n\t\t\ttry {\n\t\t\t\t_soundReader = new SoundReader(fileOrURL.asURL(),\n\t\t\t\t\t\tgetSamplesArraySize);\n\t\t\t} catch (IOException ex) {\n\t\t\t\tString newFileOrURL = ((StringToken) fileOrURL.getToken())\n\t\t\t\t\t\t.stringValue();\n\t\t\t\tthrow new IllegalActionException(this, ex,\n\t\t\t\t\t\t\"Cannot open fileOrURL '\" + newFileOrURL + \"'.\");\n\t\t\t}\n\n\t\t\t// Get the number of audio channels.\n\t\t\t_channels = _soundReader.getChannels();\n\n\t\t\t// Begin immediately reading data so that we stay at\n\t\t\t// least one sample ahead. This is important so that\n\t\t\t// postfire() will return false when the last sample\n\t\t\t// in the file is encountered, rather than on the next\n\t\t\t// iteration.\n\t\t\ttry {\n\t\t\t\t// Read in audio data.\n\t\t\t\t_audioIn = _soundReader.getSamples();\n\t\t\t} catch (Exception ex) {\n\t\t\t\tthrow new IllegalActionException(this, ex,\n\t\t\t\t\t\t\"Unable to get samples from the file.\");\n\t\t\t}\n\n\t\t\t_sampleIndex = 0;\n\n\t\t\t// Check that the read was successful\n\t\t\tif (_audioIn != null) {\n\t\t\t\t_reachedEOF = false;\n\t\t\t} else {\n\t\t\t\t_reachedEOF = true;\n\t\t\t}\n\t\t}\n\t}", "public InstanceReader(String filename) throws FileNotFoundException{\n this.reader = new FileReader(filename);\n }", "public IncludeReader(BufferedReader reader) {\n\t\treaders.push(reader);\n\t\trootUri = null;\n\t\tsetupIncludePath();\n\t}", "void citire(FileReader f);", "public interface ReaderFromFile {\n\t\n\tpublic List<Data> readDataFromFile (String filename);\n}", "private String getInstanceFromFile() throws IOException{\n StringBuilder instance = new StringBuilder();\n boolean over = false;\n while(!over){\n char c = (char) reader.read();\n if(c == '\\n')\n over = true;\n else\n instance.append(c);\n }\n return instance.toString();\n }", "public Reader(){\n\n\t}", "private StringBuffer readFromFile(String src) {\n \t\tif (src == null)\n \t\t\treturn null;\n \t\tInputStream stream = null;\n \t\tStringBuffer content = new StringBuffer();\n \t\tBufferedReader reader = null;\n \t\ttry {\n \t\t\tURL url = new URL(src);\n \t\t\tstream = url.openStream();\n \t\t\t//TODO: Do we need to worry about the encoding here? e.g.:\n \t\t\t//reader = new BufferedReader(new InputStreamReader(stream,\n \t\t\t// ResourcesPlugin.getEncoding()));\n \t\t\treader = new BufferedReader(new InputStreamReader(stream));\n \t\t\twhile (true) {\n \t\t\t\tString line = reader.readLine();\n \t\t\t\tif (line == null) // EOF\n \t\t\t\t\tbreak; // done reading file\n \t\t\t\tcontent.append(line);\n \t\t\t\tcontent.append(IIntroHTMLConstants.NEW_LINE);\n \t\t\t}\n \t\t} catch (Exception exception) {\n \t\t\tLogger.logError(\"Error reading from file\", exception); //$NON-NLS-1$\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (reader != null)\n \t\t\t\t\treader.close();\n \t\t\t\tif (stream != null)\n \t\t\t\t\tstream.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tLogger.logError(\"Error closing input stream\", e); //$NON-NLS-1$\n \t\t\t\treturn null;\n \t\t\t}\n \t\t}\n \t\treturn content;\n \t}", "Yylex(java.io.Reader in) {\n this.zzReader = in;\n }", "Yylex(java.io.Reader in) {\n this.zzReader = in;\n }", "Yylex(java.io.Reader in) {\n this.zzReader = in;\n }", "String Reader(String FileName, Context context){\n FileInputStream inputStream = null;\n String Text = \"\";\n StringBuilder sb = null;\n try{\n //inputStream = context.openFileInput(FileName);\n inputStream = new FileInputStream(new File(FileName));\n InputStreamReader reader = new InputStreamReader(inputStream);\n BufferedReader buffRead = new BufferedReader(reader);\n sb = new StringBuilder();\n\n while ((Text = buffRead.readLine())!= null){\n sb.append(Text);\n sb.append(\"\\n\");\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return sb.toString();\n }", "Yylex(java.io.Reader in) {\n \n this.zzReader = in;\n }", "public static void reading(String fileName)\n {\n\n }", "protected abstract Object readFile(BufferedReader buf) throws IOException, FileParseException;", "public _SFMLexer(java.io.Reader in) {\n this.zzReader = in;\n }", "public BuilderMapperStage(BufferedReader reader) {\n this.reader = reader;\n }", "public fileReaderDesignated() throws FileNotFoundException{\n\t\tBufferedReader in=new BufferedReader(new FileReader(fileName));\n\t\ttry {\n\t\t\treadLargerTextFile(fileName);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void readFromFile( ) throws Exception;", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public void analyze(File sourceFile) throws CompilerException,IOException\r\n\t{\r\n\t\tthis.stream = new BufferedReader(new FileReader(sourceFile));\r\n\t\tif (!this.stream.markSupported())\r\n\t\t\tthrow new CompilerException(\"Mark method is not available,updating java should solve this.\");\r\n\t\t\r\n\t\tfor (;;)\r\n\t\t{\t\r\n\t\t\t/**\r\n\t\t\t * Info is read char by char until end of stream is reached.\r\n\t\t\t */\r\n\t\t\tint c = this.stream.read();\r\n\t\t\tif (c == -1)\r\n\t\t\t\tbreak;\r\n\t\t\tchar rchar = (char)c;\r\n\t\t\t\r\n\t\t\t/**\r\n\t\t\t * If current char is '\"' it starts reading string constant\r\n\t\t\t * it reads it until it is terminated by another '\"'\r\n\t\t\t */\r\n\t\t\tif (rchar == '\"') // string token.\r\n\t\t\t{\r\n\t\t\t\tStringBuilder builder = new StringBuilder();\r\n\t\t\t\tfor (;;)\r\n\t\t\t\t{\r\n\t\t\t\t\tint ca = this.stream.read();\r\n\t\t\t\t\tif (ca == -1)\r\n\t\t\t\t\t\tthrow new CompilerException(\"Unterminated string - \" + builder.toString());\r\n\t\t\t\t\tchar caa = (char)ca;\r\n\t\t\t\t\tif (caa == '\"')\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tbuilder.append(caa);\r\n\t\t\t\t}\r\n\t\t\t\tthis.tokens.Put(new StringToken(builder.toString()));\r\n\t\t\t}\r\n\t\t\t/**\r\n\t\t\t * If current char is \"'\" it starts reading char constant\r\n\t\t\t * it reads it until it is terminated by another \"'\"\r\n\t\t\t */\r\n\t\t\telse if (rchar == new String(\"'\").charAt(0)) // char token\r\n\t\t\t{\r\n\t\t\t\tStringBuilder builder = new StringBuilder();\r\n\t\t\t\tfor (;;)\r\n\t\t\t\t{\r\n\t\t\t\t\tint ca = this.stream.read();\r\n\t\t\t\t\tif (ca == -1)\r\n\t\t\t\t\t\tthrow new CompilerException(\"Unterminated character - \" + builder.toString());\r\n\t\t\t\t\tchar caa = (char)ca;\r\n\t\t\t\t\tif (caa == new String(\"'\").charAt(0))\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tbuilder.append(caa);\r\n\t\t\t\t}\r\n\t\t\t\tthis.tokens.Put(new CharToken(builder.toString()));\r\n\t\t\t}\r\n\t\t\t/**\r\n\t\t\t * If current char starts with number\r\n\t\t\t * it reads it until it encounters char which is not letter\r\n\t\t\t * and not number.\r\n\t\t\t */\r\n\t\t\telse if (isNumber(rchar))\r\n\t\t\t{\r\n\t\t\t\tStringBuilder builder = new StringBuilder();\r\n\t\t\t\tbuilder.append(rchar);\r\n\t\t\t\tfor (;;)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.stream.mark(1);\r\n\t\t\t\t\tint ca = this.stream.read();\r\n\t\t\t\t\tif (ca == -1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthis.stream.reset();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tchar caa = (char)ca;\r\n\t\t\t\t\tif (!isLetterOrNumber(caa))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthis.stream.reset();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbuilder.append(caa);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tthis.tokens.Put(new NumericToken(builder.toString()));\r\n\t\t\t}\r\n\t\t\t/**\r\n\t\t\t * If current char is symbol it reads it and converts to SymbolToken.\r\n\t\t\t */\r\n\t\t\telse if (isSymbol(rchar))\r\n\t\t\t{\r\n\t\t\t\t/**\r\n\t\t\t\t * We have exceptional check for /\r\n\t\t\t\t * because if next char is / or * , it means it's comment\r\n\t\t\t\t */\r\n\t\t\t\tboolean isComment = false;\r\n\t\t\t\tif (rchar == '/')\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.stream.mark(1);\r\n\t\t\t\t\tint data = this.stream.read();\r\n\t\t\t\t\tif (data == -1) {\r\n\t\t\t\t\t\tthis.stream.reset();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tchar second = (char)data;\r\n\t\t\t\t\t\tif (second == '/') {\r\n\t\t\t\t\t\t\tisComment = true;\r\n\t\t\t\t\t\t\tfor (;;) {\r\n\t\t\t\t\t\t\t\tdata = this.stream.read();\r\n\t\t\t\t\t\t\t\tif (data == -1)\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tsecond = (char)data;\r\n\t\t\t\t\t\t\t\tif (second == '\\n')\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (second == '*') {\r\n\t\t\t\t\t\t\tisComment = true;\r\n\t\t\t\t\t\t\tfor (;;) {\r\n\t\t\t\t\t\t\t\tdata = this.stream.read();\r\n\t\t\t\t\t\t\t\tif (data == -1)\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tsecond = (char)data;\r\n\t\t\t\t\t\t\t\tint thirdData = this.stream.read();\r\n\t\t\t\t\t\t\t\tif (thirdData == -1)\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tchar third = (char)thirdData;\r\n\t\t\t\t\t\t\t\tif (second == '*' && third == '/') {\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tthis.stream.reset();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (!isComment) {\r\n\t\t\t\t\tthis.tokens.Put(new SymbolToken(new StringBuilder().append(rchar).toString()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/**\r\n\t\t\t * If current char is letter then it reads it until it encounters char\r\n\t\t\t * which is not number or letter or symbol\r\n\t\t\t * When done reading letter it checks if it's keyword \r\n\t\t\t * If it is , it writes KeywordToken , else - NameToken\r\n\t\t\t */\r\n\t\t\telse if (isLetter(rchar))\r\n\t\t\t{\r\n\t\t\t\tStringBuilder builder = new StringBuilder();\r\n\t\t\t\tbuilder.append(rchar);\r\n\t\t\t\tfor (;;)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.stream.mark(1);\r\n\t\t\t\t\tint ca = this.stream.read();\r\n\t\t\t\t\tif (ca == -1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthis.stream.reset();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tchar caa = (char)ca;\r\n\t\t\t\t\tif (!isLetterOrNumber(caa))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthis.stream.reset();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbuilder.append(caa);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tthis.tokens.Put(isKeyword(builder.toString()) ? new KeywordToken(builder.toString()) : \r\n\t\t\t\t\t(isExpressionKeyword(builder.toString()) ? new ExpressionKeywordToken(builder.toString()) : new NameToken(builder.toString())));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tthis.stream.close();\r\n\t\t/**\r\n\t\t * Once we are done with reading and analyzing, flip the tokens bag\r\n\t\t * so it's prepared for reading.\r\n\t\t */\r\n\t\tthis.tokens.Flip();\r\n\t}", "private void readFromFile() {\n\t\tPath filePath = Paths.get(inputFile);\n\n\t\ttry (BufferedReader reader = Files.newBufferedReader(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tString line = null;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] splitLine = line.split(\",\");\n\t\t\t\tcurrentGen.setValue(Integer.parseInt(splitLine[0]),\n\t\t\t\t\t\tInteger.parseInt(splitLine[1]), true);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not find file provided.\");\n\t\t}\n\t}", "protected abstract InputStream getInStreamImpl(String filename) throws IOException;", "public interface FileReader {\n\n String read(String fileName);\n}", "FileLoader createJob(Reader reader);", "public CodeReader createCodeReaderForInclusion(String path) {\n \t\ttry {\n \t\t\ttry {\n\t\t\t\tFile file = new File(path);\n\t\t\t\tif (!file.exists())\n\t\t\t\t\treturn null;\n \t\t\t\tpath = new File(path).getCanonicalPath();\n \t\t\t} catch (IOException e) {\n \t\t\t\t// ignore and use the path we were passed in\n \t\t\t}\n \t\t\tPDOMFile file = pdom.getFile(path);\n \t\t\tif (file != null) {\n \t\t\t\t// Already got things from here, pass in a magic\n \t\t\t\t// buffer with the macros in it\n \t\t\t\tskippedHeaders.add(path);\n \t\t\t\tStringBuffer buffer = new StringBuffer();\n \t\t\t\tfillMacros(file, buffer, new HashSet());\n \t\t\t\tint length = buffer.length();\n \t\t\t\tchar[] chars = new char[length];\n \t\t\t\tbuffer.getChars(0, length, chars, 0);\n \t\t\t\treturn new CodeReader(path, chars);\n \t\t\t}\n \t\t} catch (CoreException e) {\n \t\t\tCCorePlugin.log(new CoreException(new Status(IStatus.ERROR,\n \t\t\t\t\tCCorePlugin.PLUGIN_ID, 0, \"PDOM Exception\", e)));\n \t\t}\n \t\t\n \t\treturn ParserUtil.createReader(path, null);\n \t}", "protected abstract Reader read() throws IOException;", "public SourceFile getSourceFile() throws InvalidFormatException;", "Lexico(java.io.Reader in) {\n this.zzReader = in;\n }", "public interface Source {\n /** NewTextSource creates a new Source from the input text string. */\n static Source newTextSource(String text) {\n return newStringSource(text, \"<input>\");\n }\n\n /** NewStringSource creates a new Source from the given contents and description. */\n static Source newStringSource(String contents, String description) {\n // Compute line offsets up front as they are referred to frequently.\n IntArrayList offsets = new IntArrayList();\n for (int i = 0; i <= contents.length(); ) {\n if (i > 0) {\n // don't add '0' for the first line, it's implicit\n offsets.add(i);\n }\n int nl = contents.indexOf('\\n', i);\n if (nl == -1) {\n offsets.add(contents.length() + 1);\n break;\n } else {\n i = nl + 1;\n }\n }\n\n return new SourceImpl(contents, description, offsets);\n }\n\n /** NewInfoSource creates a new Source from a SourceInfo. */\n static Source newInfoSource(SourceInfo info) {\n return new SourceImpl(\n \"\", info.getLocation(), info.getLineOffsetsList(), info.getPositionsMap());\n }\n\n /**\n * Content returns the source content represented as a string. Examples contents are the single\n * file contents, textbox field, or url parameter.\n */\n String content();\n\n /**\n * Description gives a brief description of the source. Example descriptions are a file name or ui\n * element.\n */\n String description();\n\n /**\n * LineOffsets gives the character offsets at which lines occur. The zero-th entry should refer to\n * the break between the first and second line, or EOF if there is only one line of source.\n */\n List<Integer> lineOffsets();\n\n /**\n * LocationOffset translates a Location to an offset. Given the line and column of the Location\n * returns the Location's character offset in the Source, and a bool indicating whether the\n * Location was found.\n */\n int locationOffset(Location location);\n\n /**\n * OffsetLocation translates a character offset to a Location, or false if the conversion was not\n * feasible.\n */\n Location offsetLocation(int offset);\n\n /**\n * NewLocation takes an input line and column and produces a Location. The default behavior is to\n * treat the line and column as absolute, but concrete derivations may use this method to convert\n * a relative line and column position into an absolute location.\n */\n Location newLocation(int line, int col);\n\n /** Snippet returns a line of content and whether the line was found. */\n String snippet(int line);\n}", "@Override\n public String generareSourcecodetoReadInputFromFile() throws Exception {\n String typeVar = VariableTypes.deleteStorageClasses(this.getType())\n .replace(IAbstractDataNode.REFERENCE_OPERATOR, \"\");\n // Ex: A::B, ::B. We need to get B\n if (typeVar.contains(\"::\"))\n typeVar = typeVar.substring(typeVar.lastIndexOf(\"::\") + 2);\n\n String loadValueStm = \"data.findStructure\" + typeVar + \"ByName\" + \"(\\\"\" + getVituralName() + \"\\\")\";\n\n String fullStm = typeVar + \" \" + this.getVituralName() + \"=\" + loadValueStm + SpecialCharacter.END_OF_STATEMENT;\n return fullStm;\n }", "PTB2TextLexer(java.io.Reader in) {\n this.zzReader = in;\n }", "public Yylex(java.io.Reader in) {\r\n this.zzReader = in;\r\n }", "public StatDataFileReader createReaderInstance() throws IOException{\n return createReaderInstance(null);\n }", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n return contentBuilder.toString();\n }", "@Override\n public Reader getReader(final Object templateSource, final String encoding) throws IOException {\n try (final Reader reader = delegate.getReader(templateSource, encoding)) {\n final String templateText = IOUtils.toString(reader);\n if (!templateText.contains(\"<#ftl\")) {\n return new StringReader(ESCAPE_PREFIX + templateText + ESCAPE_SUFFIX);\n } else {\n return new StringReader(templateText);\n }\n }\n }", "public Reader getReader() {\n return in;\n }", "public MiniLexer(java.io.Reader in, Handler handler) {\r\n super(handler);\n this.zzReader = in;\r\n }", "public interface ShapleyReader {\n Player[] read(String fileName) throws IOException;\n}", "Source getSrc();", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n }", "public void read() {\n\t\tthis.jtfSoundReaderServ = new JtfSoundReaderServ(this.audioFormat, this.targetDataLine);\n\t\tthis.readerThread = new Thread(this.jtfSoundReaderServ);\n\t\tthis.readerThread.start();\n\t}", "public MsxReader ( ) {\r\n\t\tsuper();\r\n\t}", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n }", "public BuilderMapperStage reader(BufferedReader reader) {\n if (reader == null) {\n throw new IllegalArgumentException(\"Reader argument is null.\");\n }\n\n return new BuilderMapperStage(reader);\n }", "@Override\n \tpublic DataHolder loadFile(IMonitor mon) throws ScanFileHolderException {\n \t\tBufferedReader reader = null;\n \n \t\ttry {\n \t\t\treader = new BufferedReader(new FileReader(fileName));\n \t\t\tString dataStr;\n \t\t\tString previousHeaderLine = \"\";\n \t\t\tboolean readingHeader = true;\n \t\t\tboolean readingFooter = false;\n \t\t\tList<?>[] columnData = null;\n \t\t\twhile ((dataStr = reader.readLine()) != null) {\n \n \t\t\t\t// ignore blank\n \t\t\t\tif (dataStr.isEmpty()) {\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \n \t\t\t\t// first block of commented out lines are the header\n \t\t\t\tif (dataStr.startsWith(COMMENT_PREFIX) && readingHeader) {\n \t\t\t\t\treadHeaderLine(dataStr);\n \t\t\t\t\tpreviousHeaderLine = dataStr;\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\treadingHeader = false;\n \n \t\t\t\t// next block of commented out lines after any break in comments will be the footer\n \t\t\t\tif (dataStr.startsWith(COMMENT_PREFIX) && !readingHeader) {\n \t\t\t\t\treadingFooter = true;\n \t\t\t\t\treadFooterLine(dataStr);\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \n \t\t\t\t// if get here then its data\n \t\t\t\tif (readingFooter) {\n \t\t\t\t\t// should not get here after reading a block of commented out lines for a second time: invalid\n \t\t\t\t\t// format\n \t\t\t\t\tthrow new ScanFileHolderException(\"Cannot read file\");\n \t\t\t\t}\n \n \t\t\t\t// the first time we get here, the previous line should have been the header\n \t\t\t\tif (columnData == null && datasetNames.size() == 0) {\n \t\t\t\t\tcolumnData = parseHeaderString(previousHeaderLine);\n \t\t\t\t}\n \n\t\t\t\tparseColumns(splitLine(dataStr.trim()), columnData);\n \t\t\t}\n \n \t\t\tString[] names = datasetNames.toArray(new String[]{});\n \t\t\tDataHolder result = new DataHolder();\n \t\t\ttry {\n \t\t\t\tconvertToDatasets(result, names, columnData, isStoreStringValues(), isUseImageLoaderForStrings(), (new File(this.fileName)).getParent());\n \t\t\t} catch (Exception e) {\n \t\t\t\tlogger.warn(e.getMessage());\n \t\t\t}\n \n \t\t\treturn result;\n \t\t} catch (Exception e) {\n \t\t\tthrow new ScanFileHolderException(\"XasAsciiLoader.loadFile exception loading \" + fileName, e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (reader != null)\n \t\t\t\t\treader.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tthrow new ScanFileHolderException(\"Cannot read file\", e);\n \t\t\t}\n \t\t}\n \t}", "public AnalizadorLexico2(java.io.Reader in) {\n this.zzReader = in;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic void testA01_tryWithResources02() {\n\t\tString fileName = OUTPUT_DIR+\"/p1/data.txt\";\n\t\tnew File(OUTPUT_DIR+\"/p1\").mkdirs();\n\t\tUtil.writeToFile(\"Hello Reader\", fileName);\n\t\tMap options = getCompilerOptions();\n\t\toptions.put(JavaCore.COMPILER_PB_POTENTIALLY_UNCLOSED_CLOSEABLE, JavaCore.ERROR);\n\t\trunTest(\n\t\t\tnew String[] {\n\t\t\"p1/TeamA01twr01.java\",\n\t\t\t\"package p1;\\n\" +\n\t\t\t\"import java.io.*;\\n\" +\n\t\t\t\"public team class TeamA01twr01 {\\n\" + \n\t\t\t\" protected class ReaderRole implements AutoCloseable playedBy TA01twr01 {\\n\" + \n\t\t\t\" public char[] content;\\n\" + \n\t\t\t\" protected void read12() throws IOException {\\n\" + \n\t\t\t\" content = new char[12];\\n\" + \n\t\t\t\" read(content);\\n\" + \n\t\t\t\" }\\n\" + \n\t\t\t\" void read(char[] chars) -> int read(char[] chars);\\n\" + \n\t\t\t\" close -> close;\\n\" + \n\t\t\t\" }\\n\" + \n\t\t\t\" void test(String filename) throws Exception {\\n\" + \n\t\t\t\" try (ReaderRole r = new ReaderRole(new TA01twr01(filename))) {\\n\" + \n\t\t\t\" r.read12();\\n\" + \n\t\t\t\" System.out.println(String.valueOf(r.content));\\n\" + \n\t\t\t\" }\\n\" + \n\t\t\t\" } \\n\" + \n\t\t\t\" public static void main(String[] args) throws Exception {\\n\" + \n\t\t\t\" new TeamA01twr01().test(\\\"\"+fileName+\"\\\");\\n\" + \n\t\t\t\" }\\n\" + \n\t\t\t\"}\",\n\t\"p1/TA01twr01.java\",\n\t\t\t\"package p1;\\n\" +\n\t\t\t\"import java.io.*;\\n\" +\n\t\t\t\"public class TA01twr01 extends FileReader {\\n\" + \n\t\t\t\" public TA01twr01(String fileName) throws IOException {\\n\" + \n\t\t\t\" super(fileName);\\n\" + \n\t\t\t\" }\\n\" + \n\t\t\t\" @Override\\n\" + \n\t\t\t\" public void close() {\\n\" + \n\t\t\t\" try {\\n\" + \n\t\t\t\" super.close();\\n\" + \n\t\t\t\" System.out.println(\\\"closed\\\");\\n\" + \n\t\t\t\" } catch (IOException ioe) {\\n\" + \n\t\t\t\" ioe.printStackTrace();\\n\" + \n\t\t\t\" }\\n\" + \n\t\t\t\" }\\n\" + \n\t\t\t\"}\",\n\t\t\t},\n\t\t\tfalse, // no comp err\n\t\t\t\"\",\n\t\t\t\"Hello Reader\\n\" +\n\t\t\t\"closed\",\n\t\t\t\"\",\n\t\t\ttrue, // force exec\n\t\t\tnull, // libs\n\t\t\tfalse, // should not flush\n\t\t\tnull, // vm args\n\t\t\toptions,\n\t\t\tnull, // requestor\n\t\t\ttrue);// skip javac\n\t}", "public static FileReader getReader() {\n return new CsvFileReader();\n }", "public XMLReader()\r\n {\r\n \r\n String filePathHead = \"\";\r\n\r\n Path inputPath = Paths.get(\"src\\\\dataFiles\");\r\n\r\n try\r\n {\r\n filePathHead = inputPath.toRealPath().toString();\r\n System.out.println(\"PATH: \" + inputPath.toRealPath().toString());\r\n }\r\n catch (NoSuchFileException x)\r\n {\r\n System.err.format(\"%s: no such\" + \" file or directory%n\", filePathHead);\r\n // Logic for case when file doesn't exist.\r\n }\r\n catch (IOException x)\r\n {\r\n System.err.format(\"%s%n\", x);\r\n // Logic for other sort of file error.\r\n }\r\n }", "public void doReads(Reader reader) throws IOException;", "public TranslatorReader(WikiContext context, Reader in) {\n\t\tinitialize(context, in);\n\t}", "public CogReader(Object input, Hints uHints) throws DataSourceException {\n super(input, uHints);\n\n // /////////////////////////////////////////////////////////////////////\n //\n // Set the source being careful in case it is an URL pointing to a file\n //\n // /////////////////////////////////////////////////////////////////////\n try {\n\n // setting source\n if (input instanceof URL) {\n final URL sourceURL = (URL) input;\n //source = URLs.urlToFile(sourceURL);\n source = sourceURL;\n }\n\n closeMe = true;\n\n // /////////////////////////////////////////////////////////////////////\n //\n // Get a stream in order to read from it for getting the basic\n // information for this coverage\n //\n // /////////////////////////////////////////////////////////////////////\n if ((source instanceof InputStream) || (source instanceof ImageInputStream))\n closeMe = false;\n if (source instanceof ImageInputStream) inStream = (ImageInputStream) source;\n else {\n\n inStreamSPI = ImageIOExt.getImageInputStreamSPI(source);\n LOGGER.severe(\"inStreamSPI: \" + inStreamSPI.getClass().getName());\n //inStreamSPI = new HttpCogImageInputStreamSpi();\n inStreamSPI = new CachingHttpCogImageInputStreamSpi();\n if (inStreamSPI == null)\n throw new IllegalArgumentException(\"No input stream for the provided source\");\n inStream =\n inStreamSPI.createInputStreamInstance(\n source, ImageIO.getUseCache(), ImageIO.getCacheDirectory());\n }\n if (inStream == null) {\n // Try to figure out what went wrong and provide some info to the user.\n if (source instanceof File) {\n File f = (File) source;\n if (!f.exists()) {\n throw new FileNotFoundException(\n \"File \" + f.getAbsolutePath() + \" does not exist.\");\n } else if (f.isDirectory()) {\n throw new IOException(\"File \" + f.getAbsolutePath() + \" is a directory.\");\n } else if (!f.canRead()) {\n throw new IOException(\"File \" + f.getAbsolutePath() + \" can not be read.\");\n }\n }\n\n // If we can't give anything more specific, throw the generic error.\n throw new IllegalArgumentException(\"No input stream for the provided source\");\n }\n\n // /////////////////////////////////////////////////////////////////////\n //\n // Informations about multiple levels and such\n //\n // /////////////////////////////////////////////////////////////////////\n getHRInfo(this.hints);\n\n // /////////////////////////////////////////////////////////////////////\n //\n // Coverage name\n //\n // /////////////////////////////////////////////////////////////////////\n coverageName = source instanceof File ? ((File) source).getName() : \"geotiff_coverage\";\n final int dotIndex = coverageName.lastIndexOf('.');\n if (dotIndex != -1 && dotIndex != coverageName.length())\n coverageName = coverageName.substring(0, dotIndex);\n\n } catch (IOException e) {\n throw new DataSourceException(e);\n } finally {\n // /////////////////////////////////////////////////////////////////////\n //\n // Freeing streams\n //\n // /////////////////////////////////////////////////////////////////////\n if (closeMe && inStream != null) //\n try {\n inStream.close();\n } catch (Throwable t) {\n }\n }\n }", "Object create(Reader reader) throws IOException, SAXException, ParserConfigurationException;", "public interface Reader {\n List<Fragment> readFile(String filePath) throws IOException;\n\n}", "T from(Source source);", "Lexer(java.io.Reader in) {\n this.zzReader = in;\n }", "Lexer(java.io.Reader in) {\n this.zzReader = in;\n }", "public BuilderMapperStage reader(Reader reader) {\n if (reader == null) {\n throw new IllegalArgumentException(\"Reader argument is null.\");\n }\n\n return reader(new BufferedReader(reader));\n }", "public Tass4Reader ( ) {\r\n\t\tsuper();\r\n\t}", "@Override\n protected void initializeReader() {\n this.fileList = new ArrayList<>();\n this.fileListPosition = new AtomicInteger(0);\n this.currentTextAnnotation = new AtomicReference<>();\n }", "_TurtleLexer(java.io.Reader in) {\n this.zzReader = in;\n }", "public void readFile();", "private BufferedReader getBufferedReader(String filename) {\n\t\tBufferedReader retval;\n\t\ttry{\n\t\t\tretval = createReader(filename);\n\t\t\tif (retval != null) {\n\t\t\t\treturn retval;\n\t\t\t} else {\n\t\t\t\tDebug.error(\"Jay3DModel\", \"Unable to load file: \" + filename);\n\t\t\t}\n\t\t}catch(NullPointerException e){\n\t\t\tDebug.error(\"Jay3DModel\", \"Unable to load file: \" + filename);\n\t\t}\n\t\treturn null;\n\t}", "public CBS(java.io.Reader in) {\n this.yy_reader = in;\n }", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(contentBuilder::append);\n }\n return contentBuilder.toString();\n }", "private void load(FileInputStream input) {\n\t\t\r\n\t}", "public Scanner( String filename ) throws IOException\n {\n sourceFile = new PushbackInputStream(new FileInputStream(filename));\n \n nextToken = null;\n }", "public FastaReader(InputStream ins) throws IOException{\n\t\tsuper(ins);\n\t}", "public Reader getReader()\n {\n return reader;\n }", "@Test\n public void testRead_Reader() {\n //System.out.println(\"read\");\n Reader source = new StringReader(testXMLDoc);\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n instance.read(source);\n //System.out.println(\"XML read OK\");\n source = new StringReader(testTurtleDoc);\n instance.read(source);\n //System.out.println(\"Turtle read OK\");\n }", "public LexerDracoScript(java.io.Reader in) {\n this.zzReader = in;\n }", "Lexer (Reader rdr) {\n inSource = new PushbackReader (rdr);\n lineno = 1;\n }", "public BufferedReader2(Reader in)\r\n\t{\r\n\t\tsuper(in);\r\n\t}", "public void testA01_tryWithResources01() {\n\t\tString fileName = OUTPUT_DIR+\"/p1/data.txt\";\n\t\tnew File(OUTPUT_DIR+\"/p1\").mkdirs();\n\t\tUtil.writeToFile(\"Hello Reader\", fileName);\n\t\trunConformTest(\n\t\t\tfalse, // should not flush\n\t\t\tnew String[] {\n\t\t\"p1/TeamA01twr01.java\",\n\t\t\t\"package p1;\\n\" +\n\t\t\t\"import java.io.*;\\n\" +\n\t\t\t\"public team class TeamA01twr01 {\\n\" + \n\t\t\t\" protected class ReaderRole implements AutoCloseable playedBy TA01twr01 {\\n\" + \n\t\t\t\" public char[] content;\\n\" + \n\t\t\t\" protected void read12() throws IOException {\\n\" + \n\t\t\t\" content = new char[12];\\n\" + \n\t\t\t\" read(content);\\n\" + \n\t\t\t\" }\\n\" + \n\t\t\t\" void read(char[] chars) -> int read(char[] chars);\\n\" + \n\t\t\t\" close -> close;\\n\" + \n\t\t\t\" }\\n\" + \n\t\t\t\" void test(TA01twr01 bfr) throws Exception {\\n\" + \n\t\t\t\" try (ReaderRole r = new ReaderRole(bfr)) {\\n\" + \n\t\t\t\" r.read12();\\n\" + \n\t\t\t\" System.out.println(String.valueOf(r.content));\\n\" + \n\t\t\t\" }\\n\" + \n\t\t\t\" } \\n\" + \n\t\t\t\" public static void main(String[] args) throws Exception {\\n\" + \n\t\t\t\" new TeamA01twr01().test(new TA01twr01(\\\"\"+fileName+\"\\\"));\\n\" + \n\t\t\t\" }\\n\" + \n\t\t\t\"}\",\n\t\"p1/TA01twr01.java\",\n\t\t\t\"package p1;\\n\" +\n\t\t\t\"import java.io.*;\\n\" +\n\t\t\t\"public class TA01twr01 extends FileReader {\\n\" + \n\t\t\t\" public TA01twr01(String fileName) throws IOException {\\n\" + \n\t\t\t\" super(fileName);\\n\" + \n\t\t\t\" }\\n\" + \n\t\t\t\" @Override\\n\" + \n\t\t\t\" public void close() {\\n\" + \n\t\t\t\" try {\\n\" + \n\t\t\t\" super.close();\\n\" + \n\t\t\t\" System.out.println(\\\"closed\\\");\\n\" + \n\t\t\t\" } catch (IOException ioe) {\\n\" + \n\t\t\t\" ioe.printStackTrace();\\n\" + \n\t\t\t\" }\\n\" + \n\t\t\t\" }\\n\" + \n\t\t\t\"}\",\n\t\t\t},\n\t\t\t\"----------\\n\" +\n\t\t\t\"1. WARNING in p1\\\\TeamA01twr01.java (at line 14)\\n\" +\n\t\t\t\"\ttry (ReaderRole r = new ReaderRole(bfr)) {\\n\" +\n\t\t\t\"\t ^^^^^^^^^^^^^^^^^^^\\n\" +\n\t\t\t\"Argument to lifting constructor ReaderRole(TA01twr01) is not a freshly created base object (of type p1.TA01twr01); may cause a DuplicateRoleException at runtime (OTJLD 2.4.1(c)).\\n\" +\n\t\t\t\"----------\\n\",\n\t\t\t\"Hello Reader\\n\" +\n\t\t\t\"closed\",\n\t\t\t\"\",\n\t\t\tnull);\n\t}", "@Override\n public BufferedReader requestContentTxtFile(Context context) throws IOException{\n InputStream ins = context.getResources().openRawResource(R.raw.timferris);\n BufferedReader reader = new BufferedReader(new InputStreamReader(ins));\n Log.d(\"teste leitura\", \"Model return after reading has been reached\");\n\n return reader;\n }", "DatasetFileService getSource();", "public AnalizadorLexicoArchivo(java.io.Reader in) {\n this.zzReader = in;\n }", "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 }", "public Lexico(java.io.Reader in) {\n this.zzReader = in;\n }", "public Lexico(java.io.Reader in) {\n this.zzReader = in;\n }" ]
[ "0.69944555", "0.6675886", "0.66525376", "0.6650528", "0.6468629", "0.6434816", "0.640259", "0.62631935", "0.6235539", "0.6229513", "0.62225986", "0.60771877", "0.6037908", "0.6000307", "0.5979552", "0.5957619", "0.5953384", "0.5937985", "0.5927591", "0.5915736", "0.5915155", "0.5890136", "0.58555526", "0.58291996", "0.5807818", "0.5807818", "0.5807818", "0.58002895", "0.57947373", "0.5785981", "0.578393", "0.5768396", "0.5750647", "0.57475626", "0.5745558", "0.5741818", "0.57383937", "0.5732752", "0.5718626", "0.5713517", "0.5696181", "0.56948507", "0.56924784", "0.5685047", "0.5678755", "0.5678627", "0.5676123", "0.56758595", "0.56713724", "0.567045", "0.5667592", "0.5663634", "0.56630564", "0.5660015", "0.5659734", "0.5641571", "0.56401825", "0.56342125", "0.5631669", "0.5629456", "0.56262153", "0.562451", "0.56243247", "0.5610542", "0.560148", "0.55943835", "0.5585598", "0.5581204", "0.55804354", "0.5575331", "0.5571751", "0.55659497", "0.55645305", "0.55645305", "0.5563024", "0.55520386", "0.5546544", "0.5545911", "0.5541463", "0.5535393", "0.5532161", "0.55312014", "0.55302685", "0.55270135", "0.5524243", "0.5521194", "0.5519547", "0.5517197", "0.5506457", "0.55008525", "0.5500606", "0.5500143", "0.5491837", "0.5488893", "0.5484263", "0.5482153", "0.5482153" ]
0.567998
47
EFFECTS: reads Tamagotchi from file and returns it; throws IOException if an error occurs while attempting to read data from file
public Tamagotchi read() throws IOException { String jsonData = readFile(source); JSONObject jsonObject = new JSONObject(jsonData); return tamagotchiToJson(jsonObject); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readFile();", "public void readFromFile() {\n\n\t}", "public abstract void readFromFile( ) throws Exception;", "public void read() throws IOException {\n\t\tString path = \"/Users/amit/Documents/songs/A.mp3\";\n\t\tFile file = new File(path);\n\t\tfinal int EOF = -1;\n\t\t\n\t\tif(file.exists()) {\n\t\t\tSystem.out.println(\"Exist...\");\n\t\tFileInputStream fs = new FileInputStream(path);\n\t\tBufferedInputStream bs = new BufferedInputStream(fs);\n\t\tlong startTime = System.currentTimeMillis();\n\t\tint singleByte = bs.read(); // read single byte\n\t\twhile(singleByte!=EOF) {\n\t\t\t//System.out.print((char)singleByte);\n\t\t\t singleByte = bs.read();\n\t\t}\n\t\tlong endTime = System.currentTimeMillis();\n\t\tSystem.out.println(\"Total Time Taken \"+(endTime-startTime)+\"ms\");\n\t\tbs.close();\n\t\tfs.close();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"File Not Exist\");\n\t\t}\n\t\t\n\t}", "protected abstract void readFile();", "public void fileRead(String filename) throws IOException;", "public String call() throws IOException {\n try {\n p2c.readAndWriteFile(file);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "private BufferedReader readFile( String geneFile ) throws IOException {\n File f = new File( geneFile );\n if ( !f.canRead() ) {\n throw new IOException( \"Cannot read from \" + geneFile );\n }\n BufferedReader b = new BufferedReader( new FileReader( geneFile ) );\n log.info( \"File \" + geneFile + \" read successfully\" );\n return b;\n\n }", "@Test\n public void testReadTtbinFile_UsbFile()\n {\n System.out.println(\"TEST: readTtbinFile\");\n UsbFile file = new UsbFile(0xFFFFFFFF, ttbinFileData.length, ttbinFileData);\n TomTomReader instance = TomTomReader.getInstance();\n Activity result = instance.readTtbinFile(file);\n \n testContentsNonSmoothed(result);\n }", "private String readFile(String fileName) {\n//Initialize\nString line = null;\nString allContent = \"\";\nBufferedReader fileReader = null;\n \nwhile (true) {\ntry {\nfileReader = new BufferedReader (new FileReader (fileName));\n \n//Replace tags with indicated content\nwhile((line = fileReader.readLine()) != null) {\nline = replaceTags(line);\nallContent += line;\n}\n} catch (Exception e) {\nSystem.err.println(\"Read error: \"+e);\nbreak;\n//Close BufferedReader if initialized\n}//end catch\nbreak;\n}//end while loop\n \nfileReadSuccessful = true;\nreturn allContent;\n}", "public String[] openFile() throws IOException\n\t{\n\t\t//Creates a FileReader and BufferedReader to read from the file that you pass it\n\t\tFileReader fr = new FileReader(path);\n\t\tBufferedReader textReader = new BufferedReader(fr);\n\t\t\n\t\t//Set the variable to the number of lines in the text file through the function in this class that is defined below\n\t\tnumberOfLines = readLines();\n\t\t//Creates an array of strings with size of how many lines of data there are in the file\n\t\tString[] textData = new String[numberOfLines];\n\t\t\n\t\t//Loop to read the lines from the text file for the song data\n\t\tfor (int i = 0; i < numberOfLines; i++)\n\t\t{\n\t\t\t//Read data from song file and into the string list\n\t\t\ttextData[i] = textReader.readLine();\n\t\t}\n\t\t\n\t\t//Close the BufferedReader that was opened\n\t\ttextReader.close();\n\t\t\n\t\t//Return the read data from the text file in the form of a string array\n\t\treturn textData;\n\t}", "@Override\n public Ini read(File file) throws IOException {\n try ( Reader reader = new FileReader(file)) {\n return read(reader);\n }\n }", "public T read() throws IOException;", "TraceList read(File file) throws IOException;", "private String readFile(File file){\n StringBuilder stringBuffer = new StringBuilder();\n BufferedReader bufferedReader = null;\n\n try {\n\n bufferedReader = new BufferedReader(new FileReader(file));\n\n String text;\n while ((text = bufferedReader.readLine()) != null) {\n stringBuffer.append(text.replaceAll(\"\\t\", miTab) + \"\\n\");\n }\n\n } catch (FileNotFoundException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n try {\n bufferedReader.close();\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n return stringBuffer.toString();\n }", "void citire(FileReader f);", "public void fileReader2(String fin) throws IOException {\r\n Decoder decoder = new Decoder();\r\n\r\n Map<String,String> dicionario = new HashMap<String,String>();\r\n Map<String,Integer> colecaoMetais = new HashMap<String,Integer>();\r\n BufferedReader br;\r\n String alien_Sound_1,alien_Sound_2,alien_Sound_3,alien_Sound_4;\r\n\r\n try { \r\n br = new BufferedReader(new FileReader(fin));\r\n \r\n int numLinhas = 0;\r\n String line = null;\r\n while ((line = br.readLine()) != null) {\r\n\r\n /*\r\n Read up to 7 lines of Notations\r\n and saves it on a HashMap.\r\n */\r\n if(((line.substring(5,6)).equals(\"is\")) && numLinhas<7){ \r\n String AlienLang = line.substring(0,4);\r\n String RomanNumeral = line.substring(8);\r\n dicionario.put(AlienLang,RomanNumeral);\r\n System.out.println(AlienLang+\" \"+RomanNumeral);\r\n }\r\n \r\n \r\n /*\r\n Read the info given: unidades, creditos and the type of the metal.\r\n And it saves the metal and its value in a HashMap.\r\n */\r\n else if(line.charAt(line.length()-1) != '?' && (line.substring(0,6).equals(\"quanto \")==false) || line.substring(0,6).equals(\"quantos\")==false){\r\n int unidadesInt = decoder.romanToInt((dicionario.get(line.substring(0,3)) + dicionario.get(line.substring(5,8))));\r\n String metal = dicionario.get(line.substring(10,13));\r\n int creditos = decoder.romanToInt(dicionario.get(line.substring(20,21))); \r\n int metalValor = creditos/unidadesInt;\r\n\r\n colecaoMetais.put(metal,metalValor);\r\n System.out.println(metal +\" \"+ metalValor);\r\n }\r\n\r\n /*\r\n Recongnizes that this a question \"quanto vale\"\r\n and calculates it with the numbers given.\r\n if the alien numbers given are not known it will print an error messege.\r\n */\r\n else if(numLinhas>7 && (line.substring(0,6).equals(\"quanto \"))){\r\n alien_Sound_1 = line.substring(12,15);\r\n alien_Sound_2 = line.substring(17,20);\r\n alien_Sound_3 = line.substring(22,25);\r\n alien_Sound_4 = line.substring(27,30);\r\n\r\n if(((dicionario.containsKey(alien_Sound_1) == false || \r\n (dicionario.containsKey(alien_Sound_2)) == false) || \r\n (dicionario.containsKey(alien_Sound_3)) == false) ||\r\n (dicionario.containsKey(alien_Sound_4)) == false){\r\n System.out.println(\"I have no idea what you are talking about\");\r\n\r\n }\r\n\r\n int finalCreditos = decoder.romanToInt(dicionario.get(alien_Sound_1)\r\n + (dicionario.get(alien_Sound_2))\r\n + (dicionario.get(alien_Sound_3)\r\n + (dicionario.get(alien_Sound_4))));\r\n\r\n System.out.println(alien_Sound_1 +\" \"+ alien_Sound_2 +\" \"+ alien_Sound_3 +\" \"+ alien_Sound_4 +\" is \"+ finalCreditos);\r\n }\r\n /*\r\n Recongnizes that this a question \"quantos créditos são\"\r\n and calculates it with the numbers and kind of metal given.\r\n if the alien numbers given or the metal are not known it will print an error messege.\r\n */\r\n if(line.charAt(line.length()-1) == '?' && (line.substring(0,6).equals(\"quantos\"))){\r\n alien_Sound_1 = line.substring(21,24);\r\n alien_Sound_2 = line.substring(26,29);\r\n alien_Sound_3 = line.substring(31,34);\r\n\r\n if(((dicionario.containsKey(alien_Sound_1) == false) || \r\n (dicionario.containsKey(alien_Sound_2) == false) || \r\n (colecaoMetais.containsKey(alien_Sound_3) == false))){\r\n System.out.println(\"I'm sorry Dave, I'm afraid I can't do that\");\r\n }\r\n\r\n int finalUnidades = decoder.romanToInt(dicionario.get(alien_Sound_1) + (dicionario.get(alien_Sound_2)));\r\n int valorMetal = colecaoMetais.get(alien_Sound_3);\r\n int finalMetalValue = finalUnidades * valorMetal;\r\n\r\n System.out.println(alien_Sound_1 +\" \"+ alien_Sound_2 +\" \"+ alien_Sound_3 +\" is \"+ finalMetalValue);\r\n }\r\n\r\n numLinhas++;\r\n \r\n }\r\n br.close();\r\n\r\n }\r\n catch(IOException e) \r\n { \r\n e.printStackTrace(); \r\n } \r\n \r\n }", "public static String loadAFileToStringDE3(File f) throws IOException {\n BufferedReader br = null;\n String ret = null;\n try {\n br = new BufferedReader(new FileReader(f));\n String line = null;\n StringBuffer sb = new StringBuffer((int)f.length());\n while( (line = br.readLine() ) != null ) {\n sb.append(line);\n }\n ret = sb.toString();\n } finally {\n if(br!=null) {try{br.close();} catch(Exception e){} }\n }\n// long endTime = System.currentTimeMillis();\n// System.out.println(\"方法3用时\"+ (endTime-beginTime) + \"ms\");\n return ret; \n }", "public DataShuffling(File file) throws IOException {\n time = System.nanoTime();\n data = new String[7515];\n BufferedReader br = new BufferedReader(new FileReader(\"ErdosCA.txt\"));\n\n // This readLine() is used to skip the first line, which is just metadata\n br.readLine();\n for (int i = 0; i < data.length; i++) {\n data[i] = br.readLine();\n }\n\n br.close();\n time = System.nanoTime() - time;\n System.out.println(\"Time to read from file (in ns): \" + time);\n }", "@Test\n\tpublic void testParseTagFile_Success() throws IOException \n\t{\n\t\tString expected = \"aus-capitals.csv|8\";\t\t\n\t\t\n\t\t// Act\n\t\t// need to be modified the hardcoded path with mocking\n\t\tString actual = TagFileParser.readTagFile(\"D:\\\\Learning\\\\testlocation\\\\aus-capitals.tag\");\n\t\t\n\t\t// Assert\t\t\n\t\tassertEquals(expected, actual);\t\n\t}", "public void readCategoryFile(File file) {\n\ttry (BufferedReader br = new BufferedReader(new FileReader(file)))\n\t{\n\t\tString sCurrentLine;\n\t\tString [] lineElements;\n\t\t\n\t\tint row = 0;\n\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t//System.out.println(sCurrentLine);\n\t\t\t\n\t\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\t\t//System.out.println(lineElements.length);\n\t\t\tfor (int column = 0; column < lineElements.length; column++) {\t\t\n\t\t\t\t//System.out.println(column);\n\t\t\t\tint category = Integer.parseInt(lineElements[column]);\n\t\t\t\t//System.out.println(vertices.size());\n\t\t\t\tPOI v1 = vertices.get(row);\n\t\t\t\tPOI v2 = vertices.get(column);\n\t\t\t\t\n\t\t\t\tArc arc = getArc(v1, v2);\n\t\t\t\tif (!distMtx) {\n\t\t\t\t\tdouble distance = v1.distanceTo(v2);\n\t\t\t\t\tif (data == Dataset.VERBEECK) {\n\t\t\t\t\t\tdistance = distance / 5.0;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tdistance = distance / 10.0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tarc.setLength(distance);\n\t\t\t\t}\n\t\t\t\tarc.setCategory(category);\n\t\t\t\tif (distConstraint) {\n\t\t\t\t\tarc.setSpeedTable(allOneSpeedTable);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tarc.setSpeedTable(speedTables.get(category));\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\trow ++;\n\t\t}\n\t} catch (IOException e) {\n\t\te.printStackTrace();\n\t}\n}", "protected abstract E readFile() throws Exception;", "private static void readFile(File file) throws IOException {\n try (FileInputStream is = new FileInputStream(file)) {\n byte[] buf = new byte[CHUNK];\n int count = 0;\n long t = System.nanoTime();\n for (int i = 0; i < N/CHUNK; i++) {\n int c = is.read(buf);\n if (c == -1) {\n System.out.println(\"EOF\");\n break;\n } else if (c < 10) {\n System.out.println(\"PARTIAL\");\n break;\n }\n count += c;\n }\n System.out.println((System.nanoTime() - t) / 1_000_000 + \" ms \" + count + \" bytes\");\n }\n }", "public String readDigraphFile() throws EmptyFileContentsException, InvalidFileContentsException, IOException {\n String fileText = FileUtils.readFileToString(digraphFile);\n\n if (fileText == null || fileText.length() == 0) {\n throw new EmptyFileContentsException(\"File contents are empty.\");\n }\n\n return parse(fileText);\n }", "public String[] getFile() throws IOException {\n\t\n\t\n\ttry {\n\tFileReader reader = new FileReader(path);\n\tBufferedReader textReader = new BufferedReader(reader); // creates buffered file reader again\n\t\n\tint numberOfLines = getLines(); // calls the method above to know how many lines there are\n\tString[ ] textData = new String[numberOfLines]; //creates an array the size of the amount of lines the file has\n\t\n\tfor (int i=0; i < numberOfLines; i++) {\n\t\ttextData[ i ] = textReader.readLine(); // go through file and read each line into its own array space\n\t\t}\n\t\n\ttextReader.close( ); //reader is done\n\treturn textData; // return array\n\t} catch (IOException e) {\n\t\tString[] exceptionString = new String[1];\n\t\texceptionString[0] = \"nothing\";\n\t\treturn exceptionString;\n\t}\n}", "public Tag readTag() throws IOException {\n/* 78 */ char[] arrayOfChar = new char[1024];\n/* */ \n/* 80 */ int j = -1;\n/* */ \n/* 82 */ Integer integer1 = null;\n/* 83 */ Integer integer2 = null;\n/* */ \n/* 85 */ int i = read(2);\n/* 86 */ if (i < 0) {\n/* 87 */ throw new IOException(\"stop.\");\n/* */ }\n/* 89 */ if (i > arrayOfChar.length) {\n/* 90 */ throw new IOException(\"Invalid tag length.\");\n/* */ }\n/* 92 */ while (i > 0) {\n/* 93 */ j = read(2);\n/* 94 */ int k = read(2);\n/* 95 */ switch (j) {\n/* */ case 1:\n/* 97 */ integer1 = new Integer(read(4));\n/* 98 */ integer2 = new Integer(read(4));\n/* */ break;\n/* */ } \n/* */ \n/* 102 */ i -= 4 + k;\n/* */ } \n/* 104 */ return new Tag(i, j, integer1, integer2);\n/* */ }", "public String readtexto() {\n String texto=\"\";\n try\n {\n BufferedReader fin =\n new BufferedReader(\n new InputStreamReader(\n openFileInput(\"datos.json\")));\n\n texto = fin.readLine();\n fin.close();\n }\n catch (Exception ex)\n {\n Log.e(\"Ficheros\", \"Error al leer fichero desde memoria interna\");\n }\n\n\n\n return texto;\n }", "@Override\n public BufferedReader requestContentTxtFile(Context context) throws IOException{\n InputStream ins = context.getResources().openRawResource(R.raw.timferris);\n BufferedReader reader = new BufferedReader(new InputStreamReader(ins));\n Log.d(\"teste leitura\", \"Model return after reading has been reached\");\n\n return reader;\n }", "public static double[] readRHat(File f)\n/* */ throws Exception\n/* */ {\n/* 78 */ throw new Error(\"Unresolved compilation problem: \\n\");\n/* */ }", "public static void main(String[] args) throws IOException {\n\t\tRandomAccessFile file = new RandomAccessFile(\"C:/Users/Administrator/Desktop/cs.txt\", \"rw\");\n\t\tFileChannel channle = file.getChannel();\n\t\tByteBuffer buffer = ByteBuffer.allocate(10);\n\t\tint readByte = channle.read(buffer);\n\t\twhile (readByte > -1) {\n\t\t\tSystem.out.println(\"readLength:\" + readByte);\n\t\t\twhile (buffer.hasRemaining()) {\n\t\t\t\tSystem.out.println(buffer.get());\n\t\t\t}\n\t\t\tbuffer.clear();\n\t\t\treadByte = channle.read(buffer);\n\t\t}\n\t}", "@Test\n public void testReadTtbinFile_String()\n {\n System.out.println(\"TEST: readTtbinFile\");\n String fileName = \"src/test/resources/test.ttbin\";\n TomTomReader instance = TomTomReader.getInstance();\n Activity expResult = null;\n Activity result = instance.readTtbinFile(fileName);\n\n testContentsNonSmoothed(result);\n }", "protected abstract Object readFile(BufferedReader buf) throws IOException, FileParseException;", "@SuppressWarnings(\"unchecked\")\n\tprivate void readFromFile() throws IOException, ClassNotFoundException {\n\t\ttry {\n\t\t\tInputStream file = new FileInputStream(pathName);\n\n\t\t\tInputStream buffer = new BufferedInputStream(file);\n\n\t\t\tObjectInput input = new ObjectInputStream(buffer);\n\n\t\t\ttagToImg = (Map<String, HashSet<String>>) input.readObject();\n\n\t\t\tinput.close();\n\t\t\tfile.close();\n\t\t} catch (EOFException e) {\n\t\t\ttagToImg = new HashMap<String, HashSet<String>>();\n\t\t} catch (InvalidClassException e) {\n\t\t\tSystem.out.println(\"file doesnt match the type\");\n\t\t}\n\t}", "private static void readFile() throws IOException\r\n\t{\r\n\t\tString s1;\r\n\t\tFileReader fr = new FileReader(filename);\r\n\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\t\r\n\t\tSystem.out.println(\"\\ndbs3.txt File\");\r\n\t\twhile ((s1 = br.readLine())!=null)\r\n\t\t{\r\n\t\t\tSystem.out.println(s1);\r\n\t\t}//end while loop to read files\r\n\t\t\r\n\t\tbr.close();//close the buffered reader\r\n\t}", "int load( String geneFile, String taxonName ) throws Exception;", "private void posRead() throws IOException {\n\t\tFile file = new File(fullFileName());\n\t\tString line;\n\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\n\t\tStringBuffer fileText = new StringBuffer();\n\t\twhile((line = reader.readLine()) != null) {\n\t\t\tStringTokenizer st = new StringTokenizer(line);\n\t\t\twhile (st.hasMoreTokens()) {\n \t\tString tokenAndPos = st.nextToken();\n \t\tint slashIndex = tokenAndPos.lastIndexOf('/');\n \t\tif (slashIndex <= 0) throw new IOException(\"invalid data\");\n \t\tString token = tokenAndPos.substring(0,slashIndex);\n \t\tString pos = tokenAndPos.substring(1+slashIndex).intern();\n \t\tint start = this.length();\n \t\tthis.append(token);\n \t\tif (st.hasMoreTokens())\n \t\t\tthis.append(\" \");\n \t\telse\n \t\t\tthis.append(\" \\n\");\n \t\tint end = this.length();\n \t\tSpan span = new Span(start,end);\n \t\tthis.annotate(\"token\", span, new FeatureSet());\n \t\tthis.annotate(\"constit\", span, new FeatureSet(\"cat\", pos));\n \t}\n\t\t}\n\t}", "public String readFromFile() throws IOException {\n return br.readLine();\n }", "public void testRead() throws IOException\n {\n File file;\n Pic pic;\n\n file = new File(\"src/test/resources/pic/test.pic\");\n pic = Pic.read(new FileInputStream(file), 288, 128);\n assertNotNull(pic);\n assertEquals(new File(\"src/test/resources/pic/test.png\"), pic);\n }", "public static void processData() {\n\t\tString dirName = \"C:\\\\research_data\\\\mouse_human\\\\homo_b47_data\\\\\";\r\n\t//\tString GNF1H_fName = \"GNF1H_genes_chopped\";\r\n\t//\tString GNF1M_fName = \"GNF1M_genes_chopped\";\r\n\t\tString GNF1H_fName = \"GNF1H\";\r\n\t\tString GNF1M_fName = \"GNF1M\";\r\n\t\tString mergedValues_fName = \"GNF1_merged_expression.txt\";\r\n\t\tString mergedPMA_fName = \"GNF1_merged_PMA.txt\";\r\n\t\tString discretizedMI_fName = \"GNF1_discretized_MI.txt\";\r\n\t\tString discretizedLevels_fName = \"GNF1_discretized_levels.txt\";\r\n\t\tString discretizedData_fName = \"GNF1_discretized_data.txt\";\r\n\t\t\r\n\t\tboolean useMotifs = false;\r\n\t\tMicroArrayData humanMotifs = null;\r\n\t\tMicroArrayData mouseMotifs = null;\r\n\t\t\r\n\t\tMicroArrayData GNF1H_value = new MicroArrayData();\r\n\t\tMicroArrayData GNF1H_PMA = new MicroArrayData();\r\n\t\tGNF1H_PMA.setDiscrete();\r\n\t\tMicroArrayData GNF1M_value = new MicroArrayData();\r\n\t\tMicroArrayData GNF1M_PMA = new MicroArrayData();\r\n\t\tGNF1M_PMA.setDiscrete();\r\n\t\t\r\n\t\ttry {\r\n\t\t/*\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.txt\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.txt\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma\"); */\r\n\t\t/*\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.txt.homob44\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma.txt.homob44\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.txt.homob44\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma.txt.homob44\"); */\r\n\t\t\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.snco.txt\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma.sn.txt\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.snco.txt\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma.sn.txt\");\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\tif (useMotifs) {\r\n\t\t\thumanMotifs = new MicroArrayData();\r\n\t\t\tmouseMotifs = new MicroArrayData();\r\n\t\t\tloadMotifs(humanMotifs,GNF1H_value.geneNames,mouseMotifs,GNF1M_value.geneNames);\r\n\t\t}\r\n\t\t\r\n\t\t// combine replicates in PMA values\r\n\t\tint[][] H_PMA = new int[GNF1H_PMA.numRows][GNF1H_PMA.numCols/2];\r\n\t\tint[][] M_PMA = new int[GNF1M_PMA.numRows][GNF1M_PMA.numCols/2];\r\n\t\t\r\n\t\tint i = 0;\r\n\t\tint j = 0;\r\n\t\tint k = 0;\r\n\t\tint v = 0;\r\n\t\tk = 0;\r\n\t\tj = 0;\r\n\t\twhile (j<GNF1H_PMA.numCols-1) {\r\n\t\t\tfor (i=0;i<H_PMA.length;i++) {\r\n\t\t\t\tv = 0;\r\n\t\t\t//\tif (GNF1H_PMA.dvalues[i][j] > 0 & GNF1H_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\tif (GNF1H_PMA.dvalues[i][j] > 0 | GNF1H_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\t\tv = 1;\r\n\t\t\t\t}\r\n\t\t\t\tH_PMA[i][k] = v;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t\tj = j + 2;\r\n\t\t}\r\n\t\t\r\n\t\tj = 0;\r\n\t\tk = 0;\r\n\t\twhile (j<GNF1M_PMA.numCols-1) {\r\n\t\t\tfor (i=0;i<M_PMA.length;i++) {\r\n\t\t\t\tv = 0;\r\n\t\t\t//\tif (GNF1M_PMA.dvalues[i][j] > 0 & GNF1M_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\tif (GNF1M_PMA.dvalues[i][j] > 0 | GNF1M_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\t\tv = 1;\r\n\t\t\t\t}\r\n\t\t\t\tM_PMA[i][k] = v;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t\tj = j + 2;\r\n\t\t}\r\n\t\t\r\n\t\tint numMatched = 31;\r\n\t\t\r\n\t/*\tGNF1H_value.numCols = numMatched;\r\n\t\tGNF1M_value.numCols = numMatched; */\r\n\t\t\r\n\t\tint[][] matchPairs = new int[numMatched][2];\r\n\t\tfor(i=0;i<numMatched;i++) {\r\n\t\t\tmatchPairs[i][0] = i;\r\n\t\t\tmatchPairs[i][1] = i + GNF1H_value.numCols;\r\n\t\t}\r\n\t\t\r\n\t//\tDiscretizeAffyData H_discretizer = new DiscretizeAffyData(GNF1H_value.values,H_PMA,0);\r\n\t//\tH_discretizer.adjustIntensities();\r\n\t\ttransformRelativeAbundance(GNF1H_value.values,H_PMA,GNF1H_value.numCols);\r\n\t\t\r\n\t//\tDiscretizeAffyData M_discretizer = new DiscretizeAffyData(GNF1M_value.values,M_PMA,0);\r\n\t//\tM_discretizer.adjustIntensities();\r\n\t\ttransformRelativeAbundance(GNF1M_value.values,M_PMA,GNF1M_value.numCols);\r\n\t\t\r\n\t\tdouble[][] mergedExpression = new double[GNF1H_value.numRows][GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\tint[][] mergedPMA = new int[GNF1H_value.numRows][GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\tint[] species = null;\r\n\t\tif (!useMotifs) {\r\n\t\t\tspecies = new int[GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\t} else {\r\n\t\t\tspecies = new int[GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t}\r\n\t\t\r\n\t\tfor (i=0;i<GNF1H_value.numRows;i++) {\r\n\t\t\tSystem.arraycopy(GNF1H_value.values[i],0,mergedExpression[i],0,GNF1H_value.numCols);\r\n\t\t\tSystem.arraycopy(H_PMA[i],0,mergedPMA[i],0,GNF1H_value.numCols);\t\r\n\t\t}\r\n\t\tfor (i=0;i<GNF1M_value.numRows;i++) {\r\n\t\t\tSystem.arraycopy(GNF1M_value.values[i],0,mergedExpression[i],GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\t\tSystem.arraycopy(M_PMA[i],0,mergedPMA[i],GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\t}\r\n\t\t\r\n\t\t// concatenate experiment and gene names\r\n\t\tfor (i=0;i<GNF1H_value.numCols;i++) {\r\n\t\t\tGNF1H_value.experimentNames[i] = \"h_\" + GNF1H_value.experimentNames[i];\r\n\t\t\tspecies[i] = 1;\r\n\t\t}\r\n\t\tfor (i=0;i<GNF1M_value.numCols;i++) {\r\n\t\t\tGNF1M_value.experimentNames[i] = \"m_\" + GNF1M_value.experimentNames[i];\r\n\t\t\tspecies[i+GNF1H_value.numCols] = 2;\r\n\t\t}\r\n\t\t\r\n\t\tString[] mergedExperimentNames = null;\r\n\t\tif (!useMotifs) {\r\n\t\t\tmergedExperimentNames = new String[GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\t} else {\r\n\t\t\tmergedExperimentNames = new String[GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t}\r\n\t\tSystem.arraycopy(GNF1H_value.experimentNames,0,mergedExperimentNames,0,GNF1H_value.numCols);\r\n\t\tSystem.arraycopy(GNF1M_value.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\tif (useMotifs) {\r\n\t\t\tSystem.arraycopy(humanMotifs.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols+GNF1M_value.numCols,humanMotifs.numCols);\r\n\t\t\tSystem.arraycopy(mouseMotifs.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols+GNF1M_value.numCols+humanMotifs.numCols,mouseMotifs.numCols);\r\n\t\t\tfor (i=0;i<humanMotifs.numCols;i++) {\r\n\t\t\t\tspecies[i + GNF1H_value.numCols+GNF1M_value.numCols] = 3;\r\n\t\t\t}\r\n\t\t\tfor (i=0;i<mouseMotifs.numCols;i++) {\r\n\t\t\t\tspecies[i + GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols] = 4;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tString[] mergedGeneNames = new String[GNF1H_value.numRows];\r\n\t\tfor (i=0;i<GNF1M_value.numRows;i++) {\r\n\t\t\tmergedGeneNames[i] = GNF1H_value.geneNames[i] + \"|\" + GNF1M_value.geneNames[i];\r\n\t\t}\r\n\t\t\r\n\t\tint[] filterList = new int[GNF1M_value.numRows];\r\n\t\tint numFiltered = 0;\r\n\t\tdouble maxExpressedPercent = 1.25;\r\n\t\tint maxExpressed_H = (int) Math.floor(maxExpressedPercent*((double) GNF1H_value.numCols));\r\n\t\tint maxExpressed_M = (int) Math.floor(maxExpressedPercent*((double) GNF1M_value.numCols));\r\n\t\tint numExpressed_H = 0;\r\n\t\tint numExpressed_M = 0;\r\n\t\t\r\n\t\tfor (i=0;i<GNF1H_value.numRows;i++) {\r\n\t\t\tnumExpressed_H = 0;\r\n\t\t\tfor (j=0;j<GNF1H_value.numCols;j++) {\r\n\t\t\t\tif (GNF1H_PMA.dvalues[i][j] > 0) {\r\n\t\t\t//\tif (!Double.isNaN(GNF1H_value.values[i][j])) {\r\n\t\t\t//\tif (GNF1H_value.values[i][j] > 1.5) {\r\n\t\t\t\t\tnumExpressed_H++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tnumExpressed_M = 0;\r\n\t\t\tfor (j=0;j<GNF1M_value.numCols;j++) {\r\n\t\t\t\tif (GNF1M_PMA.dvalues[i][j] > 0) {\r\n\t\t\t//\tif (GNF1H_value.values[i][j] > 1.5) {\r\n\t\t\t//\tif (!Double.isNaN(GNF1M_value.values[i][j])) {\r\n\t\t\t\t\tnumExpressed_M++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (numExpressed_M >= maxExpressed_M | numExpressed_H >= maxExpressed_H) {\r\n\t\t\t\tfilterList[i] = 1;\r\n\t\t\t\tnumFiltered++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tGNF1H_value = null;\r\n\t\tGNF1H_PMA = null;\r\n\t\tGNF1M_value = null;\r\n\t\tGNF1M_PMA = null;\r\n\t\t\r\n\t\tdouble[][] mergedExpression2 = null;\r\n\t\tif (numFiltered > 0) {\r\n\t\t\tk = 0;\r\n\t\t\tint[][] mergedPMA2 = new int[mergedPMA.length-numFiltered][mergedPMA[0].length];\r\n\t\t\tif (!useMotifs) {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length-numFiltered][mergedExpression[0].length];\r\n\t\t\t} else {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length-numFiltered][mergedExpression[0].length + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t\t}\r\n\t\t\tString[] mergedGeneNames2 = new String[mergedGeneNames.length-numFiltered];\r\n\t\t\tfor (i=0;i<filterList.length;i++) {\r\n\t\t\t\tif (filterList[i] == 0) {\r\n\t\t\t\t\tmergedPMA2[k] = mergedPMA[i];\r\n\t\t\t\t\tif (!useMotifs) {\r\n\t\t\t\t\t\tmergedExpression2[k] = mergedExpression[i];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSystem.arraycopy(mergedExpression[i],0,mergedExpression2[k],0,mergedExpression[i].length);\r\n\t\t\t\t\t\tSystem.arraycopy(humanMotifs.values[i],0,mergedExpression2[k],mergedExpression[i].length,humanMotifs.numCols);\r\n\t\t\t\t\t\tSystem.arraycopy(mouseMotifs.values[i],0,mergedExpression2[k],humanMotifs.numCols+mergedExpression[i].length,mouseMotifs.numCols);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmergedGeneNames2[k] = mergedGeneNames[i];\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmergedPMA = mergedPMA2;\r\n\t\t\tmergedExpression = mergedExpression2;\r\n\t\t\tmergedGeneNames = mergedGeneNames2;\r\n\t\t} else {\r\n\t\t\tif (useMotifs) {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length][mergedExpression[0].length + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t\t\tfor (i=0;i<mergedExpression.length;i++) {\r\n\t\t\t\t\tSystem.arraycopy(mergedExpression[i],0,mergedExpression2[i],0,mergedExpression[i].length);\r\n\t\t\t\t\tSystem.arraycopy(humanMotifs.values[i],0,mergedExpression2[i],mergedExpression[i].length,humanMotifs.numCols);\r\n\t\t\t\t\tSystem.arraycopy(mouseMotifs.values[i],0,mergedExpression2[i],humanMotifs.numCols+mergedExpression[i].length,mouseMotifs.numCols);\r\n\t\t\t\t}\r\n\t\t\t\tmergedExpression = mergedExpression2;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tDiscretizeAffyPairedData discretizer = new DiscretizeAffyPairedData(mergedExpression,mergedPMA,matchPairs,20);\r\n\t\tMicroArrayData mergedData = new MicroArrayData();\r\n\t\tmergedData.values = discretizer.expression;\r\n\t\tmergedData.geneNames = mergedGeneNames;\r\n\t\tmergedData.experimentNames = mergedExperimentNames;\r\n\t\tmergedData.experimentCode = species;\r\n\t\tmergedData.numCols = discretizer.numExperiments;\r\n\t\tmergedData.numRows = discretizer.numGenes;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tmergedData.writeFile(dirName+mergedValues_fName);\r\n\t\t\tdiscretizer.discretizeDownTree(dirName+discretizedMI_fName);\r\n\t\t\tdiscretizer.mergeDownLevels(3,dirName+discretizedLevels_fName);\r\n\t\t\tdiscretizer.transposeDExpression();\r\n\t\t\tmergedData.setDiscrete();\r\n\t\t\tmergedData.values = null;\r\n\t\t\tmergedData.dvalues = discretizer.dExpression;\r\n\t\t\tmergedData.writeFile(dirName+discretizedData_fName);\r\n\t\r\n\t\t\tmergedData.dvalues = mergedPMA;\r\n\t\t\tmergedData.numCols = mergedPMA[0].length;\r\n\t\t\tmergedData.writeFile(dirName+mergedPMA_fName);\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t/*\tMicroArrayData mergedData = new MicroArrayData();\r\n\t\tmergedData.values = mergedExpression;\r\n\t\tmergedData.geneNames = mergedGeneNames;\r\n\t\tmergedData.experimentNames = mergedExperimentNames;\r\n\t\tmergedData.experimentCode = species;\r\n\t\tmergedData.numCols = mergedExpression[0].length;\r\n\t\tmergedData.numRows = mergedExpression.length;\r\n\t\ttry {\r\n\t\t\tmergedData.writeFile(dirName+mergedValues_fName);\r\n\t\t\tmergedData.setDiscrete();\r\n\t\t\tmergedData.values = null;\r\n\t\t//\tmergedData.dvalues = simpleDiscretization(mergedExpression,mergedPMA);\r\n\t\t\tmergedData.dvalues = simpleDiscretization2(mergedExpression,species);\r\n\t\t\tmergedData.writeFile(dirName+discretizedData_fName);\r\n\t\r\n\t\t\tmergedData.dvalues = mergedPMA;\r\n\t\t\tmergedData.numCols = mergedPMA[0].length;\r\n\t\t\tmergedData.writeFile(dirName+mergedPMA_fName);\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t} */\r\n\t\t\r\n\t}", "public int readFromFile(int index) throws IOException {\n FileReader file = (FileReader) filePtrs.get(index);\n int i16 = file.read(); // UTF-16 as int\n char c16 = (char)i16; // UTF-16\n if (Character.isHighSurrogate(c16))\n {\n int low_i16 = file.read(); // low surrogate UTF-16 as int\n char low_c16 = (char)low_i16;\n return Character.toCodePoint(c16, low_c16);\n }\n return i16;\n }", "private void readFromFile() {\n\t\tPath filePath = Paths.get(inputFile);\n\n\t\ttry (BufferedReader reader = Files.newBufferedReader(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tString line = null;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] splitLine = line.split(\",\");\n\t\t\t\tcurrentGen.setValue(Integer.parseInt(splitLine[0]),\n\t\t\t\t\t\tInteger.parseInt(splitLine[1]), true);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not find file provided.\");\n\t\t}\n\t}", "abstract void read();", "private String[] readMaterials() throws IOException\n {\n final int materialCount = this.reader.readByte();\n final String[] materials = new String[materialCount];\n for (int i = 0; i < materialCount; i++)\n {\n materials[i] = this.reader.readString(this.reader.readByte());\n }\n return materials;\n }", "@Override\n public Ini read(Path path) throws IOException {\n try (Reader reader = Files.newBufferedReader(path)) {\n return read(reader);\n }\n }", "protected abstract Reader read() throws IOException;", "public abstract T readDataFile(String fileLine);", "private List<String> readTemperatureRaw() throws IOException {\n Path path = Paths.get( deviceFolder, \"/w1_slave\" );\n return FileReader.readLines( path );\n }", "void read ();", "void parseMetadataFlac(String pathToAudioFile)\n\t{\n\t\tAudioFile f = null;\n\t\ttry {\n\t\t\tf = AudioFileIO.read(new File(pathToAudioFile));\n\t\t} catch (CannotReadException e) {\n\t\t\t System.err.println(\"ParseMedataFlac CannotReadException\"+e);\n\t\t\t setExecutionType(\"Exception\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"ParseMedataFlac IOException\"+e);\n\t\t\tsetExecutionType(\"Exception\");\n\t\t} catch (TagException e) {\n\t\t\tSystem.err.println(\"ParseMedataFlac TagException\"+e);\n\t\t\tsetExecutionType(\"Exception\");\n\t\t} catch (ReadOnlyFileException e) {\n\t\t\tSystem.err.println(\"ParseMedataFlac ReadOnlyException\"+e);\n\t\t\tsetExecutionType(\"Exception\");\n\t\t} catch (InvalidAudioFrameException e) {\n\t\t\tSystem.err.println(\"ParseMedataFlac InvalidAudioFrameException\"+e);\t\n\t\t\tsetExecutionType(\"Exception\");\n\t\t}\n\t\t\n\t\tTag tag = f.getTag();\n\n\t\ttry{\n\t\t\t\n\t\t\tthis.setTitle(tag.getFirst(FieldKey.TITLE));\n\t\t\tthis.setAlbum(tag.getFirst(FieldKey.ALBUM));\n\t\t\tthis.setArtist(tag.getFirst(FieldKey.ARTIST));\n\t\t\tthis.setComposer(tag.getFirst(FieldKey.COMPOSER));\n\t\t\tthis.setGenre(tag.getFirst(FieldKey.GENRE));\n\t\t\tthis.setPath(pathToAudioFile);\n\t\t\tsetExecutionType(\"ok\");\n\t\t\t\n\t\t} catch(UnsupportedOperationException e){\n\t\t\tSystem.err.println(\"ParseMedataFlac UnsupportedOperationException\"+e);\n\t\t\tsetExecutionType(\"Exception\");\n\t\t}\n\t}", "protected abstract UtteranceProcessor getAudioOutput() throws IOException ;", "public void readFile(File f) {\r\n if(f.getName().endsWith(\".txt\")) {\r\n if(f.getName().equals(\"USQRecorders.txt\")) {\r\n readAndTxt(f); \r\n lab_android.setText(\"Android read in\");\r\n }else if(f.getName().equals(\"mdl_log.txt\")) {\r\n readModLog(f);\r\n lab_moodle.setText(\"Moodle read in\");\r\n }else if(f.getName().equals(\"mdl_chat_messages.txt\") || f.getName().equals(\"mdl_forum_posts.txt\") || f.getName().equals(\"mdl_quiz_attempts.txt\")) {\r\n \treadtabs(f);\r\n }else{\r\n //illegal file name\r\n //JOptionPane.showMessageDialog(null, \"only accept .txt file named 'USQRecorders.txt','mdl_log.txt','mdl_chat_messages.txt','mdl_forum_posts.txt' and 'mdl_quiz_attempts.txt'\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n if(fromzip == false) {\r\n copyOldtxt(f);\r\n }\r\n } else if(f.getName().endsWith(\".zip\")) {\r\n if(f.getName().endsWith(\".zip\"))fromzip=true;\r\n readZip(f);\r\n copyOldtxt(f);\r\n //delete original\r\n File del = new File(workplace + \"/temp/USQ_IMAGE\");\r\n File dels[] = del.listFiles();\r\n for(int i=0 ; i<dels.length ; i++){\r\n dels[i].delete();\r\n }\r\n File tmp = new File(workplace + \"/temp/USQ_IMAGE/\");\r\n tmp.delete();\r\n tmp = new File(workplace + \"/temp\");\r\n tmp.delete();\r\n lab_android.setText(\"Android read in\");\r\n } else if(f.getName().endsWith(\".png\")) {\r\n readImage(f);\r\n }\r\n }", "public static String readContigFile(String ContigPath) throws IOException {\n\t\tint LineCount = 0;\n\t\tint LineNum = 0;\n\t\tString encoding = \"utf-8\";\n\t\tString readtemp = \"\";\n\t\tString ReadTemp = \"\";\n\t\ttry {\n\t\t\tFile file = new File(ContigPath);\n\t\t\tif (file.isFile() && file.exists()) {\n\t\t\t\tInputStreamReader read = new InputStreamReader(new FileInputStream(file), encoding); \n\t\t\t\tBufferedReader bufferedReader = new BufferedReader(read);\n\t\t\t\twhile ((readtemp = bufferedReader.readLine()) != null) {\n\t\t\t\t\tif (readtemp.charAt(0) == '>' && LineCount == 0) {\n\t\t\t\t\t\tReadTemp = \">NODE_\" + (LineNum++) + \"_Length\" + \"\\n\";\n\t\t\t\t\t\tLineCount++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (readtemp.charAt(0) == '>') {\n\t\t\t\t\t\t\tReadTemp += \"\\n\" + \">NODE_\" + (LineNum++) + \"_Length\" + \"\\n\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tReadTemp += readtemp;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbufferedReader.close();\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"File is not exist!\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error liaoxingyu\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn ReadTemp;\n\t}", "private static void letturaFilePerRiga(File file) {\n\t\ttry(FileReader reader = new FileReader(file);\n\t\t\tBufferedReader buffReader = new BufferedReader(reader)) {\n\t\t\tString riga = null;\n\t\t\t\n\t\t\tdo {\n\t\t\t\triga = buffReader.readLine();\n\t\t\t\tSystem.out.println(riga);\n\n\t\t\t} while (riga != null);\n\t\t\twhile(riga != null);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO: handle exception\n\t\t} catch (IOException e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\n\n\t}", "@Override\n public String[] readTemperature() throws IOException {\n LOG.info( \"#### DS1820 readTemperature\" );\n \n String[] temperature = null;\n\n getDeviceSpecifics();\n List<String> details = readTemperatureRaw();\n\n String rawTemperature = \"\";\n for ( String detail : details ) {\n LOG.debug( detail );\n rawTemperature = rawTemperature + detail;\n }\n temperature = getTemperatureFromDetail( rawTemperature, System.currentTimeMillis() );\n return temperature;\n }", "@Override\n protected void read(){\n try(BufferedReader bufferedReader = new BufferedReader(new FileReader(getPath()));) {\n\n String frequencyString;\n\n String frequencyFileFormat = \"([a-z]\\\\s\\\\d+\\\\.\\\\d+)\";\n Pattern pattern = Pattern.compile(frequencyFileFormat);\n Matcher matcher;\n\n String[] frequency;\n\n // Read in each line of the frequencies file\n while ((frequencyString = bufferedReader.readLine()) != null) {\n // Match the frequency format to a individual frequency\n matcher = pattern.matcher(frequencyString);\n if(matcher.find()){\n\n // Split the string into the character and its frequency\n frequency = matcher.group(1).split(\" \");\n\n // Add the string and its corresponding frequency to the frequencies hash map\n frequencies.put(frequency[0], Double.parseDouble(frequency[1]));\n \n }\n }\n\n // Only set to true if it successfully reads the whole file\n setFileRead();\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n }", "public static void reading(String fileName)\n {\n\n }", "private void fileRead(String path)\n\t{\n\t\ttry\n\t\t{\n\t\t\t// create file\n\t\t\tFile file = new File(path);\n\t\t\tFileInputStream fileStream = new FileInputStream(file);\n\t\t\t\n\t\t\t// data read\n\t\t\tthis.dataContent = new byte[(int)file.length()];\n\t\t\tint ret = fileStream.read(this.dataContent, 0, (int)file.length());\n\t\t}\n\t\tcatch(FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(\"File Not Found : \" + e.getMessage());\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tSystem.out.println(\"Failed File Read : \" + e.getMessage());\n\t\t}\n\t\t\n\t}", "public void readFromTxtFile(String filename){\n try{\n File graphFile = new File(filename); \n Scanner myReader = new Scanner(graphFile); \n parseFile(myReader);\n myReader.close();\n } \n catch(FileNotFoundException e){\n System.out.println(\"ERROR: DGraphEdges, readFromTxtFile: file not found.\");\n e.printStackTrace();\n } \n }", "@SuppressWarnings(\"deprecation\")\n private int readMeals(String eateryname, String filePath) {\n Dish curdish;\n Meal curmeal = null;\n Calendar curdate = Calendar.getInstance();\n curdate.set(0, 0, 0); // Initialize date to 0.\n boolean newdate = false;\n boolean nutrerror = false;\n try {\n _stream = new FileInputStream(filePath);\n\n _instream = new DataInputStream(_stream);\n _bufread = new BufferedReader(new InputStreamReader(_instream));\n\n TextParser parser = new TextParser();\n String line;\n boolean ingrediants;\n\n while (true) { //loop until we break\n nutrerror = false; //this is if the PDF leaves out necessary information in the nutrition facts section\n //initially set this to false at the start of reading each dish (each loop)\n\n //Read in the line that starts a new dish, and create a dish with the string in this line\n if ((line = _bufread.readLine()) != null) {\n //read in the dish name and create a new dish\n if (line.charAt(0) == '\f') { //check for and delete this weird character the PDF to text sometimes gives.\n line = line.substring(1);\n }\n\n //create a new dish of this name\n curdish = new Dish(line);\n curdish.setLocation(new Location(eateryname));\n } else {\n break;\n }\n\n //Read in the line under the name. It should be the ingrediants\n if ((line = _bufread.readLine()) != null) {\n ingrediants = parser.SetIngrediants(curdish, line);\n\n } else {\n break;\n }\n if (ingrediants) { //if ingrediants did not have an issue then read the empty line\n //and then read in the ingrediants header\n // otherwise you don't want to do this as there were no ingrediants\n //and the line you thought was ingrediants is really the nutrition facts header\n\n //Read in the empty line seperator\n if ((line = _bufread.readLine()) != null) { //read in an empty line\n\n } else {\n break;\n }\n //Read in the next line and make sure it is the nutrition facts header\n if ((line = _bufread.readLine()) != null) {\n if (line.compareTo(\"Nutrition Facts\") != 0) {\n //this means things are not formatted as expected\n }\n } else {\n break;\n }\n }\n //Under the nutrition facts header is the list of nutrition facts\n if ((line = _bufread.readLine()) != null) {\n nutrerror = parser.setNutritionFacts(curdish, line);\n } else {\n break;\n }\n\n //read in empty line separator\n if ((line = _bufread.readLine()) != null) {\n\n } else {\n break;\n }\n\n //read in the location line\n if ((line = _bufread.readLine()) != null) {\n } else {\n break;\n }\n\n //read in the empty line separator\n if ((line = _bufread.readLine()) != null) {\n\n } else {\n break;\n }\n\n //read in the line that should have the date\n //use result to check for error and set newdate\n if ((line = _bufread.readLine()) != null) { //this line should have the date\n Calendar d = parser.setDate(curdish, line, curdate);\n if (d.equals(curdate)) //if the date returned is the same date, then there was no changed\n {\n newdate = false;\n } else { //if the date returned is different, then there is a newdate and curdate should be updated\n newdate = true;\n curdate = d;\n }\n } else {\n break;\n }\n\n //read in the empty line separator\n if ((line = _bufread.readLine()) != null) {\n\n } else {\n break;\n }\n\n //this line says Breakfast, Lunch, Dinner.... etc\n //check this line and the newdate variable to see if the dish should be added to the current meal\n //or if we need a whole new meal\n if ((line = _bufread.readLine()) != null) {\n //if this is the first dish, so there is no meal create a meal and add the dish && set the date\n if (curmeal == null) {\n curmeal = new Meal(line.toLowerCase());\n curdish.setDate(curdate);\n curdish.setMeal(curmeal);\n _dishes.add(curdish);\n } else if (curmeal.getMeal().equals(line) == false || newdate == true) {\n //this is the beginning of a new meal, add the cur meal to eatery and create a new one with the most recent date\n curmeal = new Meal(line.toLowerCase());\n curdish.setMeal(curmeal);\n curdish.setDate(curdate);\n } else { //this is just part of the current meal, add it and move on to the next one\n curdish.setMeal(curmeal);\n curdish.setDate(curdate);\n }\n } else {\n break;\n }\n\n //read in the empty line separator\n if ((line = _bufread.readLine()) != null) {\n\n } else {\n break;\n }\n _dishes.add(curdish);\n //move on to the next dish in the text file\n }\n \n } catch (FileNotFoundException e) {\n return -1;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n } finally {\n if (_instream != null) {\n try {\n _instream.close();\n } catch (IOException e) {\n\n }\n }\n\n if (_bufread != null) {\n try {\n _bufread.close();\n } catch (IOException e) {\n\n }\n }\n\n if (_stream != null) {\n try {\n _stream.close();\n } catch (IOException e) {\n\n }\n }\n }\n return 1;\n }", "public String read() throws Exception {\r\n\t\tBufferedReader reader = null;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tif (input==null) input = new FileInputStream(file);\r\n\t\t\treader = new BufferedReader(new InputStreamReader(input,charset));\r\n\t\t\tchar[] c= null;\r\n\t\t\twhile (reader.read(c=new char[8192])!=-1) {\r\n\t\t\t\tsb.append(c);\r\n\t\t\t}\r\n\t\t\tc=null;\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\treader.close();\r\n\t\t}\r\n\t\treturn sb.toString().trim();\r\n\t}", "protected int read(byte[] buffer) throws IOException {\n return mTiffStream.read(buffer);\n }", "public boolean readDataFile();", "public ManyTris(String appTitle, int pw, int ph, int fps, String inputFile) {\n\t\tsuper(appTitle, pw, ph, (long) ((1.0 / fps) * 1000000000));\n\n\t\t// read position and color data for all the triangles from inputFile:\n\t\ttry {\n\t\t\tScanner input = new Scanner(new File(inputFile));\n\n\t\t\tnumTris = input.nextInt();\n\t\t\tpositionData = new float[3 * 3 * numTris];\n\t\t\tcolorData = new float[3 * 3 * numTris];\n\n\t\t\t// read position data\n\t\t\tfor (int k = 0; k < positionData.length; k++) {\n\t\t\t\tpositionData[k] = input.nextFloat();\n\t\t\t}\n\n\t\t\t// read color data\n\t\t\tfor (int k = 0; k < colorData.length; k++) {\n\t\t\t\tcolorData[k] = input.nextFloat();\n\t\t\t}\n\n\t\t\tinput.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t}", "public String read(File file) throws IOException {\n\t\t\tInputStream is = null;\r\n\t\t\tis = new FileInputStream(file);\r\n\t\t\t\r\n\t\t\tAccessTextFile test = new AccessTextFile();\r\n//\t\t\tInputStream is = new FileInputStream(\"E:\\\\test.txt\");\r\n\t\t\tStringBuffer buffer = new StringBuffer();\r\n\t\t\ttest.readToBuffer(buffer, is);\r\n\t\t\tSystem.out.println(buffer); // 将读到 buffer 中的内容写出来\r\n\t\t\tis.close();\t\t\r\n\t\t\treturn buffer.toString();\r\n\t\t }", "private void ReadTextFile(String FilePath) {\n\t\t\n\t\t\n\t}", "public IMetaCue[] readMetaCue();", "public SheetMusicDrawing read() throws IOException {\n String jsonData = readFile(file);\n JSONObject jsonObject = new JSONObject(jsonData);\n return parseSheetMusic(jsonObject);\n }", "private static String readFile(String path) throws IOException {\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(path)))) {\n\t\t\tStringBuilder input = new StringBuilder();\n\t\t\tString tmp; while ((tmp = br.readLine()) != null) input.append(tmp+\"\\n\");\n\t\t\treturn input.toString();\n\t\t}\n\t}", "protected int read(byte[] buffer, int offset, int length) throws IOException {\n return mTiffStream.read(buffer, offset, length);\n }", "public Vector loadAffyGCOSExpressionFile(File f) throws IOException {\r\n \tthis.setTMEVDataType();\r\n final int preSpotRows = this.sflp.getXRow()+1;\r\n final int preExperimentColumns = this.sflp.getXColumn();\r\n int numLines = this.getCountOfLines(f);\r\n int spotCount = numLines - preSpotRows;\r\n\r\n if (spotCount <= 0) {\r\n JOptionPane.showMessageDialog(superLoader.getFrame(), \"There is no spot data available.\", \"TDMS Load Error\", JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n \r\n int[] rows = new int[] {0, 1, 0};\r\n int[] columns = new int[] {0, 1, 0};\r\n //String value,pvalue;\r\n String detection;\r\n\r\n float cy3, cy5;\r\n\r\n String[] moreFields = new String[1];\r\n String[] extraFields=null;\r\n final int rColumns = 1;\r\n final int rRows = spotCount;\r\n \r\n ISlideData slideDataArray[]=null;\r\n AffySlideDataElement sde=null;\r\n FloatSlideData slideData=null;\r\n \r\n BufferedReader reader = new BufferedReader(new FileReader(f));\r\n StringSplitter ss = new StringSplitter((char)0x09);\r\n String currentLine;\r\n int counter, row, column,experimentCount=0;\r\n counter = 0;\r\n row = column = 1;\r\n this.setFilesCount(1);\r\n this.setRemain(1);\r\n this.setFilesProgress(0);\r\n this.setLinesCount(numLines);\r\n this.setFileProgress(0);\r\n float[] intensities = new float[2];\r\n \r\n while ((currentLine = reader.readLine()) != null) {\r\n if (stop) {\r\n return null;\r\n }\r\n// fix empty tabbs appending to the end of line by wwang\r\n while(currentLine.endsWith(\"\\t\")){\r\n \tcurrentLine=currentLine.substring(0,currentLine.length()-1);\r\n }\r\n ss.init(currentLine);\r\n \r\n if (counter == 0) { // parse header\r\n \t\r\n \tif(sflp.onlyIntensityRadioButton.isSelected()) \r\n \t\texperimentCount = ss.countTokens()- preExperimentColumns;\r\n \t\t\r\n \tif(sflp.intensityWithDetectionRadioButton.isSelected()) \r\n \t\texperimentCount = (ss.countTokens()+1- preExperimentColumns)/2;\r\n \t\t\r\n \tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()) \r\n \t\texperimentCount = (ss.countTokens()+1- preExperimentColumns)/3;\r\n \t\r\n \t\r\n \tslideDataArray = new ISlideData[experimentCount];\r\n \tSampleAnnotation sampAnn=new SampleAnnotation();\r\n \tslideDataArray[0] = new SlideData(rRows, rColumns, sampAnn);//Added by Sarita to include SampleAnnotation model.\r\n \r\n slideDataArray[0].setSlideFileName(f.getPath());\r\n for (int i=1; i<experimentCount; i++) {\r\n \tsampAnn=new SampleAnnotation();\r\n \tslideDataArray[i] = new FloatSlideData(slideDataArray[0].getSlideMetaData(),spotCount, sampAnn);//Added by Sarita \r\n \tslideDataArray[i].setSlideFileName(f.getPath());\r\n \t//System.out.println(\"slideDataArray[i].slide file name: \"+ f.getPath());\r\n }\r\n if(sflp.onlyIntensityRadioButton.isSelected()){\r\n \tString [] fieldNames = new String[1];\r\n \t//extraFields = new String[1];\r\n \tfieldNames[0]=\"AffyID\";\r\n \tslideDataArray[0].getSlideMetaData().appendFieldNames(fieldNames);\r\n }else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \tString [] fieldNames = new String[2];\r\n \textraFields = new String[1];\r\n fieldNames[0]=\"AffyID\";\r\n fieldNames[1]=\"Detection\";\r\n slideDataArray[0].getSlideMetaData().appendFieldNames(fieldNames);\r\n }else{\r\n \tString [] fieldNames = new String[3];\r\n \textraFields = new String[2];\r\n fieldNames[0]=\"AffyID\";\r\n fieldNames[1]=\"Detection\";\r\n fieldNames[2]=\"P-value\";\r\n slideDataArray[0].getSlideMetaData().appendFieldNames(fieldNames);\r\n \r\n }\r\n ss.nextToken();//parse the blank on header\r\n for (int i=0; i<experimentCount; i++) {\r\n \tString val=ss.nextToken();\r\n\t\t\t\t\tslideDataArray[i].setSampleAnnotationLoaded(true);\r\n\t\t\t\t\tslideDataArray[i].getSampleAnnotation().setAnnotation(\"Default Slide Name\", val);\r\n\t\t\t\t\tslideDataArray[i].setSlideDataName(val);\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.mav.getData().setSampleAnnotationLoaded(true);\r\n\t\t\t \t \r\n if(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \tss.nextToken();//parse the detection\r\n ss.nextToken();//parse the pvalue\r\n }else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \tss.nextToken();//parse the detection \r\n } \r\n }\r\n \r\n } else if (counter >= preSpotRows) { // data rows\r\n \trows[0] = rows[2] = row;\r\n \tcolumns[0] = columns[2] = column;\r\n \tif (column == rColumns) {\r\n \t\tcolumn = 1;\r\n \t\trow++;//commented by sarita\r\n \t\t\r\n \t\t\r\n \t} else {\r\n \t\tcolumn++;//commented by sarita\r\n \t\t\r\n \t\t\r\n \t}\r\n\r\n \t//affy ID\r\n \tmoreFields[0] = ss.nextToken();\r\n \r\n \t\r\n \t\r\n String cloneName = moreFields[0];\r\n if(_tempAnno.size()!=0) {\r\n \t \r\n \t \t \r\n \t if(((MevAnnotation)_tempAnno.get(cloneName))!=null) {\r\n \t\t MevAnnotation mevAnno = (MevAnnotation)_tempAnno.get(cloneName);\r\n\r\n \t\t sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, intensities, moreFields, mevAnno);\r\n \t }else {\r\n \t /**\r\n \t * Sarita: clone ID explicitly set here because if the data file\r\n \t * has a probe (for eg. Affy house keeping probes) for which Resourcerer\r\n \t * does not have annotation, MeV would still work fine. NA will be\r\n \t * appended for the rest of the fields. \r\n \t * \r\n \t * \r\n \t */\r\n \t\tMevAnnotation mevAnno = new MevAnnotation();\r\n \t\tmevAnno.setCloneID(cloneName);\r\n sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, new float[2], moreFields, mevAnno);\r\n \t \t\t \r\n }\r\n }\r\n /* Added by Sarita\r\n * Checks if annotation was loaded and accordingly use\r\n * the appropriate constructor.\r\n * \r\n * \r\n */\r\n \r\n else {\r\n sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, intensities, moreFields);\r\n }\r\n \r\n \t\r\n \t//sde = new AffySlideDataElement(String.valueOf(row+1), rows, columns, new float[2], moreFields);\r\n\r\n \tslideDataArray[0].addSlideDataElement(sde);\r\n \tint i=0;\r\n\r\n \tfor ( i=0; i<slideDataArray.length; i++) { \r\n \t\ttry {\t\r\n\r\n \t\t\t// Intensity\r\n \t\t\tintensities[0] = 1.0f;\r\n \t\t\tintensities[1] = ss.nextFloatToken(0.0f);\r\n \t\t\r\n \t\t\tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \t\t\t\t\r\n \t\t\t\textraFields[0]=ss.nextToken();//detection\r\n \t\t\t\textraFields[1]=ss.nextToken();//p-value\r\n \t\t\t\t\r\n \t\t\t}else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \t\t\t\textraFields[0]=ss.nextToken();//detection\r\n \t\t\t}\r\n\r\n \t\t} catch (Exception e) {\r\n \t\t\t\r\n \t\t\tintensities[1] = Float.NaN;\r\n \t\t}\r\n \t\tif(i==0){\r\n \t\t\t\r\n \t\t\tslideDataArray[i].setIntensities(counter - preSpotRows, intensities[0], intensities[1]);\r\n \t\t\t//sde.setExtraFields(extraFields);\r\n \t\t\tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \t\t\t\tsde.setDetection(extraFields[0]);\r\n \t\t\t\tsde.setPvalue(new Float(extraFields[1]).floatValue());\r\n \t\t\t}else if(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \t\t\t\tsde.setDetection(extraFields[0]);\r\n \t\t\t}\r\n \t\t}else{\r\n \t\t\tif(i==1){\r\n \t\t\t\tmeta = slideDataArray[0].getSlideMetaData(); \t\r\n \t\t\t}\r\n \t\t\tslideDataArray[i].setIntensities(counter-preSpotRows,intensities[0],intensities[1]);\r\n \t\t\tif(sflp.intensityWithDetectionPvalRadioButton.isSelected()){\r\n \t\t\t\t((FloatSlideData)slideDataArray[i]).setDetection(counter-preSpotRows,extraFields[0]);\r\n \t\t\t\t((FloatSlideData)slideDataArray[i]).setPvalue(counter-preSpotRows,new Float(extraFields[1]).floatValue());\r\n \t\t\t}\r\n \t\t\tif(sflp.intensityWithDetectionRadioButton.isSelected()){\r\n \t\t\t\t((FloatSlideData)slideDataArray[i]).setDetection(counter-preSpotRows,extraFields[0]);\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n\r\n } else {\r\n //we have additional sample annoation\r\n \r\n \tfor (int i = 0; i < preExperimentColumns - 1; i++) {\r\n\t\t\t\t\tss.nextToken();\r\n\t\t\t\t}\r\n\t\t\t\tString key = ss.nextToken();\r\n\r\n\t\t\t\tfor (int j = 0; j < slideDataArray.length; j++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(slideDataArray[j].getSampleAnnotation()!=null){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tString val=ss.nextToken();\r\n\t\t\t\t\t\tslideDataArray[j].getSampleAnnotation().setAnnotation(key, val);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tSampleAnnotation sampAnn=new SampleAnnotation();\r\n\t\t\t\t\t\t\tsampAnn.setAnnotation(key, ss.nextToken());\r\n\t\t\t\t\t\t\tslideDataArray[j].setSampleAnnotation(sampAnn);\r\n\t\t\t\t\t\t\tslideDataArray[j].setSampleAnnotationLoaded(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n \t}\r\n \t\r\n this.setFileProgress(counter);\r\n \tcounter++;\r\n \t//System.out.print(counter);\r\n \t}\r\n reader.close();\r\n \r\n \r\n Vector data = new Vector(slideDataArray.length);\r\n \r\n for(int j = 0; j < slideDataArray.length; j++)\r\n \tdata.add(slideDataArray[j]);\r\n \r\n this.setFilesProgress(1);\r\n return data;\r\n }", "public void plzreadDataFiles(){\n\n //This line opens the file and returns an Input Stream data type\n InputStream itemIs = getResources().openRawResource(R.raw.card_data);\n\n //Read the file line by line\n BufferedReader reader = new BufferedReader(new InputStreamReader(itemIs, Charset.forName(\"UTF-8\")));\n\n //Initialize a var to track the line of the file being read in\n String line =\"\";\n\n // error proofing if the file is weird\n try {\n int i = 0;\n int k = 0;\n while ((line = reader.readLine()) != null){\n //split data by commas into an array of strings\n String[] token = line.split(\",\");\n\n itemArray[i] = new itemInfo();\n\n //Read the data\n itemArray[i].setCardType(token[0]);\n itemArray[i].setCardName(token[1]);\n itemArray[i].setItemType(token[2]);\n itemArray[i].setFrontText(token[3]);\n itemArray[i].setRearText(token[4]);\n itemArray[i].setDuration(token[5]);\n\n\n // Create a list of ITEM names for the autocomplete\n if ((itemArray[i].getCardType().intern()) == (\"Common Item\")){\n //itemSearchArray[i] = token[1];\n itemsOnlyList[k] = token[1];\n k = k + 1;\n }\n\n else if ((itemArray[i].getCardType().intern()) == (\"Unique Item\")){\n //itemSearchArray[i] = token[1];\n itemsOnlyList[k] = token[1];\n k = k + 1;\n }\n\n else if ((itemArray[i].getCardType().intern()) == (\"Spell\")){\n //itemSearchArray[i] = token[1];\n itemsOnlyList[k] = token[1];\n k = k + 1;\n }\n\n //Check that the damage column has a number in it, and write it in\n if (token[5].intern() != \"-\"){\n itemArray[i].setDamage(Integer.parseInt(token[5]));\n }\n else{\n //Set it to zero if the dash is detected\n itemArray[i].setDamage(0);\n }\n itemArray[i].setDuration(token[6]);\n\n i = i + 1;\n\n Log.d(\"My Activity\", \"Just added: \"+itemArray[i]);\n }\n\n } catch (IOException e) {\n Log.wtf(\"MyActivity\",\"Error reading data file on line\"+line,e);\n e.printStackTrace();\n }\n }", "public void readFromFile() {\n FileInputStream fis = null;\n try {\n //reaad object\n fis = new FileInputStream(file);\n ObjectInputStream ois = new ObjectInputStream(fis);\n TravelAgent travelAgent = (TravelAgent)ois.readObject();\n travelGUI.setTravelAgent(travelAgent);\n ois.close();\n }\n catch (Exception e) {\n System.out.println(e.getMessage());\n if (fis != null) {\n try {\n fis.close();\n }\n catch (IOException e2) {\n System.out.println(e2.getMessage());\n }\n }\n return;\n }\n finally {\n if (fis != null) {\n try {\n fis.close();\n }\n catch (IOException e2) {\n System.out.println(e2.getMessage());\n }\n }\n }\n if (fis != null) {\n try {\n fis.close();\n }\n catch (IOException e2) {\n System.out.println(e2.getMessage());\n }\n }\n }", "public static String readFile() {\n\t\tFileReader file;\n\t\tString textFile = \"\";\n\n\t\ttry {\n\t\t\tfile = new FileReader(path);\n\n\t\t\t// Output string.\n\t\t\ttextFile = new String();\n\n\t\t\tBufferedReader bfr = new BufferedReader(file);\n\n\t\t\ttextFile= bfr.readLine();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error reading the file\");\n\t\t}\n\t\treturn textFile;\n\n\t}", "String input() {\n\n try {\n\n FileReader reader = new FileReader(\"the text.txt\");\n BufferedReader bufferedReader = new BufferedReader(reader);\n StringBuilder builder = new StringBuilder();\n String line;\n\n while ((line = bufferedReader.readLine()) != null)\n builder.append(line);\n\n return builder.toString();\n\n } catch (IOException e) {\n\n System.out.println(\"Input Failure\");\n return null;\n }\n }", "static String readFile(String path) throws IOException{\n\t\tFileInputStream fs = new FileInputStream(path);\n\t\tStringBuffer sb = new StringBuffer();\n\t\t// read a file\n\t\tint singleByte = fs.read(); // read singleByte\n\t\twhile(singleByte!=-1){\n\t\t\tsb.append((char)singleByte);\n\t\t\t///System.out.print((char)singleByte);\n\t\t\tsingleByte = fs.read();\n\t\t}\n\t\tfs.close(); // close the file\n\t\treturn sb.toString();\n\t}", "public Object readObject(File file, int format) throws IOException, FileNotFoundException;", "@Test\n\tpublic void testParseTagFile_Failure() throws IOException \n\t{\n\t\tString expected = \"aus-capitals|8\";\t\t\n\t\t\n\t\t// Act\n\t\t// need to be modified the hardcoded path with mocking\n\t\tString actual = TagFileParser.readTagFile(\"D:\\\\Learning\\\\testlocation\\\\aus-capitals.tag\");\n\t\t\n\t\t// Assert\t\t\n\t\tassertNotEquals(expected, actual);\t\n\t}", "public String read() {\n\t\tStringBuffer text = new StringBuffer((int)file.length());\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader b = new BufferedReader(fr);\n\t\t\tboolean eof = false;\n\t\t\tString line;\n\t\t\tString ret = \"\\n\";\n\t\t\twhile (!eof) {\n\t\t\t\tline = b.readLine();\n\t\t\t\tif (line == null) {\n\t\t\t\t\teof = true;\n\t\t\t\t} else {\n\t\t\t\t\ttext.append(line);\n\t\t\t\t\ttext.append(ret);\n\t\t\t\t}\n\t\t\t}\n\t\t\tb.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"File \" + file.getName() +\n\t\t\t\t\" is unreadable : \" + e.toString());\n\t\t}\n\t\treturn text.toString();\n\t}", "private static String transcribe(String filePath) throws Exception {\n try (SpeechClient speech = SpeechClient.create()) {\n Path path = Paths.get(filePath);\n byte[] data = Files.readAllBytes(path);\n ByteString audioBytes = ByteString.copyFrom(data);\n\n // Configure request with local raw PCM audio\n RecognitionConfig config =\n RecognitionConfig.newBuilder()\n .setEncoding(SPEECH_ENCODING)\n .setLanguageCode(SPEECH_LANGUAGE_CODE)\n .setSampleRateHertz(SPEECH_SAMPLE_RATE)\n .build();\n RecognitionAudio audio = RecognitionAudio.newBuilder().setContent(audioBytes).build();\n\n // Use blocking call to get audio transcript\n RecognizeResponse response = speech.recognize(config, audio);\n List<SpeechRecognitionResult> results = response.getResultsList();\n\n for (SpeechRecognitionResult result : results) {\n // There can be several alternative transcripts for a given chunk of speech. Just use the\n // first (most likely) one here.\n SpeechRecognitionAlternative alternative = result.getAlternativesList().get(0);\n return alternative.getTranscript();\n }\n }\n return \"\";\n }", "String readText(FsPath path);", "@Override\r\n\tpublic void test() {\n\t\tFile file = new File(\"c:\\\\testing.txt\");\r\n\t\tFileInputStream fis = null;\r\n\t\tBufferedInputStream bis = null;\r\n\t\t\r\n\t\tbyte[] buf = new byte[1024];\r\n\t\t\r\n\t\ttry {\r\n\t\t\tfis = new FileInputStream(file);\r\n\t\t\tbis = new BufferedInputStream(fis);\r\n\t\t\t\r\n\t\t\twhile (bis.available() != 0) {\r\n\t\t\t\tSystem.out.println(bis.read(buf));\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif(bis!=null)\r\n\t\t\t\t\tbis.close();\r\n\t\t\t\tif(fis != null) \r\n\t\t\t\t\tfis.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static String readFile(File file) {\n String result = \"\";\n\n try (BufferedReader bufferedReader = new BufferedReader(\n new FileReader(file))) {\n result = bufferedReader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return result;\n }", "public void doIt(File f) throws Exception\n {\n LuaParser parser=new LuaParser();\n Map<String,Object> data=parser.read(f);\n useData(data);\n }", "public void LoadTxt(File Arquivo) {\n if (Arquivo.exists()) {\r\n\r\n try {\r\n\r\n FileReader FR = new FileReader(Arquivo);\r\n BufferedReader BW = new BufferedReader(new InputStreamReader(new FileInputStream(Arquivo.getAbsolutePath()), \"ISO-8859-1\"));\r\n\r\n //BufferedReader BW = new BufferedReader(FR);\r\n\r\n String dados;\r\n String[] paraArray = new String[3];\r\n String matricula;\r\n \r\n String serie = Arquivo.getName();\r\n int pos = serie.lastIndexOf(\".\");\r\n if (pos > 0) {\r\n serie = serie.substring(0, pos);\r\n }\r\n\r\n Sala novaSala = new Sala(serie); //CRIANDO SALA COM NOME DE TURMA\r\n salas2.add(novaSala); // ADICIONANDO SALA NA LISTA DE SALAS\r\n while ((dados = BW.readLine()) != null) {\r\n paraArray = dados.split(\";\");\r\n\r\n matricula = /*Integer.parseInt*/ (paraArray[0]);\r\n //senha = /*Integer.parseInt*/(paraArray[2]);\r\n Dados novoDado = new Dados(matricula, paraArray[1], paraArray[2]);\r\n\r\n novoDado.setSerie(serie); //ADICIONANDO TURMA AO DADO\r\n novaSala.getDadosalas().add(novoDado); //ADICIONANDO DADOS A LISTA DE DADOS QUE ESTA EM SALA\r\n\r\n }\r\n \r\n\r\n BW.close();\r\n FR.close();\r\n\r\n } catch (Exception e) {\r\n System.out.println(\"Erro ao carregar arquivo acima\");\r\n System.out.println(e.getMessage());\r\n\r\n }\r\n\r\n } else {\r\n System.out.println(\"Nenhum arquivo de dados encontrado\");\r\n }\r\n\r\n }", "public static String[] readFile(String fn) {\n\n try {\n\n FileReader fr = new FileReader(fn); // read the file\n // store contents in a buffer\n BufferedReader bfr = new BufferedReader(fr);\n // an string array list for storing each line of content\n ArrayList<String> content = new ArrayList<String>();\n String p = null; // temper string for passing each line of contents\n while ((p = bfr.readLine()) != null) {\n content.add(p);\n }\n\n // String array for storing content\n String[] context = new String[content.size()];\n\n for (int i = 0; i < content.size(); i++) {\n context[i] = content.get(i);\n }\n\n bfr.close(); // close the buffer\n return context;\n\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found: \" + e.getMessage());\n System.exit(0);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n System.out.println(\"I/O Ooops: \" + e.getMessage());\n System.exit(0);\n }\n\n // If an exception occurred we will get to here as the return statement\n // above was not executed\n // so setup a paragraphs array to return which contains the empty string\n String[] context = new String[1];\n context[0] = \"\";\n return context;\n\n }", "public static void demoReadAll(){\n try{\n //Read entire file bytes. Return in byte format. Don't need to close() after use. \n byte[] b = Files.readAllBytes(Paths.get(\"country.txt\"));\n String s = new String(b);\n System.out.println(s);\n }\n catch(IOException e){\n e.printStackTrace();\n }\n }", "private static String getText(IFile file) throws CoreException, IOException {\n\t\tInputStream in = file.getContents();\n\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\tbyte[] buf = new byte[1024];\n\t\tint read = in.read(buf);\n\t\twhile (read > 0) {\n\t\t\tout.write(buf, 0, read);\n\t\t\tread = in.read(buf);\n\t\t}\n\t\treturn out.toString();\n\t}", "private String readFile(String file) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(file), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n\n }", "@Override\r\n\tpublic List<Treasure> read() throws DAOException {\r\n\r\n\t\tFileReader reader = null;\r\n\t\tBufferedReader bufferedReader = null;\r\n\t\tList<Treasure> treasure = new ArrayList<Treasure>();\r\n\r\n\t\ttry {\r\n\r\n\t\t\tString line = null;\r\n\t\t\treader = new FileReader(fileName);\r\n\t\t\tbufferedReader = new BufferedReader(reader);\r\n\r\n\t\t\t// read file line by line\r\n\t\t\t// and save results into the tempStr list\r\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\r\n\r\n\t\t\t\t// get line with treasure, it's ID and price\r\n\t\t\t\tString[] tempLine = line.split(\"\\\\s+\");\r\n\t\t\t\t// split the string, to separate data\r\n\t\t\t\tString name = tempLine[0].replace(\"_\", \" \");\r\n\t\t\t\tint id = Integer.parseInt(tempLine[1].split(\"=\")[1]);\r\n\t\t\t\tint price = Integer.parseInt(tempLine[2].split(\"=\")[1]);\r\n\t\t\t\t// create treasure\r\n\t\t\t\tTreasure tempTreasure = new Treasure(name, id, price);\r\n\t\t\t\t// add it to the list\r\n\t\t\t\ttreasure.add(tempTreasure);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new DAOException(e);\r\n\t\t} finally {\r\n\t\t\tif (reader != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\treader.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tthrow new DAOException(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn treasure;\r\n\r\n\t}", "public static void processFile(File f) throws Exception {\n\t\ttry {\r\n\t\t\tBufferedReader bufRead = new BufferedReader(new InputStreamReader(\r\n\t\t\t\t\tnew FileInputStream(f)));\r\n\t\t\tString S1 = \"\";\r\n\t\t\twhile ((S1 = bufRead.readLine()) != null) {\r\n\t\t\t\t//System.out.println(S1);\r\n\t\t\t\tgetPubTypes(S1);\r\n\t\t\t\t//System.out.println();\r\n\t\t\t}\r\n\t\t\tbufRead.close();\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.out.println(\"Something is wrong with reading file! \"\r\n\t\t\t\t\t+ \"Can't find the appropriate file!\");\r\n\t\t}\r\n\r\n\t\t// return allDiseases;\r\n\r\n\t}", "public static void main(String[] args) throws IOException {\n\t\tFile file = new File(\"testeArquivo.txt\");\n\t\tfile.createNewFile();\n\t\tFileWriter writer = new FileWriter(file);\n\t\twriter.write(\"Arquivo criado\");\n\t\twriter.flush();\n\t\twriter.close();\n\t\tFileReader fr = new FileReader(file); \n\t char [] a = new char[50];\n\t fr.read(a); \n\t for(char c : a){\n\t \tSystem.out.println(c);\n\t }\n\t fr.close();\n\t}", "public int[] readBasicInfo() throws IOException\n\t{\n\t\t//Creates a FileReader and BufferedReader to read from the file that you pass it\n\t\tFileReader fr = new FileReader(path);\n\t\tBufferedReader textReader = new BufferedReader(fr);\n\t\t\n\t\t//Creates a new array to read the first line of data to (is an array because need to convert to int list)\n\t\tString textData;\n\t\t\n\t\t//Reads the first line of the text file into the array\n\t\ttextData = textReader.readLine();\n\t\t\n\t\tint[] data = new int[5];\n\t\t//Create a holding variable that will help to convert the String list over to an int list\n\t\tString[] tempList = new String[6];\n\t\t//List of deliminations that will be parsed out of the read strings in the string list that the function is passed\n\t\tString delims = \"[,()]+\";\n\t\t//Splits the strings from the file by the parenthesis and the commas\n\t\ttempList = textData.split(delims);\n\t\tfor (int i = 1; i < tempList.length; i++)\n\t\t\tdata[i-1] = Integer.parseInt(tempList[i]);\n\t\t\n\t\t//Returns the array containing the first line of the text file\n\t\treturn data;\n\t}", "private void getArquivo()\n {\n /*** Obtem o conteudo do pacote através do diretorio ***/\n File file = new File(caminho_origem);\n if (file.isFile())\n {\n try\n {\n /*** Lê o pacote e põe em um array de bytes ***/\n DataInputStream diStream = new DataInputStream(new FileInputStream(file));\n long len = (int) file.length();\n if (len > Utils.tamanho_maximo_arquivo)\n {\n System.out.println(Utils.prefixo_cliente + Utils.arquivo_muito_grande);\n System.exit(0);\n }\n Float numero_pacotes_ = ((float)len / Utils.tamanho_util_pacote);\n int numero_pacotes = numero_pacotes_.intValue();\n int ultimo_pacote = (int) len - (Utils.tamanho_util_pacote * numero_pacotes);\n int read = 0;\n /***\n 1500\n fileBytes[1500]\n p[512]\n p[512]\n p[476]len - (512 * numero_pacotes.intValue())\n ***/\n byte[] fileBytes = new byte[(int)len];\n while (read < fileBytes.length)\n {\n fileBytes[read] = diStream.readByte();\n read++;\n }\n int i = 0;\n int pacotes_feitos = 0;\n while ( pacotes_feitos < numero_pacotes)\n {\n byte[] mini_pacote = new byte[Utils.tamanho_util_pacote];\n for (int k = 0; k < Utils.tamanho_util_pacote; k++)\n {\n mini_pacote[k] = fileBytes[i];\n i++;\n }\n Pacote pacote_ = new Pacote();\n pacote_.setConteudo(mini_pacote);\n this.pacotes.add(pacote_);\n pacotes_feitos++;\n }\n byte[] ultimo_mini_pacote = new byte[ultimo_pacote];\n int ultimo_indice = ultimo_mini_pacote.length;\n for (int j = 0; j < ultimo_mini_pacote.length; j++)\n {\n ultimo_mini_pacote[j] = fileBytes[i];\n i++;\n }\n byte[] ultimo_mini_pacote2 = new byte[512];\n System.arraycopy(ultimo_mini_pacote, 0, ultimo_mini_pacote2, 0, ultimo_mini_pacote.length);\n for(int h = ultimo_indice; h < 512; h++ ) ultimo_mini_pacote2[h] = \" \".getBytes()[0];\n Pacote pacote_ = new Pacote();\n pacote_.setConteudo(ultimo_mini_pacote2);\n this.pacotes.add(pacote_);\n this.janela = new HashMap<>();\n for (int iterator = 0; iterator < this.pacotes.size(); iterator++) janela.put(iterator, new Estado());\n } catch (Exception e)\n {\n System.out.println(Utils.prefixo_cliente + Utils.erro_na_leitura);\n System.exit(0);\n }\n } else\n {\n System.out.println(Utils.prefixo_cliente + Utils.arquivo_inexistente);\n System.exit(0);\n }\n }", "FileObject getFile();", "FileObject getFile();", "private String readFile() {\n try {\n BufferedReader in = new BufferedReader(new FileReader(\"C:\\\\Users\"\n + \"\\\\MohammadLoqman\\\\cs61b\\\\sp19-s1547\"\n + \"\\\\proj3\\\\byow\\\\Core\\\\previousGame.txt\"));\n StringBuilder sb = new StringBuilder();\n String toLoad;\n try {\n toLoad = in.readLine();\n while (toLoad != null) {\n sb.append(toLoad);\n sb.append(System.lineSeparator());\n toLoad = in.readLine();\n }\n String everything = sb.toString();\n return everything;\n } catch (IOException E) {\n System.out.println(\"do nothin\");\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"file not found\");\n }\n return null;\n\n }", "private static void readNIO(File file) throws IOException {\n FileChannel channel = new RandomAccessFile(file, \"rw\").getChannel();\n //channel.position(2*N);\n ByteBuffer buf = ByteBuffer.allocateDirect(CHUNK);\n long t = System.nanoTime();\n for (int i = 0; i < N/CHUNK; i++) {\n channel.position(i * CHUNK);\n channel.read(buf);\n }\n System.out.println((System.nanoTime() - t) / 1_000_000 + \" ms \" + channel.position() + \" bytes\");\n\n channel.close();\n }", "@SuppressWarnings(\"unused\")\n private String readFile(File f) throws IOException {\n BufferedReader reader = new BufferedReader(new FileReader(f));\n String line = reader.readLine();\n StringBuilder builder = new StringBuilder();\n while (line != null) {\n builder.append(line).append('\\n');\n line = reader.readLine();\n }\n reader.close();\n return builder.toString();\n }", "public String loadFromFile() {\n StringBuilder sb = new StringBuilder();\n try {\n Log.d(\"DEBUG\", this.context.getPackageName());\n Log.d(\"DEBUG\", this.file);\n FileInputStream fis = context.openFileInput(file);\n BufferedReader br = new BufferedReader(new InputStreamReader(fis, this.encoding));\n String line;\n while(( line = br.readLine()) != null ) {\n sb.append( line );\n sb.append( '\\n' );\n }\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n return sb.toString();\n }", "abstract int read(TextInput ti) throws IOException;" ]
[ "0.5711801", "0.5551352", "0.5438148", "0.54342836", "0.53335094", "0.5287133", "0.52744704", "0.52461344", "0.52250403", "0.52080125", "0.5172898", "0.51399034", "0.5127591", "0.512196", "0.50880414", "0.50787014", "0.50683427", "0.50644034", "0.50608593", "0.5053074", "0.5051734", "0.4990416", "0.49887928", "0.49871078", "0.49793476", "0.49763986", "0.49756685", "0.49621442", "0.4960158", "0.4958464", "0.49540955", "0.49498278", "0.49381226", "0.4931953", "0.49237365", "0.49129498", "0.49026597", "0.48953536", "0.48932207", "0.48920655", "0.48918304", "0.48799288", "0.48766908", "0.4867212", "0.48623413", "0.48609608", "0.48592097", "0.48463663", "0.48350424", "0.483248", "0.48316848", "0.48267543", "0.48233896", "0.48214558", "0.48164877", "0.48151493", "0.4812824", "0.4810299", "0.4805775", "0.47996807", "0.47964326", "0.47951284", "0.47814628", "0.47803146", "0.476532", "0.4757217", "0.4749498", "0.47489876", "0.47437614", "0.47419783", "0.47418308", "0.47403827", "0.47398233", "0.47348934", "0.4733114", "0.47320762", "0.4731355", "0.4727472", "0.47262597", "0.47234446", "0.47173688", "0.47154942", "0.4714195", "0.4705294", "0.47044742", "0.47033963", "0.4702641", "0.46998975", "0.46977746", "0.46968386", "0.46968353", "0.46921948", "0.4692086", "0.46834815", "0.46834815", "0.46827775", "0.46775183", "0.46720254", "0.46712863", "0.46702674" ]
0.7052108
0
reads source file as a String and returns it
private String readFile(String source) throws IOException { StringBuilder contentBuilder = new StringBuilder(); try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) { stream.forEach(s -> contentBuilder.append(s)); } return contentBuilder.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSourceFile();", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n return contentBuilder.toString();\n }", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n }", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(contentBuilder::append);\n }\n return contentBuilder.toString();\n }", "String getSourceString();", "public String readFileIntoString(String sourceFilepath) throws IOException {\n StringBuilder sb = new StringBuilder();\n URL url = new URL(sourceFilepath);\n BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));\n String line = null;\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n reader.close();\n return sb.toString();\n }", "public static String readSourceFile(String rs) throws Exception {\n Class<TestHelper> testHelperClass = TestHelper.class;\n ClassLoader classLoader = testHelperClass.getClassLoader();\n URI uri = classLoader.getResource(rs).toURI();\n byte[] bytes = Files.readAllBytes(Paths.get(uri));\n return new String(bytes, \"UTF-8\");\n }", "@NonNull\n public String getSourceContents() {\n if (mSourceContents == null) {\n File sourceFile = getSourceFile();\n if (sourceFile != null) {\n mSourceContents = getClient().readFile(mSourceFile);\n }\n\n if (mSourceContents == null) {\n mSourceContents = \"\";\n }\n }\n\n return mSourceContents;\n }", "public static String sourceContent()\n {\n read_if_needed_();\n \n return _src_content;\n }", "String getSource();", "private String getStringFromFile() throws FileNotFoundException {\n String contents;\n FileInputStream fis = new FileInputStream(f);\n StringBuilder stringBuilder = new StringBuilder();\n try {\n InputStreamReader inputStreamReader = new InputStreamReader(fis, \"UTF-8\");\n BufferedReader reader = new BufferedReader(inputStreamReader);\n String line = reader.readLine();\n while (line != null) {\n stringBuilder.append(line).append('\\n');\n line = reader.readLine();\n }\n } catch (IOException e) {\n // Error occurred when opening raw file for reading.\n } finally {\n contents = stringBuilder.toString();\n }\n return contents;\n }", "public SourceFile getSourceFile() throws InvalidFormatException;", "java.lang.String getSource();", "java.lang.String getSource();", "public String loadFromFile() {\n StringBuilder sb = new StringBuilder();\n try {\n Log.d(\"DEBUG\", this.context.getPackageName());\n Log.d(\"DEBUG\", this.file);\n FileInputStream fis = context.openFileInput(file);\n BufferedReader br = new BufferedReader(new InputStreamReader(fis, this.encoding));\n String line;\n while(( line = br.readLine()) != null ) {\n sb.append( line );\n sb.append( '\\n' );\n }\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n return sb.toString();\n }", "public static String readFile() {\n\t\tFileReader file;\n\t\tString textFile = \"\";\n\n\t\ttry {\n\t\t\tfile = new FileReader(path);\n\n\t\t\t// Output string.\n\t\t\ttextFile = new String();\n\n\t\t\tBufferedReader bfr = new BufferedReader(file);\n\n\t\t\ttextFile= bfr.readLine();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error reading the file\");\n\t\t}\n\t\treturn textFile;\n\n\t}", "public java.lang.String getSourceFile() {\n java.lang.Object ref = sourceFile_;\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 sourceFile_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "private StringBuffer readFromFile(String src) {\n \t\tif (src == null)\n \t\t\treturn null;\n \t\tInputStream stream = null;\n \t\tStringBuffer content = new StringBuffer();\n \t\tBufferedReader reader = null;\n \t\ttry {\n \t\t\tURL url = new URL(src);\n \t\t\tstream = url.openStream();\n \t\t\t//TODO: Do we need to worry about the encoding here? e.g.:\n \t\t\t//reader = new BufferedReader(new InputStreamReader(stream,\n \t\t\t// ResourcesPlugin.getEncoding()));\n \t\t\treader = new BufferedReader(new InputStreamReader(stream));\n \t\t\twhile (true) {\n \t\t\t\tString line = reader.readLine();\n \t\t\t\tif (line == null) // EOF\n \t\t\t\t\tbreak; // done reading file\n \t\t\t\tcontent.append(line);\n \t\t\t\tcontent.append(IIntroHTMLConstants.NEW_LINE);\n \t\t\t}\n \t\t} catch (Exception exception) {\n \t\t\tLogger.logError(\"Error reading from file\", exception); //$NON-NLS-1$\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (reader != null)\n \t\t\t\t\treader.close();\n \t\t\t\tif (stream != null)\n \t\t\t\t\tstream.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tLogger.logError(\"Error closing input stream\", e); //$NON-NLS-1$\n \t\t\t\treturn null;\n \t\t\t}\n \t\t}\n \t\treturn content;\n \t}", "public static String getFileContentsAsString(String filename) {\n\n // Java uses Paths as an operating system-independent specification of the location of files.\n // In this case, we're looking for files that are in a directory called 'data' located in the\n // root directory of the project, which is the 'current working directory'.\n final Path path = FileSystems.getDefault().getPath(\"Resources\", filename);\n\n try {\n // Read all of the bytes out of the file specified by 'path' and then convert those bytes\n // into a Java String. Because this operation can fail if the file doesn't exist, we\n // include this in a try/catch block\n return new String(Files.readAllBytes(path));\n } catch (IOException e) {\n // Since we couldn't find the file, there is no point in trying to continue. Let the\n // user know what happened and exit the run of the program. Note: we're only exiting\n // in this way because we haven't talked about exceptions and throwing them in CS 126 yet.\n System.out.println(\"Couldn't find file: \" + filename);\n System.exit(-1);\n return null; // note that this return will never execute, but Java wants it there.\n }\n }", "public java.lang.String getSourceFile() {\n java.lang.Object ref = sourceFile_;\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 sourceFile_ = s;\n }\n return s;\n }\n }", "MafSource readSource(File sourceFile);", "java.lang.String getSourceFile(int index);", "public String readFileIntoString(String filepath) throws IOException;", "public String getContent() {\n String s = null;\n try {\n s = new String(Files.readAllBytes(Paths.get(filename)), StandardCharsets.UTF_8);\n }\n catch (IOException e) {\n message = \"Problem reading a file: \" + filename;\n }\n return s;\n }", "public String readFile(){\r\n StringBuffer str = new StringBuffer(); //StringBuffer is a mutable string\r\n Charset charset = Charset.forName(\"UTF-8\"); //UTF-8 character encoding\r\n Path file = Paths.get(filename + \".txt\");\r\n try (BufferedReader reader = Files.newBufferedReader(file, charset)) { // Buffer: a memory area that buffered streams read\r\n String line = null;\r\n while ((line = reader.readLine()) != null) { //Readers and writers are on top of streams and converts bytes to characters and back, using a character encoding\r\n str.append(line + \"\\n\");\r\n }\r\n }\r\n catch (IOException x) {\r\n System.err.format(\"IOException: %s%n\", x);\r\n }\r\n return str.toString();\r\n }", "public static String getStringFromFile(String filename) {\r\n try {\r\n FileInputStream fis = new FileInputStream(filename);\r\n int available = fis.available();\r\n byte buffer[] = new byte[available];\r\n fis.read(buffer);\r\n fis.close();\r\n\r\n String tmp = new String(buffer);\r\n //System.out.println(\"\\nfrom file:\"+filename+\":\\n\"+tmp);\r\n return tmp;\r\n\r\n } catch (Exception ex) {\r\n // System.out.println(ex);\r\n // ex.printStackTrace();\r\n return \"\";\r\n } // endtry\r\n }", "public static String sourceFileToString(String fileName)\n\t{\n\t\t// http://stackoverflow.com/a/15161665/1106708\n\t\tStringBuilder builder = new StringBuilder();\n\t\tInputStream is = Settings.class.getResourceAsStream(fileName);\n\t\tint ch;\n\t\ttry\n\t\t{\n\t\t\twhile((ch = is.read()) != -1)\n\t\t\t{\n\t\t\t builder.append((char)ch);\n\t\t\t}\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn builder.toString();\n\t}", "private static String getSourceFile() {\n\t\tFileChooser fileChooser = new FileChooser(System.getProperty(\"user.home\"),\n\t\t\t\t\"Chose json file containing satellite data!\", \"json\");\n\t\tFile file = fileChooser.getFile();\n\t\tif (file == null) {\n\t\t\tSystem.exit(-42);\n\t\t}\n\t\treturn file.getAbsolutePath();\n\t}", "public static String read(String filename) throws IOException {\n // Reading input by lines:\n BufferedReader in = new BufferedReader(new FileReader(filename));\n// BufferedInputStream in2 = new BufferedInputStream(new FileInputStream(filename));\n String s;\n int s2;\n StringBuilder sb = new StringBuilder();\n while((s = in.readLine())!= null)\n sb.append( s + \"\\n\");\n// sb.append((char) s2);\n in.close();\n return sb.toString();\n }", "public String read() throws Exception {\r\n\t\tBufferedReader reader = null;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tif (input==null) input = new FileInputStream(file);\r\n\t\t\treader = new BufferedReader(new InputStreamReader(input,charset));\r\n\t\t\tchar[] c= null;\r\n\t\t\twhile (reader.read(c=new char[8192])!=-1) {\r\n\t\t\t\tsb.append(c);\r\n\t\t\t}\r\n\t\t\tc=null;\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\treader.close();\r\n\t\t}\r\n\t\treturn sb.toString().trim();\r\n\t}", "public String getSource();", "public String read() {\n\t\tStringBuffer text = new StringBuffer((int)file.length());\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader b = new BufferedReader(fr);\n\t\t\tboolean eof = false;\n\t\t\tString line;\n\t\t\tString ret = \"\\n\";\n\t\t\twhile (!eof) {\n\t\t\t\tline = b.readLine();\n\t\t\t\tif (line == null) {\n\t\t\t\t\teof = true;\n\t\t\t\t} else {\n\t\t\t\t\ttext.append(line);\n\t\t\t\t\ttext.append(ret);\n\t\t\t\t}\n\t\t\t}\n\t\t\tb.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"File \" + file.getName() +\n\t\t\t\t\" is unreadable : \" + e.toString());\n\t\t}\n\t\treturn text.toString();\n\t}", "public String getTemplateSrc(String templateName) throws IOException {\n String outSource = \"\";\n \n try {\n BufferedReader in = new BufferedReader(new FileReader(templateName)); \n String inline;\n \n while ((inline = in.readLine()) != null) {\n outSource += inline + NEWL_;\n }\n in.close();\n } catch (FileNotFoundException e) {\n throw new IOException(\"template error:\" + e.getMessage() + \" not found.\");\n } catch (IOException e) {\n throw new IOException(\"read template error:\" + e.getMessage());\n }\n \n return outSource;\n }", "public static String getAsString(String filePath) {\n\t\tInputStream is = FileUtil.class.getResourceAsStream(filePath);\n\t\treturn getAsString(is);\n\t}", "private static String loadFile(File file) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\treturn br.readLine();\n\t}", "String readFile( String filename ) {\n try {\n FileReader fileReader = new FileReader( filename );\n BufferedReader bufferedReader = new BufferedReader( fileReader );\n StringBuilder stringBuilder = new StringBuilder();\n String line = bufferedReader.readLine();\n while( line != null ) {\n stringBuilder.append( line );\n stringBuilder.append( \"\\n\" );\n line = bufferedReader.readLine();\n }\n bufferedReader.close();\n fileReader.close();\n return stringBuilder.toString();\n } catch( Exception e ) {\n playerObjects.getLogFile().WriteLine( Formatting.exceptionToStackTrace( e ) );\n return null;\n }\n }", "public static String getStringFromFile(String filename) {\r\n BufferedReader br = null;\r\n StringBuilder sb = new StringBuilder();\r\n try {\r\n br = new BufferedReader(new FileReader(filename));\r\n try {\r\n String s;\r\n while ((s = br.readLine()) != null) {\r\n sb.append(s);\r\n sb.append(\"\\n\");\r\n }\r\n } finally {\r\n br.close();\r\n }\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n\r\n return sb.toString();\r\n }", "public String toString() {\n StringBuffer buf = new StringBuffer(\" SourceFile: \\\"\");\n buf.append(sourceFileName);\n buf.append(\"\\\"\\n\");\n return buf.toString();\n }", "SourceFilePath getFilePath();", "private static String loadFile(String path){\n try {\n\n BufferedReader reader = new BufferedReader(new FileReader(path));\n StringBuilder sb = new StringBuilder();\n\n String line;\n while((line = reader.readLine()) != null){\n sb.append(line);\n sb.append('\\n');\n }\n\n reader.close();\n return sb.toString();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return null;\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "String input() {\n\n try {\n\n FileReader reader = new FileReader(\"the text.txt\");\n BufferedReader bufferedReader = new BufferedReader(reader);\n StringBuilder builder = new StringBuilder();\n String line;\n\n while ((line = bufferedReader.readLine()) != null)\n builder.append(line);\n\n return builder.toString();\n\n } catch (IOException e) {\n\n System.out.println(\"Input Failure\");\n return null;\n }\n }", "public String parse(File file);", "private SourceFile _parseString(String txt) throws ParseException {\n ACParser p = new ACParser(txt);\n return p.SourceFile();\n }", "public String readFromFile() throws IOException {\n return br.readLine();\n }", "public String read(String filePath) throws IOException {\r\n\t\t//read file into stream\r\n\t\t\treturn new String(Files.readAllBytes(Paths.get(filePath)));\r\n\t}", "public static String readFromFile(String filename) {\n InputStream is = ResourceUtils.class.getClassLoader().getResourceAsStream(filename);\n return convertStreamToString(is);\n\n }", "public static String readFileAsString(String fileName) {\n String text = \"\";\n\n try {\n text = new String(Files.readAllBytes(Paths.get(fileName)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return text;\n }", "public String read(String filename) {\n StringBuilder stringBuilder = new StringBuilder();\n try (BufferedReader bufferedReader = new BufferedReader(new FileReader(filename))) {\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n stringBuilder.append(line).append(\"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n return stringBuilder.toString();\n }", "java.lang.String getSrc();", "private String readFile() {\n try {\n BufferedReader in = new BufferedReader(new FileReader(\"C:\\\\Users\"\n + \"\\\\MohammadLoqman\\\\cs61b\\\\sp19-s1547\"\n + \"\\\\proj3\\\\byow\\\\Core\\\\previousGame.txt\"));\n StringBuilder sb = new StringBuilder();\n String toLoad;\n try {\n toLoad = in.readLine();\n while (toLoad != null) {\n sb.append(toLoad);\n sb.append(System.lineSeparator());\n toLoad = in.readLine();\n }\n String everything = sb.toString();\n return everything;\n } catch (IOException E) {\n System.out.println(\"do nothin\");\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"file not found\");\n }\n return null;\n\n }", "public String readFromFile(String path) {\n BufferedReader br = null;\n String returnString =\"\";\n try {\n String sCurrentLine;\n br = new BufferedReader(new FileReader(path));\n while ((sCurrentLine = br.readLine()) != null) {\n returnString+=sCurrentLine;\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (br != null)br.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n return returnString;\n }", "public abstract String getSource();", "public static String loadFileAsString(String filePath) throws java.io.IOException{\n\t StringBuffer fileData = new StringBuffer(1000);\n\t BufferedReader reader = new BufferedReader(new FileReader(filePath));\n\t char[] buf = new char[1024];\n\t int numRead=0;\n\t while((numRead=reader.read(buf)) != -1){\n\t String readData = String.valueOf(buf, 0, numRead);\n\t fileData.append(readData);\n\t }\n\t reader.close();\n\t return fileData.toString();\n\t}", "public String readFile(String filename)\n {\n StringBuilder texts = new StringBuilder();\n \n try \n {\n FileReader inputFile = new FileReader(filename);\n Scanner parser = new Scanner(inputFile);\n \n while (parser.hasNextLine())\n {\n String line = parser.nextLine();\n texts.append(line + \";\");\n }\n \n inputFile.close();\n parser.close();\n return texts.toString();\n \n }\n \n catch(FileNotFoundException exception) \n {\n String error = filename + \" not found\";\n System.out.println(error);\n return error;\n }\n \n catch(IOException exception) \n {\n String error = \"Unexpected I/O error occured\";\n System.out.println(error); \n return error;\n } \n }", "private static String readFile(File file) {\n String result = \"\";\n\n try (BufferedReader bufferedReader = new BufferedReader(\n new FileReader(file))) {\n result = bufferedReader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return result;\n }", "public String source(String src)\n\t{\n\t\tint i;\n\t\tString [] toks = src.split(\"\\\\s+\");\n\t\tString ret = toks[sourceStart];\n\t\tfor (i = sourceStart + 1; i < sourceEnd; i++) {\n\t\t\tret += \" \" + toks[i];\n\t\t}\n\t\treturn ret;\n\t}", "private static String ReadFile(String filePath) {\n StringBuilder sb = new StringBuilder();\n try {\n BufferedReader r = new BufferedReader(new FileReader(filePath));\n String line;\n while ((line = r.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n System.out.println(e.getStackTrace());\n }\n return sb.toString();\n\n }", "private String readStringFromFile(final File file) {\n try {\n FileInputStream fin = new FileInputStream(file);\n BufferedReader reader = new BufferedReader(new InputStreamReader(fin));\n StringBuilder sb = new StringBuilder();\n String line = null;\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n reader.close();\n String result = sb.toString();\n fin.close();\n return result;\n } catch (IOException ioEx) {\n Log.e(TAG, \"Error reading String from a file: \" + ioEx.getLocalizedMessage());\n }\n return null;\n }", "public String readFile(){\n\t\tString res = \"\";\n\t\t\n\t\tFile log = new File(filePath);\n\t\tBufferedReader bf = null;\n\t\t\n\t\ttry{\n\t\t\tbf = new BufferedReader(new FileReader(log));\n\t\t\tString line = bf.readLine();\n\t\t\n\t\t\n\t\t\twhile (line != null){\n\t\t\t\tres += line+\"\\n\";\n\t\t\t\tline = bf.readLine();\n\t\t\t}\n\t\t\n\t\t\treturn res;\n\t\t}\n\t\tcatch(Exception oops){\n\t\t\tSystem.err.println(\"There was an error reading the file \"+oops.getStackTrace());\n\t\t\treturn \"\";\n\t\t}\n\t\tfinally{\n\t\t\ttry {\n\t\t\t\tbf.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"There was an error closing the read Buffer \"+e.getStackTrace());\n\t\t\t}\n\t\t}\n\t}", "public String ReadFile() throws IOException {\n File file = context.getFilesDir();\n File textfile = new File(file + \"/\" + this.fileName);\n\n FileInputStream input = context.openFileInput(this.fileName);\n byte[] buffer = new byte[(int)textfile.length()];\n\n input.read(buffer);\n\n return new String(buffer);\n }", "private static String file2string(String file) {\n StringBuilder sb = new StringBuilder();\n try {\n BufferedReader br = new BufferedReader(new FileReader(new File(file)));\n String line;\n\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return (sb != null) ? sb.toString() : \"\";\n }", "public String getSource ();", "public static String read(String filename) {\n StringBuilder sb = new StringBuilder();\n try {\n FileReader fr = new FileReader(new File(filename));\n BufferedReader br = new BufferedReader(fr);\n String s;\n while ((s = br.readLine()) != null) {\n sb.append(s).append(\"\\n\");\n }\n br.close();\n fr.close();\n } catch (FileNotFoundException ex) {\n } catch (IOException ex) {\n }\n return sb.toString();\n }", "public String readFile(String fName) {\n String msg=\"\";\n try {\n File theFile = new File(fName);\n InputStreamReader iStream = new InputStreamReader(new FileInputStream(theFile));\n int length = (int)theFile.length();\n char input[] = new char[length];\n iStream.read(input);\n msg = new String(input);\n } catch (IOException e) {\n e.printStackTrace();\n } // catch\n return msg;\n }", "public static String getStringFromFile(String filename) {\n if (Logger.get().isDebug()) {\n Logger.debug(\"Reading file {}\", filename);\n }\n List<String> read = FileKit.readLines(filename);\n if (!read.isEmpty()) {\n if (Logger.get().isTrace()) {\n Logger.trace(\"Read {}\", read.get(0));\n }\n return read.get(0);\n }\n return Normal.EMPTY;\n }", "public final String getStringFromFile(final int length) throws IOException {\r\n\r\n if (length <= 0) {\r\n return new String(\"\");\r\n }\r\n\r\n byte[] b = new byte[length];\r\n raFile.readFully(b);\r\n final String s = new String(b);\r\n b = null;\r\n return s;\r\n }", "public static String readTextStream(String filename) throws IOException {\n StringBuffer sb = new StringBuffer();\n BufferedReader fileReader = new BufferedReader(new InputStreamReader(FileHelper.class.getClassLoader().getResourceAsStream(filename)));\n FileHelper.read(sb, fileReader);\n return sb.toString();\n }", "public String getSourceFileName() { return sourceFileName; }", "public void source(String path) throws Exception;", "public static String readFileToString (File file) {\n try {\n final var END_OF_FILE = \"\\\\z\";\n var input = new Scanner(file);\n input.useDelimiter(END_OF_FILE);\n var result = input.next();\n input.close();\n return result;\n }\n catch(IOException e){\n return \"\";\n }\n }", "private String readAndProcessSourceFile(String fileName, HashMap<String, String> substitutions) {\r\n try {\r\n // Read the source file packaged as a resource\r\n BufferedReader br = new BufferedReader(new InputStreamReader(\r\n getClass().getClassLoader().getResourceAsStream(fileName)));\r\n StringBuffer sb = new StringBuffer();\r\n try {\r\n String line = null;\r\n while (true) {\r\n line = br.readLine();\r\n if (line == null) {\r\n break;\r\n }\r\n sb.append(line + \"\\n\");\r\n }\r\n }\r\n finally {\r\n br.close();\r\n }\r\n String text = sb.toString();\r\n\r\n // Handle substitutions as key-value pairs where key is a regular expression and value is the substitution\r\n if (substitutions != null) {\r\n for (Entry<String, String> s : substitutions.entrySet()) {\r\n Pattern p = Pattern.compile(s.getKey());\r\n Matcher m = p.matcher(text);\r\n sb = new StringBuffer();\r\n while (m.find()) {\r\n m.appendReplacement(sb, m.group(1) + s.getValue());\r\n }\r\n m.appendTail(sb);\r\n text = sb.toString();\r\n }\r\n }\r\n\r\n return text;\r\n }\r\n catch (IOException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }", "public String ReadFile(String sFilePath) throws Exception {\n File f = null;\n FileInputStream fstream = null;\n String stemp = \"\";\n try {\n //getting file oject\n f = new File(sFilePath);\n //get object for fileinputstream\n fstream = new FileInputStream(f);\n //getting byte array length\n byte data[] = new byte[fstream.available()];\n //getting file stream data into byte array\n fstream.read(data);\n //storing byte array data into String\n stemp = new String(data);\n return stemp;\n } catch (Exception e) {\n throw new Exception(\"ReadFile : \" + e.toString());\n } finally {\n try {\n fstream.close();\n } catch (Exception e) {\n }\n }\n }", "public String readFileContents(String filename) {\n return null;\n\n }", "Source getSrc();", "public void load(File source);", "public String parseSrc() throws Exception{\n\t\tr = new FileReader(userArg); \r\n\t\tst = new StreamTokenizer(r);\r\n\t\t st.eolIsSignificant(true);\r\n\t\t st.commentChar(46);\r\n\t\t st.whitespaceChars(9, 9);\r\n\t\t st.whitespaceChars(32, 32);\r\n\t\t st.wordChars(39, 39);\r\n\t\t st.wordChars(44, 44);\r\n\t\t \r\n\t\t //first we check for a specified start address\r\n\t\t while (InstructionsRead < 2) {\r\n\t\t \tif (st.sval != null) {\r\n\t\t \t\tInstructionsRead++;\r\n\t\t \t\tif (st.sval.equals(\"START\")) {\r\n\t\t \t\twhile(st.ttype != StreamTokenizer.TT_NUMBER) {\r\n\t\t \t\t\tst.nextToken();\r\n\t\t \t\t}\r\n\t\t \t\tDDnval = st.nval;\r\n\t\t \t\tstartAddress = Integer.parseInt(\"\" + DDnval.intValue(), 16);\r\n\t\t \t\tlocctr = startAddress;\r\n\t\t \t\tsLocctr = Integer.toHexString(locctr.intValue());\r\n\t\t \t\tif (sLocctr.length() == 1) {\r\n\t\t \t\t\tSystem.out.println(\"locctr: 000\" + Integer.toHexString(locctr.intValue()));\r\n\t\t \t\t}\r\n\t\t \t\telse if (sLocctr.length() == 2) {\r\n\t\t \t\t\tSystem.out.println(\"locctr: 00\" + Integer.toHexString(locctr.intValue()));\r\n\t\t \t\t}\r\n\t\t \t\telse if (sLocctr.length() == 3 ) {\r\n\t\t \t\t\tSystem.out.println(\"locctr: 0\" + Integer.toHexString(locctr.intValue()));\r\n\t\t \t\t}\r\n\t\t \t\telse {\r\n\t\t \t\t\tSystem.out.println(\"locctr: \" + Integer.toHexString(locctr.intValue()));\r\n\t\t \t\t}\r\n\t\t \t\t//writer.write(\"\" + locctr); //should write to IF, not working yet 2/15/2011\r\n\t\t \t\tstartSpecified = true;\r\n\t\t \t\t}\r\n\t\t \t\telse if (!st.sval.equals(\"START\") && InstructionsRead < 2) { //this should be the program name, also could allow for label here potentially...\r\n\t\t \t\t\t//this is the name of the program\r\n\t\t \t\t\t//search SYMTAB for label etc. \r\n\t\t \t\t\tname = st.sval;\r\n\t\t \t\t}\r\n\t\t \t}\r\n\t\t st.nextToken();\r\n\t\t }\r\n\t\t if (!startSpecified) {\r\n\t\t \tstartAddress = 0;\r\n\t\t \tlocctr = startAddress;\r\n\t\t }\r\n\t\t startAddress2 = startAddress;\r\n\t\t /*\r\n\t\t ATW = Integer.toHexString(startAddress2.intValue());\r\n\t\t \r\n\t\t for (int i = 0; i<(6-ATW.length()); i++){\r\n\t\t \tmyWriter.write(\"0\");\r\n\t\t }\r\n\t\t myWriter.write(ATW);\r\n\t\t myWriter.newLine();//end of line for now; in ReadIF when this line is read and translated to object code, the program length will be tacked on the end\r\n\t\t */\r\n\t\t \r\n\t\t //Now that startAddress has been established, we move on to the main parsing loop\r\n\t\t while (st.ttype != StreamTokenizer.TT_EOF) { //starts parsing to end of file\r\n\t\t \t//System.out.println(\"Stuck in eof\");\r\n\t\t \t//iLocctr = locctr.intValue();\r\n\t\t \tinstFound = false;\r\n\t\t \topcodeDone = false;\r\n\t\t \tlabelDone = false;\r\n\t\t \tmoveOn = true;\r\n\t\t \t//constantCaseW = false;\r\n\t\t \tconstantCaseB = false;\r\n\t\t \txfound = false;\r\n\t\t \tcfound = false;\r\n\t\t \t\r\n\t\t \tInstructionsRead = 0; //init InsRead to 0 at the start of each line\r\n\t\t \tSystem.out.println(\"new line\");\r\n\t\t \tSystem.out.println(\"Ins read: \" + InstructionsRead);\r\n\t\t \tsLocctr = Integer.toHexString(locctr.intValue());\r\n\t \t\tif (sLocctr.length() == 1) {\r\n\t \t\t\tSystem.out.println(\"locctr: 000\" + Integer.toHexString(locctr.intValue()));\r\n\t \t\t}\r\n\t \t\telse if (sLocctr.length() == 2) {\r\n\t \t\t\tSystem.out.println(\"locctr: 00\" + Integer.toHexString(locctr.intValue()));\r\n\t \t\t}\r\n\t \t\telse if (sLocctr.length() == 3 ) {\r\n\t \t\t\tSystem.out.println(\"locctr: 0\" + Integer.toHexString(locctr.intValue()));\r\n\t \t\t}\r\n\t \t\telse {\r\n\t \t\t\tSystem.out.println(\"locctr: \" + Integer.toHexString(locctr.intValue()));\r\n\t \t\t}\r\n\t\t \tif (foundEnd()) {\r\n\t\t \t\tbreak;\r\n\t\t \t}\r\n\t\t \twhile (st.ttype != StreamTokenizer.TT_EOL) {//breaks up parsing by lines so that InstructionsRead will be a useful count\r\n\t\t \t\t\r\n\t\t \t\tmoveOn = true;\r\n\t\t \t\tif (st.ttype == StreamTokenizer.TT_WORD) { \r\n\t\t \t\t\tInstructionsRead++;\r\n\t\t \t\t\tSystem.out.println(st.sval);\r\n\t\t \t\t\tSystem.out.println(\"Instructions Read: \" + InstructionsRead);\r\n\t\t \t\t\tif (foundEnd()) {\r\n\t\t \t\t\t\tbreak;\r\n\t\t \t\t\t}\r\n\t\t \t\t\t/*\r\n\t\t \t\t\t * The whole instructinsread control architecture doesn't quite work, because\r\n\t\t \t\t\t * the ST doesn't count the whitespace it reads in. This is by design because\r\n\t\t \t\t\t * the prof specified that whitespace is non-regulated and thus we cannot\r\n\t\t \t\t\t * predict exactly how many instances of char dec value 32 (space) will appear\r\n\t\t \t\t\t * before and/or between the label/instruction/operand 'fields'. \r\n\t\t \t\t\t * \r\n\t\t \t\t\t * What we could try alternatively is to structure the control around'\r\n\t\t \t\t\t * the optab, since it it static and populated pre-runtime. The schema might\r\n\t\t \t\t\t * go something like this: first convert whatever the sval or nval is to string.\r\n\t\t \t\t\t * Then call the optab.searchOpcode method with the resultant string as the input\r\n\t\t \t\t\t * parameter. If the string is in optab then it is an instruction and the ST is in the\r\n\t\t \t\t\t * instruction 'field' and boolean foundInst is set to true. If it is not in optab AND a boolean variable foundInst which resets to\r\n\t\t \t\t\t * false at the beginning of each new line is still false, then it is a label being declared in the label 'field'\r\n\t\t \t\t\t * If it is not in the optab AND foundInst is true, then the ST is at the operand 'field'.\r\n\t\t \t\t\t * This should work even if the prof has a crappy line with just a label declaration and no instruction or operand, because there\r\n\t\t \t\t\t * definitely cannot be an operand without an instruction...\r\n\t\t \t\t\t */\r\n\t\t \t\t\tif (instFound){\r\n\t\t \t\t\t\tprocessOperand(st);\r\n\t\t \t\t\t}\r\n\t\t \t\t\tif (!instFound) {//this is either label or instruction field\r\n\t\t \t\t\t\t//before anything, search optab to see if this might be the opcode\r\n\t\t \t\t\t\t//if it is an opcode, send it to the opcode processing function\r\n\t\t \t\t\t\tif (st.sval.equals(\"WORD\") || st.sval.equals(\"BYTE\")){//these are the directives... not technically instructions, but they go in the instruction field\r\n\t\t \t\t\t\t\tresCount = 0;\r\n\t\t \t\t\t\t\tif (st.sval.equals(\"WORD\")){\r\n\t\t \t\t\t\t\t\tif (hexDigitCount >= 55){\r\n\t\t \t\t\t\t\t\t\tnewTHandle();\r\n\t\t \t\t\t\t\t\t}\r\n\t\t \t\t\t\t\t\thexDigitCount += 6;\r\n\t\t \t\t\t\t\t}\r\n\t\t \t\t\t\t\tif (st.sval.equals(\"BYTE\")){\r\n\t\t \t\t\t\t\t\tconstantCaseB = true;\r\n\t\t \t\t\t\t\t}\r\n\t\t \t\t\t\t\tinstFound = true;\r\n\t\t \t\t\t\t\tprocessOpcode(st);\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\telse if (st.sval.equals(\"RESW\") || st.sval.equals(\"RESB\")){//these are the directives... not technically instructions, but they go in the instruction field\r\n\t\t \t\t\t\t\tresCount++;\r\n\t\t \t\t\t\t\tnewTHandle();\r\n\t\t \t\t\t\t\tinstFound = true;\r\n\t\t \t\t\t\t\tprocessOpcode(st);\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\telse if (optab.searchOpcode(st.sval)) {//if true this is the instruction\r\n\t\t \t\t\t\t\tresCount = 0;\r\n\t\t \t\t\t\t\tif (hexDigitCount >= 55){\r\n\t \t\t\t\t\t\t\tnewTHandle();\r\n\t \t\t\t\t\t\t}\r\n\t\t \t\t\t\t\thexDigitCount += 6;\r\n\t\t \t\t\t\t\tinstFound = true;\r\n\t\t \t\t\t\t\tprocessOpcode(st);\r\n\t\t \t\t\t\t\t//InstructionsRead++;\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\telse {//otherwise this is the label\r\n\t\t \t\t\t\t\tprocessLabel(st);\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\t\r\n\t\t \t\t\t\t\r\n\t\t \t\t\t\t\r\n\t\t \t\t\t}\r\n\t\t \t\t\t//else{ //if instFound is true, this must be the operand field\r\n\t\t \t\t\t\t\r\n\t\t \t\t\t\t//processOperand(st);\r\n\t\t \t\t\t//}\r\n\t\t \t\t\t//if (InstructionsRead == 3) {//this is the operand field\r\n\t\t \t\t\t\t//processOperand();\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\tif (st.ttype == StreamTokenizer.TT_NUMBER) {\r\n\t\t \t\t\tInstructionsRead++;\r\n\t\t \t\t\tif (!instFound) {//this is either label or instruction field\r\n\t\t \t\t\t\t//before anything, search optab to see if this might be the opcode\r\n\t\t \t\t\t\t//if it is an opcode, send it to the opcode processing function\r\n\t\t \t\t\t\tif (NtoString(st.nval).equals(\"WORD\") || NtoString(st.nval).equals(\"BYTE\")){//these are the directives... not technically instructions, but they go in the instruction field\r\n\t\t \t\t\t\t\tresCount = 0;\r\n\t\t \t\t\t\t\tif (NtoString(st.nval).equals(\"WORD\")){\r\n\t\t \t\t\t\t\t\tif (hexDigitCount >= 55){\r\n\t\t \t\t\t\t\t\t\tnewTHandle();\r\n\t\t \t\t\t\t\t\t}\r\n\t\t \t\t\t\t\t\thexDigitCount += 6;\r\n\t\t \t\t\t\t\t}\r\n\t\t \t\t\t\t\tif (NtoString(st.nval).equals(\"BYTE\")){\r\n\t\t \t\t\t\t\t\tconstantCaseB = true;\r\n\t\t \t\t\t\t\t}\r\n\t\t \t\t\t\t\tinstFound = true;\r\n\t\t \t\t\t\t\tprocessOpcodeN(st);\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\tif (NtoString(st.nval).equals(\"RESW\") || NtoString(st.nval).equals(\"RESB\")){//these are the directives... not technically instructions, but they go in the instruction field\r\n\t\t \t\t\t\t\tresCount++;\r\n\t\t \t\t\t\t\tnewTHandle();\r\n\t\t \t\t\t\t\tinstFound = true;\r\n\t\t \t\t\t\t\tprocessOpcodeN(st);\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\telse if (optab.searchOpcode(\"\" + st.nval)) {\r\n\t\t \t\t\t\t\tresCount = 0;\r\n\t\t \t\t\t\t\tif (hexDigitCount >= 55){\r\n\t \t\t\t\t\t\t\tnewTHandle();\r\n\t \t\t\t\t\t\t}\r\n\t\t \t\t\t\t\thexDigitCount += 6;\r\n\t\t \t\t\t\t\tinstFound = true;\r\n\t\t \t\t\t\t\tprocessOpcodeN(st);\r\n\t\t \t\t\t\t\t//InstructionsRead++;\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\telse {\r\n\t\t \t\t\t\t\tprocessLabelN(st);\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\t\r\n\t\t \t\t\t}\r\n\t\t \t\t\telse{ //this is the operand field\r\n\t\t \t\t\t\tprocessOperandN(st);\r\n\t\t \t\t\t}\r\n\t\t \t\t}\r\n\t\t \t\t\r\n\t\t \tif (moveOn){\r\n\t\t \tst.nextToken(); //read next token in current line\r\n\t\t \t}\r\n\t\t \t}\r\n\t\t \t////write line just finished to IF eventually\r\n\t\t if (moveOn){\r\n\t\t st.nextToken(); //read first token of next line\t\r\n\t\t }\r\n\t\t }\r\n\t\t programLength = (locctr - startAddress); \r\n\t\t programLength2 = programLength;\r\n\t\t System.out.println(\" !!prgmlngth2:\" + Integer.toHexString(programLength2.intValue()));\r\n\t\t /*\r\n\t\t sProgramLength = Integer.toHexString(programLength2.intValue());\r\n\t\t for (int i = 0; i<(6-sProgramLength.length()); i++){\r\n\t\t \tmyWriter.write(\"0\");\r\n\t\t }\r\n\t\t myWriter.write(sProgramLength);\r\n\t\t myWriter.close();\r\n\t\t ////myWriter.close();\r\n\t\t \r\n\t\t */\r\n\t\t r.close();\r\n\t\t System.out.println(\"?????!?!?!?!?ALPHA?!?!?!?!?!??!?!?!\");\r\n\t\t if (hexDigitCount/2 < 16){\r\n\t\t \tlineLength.add(\"0\" + Integer.toHexString(hexDigitCount/2));\r\n\t\t }\r\n\t\t else{\r\n\t\t lineLength.add(Integer.toHexString(hexDigitCount/2));\r\n\t\t }\r\n\t\t for (int i = 0; i<lineLength.size(); i++){\r\n\t\t System.out.println(lineLength.get(i));\r\n\t\t }\r\n\t\t // System.out.println(hexDigitCount);\r\n\t\t ReadIF pass2 = new ReadIF(this.optab,this.symtab,this.startAddress2,this.programLength2,this.name,this.lineLength,this.userArg);\r\n\t\t return st.sval;\r\n\t\t \r\n\t\t\r\n\r\n\t}", "public static String getFileInput( String resource ){\t\n\t\tString input = new String();\n\t\t\n\t\ttry { // try to catch all errors\n\t\t\t// get file path to resource\n\t\t\tString resourcePath = getResourcePath( resource );\n\t\t\t\n\t\t\t// create path object to file\n\t\t\tPath path = FileSystems.getDefault().getPath( resourcePath );\n\t\t\t\n\t\t\t// read all lines use java-7-Files to read in an efficient way\n\t\t\tList<String> inputLines = Files.readAllLines( path, Charsets.UTF_8 );\n\t\t\t\n\t\t\t// organize lines into string\n\t\t\tfor ( String line : inputLines ) {\n\t\t\t\tinput += line + \"\\n\";\n\t\t\t}\n\t\t} catch ( IllegalArgumentException iae ) { // cannot found file\n\t\t\tSystem.err.println( \"No resources found at: \" + resource );\n\t\t\tiae.printStackTrace();\n\t\t} catch ( IllegalStateException ise ) { // cannot walk through directory tree\n\t\t\tSystem.err.println( \"Cannot get resources from: \" + resource );\n\t\t\tSystem.err.println();\n\t\t\tise.printStackTrace();\n\t\t} catch ( SecurityException se ) { // absence of rights to read from file\n\t\t\tSystem.err.println( \"You need the rights to read from file: \" + resource );\n\t\t\tSystem.err.println();\n\t\t\tse.printStackTrace();\n\t\t} catch ( IOException ioe ) { // cannot read from file\n\t\t\tSystem.err.println( \"An error has occurred. Cannot read from file: \" + resource );\n\t\t\tSystem.err.println();\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\t\n\t\t// return input\n\t\treturn input;\n\t}", "private String readFile(String file) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(file), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n\n }", "public static String readFileAsString(String filePath, String encoding) {\n\t\tbyte[] buffer = new byte[(int) new File(filePath).length()];\n\t\tBufferedInputStream f = null;\n\t\ttry {\n\t\t\tFile file = new File(filePath);\n\t\t\tfor (int attempt = 0; attempt < 3; attempt++) {\n\t\t\t\tif (file.exists()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tThread.sleep(2);\n\t\t\t}\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tSystem.err.println(\"\\nfile not found: \" + filePath);\n\t\t\t\tthrow new FileNotFoundException(\"Could not find file: \" + filePath);\n\t\t\t}\n\n\t\t\tf = new BufferedInputStream(new FileInputStream(filePath));\n\t\t\tf.read(buffer);\n\t\t} catch (IOException e) {\n\t\t\tthrow new UncheckedExecutionException(e);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (f != null)\n\t\t\t\ttry {\n\t\t\t\t\tf.close();\n\t\t\t\t} catch (IOException ignored) {\n\t\t\t\t}\n\t\t}\n\t\tString contents = null;\n\t\ttry {\n\t\t\tcontents = new String(buffer, encoding);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn contents;\n\t}", "public final Artifact getSourceFile() {\n return compileCommandLine.getSourceFile();\n }", "public interface SourceFileReader {\n\t\n\t/**\n\t * Reads a file and returns its content in a List\n\t * @param fileReaderType the location of a file \n\t * (<b>local</b> for locally stored files, \n\t * <b>web</b> for files stored on the web). \n\t * @param filepath the url of the file\n\t * @return a List that contains the contents of the file \n\t * or null if the type is neither <b>local</b> nor <b>web</b>\n\t * @throws IOException\n\t */\n\tpublic List<String> readFileIntoList(String filepath) throws IOException;\n\t\n\t/**\n\t * Reads a file and returns its content in a single String\n\t * @param fileReaderType the location of a file \n\t * (<b>local</b> for locally stored files, \n\t * <b>web</b> for files stored on the web). \n\t * @param filepath the url of the file\n\t * @return a String that contains the contents of the file\n\t * or null if the type is neither <b>local</b> nor <b>web</b>\n\t * @throws IOException\n\t */\n\tpublic String readFileIntoString(String filepath) throws IOException;\n\n}", "private static String getContent() throws IOException\n\t{\n\t\tString instr = \"\";\n\t\ttry\n\t\t{\n\t\t\tStream<String> lines = Files.lines(Paths.get(\"input.txt\"));\n\t\t\tinstr = lines.skip(currentFilePointer).findFirst().get();\n\t\t\tinstr = instr.replaceAll(\"#\", \"\");\n\t\t\tinstr = instr.replaceAll(\",\", \"\");\n\t\t\tcurrentFilePointer++;\n\t\t\tcurrentPC = currentPC + 4;\n\t\t\tSystem.out.println(\"-------------------------Instruction Address : \" + currentPC + \"------------------------\");\n\n\t\t} catch (Exception ex)\n\t\t{\n//\t\t\t ex.printStackTrace();\n\t\t}\n\t\treturn instr;\n\t}", "java.lang.String getSrcPath();", "protected static String getSource(String url) {\n String source = \"\";\n try {\n URL link = new URL(url);\n BufferedReader reader =\n new BufferedReader(new InputStreamReader(link.openStream(), \"UTF-8\"));\n String input;\n while ((input = reader.readLine()) != null) {\n if (input.trim().equals(\"\"))\n continue;\n source += (source.equals(\"\") ? \"\" : \"\\n\") + input;\n }\n reader.close();\n } catch (MalformedURLException e) {\n throw new RuntimeException(\"[Source:43] The URL provided does not exist or invalid.\");\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(\"[Source:45] The site farted, we can't even comprehend the \" +\n \"encoding of the \" +\n \"character.\");\n } catch (IOException e) {\n throw new RuntimeException(\"[Source:47] Something interrupted the connection or failed to \" +\n \"operate.\");\n }\n return source;\n }", "private String getFileContent(String filePath) {\r\n\r\n\t\ttry {\r\n\t\t\tString text = new String(Files.readAllBytes(Paths.get(filePath)), StandardCharsets.UTF_8);\r\n\t\t\treturn text;\r\n\t\t} catch (Exception ex) {\r\n\t\t\treturn \"-1\";\r\n\t\t}\r\n\t}", "public String getSourceString() {\n return sourceString;\n }", "private String getFileContent(java.io.File fileObj) {\n String returned = \"\";\n try {\n java.io.BufferedReader reader = new java.io.BufferedReader(new java.io.FileReader(fileObj));\n while (reader.ready()) {\n returned = returned + reader.readLine() + lineSeparator;\n }\n } catch (FileNotFoundException ex) {\n JTVProg.logPrint(this, 0, \"файл [\" + fileObj.getName() + \"] не найден\");\n } catch (IOException ex) {\n JTVProg.logPrint(this, 0, \"[\" + fileObj.getName() + \"]: ошибка ввода/вывода\");\n }\n return returned;\n }", "public com.google.protobuf.ByteString\n getSourceFileBytes() {\n java.lang.Object ref = sourceFile_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n sourceFile_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString\n getSourceFileBytes();", "public static String getStringFromFile(Context context, String filePath) throws IOException {\n final InputStream stream = context.getResources().getAssets().open(filePath);\n String ret = convertStreamToString(stream);\n stream.close();\n return ret;\n }", "public String textExtractor(String filePath) {\n\n StringBuilder textBuilder = new StringBuilder();\n try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(\"/\" + filePath), \"UTF-8\"))) {\n while (bufferedReader.ready()) {\n textBuilder.append(bufferedReader.readLine()).append(\"/n\");\n }\n\n } catch (IOException exc) {\n exc.printStackTrace();\n }\n return textBuilder.toString();\n }", "String getFile();", "String getFile();", "String getFile();", "public static String readFileAsString(String filePath) {\n\t\tbyte[] buffer = new byte[(int) new File(filePath).length()];\n\t\tBufferedInputStream f = null;\n\t\ttry {\n\t\t\tFile file = new File(filePath);\n\t\t\tfor (int attempt = 0; attempt < 3; attempt++) {\n\t\t\t\tif (file.exists()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tThread.sleep(2);\n\t\t\t}\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tSystem.err.println(\"\\nfile not found: \" + filePath);\n\t\t\t\tthrow new FileNotFoundException(\"Could not find file: \" + filePath);\n\t\t\t}\n\n\t\t\tf = new BufferedInputStream(new FileInputStream(filePath));\n\t\t\tf.read(buffer);\n\t\t} catch (IOException e) {\n\t\t\tthrow new UncheckedExecutionException(e);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (f != null)\n\t\t\t\ttry {\n\t\t\t\t\tf.close();\n\t\t\t\t} catch (IOException ignored) {\n\t\t\t\t}\n\t\t}\n\t\treturn new String(buffer);\n\t}", "public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public final String getSourceFile() {\n return this.sourceFile;\n }", "private static String readFile(String fileName) throws IOException {\n\t\tReader reader = new FileReader(fileName);\n\n\t\ttry {\n\t\t\t// Create a StringBuilder instance\n\t\t\tStringBuilder sb = new StringBuilder();\n\n\t\t\t// Buffer for reading\n\t\t\tchar[] buffer = new char[1024];\n\n\t\t\t// Number of read chars\n\t\t\tint k = 0;\n\n\t\t\t// Read characters and append to string builder\n\t\t\twhile ((k = reader.read(buffer)) != -1) {\n\t\t\t\tsb.append(buffer, 0, k);\n\t\t\t}\n\n\t\t\t// Return read content\n\t\t\treturn sb.toString();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\treader.close();\n\t\t\t} catch (IOException ioe) {\n\t\t\t\t// Ignore\n\t\t\t}\n\t\t}\n\t}", "@java.lang.Override\n public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n }\n }" ]
[ "0.7756715", "0.76174396", "0.754522", "0.7433939", "0.7291035", "0.7249035", "0.72143316", "0.7166489", "0.7163222", "0.7017619", "0.70122546", "0.70076466", "0.6917472", "0.6917472", "0.6906425", "0.68855935", "0.68690646", "0.6855423", "0.6848636", "0.6837127", "0.6826983", "0.6799172", "0.67945033", "0.67546266", "0.67074555", "0.6655461", "0.66529506", "0.66412616", "0.663294", "0.66078204", "0.65953386", "0.65605557", "0.6558852", "0.6551824", "0.653749", "0.6530811", "0.6528155", "0.65178174", "0.6505937", "0.6503903", "0.6490076", "0.6488271", "0.6476209", "0.6472651", "0.64345944", "0.64340216", "0.64304656", "0.64265954", "0.6408012", "0.6399319", "0.63928396", "0.6392412", "0.6387626", "0.6370802", "0.63670135", "0.6361968", "0.6352407", "0.6348647", "0.6330584", "0.63222986", "0.63064915", "0.6299948", "0.62975484", "0.6280795", "0.627172", "0.62715775", "0.6254433", "0.62424666", "0.62411493", "0.6230332", "0.62287885", "0.62231296", "0.62227404", "0.62200195", "0.621299", "0.6192739", "0.61803234", "0.6175777", "0.6164387", "0.6158585", "0.6148485", "0.6143011", "0.6135944", "0.61318755", "0.6130895", "0.6130591", "0.61206627", "0.61183906", "0.6114087", "0.61000866", "0.6098494", "0.60961473", "0.60961473", "0.60961473", "0.60907936", "0.6088744", "0.6088744", "0.6071192", "0.606953", "0.60633934" ]
0.7588872
2
EFFECTS: gets Tamagotchi object from JSON object and return it
private Tamagotchi tamagotchiToJson(JSONObject jsonObject) { String name = jsonObject.getString("name"); Tamagotchi tr = new Tamagotchi(name); return tr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Tamagotchi read() throws IOException {\n String jsonData = readFile(source);\n JSONObject jsonObject = new JSONObject(jsonData);\n return tamagotchiToJson(jsonObject);\n }", "public native Object parse( Object json, String texturePath );", "private static FluidIngredient deserializeObject(JsonObject json) {\n if (json.entrySet().isEmpty()) {\n return EMPTY;\n }\n\n // fluid match\n if (json.has(\"name\")) {\n // don't set both, obviously an error\n if (json.has(\"tag\")) {\n throw new JsonSyntaxException(\"An ingredient entry is either a tag or an fluid, not both\");\n }\n\n // parse a fluid\n return FluidMatch.deserialize(json);\n }\n\n // tag match\n if (json.has(\"tag\")) {\n return TagMatch.deserialize(json);\n }\n\n throw new JsonSyntaxException(\"An ingredient entry needs either a tag or an fluid\");\n }", "@Override\r\n\tpublic JSONObject getJSON() {\n\t\treturn tenses;\r\n\t}", "public static void transferPotionMeta(PotionMeta meta, JsonObject json, boolean meta2json)\r\n \t{\r\n \t\tif (meta2json)\r\n \t\t{\r\n \t\t\tif (!meta.hasCustomEffects()) return;\r\n \t\t\tjson.add(POTION_EFFECTS, convertPotionEffectList(meta.getCustomEffects()));\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tJsonElement element = json.get(POTION_EFFECTS);\r\n \t\t\tif (element == null) element = json.get(POTION_EFFECTS_OLD);\r\n \t\t\tif (element == null) return;\r\n \r\n \t\t\tmeta.clearCustomEffects();\r\n \t\t\tfor (PotionEffect pe : convertPotionEffectList(element))\r\n \t\t\t{\r\n \t\t\t\tmeta.addCustomEffect(pe, false);\r\n \t\t\t}\r\n \t\t}\r\n \t}", "private Alvo retornaAlvo(JSONObject jsonAlvo){\n\n Alvo alvoTemp = null;\n\n String divisao = ((JSONObject) jsonAlvo).get(\"divisao\").toString();\n String tipo = ((JSONObject) jsonAlvo).get(\"tipo\").toString();\n\n alvoTemp= new Alvo(tipo, divisao);\n return alvoTemp;\n }", "public static <T> T pasarAObjeto(String json, Class<T> tipo) {\r\n try {\r\n ObjectMapper mapper = getBuilder().build();\r\n return mapper.readValue(json, tipo);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "GameObject getObject();", "void mo28373a(JSONObject jSONObject);", "@SuppressWarnings(\"unchecked\")\n\tpublic Question jsonToQuestion(JSONObject jsonobj){\n\t\t//Extract link\n\t\tString link = (String) jsonobj.get(\"Link\");\n\t\t\n\t\t//Extract title\n\t\tString title = (String) jsonobj.get(\"Title\");\n\t\t\n\t\t//Extract explanation\n\t\tString exp = (String) jsonobj.get(\"Explanation\");\n\t\t\n\t\t//Extract tips\n\t\tString tips = (String) jsonobj.get(\"Tips\");\n\t\t\n\t\t//Extract warnings\n\t\tString warnings = (String) jsonobj.get(\"Warnings\");\n\t\t\n\t\t//Extract link of video\n\t\tString video = (String) jsonobj.get(\"Video\");\n\t\t\n\t\t//Extract category\n\t\tArrayList<Category> category = new ArrayList<Category>();\n\t\tArrayList<String> cate_string = new ArrayList<String>();\n\t\tJSONArray categoryJ = (JSONArray) jsonobj.get(\"Category\");\n\t\tIterator<String> iteratorC = categoryJ.iterator();\n\t\twhile (iteratorC.hasNext()) {\n\t\t\tcate_string.add(iteratorC.next());\n\t\t}\n\t\tcate_string.add(0, \"\");\n\t\tcate_string.add(cate_string.size(), \"\");\n\t\tfor (int k=1; k<cate_string.size()-1; k++){\t\t\n\t\t\tCategory newCate = new Category(cate_string.get(k), cate_string.get(k-1), cate_string.get(k+1));\n\t\t\tcategory.add(newCate);\n\t\t}\n\t\t\n\t\t//Extract things\n\t\tArrayList<Things> things = new ArrayList<Things>();\n\t\tJSONArray thingJ = (JSONArray) jsonobj.get(\"Things\");\n\t\tIterator<JSONObject> iteratorT = thingJ.iterator();\n\t\twhile (iteratorT.hasNext()) {\n\t\t\tJSONObject thing = iteratorT.next();\n\t\t\t//Title of method\n\t\t\tString title_thing = (String) thing.get(\"Title\");\n\t\t\t//List of things of this method\n\t\t\tArrayList<String> listthing\t = new ArrayList<String>();\n\t\t\t//List things of a method\n\t\t\tJSONArray thing_method = (JSONArray) thing.get(\"Things\");\n\t\t\tIterator<String> iteratorTM = thing_method.iterator();\n\t\t\twhile (iteratorTM.hasNext()) {\n\t\t\t\tlistthing.add(iteratorTM.next());\n\t\t\t}\n\t\t\tThings newThing = new Things(title_thing, listthing);\n\t\t\tthings.add(newThing);\n\t\t}\n\t\t\n\t\t\n\t\t//Extract ingredients\n\t\tArrayList<Ingredients> ingredients = new ArrayList<Ingredients>();\n\t\tJSONArray ingredientJ = (JSONArray) jsonobj.get(\"Ingredients\");\n\t\tIterator<JSONObject> iteratorI = ingredientJ.iterator();\n\t\twhile (iteratorI.hasNext()) {\n\t\t\tJSONObject ingre = iteratorI.next();\n\t\t\t//Title of method\n\t\t\tString title_ingre = (String) ingre.get(\"Title\");\n\t\t\t//List of things of this method\n\t\t\tArrayList<String> listingre\t = new ArrayList<String>();\n\t\t\t//List things of a method\n\t\t\tJSONArray ingre_method = (JSONArray) ingre.get(\"Ingredients\");\n\t\t\tIterator<String> iteratorIM = ingre_method.iterator();\n\t\t\twhile (iteratorIM.hasNext()) {\n\t\t\t\tlistingre.add(iteratorIM.next());\n\t\t\t}\n\t\t\tIngredients newIngre = new Ingredients(title_ingre, listingre);\n\t\t\tingredients.add(newIngre);\n\t\t}\n\t\t\n\t\t//Extract answer\n\t\t// loop array\n\t\t//Extract list of methods\n\t\tArrayList<Method> answerJ = new ArrayList<Method>();\n\t\tJSONArray answer = (JSONArray) jsonobj.get(\"Answer\");\n\t\tIterator<JSONObject> iterator = answer.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\t// loop method array\n\t\t\tJSONObject method = iterator.next();\n\t\t\t//Extract name of method\n\t\t\tString title_method = (String) method.get(\"Title\");\n\t\t\t//Extract order of method\n\t\t\tint order_method = (int) (long) method.get(\"Order\");\n\t\t\t\n\t\t\t//extract list of part\n\t\t\tArrayList<Part> listPart = new ArrayList<>();\n\t\t\tJSONArray listofPart = (JSONArray) method.get(\"Method\");\n\t\t\t\n\t\t\tIterator<JSONObject> iteratorPart = listofPart.iterator();\n\t\t\twhile(iteratorPart.hasNext()){\n\t\t\t\t// loop part array\n\t\t\t\tJSONObject part = iteratorPart.next();\n\t\t\t\t//Extract name of part\n\t\t\t\tString title_part = (String) part.get(\"Title\");\n\t\t\t\t//Extract order of part\n\t\t\t\tint order_part = (int) (long) part.get(\"Order\");\n\t\t\t\t\n\t\t\t\t//Extract list of steps\n\t\t\t\tArrayList<Step> listStep = new ArrayList<>();\n\t\t\t\tJSONArray listofStep = (JSONArray) part.get(\"Part\");\n\t\t\t\t\n\t\t\t\tIterator<JSONObject> iteratorStep = listofStep.iterator();\n\t\t\t\twhile(iteratorStep.hasNext()){\n\t\t\t\t\t//loop step array\n\t\t\t\t\tJSONObject step = iteratorStep.next();\n\t\t\t\t\t//Extract main action\n\t\t\t\t\tString main_act = (String) step.get(\"Main_act\");\n\t\t\t\t\t//Extract order of step\n\t\t\t\t\tint order_step = (int) (long) step.get(\"Order\");\n\t\t\t\t\t//Extract detail action\n\t\t\t\t\tString detail_act = (String) step.get(\"Detail_act\");\n\t\t\t\t\t//Extract link of image\n\t\t\t\t\tString image = (String) step.get(\"Image\");\n\t\t\t\t\t\n\t\t\t\t\tStep newStep = new Step(order_step, main_act, detail_act, image);\n\t\t\t\t\tlistStep.add(newStep);\n\t\t\t\t}\n\t\t\t\tPart newPart = new Part(order_part, title_part, listStep);\n\t\t\t\tlistPart.add(newPart);\n\t\t\t}\n\t\t\tMethod newMethod = new Method(order_method, title_method, listPart);\n\t\t\tanswerJ.add(newMethod);\n\t\t}\n\t\t\n\t\tQuestion newQuestion = new Question(title, exp, answerJ, \n\t\t\t\tcategory, link, tips, warnings, video, things, ingredients);\n\t\treturn newQuestion;\n\t}", "public abstract T zzb(JSONObject jSONObject);", "private static TagMatch deserialize(JsonObject json) {\n TagKey<Fluid> tag = TagKey.create(Registry.FLUID_REGISTRY, JsonHelper.getResourceLocation(json, \"tag\"));\n int amount = GsonHelper.getAsInt(json, \"amount\");\n return new TagMatch(tag, amount);\n }", "private <T> T getObjectFromJsonObject(JSONObject j, Class<T> clazz) throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n T t = null;\n t = mapper.readValue(j.toString(), clazz);\n\n return t;\n }", "String getJSON();", "public String loadJSONFromAsset(Context context) {\n String json = null;\n try {\n InputStream is;\n int id = context.getResources().getIdentifier(\"sentiment\", \"raw\", context.getPackageName());\n is = context.getResources().openRawResource(id);\n\n int size = is.available();\n\n byte[] buffer = new byte[size];\n\n is.read(buffer);\n\n is.close();\n\n json = new String(buffer, \"UTF-8\");\n\n\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n }\n return json;\n\n }", "public static ArrayList<Nutritionix> parse(String json) throws JSONException {\n ArrayList<Nutritionix> nutritionixs = new ArrayList<>();\n\n //JSONArray children = new JSONObject(json).getJSONObject(\"data\").getJSONArray(\"children\");\n //JSONArray children = new JSONObject(json).getJSONObject(\"data\").getJSONArray(\"children\");\n JSONArray hits = new JSONObject(json).getJSONArray(\"hits\");\n\n\n for (int i = 0; i < hits.length(); i++) {\n JSONObject childObject = hits.getJSONObject(i);\n JSONObject childData = childObject.getJSONObject(\"fields\");\n\n //String url = childData.getString(\"item_name\");\n //String title = childData.getString(\"title\");\n String productname = childData.getString(\"item_name\");\n String calories = childData.getString(\"nf_calories\");\n String fats = childData.getString(\"nf_total_fat\");\n\n nutritionixs.add(new Nutritionix(productname,calories,fats));\n }\n return nutritionixs;\n }", "private Movie getMovie() {\n Gson gson = new Gson();\n return gson.fromJson(result, Movie.class);\n }", "@Override\n\tpublic Dog deserialize(JsonElement json, Type typeOfT,\n\t\t\tJsonDeserializationContext context) throws JsonParseException {\n\t\tJsonObject obj = json.getAsJsonObject();\n\t\tJsonPrimitive name = (JsonPrimitive) obj.get(\"name\");\n\t\tJsonPrimitive ferocity = (JsonPrimitive) obj.get(\"ferocity\");\n\t\treturn Dog.create(name.getAsString(), ferocity.getAsInt());\n\t}", "public final native JSONLoaderObject parse(JavaScriptObject json,String texturePath)/*-{\r\n\treturn this.parse(json,texturePath);\r\n\t}-*/;", "private Earthquake parseJSON(JSONObject o){\n String country, place, id;\r\n double magnitude, lat, lng, depth;\r\n long time_long, updated_long;\r\n id = o.optString(\"id\");\r\n JSONObject prop = o.getJSONObject(\"properties\");\r\n place = prop.optString(\"place\");\r\n country = place.substring(place.lastIndexOf(\",\"), (place.length()-1)); \r\n magnitude = prop.optDouble(\"mag\");\r\n time_long=o.optLong(\"time\");\r\n updated_long=o.optLong(\"updated\");\r\n \r\n \r\n JSONObject geometry = o.getJSONObject(\"geometry\");\r\n JSONArray coor = geometry.getJSONArray(\"coordinates\");\r\n lng=coor.optDouble(0);\r\n lat=coor.optDouble(0);\r\n depth=coor.optDouble(0);\r\n \r\n //storing the earthquake data to the ontology\r\n return new Earthquake(id, place, magnitude, lng, lat, depth);\r\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static<T> T createObjectFromJSON(final JSONObject json) throws JSONException {\n\t\tif(json.has(\"type\")) {\n\t\t\treturn (T) Helper.createItemFromJSON(json);\n\t\t} else if(json.has(\"triple_pattern\")) {\n\t\t\treturn (T) Helper.createTriplePatternFromJSON(json);\n\t\t} else if(json.has(\"histogram\")) {\n\t\t\treturn (T) Helper.createVarBucketFromJSON(json);\n\t\t} else {\n\t\t\tSystem.err.println(\"lupos.distributed.operator.format.Helper.createObjectFromJSON(...): Unknown type stored in JSON object, returning null!\");\n\t\t\treturn null;\n\t\t}\n\t}", "private <T> T formatObject(String objectName, JSONObject object, Class objectClass){\n Gson gson = new Gson();\n String stringObject = object.getJSONObject(objectName).toString();\n T formattedObject = (T) gson.fromJson(stringObject,objectClass);\n return formattedObject;\n }", "Object3dContainer getParsedObject();", "public ArrayList<Product> parseJSONAction(String textJson){\n \n JSONParser j = new JSONParser();\n \n try {\n \n Map<String, Object> productsListJson = j.parseJSON(new CharArrayReader(textJson.toCharArray()));\n ArrayList<Map<String,Object>> productsList = (ArrayList<Map<String,Object>>) productsListJson.get(\"root\");\n //System.out.println(\"pdd \" + productsList.toString());\n Map<String, Object> cart = productsList.get(0);\n //System.out.println(\"cc \" + cart);\n //System.out.println(\"ggg\" + cart.get(\"cart\"));\n ArrayList<Map<String,Object>> lis = (ArrayList<Map<String,Object>>) cart.get(\"cart\");\n //System.out.println(\"lista \" + lis.toString());\n for(Map<String, Object> en : lis){\n Product p = new Product();\n p.setDetails(en.get(\"numProducts\").toString());\n p.setRef_product((int) Double.parseDouble(en.get(\"refProduct\").toString()));\n p.setPrice((int) Float.parseFloat(en.get(\"totalPrice\").toString()));\n products.add(p);\n }\n \n Map<String, Object> data = productsList.get(1);\n ArrayList<Map<String,Object>> llis = (ArrayList<Map<String,Object>>) data.get(\"data\");\n System.out.println(\"dddd\" + llis.toString());\n int i=0;\n for(Map<String, Object> en : llis){\n Product pro = products.get(i);\n pro.setName(en.get(\"name\").toString());\n pro.setPhoto(\"http://127.0.0.1/ftbb_web/ftbb_web/public/images/prod/\"+en.get(\"photo\").toString());\n i++;\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n \n return products; \n }", "Gist deserializeGistFromJson(String json);", "public static void transferFireworkEffectMeta(FireworkEffectMeta meta, JsonObject json, boolean meta2json)\r\n \t{\r\n \t\tif (meta2json)\r\n \t\t{\r\n \t\t\tif (!meta.hasEffect()) return;\r\n \t\t\tjson.add(FIREWORK_EFFECT, FireworkEffectAdapter.toJson(meta.getEffect()));\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tJsonElement element = json.get(FIREWORK_EFFECT);\r\n \t\t\tif (element == null) return;\r\n \t\t\tmeta.setEffect(FireworkEffectAdapter.fromJson(element));\r\n \t\t}\r\n \t}", "public void fiddle(String jso) {\n\n Lexicon dict = gson.fromJson(jso,Lexicon.class);\n\n Log.i(TAG,\"POJO Success: language = \" + dict.getLanguage() );\n for (String s : dict.dictionary.keySet()) {\n Log.i(TAG,\"key = \" + s + \" value = \" + dict.dictionary.get(s));\n }\n\n String jsonString = gson.toJson(jso);\n Log.i(TAG,\"jsonString = \" + jsonString);\n\n DictionaryAdapter adapter = new DictionaryAdapter(dict.getDictionary());\n ListView lv = (ListView) findViewById(R.id.dictview);\n lv.setAdapter(adapter);\n }", "public abstract VKRequest mo118416a(JSONObject jSONObject);", "public static Produto parserJsonProdutos(String response, Context context){\n\n System.out.println(\"--> PARSER ADICIONAR: \" + response);\n Produto auxProduto = null;\n\n try {\n JSONObject produto = new JSONObject(response);\n\n int id = produto.getInt(\"id\");\n int preco_unitario = produto.getInt(\"preco_unitario\");\n int id_tipoproduto = produto.getInt(\"id_tipo\");\n String designacao = produto.getString(\"designacao\");\n\n auxProduto = new Produto(id, preco_unitario, id_tipoproduto, designacao);\n\n }\n catch (JSONException e)\n {\n e.printStackTrace();\n Toast.makeText(context, \"Error: \" + e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n\n return auxProduto;\n }", "public String loadJSONFromAsset(Context context) {\n json = null;\n try {\n InputStream is = getApplicationContext().getAssets().open(\"techdrop.json\");\n int size = is.available();\n byte[] buffer = new byte[size];\n is.read(buffer);\n is.close();\n json = new String(buffer, \"UTF-8\");\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n }\n return json;\n }", "private <T> T convert(String json, Type resultObject) {\n\t\tGson gson = new GsonBuilder().create();\n\t\treturn gson.fromJson(json, resultObject);\n\t}", "@Override\n public Object loadFromJson(Context context) {\n Gson gson = new Gson();\n String json = FileManager.getInstance().loadFromFile(getFileName(), context);\n if(json.equals(\"\")) {\n return null;\n }\n\n return gson.fromJson(json, MatchStorage.class);\n\n }", "AnimationObject3d getParsedAnimationObject();", "String getJson();", "String getJson();", "String getJson();", "public FilterItems jsonToObject(String json){\n json = json.replace(\"body=\",\"{ \\\"body\\\" : \");\n json = json.replace(\"&oil=\",\", \\\"oil\\\" : \");\n json = json.replace(\"&transmission=\",\", \\\"transmission\\\" :\");\n json = json + \"}\";\n json = json.replace(\"[]\",\"null\");\n ObjectMapper mapper = new ObjectMapper();\n FilterItems itemSearch = null;\n try {\n itemSearch = mapper.readValue(json, FilterItems.class);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return itemSearch;\n }", "public static Object decode(JsonObject content) {\n return new exercise(content);\n }", "public native Object parse( Object json );", "private Weather mapWeather(JSONObject objectWeater) {\n Gson datos = new Gson();\n return datos.fromJson(objectWeater.toString(),Weather.class);\n }", "public static Tweet fromJSON(JSONObject jsonObject) throws JSONException{\n Tweet tweet = new Tweet();\n\n //extract the values from JSON\n tweet.body = jsonObject.getString(\"text\");\n tweet.uid = jsonObject.getLong(\"id\");\n tweet.createdAt = jsonObject.getString(\"created_at\");\n tweet.user = User.fromJSON(jsonObject.getJSONObject(\"user\"));\n tweet.tweetId = Long.parseLong(jsonObject.getString(\"id_str\"));\n //tweet.extendedEntities = ExtendedEntities.fromJSON\n return tweet;\n\n }", "public void getNeutral() {\n Call<List<Chat>> call = jsonPlaceHolderApi.getNeutral();\n call.enqueue(new Callback<List<Chat>>() {\n @Override\n public void onResponse(Call<List<Chat>> call, Response<List<Chat>> response) {\n //not successful\n if (!response.isSuccessful()) {\n Toast.makeText(getContext().getApplicationContext(), response.code(), Toast.LENGTH_LONG).show();\n return;\n }\n //get data\n chat = response.body();\n //Toast.makeText(getContext().getApplicationContext(), chat.get(r).getText(), Toast.LENGTH_LONG).show();\n ai.setText(chat.get(r).getText());\n\n }\n @Override\n public void onFailure(Call<List<Chat>> call, Throwable t) {\n Toast.makeText(getContext().getApplicationContext(), t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "public static TwitterTrend convertTrend(JSONObject obj) throws JSONException\n\t{\n\t\tTwitterTrend res=new TwitterTrend();\t\t\n\t\tres.setName(obj.getString(\"name\"));\n\t\tres.setUrl(obj.getString(\"url\"));\n\t\t\n\t\treturn res;\n\t}", "public void displayFromJSON(String url, String objectName) {\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest\n (Request.Method.GET, url, null,\n response -> {\n try {\n tweetView.setText(response.getString(objectName));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n },\n error -> System.out.println(\"ERROR!! \" + error.getMessage()));\n\n // Access the RequestQueue through your singleton class.\n MySingleton.getInstance(this).addToRequestQueue(jsonObjectRequest);\n }", "@Override\n\tpublic List<Object> getMovie(JSONObject param) {\n\t\tString type = StringUtil.ToString(param.getString(\"type\"));\n\t\tString tip = StringUtil.ToString(param.getString(\"tip\"));\n\t\tint number = Integer.parseInt(param.getString(\"number\"));\n\t\t\n\t\tMap<String, Object> message = new HashMap<String, Object>();\n\t\tList<Object> result = new ArrayList<Object>();\n\t\t\n\t\tmessage.put(\"recommand\", type);\n\t\tmessage.put(\"number\", number);\n\t\tif(!tip.equals(\"\")){\n\t\t System.out.println(tip);\n\t\t\tmessage.put(\"tip\", tip);\n\t\t}\n\t\t\n\t\tList<Object> movie = (List<Object>) this.queryForList(\"Movie.selectByCondition\",message);\n\t\t\n\t\treturn movie;\n\t}", "public static void main(String[] str) {\n String str1 = \"[{\\\"随机欢迎语\\\":[\\\"aaa\\\",\\\"bbbbb\\\",\\\"ccccc\\\"],\\\"no\\\":\\\"1\\\"},{\\\"商品标题\\\":\\\"商品标题\\\",\\\"no\\\":\\\"2\\\"},{\\\"商品卖点\\\":\\\"商品卖点\\\",\\\"no\\\":\\\"3\\\"},{\\\"商品描述\\\":\\\"商品描述\\\",\\\"no\\\":\\\"2\\\"},{\\\"包装清单\\\":\\\"包装清单\\\",\\\"no\\\":\\\"2\\\"},{\\\"随机结束语\\\":[\\\"1111\\\",\\\"2222\\\",\\\"33333\\\"],\\\"no\\\":\\\"2\\\"}]\";\n //System.out.println(JSONObject.);\n JSONArray objects = JSONObject.parseArray(str1);\n List<JSONObject> jsonObjects = JSONObject.parseArray(str1, JSONObject.class);\n for (JSONObject object : jsonObjects) {\n for (Map.Entry<String, Object> en : object.entrySet()) {\n System.out.println(en.getValue());\n }\n }\n\n }", "private void loadDia() throws JSONException {\n\n\n String json = \"{\\n\" +\n \" \\\"mes\\\": 10,\\n\" +\n \" \\\"ano\\\": 2017,\\n\" +\n \" \\\"dias\\\":[\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":1,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"asd\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$4050,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdsaf\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$50,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"fdasfa\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$452,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 1,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"2a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$450,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 2,\\n\" +\n \" \\\"sinal\\\": 2,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"1b\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$40,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":13,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 3,\\n\" +\n \" \\\"sinal\\\": 3,\\n\" +\n \" \\\"grupo\\\": 3,\\n\" +\n \" \\\"nome\\\": \\\"13a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$450,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 4,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"13b\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$40,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":16,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 5,\\n\" +\n \" \\\"sinal\\\": 5,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"16a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$52,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"dia\\\":18,\\n\" +\n \" \\\"titulos\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 6,\\n\" +\n \" \\\"sinal\\\": 4,\\n\" +\n \" \\\"grupo\\\": 3,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$52,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 7,\\n\" +\n \" \\\"sinal\\\": 5,\\n\" +\n \" \\\"grupo\\\": 1,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$2,00\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"id\\\": 8,\\n\" +\n \" \\\"sinal\\\": 1,\\n\" +\n \" \\\"grupo\\\": 2,\\n\" +\n \" \\\"nome\\\": \\\"18a\\\",\\n\" +\n \" \\\"valor\\\": \\\"R$2000,00\\\"\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \"}\";\n\n\n //Toast.makeText(getApplicationContext(), \"certo\",Toast.LENGTH_LONG).show();\n }", "public void parseJSONData(Object JSONdata){\n\n\t}", "<T> T parseToObject(Object json, Class<T> classObject);", "@Override\r\n\tprotected GuardarVtaCeroMotivoResponse responseText(String json) {\n\t\tGuardarVtaCeroMotivoResponse guardarVtaCeroMotivoResponse = JSONHelper.desSerializar(json, GuardarVtaCeroMotivoResponse.class);\r\n\t\treturn guardarVtaCeroMotivoResponse;\r\n\t}", "@Test\n public void readSystemObjectClassMedicine() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Medicine\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Medicine properly\", object.getClass(), actual.getClass());\n }", "private String loadJSONFromAsset(){\n String json = null;\n AssetManager assetManager = getAssets();\n try{\n InputStream IS = assetManager.open(\"datosFases.json\");\n int size = IS.available();\n byte[] buffer = new byte[size];\n IS.read(buffer);\n IS.close();\n json = new String(buffer,\"UTF-8\");\n\n } catch (IOException ex){\n ex.printStackTrace();\n return null;\n }\n\n return json;\n }", "ILogo getMugShot();", "public Producto[] parseResponse(String jsonAsString){\r\n\r\n //manually parsing to productos\r\n JsonParser parser = new JsonParser();\r\n JsonObject rootObject = parser.parse(jsonAsString).getAsJsonObject();\r\n JsonElement projectElement = rootObject.get(\"productos\");\r\n\r\n Producto [] productos = null;\r\n\r\n if(projectElement != null){\r\n\r\n QuantityDictionay.debugLog(\"LOS PRODUCTOS--->\"+projectElement.toString());\r\n\r\n //Use Gson to map response\r\n Gson gson = new Gson();\r\n //set type of response\r\n Type collectionType = new TypeToken<Producto[]>(){}.getType();\r\n //get java objects from json string\r\n productos = gson.fromJson(projectElement.toString(),collectionType);\r\n\r\n QuantityDictionay.debugLog(\"PARSING SIZE---->\"+productos.length);\r\n\r\n }\r\n\r\n\r\n return productos;\r\n\r\n }", "@Override\n public void onResponse(JSONObject response) {\n try {\n /* Obtenemos los atributos que hacen a un objeto heroes. */\n JSONArray jsonArray = response.getJSONArray(\"heroes\");\n\n datoNombre = new String[jsonArray.length()]; // Cantidad de nombres heros.\n datoUrls = new String[jsonArray.length()]; // Cantidad de URLs en \"heroes\".\n\n //Extraemos los atributos de cada heroe existente\n for (int i = 0; i < jsonArray.length(); i++) {\n\n JSONObject hero = jsonArray.getJSONObject(i);\n\n String nombre = hero.getString(\"name\");\n String imageUrl = hero.getString(\"imageurl\");\n\n Log.i(\"MOSTRAR\", nombre + \" - \" + imageUrl);\n\n //enviamos los datos extraidos en la posicion i al metodo recibir()\n // y jsonArray.length() es la cantidad de heroes encontrados en el json\n recibir(nombre, imageUrl, jsonArray.length());\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "T fromJson(Object source);", "void generateJSON(JSONObject object, String name);", "public static PotionEffect fromNBT(NBTTagCompound tag)\r\n/* 168: */ {\r\n/* 169:168 */ int id = tag.d(\"Id\");\r\n/* 170:169 */ if ((id < 0) || (id >= Potion.potionList.length) || (Potion.potionList[id] == null)) {\r\n/* 171:170 */ return null;\r\n/* 172: */ }\r\n/* 173:172 */ int amplifier = tag.d(\"Amplifier\");\r\n/* 174:173 */ int duration = tag.getInteger(\"Duration\");\r\n/* 175:174 */ boolean ambient = tag.getBoolean(\"Ambient\");\r\n/* 176:175 */ boolean showParticles = true;\r\n/* 177:176 */ if (tag.hasKey(\"ShowParticles\", 1)) {\r\n/* 178:177 */ showParticles = tag.getBoolean(\"ShowParticles\");\r\n/* 179: */ }\r\n/* 180:179 */ return new PotionEffect(id, duration, amplifier, ambient, showParticles);\r\n/* 181: */ }", "public HashMap<String,Trail> getJSONData() {\n\t\tHashMap<String,Trail> trailList1 = new HashMap<String,Trail>();\n\t\tString jsonStr;\n\t\tint counter=0;\n\t\n\t\t\ttry {\n\t\t\t\tInputStream is = getResources().openRawResource(\n\t\t\t\t\t\tgetResources().getIdentifier(\"trail_detail\", \"raw\",\n\t\t\t\t\t\t\t\tgetPackageName()));\n\t\t\t\tint size = is.available();\n\t\t\t\tbyte[] buffer = new byte[size];\n\t\t\t\tis.read(buffer);\n\t\t\t\tis.close();\n\t\t\t\tjsonStr = new String(buffer, \"UTF-8\");\n\n\t\t\t\tLog.d(\"Response: \", \"> \" + jsonStr);\n\n\t\t\t\tJSONArray jsonArray = new JSONArray(jsonStr);\n\n\t\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\n\t\t\t\t\tJSONObject jsonObj = jsonArray.getJSONObject(i);\n counter++;\n\t\t\t\t\tString name =jsonObj.getString(TAG_NAME);\n\t\t\t\t\tDouble length = Double.parseDouble(jsonObj.getString(TAG_LENGTH));\n\t\t\t\t\tString type = jsonObj.getString(TAG_TYPE);\n\t\t\t\t\tString surface = jsonObj.getString(TAG_SURFACE);\n\t\t\t\t\tString amenities = jsonObj.getString(TAG_AMENITIES);\n\t\t\t\t\tString parking = jsonObj.getString(TAG_PARKING);\n\t\t\t\t\tString season = jsonObj.getString(TAG_SEASON);\n\t\t\t\t\tString lighting = jsonObj.getString(TAG_LIGHTING);\n\t\t\t\t\tString maintenance = jsonObj.getString(TAG_MAINTENANCE);\n\t\t\t\t\tString pets = jsonObj.getString(TAG_PETS);\n\t\t\t\t\tString notes = jsonObj.getString(TAG_NOTES);\n\t\t\t\t\tString city = jsonObj.getString(TAG_CITY);\n\n\t\t\t\t\ttrailList1.put(name, new Trail(name, length, type, surface,\n\t\t\t\t\t\t\tamenities, parking, season, lighting, maintenance,\n\t\t\t\t\t\t\tpets, notes, city));\n//\t\t\t trailList.add(new Trail(name, length, type, surface,\n//\t\t\t\t\t\t\tamenities, parking, season, lighting, maintenance,\n//\t\t\t\t\t\t\tpets, notes, city));\n\n\t\t\t\t}\n\t\t\t} catch (JSONException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException 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\treturn trailList1;\n\t}", "private void cargarDetalleStory(String idStory) {\n\n HashMap<String, String> data = new LinkedHashMap<>();\n data.put(\"story_id\", idStory);\n\n JSONObject jsonObject = new JSONObject (data);\n\n System.out.print(jsonObject.toString());\n\n VolleySingleton.getInstance(getContext()).addToRequestQueue(\n new JsonObjectRequest(\n Request.Method.POST,\n Constantes.GET_STORY,\n jsonObject,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n obtenerStorybyId(response);\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getActivity().getApplicationContext(), \"An error has occur. Please try again.\", Toast.LENGTH_LONG).show();\n }\n }\n ) {\n @Override\n public Map<String, String> getHeaders() {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n headers.put(\"Accept\", \"application/json\");\n return headers;\n }\n\n @Override\n public String getBodyContentType() {\n return \"application/json; charset=utf-8\" + getParamsEncoding();\n }\n }\n );\n\n }", "public String parseJSON(){\r\n String json = null;\r\n try{\r\n InputStream istream = context.getAssets().open(\"restaurantopeninghours.json\");\r\n int size = istream.available();\r\n byte[] buffer = new byte[size];\r\n istream.read(buffer);\r\n istream.close();\r\n json = new String(buffer, \"UTF-8\");\r\n }catch (IOException ex){\r\n ex.printStackTrace();\r\n return null;\r\n }\r\n return json;\r\n }", "private void parseGoal(User user, JSONObject jsonObject) {\n JSONObject goalJsonObject = jsonObject.getJSONObject(\"goal\");\n int targetCalories = goalJsonObject.getInt(\"target calories\");\n int targetProtein = goalJsonObject.getInt(\"target protein\");\n int targetFat = goalJsonObject.getInt(\"target fat\");\n int targetCarbs = goalJsonObject.getInt(\"target carbs\");\n\n user.setCustomGoal(targetCalories,targetProtein,targetFat,targetCarbs);\n }", "@Override\r\n\tprotected GuardarSustentoResponse responseText(String json) {\n\t\tGuardarSustentoResponse guardarSustentoResponse = JSONHelper.desSerializar(json, GuardarSustentoResponse.class);\r\n\t\treturn guardarSustentoResponse;\r\n\t}", "public static BasicTranscription readWhisperJSON(File jsonFile, boolean wantsWords) throws IOException, JexmaraldaException{\n ObjectMapper objectMapper = new ObjectMapper();\n JsonNode jsonRoot = objectMapper.readValue(jsonFile, JsonNode.class); \n \n BasicTranscription result = new BasicTranscription();\n Speaker speaker = new Speaker();\n speaker.setID(\"SPK0\");\n speaker.setAbbreviation(\"X\");\n result.getHead().getSpeakertable().addSpeaker(speaker);\n Tier textTier = new Tier(\"TIE0\", \"SPK0\", \"v\", \"t\", \"X [text]\");\n Tier temperatureTier = new Tier(\"TIE1\", \"SPK0\", \"temp\", \"a\", \"X [temperature]\");\n Tier avgLogProbTier = new Tier(\"TIE2\", \"SPK0\", \"avg\", \"a\", \"X [avg_logprob]\");\n Tier compressionRatioTier = new Tier(\"TIE3\", \"SPK0\", \"cr\", \"a\", \"X [compression_ratio]\");\n Tier noSpeechProbTier = new Tier(\"TIE4\", \"SPK0\", \"nsp\", \"a\", \"X [no_speech_prob]\");\n result.getBody().addTier(textTier);\n result.getBody().addTier(temperatureTier);\n result.getBody().addTier(avgLogProbTier);\n result.getBody().addTier(compressionRatioTier);\n result.getBody().addTier(noSpeechProbTier);\n \n \n /*\n {\n \"text\": \n \" Abscheu und Zorn über folternde GIs im Irak, die US-Armee soll schon länger Bescheid gewusst\",\n \"segments\": [\n {\n \"id\": 0,\n \"seek\": 0,\n \"start\": 0.0,\n \"end\": 13.44,\n \"text\": \" Abscheu und Zorn über folternde GIs im Irak, die US-Armee soll schon länger Bescheid gewusst\",\n \"tokens\": [\n 5813,\n 1876,\n ...\n 327,\n 6906,\n 26340\n ],\n \"temperature\": 0.0,\n \"avg_logprob\": -0.20706645302150561,\n \"compression_ratio\": 1.2619047619047619,\n \"no_speech_prob\": 0.2456832379102707\n }\n ]\n } \n \n */\n \n boolean hasWordLevel = (jsonRoot.findValue(\"words\")!=null);\n Tier wordTier = new Tier(\"TIE5\", \"SPK0\", \"w\", \"t\", \"X [words]\");\n if (hasWordLevel && wantsWords){\n textTier.setType(\"a\");\n result.getBody().insertTierAt(wordTier, 0);\n \n }\n \n JsonNode segmentsNode = jsonRoot.findValue(\"segments\");\n Iterator<JsonNode> iterator = segmentsNode.elements();\n Timeline timeline = result.getBody().getCommonTimeline();\n while (iterator.hasNext()){\n JsonNode segmentNode = iterator.next();\n if (segmentNode.get(\"start\")==null){\n throw new IOException(\"Error in format.\");\n }\n // round to miliseconds to avoid overlaps which aren't overlaps\n double startTimeInSeconds = Rounder.round(segmentNode.get(\"start\").asDouble(),3);\n double endTimeInSeconds = Rounder.round(segmentNode.get(\"end\").asDouble(),3);\n String text = segmentNode.get(\"text\").asText();\n String temperature = segmentNode.get(\"temperature\").asText();\n String avg_logprob = segmentNode.get(\"avg_logprob\").asText();\n String compression_ratio = segmentNode.get(\"compression_ratio\").asText();\n String no_speech_prob = segmentNode.get(\"no_speech_prob\").asText();\n \n String startID = \"TLI_\" + Double.toString(startTimeInSeconds).replace('.', '_');\n if (!(timeline.containsTimelineItemWithID(startID))){\n TimelineItem tli = new TimelineItem();\n tli.setID(startID);\n tli.setTime(startTimeInSeconds);\n timeline.insertAccordingToTime(tli);\n }\n \n String endID = \"TLI_\" + Double.toString(endTimeInSeconds).replace('.', '_');\n if (!(timeline.containsTimelineItemWithID(endID))){\n TimelineItem tli = new TimelineItem();\n tli.setID(endID);\n tli.setTime(endTimeInSeconds);\n timeline.insertAccordingToTime(tli);\n }\n \n textTier.addEvent(new Event(startID, endID, text));\n temperatureTier.addEvent(new Event(startID, endID, temperature));\n avgLogProbTier.addEvent(new Event(startID, endID, avg_logprob));\n compressionRatioTier.addEvent(new Event(startID, endID, compression_ratio));\n noSpeechProbTier.addEvent(new Event(startID, endID, no_speech_prob));\n \n if (hasWordLevel){\n JsonNode wordsNode = segmentNode.findValue(\"words\");\n Iterator<JsonNode> wordIterator = wordsNode.elements();\n while (wordIterator.hasNext()){\n JsonNode wordNode = wordIterator.next();\n if (wordNode.get(\"start\")==null){\n throw new IOException(\"Error in format.\");\n }\n\n // round to miliseconds to avoid overlaps which aren't overlaps\n double wStartTimeInSeconds = Rounder.round(wordNode.get(\"start\").asDouble(),3);\n double wEndTimeInSeconds = Rounder.round(wordNode.get(\"end\").asDouble(),3);\n String wText = wordNode.get(\"word\").asText();\n\n String wStartID = \"TLI_\" + Double.toString(wStartTimeInSeconds).replace('.', '_');\n if (!(timeline.containsTimelineItemWithID(wStartID))){\n TimelineItem tli = new TimelineItem();\n tli.setID(wStartID);\n tli.setTime(wStartTimeInSeconds);\n timeline.insertAccordingToTime(tli);\n }\n\n String wEndID = \"TLI_\" + Double.toString(wEndTimeInSeconds).replace('.', '_');\n if (!(timeline.containsTimelineItemWithID(wEndID))){\n TimelineItem tli = new TimelineItem();\n tli.setID(wEndID);\n tli.setTime(wEndTimeInSeconds);\n timeline.insertAccordingToTime(tli);\n }\n \n wordTier.addEvent(new Event(wStartID, wEndID, wText));\n\n \n }\n }\n \n }\n \n \n \n \n return result;\n \n \n }", "JSONObject mo28758a(View view);", "@Test\n public void readSystemObjectClassPrescription() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Prescription\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Prescription properly\", object.getClass(), actual.getClass());\n }", "List<Gist> deserializeGistsFromJson(String json);", "public void getSurprise() {\n Call<List<Chat>> call = jsonPlaceHolderApi.getSurprise();\n call.enqueue(new Callback<List<Chat>>() {\n @Override\n public void onResponse(Call<List<Chat>> call, Response<List<Chat>> response) {\n //not successful\n if (!response.isSuccessful()) {\n Toast.makeText(getContext().getApplicationContext(), response.code(), Toast.LENGTH_LONG).show();\n return;\n }\n //get data\n chat = response.body();\n //Toast.makeText(getContext().getApplicationContext(), chat.get(r).getText(), Toast.LENGTH_LONG).show();\n ai.setText(chat.get(r).getText());\n\n }\n @Override\n public void onFailure(Call<List<Chat>> call, Throwable t) {\n Toast.makeText(getContext().getApplicationContext(), t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "private Menu jsonToMenu(String jsonMenu) {\r\n\r\n Gson gson = new Gson();\r\n Menu varMenu = gson.fromJson(jsonMenu, Menu.class);\r\n\r\n return varMenu;\r\n\r\n }", "private static List<Article> extractFeatureFromJson(String jsonString) {\n\n // If Json string is empty or null, return early\n if (TextUtils.isEmpty(jsonString)) {\n return null;\n }\n\n List<Article> articles = new ArrayList<>();\n\n try {\n\n // Get json root string\n JSONObject jsonObjectString = new JSONObject(jsonString);\n\n // Get the response object in the root json string\n JSONObject responseObj = jsonObjectString.getJSONObject(\"response\");\n\n // Get th array that contains all the articles inside the response\n JSONArray articlesArray = responseObj.getJSONArray(\"results\");\n\n // Loop through every article object in the array\n for (int i = 0; i < articlesArray.length(); i++) {\n\n // get current article at the current index\n JSONObject currentArticle = articlesArray.getJSONObject(i);\n\n // Get the object that contains all fields of info on the currentArticle\n JSONObject feilds = currentArticle.getJSONObject(\"fields\");\n\n // Get the articles title\n String title = feilds.getString(\"headline\");\n\n // Get the articles webUrl\n String url = currentArticle.getString(\"webUrl\");\n\n // Get the articles picture\n String image = feilds.getString(\"thumbnail\");\n\n // Create bitmap from image url string\n Bitmap picture = readImageUrl(image);\n\n // Get Authors name\n String author = feilds.optString(\"byline\");\n\n // Get the date the article was published\n String datePublished = feilds.getString(\"firstPublicationDate\");\n\n // Get the articles section name\n String section = currentArticle.getString(\"sectionName\");\n\n // Create a new article and add it to the list\n articles.add(new Article(title, url, author, image, datePublished, section, picture));\n }\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error parsing json:\" + e);\n }\n\n // Return list of articles\n return articles;\n\n }", "private static JSONArray objectToArray(JSONObject obj){\r\n return (JSONArray) obj.get(\"books\");\r\n }", "private MoodsCreator(Resources resources){\n\n String result;\n try {\n InputStream inputStream = resources.openRawResource(R.raw.moods);\n\n StringBuffer buffer = new StringBuffer();\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\n\n String line;\n while ((line = reader.readLine()) != null) {\n\n buffer.append(line + \"\\n\");\n }\n result = buffer.toString();\n Log.d(\"MOODS\", result);\n\n JSONObject moodsJson = new JSONObject(result);\n JSONArray moodsJsonArray = new JSONArray(moodsJson.get(\"moods\").toString());\n\n for(int i =0;i<moodsJsonArray.length();++i){\n JSONObject moodfromJson = moodsJsonArray.getJSONObject(i);\n Mood mood = new Mood(moodfromJson.get(\"name\").toString(),moodfromJson.getInt(\"red\"),moodfromJson.getInt(\"green\"), moodfromJson.getInt(\"blue\"), moodfromJson.getInt(\"alpha\"));\n\n Log.d(\"MOOD\",mood.name + \" \"+mood.alpha + \" \"+ mood.red);\n moods.put(moodfromJson.get(\"name\").toString(),mood);\n }\n\n Log.d(\"moodsMap\",moods.toString());\n }\n catch(Exception e){\n\n }\n\n }", "ItemStack getEggItem(IGeneticMob geneticMob);", "public static String getFoodSnippet(String result) {\n String snippet = null;\n String title = null;\n String icon = null;\n String desc = null;\n try {\n JSONObject jsonObject = new JSONObject(result);\n JSONObject jsonObjectFood = (JSONObject) jsonObject.get(\"foods\");\n JSONArray foodsArray = new JSONArray((jsonObjectFood).toString());\n icon = foodsArray.toString();\n// for (int i=0; i>foodsArray.length(); i++){\n// JSONObject obj = foodsArray.getJSONObject(i);\n// if ((JSONObject)obj.get(\"name\"))\n// }\n// JSONArray jsonArray = jsonObject.getJSONArray(\"items\");\n// if (jsonArray != null && jsonArray.length() > 0) {\n// snippet = jsonArray.getJSONObject(0).getString(\"snippet\");\n// }\n//modify part\n// JSONArray movieArray = new JSONArray(jsonObject.get(\"items\").toString());\n//// if (movieArray != null && movieArray.length() > 0) {\n//// JSONObject obj = movieArray.getJSONObject(0);\n//// JSONObject obj2 = (JSONObject) obj.get(\"pagemap\");\n//// icon = (new JSONArray(obj2.get(\"cse_thumbnail\").toString()).getJSONObject(0).getString(\"src\"));\n//// desc = (new JSONArray(obj2.get(\"metatags\").toString()).getJSONObject(0).getString(\"twitter:description\"));\n//// title = obj.getString(\"title\");\n//// }\n } catch (Exception e) {\n e.printStackTrace();\n snippet = \"NO INFO FOUND\";\n }\n //return snippet;\n return icon;\n }", "public static Texture getTut(){\n //set a linear filter to clean image\n tuts.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);\n //return image\n return tuts;\n }", "public static Combat loadFromJSON (String name) {\n\n FileHandle file = Gdx.files.internal(\"core/assets/combats/\"+name+\".txt\");\n String jsonData = file.readString();\n\n //create ObjectMapper instance\n ObjectMapper objectMapper = new ObjectMapper();\n\n Combat emp = new Combat();\n\n try {\n\n emp = objectMapper.readValue(jsonData, Combat.class);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n //Important step, link characters with the map\n /*\n for (Character c: emp.characters) {\n c.setCell(emp.map.getCell(c.getRow(),c.getColumn()));\n }\n */\n\n emp.initCharacterPositions();\n\n return emp;\n\n }", "@Override\r\n \tpublic Skill decodeChoice(LoadContext context, String persistentFormat)\r\n \t{\r\n \t\treturn Globals.getContext().ref.silentlyGetConstructedCDOMObject(\r\n \t\t\t\tSkill.class, persistentFormat);\r\n \t}", "public void retrieveInformation() {\n\n new GetYourJsonTask2().execute(new ApiConnector());\n\n// Retrieve Info from ThingSpeak\n// String lightApi = \"https://api.thingspeak.com/channels/595680/fields/1.json?results=2\";\n// JsonObjectRequest objectRequest =new JsonObjectRequest(Request.Method.GET, lightApi, null,\n// new Response.Listener<JSONObject>() {\n// @Override\n// public void onResponse(JSONObject response) {\n// textView.append(\"lala\");\n// try {\n// JSONArray feeds = response.getJSONArray(\"feeds\");\n// for(int i=0; i<feeds.length();i++){\n// JSONObject jo = feeds.getJSONObject(i);\n// String l=jo.getString(\"field1\");\n// Toast.makeText(getApplicationContext(),l,Toast.LENGTH_SHORT).show();\n// textView.append(l);\n//\n// }\n// } catch (JSONException e) {\n// textView.append(\"error\");\n// e.printStackTrace();\n// }\n// }\n// }, new Response.ErrorListener() {\n// @Override\n// public void onErrorResponse(VolleyError error) {\n//\n// }\n// });\n\n\n\n }", "public void getSadness() {\n Call<List<Chat>> call = jsonPlaceHolderApi.getSadness();\n call.enqueue(new Callback<List<Chat>>() {\n @Override\n public void onResponse(Call<List<Chat>> call, Response<List<Chat>> response) {\n //not successful\n if (!response.isSuccessful()) {\n Toast.makeText(getContext().getApplicationContext(), response.code(), Toast.LENGTH_LONG).show();\n return;\n }\n //get data\n chat = response.body();\n //Toast.makeText(getContext().getApplicationContext(), chat.get(r).getText(), Toast.LENGTH_LONG).show();\n ai.setText(chat.get(r).getText());\n\n }\n @Override\n public void onFailure(Call<List<Chat>> call, Throwable t) {\n Toast.makeText(getContext().getApplicationContext(), t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "TorrentJsonParser getJsonParser();", "public void testJson() {\n\t\t\n\t\tSmallTalkEpisode episode = new SmallTalkEpisode();\n\t\tSmallTalkGespraech gespraech = new SmallTalkGespraech(0);\n\t\t\n\t\tSmallTalkJsonHelper testInstanz1 = new SmallTalkJsonHelper(\"We\", 2.34 , 0);\n\t\tSmallTalkJsonHelper testInstanz2 = new SmallTalkJsonHelper(\"Bez\", 5.24 , 0);\n\t\tSmallTalkJsonHelper testInstanz3 = new SmallTalkJsonHelper(\"Begr\", 22.34 , 1);\n\t\t\n\t\tJSONObject jsonObject = new JSONObject(testInstanz1);\n\t\tString myJson1 = jsonObject.toString();\n\t\tgespraech.addGespraech(myJson1);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz2);\n\t\tString myJson2 = jsonObject.toString();\n\t\tgespraech.addGespraech(myJson2);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz3);\n\t\tString myJson3 = jsonObject.toString();\n\t\tgespraech.addGespraech(myJson3);\n\t\t\n\t\tepisode.addGespraech(gespraech.createInnerJson());\n\t\t\n\t\tSmallTalkGespraech gespraech1 = new SmallTalkGespraech(1);\n\t\t\n\t\tSmallTalkJsonHelper testInstanz4 = new SmallTalkJsonHelper(\"We\", 2.34 , 0);\n\t\tSmallTalkJsonHelper testInstanz5 = new SmallTalkJsonHelper(\"Bez\", 5.24 , 0);\n\t\tSmallTalkJsonHelper testInstanz6 = new SmallTalkJsonHelper(\"Begr\", 22.34 , 1);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz1);\n\t\tString myJson4 = jsonObject.toString();\n\t\tgespraech1.addGespraech(myJson1);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz2);\n\t\tString myJson5 = jsonObject.toString();\n\t\tgespraech1.addGespraech(myJson2);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz3);\n\t\tString myJson6 = jsonObject.toString();\n\t\tgespraech1.addGespraech(myJson3);\n\t\t\n\t\tepisode.addGespraech(gespraech1.createInnerJson());\n\t\t\n\t\tSystem.out.println(episode.createInnerJson());\n\t\t\n\t\tFileSaver fileSaver = new FileSaver();\n\t\tfileSaver.stringAsJson(episode.createInnerJson(), \"FinalJson.json\");\n\t}", "void mo26099a(String str, JSONObject jSONObject);", "public static List<GalacticCharacter> extractGalacticCharactersFromJson(String jsonString) {\n List<GalacticCharacter> galacticCharacters = new ArrayList<>();\n\n try {\n JSONArray galacticCharacterArray = new JSONArray(jsonString);\n\n for (int i = 0; i < galacticCharacterArray.length(); i++){\n JSONObject currentGalacticCharacter = galacticCharacterArray.getJSONObject(i);\n\n int id = currentGalacticCharacter.getInt(\"id\");\n String name = currentGalacticCharacter.getString(\"name\");\n ArrayList<String> shipsType = new ArrayList<>();\n\n JSONArray shipsTypeJsonArray = currentGalacticCharacter.getJSONArray(\"shipsType\");\n\n for (int j = 0; j < shipsTypeJsonArray.length(); j++) {\n String singleShipType = shipsTypeJsonArray.getString(j);\n shipsType.add(singleShipType);\n }\n\n GalacticCharacter galacticCharacter = new GalacticCharacter(id, name, shipsType);\n galacticCharacters.add(galacticCharacter);\n }\n\n } catch (JSONException e) {\n System.out.println(\"Problem parsing the character JSON results\");\n }\n return galacticCharacters;\n }", "public static void transferLeatherArmorMeta(LeatherArmorMeta meta, JsonObject json, boolean meta2json)\r\n \t{\r\n \t\tif (meta2json)\r\n \t\t{\r\n \t\t\tColor color = meta.getColor();\r\n \t\t\t\r\n \t\t\tif (Bukkit.getItemFactory().getDefaultLeatherColor().equals(color)) return;\r\n \r\n \t\t\tjson.addProperty(LEATHER_ARMOR_COLOR, color.asRGB());\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tJsonElement element = json.get(LEATHER_ARMOR_COLOR);\r\n \t\t\tif (element == null) return;\r\n \t\t\tmeta.setColor(Color.fromRGB(element.getAsInt()));\r\n \t\t}\r\n \t}", "@Test\r\n public void testInjestjson() {\r\n System.out.println(\"injest\");\r\n String doc = \"/imageword/words.json\";\r\n String json = \"{\\\"imageWords\\\":[{\\\"url\\\":\\\"crowd.svg\\\",\\\"textSrc\\\":null,\\\"metaInfo\\\":null,\\\"corelation\\\":null,\\\"id\\\":1,\\\"imageName\\\":\\\"Crowd\\\",\\\"dataSource\\\":\\\"<svg xmlns=\\\\\\\"http://www.w3.org/2000/svg\\\\\\\" xmlns:xlink=\\\\\\\"http://www.w3.org/1999/xlink\\\\\\\" version=\\\\\\\"1.0\\\\\\\" x=\\\\\\\"0px\\\\\\\" y=\\\\\\\"0px\\\\\\\" width=\\\\\\\"100px\\\\\\\" height=\\\\\\\"100px\\\\\\\" viewBox=\\\\\\\"0 0 100 100\\\\\\\" enable-background=\\\\\\\"new 0 0 100 100\\\\\\\" xml:space=\\\\\\\"preserve\\\\\\\">\\\\n <path d=\\\\\\\"M19.453,27.837c3.151,0,5.698-2.551,5.698-5.697c0-3.15-2.546-5.702-5.698-5.702 c-3.15,0-5.696,2.551-5.696,5.702C13.757,25.286,16.303,27.837,19.453,27.837z\\\\\\\"/>\\\\n <circle cx=\\\\\\\"81.189\\\\\\\" cy=\\\\\\\"22.138\\\\\\\" r=\\\\\\\"5.699\\\\\\\"/>\\\\n <path d=\\\\\\\"M50.35,27.837c3.147,0,5.697-2.551,5.697-5.697c0-3.15-2.55-5.702-5.697-5.702 c-3.151,0-5.702,2.551-5.702,5.702C44.648,25.286,47.199,27.837,50.35,27.837z\\\\\\\"/>\\\\n <circle cx=\\\\\\\"81.189\\\\\\\" cy=\\\\\\\"22.138\\\\\\\" r=\\\\\\\"5.699\\\\\\\"/>\\\\n <path d=\\\\\\\"M89.036,35.577l9.913-11.868c1.292-1.549,1.085-3.858-0.467-5.151c-1.551-1.293-3.85-1.086-5.146,0.462 c0,0-7.637,9.068-7.658,9.057c-1.274,1.124-2.936,1.811-4.763,1.811c-1.71,0-3.278-0.597-4.507-1.59 c-0.019,0.007-0.01,0.004-0.006,0l-7.873-9.277c-0.771-0.923-1.904-1.366-3.019-1.301c-1.116-0.064-2.242,0.378-3.018,1.301 c0,0-7.637,9.068-7.654,9.057c-1.273,1.124-2.939,1.811-4.763,1.811c-1.709,0-3.278-0.597-4.507-1.59h-0.004l-7.875-9.277 c-0.78-0.93-1.92-1.372-3.044-1.301c-1.128-0.071-2.274,0.371-3.045,1.301c0,0-7.64,9.068-7.658,9.057 c-1.273,1.124-2.939,1.811-4.768,1.811c-1.71,0-3.274-0.597-4.507-1.59l-7.878-9.277c-1.292-1.549-3.596-1.756-5.146-0.462 c-1.552,1.292-1.755,3.602-0.463,5.151L11.61,36.194v12.185c0,0.337,0.026,0.661,0.071,0.987l-1.595,30.765 c-0.146,2.055,1.405,3.838,3.458,3.979c2.054,0.141,3.834-1.401,3.975-3.459l1.269-24.463c0.224,0.017,0.44,0.035,0.665,0.035 c0.273,0,0.542-0.014,0.807-0.044l1.679,24.472c0.137,2.058,1.921,3.6,3.978,3.459c2.05-0.142,3.605-1.925,3.46-3.979 l-2.124-30.939c0.026-0.267,0.044-0.541,0.044-0.813V35.577l7.35-8.799l7.861,9.417v2.594L39,62.291h2.903l-0.925,17.84 c-0.141,2.055,1.405,3.838,3.458,3.979c2.058,0.141,3.842-1.401,3.983-3.459l0.952-18.36h2.199l1.255,18.36 c0.15,2.058,1.93,3.6,3.983,3.459c2.054-0.142,3.604-1.925,3.463-3.979l-1.225-17.84h2.864L58.193,37.37v-1.793l7.318-8.764 l7.838,9.382v12.185c0,0.337,0.021,0.661,0.067,0.987l-1.596,30.765c-0.141,2.055,1.405,3.838,3.458,3.979 c2.054,0.141,3.838-1.401,3.983-3.459l1.267-24.463c0.215,0.017,0.436,0.035,0.66,0.035c0.271,0,0.542-0.014,0.807-0.044 l1.674,24.472c0.145,2.058,1.929,3.6,3.983,3.459c2.05-0.142,3.601-1.925,3.459-3.979l-2.125-30.939 c0.032-0.267,0.049-0.541,0.049-0.813V35.577z\\\\\\\"/>\\\\n <circle cx=\\\\\\\"81.189\\\\\\\" cy=\\\\\\\"22.138\\\\\\\" r=\\\\\\\"5.699\\\\\\\"/>\\\\n </svg>\\\",\\\"tag\\\":\\\"crowd\\\"},{\\\"url\\\":\\\"happy.svg\\\",\\\"textSrc\\\":null,\\\"metaInfo\\\":null,\\\"corelation\\\":null,\\\"id\\\":13,\\\"imageName\\\":\\\"Happy\\\",\\\"dataSource\\\":\\\"<svg xmlns=\\\\\\\"http://www.w3.org/2000/svg\\\\\\\" xmlns:xlink=\\\\\\\"http://www.w3.org/1999/xlink\\\\\\\" version=\\\\\\\"1.1\\\\\\\" x=\\\\\\\"0px\\\\\\\" y=\\\\\\\"0px\\\\\\\" width=\\\\\\\"100px\\\\\\\" height=\\\\\\\"100px\\\\\\\" viewBox=\\\\\\\"0 0 100 100\\\\\\\" enable-background=\\\\\\\"new 0 0 100 100\\\\\\\" xml:space=\\\\\\\"preserve\\\\\\\">\\\\n <path d=\\\\\\\"M49.998,4C24.596,4,4,24.597,4,50c0,25.405,20.596,46,45.998,46C75.404,96,96,75.405,96,50C96,24.597,75.404,4,49.998,4z M49.998,86C30.119,86,14,69.882,14,50c0-19.883,16.119-36,35.998-36C69.883,14,86,30.117,86,50C86,69.882,69.883,86,49.998,86z\\\\\\\"></path>\\\\n <circle cx=\\\\\\\"36.5\\\\\\\" cy=\\\\\\\"38.86\\\\\\\" r=\\\\\\\"6.667\\\\\\\"></circle>\\\\n <circle cx=\\\\\\\"63.5\\\\\\\" cy=\\\\\\\"38.86\\\\\\\" r=\\\\\\\"6.667\\\\\\\"></circle>\\\\n <path d=\\\\\\\"M70.84,57.883c-2.119-1.297-4.89-0.629-6.187,1.49c-2.71,4.431-8.462,7.293-14.653,7.293s-11.943-2.862-14.653-7.293 c-1.297-2.119-4.067-2.787-6.187-1.49c-2.12,1.297-2.787,4.067-1.49,6.188C32.046,71.223,40.602,75.666,50,75.666 s17.955-4.443,22.331-11.596C73.628,61.95,72.961,59.18,70.84,57.883z\\\\\\\"></path>\\\\n </svg>\\\",\\\"tag\\\":\\\"happy\\\"},{\\\"url\\\":\\\"man.svg\\\",\\\"textSrc\\\":null,\\\"metaInfo\\\":null,\\\"corelation\\\":null,\\\"id\\\":5,\\\"imageName\\\":\\\"Man\\\",\\\"dataSource\\\":\\\"<svg version=\\\\\\\"1.0\\\\\\\" id=\\\\\\\"Layer_1\\\\\\\" xmlns=\\\\\\\"http://www.w3.org/2000/svg\\\\\\\" xmlns:xlink=\\\\\\\"http://www.w3.org/1999/xlink\\\\\\\" x=\\\\\\\"0px\\\\\\\" y=\\\\\\\"0px\\\\\\\" width=\\\\\\\"100px\\\\\\\" height=\\\\\\\"100px\\\\\\\" viewBox=\\\\\\\"0 0 37.207 100\\\\\\\" enable-background=\\\\\\\"new 0 0 37.207 100\\\\\\\" xml:space=\\\\\\\"preserve\\\\\\\">\\\\n<circle cx=\\\\\\\"18.118\\\\\\\" cy=\\\\\\\"8.159\\\\\\\" r=\\\\\\\"8.159\\\\\\\"></circle>\\\\n<path d=\\\\\\\"M8.472,95.426c0,2.524,2.05,4.574,4.574,4.574c2.529,0,4.576-2.05,4.576-4.574l0.004-38.374h2.037L19.65,95.426\\\\n\\\\tc0,2.524,2.048,4.574,4.574,4.574s4.573-2.05,4.573-4.574l0.02-66.158h2.006v24.38c0,4.905,6.398,4.905,6.384,0v-24.9\\\\n\\\\tc0-5.418-3.184-10.728-9.523-10.728L9.396,18.012C3.619,18.012,0,22.722,0,28.599v25.05c0,4.869,6.433,4.869,6.433,0v-24.38h2.048\\\\n\\\\tL8.472,95.426z\\\\\\\"></path>\\\\n</svg>\\\",\\\"tag\\\":\\\"man, person\\\"}]}\";\r\n IwRepoDAOMarkLogicImplStud instance = new IwRepoDAOMarkLogicImplStud();\r\n boolean expResult = true;\r\n boolean result = instance.injestJson(doc, json);\r\n assertEquals(expResult, result);\r\n }", "public Image getTrebleClef();", "@Override\n\tprotected void handleResult(JSONObject obj) {\n\t\t\n\t}", "public List<EstadoCita> obtenerDatosJSON(String rta){\n Log.e(\"Agenda JSON\",rta);\n // La lista de generos a retornar\n List<EstadoCita> lista = new ArrayList<EstadoCita>();\n try{\n /**\n * accedemos al json como array, ya que estamos 100% seguros de que lo que devuelve es un array\n * y no un objeto.\n */\n JSONArray json = new JSONArray(rta);\n for (int i=0; i<json.length(); i++){\n JSONObject row = json.getJSONObject(i);\n EstadoCita g = new EstadoCita();\n g.setId(row.getInt(\"id\"));\n g.setEstado(row.getString(\"estado\"));\n // g.setMedico((Medico) row.get(\"medico\"));\n // g.setHora((Hora) row.get(\"hora\"));\n lista.add(g);\n\n\n }\n } catch (JSONException e){\n e.printStackTrace();\n }\n return lista;\n }", "public static void transferSpecificMeta(ItemMeta meta, JsonObject json, boolean meta2json)\r\n \t{\r\n \t\tif (meta instanceof BookMeta)\r\n \t\t{\r\n \t\t\ttransferBookMeta((BookMeta) meta, json, meta2json);\r\n \t\t}\r\n \t\telse if (meta instanceof LeatherArmorMeta)\r\n \t\t{\r\n \t\t\ttransferLeatherArmorMeta((LeatherArmorMeta) meta, json, meta2json);\r\n \t\t}\r\n \t\telse if (meta instanceof MapMeta)\r\n \t\t{\r\n \t\t\ttransferMapMeta((MapMeta) meta, json, meta2json);\r\n \t\t}\r\n \t\telse if (meta instanceof PotionMeta)\r\n \t\t{\r\n \t\t\ttransferPotionMeta((PotionMeta) meta, json, meta2json);\r\n \t\t}\r\n \t\telse if (meta instanceof SkullMeta)\r\n \t\t{\r\n \t\t\ttransferSkullMeta((SkullMeta) meta, json, meta2json);\r\n \t\t}\r\n \t\telse if (meta instanceof FireworkEffectMeta)\r\n \t\t{\r\n \t\t\ttransferFireworkEffectMeta((FireworkEffectMeta) meta, json, meta2json);\r\n \t\t}\r\n \t\telse if (meta instanceof FireworkMeta)\r\n \t\t{\r\n \t\t\ttransferFireworkMeta((FireworkMeta) meta, json, meta2json);\r\n \t\t}\r\n \t\telse if (meta instanceof EnchantmentStorageMeta)\r\n \t\t{\r\n \t\t\ttransferEnchantmentStorageMeta((EnchantmentStorageMeta) meta, json, meta2json);\r\n \t\t}\r\n \t}", "@Override\n public GsonFooCustomObject deserialize(final HttpResponse httpResponse) {\n final String jsonAsString = SphereRequestUtils.getBodyAsString(httpResponse);\n return gson.fromJson(jsonAsString, GsonFooCustomObject.class);\n }", "public String getJson();", "@Override\r\n\tpublic Map<String, Object> catchOneEchoSound(String url) {\n\t\tMap<String,Object> res=new HashMap<String,Object>();\r\n\t\tEchoSound esa=this.getEchoSoundById(Integer.parseInt(url.substring(url.lastIndexOf(\"/\")+1)));\r\n\t\tif(esa!=null){\r\n\t\t\tres.put(\"status\",1);\r\n\t\t\t res.put(\"msg\",esa);\r\n\t\t\t return res;\r\n\t\t}\r\n\t\tEchoSound es=new EchoSound();\r\n\t\ttry {\r\n\t\t Document doc=HttpTool.urlToDoc(url);\r\n\t\t res.put(\"html\",doc.html());\r\n\t\t String html=doc.getElementsByAttributeValue(\"class\",\"main-part clearfix\").html();\r\n\t\t html=html.substring(html.indexOf(\"page_sound_obj\"),html.indexOf(\"};\")+1);\r\n\t\t html=html.substring(html.indexOf(\"{\"));\r\n\t\t JSONObject jsb=null;\r\n\t\t\t\tjsb=(JSONObject) JSONValue.parseStrict(html);\r\n es.setChannelId(Integer.parseInt(jsb.get(\"channel_id\").toString().trim()));\r\n es.setCommentCount(Integer.parseInt(jsb.get(\"comment_count\").toString().trim()));\r\n es.setInfo(jsb.get(\"info\").toString().trim());\r\n es.setIsLike(Integer.parseInt(jsb.get(\"is_like\").toString().trim()));\r\n es.setLength(Integer.parseInt(jsb.get(\"length\").toString().trim()));\r\n es.setLikeCount(Integer.parseInt(jsb.get(\"like_count\").toString().trim()));\r\n es.setName(jsb.get(\"name\").toString().trim());\r\n es.setPic(jsb.get(\"pic\").toString().trim());\r\n es.setPic100(jsb.get(\"pic_100\").toString().trim());\r\n es.setShareCount(Integer.parseInt(jsb.get(\"share_count\").toString().trim()));\r\n es.setSoundId(Integer.parseInt(jsb.get(\"id\").toString().trim()));\r\n es.setSource(jsb.get(\"source\").toString().trim());\r\n es.setViewCount(Integer.parseInt(jsb.get(\"view_count\").toString().trim()));\r\n this.insertEchoSoundById(es);\r\n \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\treturn res;\r\n\t\t}\r\n \r\n res.put(\"status\",1);\r\n\t\t res.put(\"msg\",es);\r\n\t\treturn res;\r\n\t}", "public JSONObject transformer() {\n JSONObject jsonObject = new JSONObject();\n JSONArray listening = new JSONArray();\n JSONArray listening_correction = new JSONArray();\n JSONArray reading = new JSONArray();\n JSONArray reading_correction = new JSONArray();\n JSONArray historique = new JSONArray();\n\n for (int i = 0; i < this.listening.size(); i++) {\n listening.put(this.listening.get(i).whoIs());\n listening_correction.put(this.listening_correction.get(i).whoIs());\n }\n\n for (int j = 0; j < this.reading.size(); j++) {\n reading.put(this.reading.get(j).whoIs());\n reading_correction.put(this.reading_correction.get(j).whoIs());\n }\n\n for(int k=0; k < this.historique.size(); k++){\n historique.put( transforme(this.historique.get(k)) );\n }\n\n try {\n jsonObject.put(\"nom\", this.nom);\n jsonObject.put(\"listening\", listening);\n jsonObject.put(\"reading\", reading);\n jsonObject.put(\"listening_correction\", listening_correction);\n jsonObject.put(\"reading_correction\", reading_correction);\n jsonObject.put(\"historique\",historique);\n jsonObject.put(\"etat\", this.etat);\n jsonObject.put(\"mode\", this.mode);\n jsonObject.put(\"est_termine\", this.est_termine);\n jsonObject.put(\"chronometre\", this.chronometre);\n Log.i(\"jsonObject\",jsonObject.toString());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return jsonObject;\n }", "public abstract void fromJson(JSONObject jsonObject);", "void mo59932a(String str, JSONObject jSONObject);", "public void convert() throws IOException {\n URL url = new URL(SERVICE + City + \",\" + Country + \"&\" + \"units=\" + Type + \"&\" + \"APPID=\" + ApiID);\n BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));\n String line = reader.readLine();\n // Pobieranie JSON\n\n // Wyciąganie informacji z JSON\n //*****************************************************************\n //Temp\n if (!StringUtils.isBlank(line)) {\n int startIndex = line.indexOf(\"{\\\"temp\\\"\") + 8;\n int endIndex = line.indexOf(\",\\\"feels_like\\\"\");\n temperature = line.substring(startIndex, endIndex);\n // System.out.println(temperature);\n }\n //Min temp\n if (!StringUtils.isBlank(line)) {\n int startIndex = line.indexOf(\",\\\"temp_min\\\"\") + 12;\n int endIndex = line.indexOf(\",\\\"temp_max\\\"\");\n temperatureMin = line.substring(startIndex, endIndex);\n // System.out.println(temperatureMin);\n }\n //Max temp\n if (!StringUtils.isBlank(line)) {\n int startIndex = line.indexOf(\"\\\"temp_max\\\":\") + 11;\n int endIndex = line.indexOf(\",\\\"pressure\\\"\");\n temperatureMax = line.substring(startIndex, endIndex);\n //System.out.println(temperatureMax);\n }//todo dodaj więcej informacji takich jak cisnienie i takie tam\n //*****************************************************************\n }", "private JsonObject retrieveFlodContent(String alphacode) {\n\n\t\tString url = flodURL + alphacode;\n\n\t\tJsonObject flodJsonObject = null;\n\t\tJsonObject flodEntity = null;\n\t\tJsonReader reader = null;\n\t\ttry {\n\t\t\t// read Json data\n\t\t\tURL dataURL = new URL(url);\n\t\t\treader = new JsonReader(new InputStreamReader(dataURL.openStream()));\n\t\t\tJsonParser parser = new JsonParser();\n\t\t\tflodJsonObject = parser.parse(reader).getAsJsonObject();\n\n\t\t\tJsonArray bindings = flodJsonObject.get(\"results\")\n\t\t\t\t\t.getAsJsonObject().get(\"bindings\").getAsJsonArray();\n\n\t\t\tif (bindings.size() > 0) {\n\t\t\t\tflodEntity = flodJsonObject.get(\"results\").getAsJsonObject()\n\t\t\t\t\t\t.get(\"bindings\").getAsJsonArray().get(0)\n\t\t\t\t\t\t.getAsJsonObject();\n\t\t\t}\n\n\t\t\treader.close();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn flodEntity;\n\t\t// return flodJsonObject;\n\t}", "@Path(\"/productos\")\n @GET\n @Produces(MediaType.APPLICATION_JSON) //Por que una track si la aceptaba (ejemplo) pero un producto no?\n public String productos(){\n return test.getProductos().get(\"Leche\").toString();\n\n }", "public static FluidIngredient deserialize(JsonElement json, String name) {\n // single ingredient object\n if (json.isJsonObject()) {\n return deserializeObject(json.getAsJsonObject());\n }\n\n // array\n if (json.isJsonArray()) {\n return Compound.deserialize(json.getAsJsonArray(), name);\n }\n\n throw new JsonSyntaxException(\"Fluid ingredient \" + name + \" must be either an object or array\");\n }", "void getWeatherObject(WeatherObject weatherObject);" ]
[ "0.6217214", "0.6143175", "0.56993467", "0.56559867", "0.55414045", "0.546146", "0.5436388", "0.54205734", "0.5377395", "0.52978534", "0.52633536", "0.5261371", "0.52493227", "0.5232632", "0.52250695", "0.52199966", "0.5167445", "0.5152394", "0.51298606", "0.51206225", "0.51032233", "0.50951004", "0.5090788", "0.5075557", "0.507087", "0.5045793", "0.50404596", "0.5032879", "0.49937105", "0.4981256", "0.49710977", "0.49499005", "0.49413857", "0.49188042", "0.49188042", "0.49188042", "0.49030992", "0.49024332", "0.48913366", "0.4884726", "0.48750922", "0.4870053", "0.48653126", "0.48646277", "0.48599362", "0.48590466", "0.48465228", "0.48454243", "0.48393247", "0.48279038", "0.48239794", "0.4814987", "0.4814358", "0.481213", "0.48003486", "0.47836804", "0.47768646", "0.47650915", "0.476253", "0.47621384", "0.47611466", "0.47587004", "0.47480977", "0.47460303", "0.47458747", "0.4727554", "0.47203296", "0.4719668", "0.4717034", "0.47138858", "0.47125944", "0.47066307", "0.47057495", "0.470044", "0.4700198", "0.46962243", "0.46958512", "0.46946132", "0.4694403", "0.4691425", "0.46907887", "0.46896955", "0.46880773", "0.46829996", "0.46792027", "0.4677502", "0.4677166", "0.46669188", "0.46667683", "0.4666105", "0.4663663", "0.46631867", "0.46583065", "0.46539894", "0.4648799", "0.46484154", "0.46479547", "0.4647241", "0.4642967", "0.4642572" ]
0.6695536
0
TODO Autogenerated method stub
@Override public void doFilter(ServletRequest req, ServletResponse resp, FilterChain filterChain) throws IOException, ServletException { if(filterConfig == null){ throw new ServletException("FilterConfig not set before first request"); } filterConfig.getServletContext().log("in LoggerFilter"); System.out.println("in LoggerFilter"); long starTime=System.currentTimeMillis(); String remoteAddress=req.getRemoteAddr(); String remoteHost=req.getRemoteHost(); HttpServletRequest myReq=(HttpServletRequest) req; String reqURI=myReq.getRequestURI(); System.out.println(reqURI); System.out.println(remoteAddress); System.out.println(remoteHost); req.setAttribute("URI", reqURI); req.setAttribute("RAddress", remoteAddress); req.setAttribute("RHost", remoteHost); filterChain.doFilter(req, resp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void init(FilterConfig config) throws ServletException { this.filterConfig=config; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Returns the content_id of this contentupdate.
@Override public long getContent_id() { return _contentupdate.getContent_id(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic long getId() {\n\t\treturn _contentupdate.getId();\n\t}", "public Integer getContentId() {\n return contentId;\n }", "java.lang.String getContentId();", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _contentupdate.getPrimaryKey();\n\t}", "public String getContentId() {\n\t\treturn _contentId;\n\t}", "@java.lang.Override\n public int getContentId() {\n return instance.getContentId();\n }", "int getContentId();", "@java.lang.Override\n public int getContentId() {\n return contentId_;\n }", "public String getContentId() {\n\n String as[] = getMimeHeader(\"Content-Id\");\n\n if (as != null && as.length > 0) {\n return as[0];\n } else {\n return null;\n }\n }", "com.google.protobuf.ByteString\n getContentIdBytes();", "public int getContentViewId() {\n return R.id.tv_content;\n }", "public java.lang.String getContentFileId() {\n return contentFileId;\n }", "public java.lang.String getContentFileId() {\n return contentFileId;\n }", "@Override\n\tpublic long getContent_id() {\n\t\treturn _buySellProducts.getContent_id();\n\t}", "String getContentGeneratorId();", "public String getDictContentId() {\r\n return (String) getAttributeInternal(DICTCONTENTID);\r\n }", "public String getdictContentID() {\r\n return (String)getNamedWhereClauseParam(\"dictContentID\");\r\n }", "@Override\n\tpublic long getChangesetEntryId() {\n\t\treturn _changesetEntry.getChangesetEntryId();\n\t}", "public String getContentUuid() {\n return contentUuid;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long id() {\n return id;\n }", "@Override\n\tpublic void setContent_id(long content_id) {\n\t\t_contentupdate.setContent_id(content_id);\n\t}", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public int id() {\n return this.id;\n }", "public String getUpdateId() {\r\n return updateId;\r\n }", "public String getUpdateId() {\r\n return updateId;\r\n }", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\n return id_;\n }", "public long getId() {\n\t\t\treturn id;\n\t\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public int getId() {\n\t\treturn this.data.getId();\n\t}", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }" ]
[ "0.8381198", "0.73636115", "0.7307739", "0.72634137", "0.7259851", "0.7207036", "0.71952283", "0.7162076", "0.71278", "0.63858545", "0.6245794", "0.62336946", "0.62220776", "0.607369", "0.5906465", "0.58776784", "0.58652204", "0.58030576", "0.5803013", "0.5780273", "0.5780273", "0.5780273", "0.5780273", "0.5780273", "0.5780273", "0.5780273", "0.5759249", "0.5759249", "0.5759249", "0.5759249", "0.57583946", "0.57583946", "0.57583946", "0.57583946", "0.5736594", "0.5735831", "0.5735255", "0.5735255", "0.5735255", "0.5735255", "0.5735255", "0.5735255", "0.5735255", "0.5735255", "0.5727938", "0.5715136", "0.5715136", "0.57100695", "0.57100695", "0.57100695", "0.57100695", "0.57100695", "0.57100695", "0.57034385", "0.570148", "0.569622", "0.569622", "0.569622", "0.569622", "0.569622", "0.569622", "0.569622", "0.569622", "0.569622", "0.569622", "0.569622", "0.569622", "0.569622", "0.569622", "0.569622", "0.569622", "0.569622", "0.569622", "0.569622", "0.569622", "0.569622", "0.56959486", "0.56959486", "0.56959486", "0.56959486", "0.56959486", "0.56909007", "0.5689824", "0.5689824", "0.5689824", "0.5689824", "0.5689824", "0.5689824", "0.5689824", "0.5689824", "0.5689824", "0.5689824", "0.5689824", "0.5689824", "0.5689824", "0.5689824", "0.5689824", "0.5689824", "0.5689824", "0.5689824" ]
0.8475844
0
Returns the ID of this contentupdate.
@Override public long getId() { return _contentupdate.getId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic long getContent_id() {\n\t\treturn _contentupdate.getContent_id();\n\t}", "public String getUpdateId() {\r\n return updateId;\r\n }", "public String getUpdateId() {\r\n return updateId;\r\n }", "public String getUpdateId() {\n\t\treturn updateId;\n\t}", "public String getUpdateId() {\n\t\treturn updateId;\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _contentupdate.getPrimaryKey();\n\t}", "public Long getUpdateId() {\n\t\treturn updateId;\n\t}", "public long getId() {\n\t\t\treturn id;\n\t\t}", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long id() {\n return id;\n }", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n\t\t\t\treturn id;\n\t\t}", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public int id() {\r\n\t\treturn ID;\r\n\t}", "@java.lang.Override\n public long getId() {\n return id_;\n }", "@java.lang.Override\n public long getId() {\n return id_;\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public int getId() {\n\t\t\treturn id_;\n\t\t}", "public int getId() {\n\t\t\treturn id_;\n\t\t}", "public long getId() {\n return id_;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\r\n \treturn this.id;\r\n }", "public int getId() {\n\t\t\t\treturn id_;\n\t\t\t}", "public int getId() {\n\t\t\t\treturn id_;\n\t\t\t}", "public final long getId() {\r\n return id;\r\n }", "public Long getId() {\n return this.id.get();\n }", "public long getId(){\n\t\treturn id;\n\t}" ]
[ "0.76859224", "0.71375406", "0.71375406", "0.7129061", "0.7129061", "0.7112516", "0.707252", "0.6609872", "0.6598078", "0.6598078", "0.6598078", "0.6598078", "0.6598078", "0.6598078", "0.6598078", "0.6592708", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.65638083", "0.6563766", "0.6563766", "0.6563766", "0.6563766", "0.6563766", "0.6563766", "0.65506804", "0.65506804", "0.65506804", "0.65506804", "0.65383697", "0.6537417", "0.6537417", "0.6537417", "0.6537417", "0.653627", "0.653627", "0.653627", "0.653627", "0.653627", "0.653627", "0.653627", "0.653627", "0.65172637", "0.6481418", "0.6477823", "0.6470325", "0.6470325", "0.6470325", "0.6470325", "0.6470325", "0.6460867", "0.6460867", "0.64596736", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64541656", "0.64511406", "0.6449956", "0.6449956", "0.6442314", "0.644167", "0.6431808" ]
0.87505233
0
Returns the primary key of this contentupdate.
@Override public long getPrimaryKey() { return _contentupdate.getPrimaryKey(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _changesetEntry.getPrimaryKey();\n\t}", "public String getPrimaryKey() {\n return this.getString(R.string.primaryKey);\n }", "public String getPrimaryKey() {\n if (primaryKey == null) primaryKey = \"id\";\n return primaryKey;\n }", "public long getPrimaryKey() {\n return primaryKey;\n }", "Key getPrimaryKey();", "public String getPrimaryKey() {\r\n\t\treturn primaryKey;\r\n\t}", "public long getPrimaryKey() {\n\t\treturn _tempNoTiceShipMessage.getPrimaryKey();\n\t}", "PrimaryKey getPrimarykey();", "public String getPrimaryKey() {\n\t\treturn primaryKey;\n\t}", "public long getPrimaryKey() {\n return _sTransaction.getPrimaryKey();\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn model.getPrimaryKey();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn model.getPrimaryKey();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn model.getPrimaryKey();\n\t}", "public String getPrimaryKey() {\r\n return primaryKey;\r\n }", "public String getPrimaryKey() {\n return getBasicChar().getPrimaryKey();\n }", "public ObjectKey getPrimaryKey()\n {\n return SimpleKey.keyFor(getNewsletterId());\n }", "public String fetchPrimaryKey(){\n\t\treturn primaryKey;\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _dlSyncEvent.getPrimaryKey();\n\t}", "@Override\n\tpublic long getId() {\n\t\treturn _contentupdate.getId();\n\t}", "public int keyId() {\n return keyId;\n }", "PrimaryKey getPrimaryKey();", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _state.getPrimaryKey();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _paper.getPrimaryKey();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _dictData.getPrimaryKey();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _candidate.getPrimaryKey();\n\t}", "public long getKeyID()\n {\n return keyID;\n }", "@Override\n\tpublic Object getPrimaryKey() {\n\t\treturn id;\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _scienceApp.getPrimaryKey();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _second.getPrimaryKey();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _employee.getPrimaryKey();\n\t}", "public java.lang.Long _pk()\n {\n return (java.lang.Long)i_pk();\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _phieugiahan.getPrimaryKey();\n\t}", "public java.lang.String getPrimaryKey() {\n\t\treturn _pnaAlerta.getPrimaryKey();\n\t}", "public PrimaryKey getPrimaryKey();", "public String getKey() {\n\t\treturn id + \"\";\n\t}", "@Override\r\n\tpublic String getPrimaryKey() {\n\t\treturn \"ID\";\r\n\t}", "public long getPrimaryKey() {\n return _courseImage.getPrimaryKey();\n }", "public static String getPrimaryKeyName() {\r\n\t\t\treturn PRIMARY_KEY_ID;\r\n\t\t}", "public ObjectKey getPrimaryKey()\n {\n pks[0] = SimpleKey.keyFor(getMailId());\n pks[1] = SimpleKey.keyFor(getReceiverId());\n return comboPK;\n }", "public String getKey() {\r\n return getAttribute(\"id\");\r\n }", "public int getPrimaryKey() {\r\n for (int i = 0; i < eventFields.size(); i++) {\r\n EventDataEntry currentEntry = eventFields.get(i);\r\n if (currentEntry.getColumnName().equalsIgnoreCase(\"linkid\")) {\r\n Integer it = (Integer) currentEntry.getValues().getFirst();\r\n return it.intValue();\r\n }\r\n }\r\n return -1;\r\n }", "public long getPrimaryKey() {\n\t\treturn _forumUser.getPrimaryKey();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _news_Blogs.getPrimaryKey();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _userSync.getPrimaryKey();\n\t}", "@Override\n\tpublic long getContent_id() {\n\t\treturn _contentupdate.getContent_id();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _expandoColumn.getPrimaryKey();\n\t}", "public Key getID () {\n\t\treturn id;\n\t}", "public IdKey getKey() {\n return idKey;\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _userTracker.getPrimaryKey();\n\t}", "@Override\n\tpublic int getPrimaryKey() {\n\t\treturn _keHoachKiemDemNuoc.getPrimaryKey();\n\t}", "public Integer getPkId() {\n\t\treturn pkId;\n\t}", "public java.lang.String getPrimaryKey() {\n\t\treturn _imageCompanyAg.getPrimaryKey();\n\t}", "Object getPrimaryKey(Object metadataID);", "public long getPrimaryKey() {\n\t\treturn _telefonoSolicitudProducto.getPrimaryKey();\n\t}", "public long getClassPK() {\n return classPK;\n }", "public java.lang.String getPrimaryKey() {\n\t\treturn _primarySchoolStudent.getPrimaryKey();\n\t}", "public String getPkid() {\n return pkid;\n }", "public final String getRefPK() {\n\t\tString str = getRequest().getParameter(\"RefPK\");\n\t\treturn str;\n\t}", "@Override\n\tpublic long getResourcePrimKey() {\n\t\treturn _changesetEntry.getResourcePrimKey();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _buySellProducts.getPrimaryKey();\n\t}", "public StrColumn getEntryId() {\n return delegate.getColumn(\"entry_id\", DelegatingStrColumn::new);\n }", "public StrColumn getEntryId() {\n return delegate.getColumn(\"entry_id\", DelegatingStrColumn::new);\n }", "public StrColumn getEntryId() {\n return delegate.getColumn(\"entry_id\", DelegatingStrColumn::new);\n }", "public Long getId()\n\t{\n\t\treturn (Long) this.getKeyValue(\"id\");\n\n\t}", "public double getPk()\n {\n return this.pk;\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _esfShooterAffiliationChrono.getPrimaryKey();\n\t}", "@Override\n public long getPrimaryKey() {\n return _partido.getPrimaryKey();\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _permissionType.getPrimaryKey();\n\t}", "@Override\n\tpublic Object getPrimaryKey() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Object key() {\n\t\treturn id;\n\t}", "public String keyIdentifier() {\n return this.keyIdentifier;\n }", "public String keyIdentifier() {\n return this.keyIdentifier;\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _dmGtStatus.getPrimaryKey();\n\t}", "@Override\n\tpublic long getChangesetEntryId() {\n\t\treturn _changesetEntry.getChangesetEntryId();\n\t}", "public String getKeyId() {\n return getProperty(KEY_ID);\n }", "@Override\n\tpublic Key getPk() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Key getPk() {\n\t\treturn null;\n\t}", "int getContentId();", "@Override\n\tpublic org.kisti.edison.science.service.persistence.ScienceAppPaperPK getPrimaryKey() {\n\t\treturn _scienceAppPaper.getPrimaryKey();\n\t}", "@Override\n\tpublic long getClassPK() {\n\t\treturn _changesetEntry.getClassPK();\n\t}", "@Override\n\tpublic String getKey() {\n\t\treturn getCid();\n\t}", "@Override\n\tpublic String getKey() {\n\t\treturn id+\"\";\n\t}", "@Override\n public int getPrimaryKey() {\n return _entityCustomer.getPrimaryKey();\n }", "@Override\n\tpublic Serializable getPrimaryKeyObj() {\n\t\treturn getElectiveId();\n\t}", "public final int getKeyId()\r\n\t{\r\n\t\treturn keyId;\r\n\t}", "@Override\n public String getKey()\n {\n return id; \n }", "@Override\n public long getPrimaryKey() {\n return _usersCatastropheOrgs.getPrimaryKey();\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public String primary() {\n return this.primary;\n }", "public StrColumn getReplacedEntryId() {\n return delegate.getColumn(\"replaced_entry_id\", DelegatingStrColumn::new);\n }", "public int getKey() {\n return key;\n }", "public int getGeneratedKey() {\n\n throw new RuntimeException(\"This method is only valid for insert commands\");\n }", "public int getKey() {\n return this.key;\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _esfTournament.getPrimaryKey();\n\t}", "public int getKey() {\r\n return key;\r\n }", "@Override\n\tpublic int getPrimaryKey() {\n\t\treturn _locMstLocation.getPrimaryKey();\n\t}", "public Long getId() {\n return this.id.get();\n }" ]
[ "0.7430444", "0.73853856", "0.73522615", "0.7228831", "0.7209382", "0.71946406", "0.71923774", "0.71816736", "0.7178893", "0.71770966", "0.71547574", "0.71547574", "0.71547574", "0.71284515", "0.7079287", "0.7047937", "0.7016274", "0.7001971", "0.70017505", "0.6997745", "0.698812", "0.6983346", "0.6976524", "0.697159", "0.69634944", "0.69604445", "0.69446707", "0.6923002", "0.6913078", "0.6911667", "0.6897314", "0.68667126", "0.6861399", "0.6858875", "0.6838735", "0.68244857", "0.68230873", "0.6819334", "0.6790603", "0.6778004", "0.6767611", "0.6761205", "0.6752424", "0.6703632", "0.6697234", "0.66923684", "0.6668555", "0.6663013", "0.6619987", "0.66182274", "0.6598653", "0.6543389", "0.65335584", "0.652189", "0.65207785", "0.6511807", "0.6485794", "0.6431199", "0.6422376", "0.6422064", "0.64064234", "0.64064234", "0.64064234", "0.6405892", "0.6399707", "0.63857925", "0.63837063", "0.63785094", "0.63702786", "0.63580304", "0.63528836", "0.63528836", "0.6341777", "0.63326025", "0.63262874", "0.6305002", "0.6305002", "0.6289592", "0.626577", "0.62643456", "0.62497795", "0.6249751", "0.6249243", "0.6247922", "0.6239595", "0.6236888", "0.62357295", "0.62301713", "0.62301713", "0.62301713", "0.62301713", "0.6224592", "0.62108606", "0.6202119", "0.6200333", "0.6198491", "0.6171867", "0.6169395", "0.6161583", "0.61536056" ]
0.829459
0
Sets the content_id of this contentupdate.
@Override public void setContent_id(long content_id) { _contentupdate.setContent_id(content_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setId(long id) {\n\t\t_contentupdate.setId(id);\n\t}", "private void setContentId(int value) {\n bitField0_ |= 0x00000001;\n contentId_ = value;\n }", "public void setContentId(String id) {\n\t\tthis._contentId = id;\n\t}", "public void setContentId(Integer contentId) {\n this.contentId = contentId;\n }", "public void setContentId(String contentId) {\n setMimeHeader(\"Content-Id\", contentId);\n }", "@Override\n\tpublic void setContent_id(long content_id) {\n\t\t_buySellProducts.setContent_id(content_id);\n\t}", "public Builder setContentId(int value) {\n copyOnWrite();\n instance.setContentId(value);\n return this;\n }", "public void updateContent(String spaceId, String contentId);", "public void setDictContentId(String value) {\r\n setAttributeInternal(DICTCONTENTID, value);\r\n }", "@Override\n\tpublic long getContent_id() {\n\t\treturn _contentupdate.getContent_id();\n\t}", "void setContentGeneratorId( String contentGeneratorId );", "public Builder forContent(String contentId) {\n this.contentId = contentId;\n return this;\n }", "public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder setContentFileId(java.lang.String value) {\n validate(fields()[0], value);\n this.contentFileId = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "public void setContent(Object content) {\n this.content = content;\n }", "@java.lang.Override\n public int getContentId() {\n return contentId_;\n }", "public synchronized void setContent(Object content) {\n // nothing\n }", "@Override\n\tpublic long getId() {\n\t\treturn _contentupdate.getId();\n\t}", "private void clearContentId() {\n bitField0_ = (bitField0_ & ~0x00000001);\n contentId_ = 0;\n }", "public void setdictContentID(String value) {\r\n setNamedWhereClauseParam(\"dictContentID\", value);\r\n }", "public void setContentService(ContentService contentService)\n {\n this.contentService = contentService;\n }", "protected native void updateContent(String id) /*-{\r\n\t\t$wnd.tinyMCE.selectedInstance = $wnd.tinyMCE.getInstanceById(id);\r\n\t\t$wnd.tinyMCE.setContent($wnd.document.getElementById(id).value);\r\n\t}-*/;", "public String getContentId() {\n\t\treturn _contentId;\n\t}", "public Integer getContentId() {\n return contentId;\n }", "protected void setContent(WaypointCardBase<?> content) {\n this.content.setValue(content);\n }", "public void setId(int id)\r\n {\r\n this.mId = id;\r\n }", "public void setId(int id) {\n if (id != Mote.INVALID_ID) {\n moteId.setText(String.valueOf(id));\n }\n else {\n moteId.setText(\"\");\n }\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(int value) {\r\n this.id = value;\r\n }", "public void setId(int value) {\n this.id = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId (long id)\r\n {\r\n _id = id;\r\n }", "public void setId(ID id){\r\n\t\tthis.id = id;\r\n\t}", "public void setId(long value) {\r\n this.id = value;\r\n }", "public void setId(long value) {\r\n this.id = value;\r\n }", "public void setId(int id) {\r\n\t\t_id = id;\r\n\t}", "@Override\n public void setId(final long id) {\n super.setId(id);\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_contentupdate.setPrimaryKey(primaryKey);\n\t}", "int updateContentDraft(@Param(\"contentUid\") long contentUid,\n\t\t\t\t\t \t @Param(\"content\") UserContent content);", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public final native void setId(int id) /*-{\n\t\tthis.id = id;\n\t}-*/;", "public void setContent(\n final java.lang.String content) {\n this._content = content;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "@Override\n public void setId(int id) {\n this.id = id;\n }", "public void setId(long id) {\r\n this.id = id;\r\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setId(long id){\n\t\tthis.id = id;\n\t}", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id){\n\t\tthis.id = id;\n\t}", "void setId(int id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void setId(int id){\r\n this.id = id;\r\n }", "@Override\n\tpublic void setId(int id) {\n\t\tthis.ID = id;\n\t}", "public void setId(int id) {\n\t\tif(id > 0)\n\t\t\tthis.id = id;\n\t}", "public void setId(int id)\n {\n this.id = id;\n }", "public void setId(int id)\n {\n this.id = id;\n }", "public void setId(int id_)\n\t{\n\t\tthis.id=id_;\n\t}", "private void setContent(String content) {\n this.content = content;\n }", "@Override\n\tpublic void setId(long id) {\n\t\tthis.id = id;\n\t}", "@Override\n\tpublic void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setContent(String content) {\n this.m_content = content;\n }", "public void setContent(String content) {\n\t\tmContent = content;\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}" ]
[ "0.7469184", "0.73653436", "0.7247825", "0.70519876", "0.6889905", "0.68646574", "0.6708231", "0.62738055", "0.6192091", "0.61377794", "0.60809135", "0.6006217", "0.5902357", "0.57808787", "0.57724416", "0.57170486", "0.5690235", "0.56509966", "0.5611452", "0.56060046", "0.5567868", "0.5535271", "0.55280304", "0.55070853", "0.5450271", "0.5421806", "0.5410551", "0.5410551", "0.5395336", "0.5383253", "0.53641754", "0.53641117", "0.53641117", "0.53641117", "0.53641117", "0.53641117", "0.53641117", "0.53641117", "0.53641117", "0.53641117", "0.53426486", "0.5337392", "0.53368884", "0.53368884", "0.5336517", "0.5333554", "0.5331354", "0.5330634", "0.5323912", "0.5323912", "0.5323912", "0.5323912", "0.5323912", "0.5323912", "0.5323912", "0.5319883", "0.5317082", "0.5304843", "0.5304843", "0.5304843", "0.5304843", "0.5304843", "0.5304843", "0.5304843", "0.5297485", "0.5297145", "0.52949584", "0.528381", "0.5280306", "0.5280306", "0.5279381", "0.5279381", "0.5279381", "0.5279381", "0.5276526", "0.5266753", "0.5264774", "0.52616787", "0.5260791", "0.52603537", "0.524879", "0.524879", "0.5245679", "0.5245421", "0.52445835", "0.52445835", "0.5243946", "0.5243946", "0.5243946", "0.5243946", "0.5243946", "0.52437806", "0.5242002", "0.5240785", "0.5240785", "0.5240785", "0.5240785", "0.5240785", "0.5240785", "0.5240785" ]
0.82543
0
Sets the ID of this contentupdate.
@Override public void setId(long id) { _contentupdate.setId(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setId(int id) {\n\t\tthis.ID = id;\n\t}", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(ID id){\r\n\t\tthis.id = id;\r\n\t}", "public final void setId(long id) {\n mId = id;\n }", "public void setId(int id) {\n\t\tif(id > 0)\n\t\t\tthis.id = id;\n\t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(long id) {\r\n this.id = id;\r\n }", "public void setId(String id)\n {\n data().put(_ID, id);\n }", "@Override\n\tpublic void setId(long id) {\n\t\tthis.id = id;\n\t}", "@Override\n\tpublic void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(final int id) {\n mId = id;\n }", "public void setId(long id){\n\t\tthis.id = id;\n\t}", "public void setId(final long id) {\n this.id = id;\n }", "public void setId(int id_)\n\t{\n\t\tthis.id=id_;\n\t}", "public void setId(Long id) {\n this.id.set(id);\n }", "public void setId(int id) {\n\t\tthis._id = id;\n\t}", "public void setId(int id) {\n\t\tthis._id = id;\n\t}", "public void setId(final int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id){\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n this.id = String.valueOf(this.hashCode());\n }", "protected void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(Long id) {\n\t\tsetField(\"id\", id);\n\t}", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n\t\t_id = id;\r\n\t}", "public void setId(String id) {\n mId = id;\n }", "public void setId(int id) {\n \t\tthis.id = id;\n \t}", "@Override\n public void setId(int id) {\n this.id = id;\n }", "public void setId(ID id)\n {\n this.id = id;\n }", "public void setId(int id)\r\n {\r\n this.mId = id;\r\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }" ]
[ "0.74105626", "0.73089606", "0.73089606", "0.7308294", "0.7308294", "0.7308294", "0.7302104", "0.7284601", "0.7271405", "0.7253106", "0.7253106", "0.7253106", "0.7253106", "0.7249881", "0.7249881", "0.7249881", "0.7249881", "0.7249881", "0.7249881", "0.7249881", "0.7249881", "0.7249881", "0.7249881", "0.7249881", "0.7249223", "0.7248262", "0.7247888", "0.7247888", "0.7244846", "0.7244846", "0.7244846", "0.7244846", "0.7244846", "0.72362685", "0.72332174", "0.7227501", "0.72225213", "0.7216093", "0.72119904", "0.72119904", "0.7211476", "0.72064084", "0.72064084", "0.71873146", "0.71873146", "0.71873146", "0.71873146", "0.71873146", "0.71873146", "0.71873146", "0.71873146", "0.71873146", "0.71873146", "0.71873146", "0.71873146", "0.71873146", "0.71873146", "0.71873146", "0.71873146", "0.71873146", "0.71873146", "0.71873146", "0.71873146", "0.71873146", "0.71748024", "0.7172843", "0.7170464", "0.71599984", "0.7149236", "0.7149236", "0.7149236", "0.7149236", "0.7149147", "0.71481854", "0.7143612", "0.7138536", "0.7138075", "0.7138072", "0.7137769", "0.7137769", "0.7137769", "0.7137769", "0.7137769", "0.7137769", "0.7137769", "0.7137769", "0.7137769", "0.7137769", "0.7137769", "0.7137769", "0.7137769", "0.7137769", "0.7137769", "0.7137769", "0.7137769", "0.7137769", "0.7137769", "0.7137769", "0.7137769", "0.7137769" ]
0.83802694
0
Sets the primary key of this contentupdate.
@Override public void setPrimaryKey(long primaryKey) { _contentupdate.setPrimaryKey(primaryKey); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_changesetEntry.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(String primaryKey);", "public void setPrimaryKey(String primaryKey);", "public void setPrimaryKey(String primaryKey);", "public void setPrimaryKey(int primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setIdkey(String pIdkey){\n this.idkey = pIdkey;\n }", "@Override\n\tpublic void setPrimaryKey(int primaryKey) {\n\t\t_keHoachKiemDemNuoc.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_paper.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(long primaryKey) {\n this.primaryKey = primaryKey;\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_phieugiahan.setPrimaryKey(primaryKey);\n\t}", "@Override\n public void setPrimaryKey(long primaryKey) {\n _partido.setPrimaryKey(primaryKey);\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_scienceApp.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_candidate.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_news_Blogs.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(int primaryKey) {\n\t\tthis.primaryKey = primaryKey;\n\t}", "public void setPrimaryKey(String primaryKey) {\r\n this.primaryKey = primaryKey;\r\n }", "public void setPrimaryKey(ObjectKey key)\n \n {\n setNewsletterId(((NumberKey) key).intValue());\n }", "public void setPrimaryKey(String key) \n {\n setNewsletterId(Integer.parseInt(key));\n }", "public void setPrimaryKey(String primaryKey) {\r\n\t\tthis.primaryKey = primaryKey;\r\n\t}", "public void setPrimaryKey(long primaryKey) {\n _courseImage.setPrimaryKey(primaryKey);\n }", "public void setPrimaryKey(String primaryKey) {\n this.primaryKey = primaryKey;\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_employee.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\tmodel.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\tmodel.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\tmodel.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(ObjectKey key) throws TorqueException\n {\n SimpleKey[] keys = (SimpleKey[]) key.getValue();\n SimpleKey tmpKey = null;\n setMailId(((NumberKey)keys[0]).intValue());\n setReceiverId(((NumberKey)keys[1]).intValue());\n }", "public void setPrimaryKey(long primaryKey) {\n\t\t_tempNoTiceShipMessage.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(String primaryKey) {\n\t\tthis.primaryKey = primaryKey;\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dlSyncEvent.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(long primaryKey) {\n _sTransaction.setPrimaryKey(primaryKey);\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_second.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(long primaryKey) {\n\t\t_telefonoSolicitudProducto.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(String primaryKey) {\n getBasicChar().setPrimaryKey(primaryKey);\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dictData.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_buySellProducts.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_state.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(VLegalFORelPK primaryKey);", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfTournament.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(\n\t\torg.kisti.edison.science.service.persistence.ScienceAppPaperPK primaryKey) {\n\t\t_scienceAppPaper.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_lineaGastoCategoria.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(long primaryKey) {\n\t\t_forumUser.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_userSync.setPrimaryKey(primaryKey);\n\t}", "@Override\n public void setPrimaryKey(int primaryKey) {\n _entityCustomer.setPrimaryKey(primaryKey);\n }", "public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_primarySchoolStudent.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_userTracker.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_pnaAlerta.setPrimaryKey(primaryKey);\n\t}", "@Override\n public void setPrimaryKey(java.lang.Object key) {\n\n mnDbmsType = ((int[]) key)[0];\n mnPkYearId = ((int[]) key)[1];\n mnPkTypeCostObjectId = ((int[]) key)[2];\n mnPkRefCompanyBranchId = ((int[]) key)[3];\n mnPkRefReferenceId = ((int[]) key)[4];\n mnPkRefEntityId = ((int[]) key)[5];\n mnPkBizPartnerId = ((int[]) key)[6];\n mtDbmsDateStart = ((java.util.Date[]) key)[7];\n mtDbmsDateEnd = ((java.util.Date[]) key)[8];\n }", "@Override\n\tpublic void setPrimaryKey(int primaryKey) {\n\t\t_locMstLocation.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(String key) throws TorqueException\n {\n setPrimaryKey(new ComboKey(key));\n }", "public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_imageCompanyAg.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfShooterAffiliationChrono.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(boolean isPrimary) {\n\t\tm_primarykey = isPrimary;\n\t\tif (isPrimary)\n\t\t\tsetNullable(false);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_permissionType.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dmGTShipPosition.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_expandoColumn.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _contentupdate.getPrimaryKey();\n\t}", "@Override\n public void setPrimaryKey(long primaryKey) {\n _usersCatastropheOrgs.setPrimaryKey(primaryKey);\n }", "public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dmGtStatus.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(int primaryKey) {\n\t\t_dmHistoryMaritime.setPrimaryKey(primaryKey);\n\t}", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "@Override\n\tpublic void setResourcePrimKey(long resourcePrimKey) {\n\t\t_changesetEntry.setResourcePrimKey(resourcePrimKey);\n\t}", "public final void setKeyId(int keyId)\r\n\t{\r\n\t\tthis.keyId = keyId;\r\n\t}", "public void setPK(IEntityPK pk) {\r\n\tthis.pk = (DispenserPK) pk;\r\n }", "private void setPrimaryKey(PSJdbcTableSchema tableSchema) throws PSJdbcTableFactoryException\n {\n List<String> pkcols = new ArrayList<String>();\n pkcols.add(\"col1\");\n PSJdbcPrimaryKey pk = new PSJdbcPrimaryKey(pkcols.iterator(), PSJdbcTableComponent.ACTION_REPLACE);\n tableSchema.setPrimaryKey(pk);\n }", "PrimaryKey getPrimarykey();", "Key getPrimaryKey();", "public void setPk(double pk)\n {\n this.pk = pk;\n }", "@Override\n\tpublic void setClassPK(long classPK) {\n\t\t_changesetEntry.setClassPK(classPK);\n\t}", "public void setKey( Long key ) {\n this.key = key ;\n }", "public void setKeyId(String keyId) {\n setProperty(KEY_ID, keyId);\n }", "@Override\n\tpublic void setId(long id) {\n\t\t_contentupdate.setId(id);\n\t}", "public void setPkid(String pkid) {\n this.pkid = pkid == null ? null : pkid.trim();\n }", "public void setPknum(Integer pknum) {\n this.pknum = pknum;\n }", "public void setPkId(Integer pkId) {\n\t\tthis.pkId = pkId;\n\t}", "public String getPrimaryKey() {\r\n return primaryKey;\r\n }", "public String getPrimaryKey() {\r\n\t\treturn primaryKey;\r\n\t}", "public int keyId() {\n return keyId;\n }", "public Constraint setKey( String theId) {\n\t\tmyKey = new IdDt(theId); \n\t\treturn this; \n\t}" ]
[ "0.72353375", "0.7221746", "0.7221746", "0.7221746", "0.72063535", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.718306", "0.71483016", "0.71450716", "0.71091264", "0.71007377", "0.7085082", "0.705454", "0.6998403", "0.69674706", "0.69612837", "0.69365346", "0.69364524", "0.69267863", "0.69232863", "0.6906169", "0.68851167", "0.6884618", "0.68566054", "0.6852519", "0.6852519", "0.6852519", "0.6843043", "0.6842735", "0.68254066", "0.682037", "0.6804757", "0.68017054", "0.6777734", "0.67715883", "0.6762701", "0.6756872", "0.6681481", "0.6672945", "0.66699904", "0.6666082", "0.6654708", "0.663308", "0.6568351", "0.6557225", "0.6537917", "0.6508028", "0.65049285", "0.6491065", "0.64710706", "0.6469954", "0.64607996", "0.6456505", "0.64536035", "0.64416957", "0.64238584", "0.6421902", "0.6361291", "0.6338031", "0.6319396", "0.6319396", "0.6319396", "0.6212084", "0.6210903", "0.61316746", "0.61316746", "0.61316746", "0.61097217", "0.60979635", "0.6073724", "0.6015943", "0.59969", "0.599116", "0.59898156", "0.5970756", "0.5968974", "0.59530485", "0.59252477", "0.5909616", "0.5907078", "0.5902312", "0.5881564", "0.5864817", "0.5846676", "0.58455646" ]
0.7673905
0
//GENEND:initComponents Muestra el historial del distribuidor seleccionado.
private void panelNuevoDistribuidor_botonHistorialDeDistribuidorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_panelNuevoDistribuidor_botonHistorialDeDistribuidorActionPerformed Logica.herramientas.procesoDeHistorial(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public jHistorialSeleccionarVoluntario() {\n initComponents();\n \n \n }", "@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void widgetSelected(SelectionEvent arg0) {\n\n\t}", "@Override\r\n\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t}", "@Override\n\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\n\t}", "@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\n\t\t\t}", "@Override\r\n\tpublic void widgetDefaultSelected(SelectionEvent arg0)\r\n\t{\n\t\t\r\n\t}", "@Override\n public void widgetDefaultSelected(SelectionEvent selectionEvent) {\n }", "@Override\n public void widgetDefaultSelected(SelectionEvent selectionEvent) {\n }", "@Override\n public void widgetDefaultSelected(SelectionEvent selectionEvent) {\n }", "@Override\n public void widgetDefaultSelected(SelectionEvent selectionEvent) {\n }", "@Override\n public void widgetDefaultSelected(SelectionEvent selectionEvent) {\n }", "@Override\n public void widgetDefaultSelected(SelectionEvent selectionEvent) {\n }", "@Override\n public void valueChanged(ListSelectionEvent arg0) {\n\n }", "@Override\n\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "public static void chsrInit(){\n for(int i = 0; i < chsrDesc.length; i++){\n chsr.addOption(chsrDesc[i], chsrNum[i]);\n }\n chsr.setDefaultOption(chsrDesc[2] + \" (Default)\", chsrNum[2]); //Default MUST have a different name\n SmartDashboard.putData(\"JS/Choice\", chsr);\n SmartDashboard.putString(\"JS/Choosen\", chsrDesc[chsr.getSelected()]); //Put selected on sdb\n }", "@Override\n public void valueChanged(javax.swing.event.ListSelectionEvent e)\n {\n this.choice = e.getFirstIndex();\n }", "@Override\n\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\n\t}", "@Override\r\npublic void menuSelected(MenuEvent arg0) {\n\t\r\n}", "@Override\r\n\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t}", "@Override\n public void widgetDefaultSelected(SelectionEvent exc) {\n }", "public TelaFuncionario_TelaMenu_GerenciarHistorico() {\n initComponents();\n try {\n listaUsuario = fc.listarTodos();\n } catch (SQLException ex) {\n Logger.getLogger(TelaFuncionario_TelaMenu_GerenciarCliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n btSelecionar.setEnabled(false);\n btHabilitar.setEnabled(false);\n }", "@Override\r\n\t\tpublic void valueChanged(ListSelectionEvent e) {\r\n\t\t\t\r\n\t\t}", "public void handleNewLinkerSelection(){\r\n if (getGwtToolbarItem().getRequiredModule() != null) {\r\n @SuppressWarnings(\"unchecked\")\r\n List<String> installedModules = (List<String>) JahiaGWTParameters.getSiteNode().get(\"j:installedModules\");\r\n setVisible(installedModules != null && installedModules.contains(getGwtToolbarItem().getRequiredModule()));\r\n }\r\n }", "public void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}", "private void CargaInicial() {\r\n this.setTitle(\"\" + gui.getTitle().concat(\"\").concat(\" - [Modulo: Precio por Producto/Servicio]\"));\r\n }", "@Override\n public void mouseClicked(MouseEvent e) {\n\t\tcomboBox.setEnabled(true);\n\t\tcomboBox.setVisible(true);\n\t\tlblTest.setVisible(false);\n\t\t//choose the correct combobox entry for the file we currently use.\n }", "public void selectNewBook(MouseEvent e)\n\t{\n\t\tBookApp.currentBook = otherAppearances.getSelectionModel().getSelectedItem();\n\t\tcurrentBookDisplay.getItems().clear();\n\t\tcurrentBookDisplay.getItems().add(BookApp.currentBook);\n\t\tcharactersNameList.getItems().clear();\n\t\tfor(Character character : (MyLinkedList<Character>) BookApp.currentBook.getCharacterList()){\n\t\t\tcharactersNameList.getItems().add(character);\n\t\t\tcharactersNameList.getSelectionModel().getSelectedIndex();\n\t\t}\n\t\totherAppearances.getItems().clear();\n\t\tfor(int i = 0; i< BookApp.unsortedBookTable.hashTable.length; i++) {\t\t\n\t\t\tfor(Book eachBook : (MyLinkedList<Book>) BookApp.unsortedBookTable.hashTable[i]) {\n\t\t\t\tfor(Character eachCharacterInTotalList : (MyLinkedList<Character>) eachBook.getCharacterList())\n\t\t\t\t{\n\t\t\t\t\tif(eachCharacterInTotalList.equals(BookApp.currentCharacter) && eachBook.equals(BookApp.currentBook))\n\t\t\t\t\t{\n\t\t\t\t\t\totherAppearances.getItems().add(eachBook);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public void widgetSelected(SelectionEvent e) {\n\t\t\t\tnew ShellEscribirMensaje(tabFolder.getShell(),bundle,vista,null,0,\"\",false,tabla);\r\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tString result = showSelectScannableDialog(parent, getSafeScannableNames());\n\t\t\t\tif (result != null) {\n\t\t\t\t\tlogger.debug(\"Scannable name : {}\", result);\n\t\t\t\t\tscannableInfoList.add(new ScannableInfo(result));\n\t\t\t\t\trefreshListViewer();\n\t\t\t\t}\n\t\t\t}", "@Override\r\npublic void menuDeselected(MenuEvent arg0) {\n\t\r\n}", "private void initProbOrDeterList(){\n this.probDeterSelection.addItem(DETERMINISTIC);\n this.probDeterSelection.addItem(PROBABILISTIC);\n }", "public void onComponentSelection(){\r\n\r\n }", "@Override\n public void menuSelected(MenuEvent e) {\n \n }", "public void widgetDefaultSelected(SelectionEvent e) {\n \t\t\t}", "public void widgetDefaultSelected(SelectionEvent e) {\n \t\t\t}", "public void widgetDefaultSelected(SelectionEvent e) {\n \t\t\t}", "public void widgetDefaultSelected(SelectionEvent e) {\n \t\t\t}", "@Override\r\n\tprotected void directorySelectionChangedDirectly() {\n\r\n\t}", "@Override\n\tpublic void menuSelected(MenuEvent e) {\n\n\t}", "@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}", "public void construirPrimerSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet1ReglaCompleja = new JComboBox(dominio);// creamos el primer combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet1ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el primer item\n\t\titemscomboDominiosSet1ReglaCompleja = new JComboBox();// creamo el segundo combo, vacio\n\t\titemscomboDominiosSet1ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el primer Dominio de regla compleja\");\n\t\tpanelCentral.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboDominiosSet1ReglaCompleja);\n\t\tcomboDominiosSet1ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelCentral.add(itemscomboDominiosSet1ReglaCompleja);\n\t\titemscomboDominiosSet1ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet1ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}", "@Override\r\n\tprotected void InitComboBox() {\n\t\t\r\n\t}", "public void widgetSelected(SelectionEvent arg0) {\n\t\t\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jComboBox1 = new javax.swing.JComboBox();\n btnDelete = new javax.swing.JButton();\n btnDelete.addActionListener(new ChangeGenreRemoveAction(this));\n btnOk = new javax.swing.JButton();\n btnOk.addActionListener(new ChangeGenreOkAction(this));\n btnChange = new javax.swing.JButton();\n btnChange.addActionListener(new ChangeGenreChangeAction(this));\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Change genre\");\n\n btnDelete.setText(\"Remove selected\");\n\n btnOk.setText(\"Ok\");\n\n btnChange.setText(\"Change selected\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jComboBox1, 0, 365, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addComponent(btnDelete)\n .addGap(18, 18, 18)\n .addComponent(btnChange)))\n .addContainerGap(23, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(124, 124, 124)\n .addComponent(btnOk, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(172, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(32, 32, 32)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnDelete)\n .addComponent(btnChange))\n .addGap(27, 27, 27)\n .addComponent(btnOk)\n .addContainerGap(20, Short.MAX_VALUE))\n );\n\n pack();\n }", "public void widgetSelected(SelectionEvent event) {\n if (lists.getSelectionCount() > 0) {\n fileName = lists.getSelection()[0];\n } else {\n fileName = \"\";\n }\n setReturnValue(fileName);\n shell.close();\n }", "public void valueChanged(ListSelectionEvent arg0) {\n\t\t\r\n\t}", "public void widgetDefaultSelected(SelectionEvent e) {\n\t\t\n\t}", "@Override\r\n public void valueChanged(TreeSelectionEvent e) {\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "private void jList1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jList1MouseClicked\n Componente aux = this.d.getComponenteNome(this.jList1.getSelectedValue());\n if(aux!=null) {\n this.jLabel8.setText(aux.getDescricao());\n if (evt.getClickCount()== 2 && this.model2.getSize()<=5){\n if(!this.tipos.contains(aux.getTipo())) {\n this.auxC.addComponente(aux.getID(),aux.getPreco());\n dispose();\n execCriarConfGUI();\n }\n else {\n Object[] options = {\"SIM\",\"NÃO\"};\n int result = JOptionPane.showOptionDialog(null, \"Já existe um Componente do tipo \"+aux.getTipo()+\".\\nDeseja troca-lo?\"\n ,\"TIPOS IGUAIS\",JOptionPane.YES_NO_OPTION,JOptionPane.WARNING_MESSAGE,null,options,null );\n if (result == JOptionPane.YES_OPTION) {\n this.auxC = this.d.remComp(this.auxC,aux.getTipo());\n List<String> add = new ArrayList<>();\n add.add(aux.getID());\n this.auxC = this.d.addComponente(this.auxC,add);\n dispose();\n execCriarConfGUI();\n }\n }\n \n }\n }\n }", "@Override\n\t\tpublic void postInit(){\n\t\tsuper.postInit();\n\t\tthis.buttonList.add(this.readDescription = new GuiButton(6, this.width - 110, 2, 100, 20, \"World Description\"));\n\t\tthis.readDescription.enabled = false;\n\t}", "public void widgetDefaultSelected(SelectionEvent arg0) {\n\n }", "@Override\r\n public void valueChanged(ListSelectionEvent e) {\n selectionChanged();\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n mnbMenuBar = new javax.swing.JMenuBar();\n mnuManage = new javax.swing.JMenu();\n mniEmpoyee = new javax.swing.JMenuItem();\n mniStudent = new javax.swing.JMenuItem();\n mniBook = new javax.swing.JMenuItem();\n mnuLoan = new javax.swing.JMenu();\n mniLoanBook = new javax.swing.JMenuItem();\n mnuFine = new javax.swing.JMenu();\n mniFineStudent = new javax.swing.JMenuItem();\n mnuAbout = new javax.swing.JMenu();\n mniSystem = new javax.swing.JMenuItem();\n mniLicense = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Library\");\n\n mnbMenuBar.setBorder(null);\n mnbMenuBar.setFont(new java.awt.Font(\"Ubuntu\", 0, 18)); // NOI18N\n\n mnuManage.setText(\"Manage\");\n mnuManage.setFont(new java.awt.Font(\"Ubuntu\", 0, 16)); // NOI18N\n mnuManage.setPreferredSize(new java.awt.Dimension(75, 23));\n\n mniEmpoyee.setFont(new java.awt.Font(\"Ubuntu\", 0, 16)); // NOI18N\n mniEmpoyee.setText(\"Employee\");\n mniEmpoyee.setBorder(null);\n mniEmpoyee.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mniEmpoyeeActionPerformed(evt);\n }\n });\n mnuManage.add(mniEmpoyee);\n\n mniStudent.setFont(new java.awt.Font(\"Ubuntu\", 0, 16)); // NOI18N\n mniStudent.setText(\"Student\");\n mniStudent.setBorder(null);\n mniStudent.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mniStudentActionPerformed(evt);\n }\n });\n mnuManage.add(mniStudent);\n\n mniBook.setFont(new java.awt.Font(\"Ubuntu\", 0, 16)); // NOI18N\n mniBook.setText(\"Book\");\n mniBook.setBorder(null);\n mniBook.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mniBookActionPerformed(evt);\n }\n });\n mnuManage.add(mniBook);\n\n mnbMenuBar.add(mnuManage);\n\n mnuLoan.setText(\"Loan\");\n mnuLoan.setFont(new java.awt.Font(\"Ubuntu\", 0, 16)); // NOI18N\n mnuLoan.setPreferredSize(new java.awt.Dimension(53, 23));\n\n mniLoanBook.setFont(new java.awt.Font(\"Ubuntu\", 0, 16)); // NOI18N\n mniLoanBook.setText(\"Book\");\n mniLoanBook.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mniLoanBookActionPerformed(evt);\n }\n });\n mnuLoan.add(mniLoanBook);\n\n mnbMenuBar.add(mnuLoan);\n\n mnuFine.setText(\"Fine\");\n mnuFine.setFont(new java.awt.Font(\"Ubuntu\", 0, 16)); // NOI18N\n mnuFine.setPreferredSize(new java.awt.Dimension(49, 23));\n\n mniFineStudent.setFont(new java.awt.Font(\"Ubuntu\", 0, 16)); // NOI18N\n mniFineStudent.setText(\"Student\");\n mniFineStudent.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mniFineStudentActionPerformed(evt);\n }\n });\n mnuFine.add(mniFineStudent);\n\n mnbMenuBar.add(mnuFine);\n\n mnuAbout.setText(\"About\");\n mnuAbout.setFont(new java.awt.Font(\"Ubuntu\", 0, 16)); // NOI18N\n mnuAbout.setPreferredSize(new java.awt.Dimension(61, 19));\n\n mniSystem.setFont(new java.awt.Font(\"Ubuntu\", 0, 16)); // NOI18N\n mniSystem.setText(\"System\");\n mniSystem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mniSystemActionPerformed(evt);\n }\n });\n mnuAbout.add(mniSystem);\n\n mniLicense.setFont(new java.awt.Font(\"Ubuntu\", 0, 16)); // NOI18N\n mniLicense.setText(\"License\");\n mniLicense.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mniLicenseActionPerformed(evt);\n }\n });\n mnuAbout.add(mniLicense);\n\n mnbMenuBar.add(mnuAbout);\n\n setJMenuBar(mnbMenuBar);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1000, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 677, Short.MAX_VALUE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "public void actionPerformed( ActionEvent event )\n {\n SoftwareWindow.this.software = parent.getEnvironmentWindow().getEnvironment().getSoftware( name );\n if ( SoftwareWindow.this.software == null )\n {\n SoftwareWindow.this.software = new Software();\n }\n // update the window\n update();\n }", "@Override\r\n\tprotected void onUnitSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"unit button implementation\");\r\n\t}", "private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox1ActionPerformed\n MimsPlus imp = null;\n\n // Get the title of the window currently selected in the combobox.\n // Then get the window associated with that title. \n String title = (String) jComboBox1.getSelectedItem();\n if (title != null) {\n imp = (MimsPlus) windows.get(title);\n }\n\n // Select autocontrasting radio button...\n if (imp != null) {\n jRadioButton1.setSelected(imp.getAutoContrastAdjust());\n updateHistogram();\n }\n }", "@Override\n public void menuSelected (MenuEvent e) {\n menu.removeAll();\n ButtonGroup group = new ButtonGroup();\n for (String pName : SerialPortList.getPortNames(macPat)) {\n JRadioButtonMenuItem item = new JRadioButtonMenuItem(pName, pName.equals(portName));\n menu.setVisible(true);\n menu.add(item);\n group.add(item);\n item.addActionListener((ev) -> {\n portName = ev.getActionCommand();\n prefs.put(prefix + \"serial.port\", portName);\n });\n }\n }", "private void jComboBoxSpecialisatieActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxSpecialisatieActionPerformed\n\n this.SpecialisatieSitueert = this.dbFacade.getAllSitueertOfSpecialisatieID(((Specialisatie)this.jComboBoxSpecialisatie.getSelectedItem()).getId());\n this.jComboBoxSitueert.setModel(new DefaultComboBoxModel(this.SpecialisatieSitueert.toArray()));\n }", "public void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t}", "public void widgetSelected(SelectionEvent e) {\n\t\tdoctorcombo.removeAll();\n\t\tint i = subject.getSelectionIndex();\n\t\t if(i == 0){\n\t\t\t\tint j = pdtabledaoimpl.findByname1(subject.getItem(0));\n\t\t\t\tfor (int k = 0; k < j; k++){\n\t\t\t\t\tString ss = pdtabledaoimpl.findByname2(subject.getItem(0),j,k);\n\t\t\t\t\tdoctorcombo.add(ss, k);\n\t\t\t\t}\t\t\n\t\t\t}\n\t\t else if(i == 1){\n\t\t\t\tint j = pdtabledaoimpl.findByname1(subject.getItem(1));\n\t\t\t\tfor (int k = 0; k < j; k++){\n\t\t\t\t\tString ss = pdtabledaoimpl.findByname2(subject.getItem(1),j,k);\n\t\t\t\t\tdoctorcombo.add(ss, k);\n\t\t\t\t}\t\t\n\t\t\t}\n\t\t else if(i == 2){\n\t\t\t\tint j = pdtabledaoimpl.findByname1(subject.getItem(2));\n\t\t\t\tfor(int k = 0; k< j; k++){\n\t\t\t\t\tString ss = pdtabledaoimpl.findByname2(subject.getItem(2),j,k);\n\t\t\t\t\tdoctorcombo.add(ss, k);\n\t\t\t\t}\n\t\t\t}\n\t\t else if(i == 3){\n\t\t\t\tint j = pdtabledaoimpl.findByname1(subject.getItem(3));\n\t\t\t\tfor(int k = 0; k< j; k++){\n\t\t\t\t\tString ss = pdtabledaoimpl.findByname2(subject.getItem(3),j,k);\n\t\t\t\t\tdoctorcombo.add(ss, k);\n\t\t\t\t}\n\t\t\t}\n\t\t else if(i == 4){\n\t\t\t\tint j = pdtabledaoimpl.findByname1(subject.getItem(4));\n\t\t\t\tfor(int k = 0; k< j; k++){\n\t\t\t\t\tString ss = pdtabledaoimpl.findByname2(subject.getItem(4),j,k);\n\t\t\t\t\tdoctorcombo.add(ss, k);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}", "@Override\n public void valueChanged(TreeSelectionEvent e) {\n\n }", "public History_GUI(){\n super();\n InitializeComponents();\n ConfigureWin();\n\n }", "private void combo_diabeticoActionPerformed(java.awt.event.ActionEvent evt) {\n }", "public void construirPrimerSetDeDominios() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet1 = new JComboBox(dominio);// creamos el primer combo, y\n\t\t\t\t\t\t\t\t\t\t\t\t\t// le\n\t\t// pasamos un array de cadenas\n\t\tcomboDominiosSet1.setSelectedIndex(0);// por defecto quiero visualizar\n\t\t\t\t\t\t\t\t\t\t\t\t// el\n\t\t// primer item\n\t\titemsComboDominiosSet1 = new JComboBox();// creamo el segundo combo,\n\t\t\t\t\t\t\t\t\t\t\t\t\t// vacio\n\t\titemsComboDominiosSet1.setEnabled(false);// //por defecto q aparesca\n\t\t\t\t\t\t\t\t\t\t\t\t\t// desabilidado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el primer Dominio\");\n\t\tpanelCentral.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboDominiosSet1);\n\t\tcomboDominiosSet1.setBounds(100, 30, 150, 24);\n\t\tpanelCentral.add(itemsComboDominiosSet1);\n\t\titemsComboDominiosSet1.setBounds(100, 70, 150, 24);\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);// le\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// pasamos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// como\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// argumento\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// esta\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// misma\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ventana\n\t\tcomboDominiosSet1.addActionListener(controlDemoCombo);// agregamos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// escuchas\n\n\t}", "@Override\n\tpublic void widgetSelected(SelectionEvent e) {\n\t\tint i = doctorcombo.getSelectionIndex();\n\t\tint j = subject.getSelectionIndex();\n\t\tRegister.setName(nametext.getText());\n\t\tRegister.setSubject(subject.getItem(j));\n\t\tRegister.setDoctor(doctorcombo.getItem(i));\n\t\tRDI.Save(Register);\n\t}" ]
[ "0.6493123", "0.5878878", "0.5858696", "0.5800288", "0.5740329", "0.5730957", "0.5730957", "0.57294667", "0.57294667", "0.57294667", "0.57294667", "0.57294667", "0.57294667", "0.570764", "0.56940365", "0.56940365", "0.56940365", "0.56940365", "0.56940365", "0.56940365", "0.56940365", "0.56903785", "0.5688868", "0.5661316", "0.56533897", "0.5640839", "0.56249845", "0.56249845", "0.56249845", "0.56249845", "0.56249845", "0.56249845", "0.5611892", "0.56099266", "0.55983174", "0.55983174", "0.55983174", "0.5593258", "0.5593258", "0.5593258", "0.5593258", "0.5593258", "0.5593258", "0.5593258", "0.5593258", "0.5593258", "0.5593258", "0.5593258", "0.55839425", "0.5580586", "0.5573697", "0.55437946", "0.55364037", "0.5514024", "0.5508675", "0.5507669", "0.54526734", "0.54376566", "0.5436902", "0.543675", "0.5433698", "0.5420017", "0.5416564", "0.5412817", "0.54109234", "0.5406539", "0.5397408", "0.53895754", "0.53895754", "0.53895754", "0.53895754", "0.5374205", "0.5369963", "0.536823", "0.5364088", "0.5361537", "0.53385556", "0.53366935", "0.53327644", "0.5328892", "0.5324694", "0.53191805", "0.53167313", "0.5314056", "0.5312951", "0.5312541", "0.5307984", "0.52832395", "0.52777636", "0.52774", "0.52732575", "0.52686435", "0.52684265", "0.52683544", "0.5256321", "0.5252292", "0.5247768", "0.5241721", "0.5237216", "0.5228421" ]
0.55542636
51